JP5176726B2 - Printing apparatus, printing apparatus control method, and printing control program - Google Patents

Printing apparatus, printing apparatus control method, and printing control program Download PDF

Info

Publication number
JP5176726B2
JP5176726B2 JP2008173680A JP2008173680A JP5176726B2 JP 5176726 B2 JP5176726 B2 JP 5176726B2 JP 2008173680 A JP2008173680 A JP 2008173680A JP 2008173680 A JP2008173680 A JP 2008173680A JP 5176726 B2 JP5176726 B2 JP 5176726B2
Authority
JP
Japan
Prior art keywords
barcode
height
width
printing
paper feed
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
JP2008173680A
Other languages
Japanese (ja)
Other versions
JP2010012667A (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 JP2008173680A priority Critical patent/JP5176726B2/en
Publication of JP2010012667A publication Critical patent/JP2010012667A/en
Application granted granted Critical
Publication of JP5176726B2 publication Critical patent/JP5176726B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、印刷装置、印刷装置の制御方法および印刷制御プログラムに関し、特に、ホストコンピュータから送信されたバーコードを、記録紙の印刷領域に応じて規定値または規定値以下のサイズで印刷する印刷装置、印刷の制御方法および印刷制御プログラムに関する。   The present invention relates to a printing apparatus, a printing apparatus control method, and a printing control program, and in particular, printing that prints a barcode transmitted from a host computer with a specified value or a size equal to or less than a specified value according to a printing area of a recording sheet. The present invention relates to an apparatus, a printing control method, and a printing control program.

POS(Point of sale)システムの印刷装置では、ロール紙等の連続紙(記録紙)に購入品名や価格などの決済情報等を印刷し適宜切断してレシートとして発行する。そして、決済情報や各種付加情報等をコンピュータに簡単に入力できるように、レシートの下端などの所定の領域にこれらの情報や識別番号等をコード化した一次元のバーコード(以下、単にバーコードとも記す)を印刷することがある(例えば、特許文献1の図5)。   In a printing apparatus of a POS (Point of Sale) system, payment information such as purchased product name and price is printed on continuous paper (recording paper) such as roll paper, and is appropriately cut and issued as a receipt. A one-dimensional bar code (hereinafter simply referred to as a bar code) in which such information, identification number, etc. are encoded in a predetermined area such as the lower end of the receipt so that payment information and various additional information can be easily input to the computer. May also be printed (for example, FIG. 5 of Patent Document 1).

特開2005−335125号公報、図5Japanese Patent Laying-Open No. 2005-335125, FIG.

しかしながら、従来のPOSシステムの印刷装置によって発行されるレシートは、バーコードの付加により長くなり、このバーコードの高さ(記録紙の紙送り方向の長さ)分だけ記録紙が余分に消費されるので、記録紙の消費量が増えてしまうという問題がある。また、バーコードの幅(記録紙の紙送り方向に直交する方向の長さ)が大きい場合には、幅狭の記録紙には印刷が困難になるなどの問題もある。   However, a receipt issued by a conventional POS system printing apparatus becomes longer due to the addition of a bar code, and extra recording paper is consumed by the height of the bar code (the length of the recording paper in the paper feed direction). Therefore, there is a problem that the consumption of recording paper increases. In addition, when the width of the barcode (the length in the direction perpendicular to the paper feeding direction of the recording paper) is large, there is a problem that printing on a narrow recording paper becomes difficult.

本発明は、上記問題を解決することに係り、自動的にバーコードを縮小印刷して、記録紙の消費量の削減や幅狭の記録紙への印刷を実現することができる印刷装置、印刷装置の制御方法および印刷制御プログラムを提供することを目的とする。   The present invention relates to solving the above-described problem, and a printing apparatus and printing that can automatically reduce the barcode to reduce the consumption of recording paper and print on a narrow recording paper. It is an object to provide an apparatus control method and a print control program.

上記目的を達成するために、本発明に係る印刷装置は、ホストコンピュータから受信した印刷データに応じて記録紙に印刷する印刷装置であって、
前記印刷データに含まれるバーコードを印刷する場合に、該バーコードの高さが所定の規定値の高さ以上か否かを判定するバーコード高さ判定部と、
前記バーコードの印刷高さが前記規定値の高さ以上と判定された場合には、前記バーコードの印刷高さを縮小して、前記規定値の高さに設定するバーコード高さ設定部と、
を備え、前記設定された高さのバーコードを前記記録紙に印刷することを特徴とする。
上記構成によれば、自動的にバーコードの高さを縮小して印刷できるので、記録紙の消費量の削減を実現することができる。
また、好ましくは、上記構成に加えて更に、前記バーコードの幅が所定の規定値の幅以上か否かを判定するバーコード幅判定部と、
前記バーコードの幅が前記規定値の幅以上と判定された場合に、前記バーコードの幅を縮小して前記規定値の幅に設定するバーコード幅設定部と、
を備え、前記設定された高さ及び/又は幅のバーコードを前記記録紙に印刷することを特徴とする。
これにより、自動的にバーコードの高さ及び/又は幅を縮小して印刷できるので、記録紙の消費量の削減を実現することができるとともに、幅狭の記録紙への印刷を実現することもできるようになる。また、バーコードの縮小により、バーコード周辺には空きスペースが確保できるので、この空きスペースに、各種情報の印刷を行うことも可能である。
また、好ましくは、上記構成に加えて更に、紙送り量をカウントする紙送りカウンタと、
前記バーコードを印刷する場合に、前記紙送りカウンタのカウント値が所定の紙送り規定量以内か否かを判定するカウント値判定部と、
を備え、前記紙送りカウンタのカウント値が前記紙送り規定量を越える場合に、前記設定された高さ及び/又は幅のバーコードを前記記録紙に印刷することを特徴とする。
これにより、バーコードを印刷する際、紙送りカウンタのカウント値が紙送り規定量を超えている場合に、バーコードの高さを縮小して印刷できるので、紙送りカウント値が紙送り規定量を超えるような(印刷した行数の多い)、記録紙として長いレシートを発行するときにレシートの長さを短縮することができる。
In order to achieve the above object, a printing apparatus according to the present invention is a printing apparatus that prints on recording paper in accordance with print data received from a host computer,
A barcode height determination unit that determines whether the height of the barcode is equal to or higher than a predetermined specified height when printing the barcode included in the print data;
A barcode height setting unit that reduces the barcode printing height and sets the barcode printing height to the prescribed value height when it is determined that the barcode printing height is equal to or higher than the prescribed value height When,
The barcode having the set height is printed on the recording paper.
According to the above configuration, since the barcode height can be automatically reduced and printed, the consumption of the recording paper can be reduced.
Preferably, in addition to the above-described configuration, a barcode width determination unit that determines whether or not the barcode width is equal to or greater than a predetermined specified value width;
A barcode width setting unit that reduces the width of the barcode and sets the width to the specified value when the width of the barcode is determined to be equal to or greater than the specified value;
And a barcode having the set height and / or width is printed on the recording paper.
As a result, it is possible to automatically reduce the height and / or width of the barcode, so that the consumption of the recording paper can be reduced, and printing on a narrow recording paper can be realized. You will also be able to. In addition, since an empty space can be secured around the barcode by reducing the barcode, various information can be printed in the empty space.
Preferably, in addition to the above configuration, a paper feed counter for counting a paper feed amount;
A count value determination unit that determines whether or not the count value of the paper feed counter is within a predetermined paper feed regulation amount when printing the barcode;
The bar code having the set height and / or width is printed on the recording paper when the count value of the paper feed counter exceeds the prescribed paper feed amount.
As a result, when the barcode is printed, if the count value of the paper feed counter exceeds the specified paper feed amount, the barcode can be printed with a reduced height, so the paper feed count value is the specified paper feed amount. When a long receipt is issued as a recording sheet that exceeds the above (the number of printed lines is large), the length of the receipt can be shortened.

上記目的を達成するために、本発明に係る印刷装置の制御方法は、
ホストコンピュータから受信した印刷データに応じて記録紙に印刷する印刷装置の制御方法であって、
前記印刷データに含まれるバーコードを印刷する場合に、該バーコードの高さが所定の規定値の高さ以上か否かをチェックするステップと、
前記バーコードの印刷高さが前記規定値の高さ以上の場合には、前記バーコードの印刷高さを縮小して、前記規定値の高さに設定するステップと、
を含み、前記設定された高さのバーコードを前記記録紙に印刷することを特徴とする。
上記構成によれば、自動的にバーコードの高さを縮小して印刷できるので、記録紙の消費量の削減を実現することができる。
更に、前記バーコードの幅が所定の規定値の幅以上か否かを判定するステップと、
前記バーコードの幅が前記規定値の幅以上と判定された場合に、前記バーコードの幅を縮小して前記規定値の幅に設定するステップと、
を含み、前記設定された高さ及び/又は幅のバーコードを前記記録紙に印刷することを特徴とする。
これにより、自動的にバーコードの高さ及び/又は幅を縮小して印刷できるので、記録紙の消費量の削減を実現することができるとともに、幅狭の記録紙への印刷を実現することもできるようになる。また、バーコードの縮小により、バーコード周辺には空きスペースが確保できるので、この空きスペースに、各種情報の印刷を行うことも可能である。
上記目的を達成するために、本発明に係る印刷装置の制御方法は、ホストコンピュータから受信した印刷データに応じて記録紙に印刷する印刷装置の制御方法であって、
印刷データがバーコードを含む場合は、紙送りカウンタのカウント値をチェックして、カウント値が所定の紙送り規定量以内か否かをチェックするステップと、
前記紙送りカウント値が前記紙送り規定量を超えている場合は、前記バーコードの高さが、所定の規定値の高さ以上か否かを判定するステップと、
前記バーコードの高さが前記規定値の高さ以上と判定された場合は、前記バーコードの高さを規定値の高さまで収縮させて設定するステップと、
を含み、前記設定された高さの前記バーコードを前記記録紙に印刷することを特徴とする。
上記制御方法により、自動的にバーコードの高さを縮小して印刷するので、記録紙の消費量の削減を実現することができる。
また、好ましくは、上記制御方法に加えて更に、前記バーコードの幅が所定の規定値の幅以上か否かを判定するステップと、
前記バーコードの幅が前記規定値の幅以上と判定された場合は、前記バーコードの幅を前記規定値の幅まで収縮させて設定するステップと、
を含み、前記設定された高さ及び/又は幅のバーコードを前記記録紙に印刷することを特徴とする。
これにより、自動的にバーコードの高さ及び/又は幅を縮小して印刷するので、記録紙の消費量の削減を実現することができるとともに、幅狭の記録紙への印刷を実現することもできるようになる。また、バーコードの縮小により、バーコード周辺には空きスペースが確保できるので、この空きスペースに、各種情報の印刷を行うことも可能である。
また、本発明に係る印刷装置の制御プログラムは、上記印刷装置の制御方法の各ステップを、印刷装置に搭載されたCPUなどの制御部に実行させることを特徴とする。
上記印刷装置の制御プログラムを印刷装置に搭載されたCPUに実行させることにより、記録紙の消費量の削減を実現することができるとともに、幅狭の記録紙への印刷を実現することもできる。
In order to achieve the above object, a control method for a printing apparatus according to the present invention includes:
A method of controlling a printing apparatus that prints on recording paper according to print data received from a host computer,
When printing a barcode included in the print data, checking whether the height of the barcode is equal to or higher than a predetermined specified value; and
When the barcode printing height is equal to or higher than the prescribed value, the barcode printing height is reduced and set to the prescribed value height; and
And printing the barcode of the set height on the recording paper.
According to the above configuration, since the barcode height can be automatically reduced and printed, the consumption of the recording paper can be reduced.
A step of determining whether the width of the barcode is equal to or greater than a predetermined specified width;
When it is determined that the width of the barcode is equal to or greater than the width of the specified value, reducing the width of the barcode and setting the width to the specified value;
And printing a barcode having the set height and / or width on the recording paper.
As a result, it is possible to automatically reduce the height and / or width of the barcode, so that the consumption of the recording paper can be reduced, and printing on a narrow recording paper can be realized. You will also be able to. In addition, since an empty space can be secured around the barcode by reducing the barcode, various information can be printed in the empty space.
In order to achieve the above object, a control method of a printing apparatus according to the present invention is a control method of a printing apparatus that prints on a recording sheet according to print data received from a host computer,
If the print data includes a barcode, checking the count value of the paper feed counter to check whether the count value is within a predetermined paper feed regulation amount; and
When the paper feed count value exceeds the paper feed prescribed amount, determining whether the height of the barcode is equal to or higher than a predetermined prescribed value;
If it is determined that the height of the barcode is equal to or higher than the height of the specified value, the step of setting the height of the barcode contracted to the height of the specified value;
The barcode having the set height is printed on the recording paper.
Since the bar code height is automatically reduced and printed by the above control method, the consumption of the recording paper can be reduced.
Preferably, in addition to the above control method, the step of determining whether or not the width of the barcode is equal to or greater than a predetermined specified value width;
If it is determined that the width of the barcode is equal to or greater than the width of the specified value, the step of setting the width of the barcode contracted to the width of the specified value;
And printing a barcode having the set height and / or width on the recording paper.
As a result, the barcode height and / or width is automatically reduced and printed, so that the consumption of recording paper can be reduced and printing on narrow recording paper can be realized. You will also be able to. In addition, since an empty space can be secured around the barcode by reducing the barcode, various information can be printed in the empty space.
A printing apparatus control program according to the present invention causes a control unit such as a CPU mounted on the printing apparatus to execute each step of the printing apparatus control method.
By causing the CPU installed in the printing apparatus to execute the control program for the printing apparatus, it is possible to reduce the consumption of the recording paper, and it is also possible to realize printing on a narrow recording paper.

以下に、本発明に係る印刷装置、印刷装置の制御方法及び印刷装置の制御プログラムの好適な実施の形態について図面を参照して説明する。図1は、本発明の実施の形態に係る印刷装置の全体構成を示すブロック図である。   Preferred embodiments of a printing apparatus, a printing apparatus control method, and a printing apparatus control program according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the overall configuration of a printing apparatus according to an embodiment of the present invention.

図1に示すように、本実施の形態に係る印刷装置は、例えばPOSシステム1の印刷装置10であり、POSシステム1のホスト端末であるホストコンピュータ20に接続されている。   As illustrated in FIG. 1, the printing apparatus according to the present embodiment is, for example, a printing apparatus 10 of a POS system 1 and is connected to a host computer 20 that is a host terminal of the POS system 1.

なお、ホストコンピュータ20と印刷装置10との接続は、有線または無線によるLAN等のネットワークを介した接続でもよく、また1対1の直接接続でもよい。ホストコンピュータ20は、OS(オペレーティング・システム)21と、このOS21上で動作するPOSアプリケーション22、プリンタドライバ23等を有し、印刷データはPOSアプリケーション22によって作成される。プリンタドライバ23は、印刷データをコマンドやイメージに変換して印刷装置10に送信する。   The connection between the host computer 20 and the printing apparatus 10 may be a connection via a wired or wireless network such as a LAN, or may be a one-to-one direct connection. The host computer 20 includes an OS (Operating System) 21, a POS application 22 that operates on the OS 21, a printer driver 23, and the like, and print data is created by the POS application 22. The printer driver 23 converts the print data into a command or image and transmits it to the printing apparatus 10.

一方、印刷装置10はホストコンピュータ20から送信される印刷データを受信して、ロール紙などの連続紙(記録紙)上に印刷するとともに、バーコードデータを自動的に縮小して印刷する機能を有する。そして、印刷装置10は、紙送りカウンタ11と、カウント値判定部12と、バーコード高さ判定部13と、バーコード高さ設定部14と、バーコード幅判定部15と、バーコード幅設定部16と、印刷部17と、紙送り部18と、CPU19と、紙送り規定量記憶部19Bと、規定値記憶部19Cと、を備える。   On the other hand, the printing apparatus 10 has a function of receiving print data transmitted from the host computer 20 and printing it on continuous paper (recording paper) such as roll paper and automatically reducing and printing barcode data. Have. The printing apparatus 10 includes a paper feed counter 11, a count value determination unit 12, a barcode height determination unit 13, a barcode height setting unit 14, a barcode width determination unit 15, and a barcode width setting. 16, a printing unit 17, a paper feeding unit 18, a CPU 19, a paper feeding prescribed amount storage unit 19 </ b> B, and a prescribed value storage unit 19 </ b> C.

紙送りカウンタ11は、紙送り部18による紙送りに伴い、紙送り量をカウントするように機能する。   The paper feed counter 11 functions to count the paper feed amount as the paper feed unit 18 feeds paper.

カウント値判定部12は、バーコードの印刷要求があった場合に、紙送りカウンタのカウント値が紙送り規定量記憶部19Bに記憶された紙送り規定量以内か否かを判定するように機能する。   The count value determination unit 12 functions to determine whether or not the count value of the paper feed counter is within the prescribed paper feed amount stored in the prescribed paper feed amount storage unit 19B when a barcode printing request is made. To do.

バーコード高さ判定部13は、バーコードの高さが規定値記憶部19Cに記憶された規定値の高さ以上か否かを判定するように機能する。   The barcode height determination unit 13 functions to determine whether or not the barcode height is equal to or higher than the specified value stored in the specified value storage unit 19C.

バーコード高さ設定部14は、バーコードの印刷高さが規定値の高さ以上と判定された場合には、そのバーコードの印刷高さを縮小して、規定値記憶部19Cに記憶された前記規定値の高さに設定するように機能する。   When it is determined that the barcode printing height is equal to or higher than the specified value, the barcode height setting unit 14 reduces the barcode printing height and stores the reduced barcode printing height in the specified value storage unit 19C. It functions to set the height of the specified value.

バーコード幅判定部15は、バーコードの幅が規定値記憶部19Cに記憶された規定値の幅以上か否かを判定するように機能する。   The barcode width determination unit 15 functions to determine whether or not the barcode width is equal to or greater than the specified value width stored in the specified value storage unit 19C.

バーコード幅設定部16は、バーコードの幅が規定値記憶部19Cに記憶された規定値の幅以上と判定された場合に、バーコードの幅を縮小して前記規定値の幅に設定するように機能する。   When it is determined that the barcode width is equal to or greater than the width of the specified value stored in the specified value storage unit 19C, the barcode width setting unit 16 reduces the barcode width and sets it to the specified value width. To function.

印刷部17は、印刷要求のあった印刷データの印刷を実行する。また、印刷部17は、例えば、紙送り方向に直交する方向に複数の発熱体を配列したサーマルヘッドを備えて、ライン単位で一括して印刷を行う。   The printing unit 17 executes printing of print data requested for printing. The printing unit 17 includes, for example, a thermal head in which a plurality of heating elements are arranged in a direction orthogonal to the paper feeding direction, and performs printing in batches in units of lines.

紙送り部18は、連続紙(ロール紙等)を印刷部17による印刷のタイミングに協調しながら紙送りする。連続紙としては、例えば5.8mm幅、72m長のロール紙などが用いられる。   The paper feeding unit 18 feeds continuous paper (roll paper or the like) while coordinating with the timing of printing by the printing unit 17. As the continuous paper, for example, a roll paper having a width of 5.8 mm and a length of 72 m is used.

CPU19Aは、印刷装置10の各部を制御するように機能する。紙送り規定量記憶部19Bは、RAMやROM等で構成され、バーコードを縮小するか否かの判断の基準となるカンウント値の紙送り規定量を記憶する。規定値記憶部19Cは、RAMやROM等で構成され、バーコードの高さ及び幅の規定値を記憶する。   The CPU 19A functions to control each unit of the printing apparatus 10. The prescribed paper feed amount storage unit 19B is configured by a RAM, a ROM, or the like, and stores a prescribed paper feed amount of a count value that serves as a reference for determining whether or not to reduce the barcode. The specified value storage unit 19C is configured by a RAM, a ROM, or the like, and stores specified values of the height and width of the barcode.

次に、本実施の形態における印刷装置10の制御方法の手順を、図2および図3に示すフローチャートを参照して説明する。   Next, the procedure of the control method of the printing apparatus 10 in the present embodiment will be described with reference to the flowcharts shown in FIGS.

電源が投入されて、印刷装置10が稼動状態にある場合に、ホストコンピュータ20におけるプリンタドライバ23はPOSシステムアプリケーション22によって作成された商店のロゴ、購入日時、決済情報(購入した商品名、数量、商品価格、小計等)、その他付加情報などの各種の文字や画像の印刷データ、印刷装置10を制御する制御コマンド、バーコードデータなどを印刷装置10に送信する。   When the power is turned on and the printing apparatus 10 is in an operating state, the printer driver 23 in the host computer 20 displays the store logo, purchase date and time, and settlement information (purchased product name, quantity, etc.) created by the POS system application 22. The product price, subtotal, etc.) and other character and image print data such as additional information, control commands for controlling the printing apparatus 10, barcode data, etc. are transmitted to the printing apparatus 10.

図2において、ホストコンピュータ20からの制御コマンドにより印刷要求がなされる(ステップS1:Yes)と、印刷装置10は、紙送りカウンタ11の初期化のための条件を確認する(ステップS2)。この初期化条件は、レシートのカットなど印刷以外の動作を実施した場合、ロゴ印刷などの特定の内容の印刷を実行した場合、一定時間経過した場合(省電力モード移行等)のいずれかを満たす場合である。   In FIG. 2, when a print request is made by a control command from the host computer 20 (step S1: Yes), the printing apparatus 10 checks conditions for initializing the paper feed counter 11 (step S2). This initialization condition satisfies any of operations other than printing, such as cutting a receipt, printing a specific content such as logo printing, or when a certain period of time has passed (such as shifting to a power saving mode). Is the case.

ステップS1にて初期化条件が満たされた場合(ステップS2:Yes)は、紙送りカウンタ11の初期化を行い(ステップS3)、印刷要求による印刷対象がバーコードか否かを判定する(ステップS4)。一方、初期化条件が満たされない場合(ステップS2:No)は、紙送りカウンタ11の初期化を行わずにステップS4を実行する。   If the initialization condition is satisfied in step S1 (step S2: Yes), the paper feed counter 11 is initialized (step S3), and it is determined whether or not the print target by the print request is a barcode (step S3). S4). On the other hand, if the initialization condition is not satisfied (step S2: No), step S4 is executed without initializing the paper feed counter 11.

ステップS4にて、印刷対象がバーコード以外の場合(ステップS4:No)は、その印刷対象を印刷し、ロール紙の紙送りを行う(ステップS5)。この紙送りに伴い、紙送りカウンタ11のカウント値がカウントアップされる。   In step S4, when the print target is other than the barcode (step S4: No), the print target is printed and the roll paper is fed (step S5). Along with this paper feed, the count value of the paper feed counter 11 is counted up.

また、ステップS4にて、印刷対象がバーコードの場合(ステップS4:Yes)は、紙送りカウンタ11のカウント値をチェックして、カウント値が紙送り規定量記憶部19Bに記憶された紙送り規定量以内か否かをチェックする(ステップS6)。   In step S4, if the object to be printed is a barcode (step S4: Yes), the count value of the paper feed counter 11 is checked, and the count value is stored in the specified paper feed amount storage unit 19B. It is checked whether it is within the prescribed amount (step S6).

このチェックの結果、紙送りカウント値が紙送り規定量以内である場合(ステップS6:Yes)は、印刷対象のバーコードをそのままのサイズで印刷し(ステップS7)、紙送り部18が紙送りを行う。この紙送りに伴い、紙送りカウンタ11のカウント値がカウントアップされる。   As a result of this check, if the paper feed count value is within the paper feed prescribed amount (step S6: Yes), the barcode to be printed is printed in the same size (step S7), and the paper feed unit 18 feeds the paper. I do. Along with this paper feed, the count value of the paper feed counter 11 is counted up.

なお、上記紙送り規定量は、印刷装置10に初期値として予め紙送り規定量記憶部19Bに設定されているもののほか、紙送り規定量記憶部19Bの紙送り規定量をユーザが任意に書き換えるようにしてもよい。   The prescribed paper feed amount is set in advance in the paper feed prescribed amount storage unit 19B as an initial value in the printing apparatus 10, and the user arbitrarily rewrites the paper feed prescribed amount in the paper feed prescribed amount storage unit 19B. You may do it.

一方、紙送りカウント値が紙送り規定量を超えている場合(ステップS6:No)は、印刷対象のバーコードのサイズを縮小して印刷し(ステップS8)、紙送り部18はロール紙の紙送りを行う。この紙送りに伴い、紙送りカウンタ11のカウント値がカウントアップされる。   On the other hand, when the paper feed count value exceeds the paper feed prescribed amount (step S6: No), the size of the barcode to be printed is reduced and printed (step S8), and the paper feed unit 18 prints the roll paper. Feed the paper. Along with this paper feed, the count value of the paper feed counter 11 is counted up.

印刷実行(ステップS5、S7、S8)後はステップS1に戻る。   After printing (steps S5, S7, S8), the process returns to step S1.

以上の手順により、紙送りカウント値が紙送り規定量を超えるような(印刷した行数の多い)、長いレシートを発行するときに、バーコードのサイズを縮小して印刷することができ、レシートの長さを短縮することができる。   With the above procedure, when issuing a long receipt that causes the paper feed count value to exceed the paper feed prescribed amount (the number of printed lines is large), the barcode size can be reduced and printed. Can be shortened.

次に、上記各ステップS8のバーコードサイズの縮小について、その詳細な手順を図3を参照して説明する。図3は、バーコードサイズの縮小手順を示すフローチャートである。
図3において、バーコード高さ判定部13は印刷要求があったバーコードの高さが規定値記憶部19Cに記憶されたバーコードの高さの規定値以上か否かを判定する(ステップS11)。
Next, the detailed procedure for reducing the barcode size in each step S8 will be described with reference to FIG. FIG. 3 is a flowchart showing a procedure for reducing the barcode size.
In FIG. 3, the barcode height determination unit 13 determines whether or not the height of the barcode requested to be printed is equal to or greater than a specified value of the barcode height stored in the specified value storage unit 19C (step S11). ).

バーコードの高さが規定値以上と判定された場合(ステップS11:Yes)は、バーコード高さ設定部14は、バーコードを規定値の高さまで収縮させ、印刷するバーコードの高さを規定値に設定する(ステップS12)。   When it is determined that the barcode height is equal to or higher than the specified value (step S11: Yes), the barcode height setting unit 14 contracts the barcode to the specified height, and sets the height of the barcode to be printed. The specified value is set (step S12).

一方、バーコードが規定値未満の高さであると判定された場合(ステップS11:Yes)は、高さの収縮はせずに、印刷要求があったバーコードの高さを維持するように設定する(ステップS13)。   On the other hand, when it is determined that the barcode is less than the specified value (step S11: Yes), the height of the barcode requested for printing is maintained without shrinking the height. Set (step S13).

上記ステップS12またはステップS13の実行後、続いてバーコード幅判定部15はバーコードの幅が規定値記憶部19Cに記憶されたバーコードの幅の規定値以上か否かを判定する(ステップS14)。   After the execution of step S12 or step S13, the barcode width determination unit 15 subsequently determines whether or not the barcode width is equal to or greater than the specified value of the barcode width stored in the specified value storage unit 19C (step S14). ).

バーコードの幅が規定値以上と判定された場合(ステップS14:Yes)は、バーコード幅設定部16は、バーコードの幅を規定値の幅まで収縮させ、印刷するバーコードの幅を規定値に設定する(ステップS15)。   When it is determined that the barcode width is equal to or greater than the specified value (step S14: Yes), the barcode width setting unit 16 contracts the barcode width to the specified value width and defines the barcode width to be printed. A value is set (step S15).

一方、バーコードの幅が規定値未満であると判定された場合は、幅の収縮はせずに、印刷要求があったバーコードの幅を維持するように設定する(ステップS16)。   On the other hand, when it is determined that the barcode width is less than the specified value, the width of the barcode requested for printing is maintained without shrinking the width (step S16).

上記ステップS15またはステップS16の実行後、設定された高さ,幅のバーコードを印刷(ステップS17)し、紙送り部18はロール紙を紙送りする。この紙送りに伴い、紙送りカウンタ11のカウント値がカウントアップされる。   After the execution of step S15 or step S16, the barcode having the set height and width is printed (step S17), and the paper feeding unit 18 feeds the roll paper. Along with this paper feed, the count value of the paper feed counter 11 is counted up.

なお、バーコードの高さおよびバーコードの幅の規定値としては、印刷装置10に初期値として予め設定されているもののほか、ユーザが任意に設定変更した値を用いることもできる。   In addition to the preset values of the barcode height and the barcode width, the values arbitrarily set and changed by the user can be used in addition to those set in advance in the printing apparatus 10 as initial values.

以上の本実施の形態における印刷装置10の制御方法の手順によって連続紙に印刷し、連続紙を適宜切断して発行されたレシートの一例について、図4を用いて説明する。図4は、(a)バーコードが印刷された従来のレシートの一例、(b)縮小されたバーコードが印刷された本実施の形態によるレシートの一例である。   An example of a receipt that is printed on continuous paper according to the procedure of the control method of the printing apparatus 10 in the above-described embodiment, and that is issued by appropriately cutting the continuous paper will be described with reference to FIG. FIG. 4 is an example of a conventional receipt on which a barcode is printed, and FIG. 4B is an example of a receipt according to the present embodiment on which a reduced barcode is printed.

図4(a)に示すロール紙30a(連続紙)のレシートには、商店のロゴ31、購入日時32、決済情報33(購入した商品名、数量、商品価格、小計等)に加えて、決済情報や各種付加情報等の情報を含むバーコード34が決済情報33の下方(紙送り方向)に印刷されている。   In addition to the store logo 31, purchase date and time 32, and payment information 33 (purchased product name, quantity, product price, subtotal, etc.), the receipt of the roll paper 30a (continuous paper) shown in FIG. A bar code 34 including information such as information and various additional information is printed below the settlement information 33 (paper feeding direction).

