Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3022104B2 - Printer device - Google Patents
[go: Go Back, main page]

JP3022104B2 - Printer device - Google Patents

Printer device

Info

Publication number
JP3022104B2
JP3022104B2 JP5288159A JP28815993A JP3022104B2 JP 3022104 B2 JP3022104 B2 JP 3022104B2 JP 5288159 A JP5288159 A JP 5288159A JP 28815993 A JP28815993 A JP 28815993A JP 3022104 B2 JP3022104 B2 JP 3022104B2
Authority
JP
Japan
Prior art keywords
print
priority
job
print job
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP5288159A
Other languages
Japanese (ja)
Other versions
JPH07141133A (en
Inventor
有史 樋川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP5288159A priority Critical patent/JP3022104B2/en
Publication of JPH07141133A publication Critical patent/JPH07141133A/en
Application granted granted Critical
Publication of JP3022104B2 publication Critical patent/JP3022104B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 forming an image based on print data transmitted from a host computer or the like, and more particularly to a print job process when a plurality of print jobs are input to the printer. It is.

【0002】[0002]

【従来の技術】近年、複数のコンピュータ等のホスト装
置及びプリンタ装置をローカル・エリア・ネットワーク
等のネットワークで接続することによって、プリンタ装
置を共有して使用する場合が知られている。
2. Description of the Related Art In recent years, it has been known that a host device such as a plurality of computers and a printer device are connected to each other via a network such as a local area network to share the printer device.

【0003】(1)このようなプリンタ装置の共有状態
においては、例えばあるホスト装置の使用者がプリンタ
装置を用いて大量のデータ量の印刷や大量部数の印刷を
行う場合には、他のホスト装置の使用者がこのプリンタ
装置を用いて印刷データの印字を行なおうとしてもその
印字処理は待たされることなる。大量の印刷処理が行わ
れる場合には、この待ち時間の長時間化はプリンタ装置
を共有化する上で大きな問題点となっている。
(1) In such a shared state of printer devices, for example, when a user of a certain host device performs printing of a large amount of data or printing of a large number of copies using the printer device, another host device may be used. Even if the user of the apparatus attempts to print the print data using this printer apparatus, the printing process is delayed. When a large amount of print processing is performed, this prolonged waiting time is a major problem in sharing a printer device.

【0004】上記のような問題点を克服するために、従
来特開平2−225067号公報や特開平4−1120
70号公報に開示されている技術が知られている。この
特開平2−225067号公報に開示される技術は、複
数のホストコンピュータから送信される印刷データを複
数のインタフェースで受信する際、そのインタフェース
の各々に優先度を手動で切り換えて設定するものであ
り、優先度を切り換える切換手段と印刷データの印字処
理を制御する印字制御手段によって構成されている。
[0004] In order to overcome the above problems, Japanese Patent Application Laid-Open No. H2-225067 and Japanese Patent Application Laid-Open No.
A technique disclosed in Japanese Patent Publication No. 70 is known. According to the technique disclosed in Japanese Patent Application Laid-Open No. H2-225067, when print data transmitted from a plurality of host computers is received by a plurality of interfaces, the priority is manually switched and set for each of the interfaces. Yes, it is constituted by switching means for switching the priority and print control means for controlling the print processing of print data.

【0005】また、特開平4−112070号に開示さ
れる技術は、プリント処理実行中に他のプリントデータ
が入力された時に、プリント処理の中断/割り込み/自
動復帰を手動で行うものであり、プリント指定条件に応
じて実行中のプリント処理の中断を許可するプリント許
可手段、プリント中断手段、割り込みプリント実行手
段、及びプリント再開手段によって構成されている。
The technique disclosed in Japanese Patent Application Laid-Open No. 4-112070 is for manually interrupting / interrupting / automatically returning print processing when other print data is input during execution of print processing. It comprises a print permitting means for permitting interruption of a print process being executed in accordance with a print designation condition, a print suspending means, an interrupt print executing means, and a print resuming means.

【0006】(2)また、従来、ホストコンピュータ等
から送信されてきた印刷データに応じて画像形成を行な
う場合、プリンタ装置は単一のインタフェースのみを装
備して1台のホストコンピュータとしか接続できず、ま
たその価格も高価であった。そこで、上記の問題点を解
決するものとして、複数のインタフェース・ポートを持
ったバッファ装置やプリンタ装置が知られている。
(2) Conventionally, when an image is formed in accordance with print data transmitted from a host computer or the like, the printer device has only a single interface and can be connected to only one host computer. And the price was expensive. In order to solve the above problems, a buffer device and a printer having a plurality of interface ports are known.

【0007】しかし、このような複数個のインタフェー
スを持ったプリンタ装置の場合には、各インタフェース
からの複数個の印刷データが競合する可能性があり、こ
の競合に対してあらかじめ固定的な優先順位を各インタ
フェースに設けておく制御方法が知られている。この場
合には、優先順位の低いインタフェースから入力される
印刷データが印字されるまで長時間を必要とするという
問題点がある。このような問題点を克服するために、従
来特開平2−113327号公報や特開平2−2250
67号公報、及び特開平3−235767号公報、並び
に特開平4−175922号公報に開示されている技術
が知られている。この特開平2−113327号公報や
特開平2−225067号公報に開示される技術は、複
数個のインタフェースに対応した優先順位を設定する手
段及びこの優先順位を記憶する記憶手段を備え、各イン
タフェース等の優先順位に従って印刷処理を行なうもの
であり、これによりインタフェース等の優先順位の変更
が容易となる。
However, in the case of such a printer having a plurality of interfaces, there is a possibility that a plurality of print data from each of the interfaces may compete with each other. Is provided in each interface. In this case, there is a problem that it takes a long time until print data input from an interface with a low priority is printed. In order to overcome such a problem, Japanese Patent Application Laid-Open Nos.
The techniques disclosed in Japanese Patent Application Laid-Open No. 67-235, Japanese Patent Application Laid-Open No. 3-235767, and Japanese Patent Application Laid-Open No. 4-175922 are known. The technology disclosed in Japanese Patent Application Laid-Open Nos. 2-113327 and 2-25067 includes means for setting priorities corresponding to a plurality of interfaces, and storage means for storing the priorities. Print processing is performed in accordance with the priority order of the interface, etc., thereby making it easy to change the priority order of the interface and the like.

【0008】また、特開平3−235767号公報に開
示されるインタフェース制御方式においては、複数のイ
ンタフェースにあらかじめ優先順位を設定しておき、優
先順位の高いインタフェース部に印刷データが送られな
い状態が一定時間以上継続した場合には、そのインタフ
ェース部に対するサービスを解除するものである。
In the interface control method disclosed in Japanese Patent Application Laid-Open No. 3-235767, priorities are set in advance for a plurality of interfaces, and print data is not sent to an interface unit having a higher priority. If it has continued for a certain period of time, the service for the interface unit is released.

【0009】また、特開平4−175922号公報に開
示されているデータ出力制御方式においては、ホスト装
置は印刷データをプリンタ装置に送信する前に出力可能
の問い合わせを行い、その出力可能の問い合わせを受信
したプリンタ装置側では、その問い合わせに対応した優
先順位を設定し待ち行列に格納する。そして、印刷の順
番が回ってきた段階で、出力許可応答をホスト装置に返
送し、その出力許可応答を受けたホスト装置は印刷デー
タをプリンタ装置に送出することにより印刷順序の制御
を行なうものである。
In the data output control system disclosed in Japanese Patent Application Laid-Open No. 4-175922, the host device makes an inquiry about output availability before transmitting print data to the printer device, and sends the inquiry about output availability. The printer that has received the message sets the priority corresponding to the inquiry and stores the priority in the queue. Then, when the order of printing has come to an end, an output permission response is returned to the host device, and the host device receiving the output permission response controls the printing order by sending print data to the printer device. is there.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、前記の
従来の画像処理装置においては、以下の問題点を有して
いる。
However, the above-mentioned conventional image processing apparatus has the following problems.

【0011】(1)前記の従来の技術の項の(1)に示
した従来の画像処理装置においては、いずれも手動によ
る切換作業が必要なため、割り込み処理を行うために処
理状態を逐次監視する必要があり、作業能率が低下する
という問題点がある。つまり、使用者が所望の印刷処理
が実行されていないことを検知して、該印刷データを割
り込ませて印刷処理を実行させるための操作をしなけれ
ばならない。そのため、使用者がホスト装置から印字要
求を行ってから所望の印刷処理が終了するまでの間、自
分の印刷データが実行中なのか待ち状態なのかを逐次チ
ェックして割り込み処理を行わなければならない。
(1) In the conventional image processing apparatuses described in (1) of the above-mentioned conventional technique, since a manual switching operation is required, the processing state is sequentially monitored in order to perform an interrupt processing. Therefore, there is a problem that work efficiency is reduced. That is, the user must detect that the desired print processing is not being executed and perform an operation to interrupt the print data and execute the print processing. Therefore, between the time when the user issues a print request from the host device and the time when the desired print processing is completed, the user must sequentially check whether his or her own print data is being executed or is in a waiting state and perform interrupt processing. .

【0012】前記の問題点が発生する場合として、例え
ば使用者がホスト装置及びプリンタ装置から離れた場所
におり、印字要求をして所定時間後にプリントアウトさ
れた文書をプリンタ装置まで取りにいくといった場合が
ある。
The above problem may occur, for example, when a user is away from the host device and the printer device, makes a print request, and retrieves the printed document after a predetermined time to the printer device. There are cases.

【0013】(2)また、前記の従来の技術の項の
(2)に示した従来の画像処理装置においては、特開平
2−113327号公報や特開平2−225067号公
報、及び特開平3−235767号公報に示された従来
技術においては、複数のホスト装置がプリンタ装置を共
有しているにもかかわらず、各ホスト装置毎に優先順位
が設定できないという問題点を有している。つまり、複
数のインタフェース毎に優先順位を設定/変更できる
が、同一のインタフェースから送られてくる印刷ジョブ
は同一の優先順位しか獲得することができない。例え
ば、あるインタフェースがローカルエリアネットワーク
(Local Area Network:以下、LA
Nという)と接続されている場合には、このインタフェ
ースにはLANに接続されている複数のホスト端末装置
から印刷ジョブが複数送られてくる可能性があり、この
印刷ジョブ間には優先順位を設定することができないた
めである。また、特開平4−175922号公報に示さ
れた従来技術においては、各ホスト端末の印刷データ毎
に優先順位を設定することはできるが、ホスト端末側が
プリンタ側の印刷制御プロトコルに対応している必要が
あり、プリンタを共有する全てのホスト端末装置に対し
てこのプロトコルを実装することは、多大な費用を要す
るという問題点を有している。
(2) In the conventional image processing apparatus shown in (2) of the above-mentioned prior art, Japanese Patent Application Laid-Open Nos. 2-113327, 2-2-225067, and 3 The prior art disclosed in Japanese Patent Application Publication No. 235767 has a problem that, even though a plurality of host devices share a printer device, priority cannot be set for each host device. That is, the priority can be set / changed for each of the plurality of interfaces, but the print jobs sent from the same interface can acquire only the same priority. For example, an interface is a local area network (hereinafter referred to as LA).
N), there is a possibility that a plurality of print jobs are sent from a plurality of host terminal devices connected to the LAN to this interface, and the priority order is set between the print jobs. This is because it cannot be set. Further, in the prior art disclosed in Japanese Patent Application Laid-Open No. 4-175922, priorities can be set for each print data of each host terminal, but the host terminal supports the print control protocol of the printer. It is necessary to implement this protocol for all the host terminal devices sharing the printer, and there is a problem that a large cost is required.

【0014】また、プリンタが異なるLANに対応した
複数のインタフェースを持った場合には、特開平4−1
75922号公報に示された従来技術においては、これ
らのインタフェース間に統一した優先順位設定方法を設
けることは困難である。例えば、Novell社の商品
名NetWareとして知られるLANの場合には、フ
ァイルサーバが印刷データをスプールしてからプリンタ
に送出するため、ホスト側への出力許可応答を変装する
ことは不可能であり、また無意味である。
When the printer has a plurality of interfaces corresponding to different LANs, the printer is disclosed in
In the prior art disclosed in Japanese Patent No. 75922, it is difficult to provide a uniform priority setting method between these interfaces. For example, in the case of a LAN known as Novell's product name NetWare, since the file server spools the print data and sends it to the printer, it is impossible to disguise the output permission response to the host, Also meaningless.

【0015】そこで、本発明は前記従来の問題点を解決
して、プリンタ装置に対して複数の印刷データが競合し
た場合に、プリンタ装置を共有する使用者の印刷処理待
ちによる作業効率の低下を最小限にすることを目的とす
る。
In view of the above, the present invention solves the above-mentioned conventional problems, and when a plurality of print data compete with the printer device, it is possible to reduce the work efficiency caused by the user sharing the printer device waiting for the printing process. The aim is to minimize it.

【0016】また、本発明は、長時間を要する印刷処理
により待ち状態となっている印刷データによって生じる
印刷処理待ちによる作業効率の低下を、最小限にするこ
とを目的とする。
Another object of the present invention is to minimize a decrease in work efficiency due to print processing waiting caused by print data that has been waiting for print processing that requires a long time.

【0017】また、本発明は、異なるプロトコルを持つ
複数のインタフェースに対して、複数のホストから送ら
れてくる印刷データの競合により待ち状態となっている
印刷データによる印刷処理待ちによる作業効率の低下
を、ホスト側のプロトコルを変更することなく最適な優
先順位で印刷処理順位を制御して、最小限にすることを
目的とする。
Further, according to the present invention, work efficiency is reduced by waiting for print processing due to print data being in a waiting state due to contention of print data sent from a plurality of hosts with respect to a plurality of interfaces having different protocols. It is an object of the present invention to control the print processing order with the optimum priority without changing the protocol on the host side and to minimize the order.

【0018】[0018]

【課題を解決するための手段】本発明は前記の目的を達
成するために、複数のホスト装置から送信された印刷デ
ータを受信する複数のインタフェースと、前記印刷デー
タを印刷ジョブ単位に管理する複数の印刷ジョブ管理手
段と、前記複数の印刷ジョブ管理手段により管理される
印刷ジョブ毎に印刷処理の優先順位を設定する印刷順位
設定手段と、前記複数の印刷ジョブの属性を前記優先順
位とともに記憶する待ち行列管理手段と、前記待ち行列
内に格納されている印刷ジョブに対して、待ち時間の長
さに応じて、或いは他の印刷ジョブに割り込まれた回数
に応じて優先順位を段階的に上げる優先順位変更手段
と、前記設定された、或いはその後変更された優先順位
を用いて前記複数の印刷ジョブのうち優先順位の高いも
のから印刷処理を実行する印刷処理制御手段とを備えた
ことを特徴とする。
In order to achieve the above object, the present invention provides a plurality of interfaces for receiving print data transmitted from a plurality of host devices, and a plurality of interfaces for managing the print data in print job units. Print job management means, print order setting means for setting the priority of print processing for each print job managed by the plurality of print job management means, and storing the attributes of the plurality of print jobs together with the priorities. A queue management unit for escalating the priority of a print job stored in the queue according to the length of a waiting time or the number of times that another print job is interrupted A priority changing unit configured to execute a print process from a print job having a higher priority among the plurality of print jobs by using the set or changed priority. Characterized by comprising a printing control unit for.

【0019】また、制御手段は、他の印刷データの印字
処理実行時間が所定値以上になった場合に割り込み処理
を繰り返し行い、この繰り返し回数が所定回数以上にな
った時に繰り返しを中止するものである。
The control means repeats the interrupt processing when the print processing execution time of the other print data exceeds a predetermined value, and stops the repetition when the number of repetitions exceeds the predetermined number. is there.

【0020】[0020]

【0021】[0021]

【0022】[0022]

【0023】また、待ち行列管理手段は前記優先順位設
定手段により設定された優先順位を、時間計測を行なう
タイマと、優先順位設定手段、およびタイマ手段により
設定された優先順位の有効期間を設定する優先順位有効
期間設定手段により設定される有効期間内だけ保持する
機能を有している。
The queue management means sets the priority set by the priority setting means, a timer for measuring time, a priority setting means, and a validity period of the priority set by the timer means. It has a function to hold only within the validity period set by the priority validity period setting means.

【0024】また、待ち行列管理手段は、印刷ジョブの
受付時間、印刷ジョブ属性、及び優先順位を記憶し、待
ち行列管理手段に記憶される優先順位をタイマから得ら
れる計時情報によって、受付時間から所定時間経過後に
変更する優先順位変更手段を備えるものである。
The queue management means stores the reception time of the print job, the print job attribute, and the priority, and determines the priority stored in the queue management means from the reception time based on timing information obtained from a timer. It is provided with priority changing means for changing after a predetermined time has elapsed.

【0025】また、待ち行列管理手段は、印刷ジョブの
受付時間、印刷ジョブ属性、及び優先順位を記憶し、待
ち行列管理手段に記憶される優先順位は印刷ジョブを受
けた時点から当該印刷ジョブが他の印刷ジョブに割り込
まれた回数をカウントするカウンタ手段と、カウンタ手
段によりカウントされた回数が所定の回数以上になった
場合に記憶されている優先順位を変更する優先順位変更
手段を備えるのものである。
The queue management means stores the reception time of the print job, the print job attribute, and the priority, and the priority stored in the queue management means is such that the print job is started when the print job is received. A printer including counter means for counting the number of times interrupted by another print job, and priority changing means for changing the stored priority when the number counted by the counter means exceeds a predetermined number It is.

【0026】[0026]

【作用】本発明は、複数のインタフェースにより複数の
ホスト装置から送信された印刷データを受信し、その印
刷データを複数の印刷ジョブ管理手段によって印刷ジョ
ブ単位に管理し、印刷順位設定手段によって複数の印刷
ジョブ管理手段により管理される印刷ジョブ毎に印刷処
理の優先順位を設定し、待ち行列管理手段が複数の印刷
ジョブの属性を優先順位とともに記憶し、優先順位変更
手段によって待ち行列内に格納されている印刷ジョブに
対して、待ち時間の長さに応じて、或いは他の印刷ジョ
ブに割り込まれた回数に応じて優先順位を段階的に上
げ、印刷処理制御手段によって設定された、或いはその
後変更された優先順位を用いて複数の印刷ジョブのうち
優先順位の高いものから印刷処理を実行するものであ
る。
According to the present invention, print data transmitted from a plurality of host devices is received by a plurality of interfaces, the print data is managed for each print job by a plurality of print job management means, and a plurality of print data is managed by a print order setting means. The priority of the printing process is set for each print job managed by the print job management means, the queue management means stores the attributes of the plurality of print jobs together with the priority, and is stored in the queue by the priority change means. The priority of the print job being set is gradually increased in accordance with the length of the waiting time or the number of times the print job is interrupted by another print job, and the priority is set by the print processing control unit or changed thereafter. The print job is executed from the print job with the highest priority among the plurality of print jobs using the given priority.

【0027】また、制御手段は、他の印刷データの印字
処理実行時間が所定値以上になった場合に割り込み処理
を繰り返し行い、この繰り返し回数が所定回数以上にな
った時に繰り返しを中止する。
The control means repeats the interrupt processing when the print processing execution time of the other print data is equal to or longer than a predetermined value, and stops the repetition when the number of times of the repetition becomes equal to or more than the predetermined number.

【0028】[0028]

【0029】[0029]

【0030】また、待ち行列管理手段は、優先順位設定
手段により設定された優先順位を、時間計測を行なうタ
イマ、優先順位設定手段、およびタイマ手段により設定
された優先順位の有効期間を設定する優先順位有効期間
設定手段により設定される有効期間内だけ保持する。
Further, the queue management means is adapted to compare the priority set by the priority setting means with a timer for measuring time, a priority setting means, and a priority for setting a validity period of the priority set by the timer means. It is held only during the validity period set by the rank validity period setting means.

【0031】また、待ち行列管理手段は、優先順位変更
手段によって印刷ジョブの受付時間、印刷ジョブ属性、
及び優先順位を記憶し、待ち行列管理手段に記憶される
優先順位をタイマから得られる計時情報によって、受付
時間から所定時間経過後に変更する。
Further, the queue management means uses the priority change means to change the print job reception time, print job attributes,
And the priority stored in the queue management means is changed after a predetermined time has elapsed from the reception time, based on timing information obtained from a timer.

【0032】また、待ち行列管理手段は、印刷ジョブの
受付時間、印刷ジョブ属性、及び優先順位を記憶し、カ
ウンタ手段によって待ち行列管理手段に記憶される優先
順位は印刷ジョブを受けた時点から当該印刷ジョブが他
の印刷ジョブに割り込まれた回数をカウントし、優先順
位変更手段によってカウンタ手段によりカウントされた
回数が所定の回数以上になった場合に記憶されている優
先順位を変更するものである。
The queue management means stores the reception time of the print job, the print job attribute, and the priority, and the priority stored in the queue management means by the counter means from the time when the print job is received. It counts the number of times a print job is interrupted by another print job, and changes the stored priority when the number of times counted by the counter by the priority changing unit is equal to or greater than a predetermined number. .

【0033】[0033]

【実施例】以下、本発明の実施例について図を参照しな
がら詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Embodiments of the present invention will be described below in detail with reference to the drawings.

【0034】(実施例1) (プリンタ装置の構成)はじめに、本発明の実施例1の
プリンタ装置の構成を図1のブロック図によって説明す
る。
First Embodiment (Configuration of Printer) First, the configuration of a printer according to a first embodiment of the present invention will be described with reference to the block diagram of FIG.

【0035】プリンタ装置1は、インタフェース・ポー
ト(以下、I/Fポートという)7を有しており、この
I/Fポート7を通して例えばネットワーク9等と接続
し、ネットワーク9に接続さている複数のホストコンピ
ュータ等のホスト装置10,11と接続している。ま
た、プリンタ装置1は前記I/Fポート7の他に、この
I/Fポート7を通して入力されるホスト装置10,1
1からの印刷データをいったん格納しておくメモリ3、
このメモリ3への印刷データの格納時にその印刷データ
のデータ量を測定するデータ量測定手段5、前記メモリ
3に格納された印刷データを用いて記録用紙等に印刷処
理を行う印字手段6、この印字手段6が印刷処理の実行
に要している時間を測定するタイマ4、及びこれらの各
手段を制御する制御手段2を有しており、相互にデータ
の送受信を行うためにシステムバス8によって接続され
ている。
The printer apparatus 1 has an interface port (hereinafter, referred to as an I / F port) 7, and is connected to, for example, a network 9 through the I / F port 7, and a plurality of printers connected to the network 9. It is connected to host devices 10 and 11 such as a host computer. In addition to the I / F port 7, the printer device 1 has host devices 10, 1 input through the I / F port 7.
A memory 3 for temporarily storing the print data from 1,
A data amount measuring unit 5 for measuring a data amount of the print data when the print data is stored in the memory 3; a printing unit 6 for performing a printing process on recording paper or the like using the print data stored in the memory 3; The printing means 6 has a timer 4 for measuring the time required for executing the printing process, and a control means 2 for controlling each of these means. The system bus 8 transmits and receives data to and from each other. It is connected.

【0036】(データ構造)次に、メモリ3に格納され
る印刷オプションデータと印刷データのデータ構造を図
2を用いて説明する。
(Data Structure) Next, the data structure of print option data and print data stored in the memory 3 will be described with reference to FIG.

【0037】メモリ3内は、ジョブやデータに関する情
報を格納するヘッダ部34と、文字コードやイメージデ
ータ等の印刷データを格納するデータ部35と、データ
退避領域36から構成されている。
The memory 3 includes a header section 34 for storing information on jobs and data, a data section 35 for storing print data such as character codes and image data, and a data save area 36.

【0038】このうち、ヘッダ部34は、印刷データを
印刷ジョブとして管理するためのジョブ属性領域31
と、印刷オプションデータを格納するオプション情報領
域32、及び印刷データのデータ情報を格納するデータ
情報領域33から構成されている。ヘッダ部34のジョ
ブ属性31は、送信されてきた印刷要求ごとに一連の番
号が割りつけることによって印刷ジョブの管理用の識別
子としてのジョブID31−1、送信元ホスト装置を識
別するためのホストID31−2、及び要求者を識別す
るためのユーザID31−3等からなっている。
The header section 34 includes a job attribute area 31 for managing print data as a print job.
And an option information area 32 for storing print option data, and a data information area 33 for storing data information of print data. The job attribute 31 of the header section 34 includes a job ID 31-1 as an identifier for managing a print job by assigning a series of numbers to each transmitted print request, and a host ID 31 for identifying a transmission source host device. -2, and a user ID 31-3 for identifying the requester.

【0039】また、オプション情報領域32は、印刷部
数32−1や記録用紙指定32−2、両面印刷指定32
−3等の印字手段6が印刷処理する際に必要な印刷オプ
ションデータが格納される領域である。
The option information area 32 includes a print copy number 32-1, a recording paper specification 32-2, and a double-sided print specification 32.
-3 is an area in which print option data required when the printing unit 6 performs a printing process is stored.

【0040】そして、データ情報領域33には、印刷デ
ータが格納されているデータ部35のデータ先頭アドレ
ス33−1、及び当該印刷データのデータ量(バイト
数)33−2が格納される。このとき、データ量を格納
する領域33−2には、データ量測定手段5によって測
定された値を格納する。
The data information area 33 stores a data head address 33-1 of the data section 35 in which the print data is stored, and a data amount (the number of bytes) 33-2 of the print data. At this time, the value measured by the data amount measuring means 5 is stored in the data amount storage area 33-2.

【0041】例えば、ベッダ部34のジョブID31−
1の値が″1″の場合についてみると、データ情報領域
33のデータ先頭アドレス33−1の値は″0xa00
0″、データ量33−4の値は″k″であり、ジョブ番
号が1番のジョブはデータ部35の″0xa000″の
アドレスからKバイトの量のデータが存在していること
を表している。
For example, the job ID 31-
When the value of “1” is “1”, the value of the data start address 33-1 of the data information area 33 is “0xa00”.
0 ", the value of the data amount 33-4 is" k ", indicating that the job having the job number 1 has K bytes of data from the address" 0xa000 "of the data section 35. I have.

【0042】(実施例1の作用)次に、前記実施例1の
構成のプリンタ装置の作用を説明する。
(Operation of First Embodiment) Next, the operation of the printer having the configuration of the first embodiment will be described.

【0043】はじめに、使用者はホスト装置10,11
等を用いて、使用者が印刷部数等を指定した印刷オプシ
ョンデータと共に印刷データを送信し、プリンタ装置1
に対して印刷要求を行う。この印刷要求により、印刷オ
プションデータと印刷データはネットワーク9を経由し
て、I/Fポート7に入力される。入力された印刷オプ
ションデータと印刷データは、制御手段2からの制御信
号によってI/Fポート7からシステムバス8を通して
いったんメモリ3の所定の領域に格納される。また、制
御手段2は、I/Fポート7からメモリ3に印刷データ
を書き込ませる時に、データ量測定手段5を起動させ
る。起動したデータ量測定手段5は、システムバス8を
モニタすることによって、I/Fポート7からメモリ3
へのデータの移動量をバイト単位でカウントする。そし
て、メモリ3への書込みが終了した時点で、カウントし
たデータバイト数をメモリ3内のデータ情報領域33の
データ量33−2に書き込む。また、制御手段2はメモ
リ3内のデータ情報領域33のデータ先頭アドレス33
−1に、データ書込みを開始したアドレスを書き込む。
First, the user operates the host devices 10 and 11
And the like, the print data is transmitted together with the print option data in which the user designates the number of print copies, etc.
Print request. In response to the print request, the print option data and the print data are input to the I / F port 7 via the network 9. The input print option data and print data are temporarily stored in a predetermined area of the memory 3 through the system bus 8 from the I / F port 7 according to a control signal from the control unit 2. The control unit 2 activates the data amount measuring unit 5 when writing the print data from the I / F port 7 to the memory 3. The activated data amount measuring means 5 monitors the system bus 8 to connect the memory 3 to the I / F port 7.
Counts the amount of data moved to the device in bytes. When the writing to the memory 3 is completed, the counted number of data bytes is written to the data amount 33-2 of the data information area 33 in the memory 3. Further, the control means 2 controls the data head address 33 of the data information area 33 in the memory 3.
Write the address at which data writing has started to -1.

【0044】以上の動作により、例えば図2のデータ構
造図においては、ジョブID1として登録されている印
刷データは″0xa000″番地からKバイト、またジ
ョブID2として登録されている印刷データは″0xc
000″番地からLバイト、それぞれ格納される。
By the above operation, for example, in the data structure diagram of FIG. 2, the print data registered as job ID 1 is K bytes from the address “0xa000”, and the print data registered as job ID 2 is “0xc
L bytes starting from the address 000 "are stored.

【0045】次に、図3のフローチャートを用いて本発
明の実施例1の印刷処理の制御の流れを説明する。以下
において説明するフローチャートは、前記動作にしたが
ってメモリ3に既に格納されている印刷データを、制御
手段2の制御で印字手段6によって印刷処理するフロー
であり、印刷処理の制御の流れをステップSの符号によ
って説明する。
Next, the flow of control of the printing process according to the first embodiment of the present invention will be described with reference to the flowchart of FIG. The flowchart described below is a flow in which print data already stored in the memory 3 is printed by the printing unit 6 under the control of the control unit 2 in accordance with the above operation. The description will be made with reference numerals.

【0046】ステップS1:制御手段2はメモリ3内に
印刷ジョブが格納されているか否かの判定を行う。この
判定には、例えばヘッダ部34のジョブ属性領域31中
のジョブID31−3を検出することにより行うことが
できるが、これに限らず他の情報を用いて判定すること
も可能である。メモリ3内に印刷ジョブが格納されてい
る場合には、印刷手段6で印刷処理を行うため次のステ
ップS2の工程に進む。一方、メモリ3内に印刷ジョブ
が格納されていない場合には、印刷手段6で印刷処理を
行う印刷データがないため、その印刷処理を終了するス
テップS5の工程に進む。
Step S1: The control means 2 determines whether a print job is stored in the memory 3. This determination can be made, for example, by detecting the job ID 31-3 in the job attribute area 31 of the header section 34, but is not limited to this, and it is also possible to make a determination using other information. If a print job is stored in the memory 3, the process proceeds to the next step S 2 in order for the printing unit 6 to perform a printing process. On the other hand, if no print job is stored in the memory 3, there is no print data to be printed by the printing means 6, and the process proceeds to step S5 where the printing process is terminated.

【0047】ステップS2:メモリ3内に印刷ジョブが
存在する場合には、その印刷ジョブの中から印刷処理を
行う印刷ジョブを選択し、その選択した印刷ジョブの印
刷オプションデータ、及び印刷データを抽出する。
Step S2: If a print job exists in the memory 3, a print job to be subjected to print processing is selected from the print job, and print option data and print data of the selected print job are extracted. I do.

【0048】ステップS3:前記ステップS2の工程で
選択した印刷ジョブのジョブ属性と印刷オプションデー
タと印刷データをメモリ3から読出し、その印刷オプシ
ョンデータに基づいて印字手段6を起動させ、印刷デー
タの印刷処理を開始する。
Step S3: The job attributes, the print option data and the print data of the print job selected in the step S2 are read out from the memory 3, and the printing means 6 is activated based on the print option data to print the print data. Start processing.

【0049】ステップS4:前記ステップS3の工程の
印刷データの印刷処理の開始時に、タイマ4をセットし
て印刷処理の実行に要する時間の計測を開始する。
Step S4: At the start of the printing process of the print data in the step S3, the timer 4 is set to start measuring the time required for executing the printing process.

【0050】ステップS5:前記印刷データの印刷処理
が終了したか否かの判定を行う。印刷処理が終了した場
合には、制御手段2は印字手段6から送信される印刷終
了信号を受信し、その印刷データの印刷処理を終了し、
前記ステップS1の工程に戻って次に処理する印刷ジョ
ブがあるか否かの判定を行う。
Step S5: It is determined whether or not the printing process of the print data has been completed. When the printing process is completed, the control unit 2 receives the printing end signal transmitted from the printing unit 6, ends the printing process of the print data,
Returning to the step S1, it is determined whether there is a print job to be processed next.

【0051】一方、このステップにおいて、印字手段6
から印刷終了信号が送信されるず印刷データの印刷処理
が終了していない場合には、そのまま処理を続行しステ
ップS6の工程での判定を行う。
On the other hand, in this step, the printing means 6
If the print end signal is not transmitted from the printer and the printing process of the print data is not completed, the process is continued and the determination in the step S6 is performed.

【0052】ステップS6:制御手段2はタイマ4から
の割り込み信号が送信されるまで待機し、タイマによる
割り込みを判定する。タイマ4は、あらかじめ設定され
た時間になると、制御手段2に対して割り込み信号を送
信するという動作をする。この割り込み動作は、あらか
じめ設定された時間経過後においても、未だ印刷処理が
終了しない場合に、待ち状態にある他の印刷ジョブの印
刷処理を行うものであり、制御手段2はこのタイマ割り
込み信号を印字手段6からの印刷処理終了信号よりも早
い時期に送信することによって次のステップS7の工程
の割り込み処理ルーチンに入る。
Step S6: The control means 2 waits until an interrupt signal is transmitted from the timer 4, and determines an interrupt by the timer. The timer 4 operates to transmit an interrupt signal to the control means 2 when a preset time has elapsed. This interrupt operation is to execute a print process of another print job in a waiting state if the print process is not completed even after a preset time has elapsed, and the control means 2 issues this timer interrupt signal. By transmitting the print processing end signal earlier than the print processing end signal from the printing means 6, an interrupt processing routine of the next step S7 is entered.

【0053】ステップS7:この割り込み処理ルーチン
のステップにおいて、待ち状態にある他の印刷ジョブの
印刷処理を行う。
Step S7: In this step of the interrupt processing routine, the printing process of another print job in the waiting state is performed.

【0054】次に、図4のフローチャート、及び図2を
用いて前記ステップS7の工程の割り込み処理ルーチン
の説明を行う。以下、割り込み処理ルーチンの制御の流
れをステップS10から始まる10番台の符号によって
説明する。
Next, the interrupt processing routine of the step S7 will be described with reference to the flowchart of FIG. 4 and FIG. Hereinafter, the flow of control of the interrupt processing routine will be described with reference to reference numerals in the tens starting from step S10.

【0055】ステップS10:まず、現在実行中の例え
ばフォントデータや、ビットマップ展開用データ等の印
刷処理用データをメモリ3内のデータ退避領域36に退
避させる。このデータの退避処理の実行は、実行中の印
刷データ中で例えばページの切り目等の退避を行い易い
のタイミングにおいて実行する。そのために、現在実行
中の印刷処理は、その退避処理の実行のタイミングまで
続行される。
Step S10: First, print processing data such as font data and bitmap development data that are currently being executed are saved in the data saving area 36 in the memory 3. The execution of the data saving process is performed at a timing when it is easy to save a page cut or the like in the print data being executed. Therefore, the printing process that is currently being executed is continued until the timing at which the save process is executed.

【0056】ステップS11:前記ステップS10の工
程において、現在実行中の印刷処理用データがメモリ3
内のデータ退避領域36への退避が完了することによっ
て、データ部35には次の処理を行うためのデータを受
け入れる空の領域が用意されることになる。そこで、次
にメモリ3内のヘッダ部34を検索して、割り込み処理
すべき印刷ジョブを探する。
Step S11: In the step S10, the print processing data currently being executed is stored in the memory 3.
When the saving to the data saving area 36 is completed, an empty area for receiving data for performing the next process is prepared in the data section 35. Therefore, next, the header section 34 in the memory 3 is searched for a print job to be interrupted.

【0057】この割り込み処理すべき印刷ジョブの探索
に用いるキーには、例えば以下に示す方法がある。
The keys used for searching for a print job to be interrupted include, for example, the following method.

【0058】メモリ3内のヘッダ部34のジョブ属性
領域31中のジョブID31−1をキーとして検索し、
ジョブID31−1の番号の小さい印刷ジョブから順に
割り込み印刷処理を実行する。
A search is performed using the job ID 31-1 in the job attribute area 31 of the header section 34 in the memory 3 as a key.
The interrupt printing process is executed in order from the print job with the smallest job ID 31-1.

【0059】通常、ジョブID31−1は印刷要求が来
た順に順次番号が割りつけられていくので、この検索方
法によれば、待ち時間の長いものから優先的に割り込み
印刷することができるという効果がある。
Normally, the job IDs 31-1 are sequentially assigned numbers in the order in which the print requests are received, so that according to this search method, interrupt printing can be performed preferentially starting from the one with the longest waiting time. There is.

【0060】メモリ3内のヘッダ部34のデータ情報
領域33中のデータ量33−2をキーとして印刷ジョブ
を探索し、データ量の少ない印刷ジョブから順に割り込
み印刷処理を実行する。
The print job is searched using the data amount 33-2 in the data information area 33 of the header section 34 in the memory 3 as a key, and the interrupt print processing is executed in order from the print job with the smaller data amount.

【0061】メモリ3内のヘッダ部34のデータ情報
領域33中のデータ量33−2をキーとして印刷ジョブ
を探索し、あらかじめ定められた閾値以下のデータ量を
持った印刷ジョブから順に割り込み印刷処理を実行す
る。
A print job is searched by using the data amount 33-2 in the data information area 33 of the header section 34 in the memory 3 as a key, and the print job having a data amount equal to or smaller than a predetermined threshold is sequentially executed in the interrupt printing process. Execute

【0062】前記,の方法によれば、割り込み処理
される印刷データが大量のデータ量を持つ場合に、割り
込み印刷処理自体が他の印刷ジョブを長時間待たせてし
まうという弊害を回避できるという効果がある。
According to the above-described method, when print data to be interrupted has a large amount of data, it is possible to avoid a problem that the interrupted printing process itself causes another print job to wait for a long time. There is.

【0063】メモリ3内のヘッダ部34のオプション
情報領域32中の印刷部数32−1をキーとして印刷ジ
ョブを探索し、印刷部数の少ない印刷ジョブから順に割
り込み印刷処理を実行する。
A print job is searched by using the number of print copies 32-1 in the option information area 32 of the header section 34 in the memory 3 as a key, and interrupt print processing is executed in order from the print job with the smallest number of print copies.

【0064】メモリ3内のヘッダ部34のオプション
情報領域32中の印刷部数32−1をキーとして印刷ジ
ョブを探索し、あらかじめ定められた閾値以下の印刷部
数を持った印刷ジョブから順に割り込み印刷処理を実行
する。
A print job is searched by using the number of prints 32-1 in the option information area 32 of the header section 34 in the memory 3 as a key, and interrupt print processing is performed in order from the print jobs having the number of prints equal to or less than a predetermined threshold value. Execute

【0065】前記,の方法によれば、割り込み処理
される印刷データが大量の印刷部数を持つ場合に、割り
込み印刷処理自体が他の印刷ジョブを長時間待たせてし
まうという弊害を回避できるという効果がある。
According to the above method, when the print data to be interrupted has a large number of print copies, it is possible to avoid the problem that the interrupted print processing itself causes another print job to wait for a long time. There is.

【0066】メモリ3内のヘッダ部34のジョブ属性
領域31中のユーザID31−3をキーとして印刷ジョ
ブを探索し、特定のユーザID31−3の印刷ジョブが
集中しないような順序で割り込み印刷処理を実行する。
A print job is searched for by using the user ID 31-3 in the job attribute area 31 of the header section 34 in the memory 3 as a key, and the interrupt print processing is performed in such an order that the print jobs of the specific user ID 31-3 are not concentrated. Execute.

【0067】この検索方法によれば、特定の使用者の印
字要求が連続してメモリ3に格納されているような場合
に、その使用者の印刷ジョブを集中して処理するために
他の使用者が長時間待たされてしまうと言う弊害を回避
できるという効果がある。
According to this search method, when print requests of a specific user are continuously stored in the memory 3, another print job of the specific user is processed in a concentrated manner. This has the effect of avoiding the adverse effect that the user is kept waiting for a long time.

【0068】ステップS12:前記検索方法によって、
メモリ3中の印刷ジョブのおいて割り込み印刷処理を行
う印刷ジョブを検索し、該当する印刷ジョブがある場合
には次のステップS13の工程に進み、該当する印刷ジ
ョブがない場合にはステップS15の復帰処理の工程に
進む。
Step S12: According to the search method,
The print job in the memory 3 is searched for a print job to be subjected to the interrupt printing process. If there is a corresponding print job, the process proceeds to the next step S13. If there is no corresponding print job, the process proceeds to step S15. The process proceeds to the return process.

【0069】ステップS13:前記ステップS11及び
ステップS12の工程で抽出された印刷ジョブの割り込
み印刷処理を行う。
Step S13: Interrupt print processing of the print job extracted in the steps S11 and S12 is performed.

【0070】ステップS14:割り込み印刷処理の終了
の判定を行う。割り込み印刷処理の終了した場合には、
次の割り込み印刷処理を行うために前記ステップS11
の工程に戻る。
Step S14: It is determined whether the interrupt printing process has been completed. When the interrupt printing process is completed,
In order to perform the next interrupt printing process, the above-described step S11 is performed.
Return to step.

【0071】ステップS15:割り込み印刷すべき印刷
ジョブがない場合には、この工程において割り込み処理
ルーチンからから出て、元の印刷処理の工程に戻る。こ
の工程では、メモリ3内のデータ退避領域36に退避し
ておいた印刷処理用データをデータ部35に復帰させ印
刷処理を再開させる。
Step S15: If there is no print job to be subjected to interrupt printing, the process exits from the interrupt processing routine in this step and returns to the original print processing step. In this step, the print processing data saved in the data save area 36 in the memory 3 is returned to the data section 35 to restart the print processing.

【0072】割り込み処理が終了し、中断された印刷ジ
ョブの印刷処理が再開されると、制御手段2は再びタイ
マセットし(図3のステップS4の工程)、再び印刷処
理終了信号もしくはタイマ割り込み信号を受信するまで
待機する。
When the interrupt processing is completed and the print processing of the interrupted print job is restarted, the control means 2 sets the timer again (step S4 in FIG. 3) and returns the print processing end signal or the timer interrupt signal again. Wait until you receive.

【0073】(実施例1の効果)次に、実施例1の効果
について説明する。この実施例1によれば、プリンタ装
置1は、印刷処理が長時間に渡るような印刷ジョブの印
刷処理実行中において、適宜自動的に割り込み印刷処理
を行わせることが可能となり、大量の印刷ジョブの実行
によって生じる他の印刷ジョブの印刷待ちの問題を解決
することができる。例えば、プリンタ装置1の使用者
は、タイマ4にあらかじめ設定された割り込み時間とり
割り込み処理時間の合計時間から印刷ジョブの印刷終了
時刻を予測することができる。
(Effects of the First Embodiment) Next, the effects of the first embodiment will be described. According to the first embodiment, it is possible for the printer apparatus 1 to automatically and appropriately perform interrupt print processing during execution of print processing of a print job in which print processing is performed for a long time. Can solve the problem of waiting for printing of another print job caused by the execution of. For example, the user of the printer device 1 can predict the print end time of the print job from the total time of the interrupt time and the interrupt processing time preset in the timer 4.

【0074】(実施例2)次に,本発明の実施例2につ
いて説明する。
(Embodiment 2) Next, Embodiment 2 of the present invention will be described.

【0075】(プリンタ装置の構成、及びデータ構造の
構成)実施例2のプリンタ装置の構成及びデータ構造
は、前記実施例1に示したものと同様であるため、ここ
ではその説明を省略する。
(Configuration of Printer Apparatus and Configuration of Data Structure) The configuration and data structure of the printer apparatus of the second embodiment are the same as those shown in the first embodiment, and the description thereof is omitted here.

【0076】(実施例2の作用)次に、前記実施例2の
構成のプリンタ装置の作用を説明する。プリンタ装置自
体の作用は前記実施例1の作用と同様であり、印刷処理
の制御の点でのみ相違している。この実施例1と実施例
2の相違する点は、前記実施例1においては割り込み印
刷処理を行っている際の印刷処理時間を計測しないのに
対して、実施例2のものは割り込み印刷処理実行時に関
してもタイマによって実行時間を計測し、この時間が所
定値以上になったらタイマ割り込み信号を発生させて、
さらに割り込み印刷処理を行わせる点にある。そこで、
以下、図5のフローチャートを用いて本発明の実施例2
の印刷処理の制御の流れついてのみ説明する。
(Operation of Second Embodiment) Next, the operation of the printer having the configuration of the second embodiment will be described. The operation of the printer device itself is the same as the operation of the first embodiment, and differs only in the control of the printing process. The difference between the first embodiment and the second embodiment is that the print processing time during the execution of the interrupt print processing is not measured in the first embodiment, whereas the print processing time of the second embodiment is different from the execution of the interrupt print processing. Regarding the time, the execution time is measured by a timer, and when this time exceeds a predetermined value, a timer interrupt signal is generated,
Another point is that an interrupt printing process is performed. Therefore,
Hereinafter, the second embodiment of the present invention will be described with reference to the flowchart of FIG.
Only the control flow of the printing process will be described.

【0077】以下において説明するフローチャートは、
前記動作にしたがってメモリ3に既に格納されている印
刷データを、制御手段2の制御で印字手段6によって印
刷処理するフローであり、印刷処理の制御の流れをステ
ップS21から始まる20番台及び30番台の符号によ
って説明する。
The flowchart described below is
This is a flow in which print data already stored in the memory 3 is printed by the printing unit 6 under the control of the control unit 2 in accordance with the above-described operation. The description will be made with reference numerals.

【0078】ステップS21〜ステップS24:このス
テップS21〜ステップS24の工程は、図3に示した
前記実施例1のステップS1〜ステップS4の工程と同
様であるので、ここでは説明を省略する。
Steps S21 to S24: The steps S21 to S24 are the same as the steps S1 to S4 of the first embodiment shown in FIG. 3, and the description is omitted here.

【0079】ステップS25:前記印刷データの印刷処
理が終了したか否かの判定を行う。印刷処理が終了した
場合には、制御手段2は印字手段6から送信される印刷
終了信号を受信し、その印刷データの印刷処理を終了
し、ステップS31の工程に進む。
Step S25: It is determined whether or not the printing process of the print data has been completed. When the printing process is completed, the control unit 2 receives the printing end signal transmitted from the printing unit 6, ends the printing process of the print data, and proceeds to the step S31.

【0080】一方、このステップにおいて、印字手段6
から印刷終了信号が送信されず印刷データの印刷処理が
終了していない場合には、そのまま処理を続行しステッ
プS26の工程での判定を行う。
On the other hand, in this step, the printing means 6
If the print end signal is not transmitted from the printer and the print processing of the print data is not completed, the processing is continued as it is, and the determination in the step S26 is performed.

【0081】ステップS26:制御手段2はタイマ4か
らの割り込み信号が送信されるまで待機し、タイマによ
る割り込みを判定する。タイマ4は、あらかじめ設定さ
れた時間になると、制御手段2に対して割り込み信号を
送信するという動作をする。
Step S26: The control means 2 waits until an interrupt signal is transmitted from the timer 4, and judges an interrupt by the timer. The timer 4 operates to transmit an interrupt signal to the control means 2 when a preset time has elapsed.

