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

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

Info

Publication number
JP4909004B2
JP4909004B2 JP2006272405A JP2006272405A JP4909004B2 JP 4909004 B2 JP4909004 B2 JP 4909004B2 JP 2006272405 A JP2006272405 A JP 2006272405A JP 2006272405 A JP2006272405 A JP 2006272405A JP 4909004 B2 JP4909004 B2 JP 4909004B2
Authority
JP
Japan
Prior art keywords
printing
unit
error
print data
print
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
JP2006272405A
Other languages
Japanese (ja)
Other versions
JP2008087385A (en
JP2008087385A5 (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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2006272405A priority Critical patent/JP4909004B2/en
Publication of JP2008087385A publication Critical patent/JP2008087385A/en
Publication of JP2008087385A5 publication Critical patent/JP2008087385A5/ja
Application granted granted Critical
Publication of JP4909004B2 publication Critical patent/JP4909004B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、入力された印刷ジョブの印刷データを印刷する印刷部と、印刷処理すべき印刷ジョブを蓄積する不揮発性記憶部を有する印刷装置の制御方法、印刷装置の制御プログラム、および印刷装置に関するものである。   The present invention relates to a printing apparatus control method, a printing apparatus control program, and a printing apparatus having a printing section that prints print data of an input print job and a non-volatile storage section that stores a print job to be printed. Is.

近年のコンピュータ技術の進歩によるハードディスクの大容量化と低価格化は目覚ましく、それに伴い民生用の一般機器にも安価な大容量記憶装置としてハードディスクが用いられる場合が多く見られるようになった。その一例がプリンタ等の印刷機器であり、印刷ジョブをハードディスクに蓄積して記憶することにより、さまざまな利点が得られるようになった。   Due to recent advances in computer technology, the increase in capacity and price of hard disks has been remarkable, and along with this, hard disks are often used as inexpensive mass storage devices in consumer general equipment. One example is a printer such as a printer, and various advantages can be obtained by storing print jobs in a hard disk.

ハードディスクを用いる利点の1つとしては、プリンタで印刷エラーが発生した状態でも次の印刷ジョブを送られてきた場合にそれを拒否することなく、そのデータを一旦大容量記憶装置に保存しておき、現在の印刷が完了した後でその印刷ジョブを再転送を行なう必要なしで実行することができることが挙げられる(たとえば下記の特許文献1、特許文献2)。   One advantage of using a hard disk is that if the next print job is sent even when a print error has occurred in the printer, the data is temporarily stored in the mass storage device without refusing it. In other words, after the current printing is completed, the print job can be executed without having to re-transfer (for example, Patent Document 1 and Patent Document 2 below).

ただし、単に印刷ジョブをハードディスクにスプールしただけの状態ではエラーが解消されるまで印刷処理が再開されないため、このエラーが発生した状態でも処理可能なジョブを受信した場合に印刷処理を行なうような従来技術も考案されている。たとえば、特定の用紙切れエラーにより印刷処理が停止した場合に、他の不足していない用紙での印刷要求が来た場合にその処理をエラーとなっているジョブより先に実施するものがある(たとえば下記の特許文献3)。また、単に印刷エラーが発生したジョブをHDDに格納して、エラーが解消されるまでは他のジョブを優先的に処理するようにした構成も知られている(たとえば下記の特許文献4)。
特開平09−169141号公報 特開平10−271300号公報 特開2000−062292号公報 特開2004−001320号公報
However, in the state where the print job is simply spooled to the hard disk, the print processing is not resumed until the error is resolved. Therefore, the print processing is performed when a job that can be processed even when this error occurs is received. Technology has also been devised. For example, when a print process is stopped due to a specific paper out error, when a print request is made on another non-insufficient paper, the process is performed before the job in error ( For example, the following patent document 3). A configuration is also known in which a job in which a printing error has occurred is simply stored in the HDD and other jobs are preferentially processed until the error is resolved (for example, Patent Document 4 below).
JP 09-169141 A JP-A-10-271300 JP 2000-066222 A JP 2004-001320 A

上述の従来技術はプリンタで発生しているエラーにより、印刷処理の実行の有無に影響を受けないジョブを優先的に処理することにより、エラー発生時の印刷処理の停滞を回避しようとするものである。そのようなエラー例としては複数の給紙口のあるプリンタでの特定サイズ(種類)の用紙切れの場合などがある。   The above-described conventional technique is to preferentially process a job that is not affected by whether or not the print process is executed due to an error occurring in the printer, thereby avoiding a stagnation of the print process when an error occurs. is there. As an example of such an error, there is a case where a specific size (type) of a paper having a plurality of paper feed ports is out.

しかし、一般的には使用頻度の高い用紙が用紙切れになる可能性が高いのは当然で、使用頻度が高いわけであるからそのエラーにより多くのジョブは処理の継続が不可能である場合が多い。またインクやトナー切れなどのエラーの場合もほとんどのジョブは印刷処理が不可能となるが従来技術では対応できないため、結局はユーザによる用紙の補充やインクの補充などの作業によりエラー状態を解消するのを待つ場合がほとんどである。   However, in general, it is natural that frequently used paper is likely to run out of paper, and because it is used frequently, many jobs may not be able to continue processing due to the error. Many. Also, in the case of an error such as ink or out of toner, most jobs cannot be printed, but the conventional technology cannot handle it. Eventually, the error state is resolved by the user refilling paper or refilling ink. Most of the time is waiting.

また、このようなエラー状態で複数のジョブが受信されると、それらは通常ハードディスクに次々と溜まっていくが、これらのユーザの誰かがエラーを解消しない限りこの状態は改善されない。ところが用紙切れまたはインク切れエラーを発生させたユーザがその状態に気付かず、その解消作業を行わないと後からジョブを送信したユーザが解消作業を行わなくてはならなくなる。   Further, when a plurality of jobs are received in such an error state, they are usually accumulated one after another on the hard disk, but this state is not improved unless some of these users solve the error. However, the user who has generated an out-of-paper or out-of-ink error is not aware of the state, and the user who sent the job later must perform the resolution work without performing the resolution work.

ここでユーザの誰かが解消作業を行なった場合、その直後に印刷されるのはエラーを発生させたジョブである。つまり、誰が解消作業を行っても問題を発生させたジョブが再優先で印刷されてしまうことになる。したがって、エラーを発生させたユーザ以外の人は解消作業を行っても自分のジョブが印刷されるまで待っていなくてはならない。ところが多くの場合用紙切れやインク切れを起こすようなジョブはデータ量が大きな場合が多く、その印刷時間が長くかかる傾向にある。また、そのようなジョブはエラーを解消しても再度エラーを発生させる場合もあり、該ジョブを送信したユーザ以外に迷惑がかかる場合が多い。   Here, if any of the users performs the resolution work, what is printed immediately after that is the job that caused the error. In other words, the job causing the problem is printed with repriority no matter who performs the resolution work. Therefore, a person other than the user who has caused the error must wait until his / her job is printed even if the solving work is performed. However, in many cases, a job that runs out of paper or ink often has a large amount of data and tends to take a long time to print. In addition, such a job may cause an error again even if the error is resolved, and in many cases, it is troublesome for a user other than the user who transmitted the job.

本発明の課題は、上記の問題に鑑み、印刷ジョブの印刷処理中にユーザの回復作業が必要なエラーが発生した後、回復作業によりエラーが解消された場合、ユーザの指定操作に応じて柔軟に印刷ジョブの印刷処理順序を制御できるようにすることにある。   In view of the above problems, the problem of the present invention is that, when an error that requires a user recovery operation occurs during the print processing of a print job, and the error is resolved by the recovery operation, it is flexible according to the user's designated operation. The purpose of this is to make it possible to control the print processing order of print jobs.

上記課題を解決するため、本発明の印刷装置は、入力された印刷データの印刷を実行する印刷部と、前記印刷部による印刷の実行が指示された印刷データを記憶する記憶部とを有する印刷装置であって、前記印刷部でエラーが発生した後、前記エラーが解消された場合に、当該エラーの解消により前記印刷部による印刷が可能になった前記記憶部に記憶されている印刷データに対するユーザからの選択操作を受け付ける受付手段と、前記受付手段でユーザからの選択操作を受け付けた場合に、当該選択操作に応じた印刷データの前記印刷部による印刷の実行を、他の印刷データの印刷よりも優先するよう制御する制御手段と、前記印刷部におけるエラーが発生してから一定時間が経過したか判定する第1の判定手段と、前記第1の判定手段において前記一定時間が経過したと判定されるまで前記受付手段におけるユーザからの選択操作を制限する制限手段とを有し、前記制御手段は、前記エラーが解消された場合に、前記第1の判定手段により前記一定時間が経過したと判定されていない場合、前記記憶部に記憶されている印刷データを、予め決められた優先順位に従って印刷するよう制御する。
In order to solve the above problems, a printing apparatus according to the present invention includes a printing unit that prints input print data, and a storage unit that stores print data instructed to be printed by the printing unit. When the error is resolved after an error has occurred in the printing unit, the print data stored in the storage unit can be printed by the printing unit due to the resolution of the error. A receiving unit that receives a selection operation from a user, and when the selection unit receives a selection operation from the user, the printing unit performs printing of print data according to the selection operation by printing other print data A control unit that controls to give priority over the first determination unit, a first determination unit that determines whether a certain period of time has elapsed since the occurrence of an error in the printing unit, and the first determination unit There was closed and limiting means for limiting the selection operation from a user in the reception unit until it is determined that the predetermined time has elapsed, the control unit, when the error is resolved, the first decision If it is not determined by the means that the predetermined time has elapsed, the print data stored in the storage unit is controlled to be printed in accordance with a predetermined priority order .

以上の構成によれば、印刷ジョブの印刷処理中にユーザの回復作業が必要なエラーが発生した後、回復作業によりエラーが解消された場合に、ユーザの指定操作に応じて柔軟に印刷ジョブの印刷処理順序を制御できる。たとえば、用紙切れやインク切れ等の印刷エラーを発生させてプリンタを動作不能の状態におきながら印刷エラーの回復をしようとしないユーザがいても、回復作業を怠ったユーザより回復作業を行ったユーザの印刷ジョブを優先的に印刷処理することが可能になる。   According to the above configuration, after an error that requires a user recovery operation occurs during the print job printing process, if the error is resolved by the recovery operation, the print job can be flexibly changed according to the user's designated operation. The print processing order can be controlled. For example, even if there is a user who does not attempt to recover a printing error while causing the printer to become inoperable by causing a printing error such as running out of paper or ink, a user who has performed recovery work more than a user who has failed to recover This print job can be preferentially printed.

以下、発明を実施するための最良の形態の一例として、ホスト装置からの指令に応じて印刷処理を行なうとともに、印刷処理すべき印刷ジョブを蓄積する不揮発性記憶部を有するプリンタ機器に関する実施例を例示する。   Hereinafter, as an example of the best mode for carrying out the invention, an embodiment relating to a printer device having a non-volatile storage unit that performs print processing in response to a command from a host device and stores a print job to be printed. Illustrate.

以下に図面に基づいて本発明の実施例を具体的に説明する。   Embodiments of the present invention will be specifically described below with reference to the drawings.

図1は本発明に係わるプリンタの基本的構成を示している。図1において符号1は印刷指示などの機器の各種の機能の実行指示を行なうための操作部である。この操作部1は複数個のキー、ボタン、スイッチなどから構成される。   FIG. 1 shows a basic configuration of a printer according to the present invention. In FIG. 1, reference numeral 1 denotes an operation unit for instructing execution of various functions of the device such as a print instruction. The operation unit 1 includes a plurality of keys, buttons, switches, and the like.

符号2は、機器の状態や各種の操作結果をユーザーに通知するための表示部である。この表示部2は液晶パネル、LEDなどで構成され、操作部1とともにユーザーインターフェース手段を構成する。   Reference numeral 2 denotes a display unit for notifying the user of the state of the device and various operation results. The display unit 2 is composed of a liquid crystal panel, an LED, and the like, and constitutes user interface means together with the operation unit 1.

符号3は外部の機器との通信を行なう通信部である。この通信部3はパラレルポート(IEEE1284など)、ネットワークインターフェース(CSMA/CDなど)、USB、IEEE1394など各種のインタフェースの一つまたは複数から構成される。通信部3は印刷データを機器に入力する場合や、操作部1を使用しないで印刷などの各種操作を行なう場合に使用される。なお、通信部3がUSB、IEEE1394などから構成される場合には、通信部3を後述のHDD7の接続にも用いることができる。   Reference numeral 3 denotes a communication unit that performs communication with an external device. The communication unit 3 includes one or a plurality of various interfaces such as a parallel port (IEEE1284, etc.), a network interface (CSMA / CD, etc.), USB, IEEE1394, and the like. The communication unit 3 is used when inputting print data to the device or when performing various operations such as printing without using the operation unit 1. Note that when the communication unit 3 is configured by USB, IEEE1394, or the like, the communication unit 3 can also be used to connect an HDD 7 described later.

符号4は機器の各機能の実行を行なう制御部で、マイクロプロセッサ、システムバス、入出力チップセットなどの部材から構成される。制御部4は操作部1や通信部3からの各種の入力動作に対応して各種の出力動作の制御を行なうとともに、後述の印刷部8の印刷出力処理を制御する。   Reference numeral 4 denotes a control unit that executes each function of the device, and includes components such as a microprocessor, a system bus, and an input / output chip set. The control unit 4 controls various output operations in response to various input operations from the operation unit 1 and the communication unit 3 and controls print output processing of the printing unit 8 described later.

符号5は記憶装置としてのROMである。ROM5はリードオンリーメモリの略語であり不揮発性の記憶装置である。制御部4が実行する後述の制御手順は、たとえばこのROM5に制御プログラムとして記憶されている。   Reference numeral 5 denotes a ROM as a storage device. ROM 5 is an abbreviation for read-only memory and is a nonvolatile storage device. A control procedure to be described later executed by the control unit 4 is stored in the ROM 5 as a control program, for example.

符号6は記憶装置の一種であるRAMである。RAMはランダムアクセスメモリの略語であり、揮発性の記憶装置である。特に、RAM6内には印刷データなどの大量のデータを扱う場合に使用されるバッファ61、制御部4が各種制御を行なう際に必要となる変数などを一時的に記憶するワークエリア62などが画成される。   Reference numeral 6 denotes a RAM which is a kind of storage device. RAM is an abbreviation for random access memory, and is a volatile storage device. In particular, the RAM 6 includes a buffer 61 that is used when handling a large amount of data such as print data, a work area 62 that temporarily stores variables required when the control unit 4 performs various controls, and the like. Made.

符号7は記憶装置の一種であるHDDである。HDDとはハードディスクドライブの略語で、不揮発性の記憶装置であるハードディスクとそれを駆動する機構から構成される。HDD7内には通信部3を介して入力された印刷データを蓄積して記憶する印刷データ記憶部71や、印刷データ記憶部71に記憶されている内容の管理情報を記憶するデータ管理記憶部72などが割り付けられる。   Reference numeral 7 denotes an HDD which is a kind of storage device. HDD is an abbreviation for hard disk drive, and is composed of a hard disk, which is a nonvolatile storage device, and a mechanism for driving the hard disk. In the HDD 7, a print data storage unit 71 that stores and stores print data input via the communication unit 3, and a data management storage unit 72 that stores management information of contents stored in the print data storage unit 71. Etc. are assigned.

符号8は印刷を実行する印刷部である。この印刷部8は紙送り機構や描画機構などから構成され制御部4により処理されたデータの印刷を実行する。印刷部8の各部を構成する機構には各種の検知装置が備わっており、紙なし、紙づまり、インク切れやカバーオープン等のさまざまな動作エラーを検出することができる。印刷部8の印刷方式は任意であるが、たとえばインクジェット方式や電子写真方式などのプリンタエンジンを用いて印刷部8を構成することができる。   Reference numeral 8 denotes a printing unit that executes printing. The printing unit 8 includes a paper feeding mechanism, a drawing mechanism, and the like, and executes printing of data processed by the control unit 4. The mechanisms constituting each part of the printing unit 8 are provided with various detection devices, and can detect various operation errors such as paper out, paper jam, out of ink, and cover open. Although the printing method of the printing unit 8 is arbitrary, the printing unit 8 can be configured using a printer engine such as an inkjet method or an electrophotographic method.

図2は、図1のプリンタ装置において、本発明で解決すべきエラー発生までの流れと、その対策としての処理の流れの一例を示している。   FIG. 2 shows an example of the flow up to the occurrence of an error to be solved by the present invention and the flow of processing as a countermeasure in the printer apparatus of FIG.

通常、この種のプリンタは、電源投入後、通信部3(たとえばネットワークなど)を介して接続された単数あるいは複数のホストコンピュータからの印刷指示待ちの状態で待機する(ステップS101)。この状態において、ユーザAからの印刷指示が発行されたとする。ユーザAからの指示は複数ページで構成される比較的量の多い印刷ジョブ”A1.DOC”を印刷することである。   Normally, this type of printer waits for a print instruction from one or a plurality of host computers connected via the communication unit 3 (for example, a network) after power-on (step S101). In this state, it is assumed that a print instruction from user A is issued. The instruction from the user A is to print a relatively large print job “A1.DOC” composed of a plurality of pages.

プリンタ装置はその指示にしたがい、印刷ジョブ”A1.DOC”の印刷処理を開始する(ステップS102)。この時の印刷ジョブはHDD7には記憶されず、RAM6内のバッファ61内で処理されていく。   According to the instruction, the printer apparatus starts the printing process of the print job “A1.DOC” (step S102). The print job at this time is not stored in the HDD 7 but is processed in the buffer 61 in the RAM 6.

ここで、この印刷処理中に印刷用紙がなくなってしまったとする(ステップS103)。そうなると印刷が続行できないのでプリンタ装置は用紙切れのエラー表示を行った後、印刷ジョブの残りのデータを受信してHDD7内に記憶しておく(ステップS104)。その後プリンタ装置は用紙が補充されるのを待ち続けるが、ユーザAが用紙切れエラーに気付かないために、補充が行われないまま数十分が経過したとする(ステップS105)。   Here, it is assumed that the printing paper runs out during the printing process (step S103). Since printing cannot be continued when this happens, the printer device displays an out-of-paper error, and then receives the remaining data of the print job and stores it in the HDD 7 (step S104). Thereafter, the printer device continues to wait for the paper to be replenished. However, since user A does not notice a paper out error, it is assumed that several tens of minutes have elapsed without being replenished (step S105).

さらに、この状態において、別のユーザBからの印刷指示が発行されたとする。このユーザBからの指示は比較的量の少ない印刷ジョブ”B2.TXT”を印刷することである(ステップS106)。プリンタ装置はその指示を受信するが、印刷が開始できないので受信した印刷ジョブ”B2.TXT”は全てHDD7内に記憶し、印刷予約状態に設定しておく(ステップS107)。   Further, in this state, it is assumed that a print instruction from another user B is issued. The instruction from the user B is to print the print job “B2.TXT” with a relatively small amount (step S106). The printer apparatus receives the instruction, but since printing cannot be started, all the received print jobs “B2.TXT” are stored in the HDD 7 and set in a print reservation state (step S107).

さらに、この状態において、別のユーザCからの印刷指示が発行されたとする。ユーザCからの指示は印刷ジョブ”C3.TIF”を印刷することである(ステップS108)。   Further, in this state, it is assumed that a print instruction from another user C is issued. The instruction from the user C is to print the print job “C3.TIF” (step S108).

プリンタ装置はその指示を受信するが、印刷が開始できないので受信した印刷ジョブ”C3.TIF”は全てHDD7内に記憶し、印刷予約状態に設定しておく(ステップS109)。   The printer apparatus receives the instruction, but since printing cannot be started, all the received print jobs “C3.TIF” are stored in the HDD 7 and set in a print reservation state (step S109).

この時点でユーザCが用紙切れエラーが発生していることに気付き、ユーザCが用紙を補充したとする(ステップS110)。   At this point, it is assumed that the user C notices that a paper out error has occurred, and that the user C has replenished paper (step S110).

これにより、従来技術の場合、プリンタ装置は印刷予約状態となっている最も古いジョブである”A1.DOC”の印刷処理を開始するが、本発明ではここでユーザにより次に印刷するジョブを操作パネルから選択可能とする。   As a result, in the case of the prior art, the printer apparatus starts the printing process of “A1.DOC”, which is the oldest job in the print reservation state. In the present invention, the user operates the job to be printed next. Selectable from the panel.

たとえばここでユーザCが自分の送信した印刷ジョブである”C3.TIF”を選択したとする(ステップS111)。プリンタ装置はステップS111で指定された通りに”C3.TIF”の印刷処理を開始して全て完了させる(ステップS112)。   For example, it is assumed here that the user C selects “C3.TIF”, which is a print job transmitted by the user C (step S111). The printer apparatus starts the printing process of “C3. TIF” as specified in step S111 and completes it (step S112).

次に、プリンタ装置は印刷エラーを発生させたジョブである”A1.DOC”の印刷処理をHDD7に記憶してあるものに対して開始して全て完了させる(ステップS113)。次にプリンタ装置は次に印刷予約状態となっているジョブである”B2.TXT”の印刷処理を開始して全て完了させる(ステップS114)。全ての印刷予約状態のジョブを処理したプリンタ装置は再びホストコンピュータからの印刷指示待ちの状態で待機する(ステップS115)。   Next, the printer apparatus starts and completes the printing process of “A1.DOC”, which is a job in which a printing error has occurred, with respect to what is stored in the HDD 7 (step S113). Next, the printer apparatus starts the printing process of “B2.TXT”, which is the next job in the print reservation state, and completes it (step S114). The printer apparatus that has processed all jobs in the print reservation state again waits for a print instruction from the host computer (step S115).

図3は図1のHDD7の印刷データ記憶部71の状態の一例を示している。印刷データ記憶部71には通信部3を介して一回の通信処理で受信した印刷ジョブのデータを一単位としてファイルの形式で保存する。これら各ファイルには特有の名前が付けられ、その名前で管理される。   FIG. 3 shows an example of the state of the print data storage unit 71 of the HDD 7 of FIG. The print data storage unit 71 stores the print job data received in one communication process via the communication unit 3 as a unit in a file format. Each of these files has a unique name and is managed by that name.

図3は、図2のステップS109の処理が終了した時点の状態の一例である。ここでは、符号21がユーザAからのジョブのデータファイル”A1.DOC”、22がユーザBからのジョブのデータファイル”B2.TXT”、23がユーザCからのジョブデータファイル”C3.TIF”である。このように印刷データ記憶部71には各印刷ジョブの印刷データの内容がファイル形式で記憶される。これらのファイル名情報それ自体は印刷データ記憶部71ではなく、データ管理記憶部72内に記憶されている(図4参照)。図3の各ファイルの内容は印刷ジョブとして受信した印刷データをそのまま記憶してもよいし、あるいは適当に加工した結果を記憶したものでもよい。   FIG. 3 is an example of a state at the time when the process of step S109 in FIG. 2 is completed. Here, reference numeral 21 is a job data file “A1.DOC” from user A, 22 is a job data file “B2.TXT” from user B, and 23 is a job data file “C3.TIF” from user C. It is. As described above, the print data storage unit 71 stores the contents of the print data of each print job in the file format. The file name information itself is stored not in the print data storage unit 71 but in the data management storage unit 72 (see FIG. 4). The contents of each file in FIG. 3 may store the print data received as a print job as it is, or may store the result of appropriate processing.

図4は図1のデータ管理記憶部72の内部構成の一例を示している。図4では図3と同様に図2のステップS109の処理が終了した時点での状態を表現している。   FIG. 4 shows an example of the internal configuration of the data management storage unit 72 of FIG. 4 represents the state at the time point when the process of step S109 in FIG. 2 is completed as in FIG.

図4において、データ管理記憶部72には、印刷データ記憶部71に記憶している印刷データファイルの記憶内容を示す管理情報を記憶している。管理情報は1ファイルにつき31〜35に示す5つの項目(フィールド)から構成され、その5つの項目をまとめてレコードと呼ぶ。ここで符号31は各ファイルの識別子であるファイル名を記憶している「ファイル名」項目で、図3の例では”A1.DOC”、”B2.TXT”、”C3.TIF”の3つのファイル名が記憶されている。   In FIG. 4, the data management storage unit 72 stores management information indicating the storage contents of the print data file stored in the print data storage unit 71. The management information is composed of five items (fields) shown in 31 to 35 per file, and the five items are collectively called a record. Here, reference numeral 31 denotes a “file name” item for storing a file name that is an identifier of each file. In the example of FIG. 3, three items “A1.DOC”, “B2.TXT”, and “C3.TIF” are stored. The file name is stored.

符号32は印刷データ記憶部71において各ファイルが記憶されている場所を示すアドレス情報を記憶している「開始アドレス」項目である。アドレス情報を現す数値の単位も一定の基準で決められている。符号33は各ファイルのデータサイズを記憶している「データサイズ」項目である。サイズを現す数値の単位は一定の基準で決められている。   Reference numeral 32 denotes a “start address” item that stores address information indicating a location where each file is stored in the print data storage unit 71. The unit of the numerical value representing the address information is also determined based on a certain standard. Reference numeral 33 denotes a “data size” item that stores the data size of each file. The unit of the numerical value representing the size is determined by a certain standard.

符号34は各ファイルの印刷処理の優先順位を記憶している「印刷順番」項目である。数値の小さいレコードほど先に印刷処理される。また印刷処理が不要であるデータや印刷処理が完了しているデータには”0”が記憶され、印刷処理の対象外であると認識される。図4の例ではレコード36、レコード37、レコード38の順番で印刷が実行されるように設定されている。   Reference numeral 34 denotes a “print order” item that stores the priority of print processing of each file. A record with a smaller numerical value is printed first. In addition, “0” is stored in data that does not require print processing or data that has undergone print processing, and is recognized as not being subject to print processing. In the example of FIG. 4, printing is set in the order of record 36, record 37, and record 38.

符号35は各データの印刷処理を行なう開始位置を記憶している「印刷中断位置」項目である。本発明により発生しうる印刷処理の部分的延期状態の場合に、どの部分からが印刷されていないかを記憶する。この数値はデータ内のアドレス、印刷カラム数、印刷ページ数、印刷部数などの各種情報またはその組み合わせで構成可能である。これらの値が”0”でないデータは全て部分的延期状態であるが、値が”0”であるデータは部分的延期状態にあるものとそうでないものがある。図4の例ではレコード36は部分的延期状態であるが、値は”0”である。図4に符号31〜33に示す3つの管理情報から特定の印刷データの記憶場所とその記憶容量が判別でき、また、34〜35に示す2つの管理情報から次に処理すべき印刷データの記憶場所が判別できる。これらの管理情報は一つのファイルにつき1レコードが割り当てられ、全てのファイルについて各レコードが記憶されている。   Reference numeral 35 denotes a “print interruption position” item that stores a start position for performing printing processing of each data. In the case of a partially postponed printing process that can occur according to the present invention, it is stored which part is not printed. This numerical value can be composed of various information such as an address in the data, the number of print columns, the number of print pages, the number of copies, or a combination thereof. All of these data whose values are not “0” are in a partially postponed state, while some data whose value is “0” are in a partially postponed state. In the example of FIG. 4, the record 36 is in a partially postponed state, but the value is “0”. The storage location and storage capacity of specific print data can be determined from the three management information indicated by reference numerals 31 to 33 in FIG. 4, and the next print data to be processed is determined from the two management information indicated by 34 to 35. The location can be determined. In the management information, one record is assigned to one file, and each record is stored for all files.

図4の場合、レコード36は、図3の例に示す21のファイル”A1.DOC”について記憶し、レコード37は図3の例に示す22のファイル”B2.TXT”について記憶し、レコード38は図3の例に示す23のファイル”C3.TIF”について記憶している。また全レコードの最後には最後であることを示す空白レコードが存在する。空白レコードの内容は39に示すように全ての項目の内容が0である。この空白レコードを検出することにより全てのデータファイルの数を検知することができる。   In the case of FIG. 4, the record 36 stores 21 files “A1.DOC” shown in the example of FIG. 3, the record 37 stores 22 files “B2.TXT” shown in the example of FIG. Stores 23 files “C3.TIF” shown in the example of FIG. In addition, there is a blank record indicating the end at the end of all records. As shown in 39, the content of the blank record is 0 for all items. By detecting this blank record, the number of all data files can be detected.

図5は図4と同様に本発明に係わる装置でのデータ管理記憶部72の内部構成の一例を示す図である。図5では図2のステップS111の処理でユーザCにより次に印刷するジョブとして”C3.TIF”を選択した直後のデータ管理記憶部72の構成を示しており、印刷順番項目34の設定値が変化して、項目41に示す状態になっている。   FIG. 5 is a diagram showing an example of the internal configuration of the data management storage unit 72 in the apparatus according to the present invention as in FIG. FIG. 5 shows the configuration of the data management storage unit 72 immediately after “C3.TIF” is selected as the job to be printed next by the user C in the process of step S111 of FIG. It has changed to the state shown in item 41.

ここではステップS111で選択されたレコード38の印刷順番項目41の値が”3”から”1”に変化して、全レコード中で処理の優先順位が最も高くなっている。その他のレコードの印刷順番項目41の値は、値がレコード38の元の値”3”より小さい値を有するレコードに関してそれぞれの値が全て1つずつ増えている。具体的にはレコード36の印刷順番項目41は値が”1”から”2”、レコード37の印刷順番項目41は値が”2”から”3”にそれぞれ変化している。これによりレコード38の印刷が最優先で実施される。またレコード36の印刷中断位置項目35は値が”0”で、図4の状態から変わっていないが、これはレコード36はステップS104に示すように、元々エラー発生以後のデータだけを保存しているため、全データとも今後の印刷処理の対象であるからである。   Here, the value of the print order item 41 of the record 38 selected in step S111 changes from “3” to “1”, and the processing priority is the highest among all the records. The values of the print order items 41 of the other records are all increased by one for each record having a value smaller than the original value “3” of the record 38. Specifically, the value of the print order item 41 of the record 36 is changed from “1” to “2”, and the value of the print order item 41 of the record 37 is changed from “2” to “3”. Thereby, the printing of the record 38 is performed with the highest priority. Further, the value of the print interruption position item 35 of the record 36 is “0”, which is not changed from the state of FIG. 4, but this is because the record 36 originally stores only the data after the error occurrence as shown in step S104. This is because all data is subject to future print processing.

これがレコード37やレコード38のようにHDD7に記憶された印刷データを印刷処理中に印刷エラーが発生した場合は、保存されているデータの全てが以後の印刷対象ではないために、多くの場合に印刷中断位置項目35は”0”以外の値になる。   If a print error occurs during print processing of print data stored in the HDD 7 as in record 37 or record 38, since all of the stored data is not subject to subsequent printing, it is often the case. The print interruption position item 35 is a value other than “0”.

図6は本発明に係わるプリンタ装置での電源投入後の制御手順を示すフローチャートである。図6の制御手順はROM5内の制御プログラム記憶部に記憶されており、ユーザがプリンタの電源スイッチをオンにした場合にこのフローチャートが開始する。   FIG. 6 is a flowchart showing a control procedure after the power is turned on in the printer apparatus according to the present invention. The control procedure of FIG. 6 is stored in the control program storage unit in the ROM 5, and this flowchart starts when the user turns on the power switch of the printer.

ステップS201では機器の各種の初期化を実施する。初期化処理は制御プログラムなどのソフトウェア的な処理や、機器内の各種の装置のハードウェア的な処理からなり、通信部3や印刷部7などの機構を使用可能になるように処理する。また同時に変数fの値を0に設定する。変数fはRAM6内のワークエリア62に存在しており、印刷中にエラーが発生したかどうかを示す変数として用いられる。値が0ということはエラーが発生していない状態であることを示す。   In step S201, various initializations of the device are performed. The initialization processing includes software processing such as a control program and hardware processing of various devices in the device, and performs processing so that a mechanism such as the communication unit 3 and the printing unit 7 can be used. At the same time, the value of the variable f is set to 0. The variable f exists in the work area 62 in the RAM 6 and is used as a variable indicating whether an error has occurred during printing. A value of 0 indicates that no error has occurred.

ステップS202ではイベントが発生するのを一定の時間だけ待つ。イベントとは機器の状態の変化を引き起こす事象であり、ユーザによる機器の操作、機器の動作による機器の状態の変化などのことを指す。具体的にはユーザによるものでは操作部1の操作を行った場合や、通信部3を介して機器へ指示を送った場合などが挙げられ、機器の状態の変化ではプリンタのインク切れを検知した場合であったり、紙が詰まってしまった場合などが挙げられる。本装置ではこれらのイベントに応じて各種の処理を実施する。   In step S202, it waits for a fixed time for an event to occur. An event is an event that causes a change in the state of the device, and refers to an operation of the device by the user, a change in the state of the device due to the operation of the device, or the like. Specifically, the case where the user operates the operation unit 1 or the case where an instruction is sent to the device via the communication unit 3 is detected. When the state of the device is changed, it is detected that the printer is out of ink. Cases, or when paper is jammed. In this apparatus, various processes are performed in response to these events.

ステップS203ではステップS202で何らかのイベントが発生したかどうかを調べ、イベントが発生したならばステップS204へ進み、そうでなければステップS221へ進む。   In step S203, it is checked whether an event has occurred in step S202. If an event has occurred, the process proceeds to step S204, and if not, the process proceeds to step S221.

ステップS204では通信部3が通信によりデータを受信したことで発生したイベントであるかを調べ、ここでデータ受信があればステップS206へ進み、データ受信がなければステップS205へ進む。   In step S204, it is checked whether the event has occurred due to the communication unit 3 receiving data by communication. If there is data reception, the process proceeds to step S206. If no data is received, the process proceeds to step S205.

ステップS205ではステップS203で発生したイベントに応じて各種の処理を実施する。ステップS204で判定されたように通信部3によるデータの受信イベント以外のイベントの処理はここで処理される。このようなイベントの一例としては内部データの印刷指示などの操作部1の操作、機器の設定処理指示などで、それぞれの指示に応じて処理を実行する。また他の例としてはプリンタのインク切れや紙詰まりなどの現象発生が挙げられ、これらの場合には印刷の中断や中止を行い、ユーザに対して表示部2で警告を発生するなどの処理を実施する。   In step S205, various processes are performed according to the event generated in step S203. As determined in step S204, processing of events other than the data reception event by the communication unit 3 is processed here. As an example of such an event, an operation of the operation unit 1 such as an internal data print instruction, an apparatus setting process instruction, or the like is executed according to each instruction. Another example is the occurrence of a phenomenon such as a printer running out of ink or a paper jam. In these cases, printing is interrupted or stopped, and processing such as generating a warning on the display unit 2 to the user is performed. carry out.

各イベントの処理を実施した後はステップS202へ戻り、次のイベントの発生を待つ。機器は電源をオフするまではステップS202〜ステップS236の処理を繰り返し続ける。ステップS206〜ステップS220では、ステップS204で判定されたように通信部3によるデータの受信イベントに対する処理を実施する。ステップS206では通信部3を介して送信されてきたデータを受信してバッファ61に保存する。ここでの処理はバッファの容量などによりある一定量だけのデータを受信して保存する。   After processing each event, the process returns to step S202 and waits for the next event to occur. The device continues to repeat the processing from step S202 to step S236 until the power is turned off. In step S206 to step S220, processing for a data reception event by the communication unit 3 is performed as determined in step S204. In step S206, the data transmitted via the communication unit 3 is received and stored in the buffer 61. In this process, a certain amount of data is received and stored depending on the capacity of the buffer.

ステップS207ではステップS206で受信したデータが全データの先頭にあたるものかを調べ、そうであればステップS208へ進み、そうでなければステップS213へ進む。一般的に通信されるデータにはコマンドが付加されており、そのコマンドによりデータの先頭部分であるかが判定できる。   In step S207, it is checked whether the data received in step S206 corresponds to the head of all data. If so, the process proceeds to step S208, and if not, the process proceeds to step S213. Generally, a command is added to data to be communicated, and it can be determined whether or not it is the head portion of the data by the command.

ステップS208〜ステップS212では、受信したデータが全データの先頭にあたるものである場合のみ処理が実行される。ステップS208では現在機器が印刷処理中であるかどうかを調べ、印刷処理中でないならばステップS209へ進み、印刷処理中であればステップS211へ進む。   In steps S208 to S212, the process is executed only when the received data is the head of all the data. In step S208, it is checked whether or not the device is currently printing. If not, the process proceeds to step S209. If the printing process is being performed, the process proceeds to step S211.

ステップS209では現在機器で印刷エラーが発生中であるかどうかを調べ、印刷エラーが発生中でないならばステップS210へ進み、発生中であればステップS211へ進む。印刷エラーの発生中は印刷処理が実施できないため、受信したデータをHDD7に記憶するように制御する。   In step S209, it is checked whether a printing error is currently occurring in the device. If a printing error is not occurring, the process proceeds to step S210, and if it is occurring, the process proceeds to step S211. Since the printing process cannot be performed while the printing error is occurring, the received data is controlled to be stored in the HDD 7.

ステップS210では変数sの値を0に設定する。変数sはRAM6内のワークエリア62に存在しており、これ以降は受信したデータを印刷データ記憶部71に記憶するかどうかを示す変数として用いられる。ここで変数sの値が0であるということは受信したデータを印刷データ記憶部71に記憶する必要がないことを示す。   In step S210, the value of variable s is set to zero. The variable s exists in the work area 62 in the RAM 6 and is used as a variable indicating whether or not the received data is stored in the print data storage unit 71 thereafter. Here, the value of the variable s being 0 indicates that it is not necessary to store the received data in the print data storage unit 71.

一方、ステップS211では変数sの値を1に設定する。この変数sの値が1であるということは、受信したデータを印刷データ記憶部71に記憶することを示す。ステップS212では新規にファイルを作成する。ファイルを新規に作成する場合にはデータ管理記憶部72にはレコードを作成せずに、ファイル名を受信データのコマンドから決定してワークエリア62に一時的に保存するとともに、印刷データ記憶部71の空き領域を求め、その先頭アドレスをワークエリア62に保存することを行なう。   On the other hand, in step S211, the value of the variable s is set to 1. That the value of the variable s is 1 indicates that the received data is stored in the print data storage unit 71. In step S212, a new file is created. When a new file is created, a record is not created in the data management storage unit 72, the file name is determined from the received data command, temporarily stored in the work area 62, and the print data storage unit 71. Is obtained, and the head address is stored in the work area 62.

ステップS213では変数sの値を調べ、値が0であればステップS217へ進み、値が0でないならばステップS214へ進む。変数sの値はデータの先頭部分を受信した場合にステップS210あるいはステップS211で設定され、データの先頭部分以外を受信した場合にはその部分がスキップされるために、その設定を保持した状態で通信を継続する。   In step S213, the value of the variable s is checked. If the value is 0, the process proceeds to step S217. If the value is not 0, the process proceeds to step S214. The value of the variable s is set in step S210 or step S211 when the head portion of the data is received, and when the portion other than the head portion of the data is received, that portion is skipped. Continue communication.

ステップS214ではステップS206でバッファ61に受信したデータを解析し、それを印刷データ記憶部71に記憶する。これは変数sの値が0でないことから、データ受信が開始された時に印刷中であったか、印刷エラー発生中であったと判断されるため、受信データを通常通りに印刷処理を実施しないで、ステップS206で取得した印刷データ記憶部71での空き領域に対しデータを追加しながら保存する。   In step S214, the data received in the buffer 61 in step S206 is analyzed and stored in the print data storage unit 71. Since the value of the variable s is not 0, it is determined that printing is in progress when data reception is started or that a printing error has occurred. Therefore, the received data is not subjected to printing processing as usual. Data is added to the empty area in the print data storage unit 71 acquired in S206 and saved.

ステップS215ではステップS206で受信したデータが全データの最終のものであるかを調べ、そうであればステップS216へ進む。受信したデータが全データの最終のものでなければステップS202に戻り、残りのデータを受信して保存処理を継続して実行する。   In step S215, it is checked whether the data received in step S206 is the last of all data, and if so, the process proceeds to step S216. If the received data is not the final of all data, the process returns to step S202, and the remaining data is received and the storage process is continued.

ステップS216ではステップS212で作成した一時ファイルに対するレコードをデータ管理記憶部72に追加登録する。データ管理記憶部72に新規レコードを追加してレコード内の各項目の内容を設定することにより、一時ファイルは通常ファイルとして確定する。ここで各項目に関し、ファイル名項目31にはステップS212でワークエリア62に保存したファイル名を保存し、開始アドレス項目32にはステップS212でワークエリア62に保存したアドレスを保存し、データサイズ項目33にはステップS214で追加保存したデータの総量を保存する。印刷順番項目34にはデータ管理記憶部72内の印刷処理待ちである全てのレコードの印刷順番項目34の内容を調べ、その最大値に1を加えた値を設定する。この結果、印刷待ちの優先順位が最下位のレコードとして登録される。印刷中断位置項目35には既定の初期値”0”を設定する。ここで登録した内容は後でステップS221〜ステップS236で参照され、実行される。   In step S216, a record for the temporary file created in step S212 is additionally registered in the data management storage unit 72. By adding a new record to the data management storage unit 72 and setting the contents of each item in the record, the temporary file is determined as a normal file. Here, for each item, the file name item 31 stores the file name stored in the work area 62 in step S212, the start address item 32 stores the address stored in the work area 62 in step S212, and the data size item. In 33, the total amount of data additionally stored in step S214 is stored. In the print order item 34, the contents of the print order item 34 of all records waiting for print processing in the data management storage unit 72 are checked, and a value obtained by adding 1 to the maximum value is set. As a result, the priority of waiting for printing is registered as the lowest record. A predetermined initial value “0” is set in the print interruption position item 35. The contents registered here are referred to and executed later in steps S221 to S236.

ステップS217ではバッファ61に保存されたデータを解析し、印刷部8を介して印刷処理を実行する。バッファ61にはステップS206で通信部3を介して受信された印刷データが保存されている。   In step S217, the data stored in the buffer 61 is analyzed, and the printing process is executed via the printing unit 8. The buffer 61 stores print data received via the communication unit 3 in step S206.

ステップS218では機器に印刷エラーが発生したかどうかを調べ、印刷エラーが発生したならばステップS219へ進み、そうでなければステップS202に戻り、残りのデータを受信してバッファ61への保存処理を継続して実行する。なお、本実施例において、印刷エラーとは、紙なし、紙づまり、インク切れやカバーオープン等の検知により、印刷処理の続行が不可能であるがユーザの作業により回復可能である状態のことを指す。   In step S218, it is checked whether a printing error has occurred in the device. If a printing error has occurred, the process proceeds to step S219. If not, the process returns to step S202, and the remaining data is received and stored in the buffer 61. Continue to run. In this embodiment, the printing error is a state where the printing process cannot be continued due to detection of paper out, paper jam, out of ink, cover open, etc., but can be recovered by the user's work. Point to.

ステップS219では印刷エラーが発生したことをユーザに通知する。具体的には表示部2上のLEDを点灯したり、発生したエラーの内容やそれに対する操作ガイドのメッセージ等を表示部2上の液晶パネルに文字表示したりする。ステップS220では印刷エラーが発生したことを示す変数fの値に1を設定する。また同時にエラーが発生した時刻を取得してワークエリア62に記憶する。その後はステップS202に戻り、エラー状態が回復されるのを待ち続ける。   In step S219, the user is notified that a printing error has occurred. Specifically, the LED on the display unit 2 is turned on, and the content of the error that has occurred and the message of the operation guide for the error are displayed on the liquid crystal panel on the display unit 2. In step S220, 1 is set to the value of the variable f indicating that a printing error has occurred. At the same time, the time when the error occurs is acquired and stored in the work area 62. Thereafter, the process returns to step S202, and continues to wait for the error state to be recovered.

ステップS221〜ステップS236ではステップS203で現在処理すべきイベントがないと判断されたことから、HDD7内に印刷処理すべきデータがあるならばその印刷処理を開始するように制御する。ステップS221では現在機器が印刷処理中であるかどうかを調べ、印刷処理中でないならばステップS222へ進み、印刷処理中であればステップS202へ戻る。この場合は印刷処理を開始できないので次の機会を待つ。ステップS222では、現在、機器で印刷エラーが発生中であるかどうかを調べ、印刷エラーが発生中でないならばステップS223へ進み、発生中であればステップS202へ戻る。この場合も印刷処理を開始できないので次の機会を待つ。   In steps S221 to S236, since it is determined in step S203 that there is no event to be processed at present, if there is data to be printed in the HDD 7, control is performed to start the printing process. In step S221, it is checked whether or not the device is currently printing. If not, the process proceeds to step S222. If printing is being performed, the process returns to step S202. In this case, since the printing process cannot be started, the next opportunity is waited. In step S222, it is checked whether or not a printing error is currently occurring in the device. If no printing error has occurred, the process proceeds to step S223, and if it has occurred, the process returns to step S202. Also in this case, since the printing process cannot be started, the next opportunity is waited.

ステップS223では、現在、印刷待ちのデータがあるかどうかを調べ、そのような処理があるならばステップS224へ進み、そうでなければステップS202へ戻る。印刷待ちのデータの有無は、データ管理記憶部72の全レコードを調べ、印刷順番項目34の値が”0”でないレコードが印刷待ちのデータであるので該当するレコードがあるかないかを調べることにより判定する。   In step S223, it is checked whether or not there is data waiting to be printed. If there is such processing, the process proceeds to step S224, and if not, the process returns to step S202. The presence or absence of data waiting for printing is determined by checking all records in the data management storage unit 72 and checking whether or not there is a corresponding record because a record whose print order item 34 is not “0” is data waiting for printing. judge.

ステップS224では変数fの値を調べ、値が0でなければステップS225へ進み、値が0ならばステップS231へ進む。変数fの値が0の場合は印刷エラーが発生していなかったことになるので、本発明の特徴である優先順位の変更を実施せずに、通常の順番のままにステップS231以降の印刷予約されたデータの印刷処理を実施する。   In step S224, the value of the variable f is checked. If the value is not 0, the process proceeds to step S225. If the value is 0, the process proceeds to step S231. If the value of the variable f is 0, it means that no printing error has occurred. Therefore, the printing reservations in step S231 and subsequent steps are performed in the normal order without changing the priority order, which is a feature of the present invention. The printed data is printed.

ステップS225では変数fの値を0に設定する。ステップS224で変数fの役目が完了したため、この変数fの値を通常状態値である0に戻す。   In step S225, the value of variable f is set to zero. Since the role of the variable f is completed in step S224, the value of the variable f is returned to 0, which is a normal state value.

ステップS226では印刷エラーが発生してから現在までの経過時間を調べ、ある一定時間を超えていたならばステップS227へ進み、そうでなければステップS231へ進む。現在はステップS222で判定された通り印刷エラーから回復している状態であるので、現在の時刻とステップS220でワークエリア62に記憶したエラー発生時刻の値を比べることにより経過時間を算出することができる。   In step S226, the elapsed time from the occurrence of the printing error to the present is checked. If a certain time has been exceeded, the process proceeds to step S227, and if not, the process proceeds to step S231. Since the current state is that the printing error has been recovered as determined in step S222, the elapsed time can be calculated by comparing the current time with the value of the error occurrence time stored in the work area 62 in step S220. it can.

ステップS226で経過時間と比較する「一定時間」は、本機能を作動させる閾値時間としてユーザにより操作部1などから設定できるようにしておく。この「一定時間」の設定値は機器内の不揮発性記憶装置、たとえばHDD7内に記憶されており、操作部1の入力パネルのキー入力によるメニュー操作や、通信部3を介しての設定変更手段などによりユーザによる変更ができるようにしておく。   The “certain time” to be compared with the elapsed time in step S226 can be set by the user from the operation unit 1 or the like as a threshold time for operating this function. The set value of “fixed time” is stored in a non-volatile storage device in the device, for example, the HDD 7, and a menu operation by key input on the input panel of the operation unit 1 or a setting change means via the communication unit 3. It can be changed by the user.

ステップS227では、現在印刷待ちのデータが複数個あるかどうかを調べ、複数個あるならばステップS228へ進み、そうでなければステップS231へ進む。ここでの調査方法はステップS223と同様に、データ管理記憶部72の全レコードを調べ、印刷順番項目34の値が”0”でないレコードが複数個あるかないかを調べることにより判定する。複数個ない場合は優先順位の変更は不要なため、通常の順番のままにステップS231以降の印刷予約されたデータの印刷処理を実施する。   In step S227, it is checked whether there are a plurality of data waiting to be printed. If there are a plurality of data, the process proceeds to step S228. Otherwise, the process proceeds to step S231. The investigation method here is determined by examining all records in the data management storage unit 72 as in step S223 and examining whether there are a plurality of records in which the value of the print order item 34 is not “0”. If there are no more than one, it is not necessary to change the priority order. Therefore, the print processing of the data reserved for printing in step S231 and subsequent steps is performed in the normal order.

ステップS228では最優先して処理する印刷ジョブをユーザにより選択する機会を与える。ステップS225以降の処理が行われるのは印刷エラーの発生により印刷処理ができなかった状態が解消されて印刷可能な状態になった場合であり、その時点で本発明の特徴であるユーザによる任意のジョブの選択操作が可能になる。選択操作の一例としては、現在印刷待ちであるジョブのリストを表示部2の液晶パネルに表示し、ユーザはそれを参照しながら操作部1の操作キーの押下により所望のジョブを選択後、決定するキーを押して決定する。   In step S228, the user is given an opportunity to select a print job to be processed with the highest priority. The processing after step S225 is performed when the state in which printing processing could not be performed due to the occurrence of a printing error is resolved and printing is possible. Job selection operation becomes possible. As an example of the selection operation, a list of jobs that are currently waiting for printing is displayed on the liquid crystal panel of the display unit 2, and the user selects a desired job by pressing an operation key of the operation unit 1 while referring to the list. Press the key to confirm.

なお、ステップS228で特定ジョブを選択しない、すなわち上記ジョブ選択操作をキャンセルすることも可能であり、その場合は中止するキーを押すと現在の優先順位のままで処理を継続する。   Note that it is possible to cancel the job selection operation without selecting a specific job in step S228. In this case, if the cancel key is pressed, the processing is continued with the current priority order.

あるいは、ユーザ設定に応じて、上記特定ジョブの選択操作(S226〜下記のS230まで)を実行しないようにする、すなわち、上記指定操作を行なうか否かをユーザに設定または選択させることもできる。このようなユーザ設定のために特別の変数を設けておいてもよいが、たとえばステップS226で経過時間と比較する「一定時間」値として無効な内容(たとえば負の数値など)が設定された場合に、特定ジョブの選択操作(S226〜下記のS230まで)を実行しないよう制御する構成も考えられる。   Alternatively, according to the user setting, the selection operation of the specific job (from S226 to S230 described below) can be prevented, that is, the user can set or select whether to perform the designation operation. A special variable may be provided for such user setting. For example, when invalid content (for example, a negative numerical value) is set as a “certain time” value to be compared with the elapsed time in step S226, for example. In addition, a configuration in which a specific job selection operation (from S226 to S230 described below) is not executed is also conceivable.

ステップS229ではステップS228でユーザが最優先ジョブを別のものに変更したかどうかを調べ、別のジョブに変更していたらステップS230へ進む。また、そうでなければステップS231へ進み、そのままの順番で印刷予約されたデータの印刷処理を再開する。   In step S229, it is checked in step S228 whether the user has changed the highest priority job to another job. If the job has been changed to another job, the process advances to step S230. Otherwise, the process proceeds to step S231, and the printing process of the data reserved for printing in the same order is restarted.

ステップS230ではステップS228での操作の結果をデータ管理記憶部72の優先順位項目34に反映する。具体的にはステップS228でユーザが選択したジョブに対応するレコードの印刷順番項目34の値を最小にし、その他のレコードの印刷順番項目34の値は、ユーザが選択したジョブに対応するレコードの印刷順番項目34の元の値より小さい値を有するレコードに関してそれぞれの値を1つずつ増やす処理を行なう。図4の例でレコード38が選択された場合は、その結果は図5の状態のようになる。   In step S230, the result of the operation in step S228 is reflected in the priority item 34 of the data management storage unit 72. Specifically, the value of the print order item 34 of the record corresponding to the job selected by the user in step S228 is minimized, and the value of the print order item 34 of the other record is the print of the record corresponding to the job selected by the user. For a record having a value smaller than the original value of the order item 34, a process of increasing each value by one is performed. When the record 38 is selected in the example of FIG. 4, the result is as shown in FIG.

ステップS231では全ての印刷待ちデータから最優先データを検出し、そのデータの一部を印刷可能な形態に変換してバッファ61に保存する。最優先データはデータ管理記憶部72の全レコードの印刷順番項目34の値が0以外の最小のレコードを検出することにより判明する。データの読み出し位置は初回の処理時にはデータ管理記憶部72の該当するレコードの印刷中断位置項目35の値により判明し、2回目以降の処理時には前回の処理分の続きのデータから決定される。またデータの読み出し量はバッファの容量などにより決定する。   In step S231, the highest priority data is detected from all print waiting data, and a part of the data is converted into a printable form and stored in the buffer 61. The highest priority data is determined by detecting the smallest record in which the value of the print order item 34 of all records in the data management storage unit 72 is other than zero. The data read position is determined by the value of the print interruption position item 35 of the corresponding record in the data management storage unit 72 at the first processing, and is determined from the data subsequent to the previous processing at the second and subsequent processing. The amount of data read is determined by the buffer capacity and the like.

ステップS232ではステップS231でバッファ61に設定された印刷データの印刷処理を実施する。制御部4から印刷部8にバッファ61のデータを転送することにより印刷処理が実施される。ステップS233では印刷部8で何らかのエラーが発生したかを調べ、エラーが発生したならばステップS234へ進み、そうでなければステップS235へ進む。   In step S232, the print data set in the buffer 61 in step S231 is printed. Printing processing is performed by transferring data in the buffer 61 from the control unit 4 to the printing unit 8. In step S233, it is checked whether an error has occurred in the printing unit 8. If an error has occurred, the process proceeds to step S234. Otherwise, the process proceeds to step S235.

ステップS234では現在印刷処理中のデータの処理状況を調べ、印刷処理済みの部分を示す情報を保存する。ここではステップS233で既に印刷エラーを検出しているので、現在処理中のデータに関して処理の再開に備えて未印刷部分を示す情報をデータ管理記憶部72の該当レコードの印刷中断位置項目35に設定する。ここで、未印刷部分は、発生したエラーの内容により判定することができるから、エラーの内容に応じて印刷中断位置項目35の設定を行なえば未印刷部分から確実に印刷を再開することができる。   In step S234, the processing status of the data currently being printed is checked, and information indicating the portion that has been printed is stored. Here, since a printing error has already been detected in step S233, information indicating an unprinted portion is set in the print interruption position item 35 of the corresponding record in the data management storage unit 72 in preparation for resuming the processing for the currently processed data. To do. Here, since the unprinted portion can be determined based on the content of the error that has occurred, if the print interruption position item 35 is set according to the content of the error, printing can be reliably restarted from the unprinted portion. .

たとえば用紙詰まりが発生した場合は印刷中のページは全て再印刷が必要になるため、現在処理中のページの先頭を示すデータの情報を記憶し、印刷後の用紙切れが発生した場合は次のページの先頭を示すデータの情報を記憶する、などの制御をステップS234で行なう。そして、その後はステップS219へ進み、エラー表示等の処理を実行する。   For example, if a paper jam occurs, all the pages being printed need to be reprinted. Therefore, information on the data indicating the head of the currently processed page is stored. Control such as storing data information indicating the head of the page is performed in step S234. Then, the process proceeds to step S219, and processing such as error display is executed.

ステップS235ではステップS233で印刷したデータが現在処理中のレコードの最後の部分であるかを調べ、そうであるならばステップS236へ進み、そうでなければステップS202に戻り現在のレコードの印刷処理を継続する。ステップS236では現在処理中のレコードを機器内のHDD7から削除する。ここで現在処理中のレコードは、ステップS233およびステップS235の判定で正常完了したことがわかったため、印刷データ記憶部71からその記憶内容を削除し、関連するレコード情報をデータ管理記憶部72から削除する処理を実施する。その後はステップS202に戻り、次の処理を実施する。   In step S235, it is checked whether the data printed in step S233 is the last part of the record currently being processed. If so, the process proceeds to step S236. If not, the process returns to step S202 to perform the print process for the current record. continue. In step S236, the record currently being processed is deleted from the HDD 7 in the device. Here, since the record currently being processed is found to have been normally completed in the determinations in steps S233 and S235, the stored contents are deleted from the print data storage unit 71, and the related record information is deleted from the data management storage unit 72. Perform the process. Thereafter, the process returns to step S202, and the next process is performed.

以上のようにして、本実施例によれば、印刷ジョブの印刷処理中にユーザの回復作業が必要なエラーが発生した後、回復作業によりエラーが解消された場合に、ユーザの指定操作に応じて柔軟に印刷ジョブの印刷処理順序を制御できる。たとえば、用紙切れやインク切れ等の印刷エラーを発生させてプリンタを動作不能の状態におきながら印刷エラーの回復をしようとしないユーザがいても、その後から緊急で印刷しようとしてジョブを送信したが印刷できないのでプリンタのエラーの回復作業を行なったユーザがいた場合などにおいて、回復作業を怠ったユーザより回復作業を行ったユーザの印刷ジョブを優先的に印刷処理することができる。   As described above, according to this embodiment, when an error that requires a user recovery operation occurs during the print processing of a print job and the error is resolved by the recovery operation, the user's designated operation is performed. The print processing order of print jobs can be controlled flexibly. For example, even if there is a user who does not attempt to recover from a print error while causing the printer to become inoperable due to a print error such as running out of paper or ink, the job was sent urgently after that, but the job was sent In the case where there is a user who has performed a recovery operation for the printer error because it is not possible, the print job of the user who has performed the recovery operation can be preferentially printed over the user who has failed the recovery operation.

あるいはさらに、印刷ジョブの印刷処理順序を制御する指定操作をエラー発生時からエラー解消時までの経過時間が一定時間を過ぎた場合にのみユーザに行なわせる構成、上記一定時間をユーザに設定させる構成、あるいはさらに該指定操作を行なうか否かをユーザに設定させる構成を採用すれば、ユーザ環境やユーザの好みなどに応じてよりきめ細かく印刷エラー発生〜回復作業実施後の印刷処理を制御することができる。   Alternatively, a configuration for causing the user to perform a designation operation for controlling the print processing order of the print job only when the elapsed time from the time of the error occurrence to the time of error elimination exceeds a certain time, and a configuration for allowing the user to set the certain time Alternatively, if a configuration for allowing the user to set whether or not to perform the designation operation is adopted, it is possible to control the printing process after the occurrence of the printing error to the recovery operation more finely according to the user environment or the user's preference. it can.

本発明は、プリンタエンジンの印刷方式などに限定されることなく、印刷データの印刷を行なう印刷部と、印刷処理すべき印刷ジョブを蓄積する不揮発性記憶部を有する各種のプリンタ、すなわち印刷装置において実施することができる。本発明を実施する制御プログラムは、あらかじめ印刷装置のROMなどの記憶媒体に格納しておくことができる。また、HDD、あるいはさらにMOやCD−ROMなどの記憶メディアからインストール/アップデートすることができる。また、上述の通信部(3)がネットワークインターフェースである場合は、任意のサーバからネットワーク経由で供給することもできる。   The present invention is not limited to a printing method of a printer engine or the like. In various printers, that is, printing apparatuses, having a printing unit that prints print data and a non-volatile storage unit that stores a print job to be printed. Can be implemented. A control program for implementing the present invention can be stored in advance in a storage medium such as a ROM of a printing apparatus. Further, it can be installed / updated from a storage medium such as HDD or MO or CD-ROM. Moreover, when the above-mentioned communication part (3) is a network interface, it can also supply via a network from arbitrary servers.

本発明を採用したプリンタの基本構成を示したブロック図である。1 is a block diagram illustrating a basic configuration of a printer employing the present invention. 本発明を採用したプリンタにおけるエラー発生時と、その対策の流れを示した説明図である。It is explanatory drawing which showed the time of the error generation in the printer which employ | adopted this invention, and the flow of the countermeasure. 本発明を採用したプリンタにおける印刷データ記憶部の内部構成例を示した説明図である。3 is an explanatory diagram illustrating an example of an internal configuration of a print data storage unit in a printer employing the present invention. FIG. 本発明を採用したプリンタにおけるデータ管理記憶部の内部構成例を示した説明図である。It is explanatory drawing which showed the internal structural example of the data management memory | storage part in the printer which employ | adopted this invention. 図4のデータ管理記憶部の制御例を示す説明図である。It is explanatory drawing which shows the example of control of the data management memory | storage part of FIG. 本発明を採用したプリンタにおける電源投入後の制御手順を示すフローチャート図である。It is a flowchart figure which shows the control procedure after power activation in the printer which employ | adopted this invention.

符号の説明Explanation of symbols

1 操作部
2 表示部
3 通信部
4 制御部
5 ROM
6 RAM
61 バッファ
62 ワークエリア
7 HDD
71 印刷データ記憶部
72 データ管理記憶部
8 印刷部
DESCRIPTION OF SYMBOLS 1 Operation part 2 Display part 3 Communication part 4 Control part 5 ROM
6 RAM
61 Buffer 62 Work area 7 HDD
71 Print Data Storage Unit 72 Data Management Storage Unit 8 Print Unit

Claims (5)

入力された印刷データの印刷を実行する印刷部と、前記印刷部による印刷の実行が指示された印刷データを記憶する記憶部とを有する印刷装置において、
前記印刷部でエラーが発生した後、前記エラーが解消された場合に、当該エラーの解消により前記印刷部による印刷が可能になった前記記憶部に記憶されている印刷データに対するユーザからの選択操作を受け付ける受付手段と、
前記受付手段でユーザからの選択操作を受け付けた場合に、当該選択操作に応じた印刷データの前記印刷部による印刷の実行を、他の印刷データの印刷よりも優先するよう制御する制御手段と、
前記印刷部におけるエラーが発生してから一定時間が経過したか判定する第1の判定手段と、
前記第1の判定手段において前記一定時間が経過したと判定されるまで前記受付手段におけるユーザからの選択操作を制限する制限手段とを有し、
前記制御手段は、前記エラーが解消された場合に、前記第1の判定手段により前記一定時間が経過したと判定されていない場合、前記記憶部に記憶されている印刷データを、予め決められた優先順位に従って印刷するよう制御することを特徴とする印刷装置。
In a printing apparatus having a printing unit that prints input print data and a storage unit that stores print data instructed to be printed by the printing unit,
After the error has occurred in the printing unit, when the error is resolved, the user can select the print data stored in the storage unit that can be printed by the printing unit by eliminating the error. Accepting means for accepting,
Control means for controlling execution of printing by the printing unit of print data corresponding to the selection operation in preference to printing of other print data when the receiving means accepts a selection operation from the user;
First determination means for determining whether a predetermined time has elapsed since the occurrence of an error in the printing unit;
Possess a limiting means for limiting the selection operation from a user in the reception unit until it is determined that the predetermined time in said first determination means has elapsed,
When the error is resolved and the first determination unit does not determine that the predetermined time has elapsed, the control unit determines the print data stored in the storage unit in advance. A printing apparatus that controls printing according to priority .
前記エラーが解消された場合に、当該解消により前記印刷部による印刷が可能になった前記記憶部に記憶されている印刷データのリストを表示する表示手段を有し、
前記受付手段は、前記表示手段により表示されたリストに含まれる印刷データの選択操作を受け付けることを特徴とする請求項1に記載の印刷装置。
When the error is eliminated, the display unit displays a list of print data stored in the storage unit that can be printed by the printing unit by the elimination,
The printing apparatus according to claim 1, wherein the accepting unit accepts an operation for selecting print data included in the list displayed by the display unit.
前記エラーの解消により前記印刷部による印刷が可能になった印刷データが前記記憶部に複数あるか否か判定する第2の判定手段を有し、
前記制御手段は、前記第2の判定手段が否定判定を行った場合、前記選択操作なしに前記記憶部に記憶されている前記エラーの解消により前記印刷部による印刷が可能になった印刷データの印刷を実行するよう制御することを特徴とする請求項1または2に記載の印刷装置。
A second determination unit configured to determine whether or not there is a plurality of print data in the storage unit that can be printed by the printing unit by eliminating the error;
When the second determination unit makes a negative determination, the control unit is configured to print data that can be printed by the printing unit by eliminating the error stored in the storage unit without the selection operation. The printing apparatus according to claim 1, wherein the printing apparatus is controlled to execute printing.
入力された印刷データの印刷を実行する印刷部と、前記印刷部による印刷の実行が指示された印刷データを記憶する記憶部とを有する印刷装置の制御方法であって、A method for controlling a printing apparatus, comprising: a printing unit that prints input print data; and a storage unit that stores print data instructed to be printed by the printing unit,
前記印刷部でエラーが発生した後、前記エラーが解消された場合に、当該エラーの解消により前記印刷部による印刷が可能になった前記記憶部に記憶されている印刷データに対するユーザからの選択操作を受け付ける受付工程と、After the error has occurred in the printing unit, when the error is resolved, the user can select the print data stored in the storage unit that can be printed by the printing unit by eliminating the error. Accepting process of accepting,
前記受付工程でユーザからの選択操作を受け付けた場合に、当該選択操作に応じた印刷データの前記印刷部による印刷の実行を、他の印刷データの印刷よりも優先するよう制御する制御工程と、A control step for controlling execution of printing by the printing unit of print data corresponding to the selection operation in preference to printing of other print data when a selection operation from the user is received in the reception step;
前記印刷部におけるエラーが発生してから一定時間が経過したか判定する判定工程と、A determination step of determining whether a certain time has elapsed since the occurrence of an error in the printing unit;
前記判定工程において前記一定時間が経過したと判定されるまで前記受付工程におけるユーザからの選択操作を制限する制限工程とを有し、A limiting step of limiting the selection operation from the user in the reception step until it is determined that the certain time has passed in the determination step,
前記制御工程は、前記エラーが解消された場合に、前記判定工程において前記一定時間が経過したと判定されていない場合、前記記憶部に記憶されている印刷データを、予め決められた優先順位に従って印刷するよう制御することを特徴とする印刷装置の制御方法。In the control step, when it is not determined that the predetermined time has elapsed in the determination step when the error is resolved, the print data stored in the storage unit is determined according to a predetermined priority order. A control method for a printing apparatus, characterized by controlling printing.
コンピュータに、請求項1乃至3のいずれか1項に記載の各手段を実現させるための印刷装置の制御プログラム。A control program for a printing apparatus for causing a computer to realize each means according to any one of claims 1 to 3.
JP2006272405A 2006-10-04 2006-10-04 Printing apparatus control method, printing apparatus control program, and printing apparatus Expired - Fee Related JP4909004B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006272405A JP4909004B2 (en) 2006-10-04 2006-10-04 Printing apparatus control method, printing apparatus control program, and printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006272405A JP4909004B2 (en) 2006-10-04 2006-10-04 Printing apparatus control method, printing apparatus control program, and printing apparatus

Publications (3)

Publication Number Publication Date
JP2008087385A JP2008087385A (en) 2008-04-17
JP2008087385A5 JP2008087385A5 (en) 2009-11-19
JP4909004B2 true JP4909004B2 (en) 2012-04-04

Family

ID=39372019

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006272405A Expired - Fee Related JP4909004B2 (en) 2006-10-04 2006-10-04 Printing apparatus control method, printing apparatus control program, and printing apparatus

Country Status (1)

Country Link
JP (1) JP4909004B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5994514B2 (en) * 2012-09-20 2016-09-21 ブラザー工業株式会社 Image forming apparatus, image forming system, and information processing apparatus
JP6337753B2 (en) * 2014-11-28 2018-06-06 京セラドキュメントソリューションズ株式会社 Printing system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05138998A (en) * 1991-11-19 1993-06-08 Canon Inc Image processing device
JP2006051615A (en) * 2004-08-10 2006-02-23 Canon Inc Image forming apparatus, control method therefor, program, and storage medium

Also Published As

Publication number Publication date
JP2008087385A (en) 2008-04-17

Similar Documents

Publication Publication Date Title
US7719703B2 (en) Print control program and medium and information processing apparatus
JP4137144B2 (en) Data processing apparatus and control method thereof
JP6740816B2 (en) Image output device, history display device, and history display program
US20020097429A1 (en) Methods and systems for recovering a failed print job
US20050128514A1 (en) Information processing apparatus, print job management method, information processing program, and recording medium
US20050286078A1 (en) Print control device and method for automatically resuming a printing operation of remaining pages
US10255008B2 (en) Printing apparatus and method for controlling the execution of print jobs
US20120229852A1 (en) Image forming apparatus
US10866775B2 (en) Printing apparatus, method for controlling printing apparatus to perform cancelling a print job based on a lapse of predetermined time
JP2009140228A (en) Information processing program
JP4193556B2 (en) Job monitoring method and program
JP2007164480A (en) Printing system and method
JP2015060272A (en) Information processing system, information processing method, information processing apparatus, and program
JP4909004B2 (en) Printing apparatus control method, printing apparatus control program, and printing apparatus
JP2006051615A (en) Image forming apparatus, control method therefor, program, and storage medium
JP2008265135A (en) Print system and printer
JP7071549B2 (en) Printing device, control method of printing device, and program
US8107098B2 (en) Apparatus for controlling printing, method for the same, printing system, and computer program
WO2001040927A1 (en) Medium where status information printing program is recorded, printer, print controller, status information printing method, and status information printing system
JP2007148899A (en) Printing apparatus
US20040190048A1 (en) Image forming device and method
JP4306973B2 (en) Printing control apparatus and data processing method
JP2003330644A (en) Print system
JP3323679B2 (en) Print control device and print control method
JP4512373B2 (en) Image forming apparatus, image forming system, computer program, and recording medium

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091002

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091002

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20100201

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20100630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110412

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110413

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111011

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111212

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120110

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120113

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

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4909004

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees