JPH0890846A - Print buffer - Google Patents

Print buffer

Info

Publication number
JPH0890846A
JPH0890846A JP6229567A JP22956794A JPH0890846A JP H0890846 A JPH0890846 A JP H0890846A JP 6229567 A JP6229567 A JP 6229567A JP 22956794 A JP22956794 A JP 22956794A JP H0890846 A JPH0890846 A JP H0890846A
Authority
JP
Japan
Prior art keywords
data
printer
print
print data
feed tray
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.)
Pending
Application number
JP6229567A
Other languages
Japanese (ja)
Inventor
Michinori Aoki
通則 青木
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP6229567A priority Critical patent/JPH0890846A/en
Publication of JPH0890846A publication Critical patent/JPH0890846A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To select the sheet feed tray of a printer at each page or unit of print data according to a print buffer. CONSTITUTION: Print data fetched from an input unit 1 is analyzed by an input data controller 2, the print buffer control command of the data is stored in a memory 3, and the print data is stored in a data buffer 4. When the printer is actually printed, the data of the pages of the data are sequentially read by an output data controller 5, a sheet feed tray control code corresponding to sheet feed tray designation information corresponding to the page is read from the memory 3, and they are sent from an output unit 6 to the printer with each page at one unity. Even when the data are printed by a plurality of sheets, the data and the tray control code of each part are gathered to one unity, and set to the printer.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、パーソナルコンピュ
ータ、ワークステーション等の外部装置のデータを印刷
するためのプリンタ、特に用紙を供給する給紙トレイを
複数備えたプリンタにデータを送り込むプリントバッフ
ァ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for printing data in an external device such as a personal computer or a workstation, and more particularly to a print buffer device for sending data to a printer having a plurality of paper feed trays for feeding paper. .

【0002】[0002]

【従来の技術】現在普及しているプリンタの多くは、印
刷すべき印刷データの先頭にプリンタ制御コードを付加
することにより、給紙トレイの指定、印刷部数の指定等
の各種の設定を行なっている。
2. Description of the Related Art Many printers currently in widespread use perform various settings such as designation of a paper feed tray and designation of the number of copies by adding a printer control code to the head of print data to be printed. There is.

【0003】すなわち、プリンタ制御コードが付加され
たデータがプリンタに送り込まれると、印刷の前に、最
初に到着するプリンタ制御コードに基づいて給紙トレイ
の指定、印刷部数の指定等の各種の設定を行ない、その
後到着する印刷データをこの設定された条件のもとで印
刷するようにしている。
That is, when the data to which the printer control code is added is sent to the printer, various settings such as designation of a paper feed tray and designation of the number of prints are made based on the printer control code that arrives first before printing. The print data that arrives after that is printed under the set conditions.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来のプリンタにおいては、プリンタ制御コードが
付加されたデータの全体について、そのプリンタ制御コ
ードの種類に応じた設定を行うのみで、印刷したいデー
タの各頁又は各部毎に個別に給紙トレイの指定を行なう
ことができなかった。従って、一つのデータの各頁又は
各部毎に重要度が異なるような場合、すなわち特定の頁
については普通紙に印刷したいが、他の頁については裏
紙又は再生紙等でもよいという場合に必ずしもうまく対
応していなかった。
However, in such a conventional printer, the data to be printed does not need to be set by only setting the entire data to which the printer control code is added according to the type of the printer control code. It was not possible to individually specify the paper feed tray for each page or each set. Therefore, when the importance of each page or each copy of one data is different, that is, when it is desired to print a specific page on plain paper but other pages may be backing paper or recycled paper, etc. It didn't respond well.

【0005】同様に、一つのデータを複数部数印刷する
場合に、1部だけはオリジナルとして普通紙に印刷した
いが、他の1部については控えであるので裏紙等でもよ
いという場合にもうまく対応していなかった。
Similarly, when printing one copy of a plurality of copies of one data, it is desired to print only one copy on plain paper as an original, but the other copy is reserved so that it can be used as a backing paper. It did not correspond.

【0006】このような場合には、例えプリンタが複数
の給紙トレイを持ち、各給紙トレイ毎に異なった用紙を
載置できるとしても、一つの給紙トレイに普通紙と裏紙
等を混在して載置して上述した要求に対処するしかなか
った。
In such a case, even if the printer has a plurality of paper feed trays and different papers can be placed in the respective paper feed trays, plain paper and back paper etc. can be placed in one paper feed tray. There was no choice but to install them in a mixed manner to deal with the above-mentioned requirements.

【0007】この発明は上記の点に鑑みてなされたもの
であり、一つのデータの各頁又は各部毎に個別に給紙ト
レイを選択してプリンタから印刷できるようにすること
を目的とする。
The present invention has been made in view of the above points, and it is an object of the present invention to individually select a paper feed tray for each page or each set of one data so that printing can be performed by a printer.

【0008】[0008]

【課題を解決するための手段】この発明は上記の目的を
達成するため、プリンタから印刷すべき印刷データにプ
リンタに対する頁毎の給紙トレイ指定情報を含む制御情
報が付加されたデータを外部装置から取り込み、このデ
ータを変換してプリンタに出力するプリントバッファ装
置において、印刷データを記憶する印刷データ記憶手段
と、制御情報を記憶する制御情報記憶手段と、印刷デー
タ記憶手段から印刷データの各頁のデータを順次読み出
すとともに、制御情報記憶手段から印刷データの各頁に
対する給紙トレイ指定情報を読み出し、それを出力する
プリンタに応じた給紙トレイ制御コードに変換して、各
頁の印刷データに付加してプリンタに出力する出力デー
タ制御手段とを備えたプリントバッファ装置を提供する
ものである。
In order to achieve the above object, the present invention provides an external device with data in which control information including paper feed tray designation information for each page is added to print data to be printed from the printer. In a print buffer device that captures data from a printer, converts the data, and outputs the data to a printer, a print data storage unit that stores print data, a control information storage unit that stores control information, and each page of print data from the print data storage unit. Data is sequentially read, the paper feed tray designation information for each page of the print data is read from the control information storage unit, converted into a paper feed tray control code according to the printer that outputs the data, and converted into print data for each page. The present invention provides a print buffer device additionally provided with output data control means for outputting to a printer.

