JPH0740634A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH0740634A JPH0740634A JP5190368A JP19036893A JPH0740634A JP H0740634 A JPH0740634 A JP H0740634A JP 5190368 A JP5190368 A JP 5190368A JP 19036893 A JP19036893 A JP 19036893A JP H0740634 A JPH0740634 A JP H0740634A
- Authority
- JP
- Japan
- Prior art keywords
- data
- job
- printer
- buffer
- reception buffer
- 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
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、プリンタに関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer.
【0002】[0002]
【従来の技術】ホスト装置からプリンタへデータを送信
して印刷を行なう場合、従来のプリンタでは、ホストか
らプリンタへ送信されるデータはプリンタが逐一順次処
理を行なえる形でのデータであって、ホスト装置が要求
したジョブの開始、終了の情報は含まれておらず、どこ
からどこまでが、ホストにとっての、あるいはアプリケ
ーションにとっての一つのジョブとなっているかはプリ
ンタ側から認識できなかった。2. Description of the Related Art When data is transmitted from a host device to a printer for printing, in the conventional printer, the data transmitted from the host to the printer is data that the printer can perform sequentially. The information on the start and end of the job requested by the host device is not included, and it is not possible for the printer side to recognize where the job is for the host or the application.
【0003】[0003]
【発明が解決しようとする課題】このような従来のプリ
ンタでは、受信したデータに対して、プリンタ側ではジ
ョブ単位でのデータの操作が出来なかった。このため、 1.ホスト装置から一旦送信をはじめたジョブは、ホス
ト側でのジョブの中止(データ送信の中止)を行なわな
い限り、プリンタ側では中止できない。In such a conventional printer, the data cannot be manipulated on a job-by-job basis on the printer side with respect to the received data. Therefore, 1. A job once sent from the host device cannot be canceled on the printer side unless the host cancels the job (stops data transmission).
【0004】2.プリンタの受信バッファ上に一旦記憶
保持されたデータは、全て解析され解析結果にしたがっ
て印刷制御を行なうか、もしくは受信バッファ上のデー
タを全て消去するか、の二通りしかプリンタ側で可能な
処理はなく、現在処理中のジョブを中止するためにバッ
ファ上の現在のジョブのデータのみを消去したり、受信
中のデータを現在のジョブの終了まで無視することはで
きないといった問題点があった。2. All the data once stored and held in the printer's receive buffer is analyzed and either the print control is performed according to the analysis result, or all the data in the receive buffer is deleted. However, there is a problem that only the data of the current job in the buffer can be deleted to cancel the job currently being processed, and the data being received cannot be ignored until the end of the current job.
【0005】そこで本発明の目的は以上のような問題を
解消したプリンタを提供することにある。Therefore, an object of the present invention is to provide a printer that solves the above problems.
【0006】[0006]
【課題を解決するための手段および作用】上記目的を達
成するため本発明はジョブの開始、終了のデータが付加
されたデータを受信し記憶保持する記憶手段と、該記憶
手段上のデータ、および受信中のジョブのデータにジョ
ブ単位の操作を要求する要求入力手段と、前記記憶手段
に記憶されたデータを解析する解析手段と、該解析手段
による解析の結果に基づいて、前記データに関する印刷
を制御する制御手段とを有することを特徴とする。これ
によって、プリンタ側でジョブ単位の印刷の中止が行な
える。In order to achieve the above object, the present invention provides a storage means for receiving and storing data to which job start and end data is added, data on the storage means, and Request input means for requesting the operation of each job for the data of the job being received, analysis means for analyzing the data stored in the storage means, and printing of the data based on the analysis result by the analysis means. It has a control means to control. As a result, the printing can be stopped for each job on the printer side.
【0007】[0007]
【実施例】次に、本発明について図面を参照して詳細に
説明する。The present invention will be described in detail with reference to the drawings.
【0008】図1は、本発明の一実施例のブロック図で
ある。ホスト装置において、システム1.1から要求さ
れたプリント要求は、1.2のプリンタドライバによっ
てプリンタの制御コードに変換され、プリンタへ送信さ
れる。プリンタにおいては、この送信データは1.3の
受信バッファに記憶保持され、1.4のデータ解析部に
順次読み込まれる。データ解析部1.4で解析した結果
を1.5の印刷制御部に伝え、要求された印刷動作等を
行なう。1.6の入力部はジョブ単位の印刷の中止を行
なうためにプリンタに設けられた入力手段である。FIG. 1 is a block diagram of an embodiment of the present invention. In the host device, the print request requested from the system 1.1 is converted into a printer control code by the printer driver 1.2 and transmitted to the printer. In the printer, this transmission data is stored and held in the reception buffer of 1.3 and sequentially read by the data analysis unit of 1.4. The result analyzed by the data analysis unit 1.4 is transmitted to the print control unit 1.5, and the requested printing operation or the like is performed. An input unit 1.6 is an input unit provided in the printer for canceling printing on a job basis.
【0009】本発明におけるプリンタの制御を実現する
ためには、 1.システムがプリンタドライバに対してジョブの開
始、終了の情報を提供すること 2.プリンタドライバがジョブの開始、終了の情報をプ
リンタへ提供すること 3.プリンタがプリンタドライバから受信したジョブの
開始、終了を示すコマンドを認識できることが必要とな
る。本実施例では、これらのすべての条件が満たされる
場合とともに、いずれかが従来の方法に基づく場合にも
印刷処理が行なえる例を示す。In order to realize the control of the printer in the present invention, 1. 1. The system provides the job start / end information to the printer driver. 2. The printer driver provides job start and end information to the printer. It is necessary for the printer to be able to recognize the command indicating the start and end of the job received from the printer driver. In the present embodiment, an example is shown in which the printing process can be performed when all of these conditions are satisfied and when any one of them is based on the conventional method.
【0010】図2に、図1のプリンタドライバ1.2の
処理のフローチャートを示す。このフローチャートの示
す手順はホスト装置内のメモリに格納されており、実行
はホスト装置内のCPUが行う。ホスト装置において印
刷要求が発生すると、システムはプリンタドライバに対
してデータを送る。簡単のため、2.1でシステムから
渡されるデータは、プリンタに対して制御を行なうこと
のできる最小単位で渡されるものとする。この図2のプ
リンタドライバの処理はシステムから印刷データが送ら
れる度に繰り返し起動される。FIG. 2 shows a flowchart of the process of the printer driver 1.2 shown in FIG. The procedure shown in this flowchart is stored in the memory in the host device, and is executed by the CPU in the host device. When a print request is generated in the host device, the system sends data to the printer driver. For simplicity, the data passed from the system in 2.1 shall be passed in the smallest unit that can control the printer. The process of the printer driver of FIG. 2 is repeatedly started every time print data is sent from the system.
【0011】システムがジョブの開始、終了を示すデー
タを送信してきた場合には(2.2,2.3)、プリン
タドライバは、そのデータを開始、および終了を示すコ
マンドに変換し(2.4,2.6)、プリンタに送信す
る(2.7)。この際、従来の方法で動作するプリンタ
においても動作可能となるように、これらのコマンドは
従来の方法ではプリンタに何ら影響を与えないコマンド
とする。その他のデータはプリンタ制御コマンドに変換
し(2.5)、送信する(2.7)。このようにして、
プリンタに送信されるデータは、図3に示すように従来
のデータ中にジョブの境界を示すデータが挿入された形
になる。When the system sends data indicating the start and end of a job (2.2, 2.3), the printer driver converts the data into commands indicating start and end (2. 4, 2.6), and sends it to the printer (2.7). At this time, these commands have no effect on the printer in the conventional method so that the printer can operate in the conventional method. Other data is converted into a printer control command (2.5) and transmitted (2.7). In this way
The data transmitted to the printer has a form in which the data indicating the boundary of the job is inserted into the conventional data as shown in FIG.
【0012】なお、システムがジョブの開始、終了の情
報をプリンタドライバに送信してこない場合には、プリ
ンタドライバは従来のジョブを認識しない形でのデータ
の送信を行なう。When the system does not send job start / end information to the printer driver, the printer driver sends data in a form that does not recognize a conventional job.
【0013】図4に、図1のデータ解析部1.4におけ
る処理のフローチャートを示す。データ解析部1.4は
図4に示す手順を格納したROM、データの一時記憶領
域を有するRAM、およびこれを実行するCPUを有す
る。データ解析部は受信バッファ上に未処理のデータが
存在する状態で起動される。簡単のため、受信バッファ
から読み込むデータは、プリンタが制御を行なうための
最小独立単位であるコマンド(パラメータ等がある場合
はそれも含める)ごとに取り出せるものとする。図1の
入力部1.6では、従来のプリンタが行なえる機能であ
るオフライン、受信バッファ上のデータの消去等に加
え、現在処理中のジョブの中止の命令が入力できる。F
LAG1は印刷の中止命令を示すデータで、プリンタが
内部に持っている変数である。初期値はOFFで、1.
6の入力部からジョブの中止入力があった場合にはON
にセットされる。FLAG2はホストから送られてくる
データが、ジョブを認識するコマンド形式でデータが送
られてきている場合にセットされる変数であり、初期値
はOFFである。FIG. 4 shows a flowchart of processing in the data analysis unit 1.4 of FIG. The data analysis unit 1.4 has a ROM that stores the procedure shown in FIG. 4, a RAM that has a temporary storage area for data, and a CPU that executes this. The data analysis unit is activated with unprocessed data existing in the reception buffer. For simplicity, the data read from the reception buffer can be taken out for each command (including parameters, if any) that is the smallest independent unit for the printer to control. The input unit 1.6 of FIG. 1 can input a command to cancel a job currently being processed, in addition to a function that a conventional printer can perform, such as off-line, erasing data on a reception buffer, and the like. F
LAG1 is data indicating an instruction to stop printing, and is a variable that the printer internally has. The initial value is OFF and 1.
ON when there is a job cancel input from the input section of 6
Is set to. FLAG2 is a variable that is set when the data sent from the host is sent in the command format for recognizing the job, and the initial value is OFF.
【0014】4.1ではFLAG1を調べる。OFFの
場合は受信バッファに未処理のデータがあれば(4.
2)データを読み込み(4.3)、ジョブの開始を示す
データであれば(4.4)FLAG2をONにし(4.
6)、4.1にもどる。読み込んだデータがジョブの終
了を示すデータであれば(4.5)、FLAG2をOF
Fにし(4.7)、4.1にもどる。どちらでもなけれ
ばプリンタ制御コードとみなし、解析し(4.8)た結
果に基づいてプリンタの制御を行ない(4.9)、4.
1にもどる。この処理を受信バッファ上に未処理データ
がなくなるまで繰り返し行なう。なお、バッファ上にデ
ータがなくなった場合には処理は終了するが、各FLA
Gの値は記憶しておく。In 4.1, FLAG1 is checked. When it is OFF, if there is unprocessed data in the reception buffer (4.
2) Read the data (4.3), and if the data indicates the start of the job (4.4), set FLAG2 to ON (4.
6) Return to 4.1. If the read data is data indicating the end of the job (4.5), set FLAG2 to OF.
Set to F (4.7) and return to 4.1. If neither, it is regarded as a printer control code, and the printer is controlled based on the result of analysis (4.8) (4.9), 4.
Return to 1. This process is repeated until there is no unprocessed data in the receive buffer. When there is no more data in the buffer, the process ends, but each FLA
The value of G is stored.
【0015】4.1でFLAG1がONの場合は排紙等
の印刷終了処理を行なう(4.10)。そしてFLAG
2を調べ(4.11)、ONならばジョブの終了コマン
ドが来るまで、受信バッファ上のデータを読み飛ばして
いく(4.12,4.13,4.14)。受信バッファ
上に未処理のデータがなくなった場合には(4.1
2)、各FLAGの値を記憶し、処理を終了する。終了
コマンドを読み込んだ場合には(4.14)、FLAG
1、FLAG2をOFFにし(4.15,4.16)、
4.1へ戻る。FLAG1がONでFLAG2がOFF
の場合には(4.1,4.10,4.11)、ジョブを
認識できない形式でのデータの受信中であるので、現在
の受信バッファ上のデータを消去し(4.17)、FL
AG1をOFFにして(4.16)4.1へ戻る。If the FLAG1 is ON in 4.1, the print end processing such as paper discharge is performed (4.10). And FLAG
2 is checked (4.11), and if it is ON, the data in the reception buffer is skipped until a job end command arrives (4.12, 4.13, 4.14). When there is no unprocessed data in the receive buffer (4.1
2), the value of each FLAG is stored, and the process ends. If the end command is read (4.14), FLAG
1. Turn off FLAG2 (4.15, 4.16),
Return to 4.1. FLAG1 is ON and FLAG2 is OFF
In the case of (4.1, 4.10, 4.11), since data in a format in which the job cannot be recognized is being received, the current data in the reception buffer is erased (4.17), and FL is set.
Turn off AG1 (4.16) and return to 4.1.
【0016】このようにして、ジョブの中止命令がプリ
ンタ側で入力された場合、以下のように機能する。In this way, when the job cancel instruction is input on the printer side, it functions as follows.
【0017】・ジョブを認識できる形式で受信中の場
合:現在のジョブのデータがバッファ上に全てある場合
には、現在のジョブのデータのみを読み捨てて、次のジ
ョブのデータから処理を継続する。現在のジョブのデー
タが受信中の場合には、受信バッファ上のデータを全て
読み捨て、更にホストから送られてきたデータが受信バ
ッファに書き込まれると、次々と読み捨てていき、次の
ジョブのデータから処理を継続する。When the job is being received in a format that can be recognized: When the data of the current job is all in the buffer, only the data of the current job is discarded and the processing is continued from the data of the next job. . When the data of the current job is being received, all the data in the receive buffer is read out, and when the data sent from the host is written in the receive buffer, it is read and discarded one after another, and the data of the next job is read. Continue processing.
【0018】・ジョブを認識できない従来の形式で受信
中の場合:現在のプリント処理を中止し、現在のプリン
トバッファ上のデータを消去する。これは、従来のプリ
ンタのリセット機能に該当する。When the job is being received in a conventional format that cannot be recognized: The current print processing is stopped and the data on the current print buffer is erased. This corresponds to the reset function of the conventional printer.
【0019】[他の実施例] 1.上記実施例におけるプリンタドライバによるジョブ
の開始、終了コマンドの付加、およびデータ解析部での
それらのコマンド処理は、プリンタ制御コマンドの仕様
としても実現できる。[Other Embodiments] 1. The job start and end command addition by the printer driver and their command processing in the data analysis unit in the above-described embodiment can be realized as printer control command specifications.
【0020】2.上記プリンタドライバの出力は、シス
テムやプリントスプーラであっても良い。2. The output of the printer driver may be a system or a print spooler.
【0021】3.プリントスプールを行なうシステムに
おいて、プリントスプーラの出力に対して、上記ジョブ
開始、終了コマンドの付加を行ない、同様に実現でき
る。3. In a system that performs print spooling, the above job start and end commands are added to the output of the print spooler, and the same effect can be achieved.
【0022】4.また、プリントスプールを行なうシス
テムにおいては、ジョブの開始、終了について更に明確
であるので、上記実施例におけるプリンタドライバのコ
マンド付加機能をプリントスプーラで行なってもよい。4. In addition, in a system that performs print spooling, since the start and end of a job are more clear, the command addition function of the printer driver in the above embodiment may be performed by the print spooler.
【0023】[0023]
【発明の効果】以上説明したように、従来の方式と共存
できる形で、プリンタにおいて現在印刷中のジョブの中
止が行なえるという効果がある。As described above, it is possible to cancel a job currently being printed in the printer in a form that can coexist with the conventional method.
【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】プリンタドライバでの処理を示すフローチャー
トである。FIG. 2 is a flowchart showing processing by a printer driver.
【図3】プリンタドライバが送信するデータを説明する
図である。FIG. 3 is a diagram illustrating data transmitted by a printer driver.
【図4】データ解析部の処理を示すフローチャートであ
る。FIG. 4 is a flowchart showing processing of a data analysis unit.
1.1 システム 1.2 プリンタドライバ 1.3 受信バッファ 1.4 データ解析部 1.5 印刷制御部 1.6 入力部 1.1 System 1.2 Printer Driver 1.3 Receive Buffer 1.4 Data Analysis Section 1.5 Print Control Section 1.6 Input Section
Claims (1)
たデータを受信し記憶保持する記憶手段と、該記憶手段
上のデータ、および受信中のジョブのデータにジョブ単
位の操作を要求する要求入力手段と、前記記憶手段に記
憶されたデータを解析する解析手段と、該解析手段によ
る解析の結果に基づいて、前記データに関する印刷を制
御する制御手段とを有することを特徴とするプリンタ。1. A storage unit for receiving and storing data to which data of start and end of a job is added, and a request for requesting an operation on a job basis for the data on the storage unit and the data of the job being received. A printer comprising: an input unit, an analyzing unit that analyzes data stored in the storage unit, and a control unit that controls printing of the data based on a result of analysis by the analyzing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5190368A JPH0740634A (en) | 1993-07-30 | 1993-07-30 | Printer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP5190368A JPH0740634A (en) | 1993-07-30 | 1993-07-30 | Printer |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0740634A true JPH0740634A (en) | 1995-02-10 |
Family
ID=16257022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP5190368A Pending JPH0740634A (en) | 1993-07-30 | 1993-07-30 | Printer |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0740634A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007189495A (en) * | 2006-01-13 | 2007-07-26 | Seiko Epson Corp | Printing system, print controller, printer, print job managing method, driver program, and recording medium where same program is recorded |
-
1993
- 1993-07-30 JP JP5190368A patent/JPH0740634A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007189495A (en) * | 2006-01-13 | 2007-07-26 | Seiko Epson Corp | Printing system, print controller, printer, print job managing method, driver program, and recording medium where same program is recorded |
JP4600300B2 (en) * | 2006-01-13 | 2010-12-15 | セイコーエプソン株式会社 | Printing system, printing apparatus, and print job management method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7515286B2 (en) | Printer, control method for the same, and control device | |
US6674535B1 (en) | Technique for processing print data | |
JP3165268B2 (en) | Print information processing method and apparatus | |
US6493101B1 (en) | Program management apparatus and method, and program product therefor | |
US20040004739A1 (en) | Printer system, printer, printer control method | |
JPH0740634A (en) | Printer | |
US6862100B2 (en) | Determining a type of print data to be sent to a printer based on the number of unprocessed files residing in a print queue | |
US8289533B2 (en) | Printing system and printing method for increasing efficiency by selectively rasterizing print data in either a host device or a print device | |
US6724496B1 (en) | Remote print job processing | |
US20040085564A1 (en) | Image forming systems and image forming methods | |
JP3129679B2 (en) | Printer | |
US6052199A (en) | Printer control device and a method of controlling a printer | |
US6397265B1 (en) | Print control apparatus for communicating with a selected external apparatus to control a printer | |
KR100571960B1 (en) | Apparatus and method for controlling image forming apparatus | |
JPH10105348A (en) | Printer controller, printer control method and storage medium storing program readable by computer | |
KR100532095B1 (en) | Method for managing font in printer | |
JPH10244713A (en) | Printer apparatus | |
JPH0811396A (en) | Printer and method for processing reset of the same | |
JPH09282114A (en) | Printing system | |
JPH03214228A (en) | Control system for serial printer | |
JPH0664252A (en) | Printing equipment having emulation mode | |
JPH07164688A (en) | Printer | |
KR19990086877A (en) | Print data processing method and apparatus of an image forming apparatus | |
JPH04140182A (en) | Printer | |
KR20010084651A (en) | Apparatus and method for reprinting the printed documents in pc |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040213 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040413 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050401 |
|
RD13 | Notification of appointment of power of sub attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7433 Effective date: 20050511 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050601 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20050511 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20050701 |
|
A912 | Removal of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20050930 |