【0001】
【発明の属する技術分野】
本発明はプリンタに関するものである。
【0002】
【従来の技術】
従来、インクジェットプリンタのようなシリアルプリンタではがき印刷を複数する場合に、表面(宛名面)と裏面を同時に印刷することが出来なかった。
【0003】
例えば、100枚はがき印刷を行う場合に、まず表面を100枚印刷して、次に表面を印刷したはがきを裏面にして100枚印刷を行ってきた。
【0004】
【発明が解決しようとする課題】
従来のプリンタでは、同じデータを印刷する場合に横方向に複数枚並べて給紙できるスペースがあるのに1枚ずつのみしか印刷できないために、はがきの両面を大量に複数印刷するのに時間が掛かっていた。
【0005】
【課題を解決するための手段】
本発明は、上記の問題点を解消するためになされたもので、本発明に係わる請求項1の発明〜請求項6の発明の目的は、はがきの両面を大量に複数印刷する場合に表用と裏用のプリントバッファを切り替えて表面と裏面を横方向に並べて印刷することで、給紙、排紙の回数を半分に減らし、はがき両面印刷の処理時間を短縮することである。
【0006】
本発明に係わる請求項1の発明は、はがき印刷を行う場合に表面用(宛名面)と裏面用のプリントバッファを備え、横方向に表面と裏面を複数並べて同時に印字することを特徴とする。
【0007】
本発明に係わる請求項2の発明は、ホストPCのプリンタドライバは表面用(宛名面)と裏面用の印字コマンドを表用ヘッダと裏用ヘッダをデータの先頭に付けて生成を行い、最初は、表面用データと裏面用データを同時にスプールして、プリンタにデータ転送を行い、2回目以降は、表面用(宛名面)データのみ生成してスプールデータ(表用ヘッダ以下のデータ)を更新してホスト側から転送されることを特徴とする。
【0008】
本発明に係わる請求項3の発明は、上記のプリンタにおいて受信バッファから印字データを作成するときに、表用ヘッダが先頭にあるデータは、表面用プリントBUFに印字データを展開処理を行い、裏用ヘッダが先頭にあるデータは、裏面用プリントBUFに印字データを展開処理を行うことを特徴とする。
【0009】
本発明に係わる請求項4の発明は、上記1のプリンタにおいて、表用プリントバッファは、K1本分のみで、裏用プリントバッファは、カラー色分備えることを特徴とする。
【0010】
本発明に係わる請求項5の発明は、次ページ開始位置割り込みにより、表用と裏用のプリントバッファを切り替えて印字することを特徴とする。
【0011】
本発明に係わる請求項6の発明は、上記の位置割り込みを発生させるために横方向に並べたデータの印字開始位置を次ページ開始位置用レジスタに設定することを特徴とする。
【0012】
【発明の実施の形態】
以下、本発明の実施の形態を図面を参照して説明する。
【0013】
図1は、本発明の構成を示す図である。10は、ホストPCであり、ホストPCには、100プリンタドライバがあり、プリンタドライバは表面用(宛名面)と裏面用の印字コマンドを表用ヘッダと裏用ヘッダをデータの先頭に付けて印字コマンドの生成を行い、最初は、表面用データと裏面用データを同時にスプールして、プリンタにデータ転送を行い、2回目以降は、表面用(宛名面)データのみ生成してスプールデータ(表用ヘッダ以下のデータ)を更新してホスト側から転送する。11は、ホストPCとプリンタの間のインターフェースである。12は、本発明のプリンタである。13はプリンタの処理を行うCPUである。14は、プリンタの受信BUFであり、ホストPCからの印字コマンドを格納する。
【0014】
15は、1スキャン分の印字コマンドを展開した印字データを格納するプリントBUFである。14受信バッファのデータから印字データを作成するときに、表用ヘッダが先頭にあるデータは、150表面用プリントBUFに印字データを展開処理を行い、裏用ヘッダが先頭にあるデータは、151裏面用プリントBUFに印字データを展開処理を行う。表用プリントBUFは、K1本分のみで、裏用プリントBUFは、カラー色分備える。
【0015】
16は、プリンタにおいて、印字を行うためのトリガ数を設定するレジスタである。表用1スキャン分データと裏用1スキャン分データの和(横方向に並べるデータ分)の値を設定する。
【0016】
17は、横方向に並べた表面データの開始位置を設定するためのレジスタである。このレジスタに設定した位置をプリントヘッドが通過したときに割り込みが入るようになっている。
【0017】
図2は、本発明の特徴を示す図である。20〜22は、本発明のプリンタで印字を行ったときの様子を示す図であり、20は、はがきの裏面データの出力結果を示し、21は、はがきの表面データの出力結果を示し、裏面用プリントBUFと表面用プリントBUFを切り替えて横方向に並べて印刷したときの図である。22は、印字を行うためのプリントヘッドである。
【0018】
23は、本発明のプリンタの特徴であるプリントBUFを示す図であり、プリントBUFには、表面用と裏面用のプリントBUFがあり、それぞれScan StartAddrとScan End Addrをもつ。このプリントバッファは、裏面用のScan End Addrまでインクリメントされると表面用のScan Start Addrに進み、表面用のScan End Addrまでインクリメントされると裏面用のScan Start Addrに進むバッファとなっている。裏面用データの1スキャン分のデータを印刷すると表面用のScan Start Addrにリードポインタが進み、横方向に並べられた表面用スキャン開始位置にプリントヘッドが通過したときに割り込みがはいり、横方向に並べられた表面用データの印刷を開始する。
【0019】
横方向に並べられた表面用データの1スキャン目の印字が終了すると表面用、裏面用のプリントBUFのそれぞれの中身が2スキャン目データに更新され、1スキャン目と同様の処理を行い、さらに2スキャン目の印字が終了すると3スキャン目データに更新され印字を行い、表面用と裏面用のデータをプリントバッファを切り換えて横方向に同時に並べた印刷を行うことが可能となる。
【0020】
図3は、本発明の処理の流れを示すフローチャートである。
【0021】
S1で、ホストPCのプリンタドライバで表面用(宛名面)と裏面用の印字コマンドを表用ヘッダと裏用ヘッダをデータの先頭に付けて生成し、プリンタの受信BUFへ転送する。次にS2で、プリンタの受信BUFからデータを取得してヘッダでデータを識別してワークBUF等に表面用、裏面用のデータ展開を行う。S3で、展開したデータをもとに、ヒートトリガ数(1スキャン分の裏面用データ数+1スキャン分の表面用データ数)を計算しヒートトリガ数設定レジスタに設定を行う。S4で横方向に並べた表面用データの印字開始位置を次ページ開始位置レジスタに設定する。本発明では、プリントヘッドがこのレジスタで設定した位置をプリントヘッドが通過したときに割り込みが入るようになっている。
【0022】
S5で1スキャン分の表面用、裏面用印字データをそれぞれのプリントBUFへ展開を行う。
【0023】
S6でread pointerが裏面用プリントBUFの裏用Scan start Addrからデータを読み出して印刷処理を行う。
【0024】
S7でread pointerをインクリメントして読み出しデータを順に印刷する。そして、S8でread pointerが裏面用プリントBUFの裏用Scan End Addrまでインクリメントしたかチェックする。Scan End Addrでないときは、S7の処理を繰り返す。裏用Scan End Addrのときは、S9の処理へ進む。S9では、次ページ開始位置割り込みにより、プリントヘッドが横方向に並べた表用データの印字開始位置に来たことが通知されるので、割り込みが入ったらS10の処理に進み、横方向に並べた表用データの印刷を開始する。
【0025】
S10でread pointerが表面用プリントBUFの表用Scan start Addrからデータを読み出して印刷処理を行う。
【0026】
S11でread pointerをインクリメントして読み出しデータを順に印刷する。そして、S12でread pointerが表面用プリントBUFの表用Scan End Addrまでインクリメントしたかチェックする。Scan End Addrでないときは、S11の処理を繰り返す。表用Scan End Addrのときは、S13の処理へ進む。S13でread pointerを裏面用プリントBUFの裏用Scan start Addrに戻し、S14の処理へ進む。S14では、印刷終了かチェックを行い印刷終了でないときは、S15で紙送り処理を行い、S2の処理へ戻り次のスキャンに対しても裏用、表用それぞれのプリントBUFの中身を更新して同様の処理を最後のスキャンまで行う。S14で印刷終了の場合は、S16で排紙処理を行い処理を終了する。
【0027】
【発明の効果】
以上説明したように、本発明によれば、はがきの両面を大量に複数印刷する場合に表用と裏用のプリントバッファを切り替えて表面と裏面を横方向に並べて印刷することで、給紙、排紙の回数を半分に減らし、はがき両面印刷の処理時間を短縮する。
【図面の簡単な説明】
【図1】本発明のプリンタの構成を示す図である。
【図2】本発明のプリンタの特徴を示す図である。
【図3】本発明のプリンタの処理を示すフローチャートである。
【符号の説明】
10 ホストPC
11 インターフェース
12 プリンタ
13 CPU
14 受信BUF
15 プリントBUF[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a printer.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, when a plurality of postcards are printed by a serial printer such as an ink jet printer, it is not possible to simultaneously print the front side (addressing side) and the back side.
[0003]
For example, when performing postcard printing of 100 sheets, first, 100 sheets of the front side are printed, and then 100 sheets of the postcard are printed with the front side printed on the back side.
[0004]
[Problems to be solved by the invention]
In a conventional printer, when printing the same data, there is a space where a plurality of sheets can be fed side by side, but only one sheet can be printed. Therefore, it takes time to print a large number of both sides of a postcard. I was
[0005]
[Means for Solving the Problems]
SUMMARY OF THE INVENTION The present invention has been made in order to solve the above problems, and an object of the invention of claims 1 to 6 according to the present invention is to provide a table for printing a large number of both sides of a postcard. By switching the print buffer for the back and back sides and printing the front and back sides side by side in the horizontal direction, the number of times of feeding and discharging is reduced by half, and the processing time of postcard double-sided printing is shortened.
[0006]
The invention according to claim 1 of the present invention is characterized in that when performing postcard printing, a print buffer for the front side (addressing side) and a print buffer for the back side are provided, and a plurality of front and back sides are arranged in the horizontal direction and printing is performed simultaneously.
[0007]
According to a second aspect of the present invention, the printer driver of the host PC generates print commands for the front side (addressing side) and the back side by attaching a front header and a back header to the head of data. The data for the front side and the data for the back side are spooled at the same time, and the data is transferred to the printer. From the second time, only the front side (address side) data is generated and the spool data (data below the table header) is updated. And transferred from the host.
[0008]
According to a third aspect of the present invention, when print data is created from a reception buffer in the above-described printer, data having a front header is subjected to expansion processing of the print data to the front print BUF, The data with the header at the top is subjected to a process of expanding the print data on the back side print BUF.
[0009]
The invention according to claim 4 of the present invention is characterized in that, in the above-mentioned one printer, the front print buffer is provided for only one K, and the back print buffer is provided for color.
[0010]
The invention according to claim 5 according to the present invention is characterized in that printing is performed by switching between front and back print buffers by interruption of the next page start position.
[0011]
The invention according to claim 6 of the present invention is characterized in that a print start position of data arranged in a horizontal direction is set in a next page start position register in order to generate the position interrupt.
[0012]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
[0013]
FIG. 1 is a diagram showing the configuration of the present invention. Reference numeral 10 denotes a host PC. The host PC has 100 printer drivers. The printer driver prints print commands for the front side (addressing side) and the back side by attaching a front header and a back header to the head of data. A command is generated, first the front side data and the back side data are simultaneously spooled, and the data is transferred to the printer. From the second time, only the front side (address side) data is generated and the spool data (front side data) is generated. Update the data below the header) and transfer from the host. Reference numeral 11 denotes an interface between the host PC and the printer. Reference numeral 12 denotes a printer of the present invention. Reference numeral 13 denotes a CPU that performs processing of the printer. Reference numeral 14 denotes a reception BUF of the printer, which stores a print command from the host PC.
[0014]
Reference numeral 15 denotes a print BUF that stores print data obtained by developing print commands for one scan. 14 When print data is created from the data in the reception buffer, the data with the header for the front is expanded to print data for the 150-side front print BUF, and the data with the header for the back is 151 back. The print data is expanded in the print buffer BUF. The front print BUF is only for one K, and the back print BUF is provided for the color.
[0015]
Reference numeral 16 denotes a register for setting the number of triggers for performing printing in the printer. The value of the sum of the data for one scan for the front and the data for one scan for the back (the data arranged in the horizontal direction) is set.
[0016]
Reference numeral 17 denotes a register for setting the start position of the surface data arranged in the horizontal direction. When the print head passes through the position set in this register, an interrupt occurs.
[0017]
FIG. 2 is a diagram showing features of the present invention. 20 to 22 are views showing a state when printing is performed by the printer of the present invention, 20 shows the output result of the back data of the postcard, 21 shows the output result of the front data of the post card, FIG. 6 is a diagram when printing is performed by switching between a print BUF for printing and a print BUF for front side and by arranging them in the horizontal direction. Reference numeral 22 denotes a print head for performing printing.
[0018]
Reference numeral 23 denotes a print BUF which is a feature of the printer of the present invention. The print BUF includes a print BUF for the front side and a print BUF for the back side, and has a Scan Start Addr and a Scan End Addr, respectively. This print buffer is a buffer that advances to a scan start addr for the front surface when it is incremented to the scan end addr for the back surface, and advances to a scan start addr for the back surface when it is incremented to the scan end addr for the front surface. When the data for one scan of the back side data is printed, the read pointer advances to the scan start addr for the front side, and when the print head passes the scan start position for the front side arranged in the horizontal direction, an interrupt is input, and the horizontal direction is started. Printing of the arranged front side data is started.
[0019]
When the printing of the first scan of the front side data arranged in the horizontal direction is completed, the contents of the front side and back side print BUFs are updated to the second scan data, and the same processing as the first scan is performed. When the printing of the second scan is completed, the data is updated to the data of the third scan and printing is performed, and the data for the front surface and the back surface can be simultaneously printed in the horizontal direction by switching the print buffer.
[0020]
FIG. 3 is a flowchart showing the flow of the process of the present invention.
[0021]
In S1, a print command for the front side (address side) and a back side are generated by the printer driver of the host PC by attaching the front header and the back header to the head of the data, and are transferred to the reception BUF of the printer. Next, in S2, data is acquired from the reception BUF of the printer, the data is identified by the header, and data development for the front surface and the back surface is performed on the work BUF or the like. In S3, based on the developed data, the number of heat triggers (the number of back surface data for one scan + the number of front surface data for one scan) is calculated and set in the heat trigger number setting register. In S4, the print start position of the front side data arranged in the horizontal direction is set in the next page start position register. In the present invention, an interrupt is issued when the print head passes through the position set in this register.
[0022]
In S5, the print data for the front surface and the back surface for one scan is developed in each print BUF.
[0023]
In step S6, the read pointer reads data from the back-side Scan start Addr of the back-side print BUF and performs print processing.
[0024]
In S7, the read pointer is incremented and the read data is printed in order. Then, in S8, it is checked whether or not the read pointer has been incremented to the back-side Scan End Addr of the back-side print BUF. If it is not Scan End Addr, the process of S7 is repeated. In the case of the back-side Scan End Addr, the process proceeds to S9. In S9, it is notified that the print head has reached the print start position of the table data arranged in the horizontal direction by the next page start position interrupt. Start printing the table data.
[0025]
In S10, the read pointer reads data from the front Scan Start Addr of the front surface print BUF and performs a printing process.
[0026]
In step S11, the read pointer is incremented and the read data is printed in order. Then, in S12, it is checked whether the read pointer has been incremented up to the front scan end addr of the front surface print BUF. If it is not Scan End Addr, the process of S11 is repeated. In the case of the table Scan End Addr, the process proceeds to S13. In S13, the read pointer is returned to the back scan start addr of the back print BUF, and the process proceeds to S14. In S14, it is checked whether or not the printing is completed. If the printing is not completed, the paper feeding process is performed in S15, and the process returns to S2 to update the contents of the back and front print BUFs for the next scan. The same processing is performed until the last scan. If the printing is completed in S14, the paper discharge process is performed in S16, and the process ends.
[0027]
【The invention's effect】
As described above, according to the present invention, when printing a large number of both sides of a postcard, the print buffer for front and back is switched and the front and back sides are arranged side by side and printed, so that paper feeding, The number of times of paper ejection is reduced by half, and the processing time of postcard double-sided printing is shortened.
[Brief description of the drawings]
FIG. 1 is a diagram illustrating a configuration of a printer according to the present invention.
FIG. 2 is a diagram illustrating features of the printer of the present invention.
FIG. 3 is a flowchart illustrating processing of the printer of the present invention.
[Explanation of symbols]
10. Host PC
11 Interface 12 Printer 13 CPU
14 Receive BUF
15 Print BUF