JPH09123570A - Printer device - Google Patents

Printer device

Info

Publication number
JPH09123570A
JPH09123570A JP7286289A JP28628995A JPH09123570A JP H09123570 A JPH09123570 A JP H09123570A JP 7286289 A JP7286289 A JP 7286289A JP 28628995 A JP28628995 A JP 28628995A JP H09123570 A JPH09123570 A JP H09123570A
Authority
JP
Japan
Prior art keywords
information
abnormal
flag
storage
writing
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
JP7286289A
Other languages
Japanese (ja)
Inventor
Takashi Hori
隆志 堀
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP7286289A priority Critical patent/JPH09123570A/en
Publication of JPH09123570A publication Critical patent/JPH09123570A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a printer device including a means for withdrawing the necessary information such as a parameter in the normal operation period in accordance with the aspects of changes thereof in the event of an abnormal end of the printer, and capable of being restored in a state immediately before the occurrence of an abnormality of the electric source by means of a small capacitance condenser. SOLUTION: The recovery means 4 comprises a storing information writing means 41, an abnormal state flag writing means 42, and a storage information recovering means 43. The storage information writing means 41 acts during the printing process to write changed information every change in EEPROM 5 as storage information with respect to discontinuous changed information in storage necessitating information to be required for storage, and also write information changed every predetermined time in EEPROM 5 as storage information with respect to continuous changed information in the storage necessitating information. The abnormal state flag writing means 42 operates in printing process period to write an abnormal state flag in EEPROM 5 In the event of an abnormal end. Further, the storage information restoring means 43 reads out the storage information stored in EEPROM 5 when the abnormal end state being generated in the printer is restored and becomes possible for normal operation, and performs a process to restore it in accordance with the content instructed by the abnormal state flag.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はプリンタ装置に関す
る。
The present invention relates to a printer device.

【0002】[0002]

【従来の技術】コンピュータシステムにおいて、ホスト
コンピュータまたは周辺装置が動作中に異常終了する原
因の一つに停電等を原因とする電源遮断の発生や誤操作
による電源スイッチオフ等の電源異常によるものがあ
る。
2. Description of the Related Art In a computer system, one of the causes of abnormal termination during operation of a host computer or a peripheral device is due to power failure such as power failure due to power failure or power switch off due to erroneous operation. .

【0003】大・中・小型コンピュータ装置では、処理
中に電源遮断が通常手順(プログラムによる場合も含
む)による電源スイッチオフ以外の原因で生じた場合に
は、遮断直前のRAM上の処理データやパラメータ等の
設定データやシステムによるカウンタ値等が消失するこ
ととなり、処理直前の状態に復帰させることができなく
なるので、コンピュータ装置の規模や使用目的に応じて
退避させるデータの範囲や量は異なるが、大容量コンデ
ンサー,バッテリー等の緊急予備電源(コンピュータ装
置の規模によっては更に予備発電装置を有する場合もあ
る)を備え、一定時間通電状態を維持させてRAM上の
データ消失を防ぐと共に処理中のデータやパラメータ等
の設定データやシステムによるカウンタ値等を磁気ディ
スク等に退避させ、電源回復時にこれらを復帰させて処
理を継続する、いわゆる電源異常に対するリカバリー措
置が講じられている。
In large / medium / small computer devices, if power shutdown occurs during processing due to a cause other than power switch off due to a normal procedure (including by a program), processing data on the RAM immediately before shutdown and Since the setting data such as parameters and the counter value by the system will be lost and it will not be possible to return to the state immediately before processing, the range and amount of data to be saved will differ depending on the scale and purpose of use of the computer device. , An emergency standby power source such as a large-capacity capacitor and a battery (depending on the scale of the computer device, a standby power generation device may be further provided) to keep the energized state for a certain period of time to prevent data loss on the RAM and Save the setting data such as data and parameters and the counter value by the system to the magnetic disk, Source to continue the processing is returned them during recovery, recovery measures are taken against the so-called power failure.

【0004】一方、パーソナルコンピュータシステムで
は上述したコンピュータ装置と同様の電源異常の発生に
加え、電源保護が上述したコンピュータ装置に比べ簡易
であることや、例えば、コンセントが足に絡んで抜けて
しまうというような事を原因とする電源異常が発生する
場合があることなどから、上述したコンピュータ装置に
比べ電源異常の発生するチャンスが多いが、コストおよ
び物理的なサイズの制約により備えられる緊急予備電源
の種類や大きさ(容量)が制限されるので、リカバリー
措置も制約され、パラメータ等の設定データやシステム
によるカウンタ値等の退避を限度とするものが多い。
On the other hand, in the personal computer system, in addition to the occurrence of a power supply abnormality similar to that of the computer device described above, the power supply protection is simpler than that of the computer device described above, and, for example, the outlet is entangled with the foot and pulled out. Since there is a case where a power failure occurs due to such a situation, there is a greater chance that a power failure will occur as compared to the above-mentioned computer device, but there is an emergency backup power supply provided due to cost and physical size restrictions. Since the type and size (capacity) are limited, recovery measures are also limited, and in many cases, the saving of setting data such as parameters and the counter value by the system is limited.

【0005】ここで、パーソナルコンピュータシステム
の周辺機器、特に、プリンタ装置にあってはホストコン
ピュータ側と電源ケーブルを接続して電源を得る場合
や、ホストコンピュータ側とは電源を別にし(例えば、
家庭用電源にアダプタ付電源ケーブルを接続して)電源
供給を得る場合があるので、ホスト側の電源異常や誤っ
た処理手順によるホスト側メインスイッチオフによる印
字処理の中断に加え、印字処理中にプリンタ側の停電や
コンセントが抜かれるなどのプリンタ装置自体の電源異
常により印字処理の中断(異常終了)が生ずる場合があ
る。
Here, in the case of a peripheral device of a personal computer system, particularly in a printer device, a power cable is connected to the host computer side to obtain a power source, or a power source is separated from the host computer side (for example,
The power supply may be obtained by connecting the power cable with adapter to the household power supply. In addition to the power failure on the host side or the interruption of the printing process due to the host-side main switch being turned off due to an incorrect processing procedure, during the printing process, In some cases, the printing process is interrupted (abnormal termination) due to a power failure of the printer device itself, such as a power failure on the printer side or an outlet being unplugged.

【0006】このような印字処理の中断に対する措置と
して、従来、プリンタ装置に大容量コンデンサを備え、
100msec程度の間5Vの電圧を保持させこの間に
プリンタ装置として必要な情報(パラメータやカウント
値等)をEEPROMに記憶させていた。
As a measure against such interruption of the printing process, conventionally, a printer device is provided with a large-capacity capacitor.
The voltage of 5 V is held for about 100 msec, and the information (parameters, count value, etc.) necessary for the printer device is stored in the EEPROM during this period.

【0007】[0007]

【発明が解決しようとする課題】パーソナルコンピュー
タシステムにおいては、一般的に、前述したように物理
的なサイズの制約に加え価格的な制約があるが、このこ
とはシステムを構成する周辺機器にも当然に及ぶので、
電源異常を原因とする印刷処理の異常終了に対処するた
めにプリンタ装置に大容量の予備電源を備えることは望
ましくないという設計上、販売上の要請がある。
Generally, in the personal computer system, there are price restrictions in addition to the physical size restrictions as described above, but this also applies to the peripheral devices constituting the system. Of course,
There is a design and sales demand that it is not desirable to equip a printer device with a large-capacity standby power supply in order to cope with abnormal termination of printing processing due to power supply abnormality.

【0008】そこで、理想的には、プリンタ装置にEE
PROMのような書込/読み出し可能な不揮発性メモリ
ーを備え、常時、パラメータやカウント値等の必要情報
を記保存させておき、電源終了状態の回復後それらの保
存情報を読み出して異常状態発生直前のパラメータやカ
ウント値等の必要情報を復帰させて処理を行えるよう構
成することが望ましいが、EEPROMの書込回数は現
時点では10万回程度が限度のため、頻繁に書込を行う
とすぐに寿命がきてしまうので、前述したように、従来
技術では、電源がオフ(通常手順による電源オフおよび
電源異常による遮断を含む)になった場合にのみ、10
0msec程度の間5Vの電圧を保持させ、書込むよう
に構成している。
Therefore, ideally, EE is used for the printer device.
A non-volatile memory such as a PROM that can be written / read out is always stored with necessary information such as parameters and count values, and after the power-off state is restored, the stored information is read out immediately before the abnormal state occurs. It is desirable to configure so that the necessary information such as the parameters and count values can be restored and the processing can be performed. However, since the number of writing times of the EEPROM is limited to about 100,000 times at the present time, as soon as writing is performed frequently As described above, according to the conventional technique, the life is shortened. Therefore, in the related art, only when the power is turned off (including the power-off according to the normal procedure and the interruption due to the power supply abnormality),
A voltage of 5 V is held for about 0 msec and writing is performed.

【0009】しかしながら、この書込に必要な時間5V
の電圧を保持するためにはプリンタ装置に大容量コンデ
ンサを備えなければならず、また、印刷性能の高度化、
高速化に伴い保存したい情報が増加する傾向にあるが、
この場合には従来より大きな容量のコンデンサーを要す
ることとなり、いずれも、上述したプリンタ装置の設計
上の要請に反するという問題点があった。
However, the time required for this writing is 5 V
Printers must be equipped with large-capacity capacitors to maintain the voltage of
The information you want to store tends to increase with speeding up,
In this case, a capacitor having a larger capacity than that of the conventional case is required, and each of them has a problem that it violates the above-mentioned design requirement of the printer device.

【0010】本発明は上記問題点を解消するためになさ
れたものであり、プリンタ装置の異常終了時に備え、通
常動作時にパラメータやカウント値等の必要情報をその
変化の態様に応じて退避させることにより、従来より小
さな容量のコンデンサーで電源回復時に電源異常発生直
前の状態に復帰し得る手段を有するプリンタ装置を提供
することを目的とする。
The present invention has been made to solve the above-mentioned problems, and in preparation for abnormal termination of the printer, necessary information such as parameters and count values is saved during normal operation according to the mode of change. Therefore, it is an object of the present invention to provide a printer device having a means capable of returning to the state immediately before the occurrence of a power failure when the power is restored with a capacitor having a smaller capacity than before.

【0011】[0011]

【課題を解決するための手段】上記の目的を達成するた
めに第1の発明のプリンタ装置は、書込/読み出し可能
な不揮発性メモリーを有し、印刷処理中に該処理を中断
して終了させる異常終了状態の発生に備えて、該異常終
了直前の状態に復帰させることが必要な情報を不揮発性
メモリーに退避させ、印刷処理の再開始時に退避させた
情報を復帰させるリカバリー手段を有するプリンタ装置
であって、リカバリー手段が、a.印刷処理中に、要保
存情報のうち継続的には変化しない非継続的変化情報に
ついては、変化のあるたびに該変化した情報を保存情報
として不揮発性メモリーに書込み、前保存情報のうち継
続的に変化する継続的変化情報については、所定時間毎
に、変化した情報を保存情報として不揮発性メモリーに
書込む保存情報書込手段と、b.印刷処理中に異常終了
した場合に、不揮発性メモリーに異常状態フラグを書込
む異常状態フラグ書込み手段と、を有することを特徴と
する。
In order to achieve the above object, the printer device of the first invention has a writable / readable non-volatile memory, and interrupts and terminates the printing process during the printing process. In preparation for the occurrence of an abnormal end state, a printer having a recovery unit that saves information that needs to be restored to the state immediately before the abnormal end in a non-volatile memory and restores the saved information when printing processing is restarted A device, wherein the recovery means comprises a. For the non-continuous change information that does not change continuously during the printing process, the changed information is written to the non-volatile memory as the save information each time there is a change, and the continuous save information is saved. For the continuously changing information that changes to, the stored information writing unit that writes the changed information to the non-volatile memory as the stored information at predetermined time intervals, b. And an abnormal state flag writing means for writing the abnormal state flag to the non-volatile memory when the abnormal termination is performed during the printing process.

【0012】第2の発明は、上記第1の発明のプリンタ
装置において、異常状態フラグが、異常終了があったこ
とを示す主フラグと、異常終了時における処理属性を示
す従属フラグと、から構成されていることを特徴とす
る。
According to a second aspect of the present invention, in the printer device of the first aspect, the abnormal state flag comprises a main flag indicating that an abnormal end has occurred and a subordinate flag indicating a processing attribute at the time of abnormal end. It is characterized by being.

【0013】第3の発明は、上記第2の発明のプリンタ
装置において、従属フラグが、異常終了と保存情報書込
手段による特定の継続的変化情報の書込との時間関係を
示すヒストリフラグを含むことを特徴とする。
According to a third aspect of the present invention, in the printer device of the second aspect, the subordinate flag is a history flag indicating a time relationship between the abnormal end and the writing of the specific continuous change information by the storage information writing means. It is characterized by including.

【0014】第4の発明は上記第2または第3の発明の
プリンタ装置において、リカバリー手段が、更に、異常
終了が生じた場合に、特定の継続的変化情報について最
新の保存情報と従属フラグから該異常終了直前の値を推
計する継続的変化情報値推計手段を含むことを特徴とす
る。
According to a fourth aspect of the present invention, in the printer device according to the second or third aspect of the invention, the recovery means further determines the latest stored information and the dependent flag for the specific continuous change information when an abnormal end occurs. The present invention is characterized by including continuous change information value estimation means for estimating the value immediately before the abnormal end.

【0015】第5の発明のインクジェットプリンタ装置
は、前記第1ないし第4の発明のいずれか1つのプリン
タ装置の構成を備え、要保存情報中に特定の継続的変化
情報として印字機構の駆動中に打出したドット数のカウ
ント値を含み、異常状態フラグが、異常終了があったこ
とを示す主フラグと、異常終了時における処理属性を示
す従属フラグと、から構成されていることを特徴とす
る。
An ink jet printer device according to a fifth aspect of the present invention has the configuration of the printer device according to any one of the first to fourth aspects of the present invention, and the printing mechanism is being driven as specific continuous change information in the required storage information. It is characterized in that the abnormal state flag includes a count value of the number of dots ejected to a main flag indicating that an abnormal end has occurred and a subordinate flag indicating a processing attribute at the time of abnormal end. .

【0016】第6の発明のレーザープリンタは、前記第
1ないし第4の発明のいずれか1つの発明のプリンタ装
置の構成を備え、要保存情報中に特定の継続的変化情報
として印字機構の駆動中に消費したトナー量のカウント
値を含むことを特徴とする。
A laser printer according to a sixth aspect of the invention has the configuration of the printer device according to any one of the first to fourth aspects of the invention, and drives the printing mechanism as specific continuous change information in the required storage information. It is characterized in that it includes a count value of the amount of toner consumed therein.

【0017】[0017]

【発明の実施の形態】図1は本発明のプリンタ装置の望
ましい実施の形態の1例を示す図であり、プリンタ装置
100は図示しないホストコンピュータからケーブル2
00を介して送出される出力フォーマット,文字種,ラ
イン制御情報等の出力制御情報および出力データを受信
する。プリンタ装置100はインターフェイス1,CP
U2,ROM3,リカバリー手段4,EEPROM5,
RAM6,印字機構7、および図示しないが緊急予備電
源としてのコンデンサおよびプリンタ装置に家庭用電源
または事業用電源から電力を供給するためのアダプタ付
電源ケーブルを有している。
FIG. 1 is a diagram showing an example of a preferred embodiment of a printer apparatus of the present invention, in which a printer apparatus 100 is connected to a cable 2 from a host computer (not shown).
Output control information such as output format, character type, line control information, etc., and output data transmitted via 00 are received. Printer device 100 has interface 1, CP
U2, ROM3, recovery means 4, EEPROM5,
It has a RAM 6, a printing mechanism 7, and a capacitor (not shown) as an emergency standby power source and a power cable with an adapter for supplying power to the printer device from a household power source or a business power source.

【0018】インターフェイス1はホストコンピュータ
からケーブル3を介して送出される出力制御情報および
出力データを受信してそれらをプリンタ装置100の仕
様に対応させてCPU2に送り出す。
The interface 1 receives the output control information and output data sent from the host computer via the cable 3, and sends them to the CPU 2 in accordance with the specifications of the printer 100.

【0019】CPU2は受信した出力制御情報をRAM
6の出力制御ブロック(図示せず)に格納すると共に受
信データをRAM6のバッファエリア(図示せず)に格
納する。また、CPU2は後述するようにリカバリー手
段4により、所定時間間隔内に必要情報に変化があった
場合に変化のあった情報をEEPROM5に書込む(具
体的には、各々の必要情報の書込位置はEEPROM5
内で割当てられているので、変化のあった情報で前の情
報を書換える(更新する))が、プリンタ装置100の
処理中に電源異常による異常終了が起こった場合には、
異常状態フラグ(図5参照)だけをEEPROM5に書
込む。
The CPU 2 receives the output control information in the RAM
6 in the output control block (not shown) and the received data in the buffer area (not shown) of the RAM 6. Further, the CPU 2 writes the changed information in the EEPROM 5 by the recovery means 4 when the necessary information changes within a predetermined time interval (specifically, writing of each necessary information, as will be described later). Position is EEPROM5
The previous information is rewritten (updated) with the changed information, but if an abnormal termination due to a power failure occurs during the processing of the printer 100,
Only the abnormal state flag (see FIG. 5) is written in the EEPROM 5.

【0020】更に、CPU2はプリンタ装置100が異
常状態から正常状態に復帰され処理を再開する場合に、
リカバリー手段4によりEEPROM5に保存されてい
た情報を読み出して、異常状態フラグの示す内容に従っ
て、処理を施した後(或いは処理を施すことなく)復帰
させる。
Further, when the printer 100 is restored from the abnormal state to the normal state and the processing is restarted, the CPU 2
The information stored in the EEPROM 5 is read by the recovery means 4, and the information is restored after the processing (or without the processing) according to the content indicated by the abnormal state flag.

【0021】また、CPU2は印刷制御情報に基づいて
印字機構7を制御してデータの印刷を実現させる。更に
また、CPU2は前述の出力制御情報に基づく出力制御
や、受信データの圧縮および圧縮された中間コードの格
納,および中間コードを所定ブロックサイズ毎に取り出
してビットマップイメージに展開して出力バッファに転
送する等の処理を行うと共に、その他プリンタ装置10
0の動作全体を制御する。
Further, the CPU 2 controls the printing mechanism 7 based on the printing control information to realize the printing of data. Furthermore, the CPU 2 controls the output based on the above-mentioned output control information, compresses the received data and stores the compressed intermediate code, extracts the intermediate code for each predetermined block size, expands it into a bitmap image, and outputs it to the output buffer. While performing processing such as transfer, other printer device 10
Controls the entire operation of 0.

【0022】ROM3にはリカバリー手段4が格納され
ている。また、ROM2には出力制御情報に基づく出力
制御や、受信データに基づくビットマップイメージの展
開等のための手段,およびその他の印刷制御用プログラ
ムが格納されている。
Recovery means 4 is stored in the ROM 3. The ROM 2 also stores output control based on output control information, means for developing a bitmap image based on received data, and other print control programs.

【0023】リカバリー手段4は、プリンタ装置100
の印刷処理中に、電源異常により、理が中断される異常
終了状態の発生に備えて、該異常終了直前の状態に復帰
させることが必要な情報(以下、要保存情報)を保存情
報としてEEPROM5に退避させ、印刷処理の再開時
に退避させた保存情報を復帰させる手段であって、図2
のブロック図に示すように保存情報書込手段41,異常
状態フラグ書込手段42,および保存情報復帰手段43
を含んでいる。
The recovery means 4 is the printer device 100.
In preparation for the occurrence of an abnormal end state in which the processing is interrupted due to a power supply abnormality during the printing process of (5), the EEPROM 5 stores the information necessary to return to the state immediately before the abnormal end (hereinafter, save required information) as save information. 2 for recovering the saved information when the printing process is restarted.
As shown in the block diagram of FIG. 3, the storage information writing means 41, the abnormal state flag writing means 42, and the storage information restoring means 43.
Contains.

【0024】保存情報書込手段41は図3のフローチャ
ートおよび図4のタイミングチャートに示すように、印
刷処理中に、要保存情報のうち継続的には変化しない情
報(非継続的変化情報)については、変化のあるたびに
該変化した非継続的変化情報を保存情報としてEEPR
OM5に書込み、要保存情報のうち継続的に変化する情
報(継続的変化情報)については、所定時間毎に変化し
た情報を保存情報としてEEPROM5に書込む(図4
参照)。
As shown in the flow chart of FIG. 3 and the timing chart of FIG. 4, the save information writing means 41 regards information that does not change continuously (discontinuous change information) among the required save information during the printing process. Each time there is a change, the EEPR uses the changed non-continuous change information as storage information.
Regarding the information that needs to be written in the OM 5 and that continuously changes among the information that needs to be saved (continuously changed information), the information that changes at every predetermined time is written in the EEPROM 5 as saved information (FIG. 4).
reference).

【0025】異常状態フラグ書込手段42は図3のフロ
ーチャート(a)および図4のタイミングチャートに示
すように、印刷処理中に異常終了した場合にEEPRO
M5に異常状態フラグ(図5参照)の書込(W3)を行
う。
As shown in the flow chart (a) of FIG. 3 and the timing chart of FIG. 4, the abnormal state flag writing means 42 is EEPRO when an abnormal end occurs during the printing process.
An abnormal state flag (see FIG. 5) is written in M5 (W3).

【0026】保存情報復帰手段43はプリンタ装置10
0に起きた異常終了状態が回復され正常動作が可能にな
ったとき、EEPROM5に保存していた保存情報を読
み出して異常状態フラグの示す内容に従って、処理を施
した後(或いは処理を施すことなく)、RAM6の所定
アドレスに書込む。また、保存情報復帰手段43は図示
しないが、後述するように、異常終了が生じた場合に、
特定の継続的変化情報について最新の保存情報と従属フ
ラグから該異常終了直前の値を推計する継続的変化情報
値推計手段を含んでいる。
The stored information restoring means 43 is the printer device 10.
When the abnormal end state occurred in 0 is recovered and normal operation becomes possible, after the stored information stored in the EEPROM 5 is read and processing is performed (or without processing) according to the content indicated by the abnormal state flag. ), And write to a predetermined address in RAM 6. Although not shown in the figure, the storage information restoring means 43 is, in the case where an abnormal end occurs, as will be described later.
A continuous change information value estimation means for estimating a value immediately before the abnormal end from the latest stored information and the dependent flag for the specific continuous change information is included.

【0027】EEPROM5は書込/読み出し可能な不
揮発性メモリーの例であり、上述した保存情報書込手段
41により書込まれた保存情報を保存し、また、異常状
態フラグ書込手段42により書込まれた異常状態フラグ
を格納する。更に、保存情報復帰手段43により上記格
納・保存している異常状態フラグ及び保存情報の読み出
しを行うことができる。なお、保存情報を書込むための
書込/読み出し可能な不揮発性メモリーとして、フロッ
ピーディスクや磁気ディスク等を用いることもできる
が、書込時間がEEPROMに比べ長いことや、駆動電
力が大きく緊急予備電源としてコンデンサだけでは不十
分であることからプリンタ装置の物理的、価格的制約上
不都合があるなどの理由により、EEPROMを用いる
ことが望ましい。
The EEPROM 5 is an example of a writable / readable non-volatile memory, stores the storage information written by the storage information writing means 41, and writes it by the abnormal state flag writing means 42. The stored abnormal condition flag is stored. Further, the stored information restoring means 43 can read out the abnormal state flag and the stored information stored and stored. A floppy disk or a magnetic disk can be used as the writable / readable nonvolatile memory for writing the stored information, but the writing time is longer than that of the EEPROM, and the drive power is large so that the emergency backup can be performed. It is desirable to use the EEPROM for the reason that the capacitor is not sufficient as the power source and the physical and price restrictions of the printer device are inconvenient.

【0028】RAM6はホストコンピュータから受信し
た出力制御情報および受信データと印刷条件等の印刷制
御情報および他必要情報を格納するメモリーであり、ま
た、格納された受信データを圧縮した中間コードの格納
エリアおよび中間コードをビットマップイメージデータ
として展開するための作業用メモリーとしても用いら
れ、実際に出力される印字イメージや画像イメージがビ
ットマップイメージで展開される。印字機構7はRAM
6に展開されたイメージデータを出力制御情報に基づい
てCPU2の制御の下に出力する。また、プリンタ装置
100は図示しないが、電源の遮断があった場合に後述
する異常状態フラグを書込むに必要な一定時間は所定電
圧を維持するだけの容量を有したコンデンサーを備えて
いる。本発明では上述したように後述するように保存デ
ータの書込と書込休止のサイクルを設け、書込期間には
変化のあった保存情報のみを更新するよう構成したこと
により保存情報の書込自体にはコンデンサを用いないこ
とから異常終了時には異常状態フラグの書込のみでよ
い。従って、異常状態フラグを書込むに必要な時間が短
縮されるので、前述した従来技術おいて異常終了時に備
えるためのコンデンサの容量に比べ小さな容量のコンデ
ンサを備えればよい。
The RAM 6 is a memory for storing output control information and received data received from the host computer, print control information such as printing conditions, and other necessary information, and an intermediate code storage area in which the stored received data is compressed. It is also used as a working memory for expanding the intermediate code as bit map image data, and a print image or an image image actually output is expanded as a bit map image. The printing mechanism 7 is RAM
The image data expanded in 6 is output under the control of the CPU 2 based on the output control information. Further, although not shown, the printer device 100 includes a capacitor having a capacity sufficient to maintain a predetermined voltage for a certain period of time required to write an abnormal state flag described later when the power is cut off. According to the present invention, as described above, a cycle of writing stored data and a pause of writing is provided as described later, and only the stored information that has changed in the writing period is updated. Since the capacitor itself is not used, only the abnormal state flag need be written at the time of abnormal termination. Therefore, since the time required to write the abnormal state flag is shortened, it is sufficient to provide a capacitor having a smaller capacity than the capacity of the capacitor for preparing for abnormal termination in the above-mentioned conventional technique.

【0029】図2はリカバリー手段4の構成を示すブロ
ック図であり、図3はCPU2により実行制御されるリ
カバリー手段4のフローチャートの例である。なお、図
2に示されている印刷処理ブロック30は出力データの
印刷を行うための準備処理および実際の印刷処理動作を
含む。以下、リカバリー時のCPU2の動作について図
2および図3をもとに説明する。
FIG. 2 is a block diagram showing the configuration of the recovery means 4, and FIG. 3 is an example of a flowchart of the recovery means 4 whose execution is controlled by the CPU 2. The print processing block 30 shown in FIG. 2 includes a preparation process for printing output data and an actual print processing operation. Hereinafter, the operation of the CPU 2 at the time of recovery will be described with reference to FIGS.

【0030】図3(a)はリカバリー手段4による保存
情報および異常状態フラグの書込フローであり、図3
(a)のステップS1〜S5で、CPU2は保存情報書
込手段41の実行制御を行う。ステップS1で異常フラ
グ書込手段42は電源異常が起こるとステップS6に移
行し、異常状態フラグをEEPROM5に書込む。通常
(異常終了状態でない場合に)はステップS2に移行す
る。
FIG. 3A is a flow of writing the storage information and the abnormal state flag by the recovery means 4, and FIG.
In steps S1 to S5 of (a), the CPU 2 controls the execution of the saved information writing means 41. In step S1, the abnormality flag writing means 42 moves to step S6 when an abnormality occurs in the power supply, and writes the abnormality state flag in the EEPROM 5. Normally (when not in an abnormal end state), the process proceeds to step S2.

【0031】ステップS2ではEEPROM5に書込を
要する情報(要保存情報(設定パラメータやカウンター
値等))が前回の情報と異なっているか否かを調べ、要
保存情報のうち1つでも異なっている場合にはステップ
S3に移行し、1つも異なっていない場合にはステップ
S1に戻す。この場合、「前回の情報」はEEPROM
5に書込まれている情報をその都度取り出してもよい
し、電源立ち上げ時にEEPROM5に書込まれている
情報を読み出してRAM6上に格納しておき、後述する
ステップS5での変化情報のEEPROM5への書込時
に同時に更新するようにしておいてもよい。
In step S2, it is checked whether or not the information required to be written in the EEPROM 5 (preserved information (setting parameter, counter value, etc.)) is different from the previous information, and even one of the preserved information is different. In this case, the process proceeds to step S3, and if no difference is found, the process returns to step S1. In this case, the "previous information" is an EEPROM
The information written in 5 may be taken out each time, or the information written in the EEPROM 5 may be read out and stored in the RAM 6 when the power is turned on, and the EEPROM 5 of the change information in step S5 described later may be read out. It may be updated at the same time when the data is written to.

【0032】ステップS3では、変化した要保存情報を
調べ継続的変化情報か否かを判定し、継続的変化情報の
場合にはステップS4に移行し、継続的変化情報でない
場合(非継続的変化情報の場合)にはステップS5に移
行して変化情報をEEPROM5の所定アドレスに書込
む。ここで、要保存情報が継続的変化情報か否かの判定
を容易にするためには、要保存情報が継続的変化情報か
非継続情報かを示す情報(テーブル)をROM3かEE
PROM5に予め登録しておくことが望ましい。
In step S3, the changed storage-required information is checked to determine whether it is continuous change information. If it is continuous change information, the process proceeds to step S4. If it is not continuous change information (non-continuous change information). In the case of information), the process proceeds to step S5 and the change information is written in a predetermined address of the EEPROM 5. Here, in order to easily determine whether or not the required storage information is the continuous change information, information (table) indicating whether the required storage information is the continuous change information or the non-continuous information is stored in the ROM 3 or the EE.
It is desirable to register in the PROM 5 in advance.

【0033】なお、継続的変化情報の例としてはインク
の残量を知るためのドットカウンター値や、インクの廃
液量を知るための廃液カウンター値や、トナーの使用量
を知るためのトナー使用量カウンター値等の特定のカウ
ンター値がある(実施例参照)。
As examples of the continuous change information, a dot counter value for knowing the remaining amount of ink, a waste liquid counter value for knowing the amount of waste liquid of the ink, and a toner usage amount for knowing the amount of toner used There is a specific counter value, such as the counter value (see examples).

【0034】ステップS4では、時間カウンタを調べ所
定時間を経過しているか否かを判定する。所定時間を経
過している場合には時間カウンタをゼロクリアしたのち
にステップS5に移行して変化情報をEEPROM5の
所定アドレスに書込む。所定時間を経過していない場合
にはステップS1に戻す。
In step S4, the time counter is checked to determine whether a predetermined time has passed. If the predetermined time has elapsed, the time counter is cleared to zero, and then the process proceeds to step S5 to write the change information into a predetermined address of the EEPROM 5. If the predetermined time has not elapsed, the process returns to step S1.

【0035】なお、ステップS4で継続的変化情報を書
込むための時間間隔(上述の所定時間)は任意に定める
ことができるが、短過ぎるとEEPROM5に保存デー
タを書込む機会が増えるため、結果としてEEPROM
5の寿命を縮めることとなり、長過ぎると誤差が積重な
るので、後述する保存情報の復帰時に保存情報復帰手段
43で異常終了発生時の直前の状態を推測(例えば、カ
ウント値の推計)をしようとする場合に推計誤差が大き
くなるので、後述するように20分程度が適当である
(実施例参照)。ここで、時間間隔を20分とした場合
に、あるEEPROM5の平均寿命を計算すると約10
年になる。ステップS5では継続的変化情報或いは非継
続的変化情報を保存情報としてEEPROM5の各保存
情報に対応する所定アドレスにそれぞれ書込む。
The time interval (the above-mentioned predetermined time) for writing the continuous change information in step S4 can be set arbitrarily, but if it is too short, the chances of writing the stored data in the EEPROM 5 increase, so As EEPROM
5 will shorten the service life, and errors will accumulate if it is too long. Therefore, when restoring stored information, which will be described later, let the stored information restoration means 43 estimate the state immediately before the abnormal end (for example, estimate the count value). In such a case, the estimation error becomes large, so about 20 minutes is appropriate as described later (see the example). Here, when the time interval is set to 20 minutes, the average life of a certain EEPROM 5 is calculated to be about 10
The year In step S5, the continuous change information or the non-continuous change information is written as the storage information at a predetermined address corresponding to each storage information of the EEPROM 5, respectively.

【0036】ステップS6では通常電源は遮断されてい
るが、前述したようにコンデンサにより異常状態フラグ
の書込に必要な時間は、必要な電圧が保持されるので異
常状態フラグ書込手段42により異常状態フラグをEE
PROM5に書込むことができる。なお、異常フラグは
後述するように異常状態の発生を示す主フラグと、異常
終了時における処理属性を示す少なくとも1つの従属フ
ラグから構成されている(図4参照)。
In step S6, the normal power supply is cut off, but as described above, the abnormal voltage is written by the abnormal state flag writing means 42 because the necessary voltage is held for the time required for writing the abnormal state flag by the capacitor. EE the status flag
Can be written to PROM5. As will be described later, the abnormal flag is composed of a main flag indicating the occurrence of an abnormal state and at least one subordinate flag indicating the processing attribute at the abnormal end (see FIG. 4).

【0037】図3(b)はリカバリー手段4による異常
状態フラグおよび保存情報の読み出し及び保存情報の復
帰フローの一例である。ステップS11では印刷処理が
再び開始された場合に、CPU2は保存データ復帰手段
43の実行制御を行い、EEPROM5に保存していた
保存情報を読み出す。ステップ12では読み出した保存
情報をそれぞれRAM6の所定アドレスに書込む。
FIG. 3B shows an example of a flow of reading out the abnormal state flag and the stored information and restoring the stored information by the recovery means 4. In step S11, when the printing process is restarted, the CPU 2 controls the execution of the saved data restoring means 43 and reads the saved information saved in the EEPROM 5. In step 12, the read stored information is written in a predetermined address of the RAM 6, respectively.

【0038】図3(b’)はリカバリー手段4による異
常状態フラグおよび保存情報の読み出し及び保存情報の
復帰フローの他の例である。ステップS21では、印刷
処理が再び開始された場合に、CPU2は保存データ復
帰手段43’の実行制御を行い、EEPROM5に保存
していた異常状態フラグおよび保存情報を読み出す。
FIG. 3 (b ') is another example of the flow of reading out the abnormal state flag and the stored information by the recovery means 4 and restoring the stored information. In step S21, when the printing process is restarted, the CPU 2 controls the execution of the saved data restoring means 43 'and reads the abnormal state flag and the saved information saved in the EEPROM 5.

【0039】ステップS22では、読み出した保存情報
のうち継続的変化情報に対応する保存情報を異常状態フ
ラグの従属フラグとを間連付けて補正し、異常状態発生
直前の継続的変化情報の値を推計する(実施例参照)。
In step S22, the stored information corresponding to the continuous change information among the read stored information is corrected by linking it with the subordinate flag of the abnormal state flag, and the value of the continuous change information immediately before the abnormal state occurs is corrected. Estimate (see Examples).

【0040】ステップ23では、非継続的変化情報およ
び推計された継続的変化情報をそれぞれRAM6の所定
アドレスに書込む。
In step 23, the non-continuous change information and the estimated continuous change information are written in predetermined addresses in the RAM 6, respectively.

【0041】図4は、保存情報および異常状態フラグの
書込タイミングの説明図としてのタイミングフローチャ
ートである。なお、図4で非継続的変化情報の書込(W
1)は変化のたびに行われるが、継続的変化情報の書込
(W2)は変化がある間は異常終了状態が生じない限り
ある時間間隔毎(例えば、20分毎)に行われる。ま
た、異常状態フラグの書込(W3)は前述したように異
常終了状態が発生した場合にコンデンサの所定電圧(例
えば、5V)維持時間内に行われければならない。
FIG. 4 is a timing flow chart for explaining the writing timing of the storage information and the abnormal state flag. In FIG. 4, the writing of discontinuous change information (W
Although 1) is performed for each change, writing of continuous change information (W2) is performed at certain time intervals (for example, every 20 minutes) during the change unless an abnormal end state occurs. Further, the writing of the abnormal state flag (W3) must be performed within the predetermined voltage (for example, 5V) maintaining time of the capacitor when the abnormal end state occurs as described above.

【0042】図5は異常状態フラグの例を示す図であ
り、図5(a)は異常状態フラグを1バイト(8ビッ
ト)とした例であり、この例ではそのうちの最高位ビッ
ト(bit7)をそれが’1’のとき異常終了が起きた
ことを意味する主フラグとし、他の各ビット(bit6
〜0)を主フラグが’1’になった直前の時点でプリン
タ装置100がどのような処理状態にあったかを示す従
属フラグとしている(実施例の参照)。また、図5
(b)では異常状態フラグを2バイト(16ビット)と
した例であり、この例ではそのうちの最高位ビット(b
itF)を主フラグとし、他の各ビット(bitE〜
0)を従属フラグとしている(実施例の参照)。
FIG. 5 is a diagram showing an example of an abnormal state flag, and FIG. 5 (a) is an example in which the abnormal state flag is 1 byte (8 bits). In this example, the highest bit (bit 7) of them is shown. Is a main flag which means that an abnormal end has occurred when it is '1', and other bits (bit6
(0 to 0) are used as subordinate flags indicating what kind of processing state the printer device 100 was in immediately before the main flag became "1" (see the embodiment). FIG.
(B) is an example in which the abnormal state flag is 2 bytes (16 bits), and in this example, the most significant bit (b
itF) as a main flag and other bits (bitE ~).
0) is used as a subordinate flag (see the embodiment).

【0043】なお、異常状態フラグの長さは1または2
バイトに限られないが、バイト数を増せばそれだけ書込
時間が増加し、コンデンサの必要容量も増すのでこれら
を勘案の上決定する事が望ましい。また、異常状態フラ
グの個数も1個に限られないが、個数を増せばそれだけ
書込時間が増加し、コンデンサの必要容量も増すので同
様にこれらの事情を勘案して決定する必要がある。
The length of the abnormal state flag is 1 or 2
It is not limited to bytes, but as the number of bytes increases, the writing time also increases and the required capacity of the capacitor also increases. Further, the number of abnormal state flags is not limited to one, but if the number of abnormal state flags is increased, the writing time is increased and the required capacity of the capacitor is also increased. Therefore, it is necessary to determine in consideration of these circumstances.

【0044】[0044]

【実施例】【Example】

<インクジェットプリンタ装置への適用例>一実施例と
して本発明をインクジェットプリンタ装置に適用した例
について以下、説明する。この例では、異常終了時の印
字機構の状態を知るために必要な情報を要保存情報とし
た例であり、リカバリー手段の構成ブロック、保存情報
および異常状態フラグの書込タイミングについては発明
の実施の形態の項での説明および図2、図4がそのまま
当てはまるので説明を省略する。なお、以下の説明では
図1〜図5に共通する構成部分については同じ記号を用
いて説明する。
<Example of Application to Inkjet Printer> An example in which the present invention is applied to an inkjet printer as an embodiment will be described below. This example is an example in which the information necessary for knowing the state of the printing mechanism at the time of abnormal termination is the save required information. Regarding the constituent blocks of the recovery means, the save information, and the write timing of the abnormal state flag, the invention is implemented. The description in the paragraph of the form of FIG. 2 and FIGS. In the following description, components common to FIGS. 1 to 5 will be described using the same symbols.

【0045】インクジェットプリンタ装置の構成につい
ても図1とほぼ同様であるが、リカバリー手段が図3
(a)と図3(b’)の組合せとなる点、および印字機
構の構成がインクジェット特有の構成(例えば、インク
を噴射するためのノズルを有する点、シリアルにプリン
トするための紙送り機構を有する点、インク供給機構お
よびインク残量を検出するためのドットカウンタを有す
る点、等)を有している点を付記する。
The construction of the ink jet printer is almost the same as that of FIG. 1, but the recovery means is shown in FIG.
(A) and FIG. 3 (b ') are combined, and the structure of the printing mechanism is peculiar to inkjet (for example, a nozzle has a nozzle for ejecting ink, a paper feed mechanism for serial printing). Points having an ink supply mechanism and a dot counter for detecting the remaining amount of ink, and the like).

【0046】リカバリー手段のフローチャートについて
も保存状態書込手段41および異常状態フラグ書込手段
42については図3(a)と同様であり説明を省略す
る。保存情報復帰手段31については、本実施例では、
上述したように図3(b’)のステップS22の継続的
変化情報の補正による異常終了発生前の継続的変化情報
の推計を行う継続的変化情報推計手段も備えている。ま
た、異常状態フラグについても図5の説明で述べたと同
様であるが、従属フラグの意味付け、および上述の継続
的変化情報推計手段と異常状態フラグとの関係等につい
て本実施例により説明する。本実施例のインクジェット
プリンタ装置はインクの残量を知るために打出したドッ
トの数(正確にはノズルから噴射されたインクの滴数)
をカウントしている。そこで、印字機構7の動作中には
このドット数のカウントが行われることになるが、EE
PROM5に書込む前に電源がオフになるとカウント値
に誤差が出てインク残量の検出が正しく行われなくな
り、例えば、検出結果ではインクの残量があるはずであ
ったが実際にはインクの残量がゼロであるというような
事態が発生する可能性があり、このような事態の発生は
印刷処理そのものへの影響も大きく、また、インクの噴
射を行うヘッドの保全に好ましくない影響を与えること
となる。
Also in the flowchart of the recovery means, the storage state writing means 41 and the abnormal state flag writing means 42 are the same as those in FIG. With regard to the stored information restoring means 31, in this embodiment,
As described above, the continuous change information estimation means for estimating the continuous change information before the abnormal end is generated by correcting the continuous change information in step S22 of FIG. 3B 'is also provided. Further, the abnormal state flag is similar to that described in the description of FIG. 5, but the meaning of the subordinate flag and the relationship between the above-mentioned continuous change information estimating means and the abnormal state flag will be described in the present embodiment. The inkjet printer device of this embodiment uses the number of dots ejected in order to know the remaining amount of ink (more precisely, the number of ink droplets ejected from the nozzle).
Is counting. Therefore, the number of dots is counted during the operation of the printing mechanism 7.
If the power is turned off before writing to the PROM5, an error will occur in the count value, and the detection of the remaining ink amount will not be performed correctly. There is a possibility that the remaining amount will be zero, and such a situation will have a large impact on the printing process itself, and will also have an adverse effect on the maintenance of the head that ejects ink. It will be.

【0047】更に、従来方式のように異常処理があった
場合にのみ要保存情報をEEPROM5に書込むとした
場合には、インクのドット数のカウントのためは4バイ
ト×4色(3原色+黒)=16バイトが必要となり、こ
れだけの情報を書込むためには32〜80msecの間
5Vの電圧を維持する事が必要となる。従って、電源が
遮断された場合の要保存情報をインクのドット数のカウ
ント値を含むたのカウント値および設定パラメータの値
とすると5Vの電圧を維持する時間は100msec以
上となる。
Further, in the case where the storage required information is written in the EEPROM 5 only when the abnormal processing is performed as in the conventional method, 4 bytes × 4 colors (3 primary colors + Black) = 16 bytes are required, and it is necessary to maintain a voltage of 5 V for 32 to 80 msec in order to write such information. Therefore, when the information to be stored when the power is cut off is the count value including the count value of the number of ink dots and the value of the setting parameter, the time for maintaining the voltage of 5 V is 100 msec or more.

【0048】しかしながら、本実施例では保存情報書込
手段41で要保存情報のうち設定パラメータ値やある種
のカウント値のような時折変化する非継続的変化情報は
変化のある毎に印刷処理中にEEPROM5に書込んで
前回の値を更新し、印字処理中は継続的に値が増加(変
化)するインクのドット数のカウント数のような継続的
変化情報については一定時間間隔(実験によれば20分
程度が適当)おきに変化した値をEEPROM5に書込
んで前回の値を更新し、異常終了の場合に異常状態フラ
グ書込手段42で異常状態フラグを書込むようにリカバ
リー手段を構成しているので、要保存情報の書込はプリ
ンタ装置100の通常電源により行うことができ、異常
状態フラグの書込だけを異常状態フラグの書込に必要な
コンデンサによる5Vの電圧維持時間内にすればよく、
この場合、異常状態フラグの書込に必要な時間は異常状
態フラグが1バイトまたは2バイトの場合は約10ms
ec程度となる。したがて、コンデンサの容量は従来よ
り少なくてよく、サイズ、コストの低下に寄与する。ま
た、要保存情報数が増してもコンデンサの容量を増加す
る必要はない。
However, in the present embodiment, the storage information writing means 41 prints the non-continuous change information that occasionally changes, such as the setting parameter value and a certain count value, out of the storage required information. In the EEPROM 5, the previous value is updated and the value is continuously increased (changed) during the printing process. The recovery means is configured such that the value changed every 20 minutes is written to the EEPROM 5 to update the previous value, and the abnormal state flag writing means 42 writes the abnormal state flag in the case of abnormal termination. Therefore, the storage-needed information can be written by the normal power supply of the printer 100, and only the abnormal state flag is written by the capacitor necessary for writing the abnormal state flag. It is sufficient in the V-voltage maintenance time,
In this case, the time required to write the abnormal state flag is about 10 ms when the abnormal state flag is 1 byte or 2 bytes.
ec. Therefore, the capacity of the capacitor may be smaller than before, which contributes to reduction in size and cost. Also, even if the number of pieces of information to be stored increases, it is not necessary to increase the capacity of the capacitor.

【0049】次に従属フラグの意味付けについて述べる
と、図5(a)には1バイトの異常状態フラグが示され
ており、bit7を主フラグとし主フラグが’1’のと
き異常終了が起きたことを意味し、bit6〜0のそれ
ぞれを主フラグの態にあったかを示す従属フラグとして
いる。本実施例での各ビットの意味を次に示す。 ・bit7 :’1’のとき異常終了したことを示す主
フラグである。 ・bit6 :’1’のとき印字中に異常終了が発生し
たことを示す従属フラグである。 ・bit5 :’1’のときクリーニング処理中に異常
終了が発生したことを示す従属フラグである。 ・bit4 :’1’のとき、ヘッドにある複数の噴射
ノズルのうち特定のノズルのみを用いて印字するモード
(以下、マイクロウィーブモード) での
印字中に異常終了が発生したことを示す従属フラグであ
る 。・bit3 :’1’のとき印字モードが双方向の場
合での印字中に異常終了が 発生したこと
を示す従属フラグであり、’0’の場合は単方向印
字モードを意味する。 ・bit2 :’1’のとき解像度が1440dpiで
あったことを示す従属フラグである。 ・bit1 :’1’のとき解像度が720dpiであ
ったことを示す従属フラグである(なお、bit2,1
が共に’0’のときは解像度が360dpiであること
を意味する。 ・bit0 :’1’のときカラーモードであったこと
を示す従属フラグであり、 ’0’のとき
はモノクロモードを示す。
Next, the meaning of the subordinate flag will be described. FIG. 5A shows a 1-byte abnormal state flag. When bit 7 is the main flag and the main flag is "1", abnormal termination occurs. This means that each of bits 6 to 0 is a subordinate flag indicating whether it is in the state of the main flag. The meaning of each bit in this embodiment is shown below. Bit7: A main flag indicating abnormal termination when set to "1". Bit6: When it is '1', it is a dependent flag indicating that an abnormal end has occurred during printing. Bit5: When it is '1', it is a subordinate flag indicating that an abnormal end has occurred during the cleaning process. Bit4: When set to '1', a subordinate flag indicating that an abnormal end has occurred during printing in a mode in which printing is performed using only a specific nozzle among a plurality of ejection nozzles in the head (hereinafter, micro weave mode) Is. -Bit3: When it is "1", it is a subordinate flag that indicates that an abnormal end occurred during printing when the print mode is bidirectional, and when it is "0", it is a unidirectional mark.
It means character mode. Bit2: a dependent flag indicating that the resolution was 1440 dpi when set to "1". Bit1: a subordinate flag indicating that the resolution was 720 dpi when set to '1' (note that bit2,1
When both are 0, it means that the resolution is 360 dpi. Bit0: A dependent flag indicating that the mode is the color mode when set to "1", and indicates a monochrome mode when set to "0".

【0050】[主フラグと各従属フラグの組合せの意味
付けの例]次に、上記異常状態フラグにより継続的変化
情報としてのインクドット数のカウントとの関連付けの
例をしめす。なお、この例でビット値がxの場合は当該
ビットが’1’または’0’いずれの値も取り得ること
を意味する。
[Example of Meaning of Combination of Main Flag and Each Dependent Flag] Next, an example of associating the abnormal state flag with the count of the number of ink dots as continuous change information will be shown. In this example, when the bit value is x, it means that the bit can take a value of "1" or "0".

【0051】 (異常状態フラグ) (意味および処理) 0xxxxxxx :正常終了を意味する (処理)・・ドットカウント値の補正を要せず。(Abnormal State Flag) (Meaning and Processing) 0xxxxxxx: Means normal end (processing) ... No correction of dot count value is required.

【0052】10000000 :異常終了ではある
が、給紙/排紙中などのようなインクを使用しない処理
を行っているとき起こった異常終了である。
10000000: Although it is an abnormal end, it is an abnormal end that occurred while performing a process that does not use ink, such as during paper feeding / paper discharging.

【0053】(処理)・・ドットカウント値の補正を要
せず。
(Processing) -No correction of the dot count value is required.

【0054】11000000 :印字中の異常終了で
あり、そのとき、マイクロウイーブモード、単方向印字
モード、モノクロモード、解像度360dpiであった
ことを意味する。
11000000: Abnormal termination during printing, which means that the microweave mode, unidirectional printing mode, monochrome mode, and resolution of 360 dpi were used at that time.

【0055】(処理)・・この条件下で印字した場合の
標準的な値をモノクロモードの場合のディフォルト値
(default value )として、 継続
的変化情報推計手段によるインクのドットカウンタ値
の基準補正値として用い、異常終了
発生前のドットカウン タ値の推計
を行う。
(Processing) -The ink dot counter value obtained by the continuous change information estimating means is set as a default value (default value) in the monochrome mode when a standard value is printed under these conditions.
It is used as the reference correction value for the dot counter value before the abnormal termination occurs.

【0056】110xxxxx :印字中に発生した異
常終了であり、xの値をとる従属フラグが示すような処
理状態の場合に起きたことを意味する。
110xxxxxx: Abnormal termination that occurred during printing, meaning that it occurred in the processing state indicated by the subordinate flag that takes the value of x.

【0057】(処理)・・xの値をとる従属フラグが示
す条件下で印字したときの標準的な値を継続的変化情報
推計手段によるインクのドットカウンタ値の基準補正値
として用い、異常終了発生前のドットカウンタ値の推計
を行う。
(Processing) ································· Uses the standard value when printed under the condition indicated by the subordinate flag taking the value of x as the reference correction value of the ink dot counter value by the continuous change information estimating means Estimate the dot counter value before occurrence.

【0058】101xxxx0 :ヘッドクリーニング
処理中に起きた異常終了であり、モノクロ印字用のヘッ
ドのクリーニング中であったことを意味する。
101xxxxx0: An abnormal end occurred during the head cleaning process, which means that the head for monochrome printing was being cleaned.

【0059】(処理)・・モノクロ印字用のヘッドをク
リーニングした時の標準的な値を継続的変化情報推計手
段による黒色インクのドットカウンタ値の基準補正値と
して用い、異常終了発生前のドットカウンタ値の推計を
行う。
(Processing) ······················································································································································· Estimate the value.

【0060】101XXXX1 :ヘッドクリーニング
処理中に起きた異常終了であり、カラー印字用のヘッド
のクリーニング中であったことを意味する。
101XXXX1: Abnormal termination occurred during head cleaning processing, meaning that the head for color printing was being cleaned.

【0061】(処理)・・カラー印字用のヘッドをクリ
ーニングした時の標準的な値(3原色+黒色の4種類の
値)を継続的変化情報推計手段によるカラーインクのド
ットカウンタ値(3原色+黒色の4種類のカウンタ値)
の基準補正値として用い、異常終了発生前のドットカウ
ンタ値の推計を行う。
(Processing) The standard value (4 primary colors + 4 black values) when the head for color printing is cleaned is set to the dot counter value (3 primary colors) of the color ink by the continuous change information estimating means. + 4 types of black counter values)
It is used as a reference correction value for the dot counter value before the abnormal end occurs.

【0062】上述したように、主フラグと従属フラグの
意味を組合せることにより異常終了がプリンタ装置10
0がどのような状態の時に生じたのかを知ることができ
る。また、異常終了発生時のドット数カウンタ値(継続
的変化情報)と従属フラグの意味を組合せることによ
り、保存情報の復帰時に,継続的変化情報推計手段によ
りEEPROM5に保存されていた最新のドット数カウ
ンタ値に基準補正値を加算して異常状態発生時のドット
数カウンタ値を推計し、この値を異常状態発生時のドッ
ト数カウンタ値として復帰させることができる。これに
よりドット数カウンタ値の誤差を平均的に小さくするこ
とができる。
As described above, by combining the meanings of the main flag and the subordinate flag, the abnormal termination is caused by the printer device 10.
It is possible to know in what state 0 occurred. Further, by combining the dot number counter value (continuous change information) at the time of abnormal termination and the meaning of the subordinate flag, the latest dot stored in the EEPROM 5 by the continuous change information estimation means at the time of restoration of the stored information. It is possible to add the reference correction value to the number counter value, estimate the dot number counter value when the abnormal state occurs, and restore this value as the dot number counter value when the abnormal state occurs. This makes it possible to reduce the error in the dot number counter value on average.

【0063】しかしながら、例えば、継続的変化情報の
書込サイクルを20分としたとき、前回のドット数カウ
ンタ値をEEPROM5に書込んでから19分後に異常
終了が発生したような場合は推計値で十分であるが、前
回のドット数カウンタ値をEEPROM5に書込んでか
ら1分後に異常終了が発生したような場合は誤差が大き
いので、より誤差を小さくするためには、異常終了発生
時点と保存情報書込手段による最新のドット数カウンタ
値の書込時点との時間関係を示すフラグ(以下、ヒスト
リフラグ)を設けて、最新のドット数カウンタ値の書込
が異常終了の直前、5分前,10分前,15分前といっ
た意味付け(この場合はフラグ2ビット分で意味付ける
ことができる)を行うようにしてもよく、また、数ビッ
トを行数ビットとしてセットするように構成してもよ
い。このようにするために従属フラグの個数が7つで不
足する場合は、図5(b)に示す2バイトの異常状態フ
ラグを用いればよく、これにより従属フラグの個数を1
5に増加できるので、従属フラグで意味付けることので
きるインクジェットプリンタ装置の状態が拡張される
(ここで、READ/WRITEを2バイト毎に行うE
EPROMを用いる場合、1バイトのデータを書込むの
も、2バイトのデータを書込むのもかかる時間は同じで
ある)。
However, for example, when the continuous change information writing cycle is set to 20 minutes, if an abnormal termination occurs 19 minutes after writing the previous dot number counter value in the EEPROM 5, it is an estimated value. Although it is sufficient, if an abnormal end occurs 1 minute after writing the previous dot number counter value in the EEPROM 5, the error is large. A flag (hereinafter referred to as a history flag) indicating the time relationship with the time when the latest dot number counter value is written by the information writing means is provided, and 5 minutes before the abnormal end of writing the latest dot number counter value. , 10 minutes ago, 15 minutes ago (in this case, the flag 2 bits can be used for meaning), and several bits are defined as row number bits. It may be configured to be set Te. In order to do so, if the number of dependent flags is insufficient with seven, the 2-byte abnormal state flag shown in FIG. 5 (b) may be used.
Since the number can be increased to 5, the state of the inkjet printer device, which can be given meaning by the subordinate flag, is expanded (here, READ / WRITE is performed every 2 bytes E
When using an EPROM, it takes the same time to write 1-byte data and 2-byte data).

【0064】また、複数のカウンタ値についてできるだ
け誤差の少ない値を復帰するようにするには、例えば、
カラーインクのドット数については4つのカウンタ値が
必要となるが、この場合、2バイトの異常状態フラグ4
個を設けるより、2バイトの異常状態フラグの15個の
従属フラグのうち8つをヒストリフラグとして用いるこ
とにより、4色についてそれぞれ最新の書込に関し4状
態の時間的履歴がセット可能となる。
Further, in order to restore the values with the smallest possible error among the plurality of counter values, for example,
For the number of dots of color ink, four counter values are required. In this case, the 2-byte abnormal state flag 4
Rather than providing one, by using eight of the 15 dependent flags of the 2-byte abnormal condition flag as history flags, it is possible to set the temporal history of four states for the latest writing for each of the four colors.

【0065】<レーザープリンタ装置への適用例>応用
例として本発明をレーザープリンタ装置のトナー残量の
検出に適用することができる。この例では、異常終了時
の印字機構の状態を知るために必要な情報を要保存情報
とした例であり、プリンタ装置の構成図、リカバリー手
段の構成ブロック、フローチャート、保存情報および異
常状態フラグの書込タイミング、および異常終了フラグ
など本応用例の要素は、インクのドット数カウンタ値に
代えてトナーの消費量のカウンタ値を要保存情報の一つ
とし、従属フラグと関係付けて異常終了直前の値を推計
した点以外は前述した実施例と同様であり、説明を省略
する。また、トナーの消費量のカウンタ値の推計につい
ても実施例の場合に準じて行えばよいので説明を省略す
る。
<Application Example to Laser Printer Device> As an application example, the present invention can be applied to the detection of the toner remaining amount of the laser printer device. This example is an example in which the information necessary for knowing the state of the printing mechanism at the time of abnormal termination is the save required information, and the configuration diagram of the printer device, the configuration block of the recovery means, the flowchart, the save information and the abnormal state flag are shown. The elements of this application, such as the write timing and the abnormal end flag, use the counter value of toner consumption instead of the ink dot number counter value as one of the save-required information, and associate it with the dependent flag immediately before the abnormal end. The description is omitted because it is the same as the above-described embodiment except that the value of is estimated. Further, the estimation of the counter value of the toner consumption amount may be performed in accordance with the case of the embodiment, so the description thereof will be omitted.

【0066】以上本発明の実施例について説明したが、
本発明は上記実施例に限定されるものではなく、種々の
変形実施が可能であることはいうまでもない。
The embodiments of the present invention have been described above.
The present invention is not limited to the above embodiment, and it goes without saying that various modifications can be made.

【0067】[0067]

【発明の効果】以上説明したように第1の発明によれ
ば、プリンタ装置が通常動作中に、保存が必要な情報
(要保存情報)のうち設定パラメータ値やある種のカウ
ント値のような時折変化する非継続的変化情報は変化の
ある毎にEEPROMに書込んで前回の値を更新し、印
字処理中は継続的に値が増加(変化)するインクのドッ
ト数のカウント数のような継続的変化情報については一
定時間おきに変化した値をEEPROMに書込んで前回
の値を更新し、異常終了の場合には異常状態フラグを書
込むだけでよいようにリカバリー手段を構成しているの
で、従来、異常終了時に必要であった情報の退避の必要
がない。従って、異常終了による電源遮断後の電圧保持
時間が少なくてすみ、電圧保持のためのコンデンサ容量
が少なくて済むのでプリンタ設計上の大きな利点とな
る。また、サイズ的、コスト的にも寄与し得る。
As described above, according to the first aspect of the present invention, during the normal operation of the printer device, the setting parameter value and a certain count value among the information that needs to be saved (information to be saved) such as a count value. The non-continuous change information that changes from time to time is written in the EEPROM every time it changes, and the previous value is updated. During printing, the value continuously increases (changes) like the count number of the number of ink dots. As for the continuous change information, the recovery means is configured so that the value changed every fixed time is written in the EEPROM, the previous value is updated, and in the case of abnormal termination, only the abnormal state flag is written. Therefore, there is no need to save the information that was conventionally required at the time of abnormal termination. Therefore, the voltage holding time after the power is shut off due to abnormal termination can be reduced, and the capacity of the capacitor for holding the voltage can be reduced, which is a great advantage in printer design. It can also contribute to size and cost.

【0068】また、第2の発明によれば異常状態フラグ
が主フラグと従属フラグで構成されているので、異常終
了時のプリンタ装置の状態を容易に判定することができ
る。
Further, according to the second aspect of the invention, since the abnormal state flag is composed of the main flag and the subordinate flag, it is possible to easily determine the state of the printer device at the abnormal end.

【0069】さらに、第3の発明によれば従属フラグ
が、継続的変化情報について異常終了時と書込時との時
間的関係を示すヒストリフラグを有しているので、第4
の発明と併せ、継続的変化情報のうち特定のカウンタ値
等に対する異常終了直前の値の推計が可能となり、それ
らカウンタ値の異常終了による発生誤差を少なくでき
る。
Further, according to the third aspect of the invention, the subordinate flag has a history flag indicating the temporal relationship between the abnormal change and the writing of the continuous change information.
In addition to the invention described above, it is possible to estimate the value of the continuous change information immediately before the abnormal end with respect to a specific counter value or the like, and it is possible to reduce the error caused by the abnormal end of the counter values.

【0070】第5の発明はインクジェットプリンタ装置
において、インクのドット数カウンタの値の異常終了に
よる誤差を少なくできるので、より誤差の少ないインク
の残量の検出が可能となる。また、第6の発明ではレー
ザープリンタ装置において、消費したトナーのカウンタ
の値の異常終了による誤差を少なくできるのでより誤差
の少ないトナー残量の検出が可能となる。
In the fifth aspect of the invention, in the ink jet printer device, the error due to the abnormal termination of the value of the ink dot number counter can be reduced, so that it is possible to detect the remaining amount of ink with less error. According to the sixth aspect of the invention, in the laser printer, the error due to the abnormal termination of the value of the consumed toner counter can be reduced, so that it is possible to detect the remaining toner amount with less error.

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

【図1】本発明のプリンタ装置の望ましい実施の形態の
一例を示す図である。
FIG. 1 is a diagram showing an example of a preferred embodiment of a printer device of the present invention.

【図2】リカバリー手段の構成を示すブロック図であ
る。
FIG. 2 is a block diagram illustrating a configuration of a recovery unit.

【図3】CPUにより実行制御されるリカバリー手段の
フローチャートの例である。
FIG. 3 is an example of a flowchart of a recovery unit executed and controlled by a CPU;

【図4】保存情報および異常状態フラグの書込のタイミ
ングフローチャートである。
FIG. 4 is a timing flowchart of writing storage information and an abnormal state flag.

【図5】異常状態フラグの例を示す図である。FIG. 5 is a diagram showing an example of an abnormal state flag.

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

2 CPU 4 リカバリー手段 5 EEPROM(書込/読み出し可能な不揮発性メ
モリー) 41 保存情報書込手段 42 異常状態フラグ書込手段 43’ 保存情報復帰手段(継続的変化情報推計手段) 100 プリンタ装置
2 CPU 4 Recovery Means 5 EEPROM (Writable / Readable Nonvolatile Memory) 41 Saved Information Writing Means 42 Abnormal State Flag Writing Means 43 'Saved Information Restoring Means (Continuous Change Information Estimating Means) 100 Printer Device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 書込/読み出し可能な不揮発性メモリー
を有し、印刷処理中に該処理を中断して終了させる異常
終了状態の発生に備えて、該異常終了直前の状態に復帰
させることが必要な要保存情報を前記不揮発性メモリー
に退避させ、印刷処理の再開始時に上記退避させた情報
を復帰させるリカバリー手段を有するプリンタ装置であ
って、 前記リカバリー手段が、 a.印刷処理中に、前記要保存情報のうち継続的には変
化しない非継続的変化情報については、変化のあるたび
に該変化した情報を保存情報として前記不揮発性メモリ
ーに書込み、前記要保存情報のうち継続的に変化する継
続的変化情報については、所定時間毎に、該変化した情
報を保存情報として前記不揮発性メモリーに書込む保存
情報書込手段と、 b.印刷処理中に異常終了した場合に、前記不揮発性メ
モリーに異常状態フラグを書込む異常状態フラグ書込み
手段と、を有することを特徴とするプリンタ装置。
1. A non-volatile memory that is writable / readable, and is capable of returning to a state immediately before the abnormal end in preparation for the occurrence of an abnormal end state in which the process is interrupted and ended during the printing process. A printer device having a recovery unit that saves necessary storage-required information in the nonvolatile memory and restores the saved information when the printing process is restarted, the recovery unit comprising: a. During the printing process, for the non-continuous change information that does not change continuously among the required save information, each time there is a change, the changed information is written to the nonvolatile memory as save information, and Of the continuously changing information, which continuously changes, a saved information writing unit that writes the changed information as saved information in the nonvolatile memory at predetermined time intervals; b. An abnormal state flag writing means for writing an abnormal state flag to the non-volatile memory when abnormal termination is performed during a printing process.
【請求項2】 請求項1記載のプリンタ装置において、
異常状態フラグが、異常終了があったことを示す主フラ
グと、異常終了時における処理属性を示す従属フラグ
と、から構成されていることを特徴とする。
2. The printer according to claim 1, wherein
The abnormal state flag is configured by a main flag indicating that an abnormal end has occurred and a dependent flag indicating a processing attribute at the time of abnormal end.
【請求項3】 請求項2記載のプリンタ装置において、
従属フラグが、異常終了と保存情報書込手段による特定
の継続的変化情報の書込との時間関係を示すヒストリフ
ラグを含むことを特徴とする。
3. The printer according to claim 2, wherein
The dependent flag includes a history flag indicating a time relationship between abnormal termination and writing of the specific continuous change information by the stored information writing means.
【請求項4】 請求項2または3に記載のプリンタ装置
において、リカバリー手段が、更に、異常終了が生じた
場合に、特定の継続的変化情報について最新の保存情報
と従属フラグから該異常終了直前の値を推計する継続的
変化情報値推計手段を含むことを特徴とする。
4. The printer device according to claim 2 or 3, wherein the recovery means, when an abnormal end occurs, immediately before the abnormal end from the latest storage information and the dependent flag for the specific continuous change information. It is characterized by including a continuous change information value estimation means for estimating the value of.
【請求項5】 請求項1ないし4項のいずれか1項に記
載のプリンタ装置の構成を有し、要保存情報中の特定の
継続的変化情報として印字機構の駆動中に打出したドッ
ト数のカウント値を含む、ことを特徴とするインクジェ
ットプリンタ装置。
5. The printer apparatus according to claim 1, wherein the number of dots ejected during the driving of the printing mechanism is specified as the specific continuous change information in the storage required information. An inkjet printer device comprising a count value.
【請求項6】 請求項1ないし4項のいずれか1項に記
載のプリンタ装置の構成を有し、要保存情報中の特定の
継続的変化情報として印字機構の駆動中に消費したトナ
ー量のカウント値を含むことを特徴とするレーザープリ
ンタ装置。
6. The printer according to any one of claims 1 to 4, wherein the amount of toner consumed during the driving of the printing mechanism is specified as the continuous change information in the storage required information. A laser printer device including a count value.
JP7286289A 1995-11-02 1995-11-02 Printer device Pending JPH09123570A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7286289A JPH09123570A (en) 1995-11-02 1995-11-02 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7286289A JPH09123570A (en) 1995-11-02 1995-11-02 Printer device

Publications (1)

Publication Number Publication Date
JPH09123570A true JPH09123570A (en) 1997-05-13

Family

ID=17702459

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7286289A Pending JPH09123570A (en) 1995-11-02 1995-11-02 Printer device

Country Status (1)

Country Link
JP (1) JPH09123570A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009058938A (en) * 2007-08-08 2009-03-19 Ricoh Co Ltd Image forming apparatus and image forming method
CN113229827A (en) * 2021-04-30 2021-08-10 南京伟思医疗科技股份有限公司 Data protection and recovery method for abnormal exit of electroencephalogram measuring instrument

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009058938A (en) * 2007-08-08 2009-03-19 Ricoh Co Ltd Image forming apparatus and image forming method
CN113229827A (en) * 2021-04-30 2021-08-10 南京伟思医疗科技股份有限公司 Data protection and recovery method for abnormal exit of electroencephalogram measuring instrument

Similar Documents

Publication Publication Date Title
US7667866B2 (en) Printing apparatus, data storage medium, interface device, printer control method, and interface control method
JP2839995B2 (en) Recording device
US8441666B2 (en) Printing control device and printing control method
KR100488269B1 (en) Printing apparatus, its control method and recording medium
US6516440B1 (en) Printer and a control method for saving data from volatile to nonvolatile memory in the printer
KR20010050285A (en) Printer and a control method and recording medium for the same
US8006051B2 (en) Data processing device having a maintenance counter function
KR100444574B1 (en) Inkjet printer and Maintenance control method of the same
KR100212992B1 (en) Ink cartridge status detecting method of inkjet printer
US20120249625A1 (en) Control device, information processing device, and method of controlling a control device
JP3697785B2 (en) Printer device
JPH09123570A (en) Printer device
JP2002067450A (en) Printer, its control method and information recording medium
US7440124B2 (en) Ink-jet printer purging device shared by multiple host machines
JP2002046293A (en) Ink jet printer system
JP3486205B2 (en) Electronic desk calculator with inkjet head
JP4106822B2 (en) Printing apparatus, initialization method, and information recording medium
JP2005196327A (en) Information processor, print program and recording device
JPH11192728A (en) Ink jet recorder, information processor, print control method, and memory medium
JP2003237054A (en) Inkjet recorder and method of managing information
JP2001138604A (en) Printer, control method thereof and information recording medium
JPH11328041A (en) Method and device for controlling write-in to non-volatile memory in printer
JP2002046289A (en) Ink jet printer and method for controlling ink consumption
JP2000168201A (en) Printer, control method therefor and recording medium
JPH07211089A (en) Memory writing control system