【0009】また、プリンタから印刷すべき印刷データ
にプリンタに対する部毎の給紙トレイ指定情報を含む制
御情報が付加されたデータを外部装置から取り込み、こ
のデータを変換してプリンタに出力するプリントバッフ
ァ装置において、印刷データを記憶する印刷データ記憶
手段と、制御情報を記憶する制御情報記憶手段と、印刷
データ記憶手段から印刷データを複数部数読み出すとと
もに、制御情報記憶手段から印刷データの各部に対する
給紙トレイ指定情報を読み出し、それを出力するプリン
タに応じた給紙トレイ制御コマンドに変換して、各部の
印刷データに付加してプリンタに出力する出力データ制
御手段とを備えたプリントバッファ装置をも提供する。
Also, a print buffer for fetching from the external device data in which control information including paper feed tray designation information for each copy to the printer is added to print data to be printed from the printer, and converting the data to output to the printer. In the apparatus, a print data storage unit for storing print data, a control information storage unit for storing control information, a plurality of copies of the print data from the print data storage unit, and a paper feed for each unit of the print data from the control information storage unit. Also provided is a print buffer device including an output data control unit that reads out tray designation information, converts it into a paper feed tray control command according to the printer that outputs it, adds it to the print data of each unit, and outputs it to the printer. To do.

【0010】[0010]

【作用】この発明によれば、プリンタから印刷すべき印
刷データにプリンタに対する頁毎の給紙トレイ指定情報
を含む制御情報が付加されたデータを外部装置から取り
込み、このデータを印刷データと制御情報に区別して記
憶する。そして、印刷データの各頁のデータを順次読み
出すとともに、印刷データの各頁に対する給紙トレイ指
定情報を制御情報の中から読み出し、この給紙トレイ指
定情報を各頁の印刷データに付加するようにしてデータ
の形式を変換する。
According to the present invention, the print data to be printed by the printer is added with the control information including the paper feed tray designation information for each page for the printer, and the data is fetched from the external device, and this data is used as the print data and the control information. Memorize separately. Then, while sequentially reading the data of each page of the print data, the paper feed tray designation information for each page of the print data is read from the control information, and this paper feed tray designation information is added to the print data of each page. Convert the data format.

【0011】また、印刷データを複数部数印刷する場合
には、プリンタから印刷すべき印刷データにプリンタに
対する部毎の給紙トレイ指定情報を含む制御情報が付加
されたデータを外部装置から取り込み、このデータを印
刷データと制御情報に区別して記憶する。そして、印刷
データを複数部数読み出すとともに、印刷データの各部
に対する給紙トレイ指定情報を読み出し、この給紙トレ
イ指定情報を各部の印刷データに付加するようにしてデ
ータの形式を変換する。
When printing a plurality of copies of print data, data in which control information including paper feed tray designation information for each copy is added to the print data to be printed from the printer is fetched from an external device. The data is stored separately as print data and control information. Then, a plurality of copies of the print data are read, the paper feed tray designation information for each copy of the print data is read, and the data format is converted by adding the paper feed tray designation information to the print data of each copy.

【0012】[0012]

【実施例】以下、この発明の各実施例を添付図面に基づ
いて具体的に説明する。図1は、この各実施例に共通し
て用いられるプリントバッファ装置の構成を示すブロッ
ク図である。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration of a print buffer device commonly used in the respective embodiments.

【0013】複数のパーソナルコンピュータによって一
つのプリンタを共有する場合には、各パーソナルコンピ
ュータから送られてくる印刷データを一時的にメモリに
蓄え、この印刷データをプリンタに対して順次出力する
ためのバッファ機構を設けるのが一般的であるが、この
発明は、このバッファ機構としてのプリントバッファ装
置に、印刷データの頁又は部に対応してプリンタの給紙
トレイを選択させるための機能を持たせるものである。
When one printer is shared by a plurality of personal computers, print data sent from each personal computer is temporarily stored in a memory and a buffer for sequentially outputting the print data to the printers. Although a mechanism is generally provided, the present invention provides the print buffer device as the buffer mechanism with a function for selecting the paper feed tray of the printer corresponding to the page or copy of the print data. Is.

【0014】図1に示すように、このプリントバッファ
装置は、接続された複数のパーソナルコンピュータから
のデータをプリントバッファ装置内に取り込むための入
力部1と、この取り込まれたデータを解析して、データ
に対する処理を制御する入力データ制御部2と、入力部
1から取り込まれたデータに含まれるプリントバッファ
制御コマンドを記憶する記憶部3と、取り込まれたプリ
ントバッファ制御コマンドを除いた残りの印刷データを
記憶するデータバッファ4と、出力部6からのデータの
出力を制御する出力データ制御部5と、プリンタへデー
タを出力するための出力部6から構成されており、これ
によって入力部1から取り込んだデータを所定の形式に
変換して出力部6から出力している。
As shown in FIG. 1, the print buffer device includes an input unit 1 for loading data from a plurality of connected personal computers into the print buffer device, and analyzes the loaded data. An input data control unit 2 for controlling processing on data, a storage unit 3 for storing print buffer control commands included in the data fetched from the input unit 1, and remaining print data excluding the fetched print buffer control commands. And a data buffer 4 for storing data, an output data control unit 5 for controlling the output of data from the output unit 6, and an output unit 6 for outputting data to the printer. The data is converted into a predetermined format and output from the output unit 6.

【0015】なお、記憶部3には、使用するプリンタを
制御するための制御コードが予め格納されており、給紙
トレイを選択するための給紙トレイ制御コード、印刷枚
数を指定するための枚数指定制御コード等が格納されて
いる。
A control code for controlling the printer to be used is stored in advance in the storage unit 3, and a paper feed tray control code for selecting a paper feed tray and a number of sheets for designating the number of prints. The designated control code and the like are stored.

【0016】まず、このようなプリントバッファ装置を
用いた第1の実施例について説明する。図2は、図1に
示したプリントバッファ装置を用いて、頁毎に異なった
給紙トレイを選択してプリンタからデータを印刷させる
場合の動作を示すフローチャートである。
First, a first embodiment using such a print buffer device will be described. FIG. 2 is a flow chart showing the operation in the case of using the print buffer device shown in FIG. 1 to select a different paper feed tray for each page and print the data from the printer.

【0017】入力部1からデータが入力されると(S2
01)、入力データ制御部2は、まず、このデータに制
御情報であるプリントバッファ制御コマンドが含まれて
いるか否かを解析する(S202)。そして、このコマ
ンドが含まれていない場合には、データはプリントバッ
ファ装置の制御を受けずにそのままプリンタへ出力され
る。一方、このコマンドが含まれている場合には、その
コマンドが所定のコマンドであるか否か、この場合に
は、頁毎に異なった給紙トレイを選択させる給紙トレイ
指定情報の制御コマンドであるか否かを判断し(S20
3)、そうであれば、このコマンドの内容を記憶部3に
格納し(S204)、入力されたデータから制御コマン
ドを除いた残りの印刷データはデータバッファ4にスプ
ールする(S205)。所定のコマンドでなければ、そ
のコマンドに応じた動作を行うために、このフローチャ
ートの処理は終了する。
When data is input from the input unit 1 (S2
01), the input data control unit 2 first analyzes whether or not this data includes a print buffer control command which is control information (S202). If this command is not included, the data is output to the printer as it is without being controlled by the print buffer device. On the other hand, if this command is included, whether or not the command is a predetermined command, in this case, it is a control command of the paper feed tray designation information for selecting a different paper feed tray for each page. It is determined whether or not there is (S20
3) If so, the content of this command is stored in the storage unit 3 (S204), and the remaining print data obtained by removing the control command from the input data is spooled in the data buffer 4 (S205). If the command is not the predetermined command, the process of this flowchart ends in order to perform the operation according to the command.

【0018】そして、データバッファ4へのスプールが
完了するか、データバッファ4がフル状態になると、プ
リンタが印刷可能状態にあるか否かが判断され(S20
6)、印刷可能であれば、出力データ制御部5がデータ
バッファ4の内容を読み出して、出力部6を介してプリ
ンタへのデータの出力を開始する。
When the spooling to the data buffer 4 is completed or the data buffer 4 becomes full, it is judged whether the printer is in the printable state (S20).
6) If printing is possible, the output data control unit 5 reads the contents of the data buffer 4 and starts outputting data to the printer via the output unit 6.

【0019】具体的には、まず、印刷されるデータの各
頁の始まりを検知し、対応する頁についての制御情報を
記憶部3に記憶された制御コマンドの内容から読み取
る。そして、制御コードの一つである給紙トレイ制御コ
ードを記憶部3から読み出し、プリンタの機種に依存し
た制御コードの形式に調えた上でプリンタへ送出する
(S207)。
Specifically, first, the beginning of each page of the data to be printed is detected, and the control information for the corresponding page is read from the content of the control command stored in the storage unit 3. Then, the paper feed tray control code, which is one of the control codes, is read from the storage unit 3, adjusted to the control code format depending on the printer model, and then sent to the printer (S207).

【0020】その後、1頁分の印刷データをプリンタバ
ッファ4から読み出してプリンタへ送出する(S20
8)。そして、当該頁の印刷データの送出が完了した
ら、次頁がなくなるまでS207及びS208の動作を
繰り返す(S209)。
Thereafter, the print data for one page is read from the printer buffer 4 and sent to the printer (S20).
8). Then, when the transmission of the print data of the page is completed, the operations of S207 and S208 are repeated until the next page runs out (S209).

【0021】そして、データの送出が終了したら、記憶
部3に記憶された制御コマンドの内容を消去して(S2
10)、動作を終了する。
When the data transmission is completed, the contents of the control command stored in the storage unit 3 are erased (S2
10), the operation ends.

【0022】図3は、図2の動作を行わせるためのプリ
ントバッファ制御コマンドの内容を示す模式図である。
この制御コマンドは、プリンタから印刷すべき印刷デー
タの先頭に付加されて送られてくるものであり、先頭の
エスケープコード(3バイト)によってコマンドの種類
が示されている。その後のn+1バイトは制御情報であ
る。制御情報の先頭1バイトは、印刷すべきデータの頁
数であり、その後に続くnバイトの給紙トレイ指定エリ
アによって各頁毎の給紙トレイ番号が指定されている。
FIG. 3 is a schematic diagram showing the contents of the print buffer control command for performing the operation of FIG.
This control command is added from the printer to the beginning of the print data to be printed and sent, and the escape code (3 bytes) at the beginning indicates the type of command. The subsequent n + 1 bytes are control information. The first 1 byte of the control information is the number of pages of the data to be printed, and the paper feed tray number for each page is specified by the n byte paper feed tray specification area that follows.

【0023】なお、必要な頁数分の給紙トレイ番号が給
紙トレイ指定エリアに指定されていない場合には、指定
がない残りの頁については、最後に設定された給紙トレ
イ番号を設定するようにする。逆に、必要な頁数分以上
の給紙トレイ番号が給紙トレイ指定エリアに指定されて
いる場合には、余分な給紙トレイ指定番号を無視するよ
うにする。
If the paper feed tray numbers for the required number of pages are not designated in the paper feed tray designation area, the last designated paper feed tray number is set for the remaining pages not designated. To do so. On the contrary, when the paper feed tray numbers for the required number of pages or more are designated in the paper feed tray designation area, the extra paper feed tray designation numbers are ignored.

【0024】このように、データがプリントバッファ装
置を通過する際に、送り込まれた印刷データの各頁毎に
給紙トレイ制御コードを付加してプリンタにデータを送
出するので、頁単位で給紙トレイを選択することができ
る。これにより、複数の給紙トレイに異なった用紙を載
置しておけば、報告書の印刷等を行なう場合に、表紙で
ある第1頁は給紙トレイAの用紙(普通紙)で印刷し、
残りの頁は給紙トレイBの用紙(再生紙又は裏紙)で印
刷するということが可能になり、再生紙又は裏紙の利用
を促進して資源の節約を図ることができる。
As described above, when the data passes through the print buffer device, the feed tray control code is added to each page of the sent print data and the data is sent to the printer. You can select the tray. As a result, if different papers are placed in a plurality of paper feed trays, when printing a report, the first page, which is the cover, is printed with the paper in the paper feed tray A (plain paper). ,
The remaining pages can be printed with the paper (recycled paper or backing paper) in the paper feed tray B, and the use of recycled paper or backing paper can be promoted to save resources.

【0025】次に、図1に示したプリントバッファ装置
を用いた第2の実施例について説明する。図4は、図1
に示したプリントバッファ装置を用いて、印刷データの
各頁毎に異なった給紙トレイ及び印刷枚数を指定してプ
リンタからデータを印刷させる場合の動作を示すフロー
チャートである。
Next, a second embodiment using the print buffer device shown in FIG. 1 will be described. 4 is shown in FIG.
9 is a flowchart showing an operation in which the printer is caused to print data by designating a different paper feed tray and a different number of prints for each page of print data using the print buffer device shown in FIG.

【0026】入力部1からデータが入力されると(S4
01)、入力データ制御部2は、まず、このデータに制
御情報であるプリントバッファ制御コマンドが含まれて
いるか否かを解析する(S402)。そして、このコマ
ンドが含まれていない場合には、データはプリントバッ
ファ装置の制御を受けずにそのままプリンタへ出力され
る。一方、このコマンドが含まれている場合には、その
コマンドが所定のコマンドであるか否か、この場合に
は、頁毎に異なった給紙トレイ及び印刷枚数を指定させ
る給紙トレイ指定情報の制御コマンドであるか否かを判
断し(S403)、そうであれば、このコマンドの内容
を記憶部3に格納し(S404)、入力されたデータか
ら制御コマンドを除いた残りの印刷データをデータバッ
ファ4にスプールする(S405)。所定のコマンドで
なければ、そのコマンドに応じた動作を行うために、こ
のフローチャートの処理は終了する。
When data is input from the input unit 1 (S4
01), first, the input data control unit 2 analyzes whether or not this data includes a print buffer control command which is control information (S402). If this command is not included, the data is output to the printer as it is without being controlled by the print buffer device. On the other hand, if this command is included, it is determined whether or not the command is a predetermined command, and in this case, the paper feed tray designation information for designating a different paper feed tray and the number of printed sheets for each page. It is determined whether the command is a control command (S403), and if so, the contents of this command are stored in the storage unit 3 (S404), and the remaining print data obtained by removing the control command from the input data is data. It is spooled in the buffer 4 (S405). If the command is not the predetermined command, the process of this flowchart ends in order to perform the operation according to the command.

【0027】そして、データバッファ4へのスプールが
完了するか、データバッファ4がフル状態になると、プ
リンタが印刷可能状態にあるか否かが判断され(S40
6)、印刷可能であれば、出力データ制御部5がデータ
バッファ4の内容を読み出して、出力部6を介してプリ
ンタへのデータの出力を開始する。
When the spooling to the data buffer 4 is completed or the data buffer 4 becomes full, it is judged whether the printer is in the printable state (S40).
6) If printing is possible, the output data control unit 5 reads the contents of the data buffer 4 and starts outputting data to the printer via the output unit 6.

【0028】具体的には、まず、印刷される印刷データ
の各頁の始まりを検知し、対応する頁についての制御情
報を記憶部3に記憶された制御コマンドの内容から読み
取る。そして、制御コードの一つである給紙トレイ制御
コード及び枚数指定制御コードを記憶部3から読み出
し、プリンタの機種に依存した制御コードの形式に調え
た上でプリンタへ送出する(S407)。
Specifically, first, the beginning of each page of the print data to be printed is detected, and the control information for the corresponding page is read from the content of the control command stored in the storage unit 3. Then, the paper feed tray control code and the number of sheets designation control code, which are one of the control codes, are read out from the storage unit 3, adjusted to the format of the control code depending on the printer model, and then sent to the printer (S407).

【0029】その後、1頁分の印刷データをプリンタバ
ッファ4から読み出してプリンタへ送出する(S40
8)。そして、当該頁の印刷データの送出が完了した
ら、次頁がなくなるまでS407及びS408の動作を
繰り返す(S409)。
Thereafter, print data for one page is read from the printer buffer 4 and sent to the printer (S40).
8). Then, when the transmission of the print data of the page is completed, the operations of S407 and S408 are repeated until the next page is exhausted (S409).

【0030】そして、データの送出が終了したら、記憶
部3に記憶された制御コマンドの内容を消去して(S4
10)、動作を終了する。
When the data transmission is completed, the contents of the control command stored in the storage unit 3 are erased (S4
10), the operation ends.