ここでは、図4(b)に示すロール紙30bの幅D2は、図4(b)のロール紙30aの幅D1よりも狭いものとする。この幅狭のロール紙30bのレシートも同様に、商店のロゴ31、購入日時32、決済情報33(購入した商品名、数量、商品価格、小計等)に加えて、決済情報や各種付加情報等の情報を含む縮小されたバーコード35が決済情報33の下方(紙送り方向)に印刷されている。   Here, it is assumed that the width D2 of the roll paper 30b shown in FIG. 4B is narrower than the width D1 of the roll paper 30a shown in FIG. Similarly, the receipt of the narrow roll paper 30b includes payment information and various additional information in addition to the store logo 31, purchase date and time 32, and payment information 33 (purchased product name, quantity, product price, subtotal, etc.). The reduced bar code 35 including the information is printed below the settlement information 33 (paper feeding direction).

図4(a)に示すように、ロール紙30a上において、高さ(紙送り方向)および幅(紙送り方向に直交する方向)にサイズが大きいバーコード34を印刷していたのに対し、図4(b)に示すように、例えば決済情報33を印刷する行が多く、紙送りカウント値が紙送り規定量を越える場合に、印刷サイズが縮小されたバーコード35が印刷される。   As shown in FIG. 4A, on the roll paper 30a, a barcode 34 having a large size in the height (paper feeding direction) and width (direction perpendicular to the paper feeding direction) was printed. As shown in FIG. 4B, for example, when there are many lines for printing the settlement information 33 and the paper feed count value exceeds the paper feed regulation amount, the barcode 35 with a reduced print size is printed.

使用するロール紙をロール紙30bのように幅狭のものとした場合には、サイズが大きいバーコード34を印刷できない可能性があるが、小さいサイズに縮小されたバーコード35であれば、幅狭のロール紙30b上にも同一の情報を持つバーコードの印刷が可能になる。   When the roll paper to be used is narrow like the roll paper 30b, there is a possibility that the barcode 34 having a large size cannot be printed. The barcode having the same information can be printed on the narrow roll paper 30b.

また、ロール紙30aにおいてバーコード34の印刷領域の高さA(紙送り方向)に対し、ロール紙30bにおいて規定値の幅に縮小したバーコード35の印刷領域の高さB(紙送り方向)に短縮できるので、ロール紙の削減量(長さ)はレシート1枚当たりCとなる。
また、バーコード35の周辺には空きスペースが確保できるので、この空きスペースに、各種情報の印刷を行うことも可能である。
Also, the height B (paper feed direction) of the print area of the barcode 35 reduced to the specified width in the roll paper 30b with respect to the height A (paper feed direction) of the print area of the barcode 34 on the roll paper 30a. Therefore, the reduction amount (length) of roll paper is C per receipt.
In addition, since an empty space can be secured around the barcode 35, various information can be printed in this empty space.

本発明の実施の形態に係る印刷装置の概要を示すブロック図である。1 is a block diagram illustrating an outline of a printing apparatus according to an embodiment of the present invention. 本発明の実施の形態におけるバーコードの印刷手順を示すフローチャートである。It is a flowchart which shows the printing procedure of the barcode in embodiment of this invention. 図2におけるバーコードサイズ調整ステップの詳細を示すフローチャートである。It is a flowchart which shows the detail of the barcode size adjustment step in FIG. 本発明の実施の形態によるレシート使用量の削減効果を示す説明図である。It is explanatory drawing which shows the reduction effect of the receipt usage-amount by embodiment of this invention.

符号の説明Explanation of symbols

10…印刷装置、11…紙送りカウンタ、12…カウント値判定部、13…バーコード高さ判定部、14…バーコード高さ設定部、15…印刷部、16…紙送り部、17バーコード幅判定部、18…バーコード幅設定部、19A…CPU、19B…紙送り規定量記憶部、19C…規定値記憶部、20…ホストコンピュータ、21…OS、22…POSアプリケーション、23…プリンタドライバ、30a,30b…ロール紙(連続紙(記録紙))、31…商店のロゴ、32…購入日時、33…決済情報、34…バーコード、35…(縮小された)バーコード   DESCRIPTION OF SYMBOLS 10 ... Printing apparatus, 11 ... Paper feed counter, 12 ... Count value judgment part, 13 ... Bar code height judgment part, 14 ... Bar code height setting part, 15 ... Printing part, 16 ... Paper feed part, 17 barcode Width determining unit, 18 ... Barcode width setting unit, 19A ... CPU, 19B ... Paper feed prescribed amount storage unit, 19C ... Prescribed value storage unit, 20 ... Host computer, 21 ... OS, 22 ... POS application, 23 ... Printer driver , 30a, 30b ... roll paper (continuous paper (recording paper)), 31 ... store logo, 32 ... date of purchase, 33 ... payment information, 34 ... bar code, 35 ... (reduced) bar code

Claims (1)

ホストコンピュータから受信した印刷データに応じて記録紙に印刷する印刷装置であって、
前記印刷データに含まれるバーコードを印刷する場合に、該バーコードの高さが所定の規定値の高さ以上か否かを判定するバーコード高さ判定部と、
前記バーコードの印刷高さが前記規定値の高さ以上と判定された場合には、前記バーコードの印刷高さを縮小して、前記規定値の高さに設定するバーコード高さ設定部と、
前記バーコードの幅が所定の規定値の幅以上か否かを判定するバーコード幅判定部と、
前記バーコードの幅が前記規定値の幅以上と判定された場合に、前記バーコードの幅を縮小して前記規定値の幅に設定するバーコード幅設定部と、
紙送り量をカウントする紙送りカウンタと、
前記バーコードを印刷する場合に、前記紙送りカウンタのカウント値が所定の紙送り規定量以内か否かを判定するカウント値判定部と、
を備え、前記紙送りカウンタのカウント値が前記紙送り規定量を越える場合に、前記設定された高さ及び/又は幅のバーコードを前記記録紙に印刷することを特徴とする印刷装置。
A printing apparatus that prints on recording paper according to print data received from a host computer,
A barcode height determination unit that determines whether the height of the barcode is equal to or higher than a predetermined specified height when printing the barcode included in the print data;
A barcode height setting unit that reduces the barcode printing height and sets the barcode printing height to the prescribed value height when it is determined that the barcode printing height is equal to or higher than the prescribed value height When,
A barcode width determination unit that determines whether the width of the barcode is equal to or greater than a predetermined predetermined value width;
A barcode width setting unit that reduces the width of the barcode and sets the width to the specified value when the width of the barcode is determined to be equal to or greater than the specified value;
A paper feed counter that counts the paper feed amount;
A count value determination unit that determines whether or not the count value of the paper feed counter is within a predetermined paper feed regulation amount when printing the barcode;
And a bar code having the set height and / or width is printed on the recording paper when the count value of the paper feed counter exceeds the prescribed paper feed amount .
JP2008173680A 2008-07-02 2008-07-02 Printing apparatus, printing apparatus control method, and printing control program Expired - Fee Related JP5176726B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008173680A JP5176726B2 (en) 2008-07-02 2008-07-02 Printing apparatus, printing apparatus control method, and printing control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008173680A JP5176726B2 (en) 2008-07-02 2008-07-02 Printing apparatus, printing apparatus control method, and printing control program

Publications (2)

Publication Number Publication Date
JP2010012667A JP2010012667A (en) 2010-01-21
JP5176726B2 true JP5176726B2 (en) 2013-04-03

Family

ID=41699256

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008173680A Expired - Fee Related JP5176726B2 (en) 2008-07-02 2008-07-02 Printing apparatus, printing apparatus control method, and printing control program

Country Status (1)

Country Link
JP (1) JP5176726B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6759722B2 (en) 2016-06-01 2020-09-23 セイコーエプソン株式会社 Printing device, printing system, and control method of printing device
EP3605308A3 (en) 2018-07-30 2020-03-25 Ricoh Company, Ltd. Information processing system for slip creation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002354236A (en) * 2001-05-29 2002-12-06 Olympus Optical Co Ltd Method and device for image recording and program
JP4483727B2 (en) * 2005-07-15 2010-06-16 セイコーエプソン株式会社 Print image creation apparatus, print image creation method and program
JP2007021960A (en) * 2005-07-19 2007-02-01 Seiko Epson Corp Apparatus and method for creating print image, and program
JP4548352B2 (en) * 2006-01-27 2010-09-22 ブラザー工業株式会社 Image forming apparatus and image forming system

Also Published As

Publication number Publication date
JP2010012667A (en) 2010-01-21

Similar Documents

Publication Publication Date Title
US9766848B2 (en) Printing system and printing device
US20110161711A1 (en) Control Device, Control Method, and Recording Medium
US20120274961A1 (en) Recording device, recording device control method, and storage medium storing a program
US9613302B2 (en) Recording device and method of controlling the same
US9001171B2 (en) Double-sided receipt printing method and double-sided receipt printer
US8873096B2 (en) Media processing device and POS system
US10046577B2 (en) Printing device, printing system, and control method of a printing device
US9898691B2 (en) Control device, control system, and control method of a control device
JP5176726B2 (en) Printing apparatus, printing apparatus control method, and printing control program
US9224275B2 (en) Media processing method using multiple processing units for performing multiple processes
US9098779B2 (en) Recording control device, control method, and program
JP2010012668A (en) Printing apparatus, control method of printing apparatus and print control program
US10048901B2 (en) Control device, control method of a control device, and storage medium
JP6986948B2 (en) Printer device
US20120134735A1 (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
JP2009297984A (en) Printing apparatus, method for controlling printing apparatus and program for controlling printing apparatus
JP2014106578A (en) Record control system, method for controlling record control system, and recording device
JP6587146B2 (en) Printer
JP7078413B2 (en) Information processing equipment, information processing system, and information processing method
JP2012076393A (en) Printer, print controller, print control method and program for printer
JP2009214456A (en) Thermal printer
JP2017119368A (en) Printer, control method for the same, and information processor
JP6032334B2 (en) Control device and recording system
JP2016099636A (en) Printing data processor, printing data processing method, program and printing system
JP2013257805A (en) Control device, control method of control device, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110411

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120816

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121002

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121119

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121224

R150 Certificate of patent or registration of utility model

Ref document number: 5176726

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