【0082】この割り込み動作は、あらかじめ設定され
た時間経過後においても、未だ印刷処理が終了しない場
合に、待ち状態にある他の印刷ジョブの印刷処理を行う
ものであり、制御手段2はこのタイマ割り込み信号を印
字手段6からの印刷処理終了信号よりも早い時期に送信
することによって次のステップS27の工程に進む。ス
テップS27:この工程は、割り込み処理の回数があら
かじめ設定された回数に達するまで、割り込み処理を行
わせるものであり、累計した割り込み処理の回数があら
かじめ設定された上限の回数に達していない場合には、
次のステップS28の工程に進む。
This interrupting operation is to execute a printing process of another print job in a waiting state if the printing process has not been completed even after a preset time has elapsed, and the control means 2 uses this timer. By transmitting the interrupt signal earlier than the print processing end signal from the printing means 6, the process proceeds to the next step S27. Step S27: In this step, interrupt processing is performed until the number of interrupt processing reaches a preset number. If the total number of interrupt processing does not reach the preset upper limit, Is
The process proceeds to the next step S28.

【0083】ステップS28:この工程において、割り
込みカウント値をアップする。この処理によって、割り
込み処理の回数の累計が行われ、前記ステップS27で
の設定上限値との比較を行うことができる。
Step S28: In this step, the interrupt count value is increased. By this processing, the number of times of the interruption processing is accumulated, and the comparison with the set upper limit in the step S27 can be performed.

【0084】ステップS29:次に、前記実施例1と同
様にして、中断する印刷ジョブの実行データをデータ退
避領域36に退避させる。
Step S29: Next, as in the first embodiment, the execution data of the interrupted print job is saved in the data saving area 36.

【0085】ステップS30:前記ステップS11と同
様にして割り込みジョブを探索し、ステップS23に進
んで割り込み実行処理を開始する。その後、ステップS
24においてこの割り込み印刷実行処理に対してもタイ
マセットする。ステップS26においてこの割り込み印
刷処理の実行中にさらにタイマ割り込み信号が受信する
と、ステップS23からステップS26の工程を繰り返
す。
Step S30: An interrupt job is searched for in the same manner as in step S11, and the flow advances to step S23 to start an interrupt execution process. Then, step S
At 24, a timer is also set for this interrupt print execution process. In step S26, if a timer interrupt signal is received during the execution of the interrupt printing process, the processes from step S23 to step S26 are repeated.

【0086】この繰り返しの最中に予め設定された繰り
返し回数の上限に達した場合、それ以上の割り込み処理
は行わず(ステップS27)、ステップS31の工程に
進む(ステップS25)。
If the preset upper limit of the number of repetitions is reached during this repetition, no further interrupt processing is performed (step S27), and the process proceeds to step S31 (step S25).

【0087】ステップS31:割り込み印刷処理が終了
の判定を行い、終了した場合にはステップS32の工程
に進み、割り込み印刷処理が終了していない場合にはス
テップS21の工程に戻る。
Step S31: It is determined that the interrupt printing process has been completed. If the process has been completed, the process proceeds to step S32. If the interrupt printing process has not been completed, the process returns to step S21.

【0088】ステップS32:割り込み処理が終了した
場合には、割り込みカウント値をダウンさせる。
Step S32: When the interruption processing is completed, the interruption count value is decreased.

【0089】ステップS33:中断していた印刷ジョブ
の復帰処理を行う。
Step S33: The process of restoring the interrupted print job is performed.

【0090】(実施例2の効果)次に、実施例2の効果
について説明する。この実施例2によれば、割り込み印
刷を実行した印刷ジョブの実行時間が長時間に及んだ場
合でも、他の印刷ジョブが待たされる状態を回避するこ
とが可能となる。
(Effect of Second Embodiment) Next, the effect of the second embodiment will be described. According to the second embodiment, it is possible to avoid a state in which another print job is waited even when the execution time of the print job that has performed the interrupt printing is long.

【0091】(実施例3) (プリンタ装置の構成)次に、本発明の実施例3のプリ
ンタ装置の構成を図6のブロック図によって説明する。
Embodiment 3 (Configuration of Printer) Next, the configuration of a printer according to Embodiment 3 of the present invention will be described with reference to the block diagram of FIG.

【0092】プリンタ装置20は、複数のホスト装置7
1〜7nから様々なプロトコルで送信される印刷データ
を受信するn個のインタフェース・ポート(以下、I/
Fポートという)である第1インタフェース・ポート4
1〜第nI/Fポート4nと、それに対応したn個の印
刷ジョブ管理手段である第1印刷ジョブ管理手段51〜
第n印刷ジョブ管理手段5n、及びn個の優先順位設定
手段である第1優先順位設定手段61〜第n優先順位設
定手段6nからなる印刷データ入力部28と、これら印
刷データ入力部28から送られてくる印刷ジョブを待ち
行列(メモリ)23にいったん格納する待ち行列管理手
段24と、待ち行列内の各ジョブの優先順位をタイマ2
5やカウンタ26の値に基づいて変更する優先順位変更
手段27と、印刷データに基づき記録用紙に印刷を行う
印字手段21と、これら全体を制御する印刷処理制御手
段22から構成される。そして、印刷処理制御手段2
2、印字手段21、及び印刷データ入力部28はシステ
ムバス29によって接続され、相互にデータ送受信を行
う。
The printer device 20 includes a plurality of host devices 7
N interface ports (hereinafter, I / O ports) for receiving print data transmitted by various protocols from 1 to 7n.
First interface port 4 which is called F port)
1 to n-th I / F port 4n and first print job management means 51 to 51 corresponding to the n-th print job management means
A print data input unit 28 including an n-th print job management unit 5n and first to n-th priority order setting units 61 to 6n, which are n priority order setting units; Queue management means 24 for temporarily storing incoming print jobs in a queue (memory) 23, and a timer 2 for determining the priority of each job in the queue.
5, a priority changing means 27 for changing the print order based on the value of the counter 5 and the value of the counter 26, a printing means 21 for printing on recording paper based on print data, and a print processing control means 22 for controlling the whole of them. And print processing control means 2
2. The printing means 21 and the print data input unit 28 are connected by a system bus 29 and mutually transmit and receive data.

【0093】ここで、第1I/Fポート41は、例えば
RS232−CやセントロニクスやApple社の商品
名であるAppleTalk規格のようなスプーリング
機能を持たないプリンタプロトコルによりホスト装置か
らの印刷データを受信し、第2I/Fポート42は、N
ovell社の商品名がNetWareやUNIXのT
CP/IPといったLAN70で接続されたホスト7
2,73からの印刷データを受信するものと仮定する。
この仮定により、本発明のプリンタ装置20は異なるプ
ロトコルの複数のI/Fポートを持つことになる。
Here, the first I / F port 41 receives print data from the host device according to a printer protocol having no spooling function such as RS232-C, Centronics, or AppleTalk, which is a product name of Apple Inc. And the second I / F port 42
ovell's product name is NetWare or UNIX T
Host 7 connected by LAN 70 such as CP / IP
It is assumed that print data from printers 2, 73 is received.
By this assumption, the printer device 20 of the present invention has a plurality of I / F ports of different protocols.

【0094】また、印刷データ入力部28や印刷処理制
御手段22の各制御は、マルチタスク・オペレーティン
グ・システム上で動作するタスクで行われるものとし、
各タスク間の情報の送受信にはメッセージ通信を用いて
同期をとるものとする。
Each control of the print data input unit 28 and the print processing control means 22 is performed by a task operating on a multitasking operating system.
The transmission and reception of information between the tasks is synchronized using message communication.

【0095】(実施例3の作用)次に、前記実施例2の
構成のプリンタ装置の作用を説明する。
(Operation of the Third Embodiment) Next, the operation of the printer having the configuration of the second embodiment will be described.

【0096】以下、印刷データ入力部28、印字処理制
御手段22、待ち行列管理手段24、及び優先順位変更
手段の処理の手順について順に説明する。
Hereinafter, the processing procedures of the print data input unit 28, the print processing control unit 22, the queue management unit 24, and the priority change unit will be described in order.

【0097】(印刷データ入力ブロックの動作)はじめ
に、印刷データ入力部28の動作について、図7の印刷
データ入力部における印刷ジョブ要求時のフローチャー
トを用いて説明する。
(Operation of Print Data Input Block) First, the operation of the print data input unit 28 will be described with reference to the flowchart of FIG. 7 when the print data input unit requests a print job.

【0098】ステップS41:印刷データ入力部28の
各手段は、ホスト装置71〜7nの何れかより印刷デー
タをI/Fポート41〜4nにより受信する。
Step S41: Each unit of the print data input unit 28 receives print data from any of the host devices 71 to 7n through the I / F ports 41 to 4n.

【0099】ステップS42:I/Fポート41〜4n
により受信された印刷データは、印刷ジョブ管理手段5
1〜5nによって印刷ジョブ単位に登録が行われる。こ
の登録においては、ジョブ単位毎に一意な識別子である
ジョブIDが割り当てられる。なお、本発明の実施例に
おいて、ジョブ単位とは、あるホスト端末を操作してい
るユーザが1回の印刷要求を本発明のプリンタ装置に行
う単位として定義される。このとき、第1I/Fポート
41のようにRS232−Cやセントロニクスの場合に
は、これらを規定しているプロトコルの規定上から受信
される印刷データをジョブ単位に分割することは困難で
あるが、印刷データが受信されない期間がある単位時間
を経過した場合、この時点をジョブの切れ目としてタイ
ムアウト値として予め設定しておき、印刷データが受信
開始された段階からタイムアウトになるまでの間に送信
されてくる印刷データを1ジョブ単位として定義する。
Step S42: I / F ports 41 to 4n
The print data received by the print job management unit 5
Registration is performed for each print job by 1 to 5n. In this registration, a job ID, which is a unique identifier, is assigned to each job unit. In the embodiment of the present invention, a job unit is defined as a unit in which a user operating a certain host terminal makes one print request to the printer of the present invention. At this time, in the case of RS232-C or Centronics as in the case of the first I / F port 41, it is difficult to divide print data received according to the protocol that defines them into job units. If a unit time elapses during a period in which print data is not received, this time is set in advance as a time-out value as a break between jobs, and the print data is transmitted from the stage at which reception of print data is started until the time-out. The incoming print data is defined as one job unit.

【0100】ステップS43:前記したように登録され
た印刷ジョブは、優先順位設定手段61〜6nによって
優先順位が設定される。このとき、LAN70のような
ネトワークプロトコルによって印刷ジョブに付随してホ
スト装置72,73から優先順位の指定があった場合に
は、その指定された優先順位を設定する。
Step S43: The priority order of the print jobs registered as described above is set by the priority order setting means 61 to 6n. At this time, when a priority is specified from the host devices 72 and 73 accompanying the print job by a network protocol such as the LAN 70, the specified priority is set.

【0101】ステップS44:一方、前記ステップS4
3の判定において、ホスト装置72,73からの優先順
位の指定がない場合には、予め決定されているデフォル
トの優先順位が設定される。
Step S44: On the other hand, step S4
In the determination of 3, if no priority order is specified from the host devices 72 and 73, a predetermined default priority order is set.

【0102】ステップS45,46:そして、ステップ
S45において優先順位の有効期間を設定するか否かの
判定を行い、優先順位の有効期間を設定する場合には、
有効期間を設定する時間値を設定する。
Steps S45 and S46: Then, in step S45, it is determined whether or not the priority valid period is to be set. If the priority valid period is to be set,
Set the time value to set the validity period.

【0103】ステップS47:その後、印刷出入力部2
8は、ジョブ要求メッセージ80を印刷処理制御手段2
2に発行し、ジョブの開始まで待機する。
Step S47: Thereafter, the print output input unit 2
Reference numeral 8 designates the job request message 80 as the print processing control unit 2.
2 and wait until the start of the job.

【0104】このジョブ要求メッセージ80について、
図12のジョブ要求メッセージの構成を示すモデル図を
用いて説明する。ジョブ要求メッセージ80は、ジョブ
要求のメッセージであることを表すメッセージID、印
刷ジョブとして登録されたときに付された番号を示すジ
ョブID、印刷データが入力されたI/Fポートを示す
入力ポートID、優先順位の設定値、その優先順位の有
効期間を示す時間値、及びバナーシート出力やページ番
号付加といった印刷時に付加できるサービスの設定を指
定するオプション領域により構成されている。
With respect to the job request message 80,
This will be described with reference to a model diagram showing the configuration of the job request message in FIG. The job request message 80 includes a message ID indicating a job request message, a job ID indicating a number assigned when the job is registered as a print job, and an input port ID indicating an I / F port to which print data has been input. , A priority setting value, a time value indicating the validity period of the priority, and an option area for specifying settings of services that can be added at the time of printing, such as banner sheet output and page number addition.

【0105】(印刷処理制御手段の動作)次に、印刷処
理制御手段22の動作について、図8の印刷処理制御手
段の制御を説明するフローチャートを用いてステップS
の50番台の符号により説明する。
(Operation of Print Processing Control Unit) Next, the operation of the print processing control unit 22 will be described with reference to the flowchart of FIG.
The description will be made using reference numerals in the 50's.

【0106】ステップS51:印刷データ入力部28か
ら送信されたジョブ要求メッセージ80は、メッセージ
受付により印刷処理制御手段22内部に取り込まれる。
Step S51: The job request message 80 transmitted from the print data input unit 28 is taken into the print processing control unit 22 upon receipt of the message.

【0107】ステップS52:そして、前記図12に示
すジョブ要求メッセージ80内のメッセージIDからメ
ッセージ内容がジョブ要求であるかの判定を行う。
Step S52: It is determined whether the message content is a job request from the message ID in the job request message 80 shown in FIG.

【0108】ステップS55:前記ステップS52の判
定において、メッセージ内のメッセージIDがジョブ要
求である場合には、印刷ジョブを待ち行列23に格納す
るために、待ち行列管理手段24を起動させる。
Step S55: If it is determined in step S52 that the message ID in the message is a job request, the queue management unit 24 is activated to store the print job in the queue 23.

【0109】ステップS53:一方、タイマメッセージ
90を受け取ると、このメッセージIDから印刷可能メ
ッセージであるかの判定を行なう。
Step S53: On the other hand, when the timer message 90 is received, it is determined from the message ID whether the message is a printable message.

【0110】ステップS54:前記ステップS53の判
定で、印刷可能メッセージでない場合には、メッセージ
IDからメッセージの内容がタイマの割り込みであるか
の判定を行う。
Step S54: If it is determined in step S53 that the message is not a printable message, it is determined from the message ID whether the content of the message is a timer interrupt.

【0111】ステップS56−1:メッセージIDから
メッセージの内容がタイマの割り込みであると判定され
ると、優先順位変更手段27を起動させる。このとき、
印刷処理制御手段22は、パラメータとしてタイマメッ
セージ90の内容を優先順位変更手段27に送る。優先
順位変更手段27はタイマメッセージ90を受けて、図
10に示す処理を行う。
Step S56-1: If it is determined from the message ID that the content of the message is a timer interrupt, the priority changing means 27 is activated. At this time,
The print processing control unit 22 sends the contents of the timer message 90 to the priority change unit 27 as a parameter. Upon receiving the timer message 90, the priority changing means 27 performs the processing shown in FIG.

【0112】ステップS56−2:ステップS53の判
定において、印刷可能メッセージであることが判定され
ると、次に処理を行なう印刷ジョブを待ち行列23の中
から選択する処理が行なわれる。このとき、印刷ジョブ
が競合していて複数の印刷ジョブが待ち行列に格納さて
いる場合は、印刷処理制御手段22は優先順位の高いも
のから順に処理を行なう必要がある。しかし、ジョブ要
求メッセージ80の送信時に設定された優先順位が低い
印刷ジョブの場合には、後から待ち行列23に格納され
た優先順位の高い印刷ジョブに次々と割り込みが行なわ
れて、印刷処理か実行されないという現象の発生の可能
性がある。そこで、このような現象の発生を防止するた
めに、ジョブ要求受付時間からある所定の時間経過した
後にも印刷処理が行なわれず待ち行列23内に格納され
ているような印刷ジョブに対しては、優先順位を段階的
に上げる操作により待ち時間の長さに応じて優先順位を
アップさせ、長時間印刷処理されないような印刷ジョブ
の発生を防止することができる。
Step S56-2: If it is determined in step S53 that the message is a printable message, a process of selecting a print job to be processed next from the queue 23 is performed. At this time, if the print jobs are in conflict with each other and a plurality of print jobs are stored in the queue, the print processing control unit 22 needs to perform the processing in the order of higher priority. However, in the case of a print job with a low priority set at the time of transmission of the job request message 80, the print jobs with a high priority stored in the queue 23 are interrupted one after another, and the print processing is performed. There is a possibility that a phenomenon of not being executed may occur. Therefore, in order to prevent the occurrence of such a phenomenon, a print job that is not printed even after a predetermined time has elapsed from the job request reception time and is stored in the queue 23 is printed. By increasing the priority step by step, the priority can be raised in accordance with the length of the waiting time, and the occurrence of a print job in which print processing is not performed for a long time can be prevented.

【0113】また、この優先順位をアップさせる要因と
して前記待ち時間だけでなく、印刷ジョブを待ち行列に
格納されてから、他の印刷ジョブに割り込まれた回数を
要因とすることも可能である。この場合には、ある印刷
ジョブの印刷処理が他の印刷ジョブに追い抜かれた回数
をカウントし、その回数が所定回数以上の場合に優先順
位をアップさせる処理を行なう。
The priority can be raised not only by the waiting time, but also by the number of times a print job is stored in a queue and interrupted by another print job. In this case, the number of times that a print job of a certain print job is overtaken by another print job is counted, and if the number of times is equal to or more than a predetermined number, a process of increasing the priority is performed.

【0114】この操作を実現させるために、印刷処理制
御手段22は、パラメータとして所定の時間値と、所定
の割り込み回数(以下ホップ数と呼ぶ)とを設定して優
先順位変更手段27を起動させる。
In order to realize this operation, the print processing control means 22 sets a predetermined time value and a predetermined number of interrupts (hereinafter referred to as a hop number) as parameters and activates the priority changing means 27. .

【0115】ステップS57:印字処理制御手段22
は、優先順位変更手段27によって変更された優先順位
に基づいて、待ち行列23内の最も優先順位の高いノー
ドを検索する。
Step S57: Print processing control means 22
Searches for the node with the highest priority in the queue 23 based on the priority changed by the priority changing means 27.

【0116】ステップS58:前記ステップS57の検
索により得られたノード内のI/FポートIDからI/
Fポートを選択する。
Step S58: From the I / F port ID in the node obtained by the search in step S57, the I / F
Select F port.

【0117】ステップS59:選択したI/Fポートに
より、印字手段21に対して印字処理開始メッセージを
発行する。なお、この印字処理時おいて、待ち行列管理
手段24の処理は、以下に説明する図9のステップS6
1,ステップS67,及びステップS68に従って行な
われる。
Step S59: A print processing start message is issued to the printing means 21 through the selected I / F port. In this printing process, the process of the queue management unit 24 is performed in step S6 of FIG.
Steps S67 and S68 are performed.

【0118】(待ち行列管理手段の動作)次に、この待
ち行列管理手段24の動作について、図9の待ち行列管
理手段の処理のフローチャートを用いてステップSの6
0番台の符号により説明する。
(Operation of Queue Management Unit) Next, the operation of the queue management unit 24 will be described with reference to the flowchart of FIG.
The description will be made with reference numerals in the 0's.

【0119】ステップS61:待ち行列23内の印刷ジ
ョブの印刷処理が開始されているか否かの判定を行う。
Step S61: It is determined whether or not the printing process of the print job in the queue 23 has been started.

【0120】ステップS62,63:タイマ25により
得られる時間情報を用いて受付時間の設定、及び初期値
の設定を行う。なお、前記印刷処理制御手段の動作にお
けるステップS55の段階では、印刷ジョブの印刷処理
は開始されていないので、はじめにこの工程において、
受付時間の設定、及び初期値の設定を行う。
Steps S62 and S63: The reception time is set and the initial value is set using the time information obtained by the timer 25. At the step S55 in the operation of the print processing control means, the print processing of the print job has not been started.
Set the reception time and the initial value.

【0121】ここで、図11の待ち行列のモデル図によ
り、初期値の内容を説明する。図11は、待ち行列のメ
モリ23内に格納される待ち行列の内容を示している。
この待ち行列は、印刷ジョブの属性及び優先順位を示し
ており、ジョブ要求メッセージ80から得られる優先順
位、ジョブID及びI/FポートID、ステップS62
で取得された受付時間、待ち行列23に格納されてから
の他のジョブの割り込み回数を示すホップ数(初期値を
「0」とする)、優先順位の有効期間が設定されている
か否かを示す有効期間フラグ、印刷ジョブに付随するオ
プションかつ能領域から構成されている。
Here, the contents of the initial values will be described with reference to the model diagram of the queue shown in FIG. FIG. 11 shows the contents of the queue stored in the memory 23 of the queue.
This queue indicates the attributes and priorities of the print jobs, the priority obtained from the job request message 80, the job ID and the I / F port ID, and step S62.
, The number of hops indicating the number of interruptions of other jobs after being stored in the queue 23 (the initial value is set to “0”), and whether or not the validity period of the priority is set. The validity period flag includes an option and a function area associated with the print job.

【0122】この有効期間フラグには、ジョブ要求メッ
セージ80内の有効期間を示す時間値に「0」より大き
い値が設定されていた場合に、「1」が設定される。
When the time value indicating the validity period in the job request message 80 is set to a value larger than “0”, the validity period flag is set to “1”.

【0123】ステップS64:次に、初期値の設定が行
われた印刷ジョブは、この待ち行列23のメモリに優先
順位の高いものから順に格納される。
Step S64: Next, the print jobs for which the initial values have been set are stored in the memory of the queue 23 in ascending order of priority.

【0124】ステップS65:この工程において、有効
期間が設定されているか否かの判定を行う。この判定
は、有効期間フラグの有無の判定により行われる。
Step S65: In this step, it is determined whether a valid period is set. This determination is made by determining the presence or absence of a validity period flag.

【0125】ステップS66:前記工程において、有効
期間フラグが設定されているものに対しては、そのジョ
ブ要求メッセージ80内の有効期間の時間後にタイマ割
り込みメッセージが発行されるようにタイマ25の設定
を行う。
Step S66: In the above-mentioned process, if the valid period flag is set, the timer 25 is set so that the timer interrupt message is issued after the valid period in the job request message 80. Do.

【0126】タイマ25はこれを受けて、設定された時
間の経過後に、タイマメッセージ90を印刷処理制御手
段22に発行する。図13は、このタイマメッセージの
モデル図であり、このタイマメッセージ90は、タイマ
25からのメッセージであることを示すメッセージI
D、及びジョブIDから構成されている。
In response to this, the timer 25 issues a timer message 90 to the print processing control means 22 after the lapse of the set time. FIG. 13 is a model diagram of the timer message. A message I indicating that the timer message 90 is a message from the timer 25 is shown.
D and a job ID.

【0127】ステップS67:印刷処理が開始された印
刷ジョブが待ち行列23内に存在する場合には、その該
当する印刷ジョブのノードを待ち行列23から削除す
る。
Step S67: If the print job for which the printing process has started is present in the queue 23, the node of the corresponding print job is deleted from the queue 23.

【0128】ステップS68:そして、他のノードのホ
ップ数をインクリメントする。
Step S68: Then, the number of hops of another node is incremented.

【0129】(優先順位変更手段の動作)次に、この優
先順位変更手段27の動作について、図10の優先順位
変更手段の処理のフローチャートを用いてステップSの
70番台の符号を用いて説明する。
(Operation of Priority Changing Unit) Next, the operation of the priority changing unit 27 will be described with reference to the 70's reference numerals in step S using the flowchart of the processing of the priority changing unit in FIG. .

【0130】ステップS71:起動時において、パラメ
ータがタイマメッセージか否かの判定を行う。
Step S71: At startup, it is determined whether or not the parameter is a timer message.

【0131】ステップS72:パラメータがタイマメッ
セージの場合には、タイマメッセージ90内のジョブI
Dから該当する待ち行列23内のノードを削除する。例
えば、タイマメッセージ90内のジョブIDが1の場合
には、待ち行列23内の第1行目のノードを削除する。
Step S72: If the parameter is a timer message, the job I
The node in the corresponding queue 23 is deleted from D. For example, when the job ID in the timer message 90 is 1, the node in the first line in the queue 23 is deleted.