【0031】図5は、図4の動作を行わせるためのプリ
ントバッファ制御コマンドの内容を示す模式図である。
この制御コマンドは、図3に示した制御コードと同様に
プリンタから印刷すべき印刷データの先頭に付加されて
送られてくる。この制御コマンドでは、3バイトのエス
ケープコードに続く2n+1バイトが制御情報である。
制御情報の先頭1バイトは、その後に続くトレイ情報の
長さを示しており、印刷すべき印刷データの頁数をn頁
とすれば、トレイ情報は2nバイトとなる。トレイ情報
は2バイトを一組として、頁に対応して順次配置されて
いる。そして、各頁に対応して選択される給紙トレイ番
号と印刷枚数が指定されている。
FIG. 5 is a schematic diagram showing the contents of the print buffer control command for performing the operation of FIG.
This control command is added to the beginning of the print data to be printed from the printer and sent in the same manner as the control code shown in FIG. In this control command, 2n + 1 bytes following the 3-byte escape code are control information.
The first 1 byte of the control information indicates the length of the tray information that follows it. If the number of pages of print data to be printed is n, the tray information will be 2n bytes. Tray information is sequentially arranged corresponding to pages, with a set of 2 bytes. Then, the paper feed tray number and the number of prints selected for each page are designated.

【0032】このように、データがプリントバッファ装
置を通過する際に、送り込まれたデータの各頁毎に給紙
トレイ制御コード及び枚数指定制御コードを付加してプ
リンタにデータを送出するので、頁単位で給紙トレイ及
び印刷枚数を設定し、より柔軟な態用でデータの印刷を
行うことができる。
As described above, when the data passes through the print buffer device, the data is sent to the printer by adding the paper feed tray control code and the number of sheets designation control code to each page of the sent data. By setting the paper feed tray and the number of prints in units, it is possible to print data in a more flexible manner.

【0033】続いて、図1に示したプリントバッファ装
置を用いた第3の実施例について説明する。図6は、図
1に示したプリントバッファ装置を用いてデータを複数
部数印刷する場合に、印刷データの各部毎に異なった給
紙トレイを指定してプリンタからデータを印刷させる場
合の動作を示すフローチャートである。
Next, a third embodiment using the print buffer device shown in FIG. 1 will be described. FIG. 6 shows an operation when a plurality of copies of data is printed using the print buffer device shown in FIG. 1 and a different paper feed tray is designated for each copy of print data to cause the printer to print the data. It is a flowchart.

【0034】入力部1からデータが入力されると(S6
01)、入力データ制御部2は、まず、このデータに制
御情報であるプリントバッファ制御コマンドが含まれて
いるか否かを解析する(S602)。そして、このコマ
ンドが含まれていない場合には、データはプリントバッ
ファ装置の制御を受けずにそのままプリンタへ出力され
る。一方、このコマンドが含まれている場合には、その
コマンドが所定のコマンドであるか否か、この場合に
は、部毎に異なった給紙トレイを指定させる給紙トレイ
指定情報の制御コマンドであるか否かを判断し(S60
3)、そうであれば、このコマンドの内容を記憶部3に
格納し(S604)、入力されたデータから制御コマン
ドを除いた残りの印刷データをデータバッファ4にスプ
ールする(S605)。所定のコマンドでなければ、そ
のコマンドに応じた動作を行うために、このフローチャ
ートの処理は終了する。
When data is input from the input unit 1 (S6
01), the input data control unit 2 first analyzes whether or not this data includes a print buffer control command which is control information (S602). If this command is not included, the data is output to the printer as it is without being controlled by the print buffer device. On the other hand, if this command is included, it is determined whether or not the command is a predetermined command, and in this case, a control command of the paper feed tray designation information for designating a different paper feed tray for each copy. It is determined whether or not there is (S60
3) If so, the content of this command is stored in the storage unit 3 (S604), and the remaining print data obtained by removing the control command from the input data is spooled in the data buffer 4 (S605). If the command is not the predetermined command, the process of this flowchart ends in order to perform the operation according to the command.

【0035】そして、データバッファ4へのスプールが
完了するか、データバッファ4がフル状態になると、プ
リンタが印刷可能状態にあるか否かが判断され(S60
6)、印刷可能であれば、出力データ制御部5がデータ
バッファ4の内容を読み出して、出力部6を介してプリ
ンタへの印刷データの出力を開始する。この際に、カウ
ンタkを1にセットしておく(S607)。
When the spooling to the data buffer 4 is completed or the data buffer 4 becomes full, it is judged whether the printer is in the printable state (S60).
6) If printing is possible, the output data control unit 5 reads the contents of the data buffer 4 and starts output of print data to the printer via the output unit 6. At this time, the counter k is set to 1 (S607).

【0036】具体的には、まず、印刷される印刷データ
の始まりを検知し、記憶部3に格納された制御コマンド
中のトレイ情報の最初(k=1)のブロック(2バイ
ト)を読み出す。そして、このブロックに格納されたト
レイ番号、印刷部数の指定に従って、給紙トレイ制御コ
ード及び枚数指定制御コードを記憶部3から読み出し、
プリンタの機種に依存した制御コードの形式に調えた上
でプリンタへ送出する(S608)。この後、印刷デー
タの全頁をプリンタへ送出する(S609)。
Specifically, first, the beginning of print data to be printed is detected, and the first (k = 1) block (2 bytes) of the tray information in the control command stored in the storage unit 3 is read. Then, according to the designation of the tray number and the number of prints stored in this block, the paper feed tray control code and the number-of-sheets designation control code are read from the storage unit 3,
The format of the control code depending on the model of the printer is prepared and then sent to the printer (S608). After that, all pages of the print data are sent to the printer (S609).

【0037】そして、データの送出が完了したら、カウ
ンタkとトレイ情報の長さnの大きさを比較し(S61
0)、kがn未満であれば再度S608及びS609の
動作を繰り返す。なお、繰り返しの前にはカウンタkを
1つインクリメントする(S611)。
When the data transmission is completed, the counter k is compared with the size of the tray information length n (S61).
0), if k is less than n, the operations of S608 and S609 are repeated. The counter k is incremented by 1 before the repetition (S611).

【0038】S610でkがn未満でなくなった(k=
nになった)ことが判断されると、記憶部3に記憶され
た制御コマンドの内容を消去して(S612)、動作を
終了する。
In S610, k is not less than n (k =
When it is determined that the value of the control command is n, the content of the control command stored in the storage unit 3 is erased (S612), and the operation ends.

【0039】図7は、図6の動作を行わせるためのプリ
ントバッファ制御コマンドの内容を示す模式図である。
この制御コマンドは、3バイトのエスケープコードに続
く2n+1バイトが制御情報である。制御情報の先頭1
バイトは、その後に続くトレイ情報の長さを示してお
り、指定すべきトレイ情報がn組であれば、トレイ情報
は2nバイトとなる。トレイ情報は2バイトを一組とし
て順次配置されている。そして、各組とも選択される給
紙トレイ番号と印刷部数が指定されている。
FIG. 7 is a schematic diagram showing the contents of the print buffer control command for performing the operation of FIG.
In this control command, 2n + 1 bytes following the 3-byte escape code are control information. First 1 of control information
The byte indicates the length of the tray information that follows, and if the tray information to be designated is n sets, the tray information will be 2n bytes. The tray information is sequentially arranged in sets of 2 bytes. Then, the paper feed tray number and the number of copies to be selected are specified for each set.

【0040】なお、このようにトレイ番号と印刷部数を
一組にしてトレイ情報を表すのではなく、印刷部数分の
領域を確保し、各部に対応して給紙トレイを指定するよ
うにしてもよい。
It should be noted that the tray number and the number of prints are not combined as a set to represent the tray information, but an area for the number of prints is secured and the paper feed tray is designated corresponding to each copy. Good.

【0041】このようにすることにより、複数の給紙ト
レイに異なった用紙を載置しておけば、1部はオリジナ
ルとして給紙トレイAの用紙(普通紙)で印刷し、残り
の10部は社内の配布用なので給紙トレイBの用紙(再
生紙又は裏紙)で印刷するということが可能になり、再
生紙又は裏紙の利用を促進して資源の節約を図ることが
できる。
By doing so, if different papers are placed on the plurality of paper feed trays, one copy is printed with the paper (plain paper) in the paper feed tray A as the original, and the remaining 10 papers are printed. Since it is for distribution within the company, it is possible to print with the paper (recycled paper or backing paper) in the paper feed tray B, and it is possible to promote the use of recycled paper or backing paper and save resources.

【0042】以上のようにして、印刷データの頁毎又は
部毎に対応して給紙トレイを選択することができるが、
プリンタに送出するプリンタ制御用の給紙トレイ制御コ
ード及び枚数指定制御コードはプリンタの機種に依存し
ているため、使用するプリンタが変更された場合にはこ
れらの制御コードを変更する必要がある。この発明の各
実施例で用いるプリントバッファ装置においては、入力
データ制御部2によってプリントバッファ制御コマンド
の有無及び種類を判別するようにしているので、この機
能を利用してプリンタ制御用の制御コードを変更するよ
うにする。
As described above, the paper feed tray can be selected for each page or copy of print data.
Since the paper feed tray control code and the number of sheets designation control code for controlling the printer to be sent to the printer depend on the model of the printer, it is necessary to change these control codes when the printer to be used is changed. In the print buffer device used in each embodiment of the present invention, the input data control unit 2 determines the presence and type of the print buffer control command. Try to change.

【0043】図8は、この制御コード変更用のプリント
バッファ制御コマンドの内容を示す模式図である。この
制御コマンドは、制御コマンドの種類を示す3バイトの
エスケープコードの他に、n+1バイトの制御情報を有
している。そして、この制御情報は、この制御情報の長
さ(1バイト)、変更する制御コードの種類(1バイ
ト)、新しい制御コード(n−1)を有しており、この
制御コマンドが単独で入力部1から入力される。そし
て、入力データ制御部2の制御のもと以下に述べるよう
な所定の動作が行われる。なお、制御コードの種類は、
例えば給紙トレイ制御コードなら「0」、枚数指定制御
コードなら「1」というように設定されている。
FIG. 8 is a schematic diagram showing the contents of the print buffer control command for changing the control code. This control command has n + 1 bytes of control information in addition to a 3-byte escape code indicating the type of control command. This control information has the length of this control information (1 byte), the type of control code to be changed (1 byte), and a new control code (n-1), and this control command is input independently. Input from part 1. Then, under the control of the input data control unit 2, a predetermined operation as described below is performed. The type of control code is
For example, the paper feed tray control code is set to "0", and the number designation control code is set to "1".

【0044】図9は、記憶部3で保持しているプリンタ
制御用の給紙トレイ制御コード及び枚数指定制御コード
を変更させる場合の動作を示すフローチャートである。
データが入力されると(S901)、入力データ制御部
2は、まず、このデータにプリントバッファ制御コマン
ドが含まれているか否かを解析する(S902)。そし
て、このコマンドが含まれていない場合には、データは
プリントバッファ装置の制御を受けずにそのままプリン
タへ出力される。プリントバッファ制御コマンドが含ま
れており、これが制御コード変更コマンドである場合に
は(S903)、変更する制御コードの種類を判断し
(S904)、それに応じて枚数指定制御コード又は給
紙トレイ制御コードを変更する(S905又はS90
6)。なお、このプリントバッファ制御コマンドが制御
コード変更コマンドでない場合には、上述した各実施例
のような処理を行う。
FIG. 9 is a flow chart showing the operation in the case of changing the paper feed tray control code and the number of sheets designation control code for controlling the printer held in the storage unit 3.
When data is input (S901), the input data control unit 2 first analyzes whether this data includes a print buffer control command (S902). If this command is not included, the data is output to the printer as it is without being controlled by the print buffer device. If the print buffer control command is included and this is a control code change command (S903), the type of the control code to be changed is determined (S904), and the number-of-sheets designation control code or the paper feed tray control code is correspondingly determined. Is changed (S905 or S90
6). If this print buffer control command is not a control code change command, the processing as in each of the above-described embodiments is performed.

【0045】このようにして、プリンタに送る制御コー
ドの変更を容易に行うことができるので、接続するプリ
ンタの種類に依存しない汎用性のあるプリントバッファ
装置を提供することができる。
In this way, the control code sent to the printer can be easily changed, so that it is possible to provide a versatile print buffer device that does not depend on the type of printer to be connected.

【0046】[0046]

【発明の効果】以上説明したように、この発明によれ
ば、印刷データと頁毎の給紙トレイ指定情報からなるデ
ータがプリントバッファ装置を通過する際に、取り込ま
れた印刷データの各頁毎に給紙トレイ指定情報を付加す
る形式にデータを変換するので、特別な機能を追加する
ことなく、印刷データに付加する頁毎の給紙トレイ指定
情報の内容を変えるだけで、容易に頁単位の給紙トレイ
選択が可能になる。
As described above, according to the present invention, when the data consisting of the print data and the feed tray designation information for each page passes through the print buffer device, each page of the fetched print data is read. Since the data is converted to a format in which the paper tray specification information is added to, it is possible to easily change the contents of the paper tray specification information for each page to be added to the print data without adding a special function. It becomes possible to select the paper feed tray of.

【0047】また、印刷データを複数部数印刷する場合
には、印刷データと部毎の給紙トレイ指定情報からなる
データがプリントバッファ装置を通過する際に、取り込
まれた印刷データの各部毎に給紙トレイ指定情報を付加
する形式にデータを変換するので、特別な機能を追加す
ることなく、印刷データに付加する部毎の給紙トレイ指
定情報の内容を変えるだけで、容易に部単位の給紙トレ
イ選択が可能になる。
When a plurality of sets of print data are printed, when the data consisting of the print data and the paper feed tray designation information for each set passes through the print buffer device, the print data fetched is supplied for each set. Since the data is converted to the format that adds the paper tray specification information, you can easily supply the paper by unit by changing the contents of the paper tray specification information for each copy to be added to the print data without adding a special function. The paper tray can be selected.

【図面の簡単な説明】[Brief description of drawings]

【図1】この発明の各実施例に共通して用いられるプリ
ントバッファ装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a print buffer device commonly used in each embodiment of the present invention.

【図2】この発明の第1の実施例に対応し、頁毎に異な
った給紙トレイを選択してプリンタからデータを印刷さ
せる場合の動作を示すフローチャートである。
FIG. 2 is a flowchart corresponding to the first embodiment of the present invention and showing the operation in the case of selecting a different paper feed tray for each page and printing data from the printer.

【図3】第1の実施例の動作を行わせるためのプリント
バッファ制御コマンドの内容を示す模式図である。
FIG. 3 is a schematic diagram showing the contents of a print buffer control command for performing the operation of the first embodiment.

【図4】この発明の第2の実施例に対応し、データの各
頁毎に異なった給紙トレイ及び印刷枚数を指定してプリ
ンタからデータを印刷させる場合の動作を示すフローチ
ャートである。
FIG. 4 is a flowchart corresponding to the second embodiment of the present invention and showing an operation in a case where a different paper feed tray and a different number of prints are designated for each page of data and data is printed from the printer.

【図5】第2の実施例の動作を行わせるためのプリント
バッファ制御コマンドの内容を示す模式図である。
FIG. 5 is a schematic diagram showing the contents of a print buffer control command for performing the operation of the second embodiment.

【図6】この発明の第3の実施例に対応し、データを複
数部数印刷する場合に、データの各部毎に異なった給紙
トレイを指定してプリンタからデータを印刷させる場合
の動作を示すフローチャートである。
FIG. 6 corresponds to the third embodiment of the present invention and shows an operation in the case of printing a plurality of copies of data, in which a different paper feed tray is designated for each copy of the data and the data is printed from the printer. It is a flowchart.

【図7】第3の実施例の動作を行わせるためのプリント
バッファ制御コマンドの内容を示す模式図である。
FIG. 7 is a schematic diagram showing the contents of a print buffer control command for performing the operation of the third embodiment.

【図8】記憶部3で保持しているプリンタ制御用の制御
コードを変更するためのプリントバッファ制御コマンド
の内容を示す模式図である。
FIG. 8 is a schematic diagram showing the contents of a print buffer control command for changing the control code for printer control stored in the storage unit 3.

【図9】記憶部3で保持しているプリンタ制御用の給紙
トレイ制御コード及び枚数指定制御コードを変更させる
場合の動作を示すフローチャートである。
FIG. 9 is a flowchart showing an operation when changing the paper feed tray control code and the number of sheets designation control code for printer control held in the storage unit 3.

【符号の説明】[Explanation of symbols]

1 入力部 2 入力データ制御部 3 記憶部 4 データバッファ 5 出力データ制御部 6 出力部 1 Input Section 2 Input Data Control Section 3 Storage Section 4 Data Buffer 5 Output Data Control Section 6 Output Section

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 プリンタから印刷すべき印刷データにプ
リンタに対する頁毎の給紙トレイ指定情報を含む制御情
報が付加されたデータを外部装置から取り込み、該デー
タを変換してプリンタに出力するプリントバッファ装置
において、 前記印刷データを記憶する印刷データ記憶手段と、 前記制御情報を記憶する制御情報記憶手段と、 前記印刷データ記憶手段から前記印刷データの各頁のデ
ータを順次読み出すとともに、前記制御情報記憶手段か
ら前記印刷データの各頁に対する給紙トレイ指定情報を
読み出し、それを出力するプリンタに応じた給紙トレイ
制御コードに変換して、前記各頁の印刷データに付加し
て該プリンタに出力する出力データ制御手段とを備えた
ことを特徴とするプリントバッファ装置。
1. A print buffer for fetching data in which control information including feed tray designation information for each page is added to print data to be printed from a printer from an external device, and the data is converted and output to the printer. In the apparatus, a print data storage unit that stores the print data, a control information storage unit that stores the control information, data of each page of the print data is sequentially read from the print data storage unit, and the control information storage unit The paper feed tray designation information for each page of the print data is read from the means, converted into a paper feed tray control code according to the printer that outputs it, added to the print data of each page, and output to the printer. A print buffer device comprising: output data control means.
【請求項2】 プリンタから印刷すべき印刷データにプ
リンタに対する部毎の給紙トレイ指定情報を含む制御情
報が付加されたデータを外部装置から取り込み、該デー
タを変換してプリンタに出力するプリントバッファ装置
において、 前記印刷データを記憶する印刷データ記憶手段と、 前記制御情報を記憶する制御情報記憶手段と、 前記印刷データ記憶手段から前記印刷データを複数部数
読み出すとともに、前記制御情報記憶手段から前記印刷
データの各部に対する給紙トレイ指定情報を読み出し、
それを出力するプリンタに応じた給紙トレイ制御コマン
ドに変換して、前記各部の印刷データに付加して該プリ
ンタに出力する出力データ制御手段とを備えたことを特
徴とするプリントバッファ装置。
2. A print buffer that takes in data from an external device to which print data to be printed from the printer is added control information including paper tray designation information for each copy of the printer, converts the data, and outputs the data to the printer. In the apparatus, a print data storage unit that stores the print data, a control information storage unit that stores the control information, a plurality of copies of the print data from the print data storage unit, and the print from the control information storage unit. Read the paper tray specification information for each part of the data,
A print buffer device, comprising: output data control means for converting the paper feed tray control command corresponding to a printer that outputs the print data, adding the print data to each unit, and outputting the print data to the printer.
JP6229567A 1994-09-26 1994-09-26 Print buffer Pending JPH0890846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6229567A JPH0890846A (en) 1994-09-26 1994-09-26 Print buffer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6229567A JPH0890846A (en) 1994-09-26 1994-09-26 Print buffer

Publications (1)

Publication Number Publication Date
JPH0890846A true JPH0890846A (en) 1996-04-09

Family

ID=16894202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6229567A Pending JPH0890846A (en) 1994-09-26 1994-09-26 Print buffer

Country Status (1)

Country Link
JP (1) JPH0890846A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100402299C (en) * 2005-05-13 2008-07-16 明基电通股份有限公司 Ink cartridge package mechanism utilizing inner space of printer for placing ink cartridge
US7689138B2 (en) 2004-09-17 2010-03-30 Sharp Kabushiki Kaisha Printing control apparatus, printing apparatus, printing control method, printing control program, and medium for recording the printing control program
US7701606B2 (en) 1996-05-14 2010-04-20 Ricoh Company, Ltd. Java printer with a printer control interface in a form of a web page
US7889375B2 (en) 2000-04-27 2011-02-15 Canon Kabushiki Kaisha Print control apparatus and method, and print system
US7944571B2 (en) 2003-08-21 2011-05-17 Brother Kogyo Kabushiki Kaisha Image forming device with carbon copy function
JP2016152025A (en) * 2015-02-19 2016-08-22 シャープ株式会社 Image processing system, image processor, computer program and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7701606B2 (en) 1996-05-14 2010-04-20 Ricoh Company, Ltd. Java printer with a printer control interface in a form of a web page
US7755785B2 (en) 1996-05-14 2010-07-13 Ricoh Company, Ltd. Image forming apparatus
US7952744B2 (en) 1996-05-14 2011-05-31 Ricoh Company, Ltd. Controlling a configuration of an image forming apparatus
US8102556B2 (en) 1996-05-14 2012-01-24 Ricoh Company, Ltd. Controlling a configuration of an image forming apparatus using a Java application
US7889375B2 (en) 2000-04-27 2011-02-15 Canon Kabushiki Kaisha Print control apparatus and method, and print system
US8035841B2 (en) 2000-04-27 2011-10-11 Canon Kabushiki Kaisha Print control apparatus and method, and print system
US8259336B2 (en) 2000-04-27 2012-09-04 Canon Kabushiki Kaisha Print control apparatus and method, and print system
US7944571B2 (en) 2003-08-21 2011-05-17 Brother Kogyo Kabushiki Kaisha Image forming device with carbon copy function
US7689138B2 (en) 2004-09-17 2010-03-30 Sharp Kabushiki Kaisha Printing control apparatus, printing apparatus, printing control method, printing control program, and medium for recording the printing control program
CN100402299C (en) * 2005-05-13 2008-07-16 明基电通股份有限公司 Ink cartridge package mechanism utilizing inner space of printer for placing ink cartridge
JP2016152025A (en) * 2015-02-19 2016-08-22 シャープ株式会社 Image processing system, image processor, computer program and storage medium

Similar Documents

Publication Publication Date Title
EP0446928A2 (en) Label printer
JPH0890846A (en) Print buffer
US5481367A (en) Printing apparatus capable of changing print format
JP3133801B2 (en) Image communication method and apparatus
JPS6145325A (en) Printer
JP4669815B2 (en) Image forming device for printing irregular paper sizes
JPH08258364A (en) Cut sheet page printer system
JP2664215B2 (en) Printing system
JP2806680B2 (en) Printer device
JP3161744B2 (en) Information processing device
JPS60110033A (en) Display printer
JPH04265776A (en) Printing apparatus
JP3589443B2 (en) Printer device
JP2803560B2 (en) Printer control device
JPS609792A (en) Printer
JPH05328057A (en) Facsimile equipment
JPS6166464A (en) Facsimile transmitting equipment
JP2000263874A (en) Printing apparatus and printing control method
JPH11221952A (en) Printer, print system and method for controlling paper feed to a multibin unit
JPH03100760A (en) Document processing device
JP2002132473A (en) Network printer
JP2001270163A (en) Imaging apparatus and method for outputting image data
JPS63256446A (en) Printer
JPH11198493A (en) Printer
JPH04197675A (en) Multi-printer device