JPH11321036A - Image-processing apparatus and its control method - Google Patents

Image-processing apparatus and its control method

Info

Publication number
JPH11321036A
JPH11321036A JP10138311A JP13831198A JPH11321036A JP H11321036 A JPH11321036 A JP H11321036A JP 10138311 A JP10138311 A JP 10138311A JP 13831198 A JP13831198 A JP 13831198A JP H11321036 A JPH11321036 A JP H11321036A
Authority
JP
Japan
Prior art keywords
data
print
image
processing apparatus
image processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP10138311A
Other languages
Japanese (ja)
Inventor
Tatsuo Edamatsu
達男 枝松
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP10138311A priority Critical patent/JPH11321036A/en
Publication of JPH11321036A publication Critical patent/JPH11321036A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image-processing apparatus and its control method whereby a next print data can be printed by units of pages or by units of parts without taking a transfer state of the print data at an external input device taken into account when the print data is canceled at the image-processing apparatus. SOLUTION: This apparatus includes a data-analyzing means 40 for analyzing whether it is a data indicating sections of units of pages and units of parts added to a print data, a data-setting means 60 for setting which of the data indicating sections of units of pages and units of parts the analyzing means is to detect, and a data-processing means 70. The data-processing means 70 processes for print data to be received next and afterwards the data indicating sections of units of pages or units of parts selected by the data-setting means as an invalid data until the data-analyzing means detects the data when the print data input via an external interface from an external input device is canceled not to be printed by the image-processing apparatus and the data present in a memory means 80 has been cleared.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置および
その制御方法に関し、とくに、印刷データがキャンセル
された際の動作に配慮された画像処理装置およびその制
御方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus and a control method thereof, and more particularly to an image processing apparatus and a control method thereof in which an operation when print data is canceled is considered.

【0002】[0002]

【従来の技術】従来の技術では、ホストコンピュータや
プリントサーバなどの外部入力装置からの印刷データを
画像処理装置が受信途中の段階で、受信中の印刷データ
を画像処理装置側においてキャンセルしてクリアするこ
とがある。
2. Description of the Related Art In the prior art, when an image processing apparatus is receiving print data from an external input device such as a host computer or a print server, the print data being received is canceled and cleared on the image processing apparatus side. May be.

【0003】[0003]

【発明が解決しようとする課題】以上のような場合、外
部入力装置からの転送途中になった状態の印刷データ
を、外部入力装置側において直接キャンセルしクリアし
なければ、次からの印刷データに対して、画像処理装置
は正しい印刷動作が望めなかった。
In the above case, the print data in the state of being transferred from the external input device is directly canceled and cleared by the external input device unless the next print data is cleared. On the other hand, the image processing apparatus could not expect a correct printing operation.

【0004】このようなケースが発生した場合に、その
まま続けて画像処理装置で印刷データを受信しようとす
ると、印刷データとしては成り立たない無意味なデータ
を画像処理装置は印刷してしまうことになる。
In such a case, if the image processing apparatus tries to receive print data as it is, the image processing apparatus prints meaningless data that does not hold as print data. .

【0005】従って、本発明の目的は、画像処理装置で
印刷データをキャンセルした場合に、外部入力装置の印
刷データの転送状況を考慮することなく、ページ単位ま
たは部単位で次の印刷データを印刷することが可能な画
像処理装置およびその制御方法を実現することである。
Accordingly, an object of the present invention is to print the next print data in page units or copy units without considering the transfer status of the print data of the external input device when the print data is canceled by the image processing apparatus. And an image processing apparatus capable of performing the control.

【0006】[0006]

【課題を解決するための手段】上述の課題を解決する本
発明は以下に説明するようなものである。請求項記載の
発明は、印刷データに付加されたページ単位及び部単位
の区切りをあらわすデータであるかを解析するデータ解
析手段と、前記解析手段に対してページ単位または部単
位の区切りをあらわすデータのどちらを検知するかを設
定するデータ設定手段と、外部入力装置から外部インタ
ーフェースを介して入力される印刷データを画像処理装
置にてデータの印刷キャンセルを行い記憶手段に存在す
るデータのクリアを行った場合に、次回から受信する印
刷データに対し、前記データ設定手段で選択されたペー
ジ単位または部単位の区切りをあらわすデータを前記デ
ータ解析手段が検知するまで無効データとして処理する
データ処理手段と、を備えたことを特徴とする画像処理
装置である。
The present invention for solving the above problems is as described below. The invention according to the present invention is directed to a data analysis unit that analyzes whether the data is data representing a page unit and a copy unit added to print data, and data representing a page unit or a copy unit for the analysis unit. A data setting unit for setting which of the following is to be detected; and a print data input from an external input device via an external interface is subjected to data print cancellation by the image processing apparatus and data present in the storage unit is cleared. In the case of, when the print data to be received from the next time, data processing means for processing data representing a page unit or a set of units selected by the data setting means as invalid data until the data analysis means detects, An image processing apparatus comprising:

【0007】本発明では、印刷データを受信途中の段階
で、画像処理装置にて印刷データをキャンセルした場
合、外部入力装置の転送途中になった状態の印刷データ
を外部入力装置においてキャンセル(クリア)する必要
を必要なくし、その印刷データを画像処理装置で受信し
た場合においても、画像処理装置で印刷データとして成
り立つページ単位または部単位まで無効データとして処
理するようにして、画像処理装置が無駄な印刷をする恐
れを防止する。
According to the present invention, when the print data is canceled by the image processing apparatus while the print data is being received, the print data in the state of being transferred to the external input device is canceled (cleared) by the external input device. When the print data is received by the image processing device, the image processing device processes the data as invalid data up to the page unit or the copy unit which is satisfied as the print data, so that the image processing device performs unnecessary printing. To prevent the risk of

【0008】すなわち、外部入力装置から転送された印
刷データを、画像処理装置において受信途中で印刷キャ
ンセルした場合、外部入力装置からダイレクトあるいは
ネットワーク接続のどちらであっても、転送途中の印刷
データが残存するケースが発生する。このようなケース
が発生した場合に、そのまま続けて画像処理装置で印刷
データを受信しようとすると、印刷データとしては成り
立たない無意味なデータを画像処理装置は印刷してしま
うことになる。
That is, when print data transferred from an external input device is canceled during reception in the image processing apparatus, the print data being transferred remains even if the external input device is connected directly or through a network. Case occurs. In such a case, if the image processing apparatus tries to receive print data as it is, the image processing apparatus prints meaningless data that does not hold as print data.

【0009】しかし、本発明によれば、外部入力装置に
おいて転送する印刷データに対してページ単位または部
単位の区切りをあらわすデータを付加する転送方法を実
施しているため、画像処理装置においては受信した印刷
データをデータ解析してページ単位または部単位のどち
らか設定した、印刷データとして成り立つ区切りの良い
所までを無効なデータとして処理することが可能にな
る。
However, according to the present invention, since the transfer method for adding data indicating a page unit or a copy unit to the print data transferred by the external input device is implemented, the image processing apparatus receives the data. It is possible to process, as invalid data, up to a well-divided portion that is set as print data, which is set as either a page unit or a copy unit by analyzing the print data thus set.

【0010】その結果、外部入力装置あるいはネットワ
ークのプリントサーバなどに対し、残存データのクリア
をすることなく、更に画像処理装置においても無意味な
印刷を避けた上でページ単位または部単位で次の印刷を
行うことが可能になる。
As a result, without clearing the remaining data to the external input device or the print server of the network, and also avoiding the useless printing in the image processing apparatus, the next data is processed in page units or copy units. Printing can be performed.

【0011】[0011]

【発明の実施の形態】以下、図面に従って本発明に係る
実施の形態例を詳細に説明する。なお、この実施の形態
例ではレーザビームプリンタを例にして説明するが、以
下の説明から明らかになるように、プリント方式として
は、熱転写、インクジェット、或いは、ワイヤードット
インパクト方式等にも適応可能である。従って、具体例
に示される方式で本願発明が限定されるものではない。
Embodiments of the present invention will be described below in detail with reference to the drawings. In this embodiment, a laser beam printer will be described as an example. However, as will be apparent from the following description, the printing method can be applied to a thermal transfer, an ink jet, or a wire dot impact method. is there. Therefore, the present invention is not limited by the method shown in the specific example.

【0012】<画像処理装置の構成>図1は本発明の概
念的な構成を示すブロック図である。この図1に従って
本発明の動作概要を説明すると以下の通りになる。
<Structure of Image Processing Apparatus> FIG. 1 is a block diagram showing a conceptual structure of the present invention. The outline of the operation of the present invention will be described below with reference to FIG.

【0013】外部入力装置10は、主として、画像処理
装置20が印刷画像を形成するために必要な印刷データ
を送出する役目を持つものであり、ホストコンピュータ
やプリントサーバなどが該当する。なお、外部入力装置
10は後述で詳細に説明するが、印刷データに対して、
部単位とページ単位の区切りのコマンドデータを付加す
る機能を備えている。
The external input device 10 mainly has a role of transmitting print data necessary for the image processing device 20 to form a print image, and corresponds to a host computer or a print server. The external input device 10 will be described later in detail.
It has a function of adding command data that is delimited in units of copies and pages.

【0014】画像処理装置20は本実施の形態例の特徴
部分であり、印刷データ発生源としての外部入力装置1
0が接続されている。外部入力装置10から画像処理装
置20への印刷データは、部単位の区切りをあらわすコ
マンドあるいは、ページ単位の区切りをあらわすコマン
ドといった画像処理装置を制御するために必要な制御コ
マンドデータと各ページの印刷画像の形成に必要な描画
コマンドデータやイメージデータで構成されることとな
る。
The image processing apparatus 20 is a characteristic part of the present embodiment, and includes the external input device 1 as a print data generation source.
0 is connected. The print data from the external input device 10 to the image processing apparatus 20 includes control command data necessary for controlling the image processing apparatus, such as a command indicating a set unit or a command indicating a page unit, and printing of each page. It consists of drawing command data and image data necessary for forming an image.

【0015】外部入力装置10から送出された印刷デー
タは、画像処理装置20が備える外部インターフェース
30に存在する受信部に入力される。受信部に入力され
た印刷データはデータ解析手段40に順次転送される。
The print data sent from the external input device 10 is input to a receiving unit provided in the external interface 30 provided in the image processing device 20. The print data input to the receiving unit is sequentially transferred to the data analysis unit 40.

【0016】データ解析手段40は、この転送された印
刷データを画像処理装置20にて破棄する行為、すなわ
ち画像処理装置20において印刷データの印刷キャンセ
ルが行われた場合に限り、データ設定手段60で設定さ
れたページ或いは部単位の区切りをあらわすコマンドを
検知する動作を行う。
The data analysis means 40 determines whether the transferred print data is to be discarded by the image processing device 20, that is, only when the print processing of the print data is canceled in the image processing device 20. An operation of detecting a command indicating a set page or a set unit is performed.

【0017】操作部50は画像処理装置20における各
種操作を受け付ける操作入力手段であり、印刷キャンセ
ルの操作50aを受け付ける。データ処理手段70は画
像処理装置20にて印刷データの印刷キャンセル50a
が行われない場合は、通常のデータ処理を行って印刷デ
ータから画像データを形成し、データ記憶手段80に展
開を行う。一方、印刷データの印刷キャンセル50aが
行われた場合は、データ記憶手段80の展開途中となっ
た画像データをクリアし、データ解析手段40が部単位
あるいはページ単位の区切りを検知するまで印刷データ
を無効とする処理を行う。そしてデータ解析手段40が
部単位あるいはページ単位の区切りをあらわすデータを
検知した時点で、データ処理手段70は、印刷データか
ら画像データを形成しデータ記憶手段80に展開を行
う。
The operation unit 50 is an operation input unit that receives various operations in the image processing apparatus 20, and receives a print cancel operation 50a. The data processing means 70 performs a print data print cancellation 50a in the image processing apparatus 20.
If not performed, normal data processing is performed to form image data from the print data, and the data is developed in the data storage unit 80. On the other hand, when the print data print cancel 50a is performed, the image data that is being developed in the data storage unit 80 is cleared, and the print data is deleted until the data analysis unit 40 detects a division in units of copies or pages. Perform invalidation processing. Then, when the data analysis unit 40 detects data representing a section or page unit, the data processing unit 70 forms image data from the print data and develops the image data in the data storage unit 80.

【0018】プリントエンジン90は、データ記憶手段
80に展開された画像データを転写紙上に形成し、ハー
ドコピーとしての印刷出力100を得る。 <画像処理装置の制御方法>以下、図2以降を参照して
本実施の形態例の動作を説明する。
The print engine 90 forms the image data developed in the data storage means 80 on transfer paper, and obtains a print output 100 as a hard copy. <Control Method of Image Processing Apparatus> The operation of this embodiment will be described below with reference to FIGS.

【0019】本実施の形態例では、外部入力装置10を
ホストコンピュータ(以下、ホスト)とし、画像処理装
置20をプリンタとし、両者をインタフェース接続して
ホストからの印刷データをプリンタへ転送する場合を具
体例にして動作説明を行う。
In the present embodiment, a case where the external input device 10 is a host computer (hereinafter referred to as a host), the image processing device 20 is a printer, and both are interfaced to transfer print data from the host to the printer. The operation will be described using a specific example.

【0020】図2はホストからプリンタへ転送される印
刷データの構成をあらわしたものである。図3ならびに
図4はプリンタ20が、上記ホスト10からの印刷デー
タを受信して印刷出力を行う場合、または、印刷キャン
セルによって印刷データのクリアを行った場合の制御方
法を示したフローチャートである。この図2、図3およ
び図4を用いて、以下順次詳細に説明を行う。
FIG. 2 shows the structure of print data transferred from the host to the printer. FIGS. 3 and 4 are flowcharts showing a control method when the printer 20 receives print data from the host 10 and prints out the data, or when the print data is cleared by canceling the print. With reference to FIG. 2, FIG. 3 and FIG.

【0021】ここに示した実施の形態例では、図2にあ
るようにホスト10がプリンタ20へ転送する印刷デー
タは合計で2部単位あり、1部単位目は3ページ分の印
刷データであり、2部単位目は2ページ分の印刷データ
として説明を行う。しかし、本実施の形態例においては
以下の説明から分かるように、部単位の数およびそのペ
ージの数はこの具体例に限定されるものではない。
In the embodiment shown here, as shown in FIG. 2, the print data transferred from the host 10 to the printer 20 is a total of two copies, and the first copy is print data for three pages. The second copy unit will be described as print data for two pages. However, in the present embodiment, as can be understood from the following description, the number of copy units and the number of pages thereof are not limited to this specific example.

【0022】本実施の形態例を実現するため、ホスト1
0は、印刷データに対して部単位の区切りをあらわすコ
マンドデータと、ページの区切りをあらわすコマンドデ
ータとを、それぞれ図2が示すような位置関係で画像形
成データに付加する。
In order to realize this embodiment, the host 1
0 adds command data indicating a break in print units and command data indicating a break in pages to the image forming data in a positional relationship as shown in FIG.

【0023】また、画像形成データについて説明する
と、大きく分けてコマンド処理を行うコマンドデータと
イメージ処理を行うイメージデータから構成される。コ
マンドデータは、前記のページの区切りをあらわすコマ
ンドデータとページの区切りをあらわすコマンドと同
様、処理形態に応じてあらかじめ個別のコードを割り当
てておいて画像処理装置にて解析が可能としたデータを
言う。このコマンドデータには、画像処理装置の動作を
制御するための制御コマンドや画像形成を行うための描
画コマンドなどが含まれる。
The image forming data can be roughly divided into command data for performing command processing and image data for performing image processing. Command data, like the command data indicating page breaks and the command indicating page breaks, refers to data to which an individual code is assigned in advance according to the processing mode and which can be analyzed by the image processing apparatus. . The command data includes a control command for controlling the operation of the image processing apparatus, a drawing command for forming an image, and the like.