【0132】また、印字手段21が印字処理を終了し、
次の印刷ジョブが処理可能となったときには、印字処理
可能メッセージ100が発行される。この印字処理可能
メッセージ100を、図14の印字処理可能メッセージ
の構成を示すモデル図を用いて説明すると、この印字処
理可能メッセージ100は印刷処理可能であることを示
すメッセージIDと、どの印刷ジョブが終了したか示す
ジョブIDとから構成される。
Further, the printing means 21 ends the printing process,
When the next print job can be processed, a print processing possible message 100 is issued. The printable message 100 will be described with reference to a model diagram showing the structure of the printable message in FIG. 14. The printable message 100 has a message ID indicating that print processing is possible, and which print job is And a job ID indicating whether the job has been completed.

【0133】ステップS73:パラメータがタイマメッ
セージでない場合には、i=1とし、以下ステップS7
4からステップS78の待ち行列23内の各ノードを検
索するループ処理を行なう。
Step S73: If the parameter is not a timer message, i = 1 is set, and thereafter, step S7
From step 4, a loop process of searching each node in the queue 23 in step S78 is performed.

【0134】ステップS74:タイマ25から取得され
た現在時刻と各ノードの受付時間を比較し、所定の時間
が経過しているか否かの判定を行なう。
Step S74: The current time acquired from the timer 25 is compared with the reception time of each node, and it is determined whether a predetermined time has elapsed.

【0135】ステップS76:パラメータで与えられた
所定時間以上経過したノードに対しては、優先順位をア
ップさせる。
Step S76: The priority order is raised for the node that has passed the predetermined time or more given by the parameter.

【0136】ステップS75:パラメータで与えられた
所定時間内のノードに対して、さらにホップ数を判定
し、ホップ数がパラメータで与えられた所定回数以上の
ノードに対して優先順位をアップさせる。
Step S75: The number of hops is further determined for the node within the predetermined time given by the parameter, and the priority is raised to the node having the hop number equal to or more than the predetermined number of times given by the parameter.

【0137】ステップS77:前記ステップS74〜ス
テップS76の工程を、待ち行列23内の全ての印刷ジ
ョブのノードに対して行なう。
Step S77: The steps S74 to S76 are performed for all print job nodes in the queue 23.

【0138】ステップS78:変更された優先順位に基
づいて、待ち行列23内のノードをソートする。
Step S78: The nodes in the queue 23 are sorted based on the changed priority.

【0139】なお、優先順位をアップさせる際には、上
限値を定めておき、その上限値以上になる場合には優先
順位の変更を行なわない。これは、最優先でジョブの要
求を行ないたいI/Fポートがある場合には、その再優
先印刷ジョブと同等もくしはそれ以上の優先順位を発生
させないためであり、この処理は必要に応じて付加する
ことができる。
When the priority order is raised, an upper limit value is determined, and when the priority value is higher than the upper limit value, the priority order is not changed. This is because if there is an I / F port for which a job request is to be made with the highest priority, no priority equal to or higher than that of the re-priority print job is generated. Can be added.

【0140】例えば、この処理は、図11において優先
順位の上限を「0」とし、優先順位をアップさせる処理
の際にアップすることのできる上限を「1」としてお
き、「1」から「0」にアップできないようにしておく
等の処理により行なうことができる。この処理によっ
て、最優先で印刷処理を行なわせる必要がある印刷ジョ
ブは、ジョブ要求時に優先順位を「0」に設定すること
により、他の印刷ジョブと競合した場合にも割り込まれ
ることなく保護されることになる。
For example, in this process, in FIG. 11, the upper limit of the priority order is set to “0”, the upper limit that can be increased in the process of increasing the priority order is set to “1”, and “1” is changed to “0”. , Or the like. By this process, a print job that needs to be subjected to print processing with the highest priority is protected without being interrupted even when there is a conflict with another print job by setting the priority to “0” when the job is requested. Will be.

【0141】(処理の例)前記の動作を行なうプリンタ
装置20により、例えば以下のような処理を行なうこと
ができる。
(Example of Processing) For example, the following processing can be performed by the printer device 20 performing the above operation.

【0142】(1)Novell社の商品名NetWa
reやUNIX社のTCP/IPといったLAN70の
プロトコルでホスト装置72,73から送信されてくる
印刷要求が、ネットワーク上の図示しないフアイルサー
バ等に印字データが、いったんスプールされてからの印
刷要求である場合には、優先順位設定手段61〜6nに
よって設定される優先順位は、特に指定がないかぎりあ
らかじめ低く設定して、ジョブ要求メッセージ80を発
行する。また、ホスト装置72,73から優先的に印刷
した旨の指定が、ネットワークプロトコル等で印刷要求
とともに送信されてきた場合には、それに応じて優先順
位を所定量上げる。
(1) Product name NetWa of Novell
The print request transmitted from the host device 72 or 73 using the protocol of the LAN 70 such as re or TCP / IP of UNIX is a print request after the print data is once spooled in a file server or the like (not shown) on the network. In this case, the priority set by the priority setting units 61 to 6n is set in advance to a low level unless otherwise specified, and the job request message 80 is issued. Further, when a designation that printing has been preferentially performed is transmitted from the host devices 72 and 73 together with a print request using a network protocol or the like, the priority is increased by a predetermined amount accordingly.

【0143】(2)また、RS232−Cやセントロニ
クス、スプーリング機能を持たないApple社の商品
名AplleTalk規格等でホスト装置71から送信
されてくる場合には、このホスト装置71からの印刷要
求に対して、印字手段21が印字処理中で即座に印刷要
求に対応できないようなビジー状態の場合には、あるタ
イムアウト値がプロトコル上で設定されているため、こ
のタイムアウト時間内に印刷要求許諾可応答を返してや
る必要がある。このような場合には、タイムアウトにな
るまでの期間内は他の印刷ジョブよりも優先した印刷処
理順位を割り当ててやり、他の競合する印刷ジョブより
も優先順位を高くしておく必要がある。そのため、最優
先の優先順位を設定し、かつプロトコルに応じたタイム
アウト値分の優先順位の有効期間値を設定してジョブ要
求メッセージ80を発行する。これにより、ホスト装置
71から印刷要求があったときにホスト装置72,73
等の印刷ジョブが待ち行列23に複数保留されている場
合には、それらより優先してホスト装置71の印刷ジョ
ブを処理することになる。このとき、もし有効期間内に
印刷手段21が処理を終え、次の印刷ジョブの印刷処理
が可能な状態となれば、ホスト装置71からの印刷ジョ
ブの印字処理が開始される。
(2) When a print request is sent from the host device 71 according to RS232-C, Centronics, Apple Inc. product name without spooling function, etc., a print request from the host device 71 is sent. On the other hand, if the printing unit 21 is in a busy state during the printing process and cannot immediately respond to the print request, a certain timeout value is set on the protocol. Need to be returned. In such a case, it is necessary to assign print processing priorities over other print jobs during the period until the timeout occurs, and to give higher priority than other competing print jobs. For this reason, the job request message 80 is issued with the highest priority set and the priority valid period value corresponding to the timeout value according to the protocol. Thus, when a printing request is issued from the host device 71, the host devices 72, 73
When a plurality of print jobs such as are held in the queue 23, the print job of the host device 71 is processed in preference to those. At this time, if the printing unit 21 finishes the processing within the validity period and becomes ready to print the next print job, the print processing of the print job from the host device 71 is started.

【0144】しかし、有効期間内に印字手段21が印刷
処理可能にならなかった場合には、ホスト71からの印
刷ジョブは待ち行列23から削除され、第1I/Fポー
ト41はホスト装置71にプリンタ装置がビジー状態で
あることを伝える。こうすることにより、第1I/Fポ
ート41とホスト装置71間のプロトコルで規定された
タイムアウト値の時間内に応答することが可能となり、
かつ、その時間内には他の印刷ジョブと競合した場合に
おいても、できるだけ印刷処理を行なわせる機会を増加
させることが可能となる。
However, if the printing means 21 does not become ready for printing within the validity period, the print job from the host 71 is deleted from the queue 23, and the first I / F port 41 is Signals that the device is busy. By doing so, it is possible to respond within the timeout value specified by the protocol between the first I / F port 41 and the host device 71,
In addition, even if there is a conflict with another print job within that time, it is possible to increase the chances of performing a printing process as much as possible.

【0145】(実施例3の効果)本発明の実施例3によ
れば、様々プロトコルで送信されてくる複数の印刷デー
タに対して、印刷ジョブ毎に優先順位が設定可能であ
り、また、設定された優先順位に対して後から変更をく
わえることも可能である。
(Effect of Third Embodiment) According to the third embodiment of the present invention, it is possible to set a priority order for a plurality of print data transmitted by various protocols for each print job. It is also possible to add a change to the assigned priority later.

【0146】さらに、優先順位の設定には、その優先順
位が有効な期間を示す時間値を設定することも可能であ
る。そきため、異なったプロトコルを持った複数のイン
タフェースに応じた最適な優先順位の設定が印刷ジョブ
単位に行なうことができ、共有プリンタにおける印刷ジ
ョブの競合時の処理において、最適な印刷処理順序を与
えることが可能であり、プリンタを共有するホスト端末
を利用するホスト端末を利用するユーザに最適な印刷環
境を提供することができる。
Furthermore, in setting the priority, it is possible to set a time value indicating a period in which the priority is valid. Therefore, it is possible to set an optimum priority according to a plurality of interfaces having different protocols on a print job basis, and to determine an optimum print processing order in a process of conflicting print jobs in a shared printer. It is possible to provide an optimum printing environment for a user using a host terminal using a host terminal sharing a printer.

【0147】本発明の実施例3において、ホスト装置7
2,73等から優先順位を高く要求してきた印刷ジョブ
が連続的に送られ、それらの印刷処理の割り込みにらっ
て他の優先順位の低い印刷ジョブが待ち行列24に格納
されたままになったとしても、その印刷ジョブの受付時
間から所定時間経過後、もしくはホップ数が所定回数以
上となった時点で、段階的に優先順位がアップしていく
ので、いつまでたっても、印字されないでいる状態を回
避することが可能である。
In the third embodiment of the present invention, the host device 7
2, 73 etc., print jobs requesting a higher priority are continuously sent, and other print jobs having a lower priority remain stored in the queue 24 due to interruption of the print processing. Even if the print job is accepted for a predetermined time from the reception time, or when the number of hops is equal to or more than a predetermined number of times, the priority order is gradually increased, so that printing is not performed any time. Can be avoided.

【0148】(変形例)なお、本発明は上記実施例に限
定されるものではなく、本発明の趣旨に基づき種々の変
形が可能であり、それらを本発明の範囲から排除するも
のではない。
(Modifications) The present invention is not limited to the above embodiments, but various modifications are possible based on the spirit of the present invention, and they are not excluded from the scope of the present invention.

【0149】本発明は、割り込み処理させるときのメモ
リ内の印刷ジョブを探索するキーとして、実施例に示し
た以外の他の属性を使用することも可能であり、使用者
の目的に合わせた割り込み処理順序を設定するすること
も可能である。例えば、ホストIDをキーにすれば、特
定のホストからの印刷要求を優先的に割り込み印刷処理
させることも可能である。
According to the present invention, it is possible to use other attributes other than those described in the embodiment as a key for searching for a print job in the memory at the time of interrupt processing. It is also possible to set the processing order. For example, if a host ID is used as a key, a print request from a specific host can be preferentially interrupted for print processing.

【0150】また、本発明の実施例3では、優先順位変
更手段27でタイマメッセージ90をパラメータとして
その印刷ジョブを待ち行列23から削除しているが、プ
ロトコルの規定等に応じて削除する必要のない場合に
は、削除せずに優先順位を下げる等といった変更に止め
ておくこともできる。
In the third embodiment of the present invention, the print job is deleted from the queue 23 by the priority changing means 27 using the timer message 90 as a parameter. However, it is necessary to delete the print job in accordance with the protocol or the like. If not, it may be possible to stop the change such as lowering the priority without deleting.

【0151】[0151]

【発明の効果】以上説明したように、本発明によれば、
プリンタ装置に対して複数の印刷データが競合した場合
に、プリンタ装置を共有する使用者の印刷処理待ちによ
る作業効率の低下を最小限にすることができ、また、長
時間を要する印刷処理により待ち状態となっている印刷
データによって生じる印刷処理待ちによる作業効率の低
下を、最小限にすることができる。
As described above, according to the present invention,
When a plurality of print data compete with the printer device, it is possible to minimize the decrease in work efficiency due to the waiting for the printing process of the user sharing the printer device, and to wait for the printing process that takes a long time. It is possible to minimize a decrease in work efficiency due to a print processing wait caused by print data in a state.

【0152】また、本発明は、異なるプロトコルを持つ
複数のインタフェースに対して、複数のホストから送ら
れてくる印刷データの競合により待ち状態となっている
印刷データによる印刷処理待ちによる作業効率の低下
を、ホスト側のプロトコルを変更することなく最適な優
先順位で印刷処理順位を制御して、最小限にすることが
できる。
Further, according to the present invention, the work efficiency is reduced by waiting for print processing due to print data being in a waiting state due to contention of print data sent from a plurality of hosts with respect to a plurality of interfaces having different protocols. Can be minimized by controlling the print processing order with the optimum priority without changing the protocol on the host side.

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

【図1】 本発明の基本構成を説明するブロック図であ
る。
FIG. 1 is a block diagram illustrating a basic configuration of the present invention.

【図2】 本発明のメモリ内のデータ構造を説明する図
である。
FIG. 2 is a diagram illustrating a data structure in a memory according to the present invention.

【図3】 本発明の実施例1の印刷処理の制御の流れを
説明するフローチャートである。
FIG. 3 is a flowchart illustrating a flow of control of print processing according to the first embodiment of the present invention.

【図4】 本発明の割り込み印刷処理の制御を説明する
のフローチャートである。
FIG. 4 is a flowchart illustrating control of interrupt printing processing according to the present invention.

【図5】 本発明の実施例2の印刷処理の制御の流れを
説明するフローチャートである。
FIG. 5 is a flowchart illustrating a flow of control of print processing according to a second embodiment of the present invention.

【図6】 本発明の実施例3のプリンタ装置の構成を説
明するブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a printer device according to a third embodiment of the present invention.

【図7】 本発明の実施例3の印刷データ入力部におけ
る印刷ジョブ要求時のフローチャートである。
FIG. 7 is a flowchart when a print job is requested in the print data input unit according to the third embodiment of the present invention.

【図8】 本発明の実施例3の印刷処理制御手段の制御
を説明するフローチャートである。
FIG. 8 is a flowchart illustrating control of a print processing control unit according to a third embodiment of the present invention.

【図9】 本発明の実施例3の待ち行列管理手段の処理
のフローチャートである。
FIG. 9 is a flowchart of a process performed by a queue management unit according to the third embodiment of the present invention.

【図10】 本発明の実施例3の優先順位変更手段の処
理のフローチャートである。
FIG. 10 is a flowchart of a process of a priority changing unit according to the third embodiment of the present invention.

【図11】 本発明の実施例3の待ち行列のモデル図で
ある。
FIG. 11 is a model diagram of a queue according to a third embodiment of the present invention.

【図12】 本発明の実施例3のジョブ要求メッセージ
の構成を示すモデル図である。
FIG. 12 is a model diagram showing a configuration of a job request message according to a third embodiment of the present invention.

【図13】 本発明の実施例3のタイマメッセージの構
成を示すモデル図である。
FIG. 13 is a model diagram illustrating a configuration of a timer message according to a third embodiment of the present invention.

【図14】 本発明の実施例3の印字処理可能メッセー
ジの構成を示すモデル図である。
FIG. 14 is a model diagram showing a configuration of a print-processable message according to the third embodiment of the present invention.

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

1…プリンタ装置、2…制御手段、3…メモリ、4…タ
イマ、5…データ量測定手段、6…印字手段、7…I/
Fポート、8…システムバス、9…ネットワーク、1
0,11…ホスト装置、20…プリンタ装置、21…印
字手段、22…印刷処理制御手段、23…待ち行列(メ
モリ)、24…待ち行列管理手段、25…タイマ、26
…カウンタ、27…優先順位変更手段、28…印刷デー
タ入力部、29…システムバス、41〜4n…インタフ
ェース・ポート、51〜5n…印刷ジョブ管理手段、6
1〜6n…優先順位設定手段、71〜7n…ホスト装
置。
DESCRIPTION OF SYMBOLS 1 ... Printer apparatus, 2 ... Control means, 3 ... Memory, 4 ... Timer, 5 ... Data amount measuring means, 6 ... Printing means, 7 ... I /
F port, 8: system bus, 9: network, 1
0, 11: Host device, 20: Printer device, 21: Printing means, 22: Print processing control means, 23: Queue (memory), 24: Queue management means, 25: Timer, 26
... Counter, 27 ... Priority change means, 28 ... Print data input unit, 29 ... System bus, 41-4n ... Interface ports, 51-5n ... Print job management means, 6
1 to 6n: priority setting means; 71 to 7n: host device.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 (a)複数のホスト装置から送信された
印刷データを受信する複数のインタフェースと、 (b)前記印刷データを印刷ジョブ単位に管理する複数
の印刷ジョブ管理手段と、 (c)前記複数の印刷ジョブ管理手段により管理される
印刷ジョブ毎に印刷処理の優先順位を設定する印刷順位
設定手段と、 (d)前記複数の印刷ジョブの属性を前記優先順位とと
もに記憶する待ち行列管理手段と、 (e)前記待ち行列内に格納されている印刷ジョブに対
して、待ち時間の長さに応じて、或いは他の印刷ジョブ
に割り込まれた回数に応じて優先順位を段階的に上げる
優先順位変更手段と、 (f)前記設定された、或いはその後変更された優先順
位を用いて前記複数の印刷ジョブのうち優先順位の高い
ものから印刷処理を実行する印刷処理制御手段とを備え
たことを特徴とするプリンタ装置。
1. (a) a plurality of interfaces for receiving print data transmitted from a plurality of host devices; (b) a plurality of print job management means for managing the print data in print job units; Print order setting means for setting the priority of print processing for each print job managed by the plurality of print job management means; and (d) queue management means for storing the attributes of the plurality of print jobs together with the priorities. And (e) for print jobs stored in the queue.
And depending on the length of the waiting time or other print jobs
Gradually increase priority according to the number of times interrupted
Priority order changing means; and (f) print processing control means for executing print processing from the plurality of print jobs with a higher priority order using the set or changed priority order. Printer device characterized by the above-mentioned.
【請求項2】 前記印刷処理制御手段は、他の印刷デー
タの印字処理実行時間が所定値以上になった場合に割り
込み処理を繰り返し行い、この繰り返し回数が所定回数
以上になった時に繰り返しを中止することを特徴とする
請求項1記載のプリンタ装置。
2. The print processing control means according to claim 1, further comprising :
If the print processing execution time of the
Process is repeated and the number of repetitions is
It is characterized by stopping repetition when it becomes above
The printer device according to claim 1.
【請求項3】 前記待ち行列管理手段は前記優先順位設
定手段により設定された優先順位を、時間計測を行なう
タイマと、優先順位設定手段、およびタイマ手段により
設定された優先順位の有効期間を設定する優先順位有効
期間設定手段により設定される有効期間内だけ保持する
機能を有していることを特徴とする請求項1記載のプリ
ンタ装置。
3. The queue management means according to claim 2, wherein
Measures the priority set by the setting means
Timer, priority setting means, and timer means
Priority validity that sets the validity period of the set priority
Retain only within the validity period set by the period setting means
The pre-printer according to claim 1, wherein the pre-printer has a function.
Device.
【請求項4】 前記待ち行列管理手段は、印刷ジョブの
受付時間、印刷ジョブ属性、及び優先順位を記憶し、待
ち行列管理手段に記憶される優先順位をタイマから得ら
れる計時情報によって、受付時間から所定時間経過後に
変更する優先順位変更手段を備えるものであることを特
徴とする請求項1記載のプリンタ装置。
4. The queue management means according to claim 1, wherein
Store the reception time, print job attributes, and priority
The priority stored in the queue management means is obtained from the timer.
After a predetermined time has passed since the reception time,
Note that it is equipped with priority changing means for changing
2. The printer device according to claim 1, wherein:
【請求項5】 前記待ち行列管理手段は、印刷ジョブの
受付時間、印刷ジョブ属性、及び優先順位を記憶し、待
ち行列管理手段に記憶される優先順位は印刷ジョブを受
けた時点から当該印刷ジョブが他の印刷ジョブに割り込
まれた回数をカウントするカウンタ手段と、カウンタ手
段によりカウントされた回数が所定の回数以上になった
場合に記憶されている優先順位を変更する優先順位変更
手段を備えるのものであることを特徴とする請求項1記
載のプリンタ装置。
5. The print server according to claim 1, wherein the queue management unit is configured to
Store the reception time, print job attributes, and priority
The priority stored in the queue management means is
Print job interrupts another print job
Counter means for counting the number
The number of times counted by the step exceeds the specified number
Priority change to change the priority stored in case
2. A method according to claim 1, wherein said means is provided with means.
Printer device.
JP5288159A 1993-11-17 1993-11-17 Printer device Expired - Fee Related JP3022104B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5288159A JP3022104B2 (en) 1993-11-17 1993-11-17 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5288159A JP3022104B2 (en) 1993-11-17 1993-11-17 Printer device

Publications (2)

Publication Number Publication Date
JPH07141133A JPH07141133A (en) 1995-06-02
JP3022104B2 true JP3022104B2 (en) 2000-03-15

Family

ID=17726570

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5288159A Expired - Fee Related JP3022104B2 (en) 1993-11-17 1993-11-17 Printer device

Country Status (1)

Country Link
JP (1) JP3022104B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4389820B2 (en) 2005-03-22 2009-12-24 ブラザー工業株式会社 Image forming apparatus, management information processing terminal, status information management program, and status information management system
JP4736964B2 (en) * 2006-06-05 2011-07-27 富士ゼロックス株式会社 Image forming apparatus
CN111221480B (en) * 2020-01-10 2023-06-27 珠海趣印科技有限公司 A printing data processing method and system

Also Published As

Publication number Publication date
JPH07141133A (en) 1995-06-02

Similar Documents

Publication Publication Date Title
US5862404A (en) Network device discovery and status information distribution using independent information distribution processes
US7190477B2 (en) System and method for managing and processing a print job using print job tickets
USRE42170E1 (en) Control of information processing using one or more peripheral apparatus
JP3405159B2 (en) Printing equipment
US20060007480A1 (en) Output end notifying method, output control apparatus, control program, and storing medium
US20020171864A1 (en) Methods and apparatus for printing around a job in a printer queue
JPH10289074A (en) Job processing management method in multi-function print system
US7359075B2 (en) Connection management system for creating and releasing connections to a print server
JP2005108243A (en) Print job distribution system and distribution method
JP2001203842A (en) Method and device for optimizing resource transition from low priority job to high priority job
JP2001222186A (en) Method and device for performing job streaming to one set of shared resources
JP3963057B2 (en) Printer system
JP4109821B2 (en) Information processing apparatus and job processing result confirmation method
JP3022104B2 (en) Printer device
KR20010050113A (en) Print control apparatus and storage medium
JP2001219628A (en) Method and device for administering job contention with respect to system resources in electrophotographic copying system
JPH0981494A (en) Print server system
JPH09231023A (en) Image processing system
JPH08255059A (en) Print server
JP3223704B2 (en) Print system and document processing device
JPH10116165A (en) Network print system
JP2000003259A (en) LAN system and digital copier management server
KR100600794B1 (en) Network node for restricting packet receiving activity and method thereof
JP3768586B2 (en) Output control apparatus and method
JPH06332642A (en) Distributed printing system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080114

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090114

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees