JPH086744A - Image recording device - Google Patents
Image recording deviceInfo
- Publication number
- JPH086744A JPH086744A JP6133248A JP13324894A JPH086744A JP H086744 A JPH086744 A JP H086744A JP 6133248 A JP6133248 A JP 6133248A JP 13324894 A JP13324894 A JP 13324894A JP H086744 A JPH086744 A JP H086744A
- Authority
- JP
- Japan
- Prior art keywords
- page buffer
- paper
- image data
- size
- job
- 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.)
- Granted
Links
- 239000000872 buffer Substances 0.000 claims abstract description 193
- 238000001514 detection method Methods 0.000 claims description 15
- 238000000034 method Methods 0.000 abstract description 40
- 238000012545 processing Methods 0.000 description 58
- 230000004044 response Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、入力されるプリントデ
ータを記録用紙に印刷する画像記録装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image recording apparatus for printing input print data on recording paper.
【0002】[0002]
【従来の技術】近年、1台の画像記録装置を複数の利用
者で共有することが行われている。これによれば、画像
記録装置の稼働率を向上させ、コストやスペースを低減
することが可能である。このような方式では、複数の利
用者が印刷要求を行った場合には、画像記録装置側で複
数の印刷要求を受け付け、これらのプリントジョブに順
序付けを行って管理を行い、定められた順番にプリント
ジョブの画像記録処理を行っていく。2. Description of the Related Art In recent years, one image recording apparatus has been shared by a plurality of users. According to this, it is possible to improve the operating rate of the image recording apparatus and reduce the cost and space. In such a method, when a plurality of users make print requests, the image recording apparatus side accepts the plurality of print requests, orders and manages these print jobs, and manages them in a predetermined order. Image recording processing for print jobs is performed.
【0003】このとき、印刷処理中のプリントジョブが
記録用紙の紙詰まり、あるいは用紙切れ等の原因によっ
て長時間印刷処理が行われない状態になった場合には、
そのプリントジョブのイメージが展開されているページ
バッファ内のデータは、印刷処理が可能な状態になるま
で保持されなければならない。そのために、ページバッ
ファのこの保持されるべきイメージデータが書き込まれ
ている領域はクリアすることができず、次のページの展
開等に用いることができないのでページバッファの利用
効率が低下するという問題があった。At this time, if the print job during the print processing is in a state in which the print processing is not performed for a long time due to a paper jam of the recording paper, a paper shortage, or the like,
The data in the page buffer in which the image of the print job is developed must be retained until the print processing becomes possible. Therefore, the area of the page buffer in which the image data to be held is written cannot be cleared and cannot be used for the expansion of the next page. there were.
【0004】これに対して、複数ページ分のページバッ
ファを用意しておき、印刷処理が不可能な状態にある場
合にもページバッファの空き容量を用いて展開処理を行
うことが行われている。例えば、特開平2−29718
1号公報においては、印刷要求されたページ数とページ
バッファの空き容量を比較して、ページバッファに展開
できるページ数分のプリントデータを読み込み、そのプ
リントデータを順次ページバッファに展開していき、そ
れに平行して、ページバッファに空きが生じた場合に
は、その空いた領域に新たなイメージを展開していくこ
とが提案されている。On the other hand, page buffers for a plurality of pages are prepared, and even when printing processing is impossible, expansion processing is performed using the free space of the page buffer. . For example, JP-A-2-29718
In Japanese Patent Laid-Open No. 1, the number of pages requested to be printed is compared with the free space of the page buffer, print data for the number of pages that can be expanded in the page buffer is read, and the print data is expanded sequentially in the page buffer. In parallel with this, when a page buffer has a space, it is proposed to develop a new image in the space.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、上述し
たような従来の画像記録装置においては、印刷を行おう
とした記録用紙が画像記録装置内の給紙トレイに存在し
ていない場合、あるいは使いきってしまった場合等に
は、給紙トレイに所望の用紙サイズの記録用紙を補給し
てやる動作が必要となり、当該用紙が補給されるまでは
紙詰まり等が発生した場合と同様に印刷処理が行えない
という問題を有しているものである。However, in the conventional image recording apparatus as described above, when the recording sheet to be printed is not present in the paper feed tray in the image recording apparatus or is used up. If it does, it is necessary to replenish the paper tray with recording paper of the desired paper size, and the printing process cannot be performed until the paper is replenished, similar to the case where a paper jam occurs. It has a problem.
【0006】これに対して、紙切れ等によって印刷処理
が停止した場合、この段階で待ち状態になっているその
他のプリントジョブが給紙トレイに存在する用紙を用い
る印刷要求であった場合には、割り込み処理により当該
プリントジョブの印刷処理を行うことが可能となるが、
上述したような従来のページバッファの使用方法によれ
ば、ページバッファには給紙トレイに存在しない用紙サ
イズに対応する領域が確保されているので、クリアでき
ないページバッファの領域が増大していき、このような
状態で他のプリントジョブを割り込ませたとしても、ペ
ージバッファに空き容量がないため、印刷処理は滞って
しまうものである。On the other hand, when the printing process is stopped due to a paper shortage or the like, and another print job waiting at this stage is a print request using the paper existing in the paper feed tray, It is possible to perform print processing for the print job by interrupt processing.
According to the conventional method of using the page buffer as described above, since the area corresponding to the paper size not existing in the paper feed tray is secured in the page buffer, the area of the page buffer that cannot be cleared increases. Even if another print job is interrupted in such a state, the print processing is delayed because there is no free space in the page buffer.
【0007】本発明は、上記の課題を解決するものであ
って、紙切れが生じた場合には当該プリントジョブは一
旦停止するが、サイズが異なる用紙を用いる他のプリン
トジョブを行うことによって、停滞するプリントジョブ
の数を減らし、全体として印刷処理の待ち時間を低減さ
せることができる画像記録装置を提供することを目的と
するものである。The present invention is to solve the above-mentioned problems. When a paper shortage occurs, the print job is temporarily stopped, but the print job is stagnated by performing another print job using a paper of a different size. It is an object of the present invention to provide an image recording apparatus capable of reducing the number of print jobs to be performed and reducing the waiting time of the printing process as a whole.
【0008】[0008]
【課題を解決するための手段】上記の目的を達成するた
めに、請求項1記載の画像記録装置は、入力されたプリ
ントデータを記憶するスプール手段と、ページバッファ
と、スプール手段に記憶されたプリントデータを読み出
してイメージデータに変換してページバッファに展開す
る画像データ展開手段と、給紙トレイとを備えた画像記
録装置において、印刷要求を受け付けるジョブ管理手段
と、給紙トレイ内の記録用紙の有無とその用紙サイズを
検出する用紙サイズ検出手段と、画像データ展開手段が
ページバッファにイメージデータを展開する際に、設定
されている用紙サイズに対応するサイズ分をページバッ
ファに確保するページバッファ管理手段と、ページバッ
ファ管理手段によってあるサイズがページバッファに確
保されており、且つ画像データ展開手段がページバッフ
ァに当該サイズのイメージデータを展開している場合に
おいて、用紙サイズ検出手段によって当該サイズの用紙
が給紙トレイに存在しないことが検出されたときにはペ
ージバッファ管理手段に対してページバッファの解放を
指示する制御手段とを備えることを特徴とする。In order to achieve the above object, an image recording apparatus according to a first aspect of the invention has a spool means for storing input print data, a page buffer, and a spool means. In an image recording apparatus including an image data expanding unit that reads print data, converts it into image data, and expands it in a page buffer, and a paper feed tray, a job management unit that receives a print request, and a recording paper in the paper feed tray. And a page size buffer that secures a size corresponding to the set size in the page buffer when the image data expansion unit expands the image data in the page buffer. A certain size is secured in the page buffer by the management means and the page buffer management means, and In the case where the image data expanding means expands the image data of the size in the page buffer and the paper size detecting means detects that the paper of the size does not exist in the paper feed tray, the page buffer managing means is instructed. And a control means for instructing release of the page buffer.
【0009】また、請求項2記載の画像記録装置は、ペ
ージバッファと、プリントデータを読み出してイメージ
データに変換してページバッファに展開する画像データ
展開手段と、給紙トレイとを備えた画像記録装置におい
て、印刷要求を受け付けるジョブ管理手段と、給紙トレ
イ内の記録用紙の有無とその用紙サイズを検出する用紙
サイズ検出手段と、画像データ展開手段がページバッフ
ァにイメージデータを展開する際に、設定されている用
紙サイズに対応するサイズ分をページバッファに確保す
るページバッファ管理手段と、用紙サイズ検出手段によ
って用紙がないと判断された場合には、ページバッファ
管理手段に対して、ページバッファへの当該用紙サイズ
に対応するサイズの確保要求を禁止する制御手段とを備
えることを特徴とする。An image recording apparatus according to a second aspect of the present invention includes an image recording device including a page buffer, image data expansion means for reading out print data, converting the image data into image data, and expanding the image data in the page buffer, and a paper feed tray. In the apparatus, a job management unit that receives a print request, a paper size detection unit that detects the presence or absence of recording paper in the paper feed tray and the paper size, and an image data expansion unit that expands image data in a page buffer, When the page buffer management unit that secures a size corresponding to the set paper size in the page buffer and the paper size detection unit determines that there is no paper, the page buffer management unit transfers the page buffer to the page buffer. And a control unit for prohibiting a request to secure a size corresponding to the paper size. That.
【0010】[0010]
【作用】請求項1記載の画像記録装置の作用は次のよう
である。入力されたプリントデータはスプール手段に記
憶され、画像データ展開手段によってイメージデータに
展開されてページバッファに書き込まれる。その後、ペ
ージバッファに展開されたイメージデータは印刷処理が
施されることになるが、当該プリントジョブで設定され
ているサイズの用紙が給紙トレイに存在しないことが用
紙サイズ検出手段によって検出された場合には、制御手
段はページバッファ管理手段に対してページバッファを
解放することを指示する。The operation of the image recording apparatus according to the first aspect is as follows. The input print data is stored in the spool means, expanded into image data by the image data expansion means, and written in the page buffer. After that, the image data expanded in the page buffer is subjected to print processing, but the paper size detecting unit detects that the paper of the size set in the print job does not exist in the paper feed tray. In this case, the control means instructs the page buffer management means to release the page buffer.
【0011】この指示を受けると、ページバッファ管理
手段は、現在ページバッファに書き込まれているイメー
ジデータをクリアし、ページバッファを解放する。Upon receiving this instruction, the page buffer management means clears the image data currently written in the page buffer and releases the page buffer.
【0012】これによって、待ち状態にあるプリントジ
ョブのうち、紙切れ状態にある用紙サイズ以外の用紙を
用いるプリントジョブがページバッファを使用すること
が可能となるので、このプリントジョブの印刷処理を行
うことが可能となる。As a result, among the print jobs in the waiting state, a print job using a paper size other than the paper size in the out-of-paper state can use the page buffer. Therefore, the print processing of this print job is performed. Is possible.
【0013】次に、請求項2記載の画像記録装置の作用
について説明すると次のようである。Next, the operation of the image recording apparatus according to the second aspect will be described as follows.
【0014】印刷要求はジョブ管理手段によって受け付
けられると画像データ展開手段に展開され、イメージデ
ータに展開されることになるが、その際には、まず当該
印刷要求で設定されているサイズの用紙が給紙トレイに
存在するかどうかが判断され、用紙サイズ検出手段によ
って当該サイズの用紙が給紙トレイに存在しないことが
検出されると、制御手段は、ページバッファ管理手段に
対して、ページバッファへの当該用紙サイズに対応する
サイズの確保要求を禁止する。When the print request is received by the job managing means, it is expanded by the image data expanding means and expanded into image data. At that time, first, the paper of the size set by the print request is transferred. When it is determined whether or not the paper is present in the paper feed tray, and the paper size detection means detects that the paper of the size is not present in the paper feed tray, the control means instructs the page buffer management means to move to the page buffer. The request to secure the size corresponding to the paper size is prohibited.
【0015】これによって、印刷要求によって設定され
ているサイズの用紙が給紙トレイに存在しない場合に
は、当該印刷要求は停止され、その他の印刷要求のプリ
ントジョブが行われることになる。As a result, when the paper size of the size set by the print request does not exist in the paper feed tray, the print request is stopped and the print job of the other print request is performed.
【0016】[0016]
【実施例】以下、図面を参照しつつ実施例を説明する。
図1は本発明に係る画像記録装置の第1の実施例の構成
を示す図であり、図中、1はホストインターフェース、
2は画像データ展開手段、3はページバッファ、4はペ
ージバッファ管理手段、5は印刷手段、6は給紙トレ
イ、7は用紙サイズ検出手段、8はジョブ管理手段、9
は制御手段、10はスプーラ、11はアドレス記憶テー
ブル、12は待ち行列テーブルを示す。Embodiments will be described below with reference to the drawings.
FIG. 1 is a diagram showing the configuration of a first embodiment of an image recording apparatus according to the present invention, in which 1 is a host interface,
Reference numeral 2 is an image data developing means, 3 is a page buffer, 4 is a page buffer managing means, 5 is a printing means, 6 is a paper feed tray, 7 is a paper size detecting means, 8 is a job managing means, and 9 is a job managing means.
Is a control means, 10 is a spooler, 11 is an address storage table, and 12 is a queue table.
【0017】図1において、ホストインターフェース1
はLAN等のネットワーク(図示せず)に接続されてお
り、ホストコンピュータからの印刷要求等のデータを受
信するものである。In FIG. 1, the host interface 1
Is connected to a network (not shown) such as a LAN and receives data such as a print request from a host computer.
【0018】スプーラ10は、ホストインターフェース
1で受信したプリントデータを記憶するためのものであ
り、ハードディスク装置等で構成される。The spooler 10 is for storing print data received by the host interface 1, and is composed of a hard disk device or the like.
【0019】ジョブ管理手段8は印刷要求があった場合
に、その印刷要求をプリントジョブとして管理するもの
であり、印刷要求を受け付けると、所定の順序、例えば
受け付け順にプリントジョブを待ち行列テーブル12に
キューイングする。When there is a print request, the job management means 8 manages the print request as a print job. When the print request is accepted, the print jobs are stored in the queue table 12 in a predetermined order, for example, in the order of acceptance. Queue.
【0020】画像データ展開手段2は、ジョブ管理手段
8によってプリントデータの展開が指示されると、指示
されたプリントデータをスプーラ10から読み出してビ
ットマップのイメージデータに展開するものである。When the job management means 8 gives an instruction to expand the print data, the image data expanding means 2 reads the specified print data from the spooler 10 and expands it into bitmap image data.
【0021】ページバッファ3は、画像データ展開手段
2によって展開されたイメージデータが書き込まれるも
のであり、DRAM等の記憶装置で構成される。なお、
ここではページバッファ3は複数ページ分のイメージデ
ータを格納できるサイズを備えているものとする。そし
て、このページバッファ3はページバッファ管理手段4
によって管理される。The page buffer 3 is for writing the image data expanded by the image data expanding means 2 and is composed of a storage device such as a DRAM. In addition,
Here, it is assumed that the page buffer 3 has a size capable of storing image data for a plurality of pages. Then, this page buffer 3 is a page buffer management means 4
Managed by.
【0022】アドレス記憶テーブル11は、画像データ
展開手段2がページバッファ3内の1ページ分の領域に
イメージデータを展開する際にスプーラ10に記憶され
ているプリントデータのページの先頭アドレスを記憶す
るためのものである。The address storage table 11 stores the start address of the page of the print data stored in the spooler 10 when the image data expanding means 2 expands the image data in the area of one page in the page buffer 3. It is for.
【0023】印刷手段5は、ページバッファ3に展開さ
れたイメージデータをプリントデータで設定されている
サイズの記録用紙に印刷するものである。なお、この印
刷手段5は周知のものであるので、詳細な説明は省略す
る。The printing means 5 prints the image data developed in the page buffer 3 on a recording sheet of a size set by the print data. Since the printing unit 5 is well known, detailed description thereof will be omitted.
【0024】給紙トレイ61 ,62 ,…,6n は印刷手
段5に供給する記録用紙を収納するものであり、用紙サ
イズ毎に異なる給紙トレイに収納されている。そして、
各給紙トレイ61 ,62 ,…,6n に収納されている記
録用紙の用紙サイズ及びその有無は用紙サイズ検出手段
7により検出される。なお、給紙トレイに収納されてい
る記録用紙の用紙サイズの検出は、給紙トレイ61 〜6
n の筐体に設けられたマグネット等をセンサで検出する
等の手法によって検出することができ、また用紙の有無
の検出は、印刷手段5へ記録用紙を供給する搬送経路上
に設けた光学センサ等で検出することができることは当
業者に明らかである。The paper feed trays 6 1 , 6 2 , ..., 6 n are for accommodating recording paper to be supplied to the printing means 5, and are accommodated in paper feed trays different for each paper size. And
The paper size and the presence / absence of the recording papers stored in the paper feed trays 6 1 , 6 2 , ..., 6 n are detected by the paper size detecting means 7. The detection of the paper size of the recording paper stored in the paper feed tray, the paper feed tray 61 through
It can be detected by a method of detecting a magnet or the like provided in the housing of n with a sensor, and the presence / absence of a sheet can be detected by an optical sensor provided on a conveyance path for supplying a recording sheet to the printing unit 5. It is obvious to those skilled in the art that it can be detected by
【0025】制御手段9は、当該画像記録装置の動作を
全体的に統括して管理するものである。The control means 9 totally controls the operation of the image recording apparatus.
【0026】なお、この実施例において、制御手段9、
ジョブ管理手段8、ページバッファ管理手段4及び画像
データ展開手段2は、並列処理が可能なCPU上で動作
するようになされ、これらの各手段はそれぞれ1つのプ
ロセスとして動作するようになされている。更に、各プ
ロセスは他のプロセスとプロセス間通信(以下、IPC
メッセージと称す)により通信することができるように
なされている。また、アドレス記憶テーブル11や待ち
行列テーブル12はCPUが使用する主メモリ上に作成
されるものとする。そして、ここでは待ち行列テーブル
12はFIFO構造を持つテーブルであり、FIFO内
の順番をジョブ管理手段8によって変更できるものとす
る。In this embodiment, the control means 9,
The job management means 8, the page buffer management means 4, and the image data expansion means 2 operate on a CPU capable of parallel processing, and each of these means operates as one process. Furthermore, each process communicates with other processes (hereinafter, IPC).
It is designed to be able to communicate by means of a message). The address storage table 11 and the queue table 12 are created in the main memory used by the CPU. Further, here, the queue table 12 is a table having a FIFO structure, and the order in the FIFO can be changed by the job management means 8.
【0027】次に、図1に示す画像記録装置の各部の動
作について、図2〜図5を参照して説明する。図2はジ
ョブ管理手段8の動作を示すフローチャートであり、図
3は制御手段9の動作を示すフローチャートであり、図
4は画像データ展開手段2の動作を示すフローチャート
であり、図5はページバッファ管理手段4の動作を示す
フローチャートである。なお、上述したところから明ら
かなように、これらのフローチャートで示す処理は各部
において同時並行的に行われるものであることは当然で
ある。Next, the operation of each part of the image recording apparatus shown in FIG. 1 will be described with reference to FIGS. 2 is a flow chart showing the operation of the job management means 8, FIG. 3 is a flow chart showing the operation of the control means 9, FIG. 4 is a flow chart showing the operation of the image data expansion means 2, and FIG. 5 is a page buffer. 6 is a flowchart showing the operation of the management unit 4. As is clear from the above description, the processes shown in these flowcharts are naturally performed in parallel in each unit.
【0028】まず、図2を参照して、ジョブ管理手段8
の動作について説明する。ジョブ管理手段8はイベント
駆動型の動作を行うものであり、ホストインターフェー
ス1からの印刷要求受信の信号、及び制御手段9からの
割り込み処理の指示を待機する(S10,S15)。First, referring to FIG. 2, the job management means 8
The operation of will be described. The job management unit 8 performs an event-driven operation, and waits for a print request reception signal from the host interface 1 and an interrupt processing instruction from the control unit 9 (S10, S15).
【0029】そして、ホストインターフェース1から印
刷要求を受信した旨の信号を受けると、ジョブ管理手段
8は、プリントデータが入力されたというイベントが発
生したとして、このプリントデータを一つのジョブとし
てジョブIDを採番する(S11)。このジョブID
は、例えばこの画像記録装置の電源投入時から1ずつイ
ンクリメントされる整数値とすればよい。When the signal indicating that the print request is received is received from the host interface 1, the job management means 8 determines that an event that the print data is input occurs, and the print data is regarded as one job and the job ID is set as the job ID. Is numbered (S11). This job ID
May be, for example, an integer value that is incremented by 1 after the power of the image recording apparatus is turned on.
【0030】ジョブIDを採番すると、ジョブ管理手段
8は、当該プリントデータをスプーラ10に格納する
(S12)。When the job ID is assigned, the job management means 8 stores the print data in the spooler 10 (S12).
【0031】次に、ジョブ管理手段8は、画像データ展
開手段2が前のプリントジョブの実行中であるか否か、
即ち前のプリントジョブのプリントデータを展開中であ
るかどうかを画像データ展開手段2からのIPCメッセ
ージによって判断し(S13)、画像データ展開手段2
が前のプリントジョブを終了している場合には、画像デ
ータ展開手段2に対して、スプーラ10に格納された当
該プリントデータのイメージデータへの展開指示をIP
Cメッセージにより送信する(S17)。なお、図2に
おいて20で示す記号はIPCメッセージ送信を行うこ
とを示している。以下、同様である。但し、以下におい
ては20の符号は省略する。Next, the job management means 8 determines whether the image data expansion means 2 is executing the previous print job.
That is, whether or not the print data of the previous print job is being expanded is determined by the IPC message from the image data expanding unit 2 (S13), and the image data expanding unit 2 is determined.
Has completed the previous print job, the image data expansion means 2 is instructed by IP to expand the print data stored in the spooler 10 into image data.
It is transmitted by the C message (S17). In FIG. 2, the symbol 20 indicates that the IPC message is transmitted. The same applies hereinafter. However, in the following, the reference numeral 20 is omitted.
【0032】しかし、ステップS13の判断で画像デー
タ展開手段2が前のプリントジョブの処理を終了してい
ない場合には、今回受け付けたプリントジョブに関する
情報、例えばジョブID、スプーラ10内のスプーリン
グ・アドレス、データ量等の情報を待ち行列テーブル1
2に格納(S14)し、画像データ展開手段2が前のプ
リントジョブの処理を終了するのを待機する。そして、
画像データ展開手段2が前のプリントジョブの処理を終
了すると、ジョブ管理手段8は当該プリントジョブのイ
メージデータへの展開指示をIPCメッセージにより送
信する。ジョブ管理手段8は、以上の処理をホストイン
タフェース1が印刷要求を受信する度毎に繰り返す。However, if it is determined in step S13 that the image data expanding unit 2 has not finished processing the previous print job, information about the print job received this time, for example, the job ID, spooling in the spooler 10, Queue table 1 for information such as addresses and data volume
2 (S14), and waits until the image data expanding unit 2 finishes processing the previous print job. And
When the image data rasterizing unit 2 finishes processing the previous print job, the job managing unit 8 transmits an instruction to rasterize the print job into image data by an IPC message. The job management unit 8 repeats the above processing each time the host interface 1 receives a print request.
【0033】また、ジョブ管理手段8は、制御手段9か
ら割り込み処理開始の指示のIPCメッセージ(後述す
る図3のS27で送信されるIPCメッセージ)を受信
すると(S15)、待ち行列テーブル12内に格納され
ているプリントジョブの先頭のものと現行のプリントジ
ョブとの順番を入れ換える(S16)。これにより現行
のプリントジョブは待ち行列の先頭に置かれ、逆に待ち
行列の先頭に位置していたプリントジョブが画像データ
展開手段2によってイメージデータに展開されることに
なる。このため、ジョブ管理手段8は、このプリントジ
ョブの入れ換えの後、画像データ展開手段8に対して画
像データ展開を指示するIPCメッセージを送信する
(S17)。When the job management means 8 receives from the control means 9 an IPC message for instructing the start of interrupt processing (the IPC message transmitted in S27 of FIG. 3 described later) (S15), the job queue means 12 stores it in the queue table 12. The order of the first stored print job and the current print job is exchanged (S16). As a result, the current print job is placed at the head of the queue, and conversely the print job located at the head of the queue is expanded by the image data expansion means 2 into image data. Therefore, the job management unit 8 sends an IPC message instructing the image data expansion unit 8 to expand the image data after the replacement of the print jobs (S17).
【0034】なお、ジョブ管理手段8は、制御手段9か
ら割り込み復帰処理開始を指示するIPCメッセージ
(後述する図3のS32で送信されるIPCメッセー
ジ)を受信した場合にも、このステップS16及びステ
ップS17の処理を行う。Even when the job management means 8 receives from the control means 9 an IPC message instructing the start of interrupt recovery processing (IPC message transmitted in S32 of FIG. 3 described later), this step S16 and step The process of S17 is performed.
【0035】このようにジョブ管理手段8は、印刷要求
があった場合のプリントジョブの管理及び制御と、割り
込み処理の制御及び管理を行っているのである。As described above, the job management unit 8 manages and controls a print job when a print request is made and controls and manages interrupt processing.
【0036】次に、制御手段9の動作について図3を参
照して説明する。制御手段9は図1に示す画像記録装置
の全体的な制御を行うプロセスであるが、ここではこれ
らの全体の制御に関する動作については言及せず、特に
本発明に係る動作について説明する。Next, the operation of the control means 9 will be described with reference to FIG. The control means 9 is a process for performing overall control of the image recording apparatus shown in FIG. 1. However, operations relating to these overall controls will not be mentioned here, and the operation according to the present invention will be described in particular.
【0037】制御手段9は、用紙サイズ検出手段7から
の信号を待機する(S20)。この用紙サイズ検出手段
7からの信号としては、給紙トレイ61 〜6n の中のあ
る給紙トレイ内の記録用紙がなくなったことを示す信号
と、空になっていた給紙トレイに記録用紙が補給された
ことを示す信号の2種類の信号がある。The control means 9 waits for a signal from the paper size detection means 7 (S20). The signal from the sheet size detecting means 7, a signal indicating that the recording paper in the input tray with middle of the paper feed tray 6 1 to 6 n is exhausted, printing on the paper feed tray which has been emptied There are two types of signals, that is, a signal indicating that the paper has been replenished.
【0038】さて、いま、給紙トレイ61 内の記録用紙
が無くなったとする。そしてこの給紙トレイ61 がA4
サイズの記録用紙を収納するトレイであったとすると、
用紙サイズ検出手段7は、制御手段9に対して給紙トレ
イ61 のA4サイズの記録用紙が用紙切れである旨の信
号を送出する。Now, suppose that there is no more recording paper in the paper feed tray 6 1 . And this paper feed tray 6 1 is A4
If it is a tray that stores recording paper of a size,
The paper size detection means 7 sends a signal to the control means 9 indicating that the A4 size recording paper in the paper feed tray 6 1 is out of paper.
【0039】この信号を受信すると、ステップS21の
判断によりステップS22の処理に移行する。このステ
ップS22の処理において、制御手段9はジョブ管理手
段8によって管理されている待ち行列テーブル12を参
照して、待ち状態にあるプリントジョブが存在するかど
うかを判定する。When this signal is received, the process proceeds to step S22 by the determination in step S21. In the process of step S22, the control unit 9 refers to the queue table 12 managed by the job management unit 8 and determines whether or not there is a print job in a waiting state.
【0040】ステップS22の判断において、待ち状態
にあるプリントジョブが存在している場合には、ページ
バッファ管理手段4に対して、ページバッファ3にA4
サイズの確保要求を拒絶する指示をIPCメッセージに
より送信する(S23)。しかし、待ち状態にあるプリ
ントジョブが存在していない場合には、給紙トレイ61
にA4サイズの記録用紙が補給されるのを待つしかない
ので、ステップS20に戻る。In step S22, if there is a print job in the waiting state, the page buffer managing means 4 is instructed to A4 in the page buffer 3.
An instruction to reject the size reservation request is transmitted by an IPC message (S23). However, if there is no print job waiting, the paper tray 6 1
Since there is no choice but to wait until A4 size recording paper is replenished, the process returns to step S20.
【0041】さて、ページバッファ管理手段4に対して
ページバッファ確保拒絶の指示を送信すると、制御手段
9は、次に画像データ展開手段2が現在プリントジョブ
を実行しているかどうかをチェックし(S25)、プリ
ントジョブを実行中であれば、画像データ展開手段2か
らの情報を参照して、現在ページバッファ3に割り当て
られている領域が用紙切れになっているサイズ、この場
合はA4サイズであるかどうかをチェックして、A4サ
イズの領域が使用されている場合には、画像データ展開
手段2に対して、現在使用しているページバッファの領
域を解放する指示をIPCメッセージにより送信する
(S26)。When a page buffer reservation refusal instruction is sent to the page buffer management means 4, the control means 9 next checks whether the image data expansion means 2 is currently executing a print job (S25). ), If a print job is being executed, the size of the area currently allocated to the page buffer 3 is out of paper by referring to the information from the image data expansion unit 2, in this case, A4 size. If the A4 size area is used, an instruction to release the currently used page buffer area is sent to the image data expansion means 2 by an IPC message (S26). ).
【0042】その後、制御手段9は、ジョブ管理手段8
に対して、現在行っているプリントジョブを中断して代
わりに待ち行列テーブル12の先頭のプリントジョブを
割り込ませることを指示する割り込み処理開始の指示を
IPCメッセージを用いて送信する(S27)。そし
て、現在ジョブ管理手段8に行わせているプリントジョ
ブの処理が割り込み処理であることを示すために、割り
込みフラグをオンとして(S28)、再び用紙サイズ検
出手段7からの信号を待機する。After that, the control means 9 controls the job management means 8
On the other hand, an interrupt processing start instruction for instructing to interrupt the current print job and interrupt the first print job in the queue table 12 instead is transmitted using the IPC message (S27). Then, in order to indicate that the processing of the print job currently performed by the job management means 8 is the interruption processing, the interruption flag is turned on (S28), and the signal from the paper size detection means 7 is waited again.
【0043】なお、ステップS25の判断で、画像デー
タ展開手段2が現在プリントジョブを実行していない場
合には、ステップS27の処理に移行する。If it is determined in step S25 that the image data rasterizing unit 2 is not currently executing a print job, the process proceeds to step S27.
【0044】このような状態において、給紙トレイ61
にA4サイズの記録用紙が補給されると、用紙サイズ検
出手段7から給紙トレイ61 にA4サイズの記録用紙が
補給されたことを示す信号が送出される。この信号を受
信すると、制御手段9は、ステップS21からステップ
S29に移行し、この記録用紙が補給されたというイベ
ントに対応して、これまで出していたページバッファ3
にA4サイズの領域を確保することを拒絶する指示を解
除するために、ページバッファ確保拒絶解除の指示をI
PCメッセージによりページバッファ管理手段4に対し
て送信する。In such a state, the paper feed tray 6 1
When A4 size recording paper is replenished in the paper, a signal indicating that the A4 size recording paper has been replenished in the paper feed tray 6 1 is sent from the paper size detecting means 7. Upon receiving this signal, the control means 9 shifts from step S21 to step S29, and responds to the event that the recording paper is replenished, the page buffer 3 that has been output so far.
In order to cancel the instruction to refuse to secure the A4 size area in the
It is sent to the page buffer management means 4 by a PC message.
【0045】制御手段9は、次に割り込みフラグがオン
であるか否かをチェックし(S31)、割り込みフラグ
がオンであったら、ジョブ管理手段8に対して、割り込
まれていたプリントジョブを復帰させ、印刷処理を開始
する指示をIPCメッセージを用いて送信する(S3
2)。その後、制御手段9は割り込みフラグをオフにし
(S33)、ステップS20に戻る。なお、ステップS
31で割り込みフラグがオンでなかった場合にはそのま
まステップS20に戻る。Next, the control means 9 checks whether or not the interrupt flag is on (S31), and if the interrupt flag is on, the interrupted print job is restored to the job management means 8. Then, an instruction to start the printing process is transmitted using an IPC message (S3
2). After that, the control means 9 turns off the interrupt flag (S33), and returns to step S20. Note that step S
If the interrupt flag is not turned on in 31, the process directly returns to step S20.
【0046】以上のように、制御手段9は、用紙サイズ
検出手段7から送出されるイベント信号によって、上述
した処理を繰り返す。これによって、給紙トレイ内の特
定サイズの記録用紙の有無に応じてページバッファ3の
割り当てを制御すると共に、用紙切れになったサイズの
記録用紙を必要としているプリントジョブの実行を中断
させる制御を行う。As described above, the control means 9 repeats the above-mentioned processing in response to the event signal sent from the paper size detection means 7. As a result, the allocation of the page buffer 3 is controlled according to the presence / absence of recording paper of a specific size in the paper feed tray, and the control for interrupting the execution of the print job that requires the recording paper of the size out of paper is performed. To do.
【0047】次に、図4を参照して、画像データ展開手
段2の動作について説明する。画像データ展開手段2
は、ジョブ管理手段8から送信される画像データ展開指
示のIPCメッセージ(図2のS17で送信されるIP
Cメッセージ)をイベントとして受信すると(S4
0)、スプーラ10に記憶されているプリントデータを
読み込む(S41)。そして、読み込んだプリントデー
タを所定のコード単位毎に解読して、イメージデータに
展開するためのデータや制御情報を取得していく。Next, the operation of the image data expanding means 2 will be described with reference to FIG. Image data expansion means 2
Is an IPC message of the image data expansion instruction transmitted from the job management means 8 (IP transmitted in S17 of FIG. 2).
When C message) is received as an event (S4
0), the print data stored in the spooler 10 is read (S41). Then, the read print data is decoded for each predetermined code unit to obtain data and control information for developing the image data.
【0048】このとき、読み込んだプリントデータがあ
るページの先頭のデータであるかどうかを判断する(S
42)。この判断は、プリントデータ中の改ページ記号
等を識別することによって容易に行うことができること
は当業者に明らかである。At this time, it is determined whether the read print data is the top data of the page (S).
42). It is obvious to those skilled in the art that this judgment can be easily made by identifying the page break symbol or the like in the print data.
【0049】そして、あるページの先頭データであるこ
とが判別されたら、画像データ展開手段2は、そのデー
タのスプーラ10上でのアドレス、もしくはスプーラ1
0内に格納されているスプーリングファイルの先頭から
のオフセット、をアドレス記憶テーブル11に格納する
(S43)。また、ページの先頭でない場合にはステッ
プS48の処理に移行して、ページバッファ3内に確保
した領域にプリントデータを展開してイメージデータと
したビットイメージをレンダリングしていく処理を行
う。When it is determined that the data is the top data of a page, the image data expansion means 2 sends the address of the data on the spooler 10 or the spooler 1.
The offset from the beginning of the spooling file stored in 0 is stored in the address storage table 11 (S43). If it is not at the beginning of the page, the process proceeds to step S48 to perform a process of expanding the print data in the area secured in the page buffer 3 and rendering a bit image as image data.
【0050】その後、そのページのプリントデータをイ
メージデータに展開する際に、どのような記録用紙サイ
ズに印刷するかの制御コードをプリントデータ内から抽
出し、識別することによって、そのページの要求用紙サ
イズを検出する(S44)。そして、検出された用紙サ
イズに基づいて、そのサイズの記録用紙に印刷するため
に必要となるバッファサイズをページバッファ管理手段
4にIPCメッセージにより要求する(S45)。After that, when the print data of the page is expanded into image data, a control code indicating what size of recording paper is to be printed is extracted from the print data and identified, so that the requested paper of the page is identified. The size is detected (S44). Then, based on the detected paper size, the IPC message is requested to the page buffer management means 4 for the buffer size required for printing on the recording paper of that size (S45).
【0051】そして、ページバッファ管理手段4からの
応答、即ち要求したバッファサイズの確保に成功した
か、拒絶されたかのメッセージを待機する(S46)。
そして、ページバッファ管理手段4からのメッセージ
が、ページバッファ確保成功を示すものである場合に
は、ページバッファ3内に確保した領域にプリントデー
タを展開してイメージデータとしたビットイメージをレ
ンダリングしていく(S48)。画像データ展開手段2
は、以上の処理をプリントデータがなくなるまで繰り返
す。Then, the system waits for a response from the page buffer managing means 4, that is, a message indicating whether the requested buffer size is successfully secured or rejected (S46).
If the message from the page buffer management means 4 indicates that the page buffer has been successfully secured, the print data is expanded in the secured area in the page buffer 3 to render a bit image as image data. Go (S48). Image data expansion means 2
Repeats the above processing until there is no print data.
【0052】しかし、ページバッファ管理手段4からの
メッセージが、ページバッファ確保拒絶を示すものであ
る場合には、画像データ展開手段2は、制御手段9から
のページバッファ解放指示メッセージ(図3のS26で
送信されるIPCメッセージ)を受信したかどうか判断
し(S49)、ページバッファ解放指示があった場合に
はアドレス記憶テーブル11に格納されたページ先頭ア
ドレスを読み出して、スプーラ10内のリードアドレス
をこの値に戻す(S50)。However, when the message from the page buffer management means 4 indicates a page buffer reservation refusal, the image data expansion means 2 causes the page buffer release instruction message from the control means 9 (S26 in FIG. 3). (IPC message sent in step S49) is received (S49), and if there is a page buffer release instruction, the page head address stored in the address storage table 11 is read and the read address in the spooler 10 is set. The value is returned to this value (S50).
【0053】これによって、もしこのプリントデータを
イメージデータに展開するジョブがジョブ管理手段8に
よって中断され、他のプリントジョブが割り込まれた場
合に、この割り込み処理から復帰した段階で展開完了で
きなかった当該ページの先頭から展開処理を復帰させる
ことが可能となる。As a result, if the job for expanding this print data into image data is interrupted by the job management means 8 and another print job is interrupted, the expansion cannot be completed at the stage of returning from this interrupt processing. The expansion process can be returned from the top of the page.
【0054】このように、リードアドレスを戻した展開
途中のプリントデータは、そのイメージデータを格納し
たページバッファを解放する要求を、ページバッファ管
理手段4にIPCメッセージを用いて送信する(S5
1)。これにより、処理中断の準備が完了したことにな
る。As described above, for the print data in the process of expansion, which has returned the read address, a request for releasing the page buffer storing the image data is transmitted to the page buffer management means 4 using the IPC message (S5).
1). This completes the preparation for interrupting the processing.
【0055】また、ステップS54で制御手段9からペ
ージバッファ解放指示が送信されていない場合には、再
度ステップS45に戻り、ページバッファ要求をページ
バッファ管理手段4にIPCメッセージにより送信す
る。When the page buffer release instruction is not transmitted from the control means 9 in step S54, the process returns to step S45 again, and the page buffer request is transmitted to the page buffer management means 4 by the IPC message.
【0056】以上のように、画像データ展開手段2は、
ジョブ管理手段8からの画像データ展開指示によってペ
ージ単位の画像データ展開処理を行い、ページバッファ
管理手段4によって割り当てられたページバッファ3の
領域を用いて展開処理を行っている。そして、制御手段
9からのページバッファ解放指示に従って、確保された
ページバッファ3の領域を即座に解放して、当該プリン
トジョブの展開処理の中断準備を整える動作を行うので
ある。As described above, the image data expanding means 2 is
Image data rasterization processing is performed in page units in accordance with an image data rasterization instruction from the job management means 8, and rasterization processing is performed using the area of the page buffer 3 allocated by the page buffer management means 4. Then, according to the page buffer release instruction from the control means 9, the secured area of the page buffer 3 is immediately released, and an operation for preparing for interruption of the expansion processing of the print job is performed.
【0057】次に、画像データ展開手段2からの要求に
対してページバッファ3の領域割り当てを管理、制御す
るページバッファ管理手段4の動作フローを図5を用い
て説明する。Next, the operation flow of the page buffer managing means 4 for managing and controlling the area allocation of the page buffer 3 in response to the request from the image data expanding means 2 will be described with reference to FIG.
【0058】ページバッファ管理手段4は、画像データ
展開手段2からのページバッファ要求メッセージ(図4
のS45で送信されるIPCメッセージ)を受信する
と、割当て禁止サイズテーブルを参照する(S61)。
この割り当て禁止サイズテーブルは、ページバッファ管
理手段4が内部に備えるテーブルであり、アドレス記憶
テーブル11や、待ち行列テーブル12と同様にCPU
の主メモリ上に割当てられるものである。The page buffer management means 4 receives a page buffer request message from the image data expansion means 2 (see FIG. 4).
When receiving the IPC message transmitted in S45), the allocation prohibition size table is referred to (S61).
This allocation prohibition size table is a table provided internally in the page buffer management means 4, and is the same as the address storage table 11 and the queue table 12 in the CPU.
Is allocated in the main memory of.
【0059】そして、この割り当て禁止サイズテーブル
は、制御手段9からページバッファ確保拒絶指示メッセ
ージ(図3のS23で送信されるIPCメッセージ)を
受信したとき(ステップS66の判断がYesの場合)
や、ページバッファ確保拒絶解除指示メッセージ(図3
のS29で送信されるIPCメッセージ)を受信したと
き(ステップS68の判断がYesの場合)に、割り当
てを禁止するバッファサイズをそれに対応する用紙サイ
ズと併せて登録したり(ステップS67)、登録抹消し
たり(ステップS69)するために用いられるものであ
る。Then, this allocation prohibition size table is received when the page buffer reservation refusal instruction message (IPC message transmitted in S23 of FIG. 3) is received from the control means 9 (when the determination in step S66 is Yes).
Or a page buffer reservation refusal cancellation instruction message (Fig. 3
When the IPC message transmitted in S29 is received (when the determination in step S68 is Yes), the buffer size that prohibits allocation is registered together with the corresponding paper size (step S67), or the registration is deleted. It is used for performing (step S69).
【0060】従って上述した例では、割り当て禁止サイ
ズテーブルには、A4サイズの記録用紙用のバッファサ
イズをページバッファに確保することを禁止する旨の情
報が登録されている。Therefore, in the above-mentioned example, the allocation prohibition size table has registered therein information for prohibiting securing the buffer size for A4 size recording paper in the page buffer.
【0061】この割り当て禁止サイズテーブルを参照す
ることによって(S61)、ページバッファ管理手段4
は、画像データ展開手段2が要求しているバッファサイ
ズが禁止対象となっているかどうかを判断し(S6
2)、禁止されているサイズであればページバッファの
割り当て拒絶する旨のIPCメッセージを画像データ展
開手段2に送信する(S63)が、禁止されているサイ
ズでなければ、ページバッファ3内に要求されているサ
イズ分の空き領域を探索して、空き容量があれば領域の
割り当てを行って、その情報をページバッファ割り当て
テーブル(図1には図示せず)に登録する(S65)。By referring to this allocation prohibition size table (S61), the page buffer management means 4
Determines whether the buffer size requested by the image data expansion unit 2 is prohibited (S6).
2) If the size is prohibited, an IPC message to the effect that page page allocation is rejected is sent to the image data rasterizing means 2 (S63). If the size is not prohibited, a request is made in the page buffer 3. A free area of the specified size is searched, and if there is free space, the area is allocated and the information is registered in the page buffer allocation table (not shown in FIG. 1) (S65).
【0062】このページバッファ割り当てテーブルは、
ページバッファ3内のどの領域が空き領域であり、どの
領域がどれくらいのサイズ使用されているかを登録して
おくテーブルであり、割り当て禁止サイズテーブルと同
様にCPUの主メモリ上に割り当てられているものであ
る。This page buffer allocation table is
A table for registering which area in the page buffer 3 is a free area and what size is used, and which is allocated on the main memory of the CPU like the allocation prohibited size table. Is.
【0063】そして、ページバッファ管理手段4は、ペ
ージバッファの割り当てを行った後に、確保が成功した
旨を、その確保した領域の先頭アドレスと共に画像デー
タ展開手段2にIPCメッセージ送信する(S64)。After allocating the page buffer, the page buffer managing means 4 sends an IPC message to the image data expanding means 2 with the start address of the secured area indicating that the securing is successful (S64).
【0064】また、ページバッファ管理手段4は、制御
手段9からページバッファ確保拒絶指示メッセージ(図
3のS23で送信されるIPCメッセージ)を受信する
と、割り当てを禁止されたバッファサイズをそれに対応
する用紙サイズと併せて割り当て禁止サイズテーブルに
登録(S67)して、ステップS60に戻り、また、制
御手段9からページバッファ確保拒絶解除指示メッセー
ジ(図3のS29で送信されるIPCメッセージ)を受
信したときには、割り当て禁止サイズテーブルに登録さ
れていた情報を抹消(S69)してステップS60に戻
る。When the page buffer management means 4 receives the page buffer reservation refusal instruction message (IPC message sent in S23 of FIG. 3) from the control means 9, the page buffer management means 4 sets the buffer size for which allocation is prohibited to the corresponding paper size. When it is registered in the allocation prohibition size table together with the size (S67), the process returns to step S60, and when the page buffer reservation refusal cancellation instruction message (IPC message transmitted in S29 of FIG. 3) is received from the control means 9. The information registered in the allocation prohibition size table is deleted (S69) and the process returns to step S60.
【0065】更に、画像データ展開手段2からページバ
ッファ解放要求メッセージ(図4のS51で送信される
IPCメッセージ)を受信した場合には、図5Bに示す
ように、ページバッファ3の該当する領域内のデータを
クリアし(S71)、ページバッファ割り当てテーブル
に登録してある当該ページバッファ情報の登録を抹消す
る(S72)。Further, when a page buffer release request message (IPC message transmitted in S51 of FIG. 4) is received from the image data expansion means 2, as shown in FIG. 5B, within the corresponding area of the page buffer 3. Is cleared (S71), and the registration of the page buffer information registered in the page buffer allocation table is deleted (S72).
【0066】以上のように、ページバッファ管理手段4
は、ページバッファ割り当てテーブル及び割り当て禁止
サイズテーブルを参照することにより、画像データ展開
手段2からのページバッファ確保要求を受諾してバッフ
ァ割り当てや拒絶を制御すると共に、ページバッファの
解放要求に対してページバッファ3内のデータをクリア
する等の動作を行うのである。As described above, the page buffer management means 4
Refers to the page buffer allocation table and the allocation prohibition size table to accept the page buffer securing request from the image data expanding unit 2 to control the buffer allocation and rejection, and to respond to the page buffer release request. The operation such as clearing the data in the buffer 3 is performed.
【0067】以上のように各手段が連携して動作するこ
とにより、用紙切れが発生した用紙サイズのバッファ確
保要求を拒絶し、待ち状態にあるプリントジョブを割り
込み処理することによって、この待ち状態にあるプリン
トジョブが用紙切れになっていない記録用紙を使用する
ジョブの場合であれば、現在実行中のジョブの用紙補給
待ちによる不要な待ち状態を回避することができる。As described above, the respective units operate in cooperation with each other to reject the request to secure the buffer for the paper size in which the paper has run out, and interrupt the print job in the waiting state to enter the waiting state. If a certain print job is a job that uses recording paper that is not out of paper, it is possible to avoid an unnecessary waiting state due to paper supply waiting of the job that is currently being executed.
【0068】また、制御手段9は、図3のステップS2
2において待ち行列テーブルにプリントジョブがない場
合は、ページバッファ管理手段4に対してページバッフ
ァ確保拒絶指示のIPCメッセージを送信していない
が、これは、待ち状態のプリントジョブがない場合に
は、ページバッファ3内に確保できる空き領域が存在す
る限り、当該プリントジョブのイメージデータ展開処理
を画像データ展開手段2に行わせておけば、用紙補給後
に印刷手段5による印刷処理が展開処理が終了している
分素早く行えるようにするための処理である。Further, the control means 9 controls the step S2 of FIG.
If there is no print job in the queue table in No. 2, the page buffer securing refusal instruction IPC message is not transmitted to the page buffer management means 4. This is because when there is no print job in the waiting state, As long as there is a vacant area that can be secured in the page buffer 3, if the image data expansion processing of the print job is performed by the image data expansion means 2, the expansion processing of the printing processing by the printing means 5 ends after paper supply. This is a process for making it possible to do it as quickly as possible.
【0069】しかし、長時間用紙補給動作が行われなか
った場合等には、ページバッファ3の空き領域を当該ジ
ョブの展開処理に全て使いきってしまい、尚かつその後
にホストインタフェース1に印刷要求のデータが入力さ
れてしまう場合が考えられるが、このような場合には、
後から入力されてきた印刷要求が用紙切れになった用紙
サイズではない記録用紙への印刷処理であったとして
も、ページバッファ3内にはすでに空き領域が存在せ
ず、割り込み印刷処理ができないといった事態が発生し
得る。このような事態を回避するためには、図3のステ
ップS22の判断処理において待ち状態のプリントジョ
ブが待ち行列テーブル12内に存在していなくても、ペ
ージバッファ確保拒絶指示を送信するようにすることが
必要である。従って、ステップS22の判断ルーチンを
スキップさせるような処理を、制御手段9で行えばよい
ことになる。However, if the paper supply operation is not performed for a long time, the empty area of the page buffer 3 is completely used for the expansion processing of the job, and after that, the host interface 1 receives a print request. It is possible that data will be entered, but in such a case,
Even if the print request input later is a print process for a recording paper that is not the paper size that has run out of paper, there is no empty area in the page buffer 3 already and interrupt print processing cannot be performed. Things can happen. In order to avoid such a situation, the page buffer reservation refusal instruction is transmitted even if the waiting print job does not exist in the queue table 12 in the determination processing of step S22 of FIG. It is necessary. Therefore, the control means 9 may perform a process of skipping the determination routine of step S22.
【0070】なお、上記実施例においては各部間の通信
の手段としてIPCメッセージを用いたが、他の通信手
段を用いてもよいことは当然である。In the above embodiment, the IPC message is used as the communication means between the respective parts, but it goes without saying that other communication means may be used.
【0071】以上、第1の実施例について説明したが、
次に、第2の実施例について説明する。The first embodiment has been described above.
Next, a second embodiment will be described.
【0072】図6は、本発明の第2の実施例の構成を示
す図であり、図1に示す構成要素と同等なものについて
は同一の符号を付して重複する説明は省略する。FIG. 6 is a diagram showing the configuration of the second embodiment of the present invention, in which the same components as those shown in FIG. 1 are designated by the same reference numerals, and a duplicate description will be omitted.
【0073】図1と図6とを比較すれば明らかなよう
に、図6に示す構成は、図1の構成からスプーラ10と
アドレス記憶テーブル11とを除いた構成となってい
る。なお、ホストインターフェース1の前段には印刷要
求を記憶しているサーバを備えていることが望ましいも
のである。この実施例においてはホストインターフェー
ス1の前段にサーバが備えられているものとする。As is clear from a comparison between FIGS. 1 and 6, the configuration shown in FIG. 6 is a configuration in which the spooler 10 and the address storage table 11 are removed from the configuration of FIG. It is desirable that the host interface 1 be provided with a server that stores print requests in the preceding stage. In this embodiment, a server is provided in front of the host interface 1.
【0074】次に、図6に示す画像記録装置の各部の動
作について、図7〜図10を参照して説明する。図7は
ジョブ管理手段8の動作を示すフローチャートであり、
図8は制御手段9の動作を示すフローチャートであり、
図9は画像データ展開手段2の動作を示すフローチャー
トであり、図10はページバッファ管理手段4の動作を
示すフローチャートである。Next, the operation of each part of the image recording apparatus shown in FIG. 6 will be described with reference to FIGS. 7 to 10. FIG. 7 is a flow chart showing the operation of the job management means 8.
FIG. 8 is a flowchart showing the operation of the control means 9,
FIG. 9 is a flowchart showing the operation of the image data expanding means 2, and FIG. 10 is a flowchart showing the operation of the page buffer managing means 4.
【0075】まず、図7を参照して、ジョブ管理手段8
の動作について説明する。ジョブ管理手段8はイベント
駆動型の動作を行うものであり、ホストインターフェー
ス1からの印刷要求受信の信号、及び制御手段9からの
割り込み処理の指示を待機する(S80,S84)。First, referring to FIG. 7, the job management means 8
The operation of will be described. The job management unit 8 performs an event-driven operation, and waits for a print request reception signal from the host interface 1 and an interrupt processing instruction from the control unit 9 (S80, S84).
【0076】そして、ホストインターフェース1から印
刷要求を受信した旨の信号を受けると、ジョブ管理手段
8は、プリントデータが入力されたというイベントが発
生したとして、このプリントデータを一つのジョブとし
てジョブIDを採番する(S11)。When the signal indicating that the print request is received is received from the host interface 1, the job management unit 8 determines that an event that the print data is input occurs, and the print data is regarded as one job and the job ID is set as the job ID. Is numbered (S11).
【0077】次に、ジョブ管理手段8は、画像データ展
開手段2が前のプリントジョブの実行中であるか否か、
即ち前のプリントジョブのプリントデータを展開中であ
るかどうかを画像データ展開手段2からのIPCメッセ
ージによって判断し(S82)、画像データ展開手段2
が前のプリントジョブを終了している場合には、画像デ
ータ展開手段2に対して、受信したプリントデータのイ
メージデータへの展開指示をIPCメッセージにより送
信する(S86)。Next, the job management means 8 determines whether or not the image data expansion means 2 is executing the previous print job.
That is, whether or not the print data of the previous print job is being expanded is determined by the IPC message from the image data expanding unit 2 (S82), and the image data expanding unit 2 is determined.
If the previous print job has been completed, an instruction to expand the received print data into image data is transmitted to the image data expansion means 2 by an IPC message (S86).
【0078】しかし、ステップS82の判断で画像デー
タ展開手段2が前のプリントジョブの処理を終了してい
ない場合には、今回受け付けたプリントジョブに関する
情報、例えばジョブID、ホストインターフェースの種
類等の情報を待ち行列テーブル12に格納(S83)
し、画像データ展開手段2が前のプリントジョブの処理
を終了するのを待機する。そして、画像データ展開手段
2が前のプリントジョブの処理を終了すると、ジョブ管
理手段8は当該プリントジョブのイメージデータへの展
開指示をIPCメッセージにより送信する。ジョブ管理
手段8は、以上の処理をホストインタフェース1が印刷
要求を受信する度毎に繰り返す。However, if it is determined in step S82 that the image data rasterizing unit 2 has not finished processing the previous print job, information about the print job received this time, for example, the job ID, the type of the host interface, etc. Is stored in the queue table 12 (S83)
Then, the image data developing unit 2 waits until the processing of the previous print job is completed. Then, when the image data expanding unit 2 finishes processing the previous print job, the job managing unit 8 transmits an instruction to expand the print job into image data by an IPC message. The job management unit 8 repeats the above processing each time the host interface 1 receives a print request.
【0079】また、ジョブ管理手段8は、制御手段9か
ら割り込み処理開始の指示のIPCメッセージ(後述す
る図8のS94で送信されるIPCメッセージ)を受信
すると(S84)、待ち行列テーブル12内に格納され
ているプリントジョブの先頭のものと現行のプリントジ
ョブとの順番を入れ換える(S85)。これにより現行
のプリントジョブは待ち行列の先頭に置かれ、逆に待ち
行列の先頭に位置していたプリントジョブが画像データ
展開手段2によってイメージデータに展開されることに
なる。このため、ジョブ管理手段8は、このプリントジ
ョブの入れ換えの後、画像データ展開手段8に対して画
像データ展開を指示するIPCメッセージを送信する
(S86)。When the job management means 8 receives from the control means 9 an IPC message for instructing the start of interrupt processing (IPC message transmitted in S94 of FIG. 8 described later) (S84), the job queue means 12 stores it in the queue table 12. The order of the first print job stored and the current print job are exchanged (S85). As a result, the current print job is placed at the head of the queue, and conversely the print job located at the head of the queue is expanded by the image data expansion means 2 into image data. Therefore, the job management unit 8 sends an IPC message instructing the image data expansion unit 8 to expand the image data after the replacement of the print jobs (S86).
【0080】なお、ジョブ管理手段8は、制御手段9か
ら割り込み復帰処理開始を指示するIPCメッセージ
(後述する図8のS98で送信されるIPCメッセー
ジ)を受信した場合にも、このステップS85及びステ
ップS86の処理を行う。Even when the job management means 8 receives from the control means 9 an IPC message instructing the start of interrupt recovery processing (the IPC message transmitted in S98 of FIG. 8 described later), this step S85 and step The process of S86 is performed.
【0081】このようにジョブ管理手段8は、印刷要求
があった場合のプリントジョブの管理及び制御と、割り
込み処理の制御及び管理を行っているのである。As described above, the job management unit 8 manages and controls a print job when a print request is made and controls and manages interrupt processing.
【0082】次に、制御手段9の動作について図8を参
照して説明する。制御手段9は図6に示す画像記録装置
の全体的な制御を行うプロセスであるが、ここではこれ
らの全体の制御に関する動作については言及せず、特に
本発明に係る動作について説明する。Next, the operation of the control means 9 will be described with reference to FIG. The control means 9 is a process for performing the overall control of the image recording apparatus shown in FIG. 6, but the operation relating to the overall control is not mentioned here, and the operation according to the present invention will be described in particular.
【0083】制御手段9は、用紙サイズ検出手段7から
の信号を待機する(S90)。この用紙サイズ検出手段
7からの信号としては、給紙トレイ61 〜6n の中のあ
る給紙トレイ内の記録用紙がなくなったことを示す信号
と、空になっていた給紙トレイに記録用紙が補給された
ことを示す信号の2種類の信号がある。The control means 9 waits for a signal from the paper size detection means 7 (S90). The signal from the sheet size detecting means 7, a signal indicating that the recording paper in the input tray with middle of the paper feed tray 6 1 to 6 n is exhausted, printing on the paper feed tray which has been emptied There are two types of signals, that is, a signal indicating that the paper has been replenished.
【0084】さて、いま、給紙トレイ61 内の記録用紙
が無くなったとする。そしてこの給紙トレイ61 がA4
サイズの記録用紙を収納するトレイであったとすると、
用紙サイズ検出手段7は、制御手段9に対して給紙トレ
イ61 のA4サイズの記録用紙が用紙切れである旨の信
号を送出する。Now, it is assumed that there is no more recording paper in the paper feed tray 6 1 . And this paper feed tray 6 1 is A4
If it is a tray that stores recording paper of a size,
The paper size detection means 7 sends a signal to the control means 9 indicating that the A4 size recording paper in the paper feed tray 6 1 is out of paper.
【0085】この信号を受信すると、ステップS91の
判断によりステップS92の処理に移行する。このステ
ップS92の処理において、制御手段9はジョブ管理手
段8によって管理されている待ち行列テーブル12を参
照して、待ち状態にあるプリントジョブが存在するかど
うかを判定する。When this signal is received, the process proceeds to step S92 by the determination at step S91. In the process of step S92, the control unit 9 refers to the queue table 12 managed by the job management unit 8 and determines whether or not there is a print job in a waiting state.
【0086】ステップS92の判断において、待ち状態
にあるプリントジョブが存在している場合には、ページ
バッファ管理手段4に対して、ページバッファ3にA4
サイズの確保要求を拒絶する指示をIPCメッセージに
より送信する(S93)。しかし、待ち状態にあるプリ
ントジョブが存在していない場合には、給紙トレイ61
にA4サイズの記録用紙が補給されるのを待つしかない
ので、ステップS90に戻る。In the determination in step S92, if there is a print job in the waiting state, the page buffer managing unit 4 is instructed to A4 in the page buffer 3.
An instruction to reject the size reservation request is transmitted by an IPC message (S93). However, if there is no print job waiting, the paper tray 6 1
Since there is no choice but to wait until A4 size recording paper is replenished, the process returns to step S90.
【0087】さて、ページバッファ管理手段4に対して
ページバッファ確保拒絶の指示を送信すると、制御手段
9は、次にジョブ管理手段8に対して、現在行っている
プリントジョブを中断して、代わりに待ち行列テーブル
12の先頭のプリントジョブを割り込ませることを指示
する割り込み処理開始の指示をIPCメッセージを用い
て送信する(S94)。When a page buffer reservation refusal instruction is sent to the page buffer management means 4, the control means 9 next interrupts the job management means 8 for the print job currently being executed and substitutes it. An interrupt processing start instruction for instructing to interrupt the first print job in the queue table 12 is transmitted to the printer using the IPC message (S94).
【0088】そして、現在ジョブ管理手段8に行わせて
いるプリントジョブの処理が割り込み処理であることを
示すために、割り込みフラグをオンとして(S95)、
再び用紙サイズ検出手段7からの信号を待機する。Then, in order to indicate that the processing of the print job currently performed by the job management means 8 is the interruption processing, the interruption flag is turned on (S95),
It again waits for a signal from the paper size detecting means 7.
【0089】このような状態において、給紙トレイ61
にA4サイズの記録用紙が補給されると、用紙サイズ検
出手段7から給紙トレイ61 にA4サイズの記録用紙が
補給されたことを示す信号が送出される。この信号を受
信すると、制御手段9は、ステップS91からステップ
S96に移行し、この記録用紙が補給されたというイベ
ントに対応して、これまで出していたページバッファ3
にA4サイズの領域を確保することを拒絶する指示を解
除するために、ページバッファ確保拒絶解除の指示をI
PCメッセージによりページバッファ管理手段4に対し
て送信する。In such a state, the paper feed tray 6 1
When A4 size recording paper is replenished in the paper, a signal indicating that the A4 size recording paper has been replenished in the paper feed tray 6 1 is sent from the paper size detecting means 7. When this signal is received, the control means 9 shifts from step S91 to step S96 and responds to the event that the recording paper is replenished, the page buffer 3 that has been output so far.
In order to cancel the instruction to refuse to secure the A4 size area in the
It is sent to the page buffer management means 4 by a PC message.
【0090】制御手段9は、次に割り込みフラグがオン
であるか否かをチェックし(S96)、割り込みフラグ
がオンであったら、ジョブ管理手段8に対して、割り込
まれていたプリントジョブを復帰させ、印刷処理を開始
する指示をIPCメッセージを用いて送信する(S9
8)。その後、制御手段9は割り込みフラグをオフにし
(S99)、ステップS90に戻る。なお、ステップS
97で割り込みフラグがオンでなかった場合にはそのま
まステップS90に戻る。Next, the control means 9 checks whether or not the interrupt flag is on (S96), and if the interrupt flag is on, the interrupted print job is restored to the job management means 8. Then, the instruction to start the printing process is transmitted using the IPC message (S9).
8). After that, the control means 9 turns off the interrupt flag (S99), and returns to step S90. Note that step S
If the interrupt flag is not turned on in 97, the process directly returns to step S90.
【0091】以上のように、制御手段9は、用紙サイズ
検出手段7から送出されるイベント信号によって、上述
した処理を繰り返す。これによって、給紙トレイ内の記
録用紙の有無に応じてページバッファ3の割り当てを制
御すると共に、用紙切れになったサイズの記録用紙を必
要としているプリントジョブの実行を中断させる制御を
行う。As described above, the control means 9 repeats the above-mentioned processing in response to the event signal sent from the paper size detection means 7. As a result, the allocation of the page buffer 3 is controlled according to the presence / absence of recording paper in the paper feed tray, and the control for interrupting the execution of the print job that requires the recording paper of the size out of paper is performed.
【0092】次に、図9を参照して、画像データ展開手
段2の動作について説明する。画像データ展開手段2
は、ジョブ管理手段8から送信される画像データ展開指
示のIPCメッセージ(図7のS86で送信されるIP
Cメッセージ)をイベントとして受信すると(S10
0)、受信したプリントデータまたはサーバから取り込
んだプリントデータを読み込む(S101)。そして、
読み込んだプリントデータを所定のコード単位毎に解読
して、イメージデータに展開するためのデータや制御情
報を取得していく。Next, the operation of the image data expanding means 2 will be described with reference to FIG. Image data expansion means 2
Is an IPC message of the image data expansion instruction transmitted from the job management means 8 (IP transmitted in S86 of FIG. 7).
When C message) is received as an event (S10)
0), read the received print data or the print data fetched from the server (S101). And
The read print data is decoded for each predetermined code unit, and the data and control information for developing the image data are acquired.
【0093】このとき、読み込んだプリントデータがあ
るページの先頭のデータであるかどうかを判断する(S
102)。At this time, it is judged whether or not the read print data is the top data of the page (S).
102).
【0094】そして、あるページの先頭データであるこ
とが判別されたら、そのページのプリントデータをイメ
ージデータに展開する際に、どのような記録用紙サイズ
に印刷するかの制御コードをプリントデータ内から抽出
し、識別することによって、そのページの要求用紙サイ
ズを検出する(S103)。そして、検出された用紙サ
イズに基づいて、そのサイズの記録用紙に印刷するため
に必要となるサイズをページバッファ管理手段4にIP
Cメッセージにより要求する(S104)。When it is determined that the data is the top data of a page, a control code for printing on which recording paper size should be printed from the print data when the print data of the page is developed into image data. The required paper size of the page is detected by extracting and identifying (S103). Then, based on the detected paper size, the size required for printing on the recording paper of that size is sent to the page buffer management means 4 by IP.
Request by C message (S104).
【0095】そして、ページバッファ管理手段4からの
応答、即ち要求したバッファサイズの確保に成功した
か、拒絶されたかのメッセージを待機する(S10
5)。そして、ページバッファ管理手段4からのメッセ
ージが、ページバッファ確保成功を示すものである場合
には、ページバッファ3内に確保した領域にプリントデ
ータを展開してイメージデータとしたビットイメージを
レンダリングしていく(S107)。画像データ展開手
段2は、以上の処理をプリントデータがなくなるまで繰
り返す。Then, the system waits for a response from the page buffer management means 4, that is, a message indicating whether the requested buffer size is successfully secured or rejected (S10).
5). If the message from the page buffer management means 4 indicates that the page buffer has been successfully secured, the print data is expanded in the secured area in the page buffer 3 to render a bit image as image data. Go (S107). The image data developing means 2 repeats the above processing until there is no print data.
【0096】しかし、ページバッファ管理手段4からの
メッセージが、ページバッファ確保拒絶を示すものであ
る場合には、画像データ展開手段2は、ステップS10
4に戻って、検出された用紙サイズに基づいて、そのサ
イズの記録用紙に印刷するために必要となるサイズをペ
ージバッファ管理手段4にIPCメッセージにより要求
する。However, if the message from the page buffer management means 4 indicates that the page buffer reservation is rejected, the image data expansion means 2 proceeds to step S10.
Returning to step 4, based on the detected paper size, the page buffer management means 4 is requested by the IPC message for the size required for printing on the recording paper of that size.
【0097】以上のように、画像データ展開手段2は、
ジョブ管理手段8からの画像データ展開指示によってペ
ージ単位の画像データ展開処理を行い、ページバッファ
管理手段4によって割り当てられたページバッファ3の
領域を用いて展開処理を行っているのである。As described above, the image data expanding means 2
Image data rasterization processing is performed in page units according to an image data rasterization instruction from the job management means 8, and rasterization processing is performed using the area of the page buffer 3 allocated by the page buffer management means 4.
【0098】次に、画像データ展開手段2からの要求に
対してページバッファ3の領域割り当てを管理、制御す
るページバッファ管理手段4の動作フローを図10を用
いて説明する。Next, the operation flow of the page buffer managing means 4 for managing and controlling the area allocation of the page buffer 3 in response to the request from the image data expanding means 2 will be described with reference to FIG.
【0099】ページバッファ管理手段4は、画像データ
展開手段2からのページバッファ要求メッセージ(図9
のS104で送信されるIPCメッセージ)を受信する
と、割り当て禁止サイズテーブルを参照する(S11
1)。この割り当て禁止サイズテーブルは、ページバッ
ファ管理手段4が内部に備えるテーブルであり、アドレ
ス記憶テーブル11や、待ち行列テーブル12と同様に
CPUの主メモリ上に割当てられるものである。The page buffer management means 4 receives the page buffer request message from the image data expansion means 2 (see FIG. 9).
When the IPC message sent in S104 of step S104 is received, the allocation prohibition size table is referred to (S11).
1). This allocation prohibition size table is a table provided internally to the page buffer management means 4, and is allocated on the main memory of the CPU like the address storage table 11 and the queue table 12.
【0100】そして、この割り当て禁止サイズテーブル
は、制御手段9からページバッファ確保拒絶指示メッセ
ージ(図8のS93で送信されるIPCメッセージ)を
受信したとき(ステップS116の判断がYesの場
合)や、ページバッファ確保拒絶解除指示メッセージ
(図8のS96で送信されるIPCメッセージ)を受信
したとき(ステップS118の判断がYesの場合)
に、割り当てを禁止するバッファサイズをそれに対応す
る用紙サイズと併せて登録したり(ステップS11
7)、登録抹消したり(ステップS119)するために
用いられるものである。This allocation prohibition size table is received when a page buffer reservation refusal instruction message (IPC message transmitted in S93 of FIG. 8) is received from the control means 9 (when the determination in step S116 is Yes), When the page buffer reservation rejection cancellation instruction message (the IPC message transmitted in S96 of FIG. 8) is received (when the determination in step S118 is Yes).
In addition, the buffer size for which allocation is prohibited is registered together with the corresponding paper size (step S11).
7) It is used for deregistration (step S119).
【0101】従って上述した例では、割り当て禁止サイ
ズテーブルには、A4サイズの記録用紙用のバッファサ
イズをページバッファに確保することを禁止する旨の情
報が登録されている。Therefore, in the above-described example, the allocation prohibition size table has registered therein information that prohibits securing the buffer size for A4 size recording paper in the page buffer.
【0102】この割り当て禁止サイズテーブルを参照す
ることによって(S111)、ページバッファ管理手段
4は、画像データ展開手段2が要求しているバッファサ
イズが禁止対象となっているかどうかを判断し(S11
2)、禁止されているサイズであればページバッファの
割り当て拒絶する旨のIPCメッセージを画像データ展
開手段2に送信する(S113)が、禁止されているサ
イズでなければ、ページバッファ3内に要求されている
サイズ分の空き領域を探索して、空き容量があれば領域
の割り当てを行って、その情報をページバッファ割り当
てテーブル(図6には図示せず)に登録する(S11
4)。By referring to this allocation prohibition size table (S111), the page buffer management means 4 judges whether or not the buffer size requested by the image data expansion means 2 is prohibited (S11).
2) If the size is prohibited, the IPC message to the effect that page buffer allocation is rejected is sent to the image data expansion means 2 (S113). If it is not the prohibited size, the request is made in the page buffer 3. A free area of the specified size is searched, and if there is free space, the area is allocated and the information is registered in the page buffer allocation table (not shown in FIG. 6) (S11).
4).
【0103】このページバッファ割り当てテーブルは、
ページバッファ3内のどの領域が空き領域であり、どの
領域がどれくらいのサイズ使用されているかを登録して
おくテーブルであり、割り当て禁止サイズテーブルと同
様にCPUの主メモリ上に割り当てられているものであ
る。This page buffer allocation table is
A table for registering which area in the page buffer 3 is a free area and what size is used, and which is allocated on the main memory of the CPU like the allocation prohibited size table. Is.
【0104】そして、ページバッファ管理手段4は、ペ
ージバッファの割り当てを行った後に、確保が成功した
旨を、その確保した領域の先頭アドレスと共に画像デー
タ展開手段2にIPCメッセージ送信する(S11
5)。After allocating the page buffer, the page buffer managing means 4 sends an IPC message to the image data expanding means 2 with the start address of the secured area indicating that the securing is successful (S11).
5).
【0105】また、ページバッファ管理手段4は、制御
手段9からページバッファ確保拒絶指示メッセージ(図
8のS93で送信されるIPCメッセージ)を受信する
と、割り当てを禁止されたバッファサイズをそれに対応
する用紙サイズと併せて割り当て禁止サイズテーブルに
登録し(S117)、ステップS110に戻り、また、
制御手段9からページバッファ確保拒絶解除指示メッセ
ージ(図8のS96で送信されるIPCメッセージ)を
受信したときには、割り当て禁止サイズテーブルに登録
されていた情報を抹消して(S119)、ステップS1
10に戻る。Further, when the page buffer management means 4 receives the page buffer reservation refusal instruction message (the IPC message transmitted in S93 of FIG. 8) from the control means 9, the page size corresponding to the buffer size for which the allocation is prohibited is set. The size is registered together with the size in the allocation prohibited size table (S117), and the process returns to step S110.
When the page buffer reservation rejection cancellation instruction message (IPC message transmitted in S96 of FIG. 8) is received from the control means 9, the information registered in the allocation prohibition size table is deleted (S119), and step S1.
Return to 10.
【0106】以上のように各手段が連携して動作するこ
とにより、用紙切れが発生した用紙サイズのバッファ確
保要求を拒絶し、待ち状態にあるプリントジョブを割り
込み処理することによって、この待ち状態にあるプリン
トジョブが用紙切れになっていない記録用紙を使用する
ジョブの場合であれば、現在実行中のジョブの用紙補給
待ちによる不要な待ち状態を回避することができる。As described above, the respective units operate in cooperation with each other to reject the request to secure the buffer for the paper size in which the paper has run out, and to interrupt the print job in the waiting state, whereby the waiting state is entered. If a certain print job is a job that uses recording paper that is not out of paper, it is possible to avoid an unnecessary waiting state due to paper supply waiting of the job that is currently being executed.
【0107】また、制御手段9は、図8のステップS9
2において待ち行列テーブルにプリントジョブがない場
合は、ページバッファ管理手段4に対してページバッフ
ァ確保拒絶指示のIPCメッセージを送信していない
が、これは、待ち状態のプリントジョブがない場合に
は、ページバッファ3内に確保できる空き領域が存在す
る限り、当該プリントジョブのイメージデータ展開処理
を画像データ展開手段2に行わせておけば、用紙補給後
に印刷手段5による印刷処理が展開処理が終了している
分素早く行えるようにするための処理である。Further, the control means 9 carries out step S9 in FIG.
If there is no print job in the queue table in 2, the page buffer management refusal instruction IPC message is not transmitted to the page buffer management means 4, but when there is no print job in the waiting state, As long as there is a vacant area that can be secured in the page buffer 3, if the image data expansion processing of the print job is performed by the image data expansion means 2, the expansion processing of the printing processing by the printing means 5 ends after paper supply. This is a process for making it possible to do it as quickly as possible.
【0108】しかし、長時間用紙補給動作が行われなか
った場合等には、ページバッファ3の空き領域を当該ジ
ョブの展開処理に全て使いきってしまい、尚かつその後
にホストインタフェース1に印刷要求のデータが入力さ
れてしまう場合が考えられるが、このような場合には、
後から入力されてきた印刷要求が用紙切れになった用紙
サイズではない記録用紙への印刷処理であったとして
も、ページバッファ3内にはすでに空き領域が存在せ
ず、割り込み印刷処理ができないといった事態が発生し
得る。このような事態を回避するためには、図8のステ
ップS92の判断処理において待ち状態のプリントジョ
ブが待ち行列テーブル12内に存在していなくても、ペ
ージバッファ確保拒絶指示を送信するようにすることが
必要である。従って、ステップS92の判断ルーチンを
スキップさせるような処理を、制御手段9で行えばよい
ことになる。However, if the paper supply operation is not performed for a long time, the empty area of the page buffer 3 is completely used for the job expansion processing, and after that, the host interface 1 receives a print request. It is possible that data will be entered, but in such a case,
Even if the print request input later is a print process for a recording paper that is not the paper size that has run out of paper, there is no empty area in the page buffer 3 already and interrupt print processing cannot be performed. Things can happen. In order to avoid such a situation, the page buffer reservation refusal instruction is transmitted even if the waiting print job does not exist in the queue table 12 in the determination processing of step S92 of FIG. It is necessary. Therefore, the control means 9 may perform a process of skipping the determination routine of step S92.
【0109】なお、上記実施例においては各部間の通信
の手段としてIPCメッセージを用いたが、他の通信手
段を用いてもよいことは当然である。In the above embodiment, the IPC message is used as the communication means between the respective parts, but it goes without saying that other communication means may be used.
【0110】以上、本発明の実施例について説明した
が、本発明は上記実施例に限定されるものではなく、種
々の変形が可能であることは当業者に明らかであろう。Although the embodiments of the present invention have been described above, it will be apparent to those skilled in the art that the present invention is not limited to the above embodiments and various modifications can be made.
【0111】[0111]
【発明の効果】以上の説明から明らかなように、本発明
によれば、用紙切れになったサイズの記録用紙へのプリ
ントジョブは中断され、他のプリントジョブで用紙切れ
でないサイズの用紙を用いるプリントジョブが実行され
るので、不要な待ち時間を回避することが可能となる。
それにより、用紙切れに伴って停滞するプリントジョブ
の数を減少させることができ、全体として印刷処理の待
ち時間を低減することが可能となる。As is apparent from the above description, according to the present invention, the print job on the recording paper of the size which is out of paper is interrupted, and the paper of the size which is not out of paper is used in other print jobs. Since the print job is executed, unnecessary waiting time can be avoided.
As a result, the number of print jobs that are stagnant due to running out of paper can be reduced, and the waiting time for print processing can be reduced as a whole.
【図1】 本発明の第1の実施例の構成を示す図であ
る。FIG. 1 is a diagram showing a configuration of a first exemplary embodiment of the present invention.
【図2】 第1の実施例におけるジョブ管理手段8の動
作を示すフローチャートである。FIG. 2 is a flowchart showing an operation of a job management unit 8 in the first embodiment.
【図3】 第1の実施例における制御手段9の動を示す
作フローチャートである。FIG. 3 is a work flow chart showing the operation of the control means 9 in the first embodiment.
【図4】 第1の実施例における画像データ展開手段2
の動作を示すフローチャートである。FIG. 4 is an image data expansion unit 2 in the first embodiment.
3 is a flowchart showing the operation of FIG.
【図5】 第1の実施例におけるページバッファ管理手
段4の動作を示すフローチャートである。FIG. 5 is a flowchart showing the operation of the page buffer management means 4 in the first embodiment.
【図6】 本発明の第2の実施例の構成を示す図であ
る。FIG. 6 is a diagram showing a configuration of a second exemplary embodiment of the present invention.
【図7】 第2の実施例におけるジョブ管理手段8の動
作を示すフローチャートである。FIG. 7 is a flow chart showing the operation of the job management means 8 in the second embodiment.
【図8】 第2の実施例における制御手段9の動を示す
作フローチャートである。FIG. 8 is a flow chart showing the operation of the control means 9 in the second embodiment.
【図9】 第2の実施例における画像データ展開手段2
の動作を示すフローチャートである。FIG. 9 is an image data expansion unit 2 in the second embodiment.
3 is a flowchart showing the operation of FIG.
【図10】 第2の実施例におけるページバッファ管理
手段4の動作を示すフローチャートである。FIG. 10 is a flowchart showing the operation of the page buffer management means 4 in the second embodiment.
1…ホストインターフェース、2…画像データ展開手
段、3…ページバッファ、4…ページバッファ管理手
段、5…印刷手段、6…給紙トレイ、7…用紙サイズ検
出手段、8…ジョブ管理手段、9…制御手段、10…ス
プーラ、11…アドレス記憶テーブル、12…待ち行列
テーブル。DESCRIPTION OF SYMBOLS 1 ... Host interface, 2 ... Image data expansion means, 3 ... Page buffer, 4 ... Page buffer management means, 5 ... Printing means, 6 ... Paper feed tray, 7 ... Paper size detection means, 8 ... Job management means, 9 ... Control means, 10 ... spooler, 11 ... address storage table, 12 ... queue table.
Claims (2)
ール手段と、ページバッファと、スプール手段に記憶さ
れたプリントデータを読み出してイメージデータに変換
してページバッファに展開する画像データ展開手段と、
給紙トレイとを備えた画像記録装置において、 印刷要求を受け付けるジョブ管理手段と、 給紙トレイ内の記録用紙の有無とその用紙サイズを検出
する用紙サイズ検出手段と、 画像データ展開手段がページバッファにイメージデータ
を展開する際に、設定されている用紙サイズに対応する
サイズ分をページバッファに確保するページバッファ管
理手段と、 ページバッファ管理手段によってあるサイズがページバ
ッファに確保されており、且つ画像データ展開手段がペ
ージバッファに当該サイズのイメージデータを展開して
いる場合において、用紙サイズ検出手段によって当該サ
イズの用紙が給紙トレイに存在しないことが検出された
ときにはページバッファ管理手段に対してページバッフ
ァの解放を指示する制御手段とを備えることを特徴とす
る画像記録装置。1. A spool means for storing input print data, a page buffer, and image data expanding means for reading the print data stored in the spool means, converting the print data into image data, and expanding the image data in the page buffer.
In an image recording apparatus having a paper feed tray, a job management unit that receives a print request, a paper size detection unit that detects the presence or absence of recording paper in the paper feed tray, and the paper size, and an image data expansion unit that is a page buffer. When the image data is expanded to the page data, a page buffer management unit that reserves a size corresponding to the set paper size in the page buffer, and a certain size is secured in the page buffer by the page buffer management unit, and When the data expansion unit expands the image data of the size in the page buffer and the paper size detection unit detects that the size of the paper does not exist in the paper feed tray, the page buffer management unit receives the page. And a control unit for instructing release of the buffer. Image recording device.
出してイメージデータに変換してページバッファに展開
する画像データ展開手段と、給紙トレイとを備えた画像
記録装置において、 印刷要求を受け付けるジョブ管理手段と、 給紙トレイ内の記録用紙の有無とその用紙サイズを検出
する用紙サイズ検出手段と、 画像データ展開手段がページバッファにイメージデータ
を展開する際に、設定されている用紙サイズに対応する
サイズ分をページバッファに確保するページバッファ管
理手段と、 用紙サイズ検出手段によって用紙がないと判断された場
合には、ページバッファ管理手段に対して、ページバッ
ファへの当該用紙サイズに対応するサイズの確保要求を
禁止する制御手段とを備えることを特徴とする画像記録
装置。2. A job management means for accepting a print request in an image recording apparatus comprising a page buffer, image data developing means for reading print data, converting it into image data and developing it in the page buffer, and a paper feed tray. A paper size detecting means for detecting the presence or absence of recording paper in the paper tray and the paper size, and a size corresponding to the paper size set when the image data expanding means expands the image data in the page buffer. If the page buffer management unit that reserves the minutes in the page buffer and the paper size detection unit determine that there is no paper, the page buffer management unit secures the size corresponding to the paper size in the page buffer. An image recording apparatus comprising: a control unit for prohibiting a request.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13324894A JP3417426B2 (en) | 1994-06-15 | 1994-06-15 | Image recording device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13324894A JP3417426B2 (en) | 1994-06-15 | 1994-06-15 | Image recording device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH086744A true JPH086744A (en) | 1996-01-12 |
| JP3417426B2 JP3417426B2 (en) | 2003-06-16 |
Family
ID=15100175
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13324894A Expired - Fee Related JP3417426B2 (en) | 1994-06-15 | 1994-06-15 | Image recording device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3417426B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7916316B2 (en) | 2004-08-27 | 2011-03-29 | Seiko Epson Corporation | Printer and printer control method for resuming printing operation following an out of paper error |
| US7999953B2 (en) | 2004-08-27 | 2011-08-16 | Seiko Epson Corporation | Printer having print and receive buffers and a printer control method for controlling same |
-
1994
- 1994-06-15 JP JP13324894A patent/JP3417426B2/en not_active Expired - Fee Related
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7916316B2 (en) | 2004-08-27 | 2011-03-29 | Seiko Epson Corporation | Printer and printer control method for resuming printing operation following an out of paper error |
| US7999953B2 (en) | 2004-08-27 | 2011-08-16 | Seiko Epson Corporation | Printer having print and receive buffers and a printer control method for controlling same |
| US8077331B2 (en) | 2004-08-27 | 2011-12-13 | Seiko Epson Corporation | Printer and printer control method |
| US8098393B2 (en) | 2004-08-27 | 2012-01-17 | Seiko Epson Corporation | Print system for resuming printing operation following an off-line error |
Also Published As
| Publication number | Publication date |
|---|---|
| JP3417426B2 (en) | 2003-06-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6985257B2 (en) | Job processing apparatus | |
| US8189221B2 (en) | Image forming device for executing a designated process with priority without canceling a previously accepted process | |
| US6570605B1 (en) | Print control apparatus and print control method capable of interruption printing | |
| US6977739B2 (en) | Printing apparatus and its control method | |
| US6985247B2 (en) | Print apparatus, print control system, print control method, and storage medium | |
| JP3495893B2 (en) | Print control device and print control method | |
| JP3160445B2 (en) | Printing device | |
| JPH1184948A (en) | Image forming device | |
| JP2000062292A (en) | PRINTING SYSTEM, PRINTING SYSTEM CONTROL METHOD, AND COMPUTER-READABLE STORAGE MEDIUM | |
| JPH09277667A (en) | Image forming apparatus, image forming method, and image forming system | |
| US7142327B2 (en) | Information processing apparatus and print processing method | |
| JP3417426B2 (en) | Image recording device | |
| US4975858A (en) | Controller for a printer for printing data received from an external data processor | |
| JPH11312062A (en) | Printer and printing method | |
| JPH09107426A (en) | PRINT CONTROL DEVICE, PRINT DEVICE, AND PRINT JOB PROCESSING METHOD FOR PRINT CONTROL DEVICE | |
| JPH11259264A (en) | Printer driver for image forming apparatus, image forming apparatus, and method of controlling image forming apparatus | |
| JP4573975B2 (en) | Printing apparatus, printing system, printing apparatus control method, and storage medium | |
| JP2003330644A (en) | Printing system | |
| JP2000029642A (en) | Printing apparatus, printing method, printing system, information processing apparatus, information processing method, and storage medium | |
| JP4323635B2 (en) | Image recording device | |
| JP5062750B2 (en) | Image forming apparatus | |
| JP5288329B2 (en) | Printing apparatus, printing system, and printing control program | |
| JP2001246813A (en) | PRINTING APPARATUS, CONTROL METHOD THEREOF, AND PRINTING SYSTEM | |
| JP3962437B2 (en) | Information processing apparatus and control method thereof | |
| JP4346747B2 (en) | Image recording device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080411 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090411 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100411 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110411 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120411 Year of fee payment: 9 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130411 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130411 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140411 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |