JPH1199730A - Printer and its control method - Google Patents
Printer and its control methodInfo
- Publication number
- JPH1199730A JPH1199730A JP9264598A JP26459897A JPH1199730A JP H1199730 A JPH1199730 A JP H1199730A JP 9264598 A JP9264598 A JP 9264598A JP 26459897 A JP26459897 A JP 26459897A JP H1199730 A JPH1199730 A JP H1199730A
- Authority
- JP
- Japan
- Prior art keywords
- print data
- data
- unit
- printing
- storage
- 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.)
- Withdrawn
Links
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、例えばホストコン
ピュータに直接、またはネットワーク等を介して接続さ
れ、受信したデータを基に印刷処理等を実行する印刷装
置及びその制御方法に関する。[0001] 1. Field of the Invention [0002] The present invention relates to a printing apparatus which is connected to, for example, a host computer directly or via a network and executes a printing process based on received data and a control method thereof.
【0002】[0002]
【従来の技術】従来の印刷装置では、インタフェースケ
ーブルが外れたりホストコンピュータの電源が切断され
るなどによりデータ受信が中断してしまった場合、既に
受信したデータを処理しおえるまで処理を継続した。2. Description of the Related Art In a conventional printing apparatus, when data reception is interrupted due to disconnection of an interface cable or power off of a host computer, the processing is continued until already received data can be processed.
【0003】[0003]
【発明が解決しようとする課題】そのため、受信したデ
ータが不完全な状態になった場合に、その不完全なデー
タを全て処理してしまい、それが印刷データであれば無
駄な印刷処理を行なったり、環境設定であれば不正な動
作環境を印刷装置に設定してしまったりする問題があっ
た。Therefore, when the received data becomes incomplete, all the incomplete data is processed. If the received data is print data, useless print processing is performed. Also, there is a problem that an incorrect operating environment is set in the printing apparatus if the environment is set.
【0004】さらにその場合、処理されたデータが中途
半端な位置で途切れていたりする場合、再接続後にホス
トコンピュータからあらためて受信したデータが誤って
解釈されてしまい、意味のない印刷出力を行ったり、使
用者の意図とかけ離れた設定が成されてしまうことにも
なりかねなかった。Further, in such a case, if the processed data is interrupted at a halfway position, data re-received from the host computer after reconnection is erroneously interpreted, and a meaningless printout is performed. This could have resulted in settings that were far from the user's intention.
【0005】本発明は上記従来例に鑑みて成されたもの
で、データ受信が中断された場合に、半端なデータを処
理することに起因する無駄あるいは不正な動作を防止し
た印刷装置及びその制御方法を提供することを目的とす
る。SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned prior art, and a printing apparatus and a control thereof for preventing wasteful or illegal operation caused by processing odd data when data reception is interrupted. The aim is to provide a method.
【0006】さらに、データ受信が中断されても、完結
した受信データに対しては正常に処理を完了することが
できる印刷装置及びその制御方法を提供することを目的
とする。It is still another object of the present invention to provide a printing apparatus and a control method thereof that can normally complete processing of completed received data even when data reception is interrupted.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に本発明の印刷装置及びその制御方法は次のような構成
から成る。すなわち、受信した印刷データを基に印刷す
る印刷装置であって、外部装置から印刷データを受信す
る受信手段と、受信した印刷データを格納する格納手段
と、前記受信手段により正常に印刷データが受信されて
いるか判定する判定手段と、前記判定手段により正常で
はないと判定された場合、前記格納手段により格納され
る印刷データを削除する削除手段とを備える。In order to achieve the above object, a printing apparatus and a control method thereof according to the present invention have the following arrangement. That is, a printing apparatus that prints based on received print data, a receiving unit that receives print data from an external device, a storage unit that stores the received print data, and that the print data is normally received by the receiving unit. Determining means for determining whether the print data has been deleted, and deleting means for deleting the print data stored by the storing means when the determining means determines that the print data is not normal.
【0008】あるいは、受信手段により受信した印刷デ
ータを基に印刷する印刷装置の制御方法であって、受信
した印刷データを格納手段に格納する格納工程と、前記
受信手段により正常に印刷データが受信されているか判
定する判定工程と、前記判定工程により正常ではないと
判定された場合、前記格納手段により格納される印刷デ
ータを削除する削除工程とを備える。Alternatively, there is provided a control method of a printing apparatus for printing based on print data received by a receiving means, wherein a storing step of storing the received print data in a storing means; And a deletion step of deleting the print data stored by the storage means when the determination result indicates that the print data is not normal.
【0009】あるいは、受信した印刷データを基に印刷
する印刷装置を制御するプログラムを格納するコンピュ
ータ可読の記憶媒体であって、前記プログラムは、外部
装置から印刷データを受信する受信コード手段と、受信
した印刷データを格納する格納コード手段と、前記受信
コード手段により正常に印刷データが受信されているか
判定する判定コード手段と、前記判定コード手段により
正常ではないと判定された場合、前記格納コード手段に
より格納される印刷データを削除する削除コード手段と
を備える。Alternatively, there is provided a computer-readable storage medium for storing a program for controlling a printing apparatus for printing based on received print data, the program comprising: reception code means for receiving print data from an external device; Storage code means for storing the print data obtained, determination code means for determining whether the print data is normally received by the reception code means, and storage code means for determining that the print data is not normal by the determination code means. And delete code means for deleting the print data stored by.
【0010】[0010]
[第1の実施の形態] <印刷装置の構成>本発明の実施例を説明する前に、実
施例を適用するに好適なレーザビームプリンタの構成に
ついて図1を参照しながら説明する。なお、実施例を適
用するプリンタは、レーザビームプリンタに限られるも
のではなく、例えばインクジェットプリンタといった他
のプリント方式のプリンタでも良い。First Embodiment <Configuration of Printing Apparatus> Before describing an embodiment of the present invention, a configuration of a laser beam printer suitable for applying the embodiment will be described with reference to FIG. The printer to which the embodiment is applied is not limited to a laser beam printer, but may be a printer of another printing method such as an ink jet printer.
【0011】図1は本発明を適用可能な印刷装置の断面
図である。図1は例としてレーザビームプリンタ(LB
P)の場合を示す。図において、LBP本体1000
は、外部に接続されているホストコンピュータから供給
される印刷情報(文字コード等)やフォーム情報あるい
はマクロ命令等を入力して記憶するとともに、それらの
情報に従って対応する文字パターンやフォームパターン
等を作成し、記録媒体である記録紙等に像を形成する。FIG. 1 is a sectional view of a printing apparatus to which the present invention can be applied. FIG. 1 shows a laser beam printer (LB) as an example.
P). In the figure, the LBP main body 1000
Inputs and stores print information (character codes, etc.), form information, macro instructions, etc., supplied from an externally connected host computer, and creates corresponding character patterns, form patterns, etc. according to the information. Then, an image is formed on a recording medium such as recording paper.
【0012】操作パネル1012には、操作のためのス
イッチおよびLED表示器等が配されている。制御ユニ
ット1001は、LBP本体1000全体の制御および
ホストコンピュータから供給される文字情報等を解析す
る。このプリンタ制御ユニット1001は、主に文字情
報を村応する文字パターンのビデオ信号に変換してレー
ザドライバ1002に出力する。レーザドライバ100
2は半導体レーザ1003を駆動するための回路であ
り、入力されたビデオ信号に応じて半導体レーザ1α)
3から発射されるレーザ光1004をオン・オフ切り扱
えする。レーザ光1004は回転多面境1005で左右
方向に振らされて静電ドラム1006上を走査露光す
る。これにより、静電ドラム1006上には文字パター
ンの静電潜像が形成されることになる。The operation panel 1012 is provided with switches for operation, an LED display, and the like. The control unit 1001 controls the entire LBP main body 1000 and analyzes character information and the like supplied from the host computer. The printer control unit 1001 mainly converts character information into a video signal having a corresponding character pattern and outputs the video signal to the laser driver 1002. Laser driver 100
Reference numeral 2 denotes a circuit for driving the semiconductor laser 1003, and the semiconductor laser 1α according to the input video signal.
3 can be turned on and off. The laser beam 1004 is swung in the left-right direction at the multi-plane boundary 1005 and scans and exposes the electrostatic drum 1006. As a result, an electrostatic latent image of a character pattern is formed on the electrostatic drum 1006.
【0013】この潜像は、静電ドラム1006周囲に配
設された現像ユニット1007により現像された後、記
録紙に転写される。この記録紙にはカットシートが用い
られる。カットシート記録紙はLBPl000に装着し
た用紙カセット1008に収納され、給紙ローラ100
9および搬送ローラ1010と搬送ローラ1011とに
より装置内に取り込まれて、静電ドラム1006に供給
される。またLBP本体1000には、図示しないカー
ドスロットを少なくとも1個以上備え、内蔵フォントに
加えてオプションフォントカード,言語系の異なる制御
カード(エミュレーションカード)を接続できるように
構成されている。The latent image is developed by a developing unit 1007 disposed around the electrostatic drum 1006, and then transferred to a recording sheet. A cut sheet is used for the recording paper. The cut sheet recording paper is stored in a paper cassette 1008 mounted on the LBP1000,
9 and transport rollers 1010 and 1011, are taken into the apparatus and supplied to the electrostatic drum 1006. The LBP main body 1000 is provided with at least one or more card slots (not shown) so that an optional font card and a control card (emulation card) having a different language system can be connected in addition to the built-in fonts.
【0014】この図1に示したレーザプリンタは、印刷
システムの印刷機構部の役割を担う。この印刷機構部の
他に印刷システムを実現するためには、図1で図示して
いない印刷情報などを生成してレーザプリンタに供給す
るホストコンピュータが必要である。The laser printer shown in FIG. 1 plays a role of a printing mechanism of a printing system. In order to realize a printing system other than the printing mechanism, a host computer which generates printing information and the like (not shown in FIG. 1) and supplies it to the laser printer is required.
【0015】図2は図1のレーザビームプリンタを用い
た印刷システムのブロック図である。図において、ホス
トコンピュータ3000は、ROM3のプログラム用R
OMに記憶された文書処理プログラム等に基づいて、図
形,イメージ,文字,表(表計算等を含む)等が混在し
た文書処理を実行するCPU1を備える。CPU1はシ
ステムデバイス4に接続される各デバイスをCPU1が
総括的に制御する。また、ROM3のプログラム用RO
Mには、CPU1の制御プログラム等が記憶され、RO
M3のフォント用ROMには上記文書処理の際に使用す
るフォントデータ等が記憶され、ROM3のデータ用R
OMは上記文書処理等を行う際に使用する各種データが
記憶される。RAM2は、CPU1の主メモリ,ワーク
エリア等として機能する。FIG. 2 is a block diagram of a printing system using the laser beam printer of FIG. In the figure, a host computer 3000 stores a program R in a ROM 3.
A CPU 1 is provided for executing document processing in which graphics, images, characters, tables (including spreadsheets, etc.) are mixed based on a document processing program or the like stored in the OM. The CPU 1 controls each device connected to the system device 4 as a whole. RO3 for program in ROM3
M stores a control program of the CPU 1 and the like.
In the font ROM of M3, font data and the like used in the above document processing are stored.
The OM stores various data used when performing the document processing and the like. The RAM 2 functions as a main memory, a work area, and the like for the CPU 1.
【0016】キーボードコントローラ(KBC)5は、
キーボード9や不図示のポインティングデバイスからの
キー入力を制御する。CRTコントローラ(CRTC)
6は、CRTディスプレイ(CRT)10の表示を制御
する。メモリコントローラ(MC)7は、プートプログ
ラム,種々のアプリケーション,フォントデータ,ユー
ザファイル,編集ファイル等を記憶するハードディスク
(HD)、フロッピーディスク(FD)等の外部メモリ
11とのアクセスを制御する。プリンタコントローラ
(PRTC)8は、所定の双方向性インタフェース(イ
ンタフェース)21を介してプリンタ1500に接続さ
れて、プリンタ1000との通信制御処理を実行する。
なお、CPU1は、例えばRAM2上に設定された表示
情報RAMへのアウトラインフォントの展開(ラスタラ
イズ)処理を実行し、CRT10上でのWYSIWYG
を可能としている。また、CPU1は、CRT10上の
不図示のマウスカーソル等で指示されたコマンドに基づ
いて登録された種々のウィンドウを開き、種々のデータ
処理を実行する。The keyboard controller (KBC) 5
It controls key input from a keyboard 9 or a pointing device (not shown). CRT controller (CRTC)
6 controls the display of a CRT display (CRT) 10. The memory controller (MC) 7 controls access to an external memory 11 such as a hard disk (HD) that stores a put program, various applications, font data, user files, edited files, and the like, and a floppy disk (FD). The printer controller (PRTC) 8 is connected to the printer 1500 via a predetermined bidirectional interface (interface) 21, and executes a communication control process with the printer 1000.
The CPU 1 executes, for example, a process of developing (rasterizing) the outline font in the display information RAM set on the RAM 2, and performs WYSIWYG processing on the CRT 10.
Is possible. Further, the CPU 1 opens various registered windows based on commands specified by a mouse cursor or the like (not shown) on the CRT 10 and executes various data processing.
【0017】プリンタ1000において、プリンタCP
U12は、ROM13のプログラム用ROMに記憶され
た制御プログラム等或いは外部メモリ14に記憶された
制御プログラム等に基づいてシステムバス15に接続さ
れる各種のデバイスとのアクセスを総括的に制御し、印
刷部インタフェース16を介して接続される印刷部(プ
リンタエンジン)17に出力情報としての画像信号を出
力する。また、このROM13のプログラムROMに
は、図3、4のフローチャートで示されるようなCPU
12の制御プログラム等が記憶される。ROM13のフ
ォント用ROMには上記出力情報を生成する際に使用す
るフォントデータ等が記憶され、ROM13のデータ用
ROMには、ハードディスク等の外部メモリ14が無い
プリンタの場合には、ホストコンピュータ上で利用され
る情報等が記憶されている。CPU12は入力部18を
介してホストコンピュータとの通信処理が可能となって
おり、プリンタ内の情報等をホストコンピュータ300
0に通知可能に構成されている。In the printer 1000, the printer CP
The U 12 comprehensively controls access to various devices connected to the system bus 15 based on a control program or the like stored in a program ROM of the ROM 13 or a control program or the like stored in the external memory 14, and performs printing. An image signal as output information is output to a printing unit (printer engine) 17 connected via a unit interface 16. The program ROM of the ROM 13 includes a CPU as shown in the flowcharts of FIGS.
Twelve control programs and the like are stored. Font data and the like used when generating the output information are stored in the font ROM of the ROM 13. The data ROM of the ROM 13 is provided on the host computer when the printer does not have the external memory 14 such as a hard disk. Information to be used is stored. The CPU 12 can perform communication processing with the host computer via the input unit 18, and transmits information in the printer to the host computer 300.
0 can be notified.
【0018】RAM19は、CPU12の主メモリ、ワ
ークエリア等として機能するRAMで、図示しない増設
ポートに接続されるオプションRAMによりメモリ容量
を拡張することができるように構成されている。なお、
RAM19は、出力情報展開領域、環境データ格納領
域、NVRAM等に用いられる。また、後述するバッフ
ァメモリ191もRAM19に確保される。The RAM 19 functions as a main memory, a work area, and the like for the CPU 12, and is configured so that the memory capacity can be expanded by an optional RAM connected to an unillustrated expansion port. In addition,
The RAM 19 is used for an output information development area, an environment data storage area, an NVRAM, and the like. Further, a buffer memory 191 described later is also secured in the RAM 19.
【0019】前述したハードディスク(HD)、ICカ
ード等の外部メモリ14は、メモリコントローラ(M
C)20によりアクセスを制御される。外部メモリ14
は、オプションとして接続され、フォントデータ、エミ
ュレーションプログラム、フォームデータ等を記憶す
る。また、操作パネル18には、操作のためのスイッチ
およびLED表示器等が配されている。また、前述した
外部メモリは1個に限らず、少なくとも1個以上備え、
内蔵フォントに加えてオプションフォントカード,言語
系の異なるプリンタ制御言語を解釈するプログラムを格
納した外部メモリを複数接続できるように構成されてい
ても良い。さらに、図示しないNVRAMを有し、操作
パネル1012からのプリンタモード設定情報を記憶す
るようにしても良い。 <異常発生時の制御手順>このように構成されたプリン
タ制御システムにおける、ホストコンピュータとの通信
の切断等による異常発生時の制御手順を説明する。The external memory 14 such as a hard disk (HD) or an IC card is provided with a memory controller (M
C) Access is controlled by 20. External memory 14
Is connected as an option and stores font data, emulation programs, form data, and the like. The operation panel 18 is provided with switches for operation, an LED display, and the like. Further, the above-mentioned external memory is not limited to one, and at least one or more is provided,
In addition to the built-in fonts, an optional font card and a plurality of external memories storing programs for interpreting printer control languages of different languages may be connected. Further, an NVRAM (not shown) may be provided to store the printer mode setting information from the operation panel 1012. <Control Procedure when an Error Occurs> A control procedure when an error occurs due to disconnection of communication with the host computer or the like in the printer control system thus configured will be described.
【0020】本実施形態の印刷装置は、ホストコンピュ
ータ3000とプリンタ1000とを接続するインタフ
ェース21としてセントロクス・インタフェースを用い
るものとする。このセントロニクス・インタフェース
(正確にはIEEE1284−Cコネクタ)の場合、1
8番ピンがハイレベルなら正常にホストコンピュータと
接続されている状態である。一方18番ピンがローレベ
ルなら、ホストコンピュータの電源が切断されか、ホス
トコンピュータのインタフェース・コントロールに異常
が発生したか、入力部18からインタフェース21のコ
ネクタ(本実施形態の場合は、セントロニクス・インタ
フェース・コネクタ)が外れるなど、インタフェース2
1は正常な通信可能状態ではないと判断できる。The printing apparatus of this embodiment uses a Centrox interface as the interface 21 for connecting the host computer 3000 and the printer 1000. In the case of this Centronics interface (to be precise, IEEE1284-C connector), 1
If the No. 8 pin is at a high level, it is in a state of being normally connected to the host computer. On the other hand, if the 18th pin is at a low level, the power of the host computer is turned off, an error occurs in the interface control of the host computer, or the connector of the interface 21 from the input unit 18 (in this embodiment, the Centronics interface・ Interface 2 such as disconnection of connector)
It can be determined that 1 is not in a normal communicable state.
【0021】また印刷装置1000は、インタフェース
21を介して受信したデータを一旦バッファメモリ19
1に保管する。本実施例では、バッファメモリ191
は、RAM19上に必要に応じて適切なサイズで確保さ
れたメモリ領域であり、リングバッファ構造を有してい
る。リングバッファ構造は、リングバッファ用に確保し
たメモリ領域の先頭アドレスと終端アドレスを記憶し、
更にリングバッファ構造内に格納する、または格納され
たデータに関するデータ読み出し位置アドレスとデータ
挿入位置アドレスを記憶することで、時系列的にデータ
を読み書きすることを可能にするものである。The printing apparatus 1000 temporarily stores the data received via the interface 21 in the buffer memory 19.
Store in 1. In the present embodiment, the buffer memory 191
Is a memory area secured in the RAM 19 with an appropriate size as needed, and has a ring buffer structure. The ring buffer structure stores the start address and end address of the memory area reserved for the ring buffer,
Further, by storing a data read position address and a data insertion position address of data stored or stored in the ring buffer structure, data can be read and written in a time series.
【0022】図3のフローチャートは、インタフェース
21の状態を監視し正常な通信可能状態でないことを検
知したら、バッファメモリ内のデータを削除する処理の
流れを説明したものである。データを受信してバッファ
メモリに格納する処理や、バッファメモリからデータを
読み出して行われる印刷処理や環境設定処理は、図3の
処理と並行して行われるが、それら処理自体は従来と同
様のものであればよいため、ここでは説明を省略する。FIG. 3 is a flowchart for explaining the flow of processing for monitoring the state of the interface 21 and deleting data in the buffer memory when detecting that the interface 21 is not in a normal communicable state. The process of receiving data and storing it in the buffer memory, and the printing process and environment setting process performed by reading data from the buffer memory are performed in parallel with the process of FIG. Therefore, the description is omitted here.
【0023】まず印刷装置が動作を開始すると、ステッ
プS301でインタフェース21の状態を調ベステップ
S302へ進む。本実施例の場合、インタフェース21
としてセントロニクス・インタフェースを使用している
ものとしているので、セントロニクス・インタフェース
の18番ピンの状態がハイレベルなのか、ローレベルな
のかを調べることになる。First, when the printing apparatus starts operating, the state of the interface 21 is checked in step S301, and the flow advances to step S302. In the case of the present embodiment, the interface 21
Since the Centronics interface is used, it is checked whether the state of the 18th pin of the Centronics interface is high level or low level.
【0024】ステップS302では、ステップS301
で調べた18番ピンの状態を元に、インタフェース21
が正常な通信可能状態にあればステップS301へ戻
り、インタフェース21が正常な通信状態になければス
テップS303へ進む。インタフェース21が正常な通
信可能状態にあり続ければステップS301、S302
で構成される処理を行ない続け、インタフェース21の
状態を調べ続けることになる。In step S302, step S301
Interface 21 based on the state of the 18th pin
If is in a normal communicable state, the process returns to step S301. If the interface 21 is not in a normal communicable state, the process proceeds to step S303. If the interface 21 continues to be in a normal communication enabled state, steps S301 and S302
And the state of the interface 21 is continuously checked.
【0025】ステップS303では、RAM19上に存
在するバッファメモリを調べ、データが保管されていな
ければステップS301へ戻り、データが保管されてい
ればステップS304へ進む。バッファメモリ内にデー
タが保管されていない状態であれば、ステップS303
より後ろの処理をせずステップS301からステップS
303までで構成される処理を行なうだけで、無駄な処
理を行なわないで済む。本実施例ではバッファメモリと
してリングバッファ構造を利用しているため、データ読
み出し位置アドレスとデータ挿入位置アドレスが一致し
ていればバッファメモリ内にデータが保管されていない
ものと判断でさ、一致していなければバッファメモリ内
にデータが保管されているものと判断できる。更に本実
施例では、インタフェース21を介して受信したデータ
をバッファメモリに保管する際の具体的な動作に言及し
ていないが、本発明の実現方法に本質的に関わるわけで
はないので説明を省いた。In step S303, the buffer memory existing in the RAM 19 is checked. If data is not stored, the process returns to step S301. If data is stored, the process proceeds to step S304. If no data is stored in the buffer memory, step S303
Steps S301 to S are performed without performing further processing.
By simply performing the processing up to 303, unnecessary processing need not be performed. In this embodiment, since the ring buffer structure is used as the buffer memory, if the data read position address and the data insertion position address match, it is determined that the data is not stored in the buffer memory, If not, it can be determined that the data is stored in the buffer memory. Further, in the present embodiment, a specific operation for storing data received via the interface 21 in the buffer memory is not described, but the description is omitted because it does not essentially relate to the realizing method of the present invention. Was.
【0026】ステップS304では、バッファメモリ1
91に保管されているデータを全て削除してステップS
301へ戻る。本実施例ではバッファメモリ191とし
てリングバッファ構造を利用しているため、データ読み
出し位置アドレスとデータ挿入位置アドレスのどちらか
を強制的に変更しデータ読み出し位置アドレスとデータ
挿入位置アドレスを一致させることで、バッファメモリ
191内のデータを削除することができる。In step S304, the buffer memory 1
Step S:
Return to 301. In the present embodiment, since a ring buffer structure is used as the buffer memory 191, either the data read position address or the data insert position address is forcibly changed, and the data read position address and the data insert position address are matched. , The data in the buffer memory 191 can be deleted.
【0027】以上説明した一連の動作を行なうことで、
データ受信が何らかの障害で中断された場合に未処理の
データを削除することができ、無駄な動作を行なわない
ように印刷装置を制御することが出来る。 [第2の実施の形態]本実施形態では、受信したデータ
を基にして印刷処理や動作環境設定を印刷装置が実行す
る際に、「ジョブ」という単位で処理を行なう例を説明
する。このジョブとは、印刷処理や動作環境設定の実行
によって設定された各種動作環境を継続して使用する単
位である。すなわち、ある1つのジョブに対して設定さ
れた動作環境は、そのジョブ処理中は有効なものとして
使用される。そのジョブ処理が終了したらそのジョブ中
に設定した各種動作環境をクリアすることで、他のジョ
ブに各種動作環境面での影響を与えず、各ジョブは独立
して処理できる。この各種動作環境の例としては、両面
/片面印刷の切替え、拡大/縮小印刷の切替えなどが想
定できる。また本実施例では、ジョブ開始およびジョブ
終了を示すデータ列をあらかじめ定義しておき、受信し
たデータ中でその特定のデータ列を検出することでジョ
ブ開始位置およびジョブ終了位置を判断するものとして
説明を行なう。本実施例では、完全でない印刷ジョブに
含まれる印刷データをバッファメモリから削除すること
で、完全な印刷ジョブを印刷し、しかも完結していない
印刷データを処理することに起因する不具合を防止す
る。By performing a series of operations described above,
When data reception is interrupted by some trouble, unprocessed data can be deleted, and the printing apparatus can be controlled so as not to perform useless operations. [Second Embodiment] In the present embodiment, an example will be described in which when a printing apparatus executes printing processing and operating environment settings based on received data, processing is performed in units of "jobs". The job is a unit for continuously using various operation environments set by executing the printing process and the operation environment setting. That is, the operating environment set for a certain job is used as valid during the job processing. When the job processing is completed, the various operating environments set during the job are cleared, so that each job can be processed independently without affecting other jobs in terms of various operating environments. Examples of these various operating environments include switching between double-sided / single-sided printing, switching between enlarged / reduced printing, and the like. In the present embodiment, a description is given assuming that a data sequence indicating a job start and a job end is defined in advance, and the job start position and the job end position are determined by detecting the specific data sequence in the received data. Perform In the present embodiment, by deleting print data included in an incomplete print job from the buffer memory, a complete print job is printed, and problems caused by processing incomplete print data are prevented.
【0028】また本実施例では、プリンタ1000はイ
ーサネット経由でホストコンピュータ3000と接続し
ているものとして説明を行なう。In this embodiment, the description will be made assuming that the printer 1000 is connected to the host computer 3000 via Ethernet.
【0029】図4のフローチャートは、インタフェース
21の状態を監視し正常な通信可能状態でないことを検
知したら、バッファメモリ内に保管されているデータを
調べ、ジョブ終了が存在しない不完全なジョブのデータ
を削除する処理の流れを説明したものである。The flowchart of FIG. 4 shows that the status of the interface 21 is monitored, and if it is detected that the communication is not normal, the data stored in the buffer memory is checked. Is explained.
【0030】まず印刷装置が動作を開始すると、ステッ
プS401でインタフェース21の状態を調ベステップ
S402へ進む。First, when the printing apparatus starts operating, the state of the interface 21 is checked in step S401, and the flow advances to step S402.
【0031】ステップS402では、ステップS401
で調べたインタフェース21の状態を元に、インタフェ
ース21が正常な通信可能状態にあればステップS40
1へ戻り、インタフェース21が正常な通信状態になけ
ればステップS403へ進む。インタフェース21が正
常な通信可能状態にあり続ければステップS401、S
402で構成される処理を行ない続け、インタフェース
21の状態を調べ続けることになる。In step S402, step S401
If the interface 21 is in a normal communicable state based on the state of the interface 21 checked in step S40,
1 and if the interface 21 is not in a normal communication state, the process proceeds to step S403. If the interface 21 continues to be in a normal communicable state, the process proceeds to steps S401 and S401.
The processing of step 402 is continuously performed, and the state of the interface 21 is continuously checked.
【0032】ステップS403では、RAM19上に存
在するバッファメモリを調べ、データが保管されていな
ければステップS401へ戻り、データが保管されてい
ればステップS404へ進む。バッファメモリ内にデー
タが保管されていない状態であれば、ステップS403
より後ろの処理をせずステップS401からステップS
403までで構成される処理を行なうだけで、無駄な処
理を行なわないで済む。本実施例ではバッファメモリと
してリングバッファ構造を利用しているため、データ読
み出し位置アドレスとデータ挿入位置アドレスが一致し
ていればバッファメモリ内にデータが保管されていない
ものと判断でき、一致していなければバッファメモリ内
にデータが保管されているものと判断できる。更に本実
施例では、インタフェース21を介して受信したデータ
をバッファメモリに保管する際の具体的な動作に言及し
ていないが、本発明の実現方法に本質的に関わるわけで
はないので説明を省いた。In step S403, the buffer memory existing on the RAM 19 is checked. If data is not stored, the process returns to step S401. If data is stored, the process proceeds to step S404. If no data is stored in the buffer memory, step S403
Steps S401 to S are performed without performing further processing.
By performing only the processing up to 403, unnecessary processing need not be performed. In the present embodiment, the ring buffer structure is used as the buffer memory. Therefore, if the data read position address matches the data insertion position address, it can be determined that the data is not stored in the buffer memory, and the match occurs. If not, it can be determined that the data is stored in the buffer memory. Further, in the present embodiment, a specific operation for storing data received via the interface 21 in the buffer memory is not described, but the description is omitted because it does not essentially relate to the realizing method of the present invention. Was.
【0033】ステップS404では、バッファメモリに
保管されているデータ内にジョブ開始を示すデータ列が
あるかどうかを一番最近に受信したデータから順番に調
べるため、リングバッフア構造中のどの部分を調査対象
としているのかを記憶する調査位置アドレスヘデータ挿
入位置アドレスの値を入れ、ステップS405へ進む。In step S404, to check whether there is a data string indicating the start of a job in the data stored in the buffer memory, in order from the most recently received data, which part in the ring buffer structure is to be checked. Then, the value of the data insertion position address is entered into the investigation position address storing whether the data is stored, and the process proceeds to step S405.
【0034】ステップS405では、調査位置アドレス
を1つ前に戻し、ステップS406へ進む。In step S405, the search position address is returned by one, and the process proceeds to step S406.
【0035】ステップS406では、バッファメモリ内
の全てのデータを調査したかどうか調べ、全て調査して
しまったらステップS409へ進み、まだ調査していな
いデータが残っていたらステップS407へ進む。In step S406, it is checked whether or not all the data in the buffer memory has been checked. If all the data have been checked, the process proceeds to step S409, and if there is data that has not yet been checked, the process proceeds to step S407.
【0036】ステップS407では、調査位置アドレス
にジョブ開始を示すデータ列があるかどうか調べ、ジョ
ブ開始を示すデータ列があればステップS408へ進
み、ジョブ開始を示すデータ列がなければステップS4
0Sへ戻る。このようにステップS405からS407
までの処理を繰り返すことで、バッファメモリ内にジョ
ブ開始を示すデータ列があるかどうかを調べることが出
来る。In step S407, it is checked whether or not there is a data string indicating the start of the job at the survey position address. If there is a data string indicating the start of the job, the process proceeds to step S408;
Return to 0S. Thus, steps S405 to S407
By repeating the processes up to, it is possible to check whether or not there is a data string indicating the start of the job in the buffer memory.
【0037】ステップS408では、ジョブ開始を示す
データ列を見つけたので、バッファメモリ内のそのジョ
ブ開始から挿入位置アドレスまでのデータを削除してス
テップS401へ戻る。本実施例ではバッファメモリと
してリングバッファ構造を利用しているため、記憶して
いたデータ挿入位置アドレスの値を、ジョブ開始を示す
データ列の存在するアドレスの値へ変更することで、目
的を達成できる。In step S408, since a data string indicating the start of the job is found, the data from the start of the job to the insertion position address in the buffer memory is deleted, and the flow returns to step S401. In the present embodiment, since the ring buffer structure is used as the buffer memory, the purpose is achieved by changing the value of the stored data insertion position address to the value of the address where the data string indicating the start of the job exists. it can.
【0038】ステップS409では、ジョブ開始を示す
データ列を見つけられなかったので、バッフアメモリに
保管されているデータを全て削除してステップS401
へ戻る。本実施例ではバッファメモリとしてリングバッ
ファ構造を利用しているため、データ読み出し位置アド
レスとデータ挿入位置アドレスのどちらかを強制的に変
更しデータ読み出し位置アドレスとデータ挿入位置アド
レスを一致させることで、バッファメモリ内のデータを
削除することができる。In step S409, since a data string indicating the start of the job could not be found, all data stored in the buffer memory is deleted and step S401 is executed.
Return to In the present embodiment, since a ring buffer structure is used as the buffer memory, one of the data read position address and the data insert position address is forcibly changed, and the data read position address and the data insert position address are matched. Data in the buffer memory can be deleted.
【0039】以上説明した一連の動作を行なうことで、
ジョブが完結した受信データに対しては正常に処理を完
了することができ、かつジョブが不完全な状態の受信デ
ータに対しては処理を中断することができ、その結果無
駄な印刷処理を行なったり、不正な動作環境を印刷装置
に設定してしまったりすることを回避できる。しかもジ
ョブが完結している正常なデータには全く影響を与えず
に、これらの中断処理を行なうことが出来る。By performing a series of operations described above,
Processing can be completed normally for received data for which the job has been completed, and processing can be interrupted for received data for which the job is incomplete, resulting in unnecessary print processing. It is possible to avoid setting an incorrect operating environment in the printing apparatus. In addition, these interruption processes can be performed without affecting the normal data for which the job has been completed.
【0040】[0040]
【他の実施形態】なお、本発明は、複数の機器(例えば
ホストコンピュータ,インタフェイス機器,リーダ,プ
リンタなど)から構成されるシステムに適用しても、一
つの機器からなる装置(例えば、複写機,ファクシミリ
装置など)に適用してもよい。[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus (for example, a copying machine) Machine, facsimile machine, etc.).
【0041】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても達成される。Another object of the present invention is to supply a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (or CPU) of the system or the apparatus.
Or MPU) reads and executes the program code stored in the storage medium.
【0042】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。In this case, the program code itself read from the storage medium implements the functions of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
【0043】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.
【0044】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部または全
部を行い、その処理によって前述した実施形態の機能が
実現される場合も含まれる。When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) Performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
【0045】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
るCPUなどが実際の処理の一部または全部を行い、そ
の処理によって前述した実施形態の機能が実現される場
合も含まれる。Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, The case where the CPU of the function expansion board or the function expansion unit performs part or all of the actual processing, and the function of the above-described embodiment is realized by the processing.
【0046】[0046]
【発明の効果】以上説明したように、本発明によれば、
データ受信が何らかの障害で中断された場合に未処理の
データを削除することで、無駄な動作を行なわないよう
に印刷装置を制御することが出来る。As described above, according to the present invention,
By deleting unprocessed data when data reception is interrupted due to some failure, the printing apparatus can be controlled so as not to perform useless operations.
【0047】さらに、ジョブが不完全な状態の受信デー
タに対してはそれを削除することで、ジョブが完結した
受信データに対しては正常に処理を完了することができ
るとともに、不完全なジョブの処理を中断することがで
き、その結果無駄な印刷処理を行なったり、不正な動作
環境を印刷装置に設定してしまったりすることを回避で
きる。Further, by deleting the received data in which the job is incomplete, the processing can be completed normally for the received data in which the job is completed, and the incomplete job can be completed. Can be interrupted, and as a result, it is possible to avoid performing useless printing processing and setting an incorrect operating environment in the printing apparatus.
【0048】[0048]
【図1】本発明を適用可能な第1の出力装置の構成を示
す断面図である。FIG. 1 is a cross-sectional view illustrating a configuration of a first output device to which the present invention can be applied.
【図2】本発明の一実施例を示すプリンタ制御システム
の構成を説明するブロック図である。FIG. 2 is a block diagram illustrating a configuration of a printer control system according to an embodiment of the present invention.
【図3】第1の実施の形態における印刷装置による異常
制御の手順のフローチャートである。FIG. 3 is a flowchart illustrating a procedure of abnormality control performed by the printing apparatus according to the first embodiment.
【図4】第2の実施の形態における印刷装置による異常
制御の手順のフローチャートである。FIG. 4 is a flowchart of a procedure of abnormality control by a printing apparatus according to a second embodiment.
1 CPU 2 RAM 3 ROM 4 システムバス 12 CPU 13 ROM 19 RAM 3000 ホストコンピュータ 1000 プリンタ 1 CPU 2 RAM 3 ROM 4 System bus 12 CPU 13 ROM 19 RAM 3000 Host computer 1000 Printer
Claims (12)
装置であって、 外部装置から印刷データを受信する受信手段と、 受信した印刷データを格納する格納手段と、 前記受信手段により正常に印刷データが受信されている
か判定する判定手段と、 前記判定手段により正常ではないと判定された場合、前
記格納手段により格納される印刷データを削除する削除
手段とを備えることを特徴とする印刷装置。1. A printing device for printing based on received print data, a receiving unit for receiving print data from an external device, a storing unit for storing the received print data, and a normal printing by the receiving unit. A printing apparatus comprising: a determination unit that determines whether data is received; and a deletion unit that deletes print data stored by the storage unit when the determination unit determines that the data is not normal.
れた外部装置から印刷データを受信し、前記判定手段
は、前記信号線上の信号値に基づいて、正常であるか否
かを判定することを特徴とする請求項1に記載の印刷装
置。2. The receiving unit receives print data from an external device connected via a signal line, and the determining unit determines whether the data is normal based on a signal value on the signal line. The printing apparatus according to claim 1, wherein the printing is performed.
納される印刷データ全てを削除することを特徴とする請
求項1または2に記載の印刷装置。3. The printing apparatus according to claim 1, wherein the deletion unit deletes all print data stored by the storage unit.
納される印刷データのうち、完全でない印刷ジョブに含
まれる印刷データを削除することを特徴とする請求項1
または2に記載の印刷装置。4. The printing apparatus according to claim 1, wherein the deletion unit deletes print data included in an incomplete print job from the print data stored by the storage unit.
Or the printing device according to 2.
に印刷する印刷装置の制御方法であって、 受信した印刷データを格納手段に格納する格納工程と、 前記受信手段により正常に印刷データが受信されている
か判定する判定工程と、 前記判定工程により正常ではないと判定された場合、前
記格納手段により格納される印刷データを削除する削除
工程とを備えることを特徴とする印刷装置の制御方法。5. A control method of a printing apparatus for printing based on print data received by a receiving unit, the method comprising: storing a received print data in a storage unit; and receiving the print data normally by the receiving unit. And a deletion step of deleting print data stored by the storage means when the determination result indicates that the print data is not normal.
れた外部装置から印刷データを受信し、前記判定工程
は、前記信号線上の信号値に基づいて、正常であるか否
かを判定することを特徴とする請求項5に記載の印刷装
置の制御方法。6. The receiving unit receives print data from an external device connected via a signal line, and the determining step determines whether or not the data is normal based on a signal value on the signal line. The method for controlling a printing apparatus according to claim 5, wherein:
納される印刷データ全てを削除することを特徴とする請
求項5または6に記載の印刷装置の制御方法。7. The method according to claim 5, wherein the deleting step deletes all print data stored by the storage unit.
より格納される印刷データのうち、完全でない印刷ジョ
ブに含まれる印刷データを削除することを特徴とする請
求項5または6に記載の印刷装置の制御方法。8. The printing method according to claim 5, wherein the delete control method deletes print data included in an incomplete print job among print data stored by the storage unit. How to control the device.
装置を制御するプログラムを格納するコンピュータ可読
の記憶媒体であって、前記プログラムは、 外部装置から印刷データを受信する受信コード手段と、 受信した印刷データを格納する格納コード手段と、 前記受信コード手段により正常に印刷データが受信され
ているか判定する判定コード手段と、 前記判定コード手段により正常ではないと判定された場
合、前記格納コード手段により格納される印刷データを
削除する削除コード手段とを備えることを特徴とする記
憶媒体。9. A computer-readable storage medium for storing a program for controlling a printing apparatus for printing based on received print data, the program comprising: reception code means for receiving print data from an external device; Storage code means for storing the received print data, determination code means for determining whether print data has been normally received by the reception code means, and storage code means for determining that the print data is not normal by the determination code means. And a deletion code means for deleting print data stored by the storage medium.
て接続された外部装置から印刷データを受信し、前記判
定コード手段は、前記信号線上の信号値に基づいて、正
常であるか否かを判定することを特徴とする請求項9に
記載の記憶媒体。10. The reception code unit receives print data from an external device connected via a signal line, and the determination code unit determines whether the data is normal based on a signal value on the signal line. 10. The storage medium according to claim 9, wherein:
ド手段により格納される印刷データ全てを削除すること
を特徴とする請求項9または10に記載の記憶媒体。11. The storage medium according to claim 9, wherein said deletion code means deletes all print data stored by said storage code means.
ド手段により格納される印刷データのうち、完全でない
印刷ジョブに含まれる印刷データを削除することを特徴
とする請求項9または10に記載の記憶媒体。12. The storage according to claim 9, wherein the deletion code unit deletes print data included in an incomplete print job among print data stored by the storage code unit. Medium.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9264598A JPH1199730A (en) | 1997-09-29 | 1997-09-29 | Printer and its control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP9264598A JPH1199730A (en) | 1997-09-29 | 1997-09-29 | Printer and its control method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH1199730A true JPH1199730A (en) | 1999-04-13 |
Family
ID=17405544
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP9264598A Withdrawn JPH1199730A (en) | 1997-09-29 | 1997-09-29 | Printer and its control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH1199730A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6910817B2 (en) | 2003-06-19 | 2005-06-28 | Seiko Epson Corporation | Printing apparatus, printing system, and printer control method |
JP2008221627A (en) * | 2007-03-13 | 2008-09-25 | Fuji Xerox Co Ltd | Drive unit for liquid ejection head, and liquid ejector |
US7869063B2 (en) | 2005-06-08 | 2011-01-11 | Seiko Epson Corporation | Printing apparatus, printer control method, printer control program, and printing system |
-
1997
- 1997-09-29 JP JP9264598A patent/JPH1199730A/en not_active Withdrawn
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6910817B2 (en) | 2003-06-19 | 2005-06-28 | Seiko Epson Corporation | Printing apparatus, printing system, and printer control method |
US7503712B2 (en) | 2003-06-19 | 2009-03-17 | Seiko Epson Corporation | Printing apparatus for selecting the appropriate error state mode according to the application type and user desired print results |
US7869063B2 (en) | 2005-06-08 | 2011-01-11 | Seiko Epson Corporation | Printing apparatus, printer control method, printer control program, and printing system |
JP2008221627A (en) * | 2007-03-13 | 2008-09-25 | Fuji Xerox Co Ltd | Drive unit for liquid ejection head, and liquid ejector |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7081970B2 (en) | Information processing apparatus | |
US7315387B2 (en) | Print control method and apparatus, and print system | |
US6052204A (en) | Output apparatus and output method | |
JPH1199730A (en) | Printer and its control method | |
JP3209911B2 (en) | Print control device and data processing method of print control device | |
JP3566521B2 (en) | Printing apparatus and control method thereof | |
JP3209858B2 (en) | Print control device and print control method | |
JPH08282064A (en) | Recording apparatus and recording control method | |
JP3610183B2 (en) | Printing apparatus and storage method | |
JP2000079742A (en) | Printing apparatus, print method, printing system and memory medium | |
JPH1097395A (en) | Print controller, print control method for printer device, and storage medium stored with computer-readable program | |
JPH10187375A (en) | Printing controller and method for processing data of printing controller and storage medium for storing program readable by computer | |
JPH08156371A (en) | Image output device, host computer and network housing both of them | |
JPH1049317A (en) | Device and method for print control, and storage medium | |
JPH10190936A (en) | Composite image-processing unit, control method for the composite image-processing unit, and storage medium program readable by computer | |
JPH11338653A (en) | Printing method, printer and medium for storing printing program | |
JPH09207414A (en) | Information processing device and method | |
JP2000094797A (en) | Printing controller, data processing method therefor, and memory medium storing program readable by computer | |
JP2000301783A (en) | Printer, printing system, method for controlling printing and memory device | |
JP2004164473A (en) | Output control device | |
JPH1173282A (en) | Printer device, scanner device, response data preparation method and storage medium | |
JP2001030547A (en) | Printer, printing system, control method for the printer, control method for the printing system, and memory medium storing computer readable program | |
JPH09251359A (en) | Information output method, information output printer and printer control system | |
JPH1115613A (en) | Picture output device and its controlling method | |
JPH1091368A (en) | Print controller and its data processing method and storage medium storing readable program for computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20041207 |