【0024】また、イメージデータは、画像形成を行う
ための色やビット形式といった情報を示すデータの後に
続いて、画像形成に直接必要とされるデータが、そのま
まのイメージとして形成されているデータを言う。その
イメージ部分は、例えばデータがバイト単位とした場
合、8ビットで表せる0から255の全ての値を用いて
構成される。
The image data includes data indicating information such as a color and a bit format for forming an image, followed by data directly required for the image formation. To tell. The image portion is configured using all values from 0 to 255 that can be represented by 8 bits, for example, when the data is in byte units.

【0025】その結果、イメージデータには、コマンド
データの処理形態によって割り当てた個別のコードと同
じデータが含まれることになるため、イメージデータに
ついては、イメージの先頭にイメージ処理開始とイメー
ジ総データ数を示したコマンドデータを付加し、画像処
理装置において判定可能とするようにする。上記のよう
な印刷データを制御する手段としては、公知であるプリ
ンタドライバにそのような機能を持たせることによって
簡単に実現可能となる。
As a result, since the image data contains the same data as the individual code assigned according to the processing mode of the command data, the start of image processing and the total number of image data Is added so that the image processing apparatus can make the determination. Means for controlling the print data as described above can be easily realized by providing a known printer driver with such a function.

【0026】また、プリンタ20には、通常の場合、受
信した印刷データをキャンセルすることが可能なよう
に、オペレーションパネルなどにスイッチなどを設け、
ユーザーがキャンセルの操作をすることができるように
なっている。
In a normal case, the printer 20 is provided with a switch on an operation panel or the like so that the received print data can be canceled.
The user can perform a cancel operation.

【0027】ホスト10から印刷データの転送を行い、
その印刷データをプリンタ20でキャンセルする場合、
すなわち、破棄して印刷しないようにする場合、ホスト
10からの印刷データを全てプリンタ20で受信してし
まった場合と、全ては受信してない場合の2通りに区別
される。
The print data is transferred from the host 10,
When the print data is canceled by the printer 20,
That is, when discarding and not printing, two cases are distinguished: a case where all the print data from the host 10 has been received by the printer 20 and a case where all of the print data has not been received.

【0028】前者の場合、プリンタ20において受信し
た印刷データを記憶しているメモリを全てクリアするの
みで他に特に問題にはならないはずである。しかし、プ
リンタ20側に於いてユーザーがこのようなタイミング
を見計らって印刷キャンセルすることは、かなり困難で
ある。特にネットワーク上にプリンタ20が接続されて
いる場合であると、複数のユーザーが印刷データを非同
期で一斉にプリンタ20へ転送してくるので、不可能に
等しい。
In the former case, the printer 20 only clears all the memories storing the received print data, and should not cause any particular problem. However, it is very difficult for the user to cancel the print at the printer 20 at such a timing. In particular, when the printer 20 is connected on the network, it is impossible because a plurality of users simultaneously transfer the print data to the printer 20 asynchronously.

【0029】すなわち、印刷データを受信中にプリンタ
20にて印刷キャンセルが行われた場合、プリンタ20
において受信した印刷データをクリアするのみである
と、プリンタ20はその後、転送途中となった残りのデ
ータを受信し、画像形成のためのデータ処理をすること
になる。
That is, if printing is canceled by the printer 20 while receiving print data, the printer 20
If the printer 20 only clears the received print data, the printer 20 thereafter receives the remaining data that is being transferred, and performs data processing for image formation.

【0030】しかし、印刷データは印刷キャンセルによ
って先頭部分が欠落しているため、プリンタ20で印刷
を行うための、画像形成してメモリに展開するデータ処
理は正常に行えなくなり、まともな印刷結果を出力でき
なくなる。このような場合、意味不明の文字などが印刷
出力される状態が発生する。
However, since the leading portion of the print data is missing due to the print cancel, data processing for forming an image and developing it in the memory for printing by the printer 20 cannot be performed normally, and a proper print result cannot be obtained. Cannot output. In such a case, a state occurs in which characters of unknown meaning are printed out.

【0031】しかし、図3ならびに図4の示す制御方法
をプリンタ20で行うことによって、前記のような問題
を解決できるようになる。ここで、図3ならびに図4の
フローチャートについて、その処理方法を大きく分けて
以下の4項目とし、それぞれについて説明を行う。 (1)コマンド及びイメージデータの印刷キャンセルなし
の処理, (2)コマンド及びイメージデータの印刷キャンセルあり
の処理, (3)印刷キャンセル後のページ単位及び部単位区切りデ
ータ検知までの処理, (4)ページ単位及び部単位区切りデータ検知までの処
理, なお、以下の説明におけるプリンタ20で行われるキャ
ンセル判定処理(S3,S10)であるが、プリンタ2
0に設けた印刷キャンセルを行うためのスイッチをユー
ザーが入力するといった手段で発生するものであり、そ
の受付けはユーザーに制限を与えないため、すぐ受け付
けれるようにするのが望ましい。
However, if the control method shown in FIGS. 3 and 4 is performed by the printer 20, the above-described problem can be solved. Here, the processing methods of the flowcharts of FIGS. 3 and 4 are roughly divided into the following four items, and each will be described. (1) Processing without print cancellation of commands and image data, (2) Processing with print cancellation of commands and image data, (3) Processing until detection of page and copy unit separation data after print cancellation, (4) Processing up to detection of page and copy unit separation data. The cancellation determination processing (S3, S10) performed by the printer 20 in the following description,
This is generated by means such as a user inputting a switch for canceling printing provided at 0, and the reception is not limited to the user.

【0032】そこで、プリンタ20においては図3のフ
ローチャートでキャンセル判定を行う処理(S3,S1
0)以外の処理部分においてスイッチが入力されても良
いように、スイッチの入力に対しては、キーバッファな
どにおいて一時的に記憶可能とし、キャンセル処理(S
3,S10)を行う所まで保留状態にしておくようにす
る。また、印刷キャンセル後の次からの印刷出力をペー
ジ或いは部にするかをユーザーで設定可能とするため、
プリンタ20にスイッチを設けるなどといった対策を行
うようにする。
Therefore, the printer 20 performs a cancel determination process (S3, S1) in the flowchart of FIG.
In order to be able to input a switch in a processing portion other than 0), the input of the switch can be temporarily stored in a key buffer or the like, and the cancellation process (S
(3, S10) is to be put on hold until the place to be performed. In addition, in order to allow the user to set whether to output the next print output after printing cancellation as a page or a copy,
Measures such as providing a switch in the printer 20 are taken.

【0033】(1)コマンド及びイメージデータの印刷
キャンセルなしの処理:プリンタ20は、ホスト10か
らの印刷データを受信(S1)し、そのデータがコマン
ド処理を行うデータであるのかイメージ処理を行うデー
タであるのかを判定(S2)する。
(1) Processing without canceling printing of command and image data: The printer 20 receives print data from the host 10 (S1) and checks whether the data is data for command processing or data for image processing. Is determined (S2).

【0034】判定手段として、コマンド処理を行うデー
タにおいては処理形態に応じて個別のコードをそれぞれ
に与えて判定することとする。イメージ処理の場合に限
っては、イメージデータの始まる前にイメージ処理開始
とイメージ総データ数を表したコマンドにより、これか
ら送るイメージデータがどれだけのデータ数であるかと
いう点からイメージ処理であることを判定する。
As the determination means, the data to be subjected to the command processing is determined by giving individual codes to the respective processing modes. In the case of image processing only, before starting the image data, the command must indicate the start of image processing and the total number of image data, and must be image processing in terms of the number of image data to be sent. Is determined.

【0035】コマンド処理と判定した場合、そのコマン
ドに応じたコマンド処理(S4)を実施、画像形成に伴
うコマンドであればメモリ上に画像データの展開(S
5)を行う。そして1ページ分すべての展開が終了した
場合(S6でYES)、データ記憶手段80に展開した
画像形成データをプリントエンジン90に転送(S7)
し、印刷出力(S8)を行う。
If it is determined that the command is a command process, a command process (S4) corresponding to the command is performed. If the command is a command associated with image formation, the image data is expanded on the memory (S4).
Perform 5). If the development of one page has been completed (YES in S6), the image forming data developed in the data storage unit 80 is transferred to the print engine 90 (S7).
Then, print output (S8) is performed.

【0036】イメージ処理と判定した場合、外部入力装
置10において付加されたイメージ総データ数(イメー
ジ総バイト数)を示すコマンドを判定(S9)し、一時
記憶する。そして、その後に続いて送られてくるイメー
ジデータを受信(S11)し、イメージ処理(S12)
を行いメモリ上に画像の展開(S13)を行う。1回イ
メージ処理をする毎に前記、一時記憶したイメージ総デ
ータ数から1デクリメント(S14)し、総データ数が
ゼロ、すなわちイメージデータの処理が終了するまで前
記一連の処理を繰り返す(S15でNO)。そして、前
記した一連の処理が終了した時点で、1ページ分すべて
の展開が終了した場合(S6でYES)、データ記憶手
段80に展開した画像形成データをプリントエンジン9
0に転送(S7)し、印刷出力(S8)を行う。1ペー
ジ分すべての展開が終了していない場合は、データ受信
(S1)を行う。
If it is determined that the image processing is to be performed, a command indicating the total number of image data (total number of image bytes) added by the external input device 10 is determined (S9) and temporarily stored. Then, the image data transmitted subsequently is received (S11), and image processing (S12) is performed.
Is performed to develop the image on the memory (S13). Every time the image processing is performed once, the above-mentioned series of processing is repeated until the total data number is zero, that is, the processing of the image data is completed (NO in S15). ). If the development of all pages has been completed (YES in S6) at the time when the above-described series of processing is completed, the image forming data developed in the data storage unit 80 is stored in the print engine 9 (S6).
0 (S7) and print out (S8). If the development of one page has not been completed, data reception (S1) is performed.

【0037】(2)コマンド及びイメージデータの印刷
キャンセルありの処理:印刷キャンセル(S3)がコマ
ンド処理の処理中に行われた場合は、次項目(3)の印
刷キャンセル後のページ単位及び部単位区切りデータ検
知までの処理に入る。
(2) Processing with print cancellation of command and image data: If print cancellation (S3) is performed during the processing of the command processing, the next item (3) page unit and copy unit after print cancellation The process up to the detection of delimiter data is started.

【0038】印刷キャンセル(S10)がイメージ処理
の処理中に行われた場合は、受信したイメージデータ
(S16)を1回無効データとして読み捨て(S17)
する毎に、一時記憶したイメージ総データから1デクリ
メント(S18)する。そして、総データ数がゼロにな
ったか、すなわちイメージデータの読み捨てが終了(S
19)するまで、読み捨てとデクリメントの一連の処理
を繰り返した後、次項目(3)の印刷キャンセル後のペ
ージ単位及び部単位区切りデータ検知までの処理に入
る。
If the print cancellation (S10) is performed during the image processing, the received image data (S16) is once discarded as invalid data and discarded (S17).
Every time it is performed, the value is decremented by one from the temporarily stored total image data (S18). Then, whether the total number of data has become zero, that is, the image data has been completely discarded (S
Until 19), after repeating a series of processing of discarding and decrementing, the process proceeds to the next item (3) until the detection of page unit and copy unit separation data after printing is canceled.

【0039】(3)印刷キャンセル後のページ単位及び
部単位区切りデータ検知までの処理:印刷キャンセル
後、展開途中段階の画像データがデータ記憶手段80
(メモリ)上に存在する場合はそのメモリのクリア(S
20)を行い、データ設定手段60に設定された設定値
(次の印刷出力をページ単位からあるいは部単位で行う
のか)について判定(S21)し、データを受信(S2
2,S31)していく。
(3) Processing up to detection of page and copy unit separation data after canceling printing: After canceling printing, image data in the middle of development is stored in the data storage unit 80
If it exists on (memory), clear that memory (S
20) to determine the set value set in the data setting means 60 (whether the next printout is to be performed in page units or in copy units) (S21), and receive the data (S2).
2, S31).

【0040】設定がページ単位になっていれば、ページ
の区切りをあらわすコマンドデータを検知(S24)す
るまで、設定が部単位であれば、部の区切りをあらわす
コマンドデータを検知(S33)するまで受信データを
無効として読み捨てる処理(S25,S28,S34,
S37)を行う。
If the setting is in units of pages, the command data indicating a page break is detected (S24). If the setting is in units of copy, the command data indicating the break of a page is detected (S33). Processing for discarding the received data as invalid (S25, S28, S34,
S37) is performed.

【0041】なお、この一連の処理において、読み捨て
をするデータがコマンドデータであるかイメージデータ
であるかで処理方法を区別する(S23,S32)必要
性が生ずる。その理由として、イメージデータは、例え
ばデータがバイト単位とした場合、8ビットであらわせ
る0から255のすべての値を用いているため、コマン
ドデータのように個別コードを割り当てることはできな
い。そのため、イメージデータには、ページ単位または
部単位の区切りをあらわすコマンドデータと同じデータ
が含まれることとなるため、イメージデータについて
は、イメージデータの先頭に付加されたイメージ処理開
始とイメージ総データ数を示したコマンドデータを判定
(S26,S35)し、一時記憶する。そして、その後
に続いて送られてくるイメージデータを受信(S27,
S36)し、そのイメージデータを1回無効データとし
て読み捨て(S28,S37)する毎に前記、一時記憶
したイメージ総データ数から1デクリメント(S29,
S38)し、総データ数がゼロになったか、すなわち全
てのイメージデータの読み捨てが終了するまで前記一連
の処理を繰り返す(S30でNO,S39でNO)。そ
のことによって、イメージデータに含まれるページ単位
または部単位の区切りをあらわすコマンドデータと同じ
イメージデータを、間違ってページ単位または部単位の
区切りデータとして検知しなくて済むようになる。
In this series of processing, it is necessary to distinguish the processing method depending on whether the data to be discarded is command data or image data (S23, S32). The reason is that, for example, when the data is in byte units, all values from 0 to 255 represented by 8 bits are used for the image data, so that an individual code cannot be assigned like command data. Therefore, the image data includes the same data as the command data indicating a page or copy unit. For the image data, the image processing start and the total number of image data added to the beginning of the image data are added. Is determined (S26, S35) and temporarily stored. Then, the subsequently received image data is received (S27,
S36), and every time the image data is read and discarded as invalid data once (S28, S37), the decrement is performed by one from the total number of temporarily stored images (S29, S29).
S38), the series of processes is repeated until the total number of data becomes zero, that is, until all the image data is completely discarded (NO in S30, NO in S39). This eliminates the need to erroneously detect the same image data as the command data indicating the page or copy division included in the image data as the page or copy division data.

【0042】(4)ページ単位及び部単位区切りデータ
検知までの処理:以上の(3)の処理を実行し、ページ
または部の区切りをあらわすコマンドを検知(S24,
S33)した後、前述した項目の処理に戻る(S1)。
(4) Processing up to page- and copy-unit separation data detection: The above process (3) is executed, and a command representing a page or copy separation is detected (S24,
After performing S33), the process returns to the processing of the above-described items (S1).

【0043】<画像処理装置の制御方法の具体例>以下
に本発明の実施の形態例について、その具体例を示す。 ・具体例1:具体例1として、図2が示す印刷データの
1部単位目の2ページ目の画像形成するための印刷デー
タをプリンタ20で受信中に印刷キャンセルを行った場
合を説明する。
<Specific Example of Control Method of Image Processing Apparatus> Specific examples of the embodiment of the present invention will be described below. Specific Example 1: As Specific Example 1, a case will be described in which printing is canceled while the printer 20 is receiving print data for forming an image of the second page of one copy of the print data shown in FIG.

【0044】設定が部単位であれば1部単位目の2ペー
ジ残りと3ページ目を破棄(読み捨て)して、2部単位
目から印刷出力する。もし設定がページ単位であれば、
1部単位目の2ページ残りを破棄して、1部単位目の3
ページ目と2部単位目を印刷出力する。
If the setting is in units of copies, the remaining second and third pages of the first set are discarded (discarded) and printed out from the second set. If the setting is per page,
Discard the rest of the second page of the first copy and discard the third page of the first copy.
The page and the second copy are printed out.

【0045】したがって、外部入力装置10からの転送
途中になった状態の印刷データを、外部入力装置10に
おいて直接キャンセルしてクリアすることなく、次から
の印刷データに対して画像処理装置20は正しい印刷動
作が望めるようになる。
Therefore, the image processing device 20 can correct the print data in the state of being transferred from the external input device 10 without directly canceling and clearing the print data in the external input device 10. The printing operation can be expected.

【0046】すなわち、画像処理装置20で印刷データ
として成り立つページ単位または部単位まで無効データ
として処理することで、画像処理装置20が無駄な印刷
をする恐れを防止する。
That is, the image processing apparatus 20 processes invalid data up to the page unit or copy unit which is established as print data, thereby preventing the image processing apparatus 20 from performing useless printing.

【0047】・具体例2:具体例2として、2部単位目
の1ページ目の画像形成するための印刷データをプリン
ダで受信中に印刷キャンセルした場合を説明する。
Specific Example 2: As a specific example 2, a case will be described in which print data for forming the image of the first page of the second copy is canceled by the printer while the print data is being received.

【0048】設定が部単位であれば、2部単位目は印刷
出力はされず、ホスト10において次に生成される印刷
データ(1ページ目)から印刷出力を行う。設定がペー
ジ単位であれば、2部単位目の1ページ目を破棄(読み
捨て)して、2ページ目を印刷出力する。
If the setting is a copy unit, the print output is not performed for the second copy unit, and the print output is performed from the print data (first page) generated next in the host 10. If the setting is in page units, the first page of the second copy is discarded (read and discarded), and the second page is printed out.

【0049】したがって、外部入力装置10からの転送
途中になった状態の印刷データを、外部入力装置10に
おいて直接キャンセルしてクリアすることなく、次から
の印刷データに対して画像処理装置20は正しい印刷動
作が望めるようになる。
Therefore, the image processing device 20 can correct the print data in the state of being transferred from the external input device 10 without directly canceling and clearing the print data in the external input device 10. The printing operation can be expected.

【0050】すなわち、画像処理装置20で印刷データ
として成り立つページ単位または部単位まで無効データ
として処理することで、画像処理装置20が無駄な印刷
をする恐れを防止する。
That is, the image processing apparatus 20 processes the invalid data up to the page unit or the copy unit which is realized as the print data, thereby preventing the image processing apparatus 20 from performing useless printing.

【0051】<その他の実施の形態例>外部入力装置1
0と画像処理装置20とはダイレクトに接続されていて
もよいし、また、はネットワークを介して接続されてい
てもよい。上述した実施の形態例の動作によれば、ダイ
レクト接続,ネットワーク接続のいずれの場合において
も、同等の効果が得られることを特徴とする。
<Other Embodiments> External Input Device 1
0 and the image processing apparatus 20 may be directly connected, or may be connected via a network. According to the operation of the above-described embodiment, the same effect can be obtained in any of the direct connection and the network connection.

【0052】[0052]

【発明の効果】以上詳細に説明したように、この明細書
に記載の発明では、印刷データを受信途中の段階で、画
像処理装置にて印刷データをキャンセルした場合、外部
入力装置の転送途中になった状態の印刷データを外部入
力装置においてキャンセル(クリア)する必要を必要な
くし、その印刷データを画像処理装置で受信した場合に
おいても、画像処理装置で印刷データとして成り立つペ
ージ単位または部単位まで無効データとして処理するよ
うにして、画像処理装置が無駄な印刷をする恐れを防止
する。
As described above in detail, according to the invention described in this specification, when the print data is canceled by the image processing apparatus at the stage of receiving the print data, the transfer is performed by the external input device. Eliminates the need to cancel (clear) the print data in the external input device, and even if the print data is received by the image processing device, the image data is invalid up to the page unit or copy unit that is formed as the print data by the image processing device. Processing is performed as data to prevent the image processing apparatus from performing useless printing.

【0053】この結果、画像処理装置で印刷データをキ
ャンセルした場合に、外部入力装置の印刷データの転送
状況を考慮することなく、ページ単位または部単位で次
の印刷データを印刷することが可能になる。したがっ
て、外部入力装置からの転送途中になった状態の印刷デ
ータを、外部入力装置10において直接キャンセルして
クリアすることなく、次からの印刷データに対して画像
処理装置で正しい印刷動作が望めるようになる。
As a result, when the image processing apparatus cancels the print data, the next print data can be printed in page units or copy units without considering the transfer state of the print data of the external input device. Become. Therefore, the print data in the middle of the transfer from the external input device is not directly canceled and cleared in the external input device 10 so that the image processing device can expect a correct print operation for the next print data. become.

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

【図1】本発明の実施の形態例の概念的な構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing a conceptual configuration of an embodiment of the present invention.

【図2】本発明の実施の形態例のホストコンピュータか
らプリンタへ転送される印刷データの構成例を示す説明
図である。
FIG. 2 is an explanatory diagram illustrating a configuration example of print data transferred from a host computer to a printer according to an embodiment of the present invention.

【図3】本発明の実施の形態例プリンタがホストからの
印刷データをどのように処理するかをあらわしたフロー
チャートである。
FIG. 3 is a flowchart illustrating how a printer processes print data from a host according to an embodiment of the present invention.

【図4】本発明の実施の形態例プリンタがホストからの
印刷データをどのように処理するかをあらわしたフロー
チャートである。
FIG. 4 is a flowchart illustrating how a printer processes print data from a host according to an embodiment of the present invention.

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

10 外部入力装置 20 画像処理装置 30 外部インタフェース 40 データ解析手段 50 操作部 60 データ設定手段 70 データ処理手段 80 データ記憶手段 90 プリントエンジン Reference Signs List 10 external input device 20 image processing device 30 external interface 40 data analysis means 50 operation unit 60 data setting means 70 data processing means 80 data storage means 90 print engine

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 印刷データに付加されたページ単位及び
部単位の区切りをあらわすデータであるかを解析するデ
ータ解析手段と、 前記解析手段に対してページ単位または部単位の区切り
をあらわすデータのどちらを検知するかを設定するデー
タ設定手段と、 外部入力装置から外部インターフェースを介して入力さ
れる印刷データを画像処理装置にてデータの印刷キャン
セルを行い記憶手段に存在するデータのクリアを行った
場合に、次回から受信する印刷データに対し、前記デー
タ設定手段で選択されたページ単位または部単位の区切
りをあらわすデータを前記データ解析手段が検知するま
で無効データとして処理するデータ処理手段と、 を備えたことを特徴とする画像処理装置。
1. A data analysis means for analyzing whether the data is data representing a page unit or a copy unit added to print data, and data representing a page unit or a copy unit for the analysis means. Data setting means for setting whether or not to detect, and when the print processing of the print data input from the external input device via the external interface is canceled by the image processing apparatus and the data existing in the storage means is cleared. Data processing means for processing data representing a page or copy unit selected by the data setting means for the print data received from the next time as invalid data until the data analysis means detects the data. An image processing apparatus characterized in that:
【請求項2】 外部から入力される印刷データを画像処
理装置にて展開処理中に、印刷キャンセルの操作によっ
て展開処理中のデータのクリアを行う場合に、 印刷キャンセルの操作の後に外部から受信する印刷デー
タに対し、ページ単位または部単位の区切りをあらわす
データを検知し、 この区切りをあらわすデータを検知するまでを無効デー
タとして処理する、ことを特徴とする画像処理装置の制
御方法。
2. When print data input from the outside is cleared by a print cancel operation while the print data is being processed by the image processing apparatus, the data is received from the outside after the print cancel operation. A method for controlling an image processing apparatus, comprising detecting data representing a page-by-page or copy-by-page break in print data, and processing data until the data representing the break is detected as invalid data.
【請求項3】 前記外部入力装置と直接接続またはネッ
トワーク接続のいずれかで接続されたことを特徴とする
請求項1記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the image processing apparatus is connected to the external input device by one of a direct connection and a network connection.
JP10138311A 1998-05-20 1998-05-20 Image-processing apparatus and its control method Pending JPH11321036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10138311A JPH11321036A (en) 1998-05-20 1998-05-20 Image-processing apparatus and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10138311A JPH11321036A (en) 1998-05-20 1998-05-20 Image-processing apparatus and its control method

Publications (1)

Publication Number Publication Date
JPH11321036A true JPH11321036A (en) 1999-11-24

Family

ID=15218929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10138311A Pending JPH11321036A (en) 1998-05-20 1998-05-20 Image-processing apparatus and its control method

Country Status (1)

Country Link
JP (1) JPH11321036A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003050678A (en) * 2001-08-07 2003-02-21 Naltec Inc Peripheral equipment and method for controlling the same
JP2010000688A (en) * 2008-06-20 2010-01-07 Murata Mach Ltd Network printer and program therefor
US8494309B2 (en) 2005-08-08 2013-07-23 Sharp Kabushiki Kaisha Data processing apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003050678A (en) * 2001-08-07 2003-02-21 Naltec Inc Peripheral equipment and method for controlling the same
JP4625598B2 (en) * 2001-08-07 2011-02-02 ナルテック株式会社 Peripheral equipment
US8494309B2 (en) 2005-08-08 2013-07-23 Sharp Kabushiki Kaisha Data processing apparatus
JP2010000688A (en) * 2008-06-20 2010-01-07 Murata Mach Ltd Network printer and program therefor

Similar Documents

Publication Publication Date Title
JPH11321036A (en) Image-processing apparatus and its control method
US5446832A (en) Printing method and apparatus
JP4400097B2 (en) Printing apparatus, printing control method, program, and recording medium
JP2904359B2 (en) Printing device and print control device
JP7102959B2 (en) Printing equipment and printing method
JPS62235631A (en) Print controller
JP2006130816A (en) Image forming device
JP2744025B2 (en) Printing control device
JP3073921B2 (en) Print control device and data processing method of print control device
JP3046478B2 (en) Printing apparatus and printing method
JP3290787B2 (en) Printing apparatus and print processing method
JP2965342B2 (en) Color image processing system
JP2003076521A (en) Computer readable port monitor program
JP2006123261A (en) Printing apparatus and printing method
JP2927189B2 (en) Printer interface device
JP2001071589A (en) Image forming apparatus
JPH11227303A (en) Printing apparatus
JP2000289297A (en) Printer and printing system
JPH05216598A (en) Data input method and recording device using the same
JP2002370429A (en) Recorder, method of controlling recording thereof and network recording system
JPH10326166A (en) Printer device
JPH0592647A (en) Printer
JPH11249853A (en) Image forming device
JP2006150690A (en) Image forming device
JPH10177462A (en) Page printer controller