JP5685901B2 - Print data processing method, print data processing apparatus, and print data processing system - Google Patents

Print data processing method, print data processing apparatus, and print data processing system Download PDF

Info

Publication number
JP5685901B2
JP5685901B2 JP2010259839A JP2010259839A JP5685901B2 JP 5685901 B2 JP5685901 B2 JP 5685901B2 JP 2010259839 A JP2010259839 A JP 2010259839A JP 2010259839 A JP2010259839 A JP 2010259839A JP 5685901 B2 JP5685901 B2 JP 5685901B2
Authority
JP
Japan
Prior art keywords
data
print data
print
printed
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2010259839A
Other languages
Japanese (ja)
Other versions
JP2012113392A5 (en
JP2012113392A (en
Inventor
小林 直樹
小林  直樹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2010259839A priority Critical patent/JP5685901B2/en
Priority to US13/297,401 priority patent/US9141892B2/en
Publication of JP2012113392A publication Critical patent/JP2012113392A/en
Publication of JP2012113392A5 publication Critical patent/JP2012113392A5/ja
Application granted granted Critical
Publication of JP5685901B2 publication Critical patent/JP5685901B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Cash Registers Or Receiving Machines (AREA)

Description

本発明は、POSシステム等においてレシート等の記録媒体に適切な状態で両面印刷を行うための印刷データの処理方法、印刷データ処理装置及び印刷データ処理システムに関する。   The present invention relates to a print data processing method, a print data processing apparatus, and a print data processing system for performing double-sided printing in an appropriate state on a recording medium such as a receipt in a POS system or the like.

店舗等に設置されているPOSシステムにおいては、そのPOS端末に接続されたレシート発行用のプリンターによって両面印刷されたレシートを発行するものが知られている。例えば、レシートの表面には、店舗名、取引内容、取引を特定するためのIDを表すバーコード等が印刷され、裏面にはクーポン、広告などが印刷される。   In a POS system installed in a store or the like, a system that issues a receipt printed on both sides by a receipt issuing printer connected to the POS terminal is known. For example, a store name, transaction details, a bar code representing an ID for identifying the transaction, etc. are printed on the front surface of the receipt, and coupons, advertisements, etc. are printed on the back surface.

特許文献1には両面印刷用のレシートプリンターを備えたPOSシステムが提案されている。このPOSシステムのレシートプリンターは、レシート用紙の一方の面に印刷を行う第1ヘッドと他方の面に印刷を行う第2ヘッドを備えており、レシート用紙における予め印刷位置が決められている広告、店舗ロゴ等の固定情報の印刷領域を除いた領域に、レシートの長さが最も短くなるように取引情報を両面に配分して印刷して、レシートの無駄を無くすようにしている。   Patent Document 1 proposes a POS system including a receipt printer for double-sided printing. The receipt printer of this POS system includes a first head that prints on one side of a receipt paper and a second head that prints on the other side, and an advertisement whose printing position is predetermined on the receipt paper, Transaction information is distributed and printed on both sides so that the length of the receipt is the shortest in the area excluding the fixed information printing area such as the store logo, etc., so as to eliminate the waste of the receipt.

特開2009−123028号公報JP 2009-123028 A

ここで、両面印刷されたレシートを発行すると、例えば裏面に印刷された裏面情報が表面から透けて見えることや、裏面側の印刷が表面側に滲み出ることがある。このように他方の面の印刷が重なった状態に見えてしまうと、表面印刷情報の視認性が悪化してしまうので好ましくない。   Here, when a receipt printed on both sides is issued, for example, back side information printed on the back side may be seen through from the front side, or printing on the back side may ooze out to the front side. Thus, if the printing on the other surface appears to be overlapped, the visibility of the surface printing information is deteriorated, which is not preferable.

例えば、インクジェットヘッドを用いた印刷では一方の面に印刷したインクが他方の面の側に滲み出ることがあり、両面にサーマルヘッドを用いて印刷を行う場合には一方の面の印刷時に他方の面の側の感熱面が発色して「裏写り」と呼ばれる滲みが発生することがある。また、印刷密度あるいは濃度の濃いグラフィックスが裏面に印刷されている場合には表面側の印刷を見たときに裏面側の印刷が透けて見えてしまうことがある。このような滲み、透けは用紙が薄い場合に発生しやすい。   For example, in printing using an inkjet head, ink printed on one side may ooze out to the other side, and when printing on both sides using a thermal head, The heat-sensitive surface on the side of the surface may develop color and cause blurring called “show-through”. In addition, when graphics having a high print density or high density are printed on the back side, the print on the back side may be seen through when the print on the front side is viewed. Such bleeding and see-through are likely to occur when the paper is thin.

特に、光学的に読み取ることを前提として印刷される読取対象データ、例えば、一次元バーコードや二次元コードなどのようなコードデータが印刷されている部分に、反対側の面の印刷の滲み、透けが発生すると、このようなデータの読取精度が低下するという問題が発生しやすい。   In particular, data to be read that is printed on the premise of optical reading, for example, a portion where code data such as a one-dimensional barcode or a two-dimensional code is printed, bleeding on the opposite surface, When the see-through occurs, such a problem that the reading accuracy of the data is lowered tends to occur.

本発明の課題は、このような点に鑑みて、記録媒体の一方の面に印刷されたバーコードなどの読取対象データの印刷が、他方の面に印刷されたロゴマークなどの印刷によって、読取精度の低下、視認性の低下などの悪影響が及ぶことの無いように、両面印刷を行うための印刷データを生成可能な印刷データの処理方法、印刷データ処理装置及び印刷データ処理システムを提案することにある。   In view of the above, the problem of the present invention is that printing of data to be read such as a barcode printed on one surface of a recording medium is performed by printing a logo mark or the like printed on the other surface. To propose a print data processing method, print data processing apparatus, and print data processing system capable of generating print data for performing double-sided printing so as not to adversely affect accuracy, visibility, etc. It is in.

上記の課題を解決するために、本発明は、記録媒体の両面に印刷を行うための印刷データの処理方法であって、
前記記録媒体の一方の側の第1面に印刷される第1面印刷データに第1印刷データが含まれているか否かを分析する第1分析工程と、
前記記録媒体の他方の側の第2面に印刷される第2面印刷データに第2印刷データが含まれているか否かを分析する第2分析工程と、
前記第2印刷データが含まれている場合に、前記第1印刷データと前記第2印刷データが前記記録媒体の前記第1面および前記第2面において重なった位置に印刷されないように、前記第1面印刷データおよび前記第2面印刷データの少なくとも一方を調整するデータ調整工程とを含み、
前記第1印刷データおよび前記第2印刷データのそれぞれは、光学的に読み取ることを前提に印刷される読取対象データ、および、当該読取対象データ以外のグラフィックスデータのうちの少なくとも一方であることを特徴としている。
In order to solve the above problems, the present invention is a print data processing method for performing printing on both sides of a recording medium,
A first analysis step of analyzing whether or not the first print data is included in the first surface print data printed on the first surface on one side of the recording medium;
A second analysis step of analyzing whether the second print data is included in the second surface print data printed on the second surface on the other side of the recording medium;
When the second print data is included, the first print data and the second print data are not printed at the overlapping positions on the first surface and the second surface of the recording medium. A data adjustment step of adjusting at least one of the first-side print data and the second-side print data,
Each of the first print data and the second print data is at least one of read target data to be printed on the premise of optical reading and graphics data other than the read target data. It is a feature.

本発明の印刷データの処理方法では、記録媒体の第1面に印刷される第1印刷データと、反対側の第2面に印刷される第2印刷データとが、相互に重ならない位置となるように、第1面印刷データおよび第2面印刷データの一方あるいは双方が調整あるいは加工される。したがって、調整後の第1面印刷データおよび第2面印刷データを用いて記録媒体に両面印刷を行えば、第1印刷データと第2印刷データは印刷位置が重ならないので、滲み、透けなどの悪影響が相互に及ぶことがない。   In the print data processing method of the present invention, the first print data printed on the first surface of the recording medium and the second print data printed on the second surface on the opposite side are positioned so as not to overlap each other. As described above, one or both of the first side print data and the second side print data are adjusted or processed. Therefore, if double-sided printing is performed on the recording medium using the adjusted first-side print data and second-side print data, the first print data and the second print data do not overlap with each other. There are no negative effects on each other.

視認性が要求されるロゴなどのグラフィックス、バーコードなどのように光学的に読み取る必要のある読取対象データを第1、第2印刷データとして予め設定しておけば、これらの視認性、読取精度の低下を回避できる。また、記録媒体の厚さが薄く、滲み、透けが発生しやすい記録媒体に両面印刷を行う場合には、例えば、記録媒体の両面に印刷密度の高いグラフィックスデータが重なった状態で印刷されないように、第1、第2印刷データとしてグラフィックスデータを設定しておけばよい。あるいは、第1印刷データとしてグラフィックスデータを設定し、第2印刷データとしてテキストデータを設定しておけば、印刷された取引情報などのテキストデータが反対側の広告宣伝用のグラフィックスデータの滲み、透けによって読みにくくなるという弊害を防止できる。   If the target data that needs to be read optically, such as graphics such as logos and barcodes that require visibility, is set in advance as the first and second print data, these visibility and reading A reduction in accuracy can be avoided. In addition, when performing double-sided printing on a recording medium where the recording medium is thin and easily bleeds and see-through, for example, it may not be printed with graphics data having a high print density superimposed on both sides of the recording medium. In addition, graphics data may be set as the first and second print data. Alternatively, if graphics data is set as the first print data and text data is set as the second print data, the text data such as the printed transaction information is blurred on the opposite side of the advertising graphics data. This prevents the harmful effect of being difficult to read due to see-through.

特に、読取対象データである一次元バーコードあるいは二次元コードを印刷する場合には、その裏面側に印刷密度の高いグラフィックスが印刷されると、一次元バーコード、二次元コードの読取精度が低下してしまう。この弊害を防止するためには、前記第1印刷データとして一次元バーコードデータあるいは二次元コードデータを設定し、前記第2印刷データとしてグラフィックスデータを設定しておけばよい。逆に、第1印刷データをグラフィックスデータとし、第2印刷データを一次元バーコードデータあるいは二次元コードデータに設定しておいてもよい。なお、本発明において、読取対象データとは、印刷後に光学的に読み取られるデータであり、典型的な例は一次元バーコード、二次元コードであるが、これ以外の文字、図形、記号、模様からなるシンボルなどであっても、印刷後に光学的に読み取り対象とされる印刷データであれば、当該読取対象データに含まれる。   In particular, when printing one-dimensional barcodes or two-dimensional codes that are data to be read, if high-density graphics are printed on the back side, the reading accuracy of the one-dimensional barcodes and two-dimensional codes is improved. It will decline. In order to prevent this problem, one-dimensional barcode data or two-dimensional code data may be set as the first print data, and graphics data may be set as the second print data. Conversely, the first print data may be set as graphics data, and the second print data may be set as one-dimensional barcode data or two-dimensional code data. In the present invention, the data to be read is data that is optically read after printing, and typical examples are a one-dimensional barcode and a two-dimensional code, but other characters, figures, symbols, patterns, etc. Even if the symbol is a print data that is optically read after printing, it is included in the read data.

ここで、第1印刷データと第2印刷データが記録媒体の表裏において重なった位置に印刷されないようにするためには、前記データ調整工程において、前記第1印刷データが印刷される第1面印刷位置に対応する第2面の印刷位置が、余白、あるいは、前記第2面印刷データに含まれているテキストデータの印刷位置となるように、前記第2面印刷データを調整すればよい。   Here, in order to prevent the first print data and the second print data from being printed at overlapping positions on the front and back of the recording medium, the first print data in which the first print data is printed in the data adjustment step. The second side print data may be adjusted so that the print position of the second side corresponding to the position is the margin or the print position of the text data included in the second side print data.

また、第1印刷データが印刷される第1面とは反対側の第2面に、連続してグラフィックスデータが印刷される場合には、これらのグラフィックスデータの間が、余白、あるいは、前記第2面印刷データに含まれているテキストデータの印刷位置となるように、前記第2面印刷データを調整し、前記余白あるいはテキストデータに対応する前記第1面に前記第1印刷データが印刷されるように、前記第1面印刷データを調整すればよい。   When graphics data is continuously printed on the second surface opposite to the first surface on which the first print data is printed, a space between these graphics data, or The second side print data is adjusted so that the print position of the text data included in the second side print data is adjusted, and the first print data is placed on the first side corresponding to the margin or text data. The first side print data may be adjusted so that printing is performed.

さらに、前記記録媒体の前記第2面における前記第2面印刷データの印刷領域を予め定めた複数の区画に分けておき、前記データ調整工程では、前記第1印刷データが印刷される第1面印刷位置に対応する前記第2面の前記区画に、前記第2印刷データが印刷されないように前記第2面印刷データを調整することもできる。   Furthermore, the print area of the second surface print data on the second surface of the recording medium is divided into a plurality of predetermined sections, and in the data adjustment step, the first surface on which the first print data is printed. The second surface print data may be adjusted so that the second print data is not printed in the section of the second surface corresponding to the printing position.

この代わりに、前記記録媒体の前記第1面における前記第1面印刷データの印刷領域の一部を予め前記第1印刷データの第1面印刷位置として定めておき、前記データ調整工程では、前記第1面印刷位置に対応する前記第2面の印刷位置に前記第2印刷データが印刷されないように前記第2面印刷データを調整することもできる。   Instead, a part of the print area of the first surface print data on the first surface of the recording medium is set in advance as the first surface print position of the first print data, and in the data adjustment step, It is also possible to adjust the second side print data so that the second print data is not printed at the print position on the second side corresponding to the first side print position.

次に、本発明を、POSシステム等の両面印刷されたレシートを発行するシステムに適用する場合には、例えば、前記第1面印刷データは、取引の内容を表すテキストデータと、当該取引を特定するためのIDを表す前記一次元バーコードデータあるいは二次元コードデータとを含むレシート発行用印刷データ、または、店舗データを表す前記一次元バーコードデータあるいは二次元コードデータと取引の内容を表すテキストデータとを含むレシート発行用第1面印刷データである。また、前記第2面印刷データは、クーポン用あるいは広告用の前記グラフィックスデータを含むレシート発行用第2面印刷データである。   Next, when the present invention is applied to a system that issues a receipt printed on both sides, such as a POS system, for example, the first side print data specifies text data representing the contents of a transaction and the transaction. Receipt-issuing print data including the one-dimensional barcode data or two-dimensional code data representing the ID to be used, or the text representing the transaction contents of the one-dimensional barcode data or two-dimensional code data representing the store data 1st print data for receipt issuance including data. The second-side print data is receipt-issued second-side print data including the graphics data for coupons or advertisements.

または、前記第1面印刷データは、店舗のロゴを表す前記グラフィックスデータと取引の内容を表すテキストデータを含むレシート発行用第1面印刷データである。前記第2面印刷データは、クーポン用あるいは広告用の前記グラフィックスデータと、前記一次元バーコードデータあるいは二次元コードデータとを含むレシート発行用第2面印刷データである。   Alternatively, the first side print data is receipt first side print data including the graphics data representing a store logo and text data representing transaction details. The second-side print data is receipt-issued second-side print data including the coupon or advertisement graphics data and the one-dimensional barcode data or two-dimensional code data.

次に、本発明は上記の印刷データの処理方法により印刷データを処理する印刷データ処理装置であって、
記録媒体の一方の側の第1面に印刷される第1面印刷データに第1印刷データが含まれているか否かを分析する第1分析部と、
前記記録媒体の他方の側の第2面に印刷される第2面印刷データに、第2印刷データが含まれているか否かを分析する第2分析部と、
前記第2印刷データが含まれている場合に、前記第1印刷データと前記第2印刷データが前記記録媒体の前記第1面および前記第2面において重なった位置に印刷されないように、前記第1面印刷データおよび前記第2面印刷データの少なくとも一方を調整するデータ調整部とを含むことを特徴としている。
Next, the present invention is a print data processing apparatus for processing print data by the above print data processing method,
A first analysis unit that analyzes whether or not the first print data is included in the first surface print data printed on the first surface on one side of the recording medium;
A second analysis unit for analyzing whether or not the second print data is included in the second surface print data printed on the second surface on the other side of the recording medium;
When the second print data is included, the first print data and the second print data are not printed at the overlapping positions on the first surface and the second surface of the recording medium. And a data adjustment unit that adjusts at least one of the first-side print data and the second-side print data.

また、本発明は、POSシステム等として用いることのできる印刷データ処理システムであって、上記構成の印刷データ処理装置と、前記データ調整部によって調整された後の前記第1面印刷データおよび前記第2面印刷データを前記記録媒体に印刷する印刷装置とを有していることを特徴としている。   In addition, the present invention is a print data processing system that can be used as a POS system or the like, the print data processing apparatus having the above-described configuration, the first-side print data after being adjusted by the data adjustment unit, and the first data And a printing apparatus that prints the two-sided print data on the recording medium.

本発明では、記録媒体の両面印刷用の第1面印刷データおよび第2面印刷データを調整して、第1面に印刷されるバーコードデータ等の第1印刷データが、反対側の第2面に印刷されるグラフィックスデータなどの第2印刷データと重なった位置に印刷されないようにしている。したがって、印刷濃度の高いグラフィックス印刷による滲み、透けなどに起因して生ずる反対側の面に印刷されたバーコードなどの印刷の視認性の低下、読取精度の低下を確実に防止できる。   In the present invention, the first print data and the second print data for double-sided printing on the recording medium are adjusted so that the first print data such as barcode data printed on the first print is the second print data on the opposite side. The print data is prevented from being printed at a position overlapping the second print data such as graphics data printed on the surface. Therefore, it is possible to surely prevent a reduction in the visibility of printing such as a barcode printed on the opposite surface caused by bleeding or see-through due to high-density graphics printing, and a reduction in reading accuracy.

本発明を適用したPOSシステムのシステム構成図である。1 is a system configuration diagram of a POS system to which the present invention is applied. 図1の印刷装置の制御ブロック図である。FIG. 2 is a control block diagram of the printing apparatus in FIG. 1. 図1のPOS端末の印刷データ処理動作を示す概略フローチャートである。3 is a schematic flowchart showing print data processing operation of the POS terminal of FIG. 1. 印刷位置の調整方法の一例を示す説明図である。It is explanatory drawing which shows an example of the adjustment method of a printing position. 印刷位置の調整方法の一例を示す説明図である。It is explanatory drawing which shows an example of the adjustment method of a printing position. 印刷位置の調整方法の一例を示す説明図である。It is explanatory drawing which shows an example of the adjustment method of a printing position. 印刷位置の調整方法の一例を示す説明図である。It is explanatory drawing which shows an example of the adjustment method of a printing position. レシートの印刷例を示す説明図である。It is explanatory drawing which shows the example of printing of a receipt.

以下に、図面を参照して、本発明をスーパーやコンビニエンス・ストア等の店舗にて利用されるPOSシステムのPOS端末に適用した場合の実施の形態を説明する。   Hereinafter, an embodiment in which the present invention is applied to a POS terminal of a POS system used in a store such as a supermarket or a convenience store will be described with reference to the drawings.

図1に示すように、本実施の形態に係るPOSシステム1は、ホスト装置(POS端末コンピューター)2および印刷装置(レシートプリンター)3を備えたPOS端末4と、有線あるいは無線のネットワーク5を介して当該POS端末4の統括管理を行うPOSサーバー6とを有している。   As shown in FIG. 1, a POS system 1 according to the present embodiment includes a POS terminal 4 having a host device (POS terminal computer) 2 and a printing device (receipt printer) 3, and a wired or wireless network 5. And a POS server 6 that performs overall management of the POS terminal 4.

POSサーバー6は、CPU11と、ROM12、RAM13等のメモリとを有し、ROM12内に記憶された制御プログラムにしたがって、RAM13内のバッファー等に記憶された情報の処理を行う。RAM13内には、商品コードブロック15、商品名ブロック16、金額ブロック17、在庫ブロック18、広告データブロック19、クーポンデータブロック20、ポイントデータブロック21などの各記憶領域が含まれており、CPU11は、POS端末4の側から送信される入力情報に基づいて、商品コード、商品名、金額に関する情報を抽出し、レシートRへの決済情報の印刷およびPOS端末4のディスプレイの表示に用いる商品データを生成する。   The POS server 6 includes a CPU 11 and memories such as a ROM 12 and a RAM 13, and processes information stored in a buffer or the like in the RAM 13 in accordance with a control program stored in the ROM 12. The RAM 13 includes storage areas such as a product code block 15, a product name block 16, a price block 17, an inventory block 18, an advertisement data block 19, a coupon data block 20, and a point data block 21, and the CPU 11 Based on the input information transmitted from the POS terminal 4 side, information relating to the product code, product name, and amount is extracted, and product data used for printing payment information on the receipt R and displaying on the display of the POS terminal 4 is obtained. Generate.

なお、「商品データ」とは、レシートR上に決済処理の内容を印刷するための決済情報印刷データの元となるデータを指すものである。また、商品コードブロック15、商品名ブロック16および金額ブロック17は、一般に商品マスターと呼ばれるルックアップテーブルにより構成されるものである。   The “product data” refers to data that is the basis of payment information print data for printing the contents of the payment process on the receipt R. The product code block 15, the product name block 16, and the money amount block 17 are configured by a look-up table generally called a product master.

一方、POS端末4のホスト装置2は、POSサーバー6内の商品マスターを参照して商品データを取得して決済情報印刷データを生成する。POS端末4の印刷装置3は、当該決済情報印刷データに基づいて印刷を行って作成したレシートRを発行する。これらホスト装置2と印刷装置3は有線あるいは無線の通信回線を介して接続されている。両面印刷されたレシートRを発行する場合には、ホスト装置2は決済情報の印刷データDとしてレシートRの表面および裏面に印刷される表面印刷データD1および裏面印刷データD2を生成して印刷装置3に送信し、印刷装置3はこれらのデータD1、D2に基づき両面印刷されたレシートRを発行する。   On the other hand, the host device 2 of the POS terminal 4 refers to the product master in the POS server 6 to acquire product data and generate payment information print data. The printing device 3 of the POS terminal 4 issues a receipt R created by printing based on the payment information print data. The host device 2 and the printing device 3 are connected via a wired or wireless communication line. When issuing the receipt R printed on both sides, the host device 2 generates the front surface print data D1 and the back surface print data D2 to be printed on the front and back surfaces of the receipt R as the print data D of the payment information, and the printing device 3 The printing apparatus 3 issues a receipt R printed on both sides based on the data D1 and D2.

ホスト装置2は、オペレーターによるキーボード31を介しての入力またはバーコードリーダー32を用いた商品バーコードの読み取りによって、商品に関する情報(商品情報)を取得する。また、カードリーダー33によって顧客のクレジットカードや会員カードを読み取り、クレジット清算に関する情報や顧客に関する情報を取得し、これらを入力情報としてPOSサーバー6に供給し、POSサーバー6から表示、印刷用の商品データを取得する。さらに、ホスト装置2は、POSサーバー6から取得した商品データを元に生成した商品情報を表示するディスプレイ34を有しており、オペレーターおよび顧客が購入商品の金額等を確認できるように、これらを表示する。   The host device 2 acquires information (product information) related to the product by input through the keyboard 31 by the operator or reading the product barcode using the barcode reader 32. Also, the customer's credit card or membership card is read by the card reader 33, information relating to credit clearing or information relating to the customer is acquired, supplied to the POS server 6 as input information, and displayed and printed from the POS server 6. Get the data. Further, the host device 2 has a display 34 for displaying product information generated based on the product data acquired from the POS server 6, so that the operator and the customer can confirm the price of the purchased product. indicate.

ホスト装置2の制御は、ウィンドウズ(登録商標)等のOS35上で稼働するプリンタードライバーOLE for Retail POS(以下、「OPOS」と呼ぶ。)により行われる。OPOSとは、OS35上で稼働するPOSアプリケーション36に対して、印刷装置3やバーコードリーダー32等の周辺デバイスとの機種依存性のないインターフェースを提供するものであり、デバイスのカテゴリー毎に対応したコントロールオブジェクト(CO)37と、デバイスの機種毎に対応したサービスオブジェクト(SO)38とによって構成されている。   The host device 2 is controlled by a printer driver OLE for Retail POS (hereinafter referred to as “OPOS”) that operates on an OS 35 such as Windows (registered trademark). OPOS provides a POS application 36 running on the OS 35 with a device-independent interface with peripheral devices such as the printing apparatus 3 and the barcode reader 32, and corresponds to each device category. A control object (CO) 37 and a service object (SO) 38 corresponding to each device model are configured.

POSアプリケーション36は、POSサーバー6から送信される商品データや入力情報に基づいてレシートR上に印刷される決済情報印刷データを生成するが、この決済情報印刷データは、OS35を介して印刷装置用のCO37に引き渡され、さらにCO37から印刷装置3の機種に対応したSO38に引き渡される。SO38は、この決済情報印刷データを加工して、印刷装置3のコマンド仕様に応じた印刷コマンドを生成し、印刷装置3へ送信する。なお、上記したOPOSは、CO37とSO38とをコンバインした形態で、プリンタードライバー39としてユーザーに提供される。   The POS application 36 generates payment information print data to be printed on the receipt R based on the product data and input information transmitted from the POS server 6, and this payment information print data is for the printing device via the OS 35. The CO 37 is delivered to the SO 38 corresponding to the model of the printing apparatus 3. The SO 38 processes the payment information print data, generates a print command according to the command specification of the printing apparatus 3, and transmits the print command to the printing apparatus 3. The OPOS described above is provided to the user as the printer driver 39 in a form in which CO 37 and SO 38 are combined.

また、POSアプリケーション36は、決済処理の内容に応じて、レシートR上に印刷するためのバーコード、2次元コードなどの取引ID用のコードデータを生成する。また、予め記憶しているロゴなどのグラフィックスデータを読み出す。そして、これらのデータをテキストデータからなる決済情報印刷データに付加する。ここで、決済情報印刷データに、これらコードデータおよび/またはグラフィックスデータを付加したものが「印刷データD」である。   Further, the POS application 36 generates code data for a transaction ID such as a barcode or a two-dimensional code for printing on the receipt R according to the contents of the payment process. Also, graphics data such as a logo stored in advance is read out. These data are added to settlement information print data consisting of text data. Here, “print data D” is obtained by adding the code data and / or graphics data to the payment information print data.

ここで、POSアプリケーション36は、両面印刷用の印刷データDを生成する場合には、コードデータが印刷されるレシートRの面の反対側の面に、グラフィックスデータが印刷されることの無いように、これらコードデータおよびグラフィックスデータの印刷位置が調整された表面印刷データD1および裏面印刷データD2を生成し、これらを印刷装置3の側に送信する。   Here, when the POS application 36 generates the print data D for double-sided printing, the graphics data is not printed on the surface opposite to the surface of the receipt R on which the code data is printed. Then, the front surface print data D1 and the back surface print data D2 in which the print positions of the code data and the graphics data are adjusted are generated and transmitted to the printing apparatus 3 side.

すなわち、POSアプリケーション36は、レシートRの一方の面に印刷される印刷データにコードデータが含まれているか否かを分析する第1分析部、他方の面に印刷される印刷データにグラフィックスデータが含まれているか否かを分析する第2分析部、および、グラフィックスデータが含まれている場合に、コードデータとグラフィックスデータが、レシートRの両側の面において重なった位置に印刷されないように印刷データを調整するデータ調整部としての機能を備えている。   That is, the POS application 36 is a first analysis unit that analyzes whether or not code data is included in the print data printed on one side of the receipt R, and graphics data is printed on the print data printed on the other side. When the second analysis unit for analyzing whether or not the image data is included and the graphics data are included, the code data and the graphics data are not printed at the overlapping positions on both sides of the receipt R. It has a function as a data adjustment unit for adjusting print data.

なお、取引ID用のコードデータや、グラフィックスデータをPOSサーバー6内で生成し(または、POSサーバー6内に記憶しておき)、これをホスト装置2が取得して決済情報印刷データに付加するようにしても良い。また、グラフィックスデータをプリンタードライバー39内に格納しておき、プリンタードライバー39がこれを決済情報印刷データに付加するようにしても良い。   The code data for the transaction ID and the graphics data are generated in the POS server 6 (or stored in the POS server 6), and the host device 2 acquires and adds them to the payment information print data. You may make it do. Further, the graphics data may be stored in the printer driver 39, and the printer driver 39 may add this to the payment information print data.

次に、印刷装置3はサーマルヘッド方式のレシートプリンターであり、ホスト装置2から各種制御コマンドや印刷データを受信するデータ受信部41、搬送部42、印刷部43、切断部44、これらの各部42〜44を駆動する駆動部46、および印刷装置3の全体を制御する制御部47等を備えている。   Next, the printing apparatus 3 is a thermal head type receipt printer, which receives various control commands and print data from the host apparatus 2, a data receiving section 41, a transport section 42, a printing section 43, a cutting section 44, and each of these sections 42. Drive unit 46 for driving .about.44, a control unit 47 for controlling the entire printing apparatus 3, and the like.

図2を参照して印刷装置3の制御構成を詳しく説明する。印刷装置3の搬送部42はレシート送りモーター51を有し、紙送りスイッチ(図示省略)の押下または印刷に伴って長尺状のレシート用紙52(例えばロール紙)の搬送を行う。印刷部43は、レシート用紙52の表面に印刷を行う第1印刷ヘッド(サーマルヘッド)53とレシート用紙52の裏面に印刷を行う第2印刷ヘッド(サーマルヘッド)54とを備え、レシート用紙52の搬送に同期して当該レシート用紙52に印刷を行って、両面印刷されたレシートRを発行可能である。切断部44は、レシートカッター55およびこれを駆動するカッターモーター56を有し、印刷済みのレシート用紙52の先端部分の後端が切断されて一定の長さのレシートRが得られる。駆動部46は、送りモータードライバー57、ヘッドドライバー58a、58b、カッターモータードライバー59を有し、各部を駆動する。   The control configuration of the printing apparatus 3 will be described in detail with reference to FIG. The transport unit 42 of the printing apparatus 3 has a receipt feed motor 51 and transports a long receipt paper 52 (for example, roll paper) when a paper feed switch (not shown) is pressed or printed. The printing unit 43 includes a first print head (thermal head) 53 that performs printing on the front surface of the receipt paper 52 and a second print head (thermal head) 54 that performs printing on the back surface of the receipt paper 52. It is possible to issue a receipt R printed on both sides by printing on the receipt paper 52 in synchronization with the conveyance. The cutting unit 44 includes a receipt cutter 55 and a cutter motor 56 that drives the receipt cutter 55, and the rear end of the front end portion of the printed receipt paper 52 is cut to obtain a receipt R having a certain length. The drive unit 46 includes a feed motor driver 57, head drivers 58a and 58b, and a cutter motor driver 59, and drives each unit.

制御部47は、CPU61、ROM62、RAM63および入出力制御装置(以下、「IOC」(Input Output Contrller)と称する)64を備え、互いに内部バス65により接続されている。ROM62は、CPU61が各種制御を行うための制御プログラムを記憶する制御プログラムブロック66と、テキスト文字印刷のための文字フォントデータなどの各種制御データ等を記憶する制御データブロック67とを有している。なお、文字フォントデータは、ROM62内に記憶するのではなく、CG−ROMを別個に備えても良い。   The control unit 47 includes a CPU 61, a ROM 62, a RAM 63, and an input / output control device (hereinafter referred to as “IOC” (Input Output Controller)) 64, which are connected to each other via an internal bus 65. The ROM 62 includes a control program block 66 that stores a control program for the CPU 61 to perform various controls, and a control data block 67 that stores various control data such as character font data for printing text characters. . The character font data is not stored in the ROM 62 but may be provided separately with a CG-ROM.

RAM63は、フラグ等として使用される各種ワークエリアブロック68、データ受信部41で受信した印刷データを一時的に記憶する受信バッファー69、印刷部43により印刷可能な状態に展開したデータを記憶するプリントバッファー70等を有し、制御処理のための作業領域として使用される。受信バッファー69は、行単位で受信した印刷データを、その受信順序に従って行データ毎に記憶しており、複数分の行データを保存し得る容量を有している。   The RAM 63 stores various work area blocks 68 used as flags, a reception buffer 69 that temporarily stores print data received by the data receiving unit 41, and a print that stores data expanded into a printable state by the printing unit 43. It has a buffer 70 and the like, and is used as a work area for control processing. The reception buffer 69 stores the print data received in units of lines for each line data in accordance with the reception order, and has a capacity capable of storing a plurality of line data.

プリントバッファー70には、第1印刷ヘッド53によって印刷を行うための表面印刷データが展開される第1プリントバッファー70aと、第2印刷ヘッド54によって印刷を行うための裏面印刷データが展開される第2プリントバッファー70bが含まれている。これらのプリントバッファー70a、70bには、受信バッファー69に記憶保持された印刷データに基づいて、印刷イメージに展開した表面印刷データおよび裏面印刷データが展開される。また、RAM63は電源が切断されても記憶したデータを保持しておくように常にバックアップされている。なお、RAM63に代えて不揮発性メモリ(フラッシュROM,EEPROM等)内に、これらのデータを記憶しておくようにしても良い。   In the print buffer 70, the first print buffer 70a in which front side print data for printing by the first print head 53 is developed and the back side print data for printing by the second print head 54 are developed. 2 print buffers 70b are included. In these print buffers 70a and 70b, the front side print data and the back side print data developed in the print image are developed based on the print data stored and held in the reception buffer 69. The RAM 63 is always backed up so as to retain the stored data even when the power is turned off. Note that these data may be stored in a nonvolatile memory (flash ROM, EEPROM, etc.) instead of the RAM 63.

IOC64は、CPU61の機能を補うと共に各種周辺回路とのインターフェース信号を取り扱うための論理回路が、ゲートアレイやカスタムLSI等により構成されて組み込まれている。これにより、IOC64は、ホスト装置2から受信した印刷データをそのまま或いは加工して内部バス65に取り込むと共に、CPU61と連動して、CPU61から内部バス65に出力されたデータや制御信号を、そのまま或いは加工して駆動部46に出力する。そして、CPU61は、上記の構成により、ROM62内の制御プログラムやRAM63内の設定値に従って、IOC64を介して印刷装置3内の各部から各種信号・データを入出力する。すなわち、入力した各種信号・データに基づいてRAM63内の各種データを処理し、IOC64を介して印刷装置3内の各部に各種信号・データを出力することにより、ホスト装置2から受信した印刷データの印刷制御を行う。   The IOC 64 supplements the function of the CPU 61 and incorporates a logic circuit for handling interface signals with various peripheral circuits, configured by a gate array, a custom LSI, or the like. As a result, the IOC 64 captures the print data received from the host device 2 as it is or processes it and fetches it into the internal bus 65, and in conjunction with the CPU 61, the data or control signal output from the CPU 61 to the internal bus 65 is received as is or Processed and output to the drive unit 46. The CPU 61 inputs / outputs various signals and data from each unit in the printing apparatus 3 via the IOC 64 according to the control program in the ROM 62 and the set value in the RAM 63 with the above configuration. That is, various types of data in the RAM 63 are processed based on the various types of input signals / data, and various types of signals / data are output to each unit in the printing apparatus 3 via the IOC 64, so that the print data received from the host apparatus 2 can be output. Perform print control.

(印刷データ生成方法)
図3はホスト装置2のPOSアプリケーション36によって実行される表面印刷データD1および裏面印刷データD2の生成手順を示す概略フローチャートである。図4はレシートRにおける印刷位置の調整方法の一例を示す説明図であり、(a)はその表面印刷データD1の配置例であり、(b)は裏面印刷データD2の配置例であり、(c)は位置調整後の裏面印刷データD2の配置例である。
(Print data generation method)
FIG. 3 is a schematic flowchart showing a procedure for generating the front side print data D1 and the back side print data D2 executed by the POS application 36 of the host apparatus 2. 4A and 4B are explanatory diagrams showing an example of a method for adjusting the printing position on the receipt R. FIG. 4A is an arrangement example of the front surface printing data D1, and FIG. 4B is an arrangement example of the back surface printing data D2. c) is an arrangement example of the back side print data D2 after the position adjustment.

これらの図にしたがって説明すると、POSサーバー6の側から決済情報データを受信すると、ホスト装置2はプリンタードライバー39に設定される設定情報に基づき印刷データを生成する。両面印刷が設定されている場合には、印刷データDとして表面印刷データD1および裏面印刷データD2を生成する。   Referring to these drawings, when receiving payment information data from the POS server 6 side, the host device 2 generates print data based on setting information set in the printer driver 39. When double-sided printing is set, front side print data D1 and back side print data D2 are generated as print data D.

まず、図3のステップST1において、予め設定されている表面フォーマットに、決済情報データの各データの割り付け(配分)を行い、これに基づき、ステップST2において表面印刷データD1を生成する。次に、ステップST3において、表面印刷データD1にコードデータBが含まれているか否かを分析し、含まれている場合には、YESの矢印の流れに沿ってステップST4に移行して、その位置を認識しておく。   First, in step ST1 of FIG. 3, each data of the payment information data is allocated (distributed) to a preset surface format, and based on this, surface print data D1 is generated in step ST2. Next, in step ST3, it is analyzed whether or not the code data B is included in the surface print data D1, and if included, the process proceeds to step ST4 along the flow of the arrow of YES, and Recognize the position.

例えば、図4(a)に示すように、レシート表面に、グラフィックスデータGからなるロゴデータ、テキストデータTからなるお知らせデータ、取引データ、コードデータBからなる取引IDデータ、およびテキストデータTからなるポイントデータを配分する。   For example, as shown in FIG. 4 (a), on the receipt surface, from logo data consisting of graphics data G, notification data consisting of text data T, transaction data, transaction ID data consisting of code data B, and text data T Allocate point data.

次に、図3のステップST5において、決済情報の各データにおける裏面印刷データD2とされるデータの中に、グラフィックスデータGが含まれているか否かを分析する。裏面印刷データD2にグラフィックスデータGが含まれている場合には、図3のステップST5からYESの流れに沿ってステップST6に移行し、予め設定されている裏面フォーマットにしたがって裏面に印刷される各データの割り付けを行う。しかる後に、ステップST7において、裏面側に印刷されるグラフィックスデータGの印刷位置が、表面に印刷されるコードデータBの印刷位置に重なるか否かを判別する。   Next, in step ST5 of FIG. 3, it is analyzed whether or not the graphics data G is included in the data to be the back side print data D2 in each data of the payment information. When the graphics data G is included in the back side print data D2, the process proceeds from step ST5 to step ST6 in FIG. 3 to step ST6, and is printed on the back side according to a preset back side format. Allocate each data. Thereafter, in step ST7, it is determined whether or not the printing position of the graphics data G printed on the back side overlaps the printing position of the code data B printed on the front surface.

ここで、図4(b)に示すように、レシート裏面に印刷されるグラフィックスデータGの位置が、表面のコードデータBの位置と重なる場合には、図3のステップST7からYESの流れに沿ってステップST8に進み、グラフィックスデータGの印刷位置がコードデータBの印刷位置に重ならないように位置調整を行う。次に、ステップST9において、調整後の位置に基づき、裏面印刷データD2を編集して印刷装置3に供給する裏面印刷データD2を生成する。   Here, as shown in FIG. 4B, when the position of the graphics data G printed on the back side of the receipt overlaps the position of the code data B on the front surface, the flow proceeds from step ST7 in FIG. 3 to YES. In step ST8, the position of the graphics data G is adjusted so that it does not overlap the code data B. Next, in step ST9, based on the adjusted position, the reverse side print data D2 is edited and supplied to the printing apparatus 3 to generate the reverse side print data D2.

例えば、図4(c)に示すように、裏面印刷データD2におけるグラフィックスデータGの印刷位置に余白Sを挿入して、グラフィックスデータGの印刷位置がコードデータBの印刷位置に対してレシート用紙の長さ方向にずれた位置となるように、当該グラフィックスデータGの位置調整を行い、余白Sを含む裏面印刷データD2を生成する。   For example, as shown in FIG. 4C, a margin S is inserted at the printing position of the graphics data G in the back surface printing data D2, and the printing position of the graphics data G is received with respect to the printing position of the code data B. The position of the graphics data G is adjusted so that the position is shifted in the length direction of the paper, and the back side print data D2 including the margin S is generated.

この結果、コードデータBの印刷位置の裏面に印刷密度の高いグラフィックスデータGが印刷されてコードデータBの読取精度が低下してしまうという弊害を回避できる。図4の例では、余白Sを挿入してグラフィックスデータGの位置をシフトさせているが、裏面に印刷されるデータにテキストデータTが含まれている場合には、余白Sの代わりにテキストデータTを配置することも可能である。一般的に、テキストデータTをコードデータBの裏面側に印刷しても当該コードデータBの読取精度が低下することはない。なお、厚さの薄いレシート用紙などを用いる場合において、テキストデータTがコードデータBの裏面に印刷された場合においてもコードデータBの読取精度が低下する恐れがある場合には、余白Sを挿入する必要があることは勿論である。   As a result, it is possible to avoid the adverse effect that the graphics data G having a high printing density is printed on the back surface of the printing position of the code data B and the reading accuracy of the code data B is lowered. In the example of FIG. 4, the margin S is inserted to shift the position of the graphics data G. However, when the text data T is included in the data printed on the back side, the text is substituted for the margin S. It is also possible to arrange the data T. In general, even if the text data T is printed on the back side of the code data B, the reading accuracy of the code data B does not decrease. When using a thin receipt paper or the like, if the text data T is printed on the back side of the code data B and the read accuracy of the code data B may be lowered, a blank S is inserted. Of course, it is necessary to do this.

これに対して、レシート裏面に印刷されるグラフィックスデータGの位置が表面のコードデータBの位置に重ならない場合には、図3において、ステップST7からNOの流れに沿ってステップST9に移行して、グラフィックスデータGの位置調整を行うことなく裏面印刷データD2を生成する。   On the other hand, if the position of the graphics data G printed on the back side of the receipt does not overlap the position of the code data B on the front surface, the process proceeds from step ST7 to step ST9 in FIG. Thus, the back surface print data D2 is generated without adjusting the position of the graphics data G.

なお、表面印刷データD1にコードデータBが含まれていない場合には、図3のステップST3からNOの流れに沿ってステップST10に制御が移行し、裏面に印刷されるデータを裏面フォーマットにしたがって割り付け、これに基づきステップST9において裏面印刷データD2を生成する。同様に、裏面印刷データにグラフィックスデータGが含まれていない場合にも、図3のステップST5からNOの流れに沿ってステップST10に制御が移行して、裏面に印刷されるデータを裏面フォーマットにしたがって割り付け、これに基づきステップST9において裏面印刷データD2を生成する。   When the code data B is not included in the front surface print data D1, the control shifts from step ST3 to step ST10 in FIG. 3 according to the flow of NO, and the data printed on the back surface is in accordance with the back surface format. Based on the allocation, back surface print data D2 is generated in step ST9. Similarly, when the graphics data G is not included in the back side print data, the control shifts from step ST5 to step ST10 in FIG. 3 in step ST10, and the data printed on the back side is converted to the back side format. Based on this, back side print data D2 is generated in step ST9.

(位置調整方法の別の例)
次に、コードデータBの印刷位置にグラフィックスデータGの印刷位置が重ならないようにするための位置調整方法の各例を以下に述べる。
(Another example of position adjustment method)
Next, each example of the position adjustment method for preventing the printing position of the graphics data G from overlapping the printing position of the code data B will be described below.

図5に示す例では、レシートRの裏面印刷データに複数のグラフィックスデータG1〜G4が含まれている場合に、図5(a)に示すように、例えば、一定幅の余白S1、S2、S3がこれらの間に挿入された状態となるように調整を行って裏面印刷データD2を生成する。そして、図5(b)に示すように、表面印刷データにおけるコードデータBの印刷位置が裏面側のグラフィックスデータG4の印刷位置に重なる場合には、表面印刷データにおけるコードデータBの印刷位置に余白S11を挿入して、コードデータBの印刷位置がグラフィックスデータG4に隣接する余白S4に対峙する位置となるように調整して表面印刷データD1を生成する。   In the example shown in FIG. 5, when a plurality of graphics data G <b> 1 to G <b> 4 is included in the back side print data of the receipt R, for example, as shown in FIG. Adjustments are made so that S3 is inserted between them, and back side print data D2 is generated. As shown in FIG. 5B, when the printing position of the code data B in the front surface printing data overlaps with the printing position of the graphics data G4 on the back surface side, the printing position of the code data B in the front surface printing data is set. The margin S11 is inserted and adjusted so that the printing position of the code data B is opposite to the margin S4 adjacent to the graphics data G4 to generate the surface printing data D1.

次に、図6(a)に示すように、レシート印刷では、一般に、レシートの表面フォーマットにおいて、レシート先頭に印刷される店舗ロゴなどのグラフィックスデータGの印刷領域A1、および、レシート後端に印刷される取引IDなどのコードデータBの印刷領域A4は固定長領域とされており、これらの間が、取引データ量に応じて長さが可変な印刷領域A2、A3とされている。この可変長領域には、テキストデータTからなる店舗からのお知らせ情報などが印刷される可変長領域A2およびテキストデータTからなる取引データが印刷される可変長領域A3が含まれている。   Next, as shown in FIG. 6A, in receipt printing, generally, in the surface format of the receipt, the print area A1 of the graphics data G such as a store logo printed at the top of the receipt, and the rear end of the receipt. The print area A4 of the code data B such as the transaction ID to be printed is a fixed-length area, and the area between these is the print areas A2 and A3 whose length is variable according to the amount of transaction data. This variable-length area includes a variable-length area A2 in which notification information from a store made up of text data T is printed and a variable-length area A3 in which transaction data made up of text data T is printed.

この場合には、図6(b)に示すように、裏面印刷データ領域も表面印刷領域A1〜A4に対応するように印刷区画a1〜a4に分け、コードデータBが印刷される表面印刷領域に対応する印刷区画a4を、グラフィックスデータGの印刷禁止区画に設定し、a1〜a3のいずれかにグラフィックスデータGが印刷されるように印刷位置を調整して裏面印刷データD2を生成すればよい。また、裏面に印刷されるデータにコードデータBが含まれている場合には、表面側にグラフィックスデータGが印刷される印刷領域A1に対応する印刷区画a1にコードデータBが印刷されないように調整して裏面印刷データD2を生成すればよい。   In this case, as shown in FIG. 6 (b), the back surface print data area is also divided into print sections a1 to a4 so as to correspond to the front surface print areas A1 to A4, and the code data B is printed on the front surface print area. If the corresponding print section a4 is set as a print prohibition section of the graphics data G, the printing position is adjusted so that the graphics data G is printed in any one of a1 to a3, and the back surface print data D2 is generated. Good. In addition, when the code data B is included in the data printed on the back side, the code data B is not printed in the print section a1 corresponding to the print area A1 where the graphics data G is printed on the front side. The back side print data D2 may be generated by adjusting.

したがって、図6に示す例では、裏面の印刷区画a1はテキストデータTおよびグラフィックスデータGが印刷可能な領域となり、印刷区画a2、a3はいずれのデータT、G、Bでも印刷可能な領域となり、印刷区画a4はテキストデータTのみが印刷可能な領域となる。なお、表裏にグラフィックスデータGが印刷された場合に、例えば、表面側のグラフィックスデータGの視認性が低下するなどのおそれがある場合には、裏面の印刷区画a1を、テキストデータTのみが印刷可能な領域に設定しておけばよい。   Therefore, in the example shown in FIG. 6, the print section a1 on the back surface is an area where the text data T and the graphics data G can be printed, and the print sections a2, a3 are areas where any data T, G, B can be printed. The print section a4 is an area where only the text data T can be printed. When the graphics data G is printed on the front and back sides, for example, when there is a possibility that the visibility of the graphics data G on the front side is lowered, the print section a1 on the back side is set to only the text data T. Should be set in the printable area.

図6の例においては、裏面側の印刷区画a1〜a4に印刷されるデータの配分を調整することにより、グラフィックスデータGがコードデータBの裏面側に印刷されることを防止している。この代わりに、図7に示すように、裏面側の印刷区画a11〜a15において、表面側にコードデータBが印刷される領域A14に対応する印刷区画a14を制限領域として設定しておき、ここに印刷されるデータをNULLデータあるいは予め定めた内容のテキストデータT1に制限しておくことも可能である。同様に、表面側にグラフィックスデータGが印刷される領域A11に対応する印刷区画a11を制限領域として設定し、ここにはコードデータBを印刷しないように制限しておくことが可能である。   In the example of FIG. 6, the graphics data G is prevented from being printed on the back side of the code data B by adjusting the distribution of data to be printed in the print sections a1 to a4 on the back side. Instead, as shown in FIG. 7, in the print sections a11 to a15 on the back side, the print section a14 corresponding to the area A14 where the code data B is printed on the front side is set as a restricted area. It is also possible to limit the data to be printed to NULL data or text data T1 having a predetermined content. Similarly, a print section a11 corresponding to the area A11 where the graphics data G is printed on the front side is set as a restricted area, and it is possible to restrict the code data B from being printed here.

(両面印刷例)
次に、図8には具体的なレシートの表面印刷例および裏面印刷例を示してある。この図に示すように、レシート発行用の表面印刷データには、レシートR1の表面印刷領域A21〜A25にそれぞれ印刷されるデータが含まれている。表面印刷領域A21には、グラフィックスデータGである店舗ロゴ、「領収証」、およびテキストデータTである店舗情報が含まれている。表面印刷領域A22には、テキストデータTである営業案内情報が含まれている。表面印刷領域A23には、テキストデータTである取引データが含まれている。表面印刷領域A24にはテキストデータTであるレジデータが含まれており、表面印刷領域A25には一次元バーコードデータB1の形態の取引IDデータが含まれている。これらに加えて、レシートR1の表面に、広告データ、クーポンデータ、ポイントデータなどが印刷される場合もある。
(Double-sided printing example)
Next, FIG. 8 shows a specific example of front side printing and back side printing of a receipt. As shown in this figure, the surface print data for receipt issuance includes data to be printed in the surface print areas A21 to A25 of the receipt R1. The front surface printing area A21 includes a store logo that is graphics data G, a “receipt”, and store information that is text data T. The front side printing area A22 includes business guide information that is text data T. The front surface printing area A23 includes transaction data that is text data T. The front surface printing area A24 includes registration data as text data T, and the front surface printing area A25 includes transaction ID data in the form of one-dimensional barcode data B1. In addition to these, advertisement data, coupon data, point data, and the like may be printed on the surface of the receipt R1.

レシートR1の裏面印刷領域a21〜a25は、表面印刷領域A21〜A25にそれぞれ対応する位置の領域である。表面印刷領域A21に対応する裏面印刷領域a21にテキストデータTである会員募集案内メッセージが印刷され、テキストデータTが印刷されている表面印刷領域A22に対応する裏面印刷領域a22に二次元コードB2の形態で携帯サイトデータとテキストデータTが印刷されている。レシートR1の裏面に、広告データ、クーポンデータ、ポイントデータ等が一次元バーコード、二次元コードと共に印刷される場合もある。   The back surface print areas a21 to a25 of the receipt R1 are areas corresponding to the front surface print areas A21 to A25, respectively. A member recruitment guidance message that is text data T is printed in the back surface print area a21 corresponding to the front surface print area A21, and the two-dimensional code B2 is stored in the back surface print area a22 corresponding to the front surface print area A22 in which the text data T is printed. Mobile site data and text data T are printed in the form. Advertisement data, coupon data, point data, and the like may be printed on the back side of the receipt R1 together with the one-dimensional barcode and the two-dimensional code.

レシートR1では、表面に印刷された取引IDを表すバーコードB1の裏面にはグラフィックスデータGが印刷されておらず、裏面に印刷された携帯サイトを表す二次元コードB2の表面にもグラフィックスデータGが印刷されていない。したがって、これらのコードデータの読取精度が、反対の面に印刷されている印刷密度の高いグラフィックスデータの滲み、透けによって低下してしまうことがない。   In the receipt R1, the graphics data G is not printed on the back surface of the barcode B1 representing the transaction ID printed on the front surface, and the graphics are also printed on the front surface of the two-dimensional code B2 representing the mobile site printed on the back surface. Data G is not printed. Therefore, the reading accuracy of these code data is not reduced by bleeding or show-through of graphics data having a high printing density printed on the opposite surface.

(その他の実施の形態)
上記の例は本発明をPOSシステムに適用した場合のものであるが、テキストデータに、グラフィックスデータやコードデータを付加した両面印刷用の印刷データを生成するホスト装置と、両面印刷用の印刷ヘッドを備えた印刷装置とを備えた印刷システムであれば、端末の種類を問わず本発明を適用可能である。
(Other embodiments)
In the above example, the present invention is applied to the POS system. However, the host device for generating print data for duplex printing in which graphics data and code data are added to text data, and printing for duplex printing are provided. The present invention can be applied to any printing system including a printing apparatus including a head regardless of the type of terminal.

1 POSシステム、2 ホスト装置、3 印刷装置、4 POS端末、5 ネットワーク、6 POSサーバー、11 CPU、12 ROM、13 RAM、15 商品コードブロック、16 商品名ブロック、17 金額ブロック、18 在庫ブロック、19 広告データブロック、20 クーポンデータブロック、21 ポイントデータブロック、R,R1 レシート、D 印刷データ、D1 表面印刷データ、D2 裏面印刷データ、31 キーボード、32 バーコードリーダー、33 カードリーダー、34 ディスプレイ、35 OS 36 POSアプリケーション、37 CO、38 SO、39 プリンタードライバー、41 データ受信部、42 搬送部、43 印刷部、44 切断部、46 駆動部、47 制御部、51 レシート送りモーター、52 レシート用紙、53 第1印刷ヘッド、54 第2印刷ヘッド、55 レシートカッター、56 カッターモーター、57 送りモータードライバー、58a,58b ヘッドドライバー、59 カッターモータードライバー、61 CPU、62 ROM、63 RAM、64 IOC、65 内部バス、66 制御プログラムブロック、67 制御データブロック、68 ワークエリアブロック、69 受信バッファー、70 プリントバッファー、70a 第1プリントバッファー、70b 第2プリントバッファー、G,G1,G2,G3,G4 グラフィックスデータ、T テキストデータ、B コードデータ、S,S1〜S4,S11 余白、A1〜A4,A11〜A14 印刷領域、A21〜A25 表面印刷領域、a1〜a4,a11〜a15 印刷区画、a21〜a25 裏面印刷領域 1 POS system, 2 host device, 3 printing device, 4 POS terminal, 5 network, 6 POS server, 11 CPU, 12 ROM, 13 RAM, 15 product code block, 16 product name block, 17 price block, 18 inventory block, 19 advertising data block, 20 coupon data block, 21 point data block, R, R1 receipt, D print data, D1 front side print data, D2 back side print data, 31 keyboard, 32 bar code reader, 33 card reader, 34 display, 35 OS 36 POS application, 37 CO, 38 SO, 39 Printer driver, 41 Data receiving unit, 42 Transport unit, 43 Printing unit, 44 Cutting unit, 46 Drive unit, 47 Control unit, 51 Receipt feed mode 52, receipt paper, 53 first print head, 54 second print head, 55 receipt cutter, 56 cutter motor, 57 feed motor driver, 58a, 58b head driver, 59 cutter motor driver, 61 CPU, 62 ROM, 63 RAM 64 IOC, 65 Internal bus, 66 Control program block, 67 Control data block, 68 Work area block, 69 Receive buffer, 70 Print buffer, 70a First print buffer, 70b Second print buffer, G, G1, G2, G3 , G4 graphics data, T text data, B code data, S, S1 to S4, S11 margins, A1 to A4, A11 to A14 printing area, A21 to A25 surface printing area, a1 to a4 11~a15 printing section, A 21 to A 25 side print area

Claims (9)

記録媒体の両面に印刷を行うための印刷データの処理方法であって、
前記記録媒体の一方の側の第1面に印刷される第1面印刷データに、光学的に読み取ることを前提に印刷される読取対象データである第1印刷データが含まれているか否かを分析する第1分析工程と、
前記記録媒体の他方の側の第2面に印刷される第2面印刷データに、前記読取対象データ以外のグラフィックスデータである第2印刷データが含まれているか否かを分析する第2分析工程と、
前記第1面印刷データに前記第1印刷データが含まれ、かつ、前記第2面印刷データに前記第2印刷データが含まれている場合に、前記第1印刷データと前記第2印刷データが前記記録媒体の前記第1面および前記第2面において重なった位置に印刷されないように、前記第1面印刷データおよび前記第2面印刷データの少なくとも一方を調整するデータ調整工程とを含むことを特徴とする印刷データの処理方法。
A print data processing method for printing on both sides of a recording medium,
Whether or not the first surface print data printed on the first surface on one side of the recording medium includes first print data that is read target data to be printed on the premise of optical reading. A first analysis step to analyze;
Second analysis for analyzing whether second print data that is graphics data other than the data to be read is included in the second print data that is printed on the second face on the other side of the recording medium. Process,
When the first print data is included in the first surface print data and the second print data is included in the second surface print data, the first print data and the second print data are And a data adjustment step of adjusting at least one of the first surface print data and the second surface print data so as not to be printed at the overlapping position on the first surface and the second surface of the recording medium. A characteristic print data processing method.
請求項において、
前記データ調整工程では、前記第1印刷データが印刷される第1面印刷位置に対応する第2面の位置が、余白、あるいは、前記第2面印刷データに含まれているテキストデータの印刷位置となるように、前記第2面印刷データを調整することを特徴とする印刷データの処理方法。
In claim 1 ,
In the data adjustment step, the position of the second surface corresponding to the first surface print position where the first print data is printed is a margin, or the print position of the text data included in the second surface print data The print data processing method is characterized in that the second side print data is adjusted so that
請求項において、
前記データ調整工程では、
前記第2面印刷データに複数の前記第2印刷データが含まれている場合に、これらの間の余白が挿入されるように、前記第2面印刷データを調整し、
前記余白に対応する前記第1面の位置に前記第1印刷データが印刷されるように、前記第1面印刷データを調整することを特徴とする印刷データの処理方法。
In claim 1 ,
In the data adjustment step,
When the second side print data includes a plurality of the second print data, the second side print data is adjusted so that a margin between them is inserted,
The print data processing method, wherein the first side print data is adjusted so that the first print data is printed at a position of the first side corresponding to the margin.
請求項において、
前記記録媒体の前記第2面における前記第2面印刷データの印刷領域を予め定めた複数の区画に分けておき、
前記データ調整工程では、前記第1印刷データが印刷される第1面印刷位置に対応する前記第2面の前記区画に、前記第2印刷データが印刷されないように前記第2面印刷データを調整することを特徴とする印刷データの処理方法。
In claim 1 ,
Dividing the print area of the second surface print data on the second surface of the recording medium into a plurality of predetermined sections;
In the data adjustment step, the second surface print data is adjusted so that the second print data is not printed in the section of the second surface corresponding to the first surface printing position where the first print data is printed. A method for processing print data.
請求項において、
前記記録媒体の前記第1面における前記第1面印刷データの印刷領域の一部を予め前記第1印刷データの第1面印刷位置として定めておき、
前記データ調整工程では、前記第1面印刷位置に対応する前記第2面の印刷位置に前記第2印刷データが印刷されないように前記第2面印刷データを調整することを特徴とする印刷データの処理方法。
In claim 1 ,
A part of the print area of the first surface print data on the first surface of the recording medium is determined in advance as a first surface print position of the first print data,
In the data adjustment step, the second surface print data is adjusted so that the second print data is not printed at the print position of the second surface corresponding to the first surface print position. Processing method.
請求項1ないしのうちのいずれかの項において、
前記第1面印刷データは、
取引の内容を表すテキストデータと、当該取引を特定するためのIDを表す一次元バーコードデータあるいは二次元コードデータとを含むレシート発行用第1面印刷データ、または、店舗データを表す一次元バーコードデータあるいは二次元コードデータと、取引の内容を表すテキストデータとを含むレシート発行用第1面印刷データであり、
前記第2面印刷データは、クーポン用あるいは広告用の前記グラフィックスデータを含むレシート発行用第2面印刷データであることを特徴とする印刷データの処理方法。
In any one of claims 1 to 5 ,
The first side print data is:
Receipt issuance first side print data including text data representing transaction content and one-dimensional barcode data or two-dimensional code data representing ID for identifying the transaction, or one-dimensional bar representing store data Receipt issuance first side print data including code data or two-dimensional code data and text data representing the contents of the transaction,
The print data processing method, wherein the second side print data is receipt second side print data including the graphics data for coupons or advertisements.
請求項1ないしのうちのいずれかの項において、
前記第1面印刷データは、クーポン用あるいは広告用の前記グラフィックスデータと、一次元バーコードデータあるいは二次元コードデータとを含むレシート発行用第1面印刷データであり、
前記第2面印刷データは、店舗のロゴを表す前記グラフィックスデータと取引の内容を表すテキストデータを含むレシート発行用第2面印刷データであることを特徴とする印刷データの処理方法。
In any one of claims 1 to 5 ,
The first side print data is first side print data for issuing a receipt including the graphics data for coupons or advertisements, and one-dimensional barcode data or two-dimensional code data.
The print data processing method, wherein the second side print data is receipt-issue second side print data including the graphics data representing a store logo and text data representing transaction contents.
記録媒体の両面に印刷を行うための印刷データを処理する印刷データ処理装置であって、
前記記録媒体の一方の側の第1面に印刷される第1面印刷データに、光学的に読み取ることを前提に印刷される読取対象データである第1印刷データが含まれているか否かを分析する第1分析部と、
前記記録媒体の他方の側の第2面に印刷される第2面印刷データに、前記読取対象データ以外のグラフィックスデータである第2印刷データが含まれているか否かを分析する第2分析部と、
前記第1面印刷データに前記第1印刷データが含まれ、かつ、前記第2面印刷データに前記第2印刷データが含まれている場合に、前記第1印刷データと前記第2印刷データが前記記録媒体の前記第1面および前記第2面において重なった位置に印刷されないように、前記第1面印刷データおよび前記第2面印刷データの少なくとも一方を調整するデータ調整部とを含むことを特徴とする印刷データ処理装置。
A print data processing apparatus for processing print data for printing on both sides of a recording medium ,
The first surface print data to be printed on a first surface of one side of the recording medium, whether it contains the first print data is read target data is printed on the assumption that read optically A first analysis unit for analysis;
Second analysis for analyzing whether second print data that is graphics data other than the data to be read is included in the second print data that is printed on the second face on the other side of the recording medium. And
When the first print data is included in the first surface print data and the second print data is included in the second surface print data, the first print data and the second print data are A data adjustment unit that adjusts at least one of the first surface print data and the second surface print data so as not to be printed at an overlapping position on the first surface and the second surface of the recording medium. A print data processing apparatus.
請求項に記載の印刷データ処理装置と、
前記データ調整部によって調整された後の前記第1面印刷データおよび前記第2面印刷データを前記記録媒体に印刷する印刷装置と、を有していることを特徴とする印刷データ処理システム。
A print data processing apparatus according to claim 8 ;
A print data processing system, comprising: a printing device that prints the first-side print data and the second-side print data after being adjusted by the data adjustment unit on the recording medium.
JP2010259839A 2010-11-22 2010-11-22 Print data processing method, print data processing apparatus, and print data processing system Expired - Fee Related JP5685901B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2010259839A JP5685901B2 (en) 2010-11-22 2010-11-22 Print data processing method, print data processing apparatus, and print data processing system
US13/297,401 US9141892B2 (en) 2010-11-22 2011-11-16 Adjusting one side print data to avoid overlap with the other side print data in two-sided printing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010259839A JP5685901B2 (en) 2010-11-22 2010-11-22 Print data processing method, print data processing apparatus, and print data processing system

Publications (3)

Publication Number Publication Date
JP2012113392A JP2012113392A (en) 2012-06-14
JP2012113392A5 JP2012113392A5 (en) 2013-11-28
JP5685901B2 true JP5685901B2 (en) 2015-03-18

Family

ID=46497567

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010259839A Expired - Fee Related JP5685901B2 (en) 2010-11-22 2010-11-22 Print data processing method, print data processing apparatus, and print data processing system

Country Status (1)

Country Link
JP (1) JP5685901B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6927919B2 (en) * 2018-04-24 2021-09-01 東芝テック株式会社 Electronic receipt system, payment device, sales promotion receipt server and information processing program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4708993B2 (en) * 2005-01-14 2011-06-22 キヤノン株式会社 Printing system, control method, and program
JP2011123705A (en) * 2009-12-11 2011-06-23 Sharp Corp Cash register

Also Published As

Publication number Publication date
JP2012113392A (en) 2012-06-14

Similar Documents

Publication Publication Date Title
US9141892B2 (en) Adjusting one side print data to avoid overlap with the other side print data in two-sided printing
US9218555B2 (en) Printing apparatus and printing control method for determining whether and where to print a watermark relative to print data
US8994961B2 (en) Reducing white space in a medium for printing
US9290022B2 (en) Receipt printing device having improved recording and cutting operation
EP2165839B1 (en) Method of controlling thermal printing
KR20050052378A (en) Printing system
JP2005335125A (en) Printer, printer interface, pos system, program and control method of printer
US7375844B2 (en) Method for generating a print data file, method for storing print data, a data storage medium therefor, and an apparatus for generating a data storage file
US9001171B2 (en) Double-sided receipt printing method and double-sided receipt printer
EP2503489B1 (en) Printer, printing method, and program for superposing received print data and stored print data
US10046577B2 (en) Printing device, printing system, and control method of a printing device
JP5685901B2 (en) Print data processing method, print data processing apparatus, and print data processing system
JP5736742B2 (en) Duplex printing apparatus and duplex printing method
US9387693B2 (en) Two-sided receipt printing method, two-sided receipt printing device, and recording medium storing a program executed by a control unit that controls a two-sided receipt printing device
US20180339523A1 (en) Printing device and control method of a printing device
JP2012206277A (en) Duplex printing apparatus and duplex printing method
US10507669B2 (en) Printer
JP2009276973A (en) Printer, pos system, control method for printer and program
JP2010012668A (en) Printing apparatus, control method of printing apparatus and print control program
CN107111919B (en) Print data processing device, print data processing method, program, and printing system
JP5431086B2 (en) Thermal printer and thermal printer control method
JP6544470B2 (en) Label issuing device and label printing method
JP4261852B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, RECORDING DEVICE, STORAGE MEDIUM, RECORDING SYSTEM, AND RECORDING MEDIUM ISSUING SYSTEM
JP2014063338A (en) Double-sided printing device and double-sided printing method
JP2006007524A (en) Printer, program, printing system and printing control method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131010

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20131010

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140918

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141007

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141203

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150106

R150 Certificate of patent or registration of utility model

Ref document number: 5685901

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees