JPH06286271A - Control method of printer and device therefor - Google Patents

Control method of printer and device therefor

Info

Publication number
JPH06286271A
JPH06286271A JP5103709A JP10370993A JPH06286271A JP H06286271 A JPH06286271 A JP H06286271A JP 5103709 A JP5103709 A JP 5103709A JP 10370993 A JP10370993 A JP 10370993A JP H06286271 A JPH06286271 A JP H06286271A
Authority
JP
Japan
Prior art keywords
command
printer
buffer
controller
engine
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
JP5103709A
Other languages
Japanese (ja)
Inventor
Akira Suzuki
明 鈴木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP5103709A priority Critical patent/JPH06286271A/en
Publication of JPH06286271A publication Critical patent/JPH06286271A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To permit the sure prevention of generation of timing error in sequence between a printer engine and a printer controller. CONSTITUTION:A command, sent out from a printer controller to an engine controller, is stored in a buffer, and a timer for monitoring the executing conditions of respective stored commands is started; then, the finishing condition of counting of the started timer is judged and general purpose command to carry out a prescribed operation for activating a printer engine by the printer controller based on the judgment result is sent out automatically.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プリンタエンジンにコ
マンドを出力して印字およびプリンタエンジンの状態を
制御するプリンタ制御方法およびその装置に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer control method and apparatus for outputting a command to a printer engine to control printing and the state of the printer engine.

【0002】[0002]

【従来の技術】従来、この種のプリンタ制御装置を備
え、プリンタエンジンを制御する場合、プリンタエンジ
ンの印字機構、例えば印字ヘッドの退避動作やその他ヘ
ッドの性能を保持するためのシーケンスの起動は、コン
トローラ側の処理状況とは関係なく、プリンタ制御装置
からのプリンタエンジンに対する実行コマンドが途絶え
てからの経過時間のみに基づいて実行していた。
2. Description of the Related Art Conventionally, when a printer engine of this kind is provided and a printer engine is controlled, the printing mechanism of the printer engine, for example, the retracting operation of the print head and the start of a sequence for maintaining the performance of other heads, Irrespective of the processing status on the controller side, the execution command from the printer controller to the printer engine is executed only based on the elapsed time from the interruption.

【0003】また、プリンタ制御装置からプリンタエン
ジンに対して、例えばシリアルプリンタにコマンドを蓄
積し、順次それらのコマンドを読出して実行する場合
に、コマンド処理エラーとなってしまうと、コマンドバ
ッファが1系統しかないため、プリンタ制御装置にコマ
ンド実行エラーがプリンタエンジンから通知されたと
き、プリンタ制御装置は、先行してプリンタエンジンに
蓄えられていたコマンドを一旦コントローラが引き取
り、新たに回復のためのコマンドを送り、回復後、プリ
ンタ制御装置から取り除いたコマンドを、再びプリンタ
エンジンに送り込むことにより実現していた。
Further, when a command processing error occurs in the case where commands are accumulated from the printer control device to the printer engine, for example, in a serial printer, and those commands are sequentially read and executed, the command buffer has one system. Therefore, when a command execution error is notified to the printer control device from the printer engine, the printer control device once retrieves the command previously stored in the printer engine, and a new recovery command is issued. After sending and recovering, the command removed from the printer control device was sent again to the printer engine.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
プリンタ制御装置はプリンタエンジン側のみでプリンタ
コントローラの処理状況を推測しているため、以下のよ
うな問題点があった。
However, since the conventional printer control apparatus estimates the processing status of the printer controller only on the printer engine side, it has the following problems.

【0005】(1)僅かなタイミングのずれでプリンタ
エンジンが待機状態となってしまい、改めて実行可能状
態に戻すための時間が必要となり、印字速度が低下して
しまう。
(1) The printer engine goes into a standby state with a slight timing deviation, and it takes time to return it to the executable state again, which lowers the printing speed.

【0006】(2)印字ヘッドの退避やその他ヘッドの
性能を保持するためのシーケンスによって記録材料の位
置がずれるため印字結果に予期しない白線が入ってしま
う。
(2) Since the position of the recording material shifts due to the retracting of the print head and other sequences for maintaining the performance of the head, an unexpected white line is included in the print result.

【0007】また、上記のようなコマンド処理のため、
以下のような問題点があった。
Further, because of the command processing as described above,
There were the following problems.

【0008】(1)プリンタコントローラがプリンタエ
ンジンのコマンド実行状態を常時監視する必要があっ
た。
(1) It is necessary for the printer controller to constantly monitor the command execution state of the printer engine.

【0009】(2)プリンタエンジンに蓄えられていた
コマンドを退避復元する処理がシステム処理全体を煩雑
化してしまう。
(2) The process of saving and restoring the commands stored in the printer engine complicates the entire system process.

【0010】本発明は、上記の幾多の問題点を解消する
ためになされたもので、プリンタエンジンとプリンタコ
ントローラとのコマンド処理によりコマンド処理状態を
疑似的に継続処理させるとともに、コマンド処理実行状
態がエラーとなった場合に、コマンドを格納するバッフ
ァ指定先を制御することにより、プリンタエンジンとプ
リンタコントローラとの状態を常時活性化した状態に維
持できるとともに、エラー処理回復後のコマンド処理を
効率良く再開できるプリンタ制御方法およびプリンタ制
御装置を得ることを目的とする。
The present invention has been made in order to solve the above-mentioned many problems. The command processing state is pseudo continued by the command processing of the printer engine and the printer controller, and the command processing execution state is When an error occurs, by controlling the designated destination of the buffer that stores the command, the status of the printer engine and printer controller can be kept active at all times, and command processing after error processing recovery can be efficiently restarted. An object of the present invention is to obtain a printer control method and a printer control device which can be performed.

【0011】[0011]

【課題を解決するための手段】本発明に係る第1のプリ
ンタ制御方法は、プリンタコントローラからエンジンコ
ントローラに送出されたコマンドをバッファに格納し、
該格納された各コマンドの実行状態を監視するタイマを
起動し、該起動したタイマの計時完了状態を判定し、該
判定結果に基づいてプリンタコントローラがプリンタエ
ンジンを活性化させるための所定動作を実行させる汎用
コマンドを自動送出する。
A first printer control method according to the present invention stores a command sent from a printer controller to an engine controller in a buffer,
A timer that monitors the execution state of each of the stored commands is activated, the timed completion state of the activated timer is determined, and the printer controller executes a predetermined operation based on the determination result to activate the printer engine. A general command to be sent is automatically sent.

【0012】本発明に係る第1のプリンタ制御装置は、
プリンタコントローラからエンジンコントローラに送出
されたコマンドを格納するバッファと、このバッファに
格納された各コマンドの実行状態を監視するタイマと、
このタイマの計時完了状態を判定する判定手段と、この
判定手段の判定結果に基づいて前記プリンタコントロー
ラがプリンタエンジンを活性化させるための所定動作を
実行させる汎用コマンドを発生する。
The first printer control device according to the present invention is
A buffer that stores commands sent from the printer controller to the engine controller, a timer that monitors the execution status of each command stored in this buffer,
Based on the determination means for determining the timed state of the timer and the determination result of the determination means, the printer controller generates a general-purpose command for executing a predetermined operation for activating the printer engine.

【0013】本発明に係る第2のプリンタ制御方法は、
プリンタコントローラからエンジンコントローラに送出
されたコマンドを解析してキューバッファまたは単一バ
ッファに格納し、該コマンド実行中のコマンド実行エラ
ー状態を判定し、該判定結果に基づいて即時命令により
コマンド格納バッファ指定先を後続のキューバッファ指
定コマンドが受信されるまでの間、単一バッファに切り
換え制御する。
A second printer control method according to the present invention is
The command sent from the printer controller to the engine controller is analyzed and stored in a queue buffer or a single buffer, the command execution error state during execution of the command is judged, and the command storage buffer is designated by an immediate command based on the judgment result. The destination is controlled to be switched to a single buffer until the subsequent queue buffer designation command is received.

【0014】本発明に係る第2のプリンタ制御装置は、
プリンタコントローラからエンジンコントローラに送出
されたコマンドを解析する解析手段と、該解析手段が解
析したコマンドを複数格納するキューバッファと、前記
解析手段が受信したコマンドを単数格納する単一バッフ
ァと、これらのキューバッファまたは単一バッファに格
納された該コマンド実行中のコマンド実行エラー状態を
判定する判定手段と、この判定手段の判定結果に基づい
て即時命令によりコマンド格納バッファ指定先を後続の
キューバッファ指定コマンドが受信されるまでの間、単
一バッファに切り換え制御するバッファ制御手段とを有
するものである。
A second printer control device according to the present invention is
Analyzing means for analyzing a command sent from the printer controller to the engine controller, a queue buffer for storing a plurality of commands analyzed by the analyzing means, a single buffer for storing a single command received by the analyzing means, Judgment means for judging a command execution error state during execution of the command stored in the queue buffer or a single buffer, and a command storage buffer specification destination for a subsequent queue buffer specification command by an immediate instruction based on the judgment result of this judgment means. And a buffer control means for controlling the switching to a single buffer until the reception.

【0015】[0015]

【作用】第1のプリンタ制御方法においては、プリンタ
コントローラからエンジンコントローラに送出されたコ
マンドをバッファに格納し、該格納された各コマンドの
実行状態を監視するタイマを起動し、該起動したタイマ
の計時完了状態を判定し、該判定結果に基づいてプリン
タコントローラがプリンタエンジンを活性化させるため
の所定動作を実行させる汎用コマンドを自動送出するの
で、プリンタエンジンとプリンタコントローラとの状態
を常時活性化した状態に維持することが可能となる。
In the first printer control method, the command sent from the printer controller to the engine controller is stored in the buffer, the timer for monitoring the execution state of each stored command is activated, and the activated timer The status of the printer engine and the printer controller is always activated because the printer controller automatically sends a general-purpose command that determines the time counting completion state and executes the predetermined operation for activating the printer engine based on the determination result. It is possible to maintain the state.

【0016】第1のプリンタ制御装置においては、判定
手段がバッファに格納された各コマンドの実行状態を監
視するタイマの計時完了状態を判定し、該判定結果に基
づいて前記プリンタコントローラがプリンタエンジンを
活性化させるための所定動作を実行させる汎用コマンド
を発生するので、プリンタエンジンとプリンタコントロ
ーラとの状態を常時活性化した状態に維持することが可
能となる。
In the first printer control device, the determination means determines the timed completion state of the timer for monitoring the execution state of each command stored in the buffer, and the printer controller causes the printer engine to operate based on the determination result. Since a general-purpose command for executing a predetermined operation for activation is generated, it becomes possible to maintain the states of the printer engine and the printer controller at all times in the activated state.

【0017】第2のプリンタ制御方法においては、プリ
ンタコントローラからエンジンコントローラに送出され
たコマンド種別を解析して受信したコマンドをキューバ
ッファまたは単一バッファに格納し、該コマンド実行中
のコマンド実行エラー状態を判定し、該判定結果に基づ
いて即時命令によりコマンド格納バッファ指定先を後続
のキューバッファ指定コマンドが受信されるまでの間、
単一バッファに切り換え制御するので、エラー処理回復
後のコマンド処理を効率良く再開することが可能とな
る。
In the second printer control method, the command type sent from the printer controller to the engine controller is analyzed and the received command is stored in a queue buffer or a single buffer, and a command execution error state during execution of the command is stored. And the command storage buffer designation destination by the immediate command based on the determination result until the subsequent queue buffer designation command is received.
Since the switching is controlled to the single buffer, the command processing after the error processing recovery can be efficiently restarted.

【0018】第2のプリンタ制御装置においては、該解
析手段が解析したコマンドがキューバッファまたは単一
バッファに格納され、判定手段が該格納されたコマンド
実行中のコマンド実行エラー状態を判定し、該判定結果
に基づいて即時命令によりコマンド格納バッファ指定先
を後続のキューバッファ指定コマンドが受信されるまで
の間、バッファ制御手段が単一バッファに切り換え制御
するので、エラー処理回復後のコマンド処理を効率良く
再開することが可能となる。
In the second printer control device, the command analyzed by the analyzing means is stored in the queue buffer or the single buffer, and the determining means determines the command execution error state during the execution of the stored command. The buffer control means switches to a single buffer until the subsequent queue buffer designation command is received by the immediate command based on the determination result until the subsequent queue buffer designation command is received, so the command processing after error processing recovery is efficient. It will be possible to restart well.

【0019】[0019]

【実施例】本実施例の構成を説明する前に、本実施例を
適用するインクジェット記録装置の構成を図1を参照し
ながら説明する。
EXAMPLES Before describing the configuration of the present example, the configuration of an ink jet recording apparatus to which the present example is applied will be described with reference to FIG.

【0020】図1は本発明を適用可能な記録装置の構成
を説明する外観図であり、例えばインクジェット記録装
置(IJRA)の場合を示す。
FIG. 1 is an external view for explaining the structure of a recording apparatus to which the present invention can be applied, for example, the case of an ink jet recording apparatus (IJRA).

【0021】図において、駆動モータ5013の正逆回
転に連動して駆動力伝達ギア5011,5010,50
09を介して回転するリードスクリュー5005の螺旋
溝5004に対して係合するキャリッジHCはピン(図
示しない)を有し、矢印a,b方向に往復移動される。
このキャリッジHCには、インクジェットカートリッジ
IJCが搭載されている。5002は紙押え板であり、
キャリッジ移動方向にわたって紙をプラテン5000に
対して押圧する。5007,5008はフォトカプラ
で、キャリッジHCのレバー5006のこの域での存在
を確認して、駆動モータ5013の回転方向切り換え等
を行うためのホームポジション検知手段として機能す
る。5016は記録ヘッドの全面をキャップするキャッ
プ部材5022を指示する部材、5015はこのキャッ
プ内を吸引する吸引手段で、キャップ内開口5023を
介して記録ヘッドの吸引回復を行う。5017はクリー
ニングブレードで、部材5019により前後方向に移動
可能となる。5018は本体支持板で、クリーニングブ
レード5017,部材5019を支持する。5012は
吸引回復の吸引を開始するためのレバーで、キャリッジ
HCと係合するカム5020の移動に伴って移動し、駆
動モータ5013からの駆動力がクラッチ切り換え等の
耕地の伝達手段で移動が制御される。なお、5003は
ガイドレールである。
In the figure, the driving force transmitting gears 5011, 5010, 50 are interlocked with the forward and reverse rotations of the driving motor 5013.
The carriage HC that engages with the spiral groove 5004 of the lead screw 5005 that rotates via 09 has a pin (not shown) and is reciprocated in the directions of arrows a and b.
An inkjet cartridge IJC is mounted on the carriage HC. 5002 is a paper pressing plate,
The paper is pressed against the platen 5000 in the carriage movement direction. Reference numerals 5007 and 5008 denote photocouplers, which function as home position detection means for confirming the presence of the lever 5006 of the carriage HC in this area and switching the rotation direction of the drive motor 5013. Reference numeral 5016 is a member for indicating a cap member 5022 for capping the entire surface of the recording head, and 5015 is a suction means for sucking the inside of the cap, which performs suction recovery of the recording head through the opening 5023 in the cap. A cleaning blade 5017 can be moved in the front-rear direction by a member 5019. Reference numeral 5018 denotes a main body support plate that supports the cleaning blade 5017 and the member 5019. Reference numeral 5012 denotes a lever for starting suction for suction recovery, which moves in accordance with movement of a cam 5020 that engages with the carriage HC, and a driving force from a drive motor 5013 is controlled by a cultivated land transmission means such as clutch switching. To be done. In addition, 5003 is a guide rail.

【0022】これらのキャッピング,クリーニング,吸
引回復は、キャリッジHCがホームポジション側領域に
きたときにリードスクリュー5005の作用によってそ
れらの対応位置で所望の処理が行えるように構成されて
いるが、周知のタイミングで所望の動作を行うように構
成されていればよい。
The capping, cleaning, and suction recovery are configured so that desired operations can be performed at their corresponding positions by the action of the lead screw 5005 when the carriage HC reaches the home position side area. It may be configured to perform a desired operation at the timing.

【0023】図2は、図1に示した記録装置の制御構成
を説明するブロック図である。
FIG. 2 is a block diagram for explaining the control configuration of the recording apparatus shown in FIG.

【0024】図において、1700は記録信号を入力す
るインタフェース、1701はMPU、1702は前記
MPU1701が実行する制御プログラム等を格納する
プログラムROM、1703はDRAMで、各種データ
(上記記録信号やヘッドに供給される記録データ等)を
保存しておく。1704は記録ヘッド1708に対する
記録データの供給制御を行うゲートアレイ(G.A.)
で、インタフェース1700,MPU1701,DRA
M1703間のデータの転送制御も行う。1710は前
記記録ヘッド1708を搬送するためのキャリアモー
タ、1709は記録用紙搬送のための搬送モータ、17
05は前記記録ヘッド1708を駆動するヘッドドライ
バ、1706は前記搬送モータ1709を駆動するモー
タドライバ、1707は前記キャリアモータ1710を
駆動するモータドライバである。
In the figure, reference numeral 1700 is an interface for inputting a recording signal, 1701 is an MPU, 1702 is a program ROM for storing a control program executed by the MPU 1701, and 1703 is a DRAM for supplying various data (the above-mentioned recording signal and head are supplied. Save the recorded data etc.). Reference numeral 1704 denotes a gate array (GA) for controlling supply of print data to the print head 1708.
Interface 1700, MPU 1701, DRA
It also controls the transfer of data between M1703. Reference numeral 1710 is a carrier motor for carrying the recording head 1708, 1709 is a carrying motor for carrying the recording paper, 17
Reference numeral 05 is a head driver for driving the recording head 1708, 1706 is a motor driver for driving the carry motor 1709, and 1707 is a motor driver for driving the carrier motor 1710.

【0025】このように構成された記録装置において、
インタフェース1700を介して後述するホストコンピ
ュータ100より記録信号が入力されると、ゲートアレ
イ1704とMPU1701との間で記録信号がプリン
ト用の記録データに変換される。そして、モータドライ
バ1706,1707が駆動されるとともに、ヘッドド
ライバ1705に送られた記録データに従って記録ヘッ
ド1708が駆動され印字が実行される。
In the recording apparatus thus constructed,
When a print signal is input from the host computer 100 described later via the interface 1700, the print signal is converted into print data for printing between the gate array 1704 and the MPU 1701. Then, the motor drivers 1706 and 1707 are driven, and the recording head 1708 is driven according to the recording data sent to the head driver 1705 to execute printing.

【0026】なお、MPU1701はインタフェース1
700を介してホストコンピュータ100との通信処理
が可能となっており、DRAM1703に関するメモリ
情報および資源データをホストコンピュータ100に通
知可能に構成されている。 〔第1実施例〕図3は本発明の第1実施例を示すプリン
タ制御装置の構成を説明するブロック図である。なお、
本発明の機能が実行されるのであれば、単体の機器であ
っても、複数の機器からなるシステムであっても、LA
N等のネットワークを介して処理が行われるシステムで
あっても本発明を適用できることは言うまでもない。
The MPU 1701 is an interface 1
Communication processing with the host computer 100 is possible via 700, and memory information and resource data regarding the DRAM 1703 can be notified to the host computer 100. [First Embodiment] FIG. 3 is a block diagram for explaining the arrangement of a printer control apparatus according to the first embodiment of the present invention. In addition,
As long as the functions of the present invention are executed, the LA device, whether a single device or a system composed of a plurality of devices, is used.
It goes without saying that the present invention can be applied to a system in which processing is performed via a network such as N.

【0027】図において、100はホストコンピュータ
で、ROM2に記憶された文書処理プログラムに基づい
て図形,イメージ,文字,表(表計算等を含む)等が混
在した文書処理を実行するCPU1を備え、システムバ
ス4に接続される各デバイスを総括的に制御する。
In the figure, reference numeral 100 is a host computer, which is provided with a CPU 1 for executing document processing in which graphics, images, characters, tables (including spreadsheets, etc.) are mixed based on a document processing program stored in ROM 2. It comprehensively controls each device connected to the system bus 4.

【0028】また、このROM2には、後述するフロー
チャートに示されたCPU1の制御プログラム等を記憶
する。3はRAMで、CPU1の主メモリ,ワークエリ
アとして機能する。5はキーボードコントローラ(KB
C)で、キーボード9からのキー入力を制御する。6は
CRTコントローラ(CRTC)で、CRTディスプレ
イ(CRT)10の表示を制御する。7はディスクコン
トローラ(DKC)で、ブートプログラム,種々のアプ
リケーション,フォントデータ,ユーザファイル,編集
ファイル等を記憶するはハードディスク(HD)11,
フロッピーディスク(FD)12とのアクセスを制御す
る。8はプリンタコントローラ(PRTC)で、所定の
インタフェース(インタフェース)13を介してプリン
タ1500に接続されて、プリンタ1500との通信制
御処理を実行する。8a,18bはインタフェース回路
で、インタフェース13を介したプリンタ1500とホ
ストコンピュータ100との種々のコマンド通信処理,
記録情報処理を制御する。
The ROM 2 also stores a control program for the CPU 1 shown in the flow chart described later. A RAM 3 functions as a main memory and a work area of the CPU 1. 5 is a keyboard controller (KB
In C), the key input from the keyboard 9 is controlled. A CRT controller (CRTC) 6 controls the display of a CRT display (CRT) 10. A disk controller (DKC) 7 stores a boot program, various applications, font data, user files, edit files, etc. in a hard disk (HD) 11,
It controls access to the floppy disk (FD) 12. A printer controller (PRTC) 8 is connected to the printer 1500 via a predetermined interface 13 and executes communication control processing with the printer 1500. Reference numerals 8a and 18b denote interface circuits, which perform various command communication processes between the printer 1500 and the host computer 100 via the interface 13.
Control recording information processing.

【0029】なお、CPU1は、例えばRAM3上に設
定された表示情報RAMへのアウトラインフォントの展
開(ラスタライズ)処理を実行し、CRT10上でのW
YSIWYGを可能としている。また、CPU1は、C
RT10上のマウスカーソル等で指示されたコマンドに
基づいて登録された種々のウインドウを開き、種々のデ
ータ処理を実行する。
The CPU 1 executes the rasterizing process of the outline font in the display information RAM set in the RAM 3, and the W on the CRT 10 is executed.
It enables YSIWYG. Further, the CPU 1 is C
Various windows registered based on commands designated by the mouse cursor or the like on the RT 10 are opened, and various data processes are executed.

【0030】また、プリンタ1500において、14は
プリンタCPU(CPU)で、ROM15に記憶された
制御プログラム等に基づいてシステムバス17に接続さ
れる各種のデバイスとのアクセスを総括的に制御し、印
刷部インタフェース19を介して接続される印刷部(プ
リンタエンジン)20にプリンとデータとしての画像信
号(VDO)を出力する。16はRAMで、図示しない
増設ポートに接続されるオプションRAMによりメモリ
容量を拡張することができるように構成されている。な
お、18は入力部、1501は操作パネルである。
Further, in the printer 1500, a printer CPU (CPU) 14 generally controls access to various devices connected to the system bus 17 based on a control program stored in the ROM 15 and prints. An image signal (VDO) as a print and data is output to a printing unit (printer engine) 20 connected via a copy interface 19. Reference numeral 16 denotes a RAM, which is configured so that the memory capacity can be expanded by an optional RAM connected to an expansion port (not shown). Reference numeral 18 is an input unit, and 1501 is an operation panel.

【0031】また、図示しないスロットを少なくとも1
個以上備え、内臓フォントに加えてオプションカード,
言語系の異なる制御カード(エミュレーション)を接続
できるように構成されている。さらに、図示しない操作
部からのプリンタモード設定情報を記憶する不揮発性記
憶媒体(NVRAM)も備えている。
At least one slot (not shown) is provided.
With more than one, in addition to the built-in font, option card,
It is configured so that control cards (emulations) of different languages can be connected. Further, a nonvolatile storage medium (NVRAM) for storing printer mode setting information from an operation unit (not shown) is also provided.

【0032】図4は、図3に示したプリンタ1500の
コントローラとエンジンとのインタフェースを説明する
ブロック図である。
FIG. 4 is a block diagram illustrating an interface between the controller and the engine of the printer 1500 shown in FIG.

【0033】図において、21はプリンタコントローラ
で、後述する種々のコマンドをシリアル信号ラインを介
してプリンタエンジン22に出力するとともに、プリン
タエンジン22のステータスに基づいて印字データをシ
リアル信号ラインを介してプリンタエンジン22に出力
する。なお、25はコマンドバッファである。
In the figure, reference numeral 21 denotes a printer controller, which outputs various commands to be described later to the printer engine 22 via a serial signal line, and print data based on the status of the printer engine 22 to the printer via the serial signal line. Output to the engine 22. Reference numeral 25 is a command buffer.

【0034】25aは待ち行列型の命令バッファ(バッ
ファ)(QUEUE COMMAND BUFFER)
で、例えばFIFOメモリで構成され、本実施例では最
大4個の命令(例えばNOP(NO OPERATIO
N),プリント命令PRINT等)を記憶することがで
きるように構成されている。25bは単一ステップ命令
バッファ(単一バッファ)で、単一命令を記憶する。
Reference numeral 25a denotes a queue type instruction buffer (buffer) (QUEUE COMMAND BUFFER).
In this embodiment, a maximum of four instructions (for example, NOP (NO OPERATIO) are used.
N), print command PRINT, etc.) can be stored. A single-step instruction buffer (single buffer) 25b stores a single instruction.

【0035】このように構成された第1のプリンタ制御
装置において、判定手段(CPU21a)がコマンドバ
ッファ25に格納された各コマンドの実行状態を監視す
るタイマの計時完了状態を判定し、該判定結果に基づい
て前記プリンタコントローラ21がプリンタエンジン2
2を活性化させるための所定動作(印字ヘッドの退避動
作,性能の保持動作(ヘッドのキャップ処理等を含
む))を実行させる汎用コマンド(NOP命令)を発生
するので、プリンタエンジン22とプリンタコントロー
ラ21との状態を常時活性化した状態に維持することが
可能となる。
In the first printer control device thus constructed, the determination means (CPU 21a) determines the time count completion state of the timer for monitoring the execution state of each command stored in the command buffer 25, and the determination result The printer controller 21 based on the
Since a general-purpose command (NOP command) for executing a predetermined operation for activating No. 2 (print head retracting operation, performance holding operation (including head cap processing, etc.)) is generated, the printer engine 22 and printer controller It becomes possible to maintain the state of 21 and the state of being always activated.

【0036】このように構成された第2のプリンタ制御
装置において、該解析手段(プリンタエンジン22)が
解析したコマンドがキューバッファ25aまたは単一バ
ッファ25bに格納され、判定手段(CPU21a)が
該格納されたコマンド実行中のコマンド実行エラー状態
を判定し、該判定結果に基づいて即時命令によりコマン
ド格納バッファ指定先を後続のキューバッファ指定コマ
ンドが受信されるまでの間、バッファ制御手段(プリン
タエンジン22)が単一バッファ25bに切り換え制御
するので、エラー処理回復後のコマンド処理を効率良く
再開することが可能となる。
In the thus configured second printer control device, the command analyzed by the analysis means (printer engine 22) is stored in the queue buffer 25a or the single buffer 25b, and the determination means (CPU 21a) stores the command. The command execution error state during execution of the command is determined, and based on the result of the determination, the command storage buffer is designated by the immediate command until the subsequent queue buffer designation command is received. ) Controls switching to the single buffer 25b, so that command processing after error processing recovery can be efficiently restarted.

【0037】図5は、図4に示したプリンタコントロー
ラとプリンタエンジンとのコマンド実行処理プロセスを
説明する概念図である。
FIG. 5 is a conceptual diagram for explaining the command execution processing process of the printer controller and printer engine shown in FIG.

【0038】図において、PRO1は通信タスク(co
mーtsk)で、コマンド受信解析処理を実行して、受
信コマンドの解析結果に基づいてバッファ利用コマンド
の場合はソフトスイッチ26,27を切り換えて受信命
令を待ち行列命令処理ルーチン(即時命令における待ち
行列制御コマンド実行処理)に基づいてバッファ25a
に記憶させる。
In the figure, PRO1 is a communication task (co
command reception analysis processing is executed, and in the case of a buffer use command based on the analysis result of the received command, the soft switches 26 and 27 are switched to wait for the received command. Queue command processing routine (wait for immediate command) Buffer 25a based on matrix control command execution processing)
To memorize.

【0039】一方、受信したコマンドが即時コマンドの
場合で、かつステータス要求命令の場合には、ステータ
スプロセスルーチンを実行して、プリンタエンジン22
のステータスをシリアル通信ラインを介してプリンタコ
ントローラ21に通知する。
On the other hand, if the received command is an immediate command and is a status request command, the status process routine is executed and the printer engine 22 is executed.
Is notified to the printer controller 21 via the serial communication line.

【0040】PRO2はシーケンスタスク(seqーt
sk)で、バッファ利用コマンドを実行する。
PRO2 is a sequence task (seq-t
In sk), the buffer use command is executed.

【0041】この図に示すように、プリンタコントロー
ラ21よりコマンドを受信すると、通信タスク(com
ーtsk)PRO1がコマンド受信解析処理を開始し、
該コマンドが、NOP命令やプリント命令のように、バ
ッファ利用コマンドであると解析された場合には、NO
P命令やプリント命令をバッファ25aに蓄える。そし
て、シーケンスタスク(seqーtsk)PRO2が該
命令を取り出しながら順次実行する。
As shown in this figure, when a command is received from the printer controller 21, a communication task (com
-Tsk) PRO1 starts command reception analysis processing,
If the command is analyzed as a buffer use command like a NOP command or a print command, NO
The P command and the print command are stored in the buffer 25a. Then, the sequence task (seq-tsk) PRO2 sequentially executes while fetching the instructions.

【0042】なお、命令バッファ25は、命令バッファ
25a,25bを有しており、待ち行列制御命令により
ソフトスイッチ26,27を切り換え制御していずれか
を選択する。
The instruction buffer 25 has instruction buffers 25a and 25b, and the soft switches 26 and 27 are switched and controlled by a queue control instruction to select one of them.

【0043】一方、受信したコマンドが即時命令、例え
ばステータス要求命令や待ち行列制御命令の場合には、
通信タスク(comーtsk)PRO1が即時実行す
る。
On the other hand, if the received command is an immediate command, such as a status request command or a queue control command,
The communication task (com-tsk) PRO1 executes immediately.

【0044】図6,図7は、図5に示したコマンドバッ
ファのデータ構造を説明する模式図である。
6 and 7 are schematic diagrams for explaining the data structure of the command buffer shown in FIG.

【0045】図6において、QCTBLは待ち行列制御
ブロックテーブルで、ポインタ,ステータス,カウント
値,最大カウント値が設定される。QDBLは待ち行列
命令バッファで、ポインタ,オペコード,パラメータが
記憶される。なお、最後尾の待ち行列命令バッファQD
BLの先頭にはバッファエンドを示す「ffffh」が
書き込まれている。
In FIG. 6, QCTBL is a queue control block table in which a pointer, status, count value and maximum count value are set. QDBL is a queue instruction buffer in which pointers, opcodes and parameters are stored. In addition, the last queue instruction buffer QD
"Ffffh" indicating the buffer end is written at the beginning of the BL.

【0046】図7において、SGTBLは単一命令バッ
ファ25bのバッファ制御ブロックテーブルで、ポイン
タ,ステータスが記憶されている。SDBLは単一命令
バッファで、先頭にはバッファエンドを示す「ffff
h」が書き込まれている。
In FIG. 7, SGTBL is a buffer control block table of the single instruction buffer 25b, in which pointers and status are stored. SDBL is a single-instruction buffer, with "ffff" at the beginning indicating the buffer end.
h ”is written.

【0047】これらの図に示すように、各ブロックは8
バイトからなり、単方向ポインタで結ばれたリスト構造
を有する。また、買うブロックは、動的な割付を可能と
するメモリプールより必要な時切り出され、使用後には
たの利用に提供するため再びメモリプールに返却され
る。
As shown in these figures, each block has 8
It consists of bytes and has a list structure linked by unidirectional pointers. Also, the block to be bought is cut out from the memory pool that enables dynamic allocation when necessary, and is returned to the memory pool again for use after you use it.

【0048】図8は本発明に係るプリンタ制御装置にお
ける各タスク間の関連状態を概念的に示す相関図であ
る。
FIG. 8 is a correlation diagram conceptually showing the related state between the respective tasks in the printer control apparatus according to the present invention.

【0049】図において、sysーtskはシステムタ
スクで、割込ハンドラー,タスクスケージューラ,タイ
マ管理等から構成されている。なお、本実施例のエンジ
ン制御タスクは、システムタスクsys−tsk,通信
タスクcom−tsk,シーケンスタスクsequen
ce−tskからなる。これらの各タスクは、カーネル
の機能により互いに独立して平行処理が可能に構成され
ている。また、通信タスクcom−tskは電源投入後
起動され、停止することはない。
In the figure, sys-tsk is a system task, which is composed of an interrupt handler, a task scheduler, a timer management and the like. The engine control task according to the present embodiment includes a system task sys-tsk, a communication task com-tsk, and a sequence task sequence.
It consists of ce-tsk. Each of these tasks is configured to be able to perform parallel processing independently of each other by the function of the kernel. Further, the communication task com-tsk is activated after the power is turned on and never stops.

【0050】さらに、本実施例において、各タスクがカ
ーネルの機能を呼び出すコマンドとして、指定タスク起
動命令str−tsk,終了宣言命令ext−tsk,
停止要求命令ter−tsk,実行中断命令rot−t
sk等がある。このうち、指定タスク起動命令str−
tskは指定したタスクの起動を指示し、終了宣言命令
ext−tskは自タスクの処理終了を宣言を指示し、
停止要求命令ter−tskは指定タスクの停止要求を
指示し、実行中断命令rot−tskは自タスクの一時
実行中断を指示するコマンドとして機能する。
Further, in the present embodiment, as a command for each task to call the function of the kernel, a designated task start instruction str-tsk, an end declaration instruction ext-tsk,
Stop request command ter-tsk, execution interrupt command rot-t
There are sk etc. Of these, the specified task activation instruction str-
tsk indicates the activation of the specified task, the end declaration instruction ext-tsk indicates the end of the processing of the own task, and
The stop request instruction ter-tsk functions as a command for requesting the stop of the designated task, and the execution interruption instruction rot-tsk functions as a command for instructing temporary execution interruption of the own task.

【0051】図9は本発明に係るプリンタ制御装置にお
ける通信タスク手順の一例を示すフローチャートであ
る。なお、(1)〜(8)は各ステップを示す。
FIG. 9 is a flow chart showing an example of a communication task procedure in the printer control apparatus according to the present invention. Note that (1) to (8) indicate each step.

【0052】まず、プリンタエンジン22は受信設定を
行い(1)、プリンタコントローラ21からのコマンド
受信完了を待機し(2)、コマンド受信が完了したら、
コマンドが即時コマンド、例えばステータス要求コマン
ドかどうかを判定し(3)、NO(バッファ利用コマン
ドの場合)ならば、該バッファコマンドが単一ステップ
モードであるかどうかを判定し(4)、YESならばス
テップ(6)に進み、単一バッファ処理を実行して、ス
テップ(1)に戻り、NOならば直ちに次のコマンド受
信に移行するため、ステップ(1)に戻る。
First, the printer engine 22 sets reception (1) and waits for the completion of command reception from the printer controller 21 (2). When command reception is completed,
It is determined whether the command is an immediate command, for example, a status request command (3). If NO (in the case of a buffer use command), it is determined whether the buffer command is the single step mode (4), and if YES. For example, the process proceeds to step (6), the single buffer process is executed, the process returns to step (1), and if NO, the process immediately returns to the next command reception, and therefore the process returns to step (1).

【0053】一方、ステップ(3)の判定でYESの場
合は、ステータス送信処理終了を判定し(7)、YES
ならば送信設定し(8)、ステップ(1)に戻る。
On the other hand, if the result of the determination in step (3) is YES, it is determined that the status transmission process has ended (7), and YES.
If so, the transmission is set (8) and the process returns to step (1).

【0054】このように、コマンドの種別を解析して、
特に、バッファコマンドであった場合には、実行中のモ
ードに基づいて受信した命令をバッファ25a,25b
のいずれかに蓄える。以下、図10,図11を参照しな
がキューモードの命令バッファ処理および単一モードの
命令バッファ処理について説明する。
In this way, by analyzing the command type,
In particular, if the command is a buffer command, the received command is buffered based on the mode being executed.
Store in one of. The queue mode instruction buffer processing and the single mode instruction buffer processing will be described below with reference to FIGS.

【0055】図10は本発明に係るプリンタ制御装置に
おけるキューモードの命令バッファ処理手順の一例を示
すフローチャートである。なお、(1)〜(7)は各ス
テップを示す。
FIG. 10 is a flow chart showing an example of the instruction buffer processing procedure in the queue mode in the printer control apparatus according to the present invention. Note that (1) to (7) indicate each step.

【0056】まず、コマンドバッファ25aがフル状態
かどうかを判定し(1)、YESならばステップ(7)
に進み、コマンド受信を拒否するリジェクトビットを
「1」とする。
First, it is judged whether the command buffer 25a is full (1), and if YES, the step (7).
Then, the reject bit for rejecting the command reception is set to "1".

【0057】一方、ステップ(1)の判定でNOの場合
は、受信したコマンドをデータブロックに格納する
(2)。次いで、現在オペレータコールがなされている
かどうかを判定し(3)、YESならばステップ(6)
以降に進み、NOならばサービスコールがなされている
かどうかを判定し(4)、YESならばステップ(6)
以降に進み、NOならば指定タスク,シーケンスタスク
を実行し(5)、各タスク実行終了後、コマンドバッフ
ァのリジェクトビットを「0」にクリアして、処理を終
了する。
On the other hand, if the judgment in step (1) is NO, the received command is stored in the data block (2). Next, it is judged whether or not an operator call is currently made (3), and if YES, a step (6)
Then, if NO, it is judged whether or not a service call is made (4), and if YES, step (6).
If NO, the designated task and the sequence task are executed (5), and after each task execution is completed, the reject bit of the command buffer is cleared to "0" and the processing is completed.

【0058】図11は本発明に係るプリンタ制御装置に
おける単一ステップモードの命令バッファ処理手順の一
例を示すフローチャートである。なお、(1)〜(7)
は各ステップを示す。
FIG. 11 is a flow chart showing an example of the instruction buffer processing procedure in the single step mode in the printer control apparatus according to the present invention. Note that (1) to (7)
Indicates each step.

【0059】まず、シーケンスタスク実行中かどうかを
判定し(1)、YESならばステップ(7)に進み、コ
マンド受信を拒否するリジェクトビットを「1」とす
る。
First, it is determined whether or not the sequence task is being executed (1), and if YES, the process proceeds to step (7), and the reject bit for rejecting command reception is set to "1".

【0060】一方、ステップ(1)の判定でNOの場合
は、現在オペレータコールがなされているかどうかを判
定し(2)、YESならばステップ(7)以降に進み、
NOならばサービスコールがなされているかどうかを判
定し(3)、YESならばステップ(7)以降に進み、
NOならばデータブロックの読出しを実行し(4)、指
定タスク,シーケンスタスクを実行する(5)。次い
で、各タスク実行終了後、コマンドバッファのリジェク
トビットを「0」にクリアして(6)、処理を終了す
る。
On the other hand, if the judgment in step (1) is NO, it is judged whether or not an operator call is currently made (2). If YES, the process proceeds to step (7) and thereafter.
If NO, it is judged whether or not a service call is made (3), and if YES, the process proceeds to step (7) and thereafter,
If NO, the data block is read (4), and the designated task and sequence task are executed (5). Next, after the execution of each task is completed, the reject bit of the command buffer is cleared to "0" (6), and the processing is ended.

【0061】図12,図13は本発明に係る第1のプリ
ンタ制御方法における待機タスクの一例を示すフローチ
ャートである。なお、(1)〜(21)は各ステップを
示す。
12 and 13 are flowcharts showing an example of the waiting task in the first printer control method according to the present invention. Note that (1) to (21) indicate each step.

【0062】まず、3秒待機し(1)、排紙要求フラグ
がONかどうかを判定し(2)、NOならばステップ
(4)以降に進み、YESならばプリンタエンジン22
内の用紙を排出する排紙ルーチンを実行する(3)。次
いで、キャリッジを所定の待機位置へ移動させ(4)、
3秒待機させる(5)。次いで、キャリッジを始動中間
位置へ移動させる(6)。次いで、6秒待機し(7)、
キャリッジを諸知恵の隠蔽位置へ移動させ(8)、制御
目標温度を25度Cに設定し(9)、48秒待機する
(10)。次いで、制御目標温度を20度Cに設定し
(11)、ループカウンタを「24」にセットし(1
2)、さらに60秒待機する(13)。次いで、ループ
カウンタを「1」ディクリメントし(14)、ループカ
ウント値が「0」かどうかを判定し(15)、YESな
らばステップ(20)に進み、ヘッド温度制御を停止
し、自タスクの処理終了宣言を行い(21)、処理を終
了する。
First, after waiting for 3 seconds (1), it is judged whether or not the discharge request flag is ON (2). If NO, the process proceeds to step (4) and thereafter, and if YES, the printer engine 22.
A paper discharge routine for discharging the paper inside is executed (3). Next, move the carriage to a predetermined standby position (4),
Wait for 3 seconds (5). Next, the carriage is moved to the starting intermediate position (6). Then wait 6 seconds (7),
The carriage is moved to the concealing position of various wisdom (8), the control target temperature is set to 25 ° C. (9), and it stands by for 48 seconds (10). Next, the control target temperature is set to 20 degrees C (11), and the loop counter is set to "24" (1
2) Wait for another 60 seconds (13). Next, the loop counter is decremented by "1" (14), it is determined whether the loop count value is "0" (15), and if YES, the process proceeds to step (20), the head temperature control is stopped, and the task The processing end declaration is performed (21), and the processing ends.

【0063】一方、ステップ(15)の判定でNOの場
合は、インク切れが発生しているかどうかを判定し(1
6)、YESならばステップ(20)以降に進み、NO
ならばインクキャリッジが未装着状態かどうかを判定し
(17)、YESならばステップ(20)以降に進み、
NOならば室温が25度C以上かどうかを判定し(1
8)、YESならばステップ(13)へ戻り、NOなら
ば全ノズルヒータを点火して古いインクを吐き出す予備
吐出を行い(19)、ステップ(13)へ戻る。
On the other hand, if the judgment in step (15) is NO, it is judged whether or not ink is running out (1
6) If YES, proceed to step (20) and thereafter, NO
If so, it is determined whether the ink carriage is not mounted (17). If YES, the process proceeds to step (20) and thereafter.
If NO, it is judged whether the room temperature is 25 degrees C or higher (1
8) If YES, the process returns to step (13), and if NO, all nozzle heaters are ignited to perform preliminary ejection for ejecting old ink (19), and the process returns to step (13).

【0064】このように第1のプリンタ制御方法によれ
ば、プリンタコントローラからエンジンコントローラに
送出されたコマンドをバッファに格納し、該格納された
各コマンドの実行状態を監視するタイマを起動し、該起
動したタイマの計時完了状態を判定し、該判定結果に基
づいてプリンタコントローラがプリンタエンジンを活性
化させるための所定動作を実行させる汎用コマンドを自
動送出するので、プリンタエンジンとプリンタコントロ
ーラとの状態を常時活性化した状態に維持することが可
能となる。
As described above, according to the first printer control method, the command sent from the printer controller to the engine controller is stored in the buffer, the timer for monitoring the execution state of each stored command is started, and The status of the printer engine and printer controller is determined because the printer controller automatically sends a general command to execute the predetermined operation for activating the printer engine based on the judgment result of the activated timer. It is possible to maintain the activated state at all times.

【0065】図14は本発明に係る第2のプリンタ制御
方法におけるシーケンスタスクの一例を示すフローチャ
ートである。なお、(1)〜(10)は各ステップを示
す。
FIG. 14 is a flow chart showing an example of a sequence task in the second printer control method according to the present invention. Note that (1) to (10) indicate each step.

【0066】まず、コマンドバッファ25a,25bが
空き状態かどうかを判定し(1)、YESならばステッ
プ(9)に進み、コマンドの実行ビットをクリアして、
自タスクの処理終了を宣言して(10)、処理を終了す
る。
First, it is determined whether or not the command buffers 25a and 25b are empty (1). If YES, the process proceeds to step (9) to clear the command execution bit,
The processing end of the own task is declared (10), and the processing is ended.

【0067】一方、ステップ(1)の判定でNOならば
指定タスク,停止処理および監視タスクを実行する
(2)。次いで、コマンドの実行ビットをセットする
(3)。次いで、コマンドの進行コードをセットする
(4)。次いで、コマンドバッファ25a,25bから
コマンドを取り出して実行する(5)。次いで、指定タ
スクおよび監視タスクを起動し(6)、エラー終了とな
ったかどうかを判定し(7)、YESならばステップ
(9)以降に進み、NOならばデータブロックを解放し
(8)、ステップ(1)に戻る。
On the other hand, if the judgment in step (1) is NO, the designated task, stop processing and monitoring task are executed (2). Next, the execution bit of the command is set (3). Next, the progress code of the command is set (4). Next, the command is fetched from the command buffers 25a and 25b and executed (5). Next, the designated task and the monitoring task are activated (6), and it is determined whether or not the processing ends in error (7). If YES, the process proceeds to step (9) and thereafter, and if NO, the data block is released (8), Return to step (1).

【0068】このように第2のプリンタ制御方法よれ
ば、プリンタコントローラ21からエンジンコントロー
ラに送出されたコマンドを解析してキューバッファまた
は単一バッファに格納し、該コマンド実行中のコマンド
実行エラー状態を判定し、該判定結果に基づいて即時命
令によりコマンド格納バッファ指定先を後続のキューバ
ッファ指定コマンドが受信されるまでの間、単一バッフ
ァに切り換え制御する。
As described above, according to the second printer control method, the command sent from the printer controller 21 to the engine controller is analyzed and stored in the queue buffer or the single buffer, and the command execution error state during the execution of the command is detected. Based on the determination result, the command storage buffer designation destination is switched to a single buffer by an immediate instruction until a subsequent queue buffer designation command is received.

【0069】図15は本発明に係るプリンタ制御装置に
おけるエラー回復処理手順の一例を示すフローチャート
である。なお、(1),(2)は各ステップを示す。
FIG. 15 is a flow chart showing an example of an error recovery processing procedure in the printer control apparatus according to the present invention. Note that (1) and (2) indicate each step.

【0070】まず、エラー回復後、命令バッファのモー
ドを単一ステップモードに切り換え(1)、OEMエラ
ールーチンを実行し(2)、コマンド処理を再開する。
First, after error recovery, the mode of the instruction buffer is switched to the single step mode (1), the OEM error routine is executed (2), and the command processing is restarted.

【0071】図16は発明に係るプリンタ制御装置にお
けるオペレータコール処理手順の一例を示すフローチャ
ートである。なお、(1)〜(3)は各ステップを示
す。なお、本実施例において、オペレータコールエラー
とは、オペレータの介在によって回復可能なエラーに対
応し、例えば紙詰まり,インク無し等である。
FIG. 16 is a flow chart showing an example of an operator call processing procedure in the printer control apparatus according to the invention. Note that (1) to (3) indicate each step. In the present embodiment, the operator call error corresponds to an error that can be recovered by the intervention of the operator, and is, for example, a paper jam, no ink, or the like.

【0072】まず、インクキャリッジの有無を確認し、
プリンタがアイドル中は、センサステータス命令で、セ
ンサビットの読出しを要求し、プリンタが動作中は、汎
用ステータス命令でオペレータコールビットの読出しを
要求する。
First, the presence or absence of the ink carriage is confirmed,
When the printer is idle, the sensor status command requests reading of the sensor bit, and when the printer is operating, the general status command requests reading of the operator call bit.

【0073】そして、命令バッファのモードを単一ステ
ップモードに切り換え設定し、OEMエラールーチンを
実行し、処理終了後、命令処理を再開する。
Then, the mode of the instruction buffer is switched to the single step mode, the OEM error routine is executed, and after the processing is completed, the instruction processing is restarted.

【0074】なお、単一モードへの切り換えタイミング
は、プリンタがアイドル中にインクキャリッジを抜かれ
たとき、およびプリンタが動作中にオペレータコールと
なった時、プリンタエンジンの命令処理モードを単一モ
ードに切り換え、プリンタをオフラインとする。
The timing for switching to the single mode is that the instruction processing mode of the printer engine is set to the single mode when the ink carriage is pulled out while the printer is idle and when an operator call is made while the printer is operating. Switch and take the printer offline.

【0075】そして、単一モード直後での処理として、
まず、ステータス命令によってオペレータコールの発生
原因を知る。必要な場合は命令キューの先頭をあらかじ
め命令キュー制御命令により先頭からディーキューとし
ておく。
Then, as the processing immediately after the single mode,
First, the cause of the operator call is known from the status command. If necessary, the head of the instruction queue is de-queued in advance from the head by an instruction queue control command.

【0076】また、単一モード中においては、監視タス
クは時間の経過に従ってバッファ25bが空き状態とな
る迄待ってから、バッファ25bに内部発生命令を入れ
る。また、単一モード中、コントローラは、命令の終了
を確認してから回復のための命令を1個ずつ送る。
In the single mode, the monitoring task waits until the buffer 25b becomes empty as time passes, and then inserts the internally generated instruction into the buffer 25b. Also, in the single mode, the controller confirms the end of the instruction and then sends the instruction for recovery one by one.

【0077】さらに、キューモードを再開するタイミン
グは以下の通りである。すなわち、単一モードにて対応
する回復動作を終了した後、プリンタは、オンラインキ
ー待ちとする。そして、オンラインとなった時、再開命
令にてキューモードを再開する。まず、通信状態をオフ
ラインとし(1)、オペレータコール処理の旨を警告表
示し(2)、ユーザが対応した処理(例えば、用紙補
充,インクカートリッジの交換等)を行い(3)、オン
ラインキーの押下により、通信状態をオンライン状態と
する。
Further, the timing for restarting the cue mode is as follows. That is, after completing the corresponding recovery operation in the single mode, the printer waits for the online key. Then, when it comes online, the cue mode is restarted by a restart command. First, the communication state is set to offline (1), a warning indicating that operator call processing has been performed (2), processing corresponding to the user (for example, paper replenishment, ink cartridge replacement, etc.) is performed (3), and the online key When pressed, the communication state is changed to the online state.

【0078】[0078]

【発明の効果】以上説明したように、第1のプリンタ制
御方法によれば、プリンタコントローラからエンジンコ
ントローラに送出されたコマンドをバッファに格納し、
該格納された各コマンドの実行状態を監視するタイマを
起動し、該起動したタイマの計時完了状態を判定し、該
判定結果に基づいてプリンタコントローラがプリンタエ
ンジンを活性化させるための所定動作を実行させる汎用
コマンドを自動送出するので、プリンタエンジンとプリ
ンタコントローラとの状態を常時活性化した状態に維持
することができる。
As described above, according to the first printer control method, the command sent from the printer controller to the engine controller is stored in the buffer,
A timer that monitors the execution state of each of the stored commands is activated, the timed completion state of the activated timer is determined, and the printer controller executes a predetermined operation based on the determination result to activate the printer engine. Since the general-purpose command to be sent is automatically transmitted, the states of the printer engine and the printer controller can be maintained in a constantly activated state.

【0079】第1のプリンタ制御装置によれば、判定手
段がバッファに格納された各コマンドの実行状態を監視
するタイマの計時完了状態を判定し、該判定結果に基づ
いて前記プリンタコントローラがプリンタエンジンを活
性化させるための所定動作を実行させる汎用コマンドを
発生するので、プリンタエンジンとプリンタコントロー
ラとの状態を常時活性化した状態に維持することができ
る。
According to the first printer control device, the determination means determines the time-measurement completion state of the timer for monitoring the execution state of each command stored in the buffer, and the printer controller causes the printer engine to operate based on the determination result. Since a general-purpose command for executing a predetermined operation for activating the printer is generated, the states of the printer engine and the printer controller can be maintained in the activated state at all times.

【0080】第2のプリンタ制御方法によれば、プリン
タコントローラからエンジンコントローラに送出された
コマンド種別を解析して受信したコマンドをキューバッ
ファまたは単一バッファに格納し、該コマンド実行中の
コマンド実行エラー状態を判定し、該判定結果に基づい
て即時命令によりコマンド格納バッファ指定先を後続の
キューバッファ指定コマンドが受信されるまでの間、単
一バッファに切り換え制御するので、エラー処理回復後
のコマンド処理を効率良く再開することができる。
According to the second printer control method, the command type sent from the printer controller to the engine controller is analyzed, and the received command is stored in the queue buffer or the single buffer. The status is judged, and the command storage buffer is switched to a single buffer until the succeeding queue buffer specifying command is received by the immediate command based on the judgment result. Can be restarted efficiently.

【0081】第2のプリンタ制御装置によれば、該解析
手段が解析したコマンドがキューバッファまたは単一バ
ッファに格納され、判定手段が該格納されたコマンド実
行中のコマンド実行エラー状態を判定し、該判定結果に
基づいて即時命令によりコマンド格納バッファ指定先を
後続のキューバッファ指定コマンドが受信されるまでの
間、バッファ制御手段が単一バッファに切り換え制御す
るので、エラー処理回復後のコマンド処理を効率良く再
開することができる。
According to the second printer control device, the command analyzed by the analyzing means is stored in the queue buffer or the single buffer, and the determining means determines the command execution error state during execution of the stored command, Based on the result of the judgment, the buffer control means controls the switching to the single buffer until the subsequent command to specify the command storage buffer is received by the immediate command by the immediate command. It can be restarted efficiently.

【0082】従って、プリンタエンジンとプリンタコン
トローラとの間のコマンド実行状態を疑似的に活性化状
態に保持でき、プリンタエンジンとプリンタコントロー
ラとの間におけるシーケンスのタイミングずれ発生を確
実に防止できる。また、コマンド実行エラー発生後にお
けるコマンドの退避復元処理を不用となり、エラー回復
処理を効率的に行える等の優れた効果を奏する。
Therefore, the command execution state between the printer engine and the printer controller can be maintained in a pseudo activated state, and the occurrence of the sequence timing deviation between the printer engine and the printer controller can be reliably prevented. Further, the command saving / restoring process after the occurrence of the command execution error is unnecessary, and an excellent effect such that the error recovery process can be efficiently performed is achieved.

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

【図1】本発明を適用可能な記録装置の構成を説明する
外観図である。
FIG. 1 is an external view illustrating a configuration of a recording apparatus to which the present invention can be applied.

【図2】図1に示した記録装置の制御構成を説明するブ
ロック図である。
2 is a block diagram illustrating a control configuration of the recording apparatus illustrated in FIG.

【図3】本発明の第1実施例を示すプリンタ制御装置の
構成を説明するブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a printer control apparatus according to the first exemplary embodiment of the present invention.

【図4】図3に示したプリンタのコントローラとエンジ
ンとのインタフェースを説明するブロック図である。
4 is a block diagram illustrating an interface between a controller and an engine of the printer shown in FIG.

【図5】図4に示したプリンタコントローラとプリンタ
エンジンとのコマンド実行処理プロセスを説明する概念
図である。
5 is a conceptual diagram illustrating a command execution processing process between the printer controller and the printer engine illustrated in FIG.

【図6】図1に示したコマンドバッファのデータ構造を
説明する模式図である。
6 is a schematic diagram illustrating a data structure of a command buffer shown in FIG.

【図7】図1に示したコマンドバッファのデータ構造を
説明する模式図である。
7 is a schematic diagram illustrating the data structure of the command buffer shown in FIG.

【図8】本発明に係るプリンタ制御装置における各タス
ク間の関連状態を概念的に示す相関図である。
FIG. 8 is a correlation diagram conceptually showing a related state between tasks in the printer control apparatus according to the present invention.

【図9】本発明に係るプリンタ制御装置における通信タ
スク手順の一例を示すフローチャートである。
FIG. 9 is a flowchart showing an example of a communication task procedure in the printer control apparatus according to the present invention.

【図10】本発明に係るプリンタ制御装置におけるキュ
ーモードの命令バッファ処理手順の一例を示すフローチ
ャートである。
FIG. 10 is a flowchart showing an example of an instruction buffer processing procedure in queue mode in the printer control apparatus according to the present invention.

【図11】本発明に係るプリンタ制御装置における単一
ステップモードの命令バッファ処理手順の一例を示すフ
ローチャートである。
FIG. 11 is a flowchart showing an example of an instruction buffer processing procedure in a single step mode in the printer control device according to the present invention.

【図12】本発明に係る第1のプリンタ制御方法におけ
るシーケンスタスクの一例を示すフローチャートであ
る。
FIG. 12 is a flowchart showing an example of a sequence task in the first printer control method according to the present invention.

【図13】本発明に係る第1のプリンタ制御方法におけ
るシーケンスタスクの一例を示すフローチャートであ
る。
FIG. 13 is a flowchart showing an example of a sequence task in the first printer control method according to the present invention.

【図14】本発明に係る第2のプリンタ制御方法におけ
るシーケンスタスクの一例を示すフローチャートであ
る。
FIG. 14 is a flowchart showing an example of a sequence task in the second printer control method according to the present invention.

【図15】本発明に係るプリンタ制御装置におけるエラ
ー回復処理手順の一例を示すフローチャートである。
FIG. 15 is a flowchart showing an example of an error recovery processing procedure in the printer control device according to the present invention.

【図16】発明に係るプリンタ制御装置におけるオペレ
ータコール処理手順の一例を示すフローチャートであ
る。
FIG. 16 is a flowchart showing an example of an operator call processing procedure in the printer control device according to the invention.

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

21 プリンタコントローラ 22 プリンタエンジン 25 コマンドバッファ 21 printer controller 22 printer engine 25 command buffer

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プリンタコントローラとエンジンコント
ローラとが通信してコマンド処理を行うプリンタ制御方
法において、プリンタコントローラからエンジンコント
ローラに送出されたコマンドをバッファに格納し、該格
納された各コマンドの実行状態を監視するタイマを起動
し、該起動したタイマの計時完了状態を判定し、該判定
結果に基づいてプリンタコントローラがプリンタエンジ
ンを活性化させるための所定動作を実行させる汎用コマ
ンドを自動送出することを特徴とするプリンタ制御方
法。
1. In a printer control method in which a printer controller and an engine controller communicate with each other to perform command processing, a command sent from the printer controller to the engine controller is stored in a buffer, and an execution state of each of the stored commands is stored. The invention is characterized in that a timer to be monitored is activated, a time counting completion state of the activated timer is determined, and based on the determination result, a printer controller automatically sends a general-purpose command for executing a predetermined operation for activating a printer engine. Printer control method.
【請求項2】 プリンタコントローラとエンジンコント
ローラとが通信してコマンド処理を行うプリンタ制御装
置において、プリンタコントローラからエンジンコント
ローラに送出されたコマンドを格納するバッファと、こ
のバッファに格納された各コマンドの実行状態を監視す
るタイマと、このタイマの計時完了状態を判定する判定
手段と、この判定手段の判定結果に基づいて前記プリン
タコントローラがプリンタエンジンを活性化させるため
の所定動作を実行させる汎用コマンドを発生することを
特徴とするプリンタ制御装置。
2. In a printer control device in which a printer controller and an engine controller communicate with each other to perform command processing, a buffer for storing a command sent from the printer controller to the engine controller and execution of each command stored in this buffer. A timer for monitoring the state, a determination means for determining the time counting completion state of the timer, and a general-purpose command for causing the printer controller to execute a predetermined operation for activating the printer engine based on the determination result of the determination means. A printer control device characterized by:
【請求項3】 プリンタコントローラとエンジンコント
ローラとが通信してコマンド処理を行うプリンタ制御方
法において、プリンタコントローラからエンジンコント
ローラに送出されたコマンドを解析してキューバッファ
または単一バッファに格納し、該コマンド実行中のコマ
ンド実行エラー状態を判定し、該判定結果に基づいて即
時命令によりコマンド格納バッファ指定先を後続のキュ
ーバッファ指定コマンドが受信されるまでの間、単一バ
ッファに切り換え制御することを特徴とするプリンタ制
御方法。
3. A printer control method in which a printer controller and an engine controller communicate with each other to perform command processing, and a command sent from the printer controller to the engine controller is analyzed and stored in a queue buffer or a single buffer. A feature is that a command execution error state during execution is determined, and based on the determination result, a command storage buffer designation destination is switched to a single buffer by an immediate instruction until a subsequent queue buffer designation command is received. Printer control method.
【請求項4】 プリンタコントローラとエンジンコント
ローラとが通信してコマンド処理を行うプリンタ制御装
置において、プリンタコントローラからエンジンコント
ローラに送出されたコマンドを解析する解析手段と、該
解析手段が解析したコマンドを複数格納するキューバッ
ファと、前記解析手段が受信したコマンドを単数格納す
る単一バッファと、これらのキューバッファまたは単一
バッファに格納された該コマンド実行中のコマンド実行
エラー状態を判定する判定手段と、この判定手段の判定
結果に基づいて即時命令によりコマンド格納バッファ指
定先を後続のキューバッファ指定コマンドが受信される
までの間、単一バッファに切り換え制御するバッファ制
御手段とを有することを特徴とするプリンタ制御装置。
4. A printer control device in which a printer controller and an engine controller communicate with each other to perform command processing, and a plurality of analyzing means for analyzing a command sent from the printer controller to the engine controller and a plurality of commands analyzed by the analyzing means. A queue buffer for storing, a single buffer for storing a single command received by the analyzing means, and a determining means for determining a command execution error state during execution of the command stored in the queue buffer or the single buffer, Buffer control means for controlling switching to a single buffer until the subsequent queue buffer designation command is received by the immediate command based on the determination result of the determination means. Printer control device.
JP5103709A 1993-04-07 1993-04-07 Control method of printer and device therefor Pending JPH06286271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5103709A JPH06286271A (en) 1993-04-07 1993-04-07 Control method of printer and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5103709A JPH06286271A (en) 1993-04-07 1993-04-07 Control method of printer and device therefor

Publications (1)

Publication Number Publication Date
JPH06286271A true JPH06286271A (en) 1994-10-11

Family

ID=14361266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5103709A Pending JPH06286271A (en) 1993-04-07 1993-04-07 Control method of printer and device therefor

Country Status (1)

Country Link
JP (1) JPH06286271A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331300A (en) * 2000-03-17 2001-11-30 Seiko Epson Corp Communication terminal equipment and received data processing method and recording medium
US7480788B2 (en) 2005-03-31 2009-01-20 Fujitsu Limited Command time-out managing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001331300A (en) * 2000-03-17 2001-11-30 Seiko Epson Corp Communication terminal equipment and received data processing method and recording medium
US7480788B2 (en) 2005-03-31 2009-01-20 Fujitsu Limited Command time-out managing apparatus

Similar Documents

Publication Publication Date Title
US6132117A (en) Printing apparatus, control method therefor and medium for storing the control method
US20030156129A1 (en) Information processing method and apparatus
JP3305042B2 (en) Printing control device
JPH06286271A (en) Control method of printer and device therefor
JP3019306B2 (en) Printing device
JP2001042707A (en) Printer and its control method
JPH08183228A (en) Image forming method and apparatus
JP4058982B2 (en) Printer
JP3311056B2 (en) Image forming method and apparatus
JP3382349B2 (en) Print control apparatus and method
JP2001239724A (en) Information processing device, print controlling device, printing system and control method therefor, printing device, and memory medium
JP3083251B2 (en) Page printer
JPH1017168A (en) Paper sheet cassette automatic switching method
JP3205174B2 (en) Printing apparatus and control method thereof
JPH0664251A (en) Printing equipment and control method thereof
JPH08192553A (en) Printer
JP2871981B2 (en) Printing apparatus and control method thereof
JPH0816336A (en) Printer and state switching method for the same
JPH0664252A (en) Printing equipment having emulation mode
JP2001084116A (en) Picture forming device and its controlling method
JP3083026B2 (en) Output data transfer control device and transfer control method
JP2860210B2 (en) Printing control device
JPH0930088A (en) Printer device and control method thereof
JP2745514B2 (en) Printer control device
JP2000141814A (en) Printer and initialization thereof