JP2004291645A - Printer and cartridge - Google Patents

Printer and cartridge Download PDF

Info

Publication number
JP2004291645A
JP2004291645A JP2004160862A JP2004160862A JP2004291645A JP 2004291645 A JP2004291645 A JP 2004291645A JP 2004160862 A JP2004160862 A JP 2004160862A JP 2004160862 A JP2004160862 A JP 2004160862A JP 2004291645 A JP2004291645 A JP 2004291645A
Authority
JP
Japan
Prior art keywords
ink
cartridge
data
information
memory
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.)
Granted
Application number
JP2004160862A
Other languages
Japanese (ja)
Other versions
JP3707494B2 (en
Inventor
Toshihisa Saruta
稔久 猿田
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 JP2004160862A priority Critical patent/JP3707494B2/en
Publication of JP2004291645A publication Critical patent/JP2004291645A/en
Application granted granted Critical
Publication of JP3707494B2 publication Critical patent/JP3707494B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a printer and an ink cartridge employed for the printer which can reliably process data such as a remaining ink amount even when a memory element mounted on the ink cartridge has a small capacity. <P>SOLUTION: In a printer 1, a sequential-access-type EEPROM having a small memory capacity is employed as memory elements 80 mounted on ink cartridges 107K and 107F. The memory element 80 stores data such as a remaining ink amount as 8-bit data. A print controller 40 of the printer 1 also has an EEPROM 90 for storing data relating the ink cartridges, and stores data such as a remaining ink amount as 32-bit data. When the cartridge is not changed, 32-bit data are used, and when the cartridge is changed, the following control is performed based on the data in the ink cartridge 107K. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、インクジェットプリンタあるいはインクジェットプロッタなどとして用いられる印刷装置、およびこの印刷装置の本体に着脱されるカートリッジに関する。さらに詳しくは、カートリッジに情報を記憶する際の処理技術に関する。   The present invention relates to a printing device used as an ink jet printer or an ink jet plotter, and a cartridge which is attached to and detached from a main body of the printing device. More specifically, the present invention relates to a processing technique for storing information in a cartridge.

インクジェットプリンタやインクジェットプロッタなどとして用いられる印刷装置は、インクを収容するインクカートリッジと、媒体に対する印刷を実行する印刷ヘッドを備える印刷装置本体とから概略構成されている。印刷ヘッドは、インクカートリッジから供給されるインクを印刷用紙等の媒体に付着させることにより、媒体に対する印刷を実現する。インクカートリッジは、印刷装置本体に対して着脱可能に形成されている。インクカートリッジには、当初、所定量のインクが収容されており、収容されているインクが空になると、インクカートリッジは新たなものと交換される。そして、この種の印刷装置は、印刷処理中における印刷の中断を避けるため、印刷ヘッドからのインクの吐出量に基づいてインクカートリッジ内のインク残量を印刷装置本体側で算出し、インク残量が少なくなったときにその旨を報知するように構成されている。   2. Description of the Related Art A printing apparatus used as an inkjet printer, an inkjet plotter, or the like generally includes an ink cartridge containing ink and a printing apparatus main body including a print head for executing printing on a medium. The print head realizes printing on a medium by attaching ink supplied from an ink cartridge to a medium such as printing paper. The ink cartridge is formed detachably with respect to the printing apparatus main body. The ink cartridge initially stores a predetermined amount of ink, and when the stored ink becomes empty, the ink cartridge is replaced with a new one. In order to avoid interruption of printing during the printing process, this type of printing apparatus calculates the remaining amount of ink in the ink cartridge based on the amount of ink ejected from the print head on the printing apparatus main body side, and calculates the remaining amount of ink. Is configured to notify the user when the number has decreased.

こうしたインク残量のデータは、通常、印刷装置側、あるいはこの印刷装置を利用するいわゆるプリンタドライバ等が保存しているに過ぎない。このため、使用中にインクカートリッジを交換すると、インク残量などインクカートリッジに関する情報は、失われるか、誤ったものとなってしまう。   Normally, such data on the amount of remaining ink is stored only in the printing apparatus or in a so-called printer driver that uses the printing apparatus. Therefore, if the ink cartridge is replaced during use, information about the ink cartridge, such as the remaining amount of ink, is lost or becomes erroneous.

そこで、こうした問題を解決するために、インクカートリッジに不揮発性メモリを備え、インク残量等のデータをこのメモリに本体側から書き込んでおき、カートリッジが交換された場合でも、インク残量を把握できるようにしようとする技術が提案されている(例えば、下記特許文献1参照)。   Therefore, in order to solve such a problem, a non-volatile memory is provided in the ink cartridge, and data such as the remaining amount of ink is written from the main body side to the memory so that the remaining amount of ink can be grasped even when the cartridge is replaced. A technique that attempts to do so has been proposed (for example, see Patent Document 1 below).

特特開昭62−184856号公報JP-A-62-184856

しかしながら、インク残量のデータは、カートリッジの交換時期を正確に知らせるためには、かなりの精度が必要になり、これをカートリッジ側に記憶しようとすると、記憶容量が大きくなってしまうという問題があった。精度が低い場合には、インクカートリッジのインク残量がなくなったことを報知するインクエンドの判断が実際のインク残量と大きく食い違ってしまう。電源オフ時にこのデータを更新していくとすると、次に電源を投入した場合、カートリッジのインク残量を読み出したプリンタ本体側は、記憶している値を精度内の下限値として扱わざるを得ないからである。例えば、カートリッジ側のデータが1バイト(8ビット)であり、0−100%のように、インク残量を百分率で記憶し、そのデータの精度は1%であるとする。この場合、カートリッジ側から読み出した値が「50」とすると、これが、50.9を丸めて50として書き込んだものか、50.1を丸めたものかは本体側では判断できないから、安全を見て、下限値50.0として扱わざるをえない。   However, there is a problem that the data of the remaining amount of ink requires a considerable degree of accuracy in order to accurately notify the time of replacement of the cartridge, and if this is to be stored in the cartridge, the storage capacity becomes large. Was. If the accuracy is low, the determination of the ink end, which notifies that the ink cartridge has run out of ink, is significantly different from the actual ink remaining. If this data is updated when the power is turned off, the next time the power is turned on, the printer body that has read the ink remaining amount of the cartridge must treat the stored value as the lower limit value within the accuracy. Because there is no. For example, it is assumed that the data on the cartridge side is 1 byte (8 bits), the remaining amount of ink is stored as a percentage, such as 0-100%, and the precision of the data is 1%. In this case, if the value read from the cartridge side is “50”, it is impossible for the main body to determine whether this is a value obtained by rounding 50.9 and written as 50 or a value obtained by rounding 50.1. Therefore, the lower limit must be treated as 50.0.

そうすると、毎回わずかな量を使用したとしても、必ず1%ずつデータを漸減しなければならないから、100回使用すると、カートリッジのインク残量は0になってしまうことになる。逆にわずかな使用ではデータを1%低減しないとすると、今度はわずかずつ使用した場合に、インク残量が0となってもインクエンドの警告が出力されないことになってしまう。従って、メモリを備えたカートリッジやこれを利用する印刷装置では、インク残量等を正確に判断しようとすると、インク当たり数バイトの記憶容量を用意しなければならなかった。複数のインクが一つの筐体に収納されたカラーカートリッジの等の場合には、色毎に記憶領域が必要になるので、例えば5色のインクカートリッジにおいて各色毎に4バイトの容量を必要とすれば、5×4=20バイト(20×8=160ビット)もの容量を必要としてしまう。   In this case, even if a small amount is used each time, the data must be gradually reduced by 1%. Therefore, if the used amount is 100 times, the ink remaining amount of the cartridge becomes zero. Conversely, if the data is not reduced by 1% with a slight use, an ink end warning will not be output even if the remaining ink amount becomes 0 when the data is used little by little. Therefore, in a cartridge having a memory or a printing apparatus using the same, a storage capacity of several bytes per ink has to be prepared in order to accurately determine the remaining amount of ink and the like. In the case of a color cartridge in which a plurality of inks are housed in one housing, a storage area is required for each color. For example, in a five-color ink cartridge, a 4-byte capacity is required for each color. For example, a capacity of 5 × 4 = 20 bytes (20 × 8 = 160 bits) is required.

また、書き込むべき容量が増加すると、電源オフ時に総てのデータを書き戻すことが困難になることが考えられた。印刷装置のパネルに設けられた電源スイッチを操作するような場合には、印刷装置側でカートリッジのメモリへの書込を確認してから電源を遮断するようなシーケンスを実現することができるが、いきなりコンセントを抜いたり、コンピュータ連動電源タップ等を用いて電源ライン側で強制的に電源オフにするような場合には、電源の遮断を検出していても、わずかな時間に、カートリッジのメモリへの書込を完了しなければならない。書込の途中で書き込みようの電源電圧が失われてしまえば、カートリッジ側のデータの信頼性は失われ、もはやカートリッジを適正に使用することができなくなってしまう。この他、容量の大きなメモリの使用は、消耗品であるインクカートリッジのコストの上昇を招き、また省資源の立場からも問題となる。   Also, it has been considered that when the capacity to be written increases, it becomes difficult to write back all data when the power is turned off. In the case where the power switch provided on the panel of the printing apparatus is operated, a sequence in which the printing apparatus confirms writing to the memory of the cartridge and then shuts off the power can be realized. If you suddenly unplug the power outlet or forcibly turn off the power at the power line using a computer-linked power tap, etc. Must be completed. If the power supply voltage for writing is lost during writing, the reliability of data on the cartridge side is lost, and the cartridge can no longer be used properly. In addition, the use of a large-capacity memory causes an increase in the cost of an ink cartridge, which is a consumable item, and also poses a problem from the viewpoint of resource saving.

なお、こうした問題は、溶媒中に顔料または染料を混合または溶解し、液状のインク滴を吐出して印刷を行なうインクジェットタイプの印刷装置およびそのインクカートリッジのみならず、トナーを収容したトナーカートリッジを用いる印刷装置や熱転写タイプの印刷装置でも、カートリッジ内の残量もしくは消費量を直接計測するのではなく、印刷装置側で演算するタイプの印刷装置およびカートリッジでは同様に生じ得るものであった。   In addition, such a problem is caused not only by using an ink-jet type printing apparatus and an ink cartridge for performing printing by mixing or dissolving a pigment or dye in a solvent and discharging a liquid ink droplet, but also using a toner cartridge containing toner. Even in a printing apparatus and a thermal transfer type printing apparatus, the same can occur in a printing apparatus and a cartridge of a type in which the remaining amount or consumption amount in the cartridge is not directly measured, but is calculated on the printing apparatus side.

本発明の目的は、上記問題を解決し、カートリッジのコスト上昇を抑制しつつ、インク残量等のカートリッジに関する情報を適正に処理可能な印刷装置およびカートリッジを提供することにある。   SUMMARY OF THE INVENTION It is an object of the present invention to provide a printing apparatus and a cartridge capable of solving the above-described problems and appropriately processing information on the cartridge such as the remaining amount of ink while suppressing an increase in the cost of the cartridge.

かかる目的の少なくとも一部を達成するために印刷装置およびカートリッジの発明がなされた。本発明の印刷装置は、
インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置であって、
書き換え可能な本体側メモリと、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記本体側メモリに記憶する情報書込手段と、
前記インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込むメモリ書込手段と
を備えたことを要旨とする。
In order to achieve at least a part of the object, a printing apparatus and a cartridge were invented. The printing apparatus of the present invention
A printing apparatus that can be mounted with a cartridge that contains ink and has a rewritable nonvolatile memory, and that performs printing by transferring the ink of the cartridge to a print medium,
Rewritable main unit memory,
Information writing means for storing information on the amount of ink in the cartridge consumed along with execution of printing on the print medium as data of a predetermined number of bits in the main body side memory;
A memory writing unit that converts the information regarding the ink amount into data having a smaller number of bits than the number of bits and writes the converted data into a non-volatile memory provided in the cartridge.

かかる印刷装置では、印刷媒体への印刷の実行に伴って消費されるカートリッジ内のインク量に関する情報を、本体側メモリには所定のビット数のデータとして書き込み、カートリッジ側の不揮発性メモリには、このビット数より少ないビット数のデータに変換してから書き込む。従って、カートリッジに、インク量に関するデータを不揮発的に記憶させながら、かつその記憶容量のいたずらな増大を招かないという効果を奏する。   In such a printing apparatus, information on the amount of ink in the cartridge consumed in executing printing on a print medium is written as data of a predetermined number of bits in the main unit side memory, and the cartridge side nonvolatile memory is written in the nonvolatile memory. The data is converted into data of a bit number smaller than this bit number and then written. Therefore, there is an effect that the data regarding the ink amount is stored in the cartridge in a nonvolatile manner and the storage capacity is not unnecessarily increased.

ここで、ビット数を少なくするためには、本体側メモリに書き込まれるデータの下位ビットを削除する変換や、このデータを、割合を示すデータに換算する変換などが採用可能である。   Here, in order to reduce the number of bits, a conversion for deleting lower bits of data written to the main body side memory, a conversion for converting this data into data indicating a ratio, and the like can be adopted.

また、こうした印刷装置において、電源が投入されたとき、前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された変換後のデータとの対応関係を判定し、両者が対応していると判定されたとき、前記本体側メモリに記憶された前記ビット数のデータを用いて、その後のインク量に関する処理を行なうこともできる。こうすれば、カートリッジが交換されない限り、大きなビット数のデータ、即ち精度の高いデータを用いてインク量に関する処理を行なうことができ、好適である。   Further, in such a printing apparatus, when the power is turned on, the correspondence between the information on the ink amount stored in the main body side memory and the converted data stored in the non-volatile memory is determined. When it is determined that the data corresponds to the number of bits, the subsequent processing relating to the amount of ink can be performed using the data of the number of bits stored in the main body side memory. In this case, as long as the cartridge is not replaced, the processing relating to the amount of ink can be performed using data having a large number of bits, that is, high-precision data.

他方、電源が投入されたとき、前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された変換後のデータとの対応関係を判定し、両者が対応していないと判定されたとき、前記不揮発性メモリに記憶された前記ビット数のデータを換算して、該データに対応するインク量に関する情報を前記本体側メモリに前記所定ビット数のデータとして書き込むと共に、該データを用いてその後のインク量に関する処理を行なわせるものとすることもできる。この場合には、カートリッジに記憶したインク量に関するデータを用いてその後の処理を継続することができるので、好適である。   On the other hand, when the power is turned on, the correspondence between the information on the ink amount stored in the main body side memory and the converted data stored in the nonvolatile memory is determined, and the two do not correspond. When it is determined, the data of the number of bits stored in the non-volatile memory is converted, and information on the amount of ink corresponding to the data is written as the data of the predetermined number of bits in the main body side memory. The subsequent processing relating to the ink amount may be performed using the data. In this case, the subsequent processing can be continued using the data on the ink amount stored in the cartridge, which is preferable.

もとより、カートリッジの不揮発性メモリに、このカートリッジを識別可能な識別情報を記憶しておき、印刷装置本体側で、電源投入時および/または前記カートリッジの交換時に、該不揮発性メモリに記憶された前記識別情報を読み出して保存しておき、読み出した識別情報とそれ以前に読み出して保存しておいた識別情報とを比較して、両者の一致を判定し、両者が一致していると判定されたとき、前記本体側メモリに記憶された前記ビット数のデータを用いて、その後のインク量に関する処理を行なわせるものとしてもよい。この場合には、カートリッジの識別情報を用いているので、同一のカートリッジが装着されていることを確実に判別して、インク量に関する処理を、本体側メモリが記憶している大きなビット数のデータを用いて継続することができる。   Naturally, identification information for identifying the cartridge is stored in the nonvolatile memory of the cartridge, and the printing apparatus main body stores the information stored in the nonvolatile memory when the power is turned on and / or when the cartridge is replaced. The identification information is read out and stored, and the read out identification information is compared with the identification information read out and stored earlier to determine the coincidence of the two. At this time, a process related to the ink amount may be performed using the data of the bit number stored in the main body side memory. In this case, since the identification information of the cartridge is used, it is reliably determined that the same cartridge is mounted, and the processing relating to the amount of ink is performed in a large bit number data stored in the main body side memory. Can be used to continue.

他方、かかる構成において、読み出した識別情報と前回読み出して保存しておいた識別情報とを比較して、両者が一致していないと判定されたとき、前記不揮発性メモリに記憶された前記ビット数のデータを換算して、該データに対応するインク量に関する情報を前記本体側メモリに前記所定ビット数のデータとして書き込むと共に、該データを用いてその後のインク量に関する処理を行なわせるものとすることもできる。この場合には、カートリッジ側のインク量に関するデータを用いてその後の処理を継続することができる。   On the other hand, in this configuration, the read identification information is compared with the identification information read and stored last time, and when it is determined that the two do not match, the number of bits stored in the nonvolatile memory is determined. And writes the information on the ink amount corresponding to the data as the data of the predetermined number of bits into the main body side memory, and performs the subsequent process on the ink amount using the data. You can also. In this case, the subsequent processing can be continued using the data on the ink amount on the cartridge side.

ところで、本体側メモリには、現に装着されているカートリッジのインク量に関する情報のみを保存しているだけでなく、装着されたいくつかのカートリッジのインク量に関する情報を記憶しているものとすることもできる。この場合には、カートリッジの不揮発性メモリに、そのカートリッジを識別可能な識別情報を記憶しておき、電源投入時および/またはカートリッジの交換時に、不揮発性メモリに記憶された前記識別情報を読み出し、この識別情報を用い、インク量に関する情報を、該識別情報の異なるカートリッジ別に、本体側メモリに保存しておく。その上で、カートリッジの交換がなされ得た場合には、前記不揮発性メモリから読み出した識別情報を用いて、本体側メモリの内容を検索し、一致するカートリッジに関する情報が存在するか否かを判定する。一致するカートリッジに関する情報が存在すると判定された場合には、この情報を利用して、その後のインク量に関する処理を行なわせればよい。このようにすれば、いくつかのカートリッジが取り替えられても、インク量に関する処理を精度良く行なうことができる。   By the way, it is assumed that not only information on the ink amount of the currently mounted cartridge is stored in the main body side memory but also information on the ink amount of some mounted cartridges. You can also. In this case, identification information for identifying the cartridge is stored in the non-volatile memory of the cartridge, and when the power is turned on and / or the cartridge is replaced, the identification information stored in the non-volatile memory is read out. Using this identification information, information on the amount of ink is stored in the main unit side memory for each cartridge having different identification information. Then, if the cartridge can be replaced, the content of the main unit side memory is searched using the identification information read from the non-volatile memory, and it is determined whether or not there is information on the matching cartridge. I do. If it is determined that there is information on the matching cartridge, the information may be used to perform the subsequent processing on the ink amount. In this way, even if some of the cartridges are replaced, it is possible to accurately perform the processing related to the ink amount.

他方、一致するカートリッジに関する情報が存在すると判定されたとき、更に、本体側メモリに記憶された前記インク量に関する情報と、不揮発性メモリに記憶された該カートリッジに対応した変換後のデータとの対応関係を判定し、両者が対応していると判定されたとき、その後のインク量に関する処理を、本体側メモリに記憶された前記一致するカートリッジについてのビット数のデータを用いて行なわせることができる。識別情報のみならず、インク量に関する情報に対応関係も判定しているので、装着されたカートリッジについてのインク量に関する情報として、正しいものを確実に試用することができる。   On the other hand, when it is determined that there is information on the matching cartridge, the information on the ink amount stored in the main body side memory and the converted data corresponding to the cartridge stored in the nonvolatile memory are further stored. The relationship is determined, and when it is determined that the two correspond, the subsequent processing related to the ink amount can be performed using the data of the number of bits for the matching cartridge stored in the main body side memory. . Since the correspondence is determined not only with the identification information but also with the information regarding the ink amount, it is possible to reliably use the correct information regarding the ink amount for the mounted cartridge.

他方、本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された該カートリッジに対応した変換後のデータとが対応していないと判定されたときには、不揮発性メモリに記憶された前記ビット数のデータを換算して該データに対応するインク量に関する情報を求め、この情報を、本体側メモリの前記一致したカートリッジに対応付けて、所定ビット数のデータとして書き込むものとすることができる。この場合には、カートリッジ側のデータを用いて処理を継続することができ、好適である。   On the other hand, when it is determined that the information on the ink amount stored in the main body side memory does not correspond to the converted data corresponding to the cartridge stored in the nonvolatile memory, the information is stored in the nonvolatile memory. The information on the ink amount corresponding to the data is obtained by converting the data of the number of bits thus obtained, and this information is written as data of a predetermined number of bits in association with the matching cartridge in the main body side memory. be able to. In this case, the processing can be continued using the data on the cartridge side, which is preferable.

こうした二つのメモリの情報を利用してインク量に関する処理を行なうものにあっては、本体側メモリを、不揮発性メモリより、大容量のメモリとすることが現実的である。カートリッジという消耗品に大容量のメモリを持たせることはコスト的にも省資源の立場からも、望ましいとは言えないからである。   In the case of performing a process relating to the amount of ink using the information of these two memories, it is practical to set the main body side memory to a memory having a larger capacity than a nonvolatile memory. This is because it is not desirable to provide a large-capacity memory for a consumable such as a cartridge from the viewpoint of cost and resource saving.

また、本体側メモリは、不揮発性メモリより、高速なアクセスが可能なメモリとすることもできる。ビット数の多いデータを書き込むので、高速にアクセス可能な目盛りの方が望ましいからである。   Further, the main body side memory may be a memory that can be accessed at a higher speed than a nonvolatile memory. This is because, since data with a large number of bits is written, a scale that can be accessed at high speed is more desirable.

なお、カートリッジの不揮発性メモリにデータを書き込むタイミングとしては、種々考えることができるが、印刷装置の電源オフ時および/または前記カートリッジの交換時に、情報の書込を行なうものとすることができる。少なくともこれらのタイミングでデータを書き込んでおけば、カートリッジの装着が解除される場合にカートリッジないのデータを最新のものにしておくことができる。   Various timings can be considered for writing data to the non-volatile memory of the cartridge. However, information can be written when the power of the printing apparatus is turned off and / or when the cartridge is replaced. By writing the data at least at these timings, the data in the cartridge can be kept up to date when the mounting of the cartridge is released.

他方、本体側メモリへのデータの書き込みは、1頁分の印刷が完了した時に行なうものとしたり、1以上のラスタ分の印刷が完了した時に行なうものとしたり、両タイミングで行なうものとしたりすることができる。本体側メモリのデータは細かく更新しておき、カートリッジ側の不揮発性メモリは、これより少ない頻度で更新することも好適である。   On the other hand, writing of data to the main unit side memory is performed when printing of one page is completed, when printing of one or more rasters is completed, or performed at both timings. be able to. It is also preferable that the data in the main body side memory be finely updated, and the non-volatile memory on the cartridge side be updated less frequently.

更に、印刷装置に、所定の操作を受けて、所定の量のインクを吐出させるヘッドクリーニングを行なうクリーニング手段を備える場合、クリーニング手段が動作した時にも、本体側メモリへの情報の書き込みを行なうものとしても良い。インクジェットプリンタ等で、印字ヘッドのノズルの目詰まりを防止するために、クリーニング機能を有するものがあるが、クリーニング動作を行なうと、所定量のインクを消費する。従って、こうした動作の後では、インク量に関する情報を更新することが望ましい。   Further, in a case where the printing apparatus is provided with a cleaning means for performing a head cleaning for discharging a predetermined amount of ink in response to a predetermined operation, the information is written into the main body side memory even when the cleaning means operates. It is good. Some inkjet printers and the like have a cleaning function in order to prevent clogging of nozzles of a print head. However, when a cleaning operation is performed, a predetermined amount of ink is consumed. Therefore, after such an operation, it is desirable to update the information regarding the ink amount.

カートリッジに搭載する不揮発性のメモリとして、公知の種々のメモリが使用可能であるが、例えば、シリアルアクセスによりデータの授受を行なうタイプのメモリを用いることができる。こうしたタイプのメモリは、一般に記憶容量はさほど大きくはないものの、安価であり、チップとしての端子も少ないので、省資源にも資することができる。この場合、メモリへの書き込みを行なう側は、情報を、アドレス指定用のクロックに同期して不揮発性メモリに書き込む。   Various known memories can be used as the non-volatile memory mounted on the cartridge. For example, a memory of a type that transmits and receives data by serial access can be used. Although these types of memories generally have a small storage capacity, they are inexpensive and have few terminals as chips, which can contribute to resource saving. In this case, the side that writes to the memory writes information to the nonvolatile memory in synchronization with the addressing clock.

もとより、こうしたアドレス指定用のクロックは、不揮発性メモリへのデータの書き込みを直接制御する制御用ICを用いて出力するものとしてよい。こうした場合には、本体側メモリは、制御用ICの内部に設けてもよい、制御用ICの外部に設けても良い。   Of course, such an addressing clock may be output using a control IC that directly controls writing of data to the nonvolatile memory. In such a case, the main body side memory may be provided inside the control IC, or may be provided outside the control IC.

また、こうした構成にあって、カートリッジを、印字ヘッドが設けられ印刷媒体に対して往復動されるキャリッジ上に装着可能とした場合には、本体側メモリをキャリッジ上に設けることも差し支えない。制御用ICが、印刷装置側の制御手段から例えば通信などでデータを受け取るのであれば、この制御用ICの近くに本体側メモリを設けることは好適である。なお、カートリッジがキャリッジ上になく、本体側に固定されている場合でも、当然本発明は適用可能である。   In such a configuration, if the cartridge can be mounted on a carriage provided with a print head and reciprocated with respect to a print medium, the main body side memory may be provided on the carriage. If the control IC receives data from the control unit of the printing apparatus by, for example, communication, it is preferable to provide the main unit side memory near the control IC. Note that the present invention is naturally applicable even when the cartridge is not on the carriage but is fixed to the main body.

カートリッジに不揮発性メモリを備えた構成は、カートリッジの種類によらず、適用することができる。例えば、印刷装置手が、黒色インクを収納した黒色インク用のカートリッジと、複数のカラーインクを収納したカラーインク用のカートリッジとを、装着可能であれば、この黒色インク用カートリッジとカラーインク用カートリッジの各々に不揮発メモリを備え、それぞれに情報を書き込むものとすることができる。かかる構成によれば、カートリッジ毎に不揮発性メモリを有するので、カートリッジ毎にインク量のデータを処理することができる。もとより、黒色あるいはカラーインクカートリッジのみを装着可能な印刷装置にも適用可能である。   The configuration in which the non-volatile memory is provided in the cartridge can be applied regardless of the type of the cartridge. For example, if the printing apparatus hand can install a black ink cartridge containing black ink and a color ink cartridge containing a plurality of color inks, the black ink cartridge and the color ink cartridge can be installed. Are provided with a non-volatile memory, and information is written into each of them. According to such a configuration, since the nonvolatile memory is provided for each cartridge, it is possible to process the data of the ink amount for each cartridge. Of course, the present invention is also applicable to a printing apparatus in which only a black or color ink cartridge can be mounted.

以上本発明の印刷装置について説明したが、この発明は、メモリにおける情報管理方法としても構成することができる。即ち、この印刷装置の情報を管理する方法は、
インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置の情報を関する方法であって、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記印刷装置の本体側に設けられた書き換え可能な本体側メモリに記憶し、
該インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込むこと
を要旨としている。
Although the printing apparatus of the present invention has been described above, the present invention can also be configured as an information management method in a memory. That is, the method of managing the information of the printing apparatus is as follows.
A method for accommodating a cartridge having ink and having a rewritable non-volatile memory, wherein the cartridge is capable of being mounted, and the ink in the cartridge is transferred to a printing medium and printing is performed, the method relating to information of a printing apparatus,
Information on the amount of ink in the cartridge consumed in executing printing on the print medium is stored as data of a predetermined number of bits in a rewritable main body memory provided on the main body of the printing apparatus. ,
The gist of the present invention is to convert the information on the ink amount into data having a smaller number of bits than the number of bits and write the converted data into a nonvolatile memory provided in the cartridge.

かかる手法によりインク量に関する情報を管理すれば、一般に容量の小さいカートリッジ側の不揮発性メモリに無用な負担をかけることがなく、かつビット数の大きな、即ち精度の高いデータを本体側メモリに記憶することができ、カートリッジにおけるインク量に関する情報を好適に管理することができる。   By managing the information on the ink amount by such a method, generally, unnecessary load is not applied to the non-volatile memory of the cartridge having a small capacity, and data having a large number of bits, that is, highly accurate data is stored in the main body side memory. Thus, information on the amount of ink in the cartridge can be appropriately managed.

こうした方法は、印刷装置においても実施できるが、印刷装置に接続したコンピュータなどで実施することもできる。この場合、コンピュータに実施させるプログラムを記録した記録媒体として、発明を把握することができる。即ち、本発明の記録媒体は、インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置の情報を扱うプログラムを、コンピュータに読み取り可能に記録した記録媒体であって、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記印刷装置の本体側に設けられた書き換え可能な本体側メモリに記憶する機能と、
該インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込む機能と
をコンピュータにより実現させるプログラムを記録したことを要旨としている。
かかる記録媒体をコンピュータに読み取らせると、上記の各機能がコンピュータにより実現され、上述した情報の管理方法を実現することができる。
Such a method can be implemented in a printing apparatus, but can also be implemented in a computer or the like connected to the printing apparatus. In this case, the invention can be grasped as a recording medium that records a program to be executed by a computer. That is, the recording medium of the present invention can be mounted with a cartridge containing ink and having a rewritable nonvolatile memory, and is a program that handles information of a printing apparatus that performs printing by transferring ink from the cartridge to a printing medium. A computer-readable recording medium,
Information on the amount of ink in the cartridge consumed in executing printing on the print medium is stored as data of a predetermined number of bits in a rewritable main body memory provided in the main body of the printing apparatus. Features and
The gist is that a program for converting the information on the ink amount into data having a bit number smaller than the bit number and writing the data into a nonvolatile memory provided in the cartridge by a computer is recorded.
When the recording medium is read by a computer, each of the above functions is realized by the computer, and the above-described information management method can be realized.

更に、本発明は、カートリッジとしても構成可能である。即ち、本発明のカートリッジは、インクを収容すると共に書き換え可能な不揮発性メモリを備え、印刷装置に装着して用いられるカートリッジであって、
前記不揮発性メモリは、印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報が、前記印刷装置側で扱われているビット数より少ないビット数で書き込まれることを要旨としている。
Further, the present invention can be configured as a cartridge. That is, the cartridge of the present invention is a cartridge that contains ink and has a rewritable nonvolatile memory and is used by being mounted on a printing apparatus.
The non-volatile memory is designed so that information on the amount of ink in the cartridge consumed when printing is performed is written in a smaller number of bits than the number of bits handled by the printing apparatus.

かかるカートリッジによれば、書き込まれるインク量に関する情報は印刷装置側で扱われているビット数より少ないビット数なので、必要な記憶容量を低減することができるという利点がある。   According to such a cartridge, since the information on the amount of ink to be written is smaller in the number of bits than the number of bits handled in the printing apparatus, there is an advantage that the required storage capacity can be reduced.

こうしたインクカートリッジでは、不揮発性メモリへの情報の書き込みは、印刷装置の電源オフ時および/または前記カートリッジの交換時とすることができる。これらのタイミングでインク量に関する情報を更新しておけば、不慮のカートリッジ交換に対して、近時のインク量に関する情報を、カートリッジ側の不揮発メモリに保持できるからである。   In such an ink cartridge, writing of information to the nonvolatile memory can be performed when the power of the printing apparatus is turned off and / or when the cartridge is replaced. If the information on the ink amount is updated at these timings, the information on the recent ink amount can be stored in the non-volatile memory of the cartridge in case of accidental cartridge replacement.

こうしたカートリッジ側の不揮発性メモリとしては、EEPROMやフラッシュメモリなどを用いることができる。もとより、バッテリなどでバックアップすることにより、不揮発なメモリとすることも差し支えない。バブルメモリ、超小型のハードディスクなども、不揮発性メモリとして利用可能である。   As such a nonvolatile memory on the cartridge side, an EEPROM, a flash memory, or the like can be used. Of course, a non-volatile memory may be used by backing up with a battery or the like. A bubble memory, an ultra-small hard disk, and the like can also be used as the nonvolatile memory.

また、不揮発性メモリを、シリアルアクセスによりデータの授受を行なうタイプのメモリとして、アドレス指定用のクロックに同期して、前記情報が書き込まれるものとすることもできる。シリアルアクセスタイプのメモリは、小型化でき、端子数を少なくできる分、省資源にも資することができる。   Further, the nonvolatile memory may be a type of a memory for transmitting and receiving data by serial access, in which the information is written in synchronization with a clock for addressing. The serial access type memory can be reduced in size and the number of terminals can be reduced, which contributes to resource saving.

こうした不揮発性メモリに書き込まれるデータは、印刷装置側で扱われているデータの下位ビットを除いたデータであっても良いし、印刷装置側で扱われているデータを割合を示すデータに換算したデータであっても良い。ビット数が少なく、印刷装置側で扱っているデータと対応関係が取れれば良い。   The data written to such a non-volatile memory may be data obtained by removing lower-order bits of data handled on the printing device side, or may be converted from data handled on the printing device side to data indicating a ratio. It may be data. It suffices if the number of bits is small and the correspondence with the data handled by the printing apparatus can be obtained.

なお、カートリッジは、複数種類のインクを収容するインク収容室を有するものとすることができ、不揮発性メモリに、このインクの種類に応じてデータを書き込むものとすることができる。こうすれば、一つの不揮発性メモリにより、複数のインクのインク量に関する情報を記憶することができる。   Note that the cartridge may have an ink storage chamber that stores a plurality of types of ink, and data may be written in the nonvolatile memory according to the type of the ink. In this case, information on the ink amounts of a plurality of inks can be stored in one nonvolatile memory.

複数のインクを収容したカートリッジの例としては、例えば、
前記インク収容室は、少なくとも異なる3種類のインクを収容する3つ以上に区画され、
不揮発性メモリは、前記各インクの量に関連する情報をそれぞれ独立して格納する複数の情報記憶領域を有し、
その複数の情報記憶領域にはそれぞれ2バイト以下の容量が割り当てられているといった形態を考えることができる。
Examples of cartridges containing a plurality of inks include, for example,
The ink containing chamber is divided into three or more containing at least three different types of ink,
The nonvolatile memory has a plurality of information storage areas for independently storing information related to the amount of each ink,
A form in which a capacity of 2 bytes or less is allocated to each of the plurality of information storage areas can be considered.

かかる構成では、一つのインク当たり2バイト以下の容量が割り当てられているので、3種類のインクであっても、合計6バイト以下の記憶容量で、インク量に関する情報を記憶することができる。同様に、インク収容室が5種類のインクに応じて区画されている場合には、合計10バイト以下の記憶容量で、インク量に関する情報を記憶することができる。   In such a configuration, a capacity of 2 bytes or less is assigned to one ink, so that information on the amount of ink can be stored with a total storage capacity of 6 bytes or less even with three types of ink. Similarly, when the ink storage chamber is partitioned according to five types of ink, information on the amount of ink can be stored with a total storage capacity of 10 bytes or less.

なお、以上説明した各発明において、インク量に関連する情報としては、インク残量や、あるいは、カートリッジに関する累積的なインク消費量等を考えることができる。この他、印刷装置本体に装着されている間のインク消費量などの情報であっても差し支えない。インクを再充填可能なカートリッジでは、たとえはパネルスイッチを操作して「再充填」という指示を与え、カートリッジを取り出してインク再充填して戻すという使い方が考えられる。こうした使用の形態を前提とする場合には、「再充填」の指示を与える間において印刷装置に装着されている間のインク消費量を管理することが必要となる。   In each of the inventions described above, the information relating to the amount of ink may include the remaining amount of ink, the cumulative amount of ink consumed for the cartridge, and the like. In addition, information such as the amount of ink consumed while being attached to the printing apparatus main body may be used. For a cartridge that can be refilled with ink, for example, it is conceivable to operate the panel switch to give an instruction of "refilling", take out the cartridge, refill the ink, and return. Assuming such a mode of use, it is necessary to manage the amount of ink consumed while being attached to the printing apparatus while giving the “refill” instruction.

以下、図面を参照して、本発明の好適な実施例について説明する。なお、説明は以下の順序で行なう。
[第1実施例]
(プリンタの全体構成)
(インクカートリッジおよびカートリッジ装着部の構成)
(記憶素子80の構成)
(プリンタ1の動作)
(第1実施例の効果)
[第2実施例およびその作用効果]
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. The description will be made in the following order.
[First embodiment]
(Overall configuration of printer)
(Configuration of ink cartridge and cartridge mounting section)
(Configuration of Storage Element 80)
(Operation of Printer 1)
(Effect of the first embodiment)
[Second embodiment and its operation and effect]

[第1実施例]
(プリンタの全体構成)
図1は、以下の各実施例で用いられる本発明を適用したインクジェットプリンタ(印刷装置)の構成を示す斜視図である。図1において、本実施例のプリンタ1は、スキャナSCなどとともにコンピュータPCに対して接続された状態で使用される。コンピュータPCに、オペレーティングシステムや所定のプログラムがロードされ、実行されることにより、これらの装置全体が一体で印刷装置として機能する。コンピュータPCでは、所定のオペレーティングシステム上でアプリケーションプログラムが動作し、スキャナSCから読み込んだ画像などに対して所定の処理を行ないつつCRTディスプレイMTに画像を表示する。使用者は、ディスプレイMT上の画像をレタッチするといった処理を行なったのち、印刷を指示すると、オペレーティングシステムに組み込まれたプリンタドライバが起動し、画像データをプリンタ1に転送する。なお、コンピュータPCには、CD−ROMなどの記録媒体を読み取り可能なCDドライブ(図示せず)などが装着されている。
[First embodiment]
(Overall configuration of printer)
FIG. 1 is a perspective view illustrating a configuration of an inkjet printer (printing apparatus) to which the present invention is applied, which is used in each of the following embodiments. In FIG. 1, the printer 1 of the present embodiment is used in a state of being connected to a computer PC together with a scanner SC and the like. When an operating system and a predetermined program are loaded and executed on the computer PC, these devices as a whole function as a printing device. In the computer PC, an application program runs on a predetermined operating system, and displays an image on the CRT display MT while performing predetermined processing on an image or the like read from the scanner SC. When the user instructs printing after performing processing such as retouching an image on the display MT, a printer driver incorporated in the operating system starts up and transfers image data to the printer 1. The computer PC is equipped with a CD drive (not shown) capable of reading a recording medium such as a CD-ROM.

プリンタドライバは、スキャナSCから入力され、処理された原カラー画像データをプリンタ1が使用する各色のデータに変換し、プリンタ1に出力する。詳細には、原カラー画像データは赤(R)、緑(G)、青(B)の3色の色成分からなり、これを色変換して、プリンタ1に出力する色データであるブラック(K)、シアン(C)、ライトシアン(LC)、マゼンダ(M)、ライトマゼンダ(LM)、イエロー(Y)の各色に変換する処理や、さらにこれをインクドットの有無に置き換えるいわゆる二値化の処理などを行なう。これらの画像処理は、周知のものなので、詳細な説明は省略する。なお、こうした処理は、後述するように、プリンタ1側で行なうこともできる。   The printer driver converts original color image data input and processed by the scanner SC into data of each color used by the printer 1, and outputs the data to the printer 1. More specifically, the original color image data includes three color components of red (R), green (G), and blue (B), and converts the color components into black (black) which is color data to be output to the printer 1. K), cyan (C), light cyan (LC), magenta (M), light magenta (LM), and a process of converting each color into yellow (Y), and so-called binarization in which these are replaced with the presence or absence of ink dots. Perform processing and the like. Since these image processes are well known, detailed description will be omitted. Note that such processing can also be performed on the printer 1 side, as described later.

次に、プリンタ1の基本的な構成について説明する。プリンタ1は、図2および図3に示すように、制御を司るプリントコントローラ40や、インクの吐出などを実行するプリントエンジン5などを、プリンタ本体100に収納している。プリンタ本体100には、プリントエンジン5を構成する印刷ヘッド10や紙送り機構11およびキャリッジ機構12が設けられている。印刷ヘッド10は、カートリッジ装着部18に一体に設けられて、いわゆるキャリッジ101を構成している。印刷ヘッド10は、インクジェット式のヘッドであり、印刷用紙105と対向する面、この図に示す例ではキャリッジ101の下面に取り付けられている。印刷ヘッド10への印字データの転送は、フレキシブルフラットケーブル(FFC)300を介して行なわれる。キャリッジ機構12は、キャリッジモータ103およびタイミングベルト102を備える。キャリッジモータ103は、タイミングベルト102を介してキャリッジ101を駆動する。キャリッジ101は、ガイド部材104に案内されており、キャリッジモータ103の正逆回転により、印刷用紙105の紙幅方向に往復動する。印刷用紙105の搬送を行なう紙送り機構11は、紙送りローラ106と紙送りモータ116とから構成されている。   Next, a basic configuration of the printer 1 will be described. As shown in FIGS. 2 and 3, the printer 1 houses a print controller 40 for controlling the control, a print engine 5 for executing ink ejection and the like in a printer main body 100. The printer body 100 includes a print head 10, a paper feed mechanism 11, and a carriage mechanism 12 that constitute the print engine 5. The print head 10 is provided integrally with the cartridge mounting section 18 to form a so-called carriage 101. The print head 10 is an ink-jet type head, and is attached to a surface facing the print paper 105, in the example shown in FIG. The transfer of print data to the print head 10 is performed via a flexible flat cable (FFC) 300. The carriage mechanism 12 includes a carriage motor 103 and a timing belt 102. The carriage motor 103 drives the carriage 101 via the timing belt 102. The carriage 101 is guided by a guide member 104, and reciprocates in the paper width direction of the printing paper 105 by forward and reverse rotation of the carriage motor 103. The paper feed mechanism 11 that conveys the printing paper 105 includes a paper feed roller 106 and a paper feed motor 116.

キャリッジ101のカートリッジ装着部18には後述するインクカートリッジ107K,107Fが装着され、印刷ヘッド10は、このインクカートリッジ107K,107Fからインクの補給を受け、キャリッジ101の移動に合わせて印刷用紙105にインク滴を吐出してドットを形成し、印刷用紙105に画像や文字を印刷する。   Ink cartridges 107K and 107F, which will be described later, are mounted on the cartridge mounting portion 18 of the carriage 101. The print head 10 receives replenishment of ink from the ink cartridges 107K and 107F. Drops are ejected to form dots, and images and characters are printed on the printing paper 105.

各インクカートリッジ107K,Fには、染料もしくは顔料を溶媒に溶解もしくは分散させたインクが充填されている。インクが充填されている空間をインク収容室と呼ぶ。インクカートリッジ107Kのインク収容室117Kには、黒(K)のインクが充填されている。また、インクカートリッジ107Fには、複数のインク収容室107C、107LC、107M、107LM、107Yがそれぞれ独立して形成されている。これらのインク収容室107C、107LC、107M、107LM、107Yには、シアン(C)、ライトシアン(LC)、マゼンダ(M)、ライトマゼンダ(LM)、イエロー(Y)のインクがそれぞれ充填されている。したがって、印刷ヘッド10には、各色のインクがインク収容室107C、107LC、107M、107LM、107Yからそれぞれ供給される。これらの各インクはそれぞれ印刷ヘッド10から各色のインク滴として吐出されてカラー印刷が実現される。   Each of the ink cartridges 107K and 107F is filled with ink in which a dye or pigment is dissolved or dispersed in a solvent. The space filled with ink is called an ink storage chamber. The ink storage chamber 117K of the ink cartridge 107K is filled with black (K) ink. In the ink cartridge 107F, a plurality of ink storage chambers 107C, 107LC, 107M, 107LM, and 107Y are independently formed. These ink chambers 107C, 107LC, 107M, 107LM, and 107Y are filled with cyan (C), light cyan (LC), magenta (M), light magenta (LM), and yellow (Y) inks, respectively. . Therefore, the ink of each color is supplied to the print head 10 from the ink storage chambers 107C, 107LC, 107M, 107LM, and 107Y, respectively. Each of these inks is ejected from the print head 10 as an ink droplet of each color, thereby realizing color printing.

プリンタ1の本体端部には、キャッピング装置108とワイピング装置109とが配置されている。この本体端部は、印刷が行なわれない非印刷領域である。キャッピング装置108は、印刷処理の休止中に印刷ヘッド10のノズル開口を封止するためのものである。このキャッピング装置108によって、印刷処理の休止中におけるインクの溶媒成分の揮発を防止している。溶媒成分の揮発を防止することで、インク粘度の増大やインク膜の形成を抑制することができる。印刷処理の休止中にキャッピングすることにより、ノズルの目詰まりを防止することができる。また、キャッピング装置108は、フラッシング動作により印刷ヘッド10から吐出されるインク滴を受ける機能も有する。フラッシング動作とは、印刷処理実行中であってキャリッジ101が本体端部に至ったときに行なわれるインク吐出動作であり、ノズルの目詰まり防止動作の一つである。キャッピング装置108の近傍にはワイピング装置109が配置され、このワイピング装置109は、印刷ヘッド10の表面をブレードなどでワイピングすることにより、印刷ヘッド10の表面に付着したインク滓や紙粉を拭き取る。なお、これらの動作の他に、実施例のプリンタ1では、気泡混入による異常発生時等に、ノズルに対する吸引動作も行なっている。吸引動作は、キャッピング装置108を印刷ヘッド10に圧接させてノズル開口を密閉し、図示しない吸引ポンプを動作させて、キャッピング装置108に連通された通路を負圧とし、印刷ヘッド10のノズルからインクを吸引する動作である。これらのフラッシング動作、ワイピング動作、吸引動作を含めて、ヘッドクリーニングと呼ぶ。なお、ワイピングは、ブレードを立設しておき、キャリッジ101の往復動により、毎回自動的に行なわれる構成とも取り得るので、そうした場合には、積極的なヘッドクリーニング動作には、フラッシング動作と吸引動作だけが含まれる。   A capping device 108 and a wiping device 109 are arranged at an end of the main body of the printer 1. This end of the main body is a non-printing area where printing is not performed. The capping device 108 is for sealing the nozzle openings of the print head 10 during the suspension of the printing process. The capping device 108 prevents the solvent component of the ink from volatilizing during the suspension of the printing process. By preventing the volatilization of the solvent component, an increase in the viscosity of the ink and the formation of an ink film can be suppressed. By performing capping during the suspension of the printing process, nozzle clogging can be prevented. Further, the capping device 108 has a function of receiving ink droplets ejected from the print head 10 by a flushing operation. The flushing operation is an ink discharging operation performed when the carriage 101 reaches the end of the main body during the printing process, and is one of nozzle clogging preventing operations. A wiping device 109 is disposed near the capping device 108. The wiping device 109 wipes the ink residue and paper dust attached to the surface of the print head 10 by wiping the surface of the print head 10 with a blade or the like. In addition, in addition to these operations, the printer 1 of the embodiment also performs a suction operation on the nozzles when an abnormality occurs due to air bubbles. In the suction operation, the capping device 108 is pressed against the print head 10 to close the nozzle opening, and a suction pump (not shown) is operated to make the passage communicating with the capping device 108 a negative pressure. This is the operation of sucking. The flushing operation, the wiping operation, and the suction operation are referred to as head cleaning. The wiping can be performed with a blade standing upright and automatically performed every time by reciprocation of the carriage 101. In such a case, the flushing operation and the suction operation are required for the active head cleaning operation. Only actions are included.

次に、プリンタ1の制御回路について説明する。図2は、本実施例のインクジェットプリンタ1の機能ブロック図である。プリントコントローラ40は、コンピュータからの印刷データなどを受信するインターフェース43と、印刷データなどの各種データの記憶を行なうRAM44と、各種データ処理を行なうためのプログラムなどを記憶したROM45と、CPUなどからなる制御部46と、発振回路47と、印刷ヘッド10への駆動信号COMを発生させる駆動信号発生回路48と、ドットパターンデータに展開された印刷データおよび駆動信号をプリントエンジン5に送信するなどの機能を果たすパラレル入出力インターフェース49とを備えている。   Next, a control circuit of the printer 1 will be described. FIG. 2 is a functional block diagram of the inkjet printer 1 of the present embodiment. The print controller 40 includes an interface 43 that receives print data from a computer, a RAM 44 that stores various data such as print data, a ROM 45 that stores a program for performing various data processing, a CPU, and the like. A control unit 46, an oscillation circuit 47, a drive signal generation circuit 48 for generating a drive signal COM to the print head 10, and a function of transmitting print data and drive signals developed into dot pattern data to the print engine 5, and the like. And a parallel input / output interface 49 which performs the following.

また、プリントコントローラ40にはパラレル入出力インターフェース49を介してパネルスイッチ92および電源91の制御線も接続されている。パネルスイッチ92には、電源の入り切りを指示するパワースイッチ92a、インクカートリッジの交換を指示するカートリッジスイッチ92b、および強制的な印刷ヘッド10のクリーニングを指示するクリーニングスイッチ92cが設けられている。パネルスイッチ92のパワースイッチ92aが操作されて電源オフの指示が入力されると、マスク不可能な割込要求(NMI)が発生する。この割込要求NMIが生じると、プリントコントローラ40は、予め定めた割込処理に直ちに移行し、電源91等の周辺回路にパワーダウン命令を出力する。電源91は、この信号を受けて、待機状態に入る。待機状態では、電源91は、主電源の供給は停止するものの、電力供給線(図示しない)を介して待機電力をプリントコントローラ40に供給する。すなわち、パネルスイッチ92を介して実行される通常の電源オフ操作ではプリントコントローラ40に対する電力供給は完全には遮断されない。   Further, a control line of a panel switch 92 and a power supply 91 are also connected to the print controller 40 via a parallel input / output interface 49. The panel switch 92 is provided with a power switch 92a for instructing power on / off, a cartridge switch 92b for instructing replacement of the ink cartridge, and a cleaning switch 92c for instructing forcible cleaning of the print head 10. When the power switch 92a of the panel switch 92 is operated to input a power-off instruction, a non-maskable interrupt request (NMI) is generated. When the interrupt request NMI occurs, the print controller 40 immediately shifts to a predetermined interrupt process and outputs a power down command to peripheral circuits such as the power supply 91. The power supply 91 receives the signal and enters a standby state. In the standby state, the power supply 91 supplies the standby power to the print controller 40 via a power supply line (not shown), although the supply of the main power is stopped. That is, the power supply to the print controller 40 is not completely shut off by the normal power-off operation performed via the panel switch 92.

また、マスク不可能な割込要求(NMI)は、パネルスイッチ92のカートリッジスイッチ92bを操作して、インクカートリッジの交換を指示した場合にも出力される。更に、この割込要求は、電源プラグがコンセントから抜かれた場合にも発生する。これらの割込要求が発生したとき、プリントコントローラ40は、後述する割込処理ルーチンを実行するが、割込処理ルーチンの中では、パネルスイッチ92のスイッチの操作によりこの割込要求が発生した場合と、電源の強制的な遮断により発生した場合とは、識別可能である。従って、割込要求(NMI)が生じた場合でも、後述するように、要因により、異なる処理を実現することができる。なお、電源91にはプラグがコンセントから抜かれた後も所定時間(例えば、0.3秒)に亘り電力供給を実現するために、補償電源装置(例えば、キャパシタ)が備えられている。   The non-maskable interrupt request (NMI) is also output when the user operates the cartridge switch 92b of the panel switch 92 to instruct replacement of the ink cartridge. Further, this interrupt request also occurs when the power plug is unplugged from the outlet. When these interrupt requests are generated, the print controller 40 executes an interrupt processing routine described later. In the interrupt processing routine, when the interrupt request is generated by operating the panel switch 92, It can be distinguished from the case where the power supply is forcibly cut off. Therefore, even when an interrupt request (NMI) occurs, different processing can be realized depending on factors as described later. Note that the power supply 91 is provided with a compensating power supply (for example, a capacitor) in order to realize power supply for a predetermined time (for example, 0.3 seconds) even after the plug is unplugged from the outlet.

プリントコントローラ40には、この他、キャリッジ機構12上(図1参照)に搭載した黒用のインクカートリッジ107Kおよびカラー用のインクカートリッジ107Fに関する情報を記憶しておく本体側メモリとして、EEPROM90が搭載されている。EEPROM90は、詳しくは後述するが、黒用のインクカートリッジ107Kおよびカラー用のインクカートリッジ107Fにおけるインク量に関連する情報(インク残量またはインク消費量)等の所定情報を記憶する。またさらに、プリントコントローラ40には、制御部46がアクセス(読み出し/書き込み)を所望する記憶素子80(後述)のメモリセル81(後述)のアドレスをクロック数に変換するアドレスデコーダ95が備えられている。アドレスデコーダ95は、プリントコントローラ40内の制御部46は、通常8ピット1バイトでデータを扱っているのに対して、インクカートリッジ107K,107Fに内蔵された記憶素子80のメモリセル81は、読み書き用のクロックに同期してシリアルアクセスされるため、アクセスしようとするアドレスを変換するのに用いられる。   The print controller 40 further includes an EEPROM 90 as a main body side memory for storing information regarding the black ink cartridge 107K and the color ink cartridge 107F mounted on the carriage mechanism 12 (see FIG. 1). ing. As will be described in detail later, the EEPROM 90 stores predetermined information such as information (ink remaining amount or ink consumption amount) related to the amount of ink in the black ink cartridge 107K and the color ink cartridge 107F. Further, the print controller 40 is provided with an address decoder 95 for converting the address of the memory cell 81 (described later) of the storage element 80 (described later) to which the control unit 46 desires access (read / write) into the number of clocks. I have. In the address decoder 95, the control unit 46 in the print controller 40 normally handles data in 8 pits and 1 byte, whereas the memory cell 81 of the storage element 80 built in the ink cartridges 107K and 107F reads and writes. It is used to convert the address to be accessed because it is serially accessed in synchronization with the clock for use.

プリンタ1では、インクの消費量を計算により検出している。インク消費量の計算は、コンピュータPCのプリンタドライバが行なっても良いし、プリンタ1側で行なっても良い。インク消費量の計算は、次の二つの要素を勘案する。
(1)画像印刷時のインク消費量:印刷時のインク消費量を正確に計算するためには、画像データを色変換や二値化処理し、インクドットの有無に置き換えた後、そのドットの重量と数、即ち、ノズル開口部23から吐出されるインク滴重量とインク滴の吐出回数、とを乗じる。もとより、画像データにおける各画素の濃度からもインク消費量を概算することは可能である。
(2)印刷ヘッド10クリーニングによるインク消費量:クリーニングによるインク消費量としては、フラッシングによるインク吐出量と吸引動作によるインク吸引量とがある。フラッシング動作は、動作自体は、通常のインク滴の吐出と変わらないので、(1)と同様に計算すればよい。吸引動作によるインク消費量は、ポンプの回転数や回転時間に対応づけて予め記憶しておけばよい。通常は、1回の吸引動作により消費されるインク量は予め計測され、記憶されている。
The printer 1 detects the ink consumption by calculation. The calculation of the ink consumption may be performed by the printer driver of the computer PC or may be performed by the printer 1. The calculation of the ink consumption considers the following two factors.
(1) Ink consumption during image printing: In order to accurately calculate the ink consumption during printing, image data is subjected to color conversion or binarization processing, and is replaced with the presence or absence of ink dots. The weight is multiplied by the number, that is, the weight of the ink droplet ejected from the nozzle opening 23 and the number of ejections of the ink droplet. Of course, it is possible to roughly estimate the ink consumption from the density of each pixel in the image data.
(2) Ink consumption due to cleaning of the print head 10: The ink consumption due to cleaning includes an ink ejection amount due to flushing and an ink suction amount due to a suction operation. The flushing operation itself is the same as the normal ink droplet ejection, and therefore may be calculated in the same manner as (1). The amount of ink consumed by the suction operation may be stored in advance in association with the number of rotations and the rotation time of the pump. Normally, the amount of ink consumed by one suction operation is measured and stored in advance.

こうした求めたインク消費量を印刷動作開始前のインク残量から減じることにより、現在のインク残量を求めることができる。このようなインク残量の算出は、EEPROM90に記憶されているデータなどを用いながら、ROM45などに格納されているプログラムに基づいて、制御部46が行なう。   The current ink remaining amount can be obtained by subtracting the obtained ink consumption amount from the ink remaining amount before the start of the printing operation. The calculation of the ink remaining amount is performed by the control unit 46 based on a program stored in the ROM 45 or the like while using data or the like stored in the EEPROM 90.

本実施例では、上述したように、色変換や二値化の処理は、コンピュータPC側のプリンタドライバが行なっている。従って、プリンタ1は、二値化済みのデータ、即ち、各インクについてのドットの形成/非形成のデータを受け取る。プリンタ1は、このデータに基づいて、ドットの数と1ドット当たりのインク重量(インク滴重量)とを乗算して、インク消費量を求めている。   In this embodiment, as described above, the color conversion and binarization processes are performed by the printer driver on the computer PC side. Therefore, the printer 1 receives the binarized data, that is, data of dot formation / non-formation for each ink. The printer 1 calculates the ink consumption by multiplying the number of dots by the ink weight per dot (ink drop weight) based on this data.

実施例のプリンタ1では、上述したように、二値化済みのデータを受け取っているが、このデータの配列と実際の印刷ヘッド10のノズルの配列とは一致していない。そこで、制御部46は、RAM44内を受信バッファ44A,中間バッファ44B,出力バッファ44Cに分けて、ドットデータの配列の組み替え処理を行なっている。なお、色変換や二値化の処理をプリンタ1側で行なうという制御も可能である。こうした場合には、プリンタ1は、コンピュータPCなどから送られた多値階調情報を含む印刷データを、インターフェース43を介して印刷装置内部の受信バッファ44Aに保持し、以下の処理を行なう。受信バッファ44Aに保持された印刷データは、コマンド解析が行なわれてから中間バッファ44Bへ送られる。中間バッファ44B内では、制御部46によって中間コードに変換された中間形式としての印刷データが保持され、各文字の印刷位置、修飾の種類、大きさ、フォントのアドレスなどが付加される処理が制御部46によって実行される。次に、制御部46は、中間バッファ44B内の印刷データを解析し、階調データをデコード化した後の2値化されたドットパターンデータを出力バッファ44Cに展開し記憶させる。   As described above, the printer 1 of the embodiment receives the binarized data, but the arrangement of the data does not match the actual arrangement of the nozzles of the print head 10. Therefore, the control unit 46 divides the inside of the RAM 44 into a reception buffer 44A, an intermediate buffer 44B, and an output buffer 44C, and performs a process of rearranging the arrangement of dot data. It is also possible to perform control for performing color conversion and binarization processing on the printer 1 side. In such a case, the printer 1 holds the print data including the multi-value gradation information sent from the computer PC or the like in the reception buffer 44A inside the printing apparatus via the interface 43, and performs the following processing. The print data held in the reception buffer 44A is sent to the intermediate buffer 44B after the command analysis. The intermediate buffer 44B holds print data as an intermediate format converted into an intermediate code by the control unit 46, and controls processing for adding a print position, a type of modification, a size, a font address, and the like of each character. This is performed by the unit 46. Next, the control unit 46 analyzes the print data in the intermediate buffer 44B, develops and stores the binarized dot pattern data obtained by decoding the gradation data in the output buffer 44C.

いずれの場合でも、印刷ヘッド10の1スキャン分に相当するドットパターンデータが得られると、このドットパターンデータは、パラレル入出力インターフェース49を介して印刷ヘッド10にシリアル転送される。出力バッファ44Cから1スキャン分に相当するドットパターンデータが出力されると、中間バッファ44Bの内容が消去されて、次の変換処理が行なわれる。   In any case, when dot pattern data corresponding to one scan of the print head 10 is obtained, the dot pattern data is serially transferred to the print head 10 via the parallel input / output interface 49. When dot pattern data corresponding to one scan is output from the output buffer 44C, the contents of the intermediate buffer 44B are deleted, and the next conversion process is performed.

印刷ヘッド10は、受け取ったドットパターンデータを印刷媒体上に形成すべく、所定のタイミングで各ノズル開口部23から印刷媒体上に向けてインク滴を吐出させる。駆動信号発生回路48で生成された駆動信号COMは、パラレル入出力インターフェース49を介して印刷ヘッド10の素子駆動回路50に出力される。印刷ヘッド10には、ノズル開口部23に連通する圧力発生室32および圧電振動子17(圧力発生素子)がノズル開口部23の数だけ形成されており、素子駆動回路50から所定の圧電振動子17に駆動信号COMが与えられると、圧力発生室32が収縮し、ノズル開口部23からインク滴が吐出される。   The print head 10 ejects ink droplets from each nozzle opening 23 toward the print medium at a predetermined timing so as to form the received dot pattern data on the print medium. The drive signal COM generated by the drive signal generation circuit 48 is output to the element drive circuit 50 of the print head 10 via the parallel input / output interface 49. In the print head 10, the pressure generating chambers 32 and the piezoelectric vibrators 17 (pressure generating elements) communicating with the nozzle openings 23 are formed by the number of the nozzle openings 23. When the drive signal COM is supplied to the pressure generating chamber 17, the pressure generating chamber 32 contracts and an ink droplet is ejected from the nozzle opening 23.

印刷ヘッド10におけるノズル開口部23のレイアウトの一例を、図3に示す。図示するように、印刷ヘッド10には、黒(K)、シアン(C)、ライトシアン(LC)、マゼンダ(M)、ライトマゼンダ(LM)、イエロー(Y)に対応するノズル開口部23が、各色毎に2列ずつ、かつノズル配置が千鳥状になるように形成されている。   FIG. 3 shows an example of the layout of the nozzle openings 23 in the print head 10. As shown in the drawing, the print head 10 has nozzle openings 23 corresponding to black (K), cyan (C), light cyan (LC), magenta (M), light magenta (LM), and yellow (Y). The nozzles are formed in two rows for each color and in a staggered nozzle arrangement.

(インクカートリッジおよびカートリッジ装着部の構成)
このように構成したプリンタ1において、インクカートリッジ107K、107Fの基本的な構造は共通する。そこで、図4および図5を参照して、黒用のインクカートリッジ107Kを例にインクカートリッジの構造、およびこのカートリッジをプリンタ本体に装着するための構造を説明する。
(Configuration of ink cartridge and cartridge mounting section)
In the printer 1 configured as described above, the basic structures of the ink cartridges 107K and 107F are common. 4 and 5, the structure of the ink cartridge 107K for black and the structure for mounting the cartridge in the printer body will be described.

図4は、インクカートリッジおよびプリンタ本体のカートリッジ装着部の概略構造を示す斜視図である。図5は、このインクカートリッジの内部構造、キャリッジ上のカートリッジ装着部の内部構造、およびカートリッジ装着部にカートリッジを装着する様子を示す断面図である。   FIG. 4 is a perspective view showing a schematic structure of an ink cartridge and a cartridge mounting portion of the printer main body. FIG. 5 is a cross-sectional view showing the internal structure of the ink cartridge, the internal structure of the cartridge mounting portion on the carriage, and how the cartridge is mounted on the cartridge mounting portion.

図4(A)において、インクカートリッジ107Kは、内部にインクを収容するインク収容部117Kを構成する合成樹脂製のカートリッジ本体171と、このカートリッジ本体171の側枠部172に内蔵された記憶素子(不揮発性メモリ)80とを備えている。この記憶素子80は、電気的に記憶内容を消去して書き換え可能であり、かつ電源の供給が失われて内容を保持するいわゆるEEPROMである。但し、この記憶素子80におけるデータの書き換え回数は、1万回程度であり、プリントコントローラ40に内蔵されたEEPROM90の書き込み許容回数と比べると、数分の1以下となっている。その分、記憶素子80のコストはきわめて低い。この記憶素子80に対しては、インクカートリッジ107Kをプリンタ本体100のカートリッジ装着部18に装着した状態で、プリンタ1のプリントコントローラ40との間で各種のデータの授受が可能である。本実施例では、この記憶素子80は、インクカートリッジ107Kの側枠部172に対して下側が開放状態にある凹部173に装着されているので、複数の接続端子174のみが露出しているが、全体を露出して設けてもよい。もとより、全体を埋設し、端子部を別体に設けても良い。   In FIG. 4A, an ink cartridge 107K includes a cartridge body 171 made of a synthetic resin that forms an ink storage portion 117K that stores ink therein, and a storage element (built in a side frame portion 172 of the cartridge body 171). A non-volatile memory) 80. The storage element 80 is a so-called EEPROM that is capable of electrically erasing and rewriting stored contents, and retains the contents when power supply is lost. However, the number of times data is rewritten in the storage element 80 is about 10,000 times, which is a fraction of the number of times the EEPROM 90 incorporated in the print controller 40 allows writing. Accordingly, the cost of the storage element 80 is extremely low. With the storage element 80, various data can be exchanged with the print controller 40 of the printer 1 in a state where the ink cartridge 107K is mounted on the cartridge mounting section 18 of the printer main body 100. In this embodiment, since the storage element 80 is mounted in the concave portion 173 whose lower side is open with respect to the side frame portion 172 of the ink cartridge 107K, only the plurality of connection terminals 174 are exposed. The whole may be exposed. Of course, the whole may be buried and the terminal portion may be provided separately.

図4(B)に示すように、カートリッジ装着部18の底部187には、インク供給用の針181が上向きに配置されている。この針181の周りは、凹部183として形成されており、カートリッジ装着部18にインクカートリッジ107Kを装着すると、インクカートリッジ107Kの底部に凸形状に形成されているインク供給部175が、この凹部183に嵌め合わされる。この凹部183の内壁には、カートリッジガイド182が3箇所に形成されている。更に、カートリッジ装着部18の内壁184には、コネクタ186が配置されている。このコネクタ186は、複数の電極185を有する。電極185は、カートリッジ装着部18にインクカートリッジ107Kが装着されると、記憶素子80の複数の接続端子174のそれぞれと接触し、電気的な接続を実現する。   As shown in FIG. 4B, an ink supply needle 181 is arranged upward at the bottom 187 of the cartridge mounting section 18. The periphery of the needle 181 is formed as a concave portion 183. When the ink cartridge 107 </ b> K is mounted on the cartridge mounting portion 18, an ink supply portion 175 formed in a convex shape at the bottom of the ink cartridge 107 </ b> K is formed in the concave portion 183. Be fitted. Three cartridge guides 182 are formed on the inner wall of the concave portion 183. Further, a connector 186 is arranged on the inner wall 184 of the cartridge mounting section 18. The connector 186 has a plurality of electrodes 185. When the ink cartridge 107 </ b> K is mounted on the cartridge mounting portion 18, the electrode 185 comes into contact with each of the plurality of connection terminals 174 of the storage element 80 to realize electrical connection.

次に、カートリッジ装着部18に対してインクカートリッジ107Kを装着する手順を説明する。パネルスイッチ92を操作してインクカートリッジ107Kの交換が指示されると、キャリッジ101は、インクカートリッジ107Kを交換可能な位置まで移動される。交換時には、使用済みのインクカートリッジ107Kをまず取り外す。カートリッジ装着部18の後壁部188には、支持軸191を介して固定レバー192が取り付けられており、この固定レバー192を上方に引き上げると、使用済みのインクカートリッジ107Kを取り外すことができる。次に、新しいインクカートリッジ107Kをカートリッジ装着部18に差し入れる。その上で、固定レバー192をインクカートリッジ107Kに被さるように倒すと、インクカートリッジ107Kが下方に押されてインク供給部175が凹部183に嵌合するとともに、針181がインク供給部175に突き刺さってインクの供給が可能になる。さらに、固定レバー192を倒すと、固定レバー192の先端に形成した係止部193が、カートリッジ装着部18に形成された係合具189に係合し、インクカートリッジ107Kは、カートリッジ装着部18にしっかりと固定される。この状態で、インクカートリッジ107Kの記憶素子80の複数の接続端子174と、カートリッジ装着部18の複数の電極185とがそれぞれ電気的に接続し、プリンタ本体100と記憶素子80の間においてデータの授受が可能となる。交換が完了し、使用者が、パネルスイッチ92を再度操作すると、キャリッジ101は、初期位置まで戻り、印刷可能状態となる。   Next, a procedure for mounting the ink cartridge 107K to the cartridge mounting section 18 will be described. When the panel switch 92 is operated to instruct replacement of the ink cartridge 107K, the carriage 101 is moved to a position where the ink cartridge 107K can be replaced. At the time of replacement, the used ink cartridge 107K is first removed. A fixed lever 192 is attached to the rear wall portion 188 of the cartridge mounting portion 18 via a support shaft 191. When the fixed lever 192 is pulled up, the used ink cartridge 107K can be removed. Next, a new ink cartridge 107K is inserted into the cartridge mounting portion 18. Then, when the fixing lever 192 is tilted down so as to cover the ink cartridge 107K, the ink cartridge 107K is pushed downward, the ink supply portion 175 is fitted into the concave portion 183, and the needle 181 pierces the ink supply portion 175. Supply of ink becomes possible. Further, when the fixing lever 192 is tilted, the locking portion 193 formed at the tip of the fixing lever 192 engages with the engaging tool 189 formed on the cartridge mounting portion 18, and the ink cartridge 107 </ b> K Securely fixed. In this state, the plurality of connection terminals 174 of the storage element 80 of the ink cartridge 107K and the plurality of electrodes 185 of the cartridge mounting portion 18 are electrically connected, and data transmission and reception between the printer main body 100 and the storage element 80 are performed. Becomes possible. When the replacement is completed and the user operates the panel switch 92 again, the carriage 101 returns to the initial position and is in a printable state.

インクカートリッジ107Kの構造は、基本的にはカラー用のインクカートリッジ107Fでも同様であるため、その説明を省略する。ただし、カラー用のインクカートリッジ107Fでは、5色分のインクが各インク収容室に充填され、かつ、これらのインクはそれぞれ別々の経路を辿って印刷ヘッド10に供給される。したがって、カラー用のインクカートリッジ107Fでは、インク供給部175がインクの色数分だけ形成されている。なお、インクカートリッジ107Fでは、5色分のインクが収容されているが、そこに内蔵されている記憶素子80は1つだけであり、この1つの記憶素子80に、インクカートリッジ107Fの情報および各色のインクの情報が一括して記憶される。   The structure of the ink cartridge 107K is basically the same as that of the color ink cartridge 107F, and a description thereof will be omitted. However, in the color ink cartridge 107F, the inks for the five colors are filled in the respective ink storage chambers, and these inks are supplied to the print head 10 along different paths. Therefore, in the color ink cartridge 107F, the ink supply units 175 are formed by the number of ink colors. Note that the ink cartridge 107F contains ink for five colors, but only one storage element 80 is contained therein, and this one storage element 80 stores information of the ink cartridge 107F and each color. Are collectively stored.

(記憶素子80の構成)
図6は、本形態のプリンタに用いたインクカートリッジ107K、107Fに内蔵の記憶素子80の構成を示すブロック図である。図7は、メモリセル81へのデータの書き込みの様子を示す説明図である。
(Configuration of Storage Element 80)
FIG. 6 is a block diagram showing the configuration of the storage element 80 built in the ink cartridges 107K and 107F used in the printer of this embodiment. FIG. 7 is an explanatory diagram showing how data is written to the memory cell 81.

本実施例において、インクカートリッジ107K、107Fの記憶素子80は、図6に示すように、メモリセル81、リード・ライト制御部82、およびアドレスカウンタ83を備える。リード・ライト制御部82は、メモリセル81でのデータの読み書きを制御する回路である。一方、アドレスカウンタ83は、クロック信号CLKに基づいてカウントアップされるカウンタであり、その出力はメモリセル81に対するアドレスとなっている。   In this embodiment, the storage element 80 of each of the ink cartridges 107K and 107F includes a memory cell 81, a read / write control unit 82, and an address counter 83, as shown in FIG. The read / write control unit 82 is a circuit that controls reading and writing of data in the memory cell 81. On the other hand, the address counter 83 is a counter that counts up based on the clock signal CLK, and its output is an address for the memory cell 81.

実際の書き込み動作について、図7を用いて説明する。図7(A)、(B)は本実施例のプリンタ1において、プリントコントローラ40からインクカートリッジ107K、107Fに内蔵の記憶素子80にインク残量を書き込む際の処理を示すフローチャート、およびこの処理を行なう際のタイミングチャートである。   The actual write operation will be described with reference to FIG. FIGS. 7A and 7B are flowcharts showing processing when writing the remaining ink amount from the print controller 40 to the storage element 80 built in the ink cartridges 107K and 107F in the printer 1 of this embodiment. It is a timing chart when performing.

図示するように、まず、プリントコントローラ40の制御部46は、記憶素子80をイネーブル状態にするためのチップセレクト信号CSをハイレベルとする(ステップST21)。このチップセレクト信号CSがロウレベルになると、アドレスカウンタ83のカウント値は0にリセットされる。次に、データを書き込むアドレスを指定するために必要な数のクロック信号CLKを発生させる(ステップST22)。このとき、必要なクロック信号の数を決定するのに、プリントコントローラ40に内蔵されたアドレスデコーダ95を用いる。所定数のクロック信号CLKが出力されると、記憶素子80内のアドレスカウンタ83は、カウントアップされる。この間、リード/ライト信号W/Rは、ロウレベルに保持されているので、メモリセル81に対してはデータの読み出しが指示されていることになり、クロックに同期してダミーデータの読み出しが行なわれている。   As shown in the figure, first, the control unit 46 of the print controller 40 sets the chip select signal CS for enabling the storage element 80 to the high level (step ST21). When the chip select signal CS goes low, the count value of the address counter 83 is reset to zero. Next, a required number of clock signals CLK for designating an address to which data is written are generated (step ST22). At this time, the address decoder 95 built in the print controller 40 is used to determine the required number of clock signals. When a predetermined number of clock signals CLK are output, address counter 83 in storage element 80 is counted up. During this time, since the read / write signal W / R is held at the low level, data reading is instructed for the memory cell 81, and dummy data is read in synchronization with the clock. ing.

このようにして所定の書き込みアドレスまでカウントアップさせた後、書き込みの処理を行なう(ステップST23)。この書き込みの処理は、リード/ライト信号W/Rをハイレベルに切り換え、データ(I/O)に1ビットのデータを出力し、データが確立した時点でクロック信号CLKをハイアクティブに切り換えることにより行なわれる。記憶素子80は、ライト/リード信号W/Rがハイレベルの時、クロック信号CLKの立ち上がりに同期して、データ端子I/OのデータDATAを、メモリセル81に書き込むのである。なお、図7(B)では5つ目のクロック信号CLKから、この信号CLKに同期して書き込みが実行されているが、これは一般的な書き込みを説明するものであり、必要があれば、一つ目のクロック信号CLKからでも、クロック信号CLKに同期して、インク残量などの必要なデータの書き込みが実行される。   After counting up to the predetermined write address in this way, write processing is performed (step ST23). This writing process is performed by switching the read / write signal W / R to high level, outputting 1-bit data as data (I / O), and switching the clock signal CLK to high active when the data is established. Done. When the write / read signal W / R is at a high level, the storage element 80 writes the data DATA at the data terminal I / O into the memory cell 81 in synchronization with the rise of the clock signal CLK. In FIG. 7B, the writing is performed in synchronization with the fifth clock signal CLK from the fifth clock signal CLK. However, this is for explaining general writing, and if necessary, Even from the first clock signal CLK, necessary data such as the remaining ink amount is written in synchronization with the clock signal CLK.

こうして書き込みが行なわれる記憶素子80内のデータ配列について説明する。図8,図9は、それぞれ、本実施例のプリンタ1に用いた黒用およびカラー用のインクカートリッジ107K,107Fに内蔵の記憶素子のデータ配列を示す説明図である。更に、図10は、プリンタ本体に内蔵のEEPROM90におけるデータ配列を示す説明図である。黒用のインクカートリッジ107Kに備えられている記憶素子80のメモリセル81は、図8に示すように、読み出し専用データを記憶する第1の記憶領域750と、書き換え可能なデータを記憶する第2の記憶領域760とを備えている。プリンタ本体100は、第1の記憶領域750に格納されているデータに対しては読み出しのみが可能であり、第2の記憶領域760に格納されているデータに対しては読み出しおよび書き込みの双方を実行し得る。第2の記憶領域760は、特別な処理を行なわずにアクセスする際、即ちデフォルトのままのアクセス際に、第1の記憶領域750よりも先にアクセスされるアドレスに配置されている。換言すれば、第2の記憶領域760は、第1の記憶領域750よりも低いアドレスに配置されている。なお、本実施例においては、「低いアドレス」とは「先頭側のアドレス」を意味するものとする。   A data array in the storage element 80 to which writing is performed in this manner will be described. FIGS. 8 and 9 are explanatory diagrams showing the data arrays of the storage elements built in the black and color ink cartridges 107K and 107F used in the printer 1 of the present embodiment, respectively. FIG. 10 is an explanatory diagram showing a data array in an EEPROM 90 built in the printer main body. As shown in FIG. 8, the memory cell 81 of the storage element 80 provided in the black ink cartridge 107K has a first storage area 750 for storing read-only data and a second storage area 750 for storing rewritable data. Storage area 760. The printer body 100 can only read data stored in the first storage area 750, and can perform both reading and writing for data stored in the second storage area 760. You can do it. The second storage area 760 is arranged at an address accessed earlier than the first storage area 750 when accessing without performing any special processing, that is, when accessing with the default. In other words, the second storage area 760 is located at a lower address than the first storage area 750. In the present embodiment, “low address” means “top address”.

ここで、第2の記憶領域760には、先頭領域700にインクカートリッジの取付回数を示すデータが記憶されており、これに続く各記憶領域701、702には、それぞれ第1の黒インク残量データおよび第2の黒インク残量データが記憶される。黒インク残量データが2つの記憶領域701、702に割り当てられているのは、これらの領域に対して交互にデータ書き換えを行なうためである。したがって、最後に書き換えられた黒インク残量データが記憶領域701に記憶されているデータであれば、記憶領域702に記憶されている黒インク残量データはその一回前のデータであり、次回の書き換えは、この記憶領域702に対して行なわれる。黒インク残量データの記憶領域701,702は、共にその記憶容量は、1バイト(8ビット)分である。なお、黒インクの残量データは、インクカートリッジの取付回数を示すデータが記憶される領域より前の領域に割り当て、後述する電源断時などに、最初にアクセスされるようにしておくことも、好適である。   Here, in the second storage area 760, data indicating the number of times the ink cartridge has been attached is stored in the head area 700, and in the subsequent storage areas 701 and 702, the first black ink remaining amount is respectively stored. The data and the second black ink remaining amount data are stored. The reason why the black ink remaining amount data is assigned to the two storage areas 701 and 702 is that data is rewritten alternately in these areas. Therefore, if the last rewritten black ink remaining amount data is data stored in the storage area 701, the black ink remaining amount data stored in the storage area 702 is the data immediately before that, and the next time. Is rewritten to the storage area 702. Each of the storage areas 701 and 702 of the black ink remaining amount data has a storage capacity of 1 byte (8 bits). It should be noted that the remaining amount data of the black ink may be allocated to an area before the area in which the data indicating the number of times the ink cartridge has been attached is stored, and may be accessed first when the power is turned off, which will be described later. It is suitable.

これに対して、第1の記憶領域750に記憶される読み出し専用データは、最初にアクセスされる順からいえば、各記憶領域711〜720に対して割り当てられたインクカートリッジ107Kの開封時期データ(年)、インクカートリッジ107Kの開封時期データ(月)、インクカートリッジ107Kのバージョンデータ、顔料系あるいは染料系などといったインクの種類データ、インクカートリッジ107Kの製造年データ、インクカートリッジ107Kの製造月データ、インクカートリッジ107Kの製造日データ、インクカートリッジ107Kの製造ラインデータ、インクカートリッジ107Kのシリアルナンバデータ、インクカートリッジ107Kが新品であるかリサイクル品であるかを示すリサイクル有無データである。このうち、インクカートリッジ107Kのシリアルナンバは、インクカートリッジ107K毎に固有の値が与えられており、いわゆる識別情報として利用できるデータである。なお、製造年月日および製造時間のデータを、1個のインクカートリッジ107Kが製造される時間と同程度またはこれより細かく記憶するものとすれば(例えば秒単位、あるいは1/10秒単位まで記憶するものとすれば)、製造年月日および時間を、識別情報として用いることも可能である。   On the other hand, the read-only data stored in the first storage area 750 includes the opening timing data of the ink cartridge 107 </ b> K assigned to each of the storage areas 711 to 720 in the order of first access. Year), opening time data (month) of ink cartridge 107K, version data of ink cartridge 107K, ink type data such as pigment or dye, manufacturing year data of ink cartridge 107K, manufacturing month data of ink cartridge 107K, ink These are the production date data of the cartridge 107K, the production line data of the ink cartridge 107K, the serial number data of the ink cartridge 107K, and the recycle data indicating whether the ink cartridge 107K is new or recycled. Among them, the serial number of the ink cartridge 107K is given a unique value for each ink cartridge 107K, and is data that can be used as so-called identification information. It should be noted that if the data of the manufacturing date and the manufacturing time is stored in the same order as or more finely than the time when one ink cartridge 107K is manufactured (for example, the data is stored in units of seconds or 1/10 seconds). ), The date of manufacture and time can be used as identification information.

カラー用のインクカートリッジ107Fに備えられている記憶素子80のメモリセル81も、図9に示すように、読み出し専用データを記憶する第1の記憶領域650と、書き換え可能なデータを記憶する第2の記憶領域660とを備えている。プリンタ本体100は、第1の記憶領域650に格納されているデータに対しては読み出しのみが可能であり、第2の記憶領域660に格納されているデータに対しては読み出しおよび書き込みの双方を実行し得る。第2の記憶領域660は、アクセス時に第1の記憶領域650よりも先にアクセスされるアドレスに配置されている。すなわち、第2の記憶領域660は、第1の記憶領域650よりも低いアドレスに配置されている。   As shown in FIG. 9, the memory cell 81 of the storage element 80 provided in the color ink cartridge 107F also has a first storage area 650 storing read-only data and a second storage area 650 storing rewritable data. Storage area 660. The printer main body 100 can only read data stored in the first storage area 650, and can perform both reading and writing for data stored in the second storage area 660. You can do it. The second storage area 660 is located at an address accessed earlier than the first storage area 650 at the time of access. That is, the second storage area 660 is located at a lower address than the first storage area 650.

ここで、第2の記憶領域660は、先頭領域600に取付回数を示すデータが記憶されており、これに続く各記憶領域601〜610に、第1のシアンインク残量データ、第2のシアンインク残量データ、第1のマゼンダインク残量データ、第2のマゼンダインク残量データ、第1のイエローインク残量データ、第2のイエローインク残量データ、第1のライトシアンインク残量データ、第2のライトシアンインク残量データ、第1のライトマゼンダインク残量データ、第2のライトマゼンダインク残量データが記憶される。各色のインク残量データが2つの記憶領域に割り当てられているのは、黒用のインクカートリッジ107Kと同様、これらの領域に対して交互にデータ書き換えを行なうためである。また、各インク色のデータに割り当てられた記憶容量も、黒インクカートリッジ107Kと同様、各1バイト(8ビット)である。カラーインクカートリッジ107Fの記憶素子80でも、黒インクカートリッジ107Kの記憶素子80と同様、各色インクの残量データを、インクカートリッジの取付回数を示すデータが記憶される領域より前の領域に割り当て、後述する電源断時などに、最初にアクセスされるようにしておくことも、好適である。   Here, in the second storage area 660, data indicating the number of times of attachment is stored in the head area 600, and in the subsequent storage areas 601 to 610, the first cyan ink remaining amount data and the second cyan ink Ink remaining amount data, first magenta ink remaining amount data, second magenta ink remaining amount data, first yellow ink remaining amount data, second yellow ink remaining amount data, first light cyan ink remaining amount data, Second light cyan ink remaining amount data, first light magenta ink remaining amount data, and second light magenta ink remaining amount data are stored. The reason why the ink remaining amount data of each color is allocated to the two storage areas is that, similarly to the black ink cartridge 107K, data is alternately rewritten to these areas. The storage capacity allocated to the data of each ink color is 1 byte (8 bits), similarly to the black ink cartridge 107K. In the storage element 80 of the color ink cartridge 107F, similarly to the storage element 80 of the black ink cartridge 107K, the remaining amount data of each color ink is allocated to an area before the area in which the data indicating the number of times the ink cartridge has been attached is stored. It is also preferable that the access is made first when the power is turned off.

これに対して、第1の記憶領域650に記憶される読み出し専用データは、黒用のインクカートリッジ107Kと同様、最初にアクセスされる順からいえば、各記憶領域611〜620に対して割り当てられたインクカートリッジ107Fの開封時期データ(年)、インクカートリッジ107Fの開封時期データ(月)、インクカートリッジ107Fのバージョンデータ、インクの種類データ、製造年データ、製造月データ、製造日データ、製造ラインデータ、シリアルナンバーデータ、リサイクル有無データである。これらのデータは、色にかかわらず共通であるため、各色間で共通のデータとして1種類のみ記憶されている。シリアルナンバデータが識別情報としても利用可能である点なども、黒インクカートリッジ107Kと同様である。   On the other hand, the read-only data stored in the first storage area 650 is allocated to each of the storage areas 611 to 620 in the order of first access, similarly to the black ink cartridge 107K. Opening data of ink cartridge 107F (year), opening time data of ink cartridge 107F (month), version data of ink cartridge 107F, ink type data, manufacturing year data, manufacturing month data, manufacturing date data, manufacturing line data , Serial number data, and recycling data. Since these data are common regardless of the color, only one type is stored as common data between the colors. This is similar to the black ink cartridge 107K in that the serial number data can also be used as identification information.

これらのデータはいずれも、インクカートリッジ107K、107Fがプリンタ本体100に装着された後、プリンタ本体100の電源がオンされたときに、プリントコントローラ40によってアクセスされ、利用される。場合によっては、本体100に内蔵のEEPROM90に記憶される。したがって、図10に示すように、このEEPROM90の記憶領域801〜835には、黒用のインクカートリッジ107Kおよびカラー用のインクカートリッジ107Fのインク残量など、各記憶素子80に記憶されるすべてのデータを記憶できるようになっている。   All of these data are accessed and used by the print controller 40 when the power of the printer main body 100 is turned on after the ink cartridges 107K and 107F are mounted on the printer main body 100. In some cases, the data is stored in an EEPROM 90 built in the main body 100. Therefore, as shown in FIG. 10, the storage areas 801 to 835 of the EEPROM 90 store all data stored in each storage element 80, such as the remaining ink amount of the black ink cartridge 107K and the color ink cartridge 107F. Can be stored.

このEEPROM90には、図10に示すように、黒インク残量データやその他のデータおよびカラーインク各色の残量データやその他のデータを記憶する領域が設けられている。これらのデータは、黒色インクカートリッジ107Kやカラーインクカートリッジ107F内の記憶素子80が記憶しているデータに対応しているが、インク残量データが各色32ビット(4バイト分)である点で異なる。   As shown in FIG. 10, the EEPROM 90 is provided with an area for storing black ink remaining amount data and other data and remaining amount data and other data of each color ink. These data correspond to the data stored in the storage element 80 in the black ink cartridge 107K and the color ink cartridge 107F, but differ in that the remaining ink data is 32 bits (4 bytes) for each color. .

(プリンタ1の動作)
次に図11〜図13を参照して電源オンから電源オフまでに本実施例に係るインクジェットプリンタ1が実行する基本動作および記憶素子80とEEPROM90への書き込み頻度の違いについて説明する。図11はインク残量を算出するために実行される処理を示すフローチャート、図12は本実施例のプリンタ1において電源断時に実行される処理を示すフローチャートである。また、図13は、インクカートリッジ107K,107Fを、プリンタ1に装着したときに実行される処理を示すフローチャートである。
(Operation of Printer 1)
Next, basic operations performed by the inkjet printer 1 according to the present embodiment from power-on to power-off and differences in the frequency of writing to the storage element 80 and the EEPROM 90 will be described with reference to FIGS. FIG. 11 is a flowchart showing a process executed to calculate the remaining amount of ink, and FIG. 12 is a flowchart showing a process executed when the power is turned off in the printer 1 of the present embodiment. FIG. 13 is a flowchart showing processing executed when the ink cartridges 107K and 107F are mounted on the printer 1.

まず、インク残量を算出する処理について説明する。この処理は、コンピュータPCからの印刷指示を受けてプリンタ1が印刷動作を行なう際、併せて実行される処理である。このとき、制御部46は、印刷データを印刷ヘッド10に転送すると共に、インク残量を算出する処理を実行する。かかる処理について図11を参照して説明する。図11に示した印刷処理ルーチンが起動されると、まずプリントコントローラ40に内蔵のEEPROM90からインク残量データInを読み出す処理を行なう(ステップS40)。このデータは、前回印刷が完了した時点で書き込まれた32ビットのデータであり、最新のインク残量データである。次にコンピュータPCから印刷データを入力する処理を行なう(ステップS41)。本実施例では色変換や二値化の処理は、すべてコンピュータPCで行なうので、プリンタ1は、所定ラスタ分の二値化されたデータ、即ちインクドットのオン・オフのデータを受け取ることになる。そこで、制御部46は、この印刷データに基づいて、インク消費量ΔIを計算する処理を行なう(ステップS42)。ここで計算されるインク消費量ΔIは、コンピュータから受け取った所定ラスタ分の印刷データに対応した消費量のみならず、フラッシングなどで用いられたインク量も計算している。例えば、インク滴重量とインク滴の吐出回数とを乗じることによって、各色毎のインク吐出量を算出し、算出されたインク吐出量と、前記のフラッシングや吸引動作により消費されたインク吸引量とを加算することによって、インク消費量ΔIを求めることかできる。   First, a process for calculating the remaining ink amount will be described. This process is also performed when the printer 1 performs a printing operation in response to a printing instruction from the computer PC. At this time, the control unit 46 transfers the print data to the print head 10 and executes a process for calculating the remaining ink amount. Such processing will be described with reference to FIG. When the print processing routine shown in FIG. 11 is started, first, a process of reading the remaining ink data In from the EEPROM 90 built in the print controller 40 is performed (step S40). This data is 32-bit data written at the time when the previous printing is completed, and is the latest ink remaining amount data. Next, a process of inputting print data from the computer PC is performed (step S41). In this embodiment, since the color conversion and the binarization are all performed by the computer PC, the printer 1 receives binarized data of a predetermined raster, that is, on / off data of ink dots. . Therefore, the control unit 46 performs a process of calculating the ink consumption amount ΔI based on the print data (step S42). The ink consumption amount ΔI calculated here is not only the consumption amount corresponding to the print data for the predetermined raster received from the computer but also the ink amount used for flushing or the like. For example, by multiplying the ink droplet weight and the number of times of ink droplet ejection, an ink ejection amount for each color is calculated, and the calculated ink ejection amount and the ink suction amount consumed by the flushing or suction operation are calculated. By the addition, the ink consumption amount ΔI can be obtained.

次に、こうして求めたインク消費量ΔIの累積量Iiを求める処理を行なう(ステップS43)。印刷データに応じて次々のインク消費量は求められるが、これらのデータは演算する度にEEPROM90に書き戻すことはしていないので、その時点までのインク消費量を求めるために、入力した印刷データ分のインク消費量ΔIを積算し、インク消費累積量Iiを算出するのである。これらの演算は、すべてデータを32ビットとして行なわれる。その後、制御部46は、入力した印刷データを、印刷ヘッド10におけるノズル配列および吐出タイミングに合わせたデータに変換し、印刷ヘッド10に出力する(ステップS44)。   Next, a process for calculating the accumulated amount Ii of the ink consumption amount ΔI thus obtained is performed (step S43). The successive ink consumption is obtained in accordance with the print data. However, since these data are not written back to the EEPROM 90 every time the calculation is performed, the input print data is calculated to obtain the ink consumption up to that point. That is, the accumulated ink consumption amount Ii is calculated by integrating the minute ink consumption amount ΔI. All of these operations are performed with the data being 32 bits. After that, the control unit 46 converts the input print data into data corresponding to the nozzle arrangement and the ejection timing of the print head 10, and outputs the data to the print head 10 (Step S44).

こうして入力した数ラスタ分の印刷データの処理が完了するので、次に、1ページ分の印刷が完了したかを判断する(ステップS45)。1ページ分の印刷が完了していなければ、ステップS41に戻って、上述した印刷データの入力(ステップS41)以下の処理を繰り返す。一方、1ページ分の印刷が完了した場合には、インク残量を32ビットの値として演算し(ステップS46)、これをEEPROM90に書き戻す処理を行なう(ステップS47)。インク残量の演算は、ステップS40で読み出した前回のインク残量In-1 から、ステップS43で求めたインク消費累積量Iiを減じることにより求めることができる。こうして求めた新たなインク残量InがEEPROM90に書き戻されることになる。   Since the processing of the input print data for several rasters is completed, it is determined whether the printing of one page is completed (step S45). If printing for one page has not been completed, the process returns to step S41, and the above-described processing of inputting print data (step S41) and thereafter are repeated. On the other hand, when printing of one page is completed, the remaining amount of ink is calculated as a 32-bit value (step S46), and a process of writing this back to the EEPROM 90 is performed (step S47). The calculation of the remaining ink amount can be obtained by subtracting the accumulated ink consumption amount Ii obtained in step S43 from the previous ink remaining amount In-1 read in step S40. The new ink remaining amount In thus obtained is written back to the EEPROM 90.

次に、32ビットで演算されEEPROM90に書き込まれたインク残量In を8ビットの値Ieに換算する処理を行なう(ステップS48)。この換算は、本実施例では、図14(A)に示すように、32ビットのデータの上位8ビットを求めることにより行なった。従って、データの精度は、1/224に落ちたことになる。こうした換算は、下位ビットを落とすことにより行なっても良いが、例えば、元の32ビットのデータを0−100%といった割合を示すデータに変換することにより行なっても良い。例えば、次式(1)の演算を行なって残量を百分率(但し小数点以下を切り捨てまたは小数第一位を四捨五入した整数)の値にして8ビットで表わすことができる。
Ie=100×算出したインク残量(32ビット)/インク容量(32ビット)
…(1)
Next, a process of converting the remaining ink amount In calculated by 32 bits and written in the EEPROM 90 into an 8-bit value Ie is performed (step S48). In this embodiment, this conversion is performed by obtaining the upper 8 bits of the 32-bit data as shown in FIG. Therefore, the accuracy of the data will be dropped to 1/2 24. Such conversion may be performed by dropping the lower bits. For example, the conversion may be performed by converting the original 32-bit data into data indicating a ratio of 0 to 100%. For example, the remaining amount can be represented by 8 bits by calculating the following formula (1) and setting the remaining amount to a value of a percentage (however, an integer obtained by truncating the decimal part or rounding off the first decimal place).
Ie = 100 × calculated remaining amount of ink (32 bits) / ink capacity (32 bits)
… (1)

その後、制御部46は、換算した8ビットの換算値IeをRAM44の所定の領域に書き込む処理を行なう(ステップS49)。なお、このステップで、8ビット換算値Ieを、直接インクカートリッジ107K,107Fの記憶素子80に書き込んでも良いが、記憶素子80の書き込み許容回数が高くないことに配慮して、本実施例では、後述するルーチンでのみ書き込むことにしている。   Thereafter, the control unit 46 performs a process of writing the converted 8-bit conversion value Ie into a predetermined area of the RAM 44 (Step S49). In this step, the 8-bit conversion value Ie may be directly written to the storage element 80 of the ink cartridges 107K and 107F. However, in consideration of the fact that the allowable number of times of writing of the storage element 80 is not high, in this embodiment, Writing is performed only in a routine described later.

上記の実施例では、インク残量の更新をページ単位で行なった。これは、印刷が通常ページ単位で実行されるからである。もとより、EEPROM90へのインク残量データの書き戻しは、複数ページ毎に行なってもよいし、あるいは、ラスタ単位や印刷ヘッド10が所定数往復動する度に、印刷完了と判断して、インク残量のデータをEEPROM90に書き戻す処理を行なってもよい。   In the above embodiment, the update of the ink remaining amount is performed in page units. This is because printing is usually performed in page units. Of course, the write-back of the ink remaining amount data to the EEPROM 90 may be performed for each of a plurality of pages, or it may be determined that the printing is completed every raster unit or every time the print head 10 reciprocates a predetermined number of times. A process of writing back the amount of data to the EEPROM 90 may be performed.

新たに算出したインク残量Inは、算出した時点では、プリンタ1のプリントコントローラ40に設けられたEEPROM90には32ビットで書き込まれ、8ビットに換算された値Ieが、RAM44に書き込まれる。RAM44に記憶されたインク残量Ieのインクカートリッジ107K、107Fの各記憶素子80への書き込みは、記述したパワーダウン命令が出力された場合に行なわれる。パワーダウン命令は、既に説明したように、次の3つのタイミングで出力される。
(1) プリンタ1のパネルスイッチ92のパワースイッチ92aが操作されて、電源がオフにされたとき、
(2) パネルスイッチ92のカートリッジスイッチ92bが操作されてインクカートリッジの交換が指示されたとき、
(3) コンセントを引き抜くといった行為により強制的に電源が遮断されたとき。
At the time of calculation, the newly calculated remaining ink amount In is written into the EEPROM 90 provided in the print controller 40 of the printer 1 in 32 bits, and the value Ie converted into 8 bits is written in the RAM 44. The writing of the remaining amount of ink Ie stored in the RAM 44 to each storage element 80 of the ink cartridges 107K and 107F is performed when the described power down command is output. The power down command is output at the following three timings, as described above.
(1) When the power switch 92a of the panel switch 92 of the printer 1 is operated to turn off the power,
(2) When the cartridge switch 92b of the panel switch 92 is operated to instruct replacement of the ink cartridge,
(3) When the power supply is forcibly shut down by unplugging the outlet.

そこで、次に図12を参照しつつ、8ビット換算されたインク残量Ieのデータをインクカートリッジ107K,107Fの記憶素子80に退避する処理について説明する。図12に示した退避ルーチンは、記述したように、パワーダウン命令が出力されたとき、割込処理として起動される。このルーチンが起動されると、まず最初の割込の原因が強制的な電源の遮断(上記(3) )であるか否かの判断を行なう(ステップS50)。強制的な電源断の場合は、許容されている時間はわずかなので、以下説明するステップS51ないしS55をとばして、インク残量をインクカートリッジ107K,107Fの記憶素子80に書き込む処理を行なうのである(ステップS56)。ここで書き込まれるインク残量は、図11に示したルーチンで演算し、RAM44に記憶した8ビットの値Ieである。インクカートリッジ107K,107Fの記憶素子80へのデータの書き込みの手法については、図6,図7を用いて説明した。インク残量を各第2の記憶領域660、760に記憶させる(書き込む)にあたっては、各インクに対して割り当てられている2つの記憶領域に対して交互に書き込みを行なう。2つの記憶領域のうち、いずれの記憶領域に対する記憶が実行されたかは、例えば、2つの記憶領域の先頭位置にフラグを配し、書き込みが実施された記憶領域のフラグを立てることによって識別し得る。   Therefore, the process of saving the data of the remaining ink amount Ie converted into 8 bits into the storage element 80 of the ink cartridges 107K and 107F will be described below with reference to FIG. As described above, the save routine shown in FIG. 12 is started as an interrupt process when a power down instruction is output. When this routine is started, it is first determined whether or not the cause of the first interrupt is a forced power-off ((3) above) (step S50). In the case of forcible power-off, since the allowable time is short, steps S51 to S55 described below are skipped, and the process of writing the remaining ink amount to the storage element 80 of the ink cartridges 107K and 107F is performed ( Step S56). The remaining ink amount written here is an 8-bit value Ie calculated in the routine shown in FIG. The method of writing data to the storage elements 80 of the ink cartridges 107K and 107F has been described with reference to FIGS. In storing (writing) the remaining amount of ink in each of the second storage areas 660 and 760, writing is alternately performed on two storage areas allocated to each ink. Which storage area of the two storage areas has been stored can be identified by, for example, arranging a flag at the head position of the two storage areas and setting a flag of the storage area where the writing has been performed. .

一方、割込の原因が強制的な電源断ではないと判断された場合には、プリンタ1のパネルスイッチ92においてパワースイッチ92aがオフもしくはカートリッジスイッチ92bによりインクカートリッジの交換が指示された場合であると判断できるので、進行中の印刷などのシーケンスを所定単位、例えばラスタの終わりまで実行し、併せてインク残量の演算も行なう(ステップS51)。この処理は、図11に示した処理である。図11に示した処理を実行することにより、演算されたインク残量が、EEPROM90には32ビットのデータとして、他方、RAM44には8ビットのデータとして、それぞれ記憶されることは既に説明した通りである。その後、キャッピング装置108を駆動して印刷ヘッド10にキャッピングを行なった後(ステップS52)、印刷ヘッド10の駆動条件をEEPROM90に記憶させる(ステップS53)。駆動条件とは、例えばヘッドの個体差を補正する駆動信号の電圧値や各色間の補正を行なう補正条件などである。続いて、タイマー値をEEPROM90に記憶させ(ステップS54)、更にコントロールパネルの内容をEEPROM90に記憶させる(ステップS55)。コントロールパネルの内容とは、例えば双方印刷時の着弾点のズレを補正するための調整値などである。以上の処理の後、上述したステップS56の処理、即ち、RAM44に記憶された8ビットのインク残量のデータIeをインクカートリッジ107K、107Fの各記憶素子80の各第2の記憶領域660、760に記憶させる処理を行なう(ステップS56)。   On the other hand, when it is determined that the cause of the interruption is not the forced power-off, the power switch 92a is turned off in the panel switch 92 of the printer 1 or the replacement of the ink cartridge is instructed by the cartridge switch 92b. Therefore, a sequence such as printing in progress is executed to a predetermined unit, for example, the end of the raster, and the calculation of the remaining ink amount is also performed (step S51). This process is the process shown in FIG. By executing the processing shown in FIG. 11, the calculated remaining ink amount is stored as 32-bit data in the EEPROM 90 and as 8-bit data in the RAM 44, as described above. It is. Then, after the capping device 108 is driven to cap the print head 10 (step S52), the driving conditions of the print head 10 are stored in the EEPROM 90 (step S53). The driving condition is, for example, a voltage value of a driving signal for correcting an individual difference of a head, a correction condition for correcting between colors, and the like. Subsequently, the timer value is stored in the EEPROM 90 (step S54), and the contents of the control panel are stored in the EEPROM 90 (step S55). The content of the control panel is, for example, an adjustment value for correcting a deviation of a landing point in both-side printing. After the above processing, the processing in step S56 described above, that is, the 8-bit remaining ink data Ie stored in the RAM 44 is stored in the second storage areas 660 and 760 of the storage elements 80 of the ink cartridges 107K and 107F. Is performed (step S56).

図12には示さなかったが、パネルスイッチ92の操作によってこの割込ルーチンが起動された場合には、インク残量の書き込み後、パネルスイッチ92のいずれのスイッチが操作されたかを判定し、電源オフが指示されていれば、電源91に信号を送って主電源の供給をオフにし、インクカートリッジの交換が指示されていれば、キャリッジ101を交換位置まで移動する処理を行なうことは勿論である。   Although not shown in FIG. 12, when this interrupt routine is started by operating the panel switch 92, after writing the remaining ink amount, it is determined which switch of the panel switch 92 has been operated, and If it is instructed to turn off, a signal is sent to the power supply 91 to turn off the main power supply, and if it is instructed to replace the ink cartridge, the process of moving the carriage 101 to the replacement position is, of course, performed. .

(実施例の効果)
以上の処理により、本実施例のプリンタ1およびインクカートリッジ107K,107Fでは、印刷の実行によりインクカートリッジ107K,107F内のインクが消費されると、その都度、インク残量を計算し、プリントコントローラ40内のEEPROM90には、32ビットのデータで、インク残量を記憶すると共に、インク残量を8ビットのデータに換算してRAM44に記憶する。一方、パネルスイッチ92の操作により、電源オフやインクカートリッジの交換などが指示された場合、あるいは強制的に電源が遮断される場合、RAM44に記憶しておいたインク残量の8ビットデータIeを、インクカートリッジ107K,107Fに内蔵された記憶素子80に書き込む。この結果、記憶容量に余裕のあるEEPROM90にはインク残量のデータを高精度で、即ち32ビットで記憶し、消耗品であるインクカートリッジ107K,107Fには、インク残量のデータを、記憶容量の小さい記憶素子80に合わせて小さな容量(実施例では8ビット)で記憶することができる。従って、インクカートリッジ107K,107Fの記憶素子80への書き込みに時間を要しないと言う利点が得られる。この効果は、本実施例のように、プリンタ1ビットずつシリアルアクセスされる記憶素子80を用いている場合には、特に有効である。また、電源が遮断される場合のように、アクセス時間に余裕がない場合には、書き込みデータの容量が小さく、書き込みに時間を要しない利点は大きい。
(Effects of the embodiment)
With the above-described processing, the printer 1 and the ink cartridges 107K and 107F of the present embodiment calculate the remaining ink amount each time the ink in the ink cartridges 107K and 107F is consumed by performing printing, and In the EEPROM 90, the remaining amount of ink is stored as 32-bit data, and the remaining amount of ink is converted into 8-bit data and stored in the RAM 44. On the other hand, when the power is turned off, the ink cartridge is replaced, or the power is forcibly shut off by operating the panel switch 92, the 8-bit data Ie of the remaining ink amount stored in the RAM 44 is stored in the RAM 44. Then, the data is written to the storage element 80 built in the ink cartridges 107K and 107F. As a result, the data of the remaining amount of ink is stored in the EEPROM 90 having a sufficient storage capacity with high accuracy, that is, in 32 bits, and the data of the remaining amount of ink is stored in the consumable ink cartridges 107K and 107F. Can be stored with a small capacity (8 bits in the embodiment) in accordance with the storage element 80 having a small size. Therefore, there is an advantage that writing to the storage elements 80 of the ink cartridges 107K and 107F does not require time. This effect is particularly effective when the storage element 80 that is serially accessed one bit at a time is used as in the present embodiment. In addition, when the access time has no margin, such as when the power is shut off, the capacity of the write data is small, and there is a great advantage that no time is required for writing.

更に、本実施例では、図13に示す処理を行なうことで、プリントコントローラ40内のEEPROM90に32ビットで記憶されているインク残量Inとインクカートリッジ107K,107Fの記憶素子80に8ビットで記憶されているインク残量Ieを用いて、インクカートリッジ内のインク残量の処理を一層容易かつ信頼性のあるものとしている。図13は、インクカートリッジが交換され、インクカートリッジが装着されたときに実行される処理を示すフローチャートである。この処理は、具体的には、パネルスイッチ92のカートリッジスイッチ92bが操作され、キャリッジ101がインクカートリッジの交換可能位置まで移動し、インクカートリッジが交換された直後に実行される。   Further, in the present embodiment, by performing the processing shown in FIG. 13, the remaining ink amount In stored in the EEPROM 90 in the print controller 40 in 32 bits and the storage element 80 in the ink cartridges 107K and 107F are stored in 8 bits in the print controller 40. Using the remaining ink amount Ie, processing of the remaining ink amount in the ink cartridge is made easier and more reliable. FIG. 13 is a flowchart illustrating a process executed when the ink cartridge is replaced and the ink cartridge is mounted. More specifically, this process is executed immediately after the cartridge switch 92b of the panel switch 92 is operated, the carriage 101 moves to the ink cartridge exchangeable position, and the ink cartridge is exchanged.

本ルーチンが起動されると、まず装着されたインクカートリッジ107K,107Fの記憶素子80からインク残量のデータIeを読み出す処理を行なう(ステップS70)。その後、インクカートリッジ107K,107Fの記憶素子80内に記憶されているインクカートリッジの装着回数を値1だけインクリメントする処理を行なう(ステップS71)。この処理は、図8,図9に示した装着回数を一旦読み出し、これをインクリメントして記憶素子80の同じ領域に書き戻す処理である。各インクカートリッジにおける装着回数の初期値は値0である。   When this routine is started, first, a process of reading data Ie of the remaining ink amount from the storage element 80 of the installed ink cartridges 107K and 107F is performed (step S70). Thereafter, a process of incrementing the number of mountings of the ink cartridges stored in the storage elements 80 of the ink cartridges 107K and 107F by the value 1 is performed (step S71). This process is a process of once reading the number of attachments shown in FIGS. 8 and 9, incrementing the number, and writing it back to the same area of the storage element 80. The initial value of the number of attachments in each ink cartridge is 0.

次に、この装着回数が値1であるか否かの判断を行なう(ステップS72)。インクリメントされた後の装着回数が値1であるということは、そのインクカートリッジが初めてプリンタ1に装着されたことを示しているので、この場合には、プリントコントローラ40のEEPROM90に、インク残量として、全量データを書き込む処理を行なう(ステップS73)。全量データとは、インクカートリッジが新品である場合にインクカートリッジに収容されているインク量に対応した値である。一方、装着回数が1回でなければ、そのインクカートリッジは、既に1回以上、プリンタ1に装着されたことがあると判断できるので、一旦取り外されたインクカートリッジがプリンタ1に戻されたのか、あるいは異なるインクカートリッジが装着されたのかを判断するため、ステップS74以下の処理を行なう。即ち、まずEEPROM90に記憶されているインク残量のデータInを読み出し(ステップS74)、これと既に読み出しておいたインクカートリッジ側のインク残量のデータIeとが、8ビット換算で一致するか否かの判断を行なう(ステップS75)。8ビット換算で一致するかの判断は、このプリンタ1が、インク残量の8ビット換算の処理(図11ステップS48)において、32ビットのデータの上位の8ビットのみをインク残量の8ビットデータIeとしている場合には、同様に、EEPROM90から読み出した32ビットのデータの上位8ビットを、インク残量データIeと比較することにより行なえばよい。8ビット換算を、百分率への換算により行なっている場合には、同様に、ステップS75の比較において、百分率への換算を行なってから、比較を行なえばよい。   Next, it is determined whether or not the number of attachments is the value 1 (step S72). The fact that the number of attachments after the increment is a value of 1 indicates that the ink cartridge has been attached to the printer 1 for the first time. In this case, the ink remaining amount is stored in the EEPROM 90 of the print controller 40 as the remaining ink amount. Then, a process of writing the entire amount of data is performed (step S73). The total amount data is a value corresponding to the amount of ink contained in the ink cartridge when the ink cartridge is new. On the other hand, if the number of attachments is not one, it can be determined that the ink cartridge has already been attached to the printer 1 at least once, so whether the ink cartridge once removed is returned to the printer 1 or not. Alternatively, the process from step S74 is performed to determine whether a different ink cartridge is mounted. That is, first, the data In of the ink remaining amount stored in the EEPROM 90 is read (step S74), and it is determined whether the read data In of the ink cartridge side already read out matches the 8-bit conversion data Ie. Is determined (step S75). The printer 1 determines whether or not they match in 8-bit conversion by using only the upper 8 bits of the 32-bit data in the 8-bit conversion of the remaining ink in the 8-bit conversion of the remaining ink (step S48 in FIG. 11). In the case of the data Ie, the upper 8 bits of the 32-bit data read from the EEPROM 90 may be similarly compared with the remaining ink data Ie. When the 8-bit conversion is performed by conversion into percentage, similarly, in the comparison of step S75, the conversion may be performed after conversion into percentage.

両データが8ビットで一致していると判断された場合には、装着されたインクカートリッジは、直前までプリンタ1に装着されていたインクカートリッジであると判断することができるので、この場合には、その後のインク残量のデータを、EEPROM90が記憶していた32ビットのデータとして用いると決定することができる(ステップS76)。他方、両者が一致していないと判断された場合には、もはやEEPROM90内のインク残量のデータを使用することはできないから、インクカートリッジ107K,107F内の記憶素子80に記憶されていたインク残量のデータIeを用いてその後のインク量の管理を行なう。このため、まず8ビットのインク残量のデータIeを、32ビットのインク残量データInに換算する処理を行なう(ステップS77)。この処理は、32ビットのデータを8ビットのデータに換算する処理の逆を行なえば良く、例えば図14(B)に示すように、8ビットのデータIeを最上位のデータとし、残り24ビットをすべて値0としたデータとすれば良い。もとより、インク残量の8ビットデータが百分率を表わしている場合には、記述した式(1)を用いて逆算し、32ビットのデータを求めれることもできる。かかる換算を行なった上で、換算された32ビットのインク残量のデータInを、その後のインク残量の演算に用いると決定し(ステップS78)、EEPROM90の所定の領域に記憶する。   If it is determined that the two data match each other in 8 bits, the mounted ink cartridge can be determined to be the ink cartridge that was mounted on the printer 1 until immediately before. In this case, Then, it can be determined that the data of the remaining ink amount is used as the 32-bit data stored in the EEPROM 90 (step S76). On the other hand, if it is determined that the two do not match, the data on the remaining amount of ink in the EEPROM 90 can no longer be used, and the remaining amount of ink stored in the storage element 80 in the ink cartridges 107K and 107F is no longer available. The subsequent ink amount is managed using the amount data Ie. Therefore, first, a process of converting the 8-bit remaining ink data Ie into 32-bit remaining ink data In is performed (step S77). This process may be the reverse of the process of converting 32-bit data to 8-bit data. For example, as shown in FIG. 14B, 8-bit data Ie is set as the highest-order data, and the remaining 24 bits are used. May be data with all values being 0. Of course, if the 8-bit data of the remaining ink amount represents a percentage, 32-bit data can be obtained by performing an inverse calculation using the described equation (1). After performing the conversion, it is determined that the converted 32-bit remaining ink data In is to be used for subsequent calculation of the remaining ink amount (step S78), and is stored in a predetermined area of the EEPROM 90.

以上の処理を行なう本実施例では、インクカートリッジが新たに装着された場合、プリンタ1側のEEPROM90が記憶しているインク残量Inとインクカートリッジ107側の記憶素子80が記憶しているインク残量Ieとの対応を判断し、両者が一致していると判断すれば、EEPROM90に記憶されている32ビットのデータを用いてその後の処理を行なう。従って、一旦取り外したインクカートリッジを再度プリンタ1に戻した場合などでは、インク残量の管理をきわめて高い精度で継続することができる。この結果、例えばインク残量がほとんどなく交換時期が近いこともしくは交換が必要なことを知らせるといった処理を、極めて高精度に行なうことができる。   In this embodiment that performs the above processing, when an ink cartridge is newly installed, the remaining ink amount In stored in the EEPROM 90 of the printer 1 and the remaining ink amount stored in the storage element 80 of the ink cartridge 107 are determined. The correspondence with the quantity Ie is determined, and if it is determined that they match, the subsequent processing is performed using the 32-bit data stored in the EEPROM 90. Therefore, when the removed ink cartridge is returned to the printer 1 again, the management of the remaining ink amount can be continued with extremely high accuracy. As a result, for example, a process of notifying that the ink is almost exhausted and that the replacement time is near or that replacement is necessary can be performed with extremely high accuracy.

他方、カートリッジが異なるものに交換された場合などであって両者が対応していないと判断された場合には、インクカートリッジ107K,107Fに記憶されたデータIeを用いて、その後のインク残量の管理を行なうことができる。従って、精度はEEPROM90に記憶されたデータほどの精度は得られないものの、カートリッジが交換されても、引き続きインク残量の管理を行なうことができ、例えばインク残量がほとんどなく交換時期が近いこともしくは交換が必要なことを知らせる処理を的確に行なうことができる。   On the other hand, when it is determined that the two cartridges do not correspond to each other, for example, when the cartridges are replaced with different ones, the data Ie stored in the ink cartridges 107K and 107F is used to determine the remaining ink remaining amount. Can manage. Therefore, although the accuracy is not as high as that of the data stored in the EEPROM 90, even if the cartridge is replaced, it is possible to continue to manage the remaining amount of ink. Alternatively, a process of notifying that replacement is necessary can be performed accurately.

尚、上記実施例では、インク残量Inを算出し、EEPROM90に書き込んだり、8ビット換算を行なってRAM44に書き込んだりするタイミングを、1頁分の印刷が完了したとき(図11ステップS45)としたが、1ラスタごと、あるいは数ラスタの印刷が完了した毎に、換算と書き込みを行なうものとしても良い。あるいは、インク残量の計算(ステップS46)、8ビットデータへの換算(ステップS48)、RAM44への記憶(ステップS49)を、1もしくは数ラスタ毎に行ない、EEPROM90への書き込み(ステップS47)を1頁の印刷完了時に行なうなど、これらの処理の実施を異なるタイミングで行なうものとしても良い。   In the above embodiment, the timing of calculating the remaining ink amount In and writing it to the EEPROM 90 or writing it to the RAM 44 after performing 8-bit conversion is determined when the printing of one page is completed (step S45 in FIG. 11). However, conversion and writing may be performed every one raster or every time several rasters are printed. Alternatively, calculation of the remaining amount of ink (step S46), conversion into 8-bit data (step S48), storage in the RAM 44 (step S49) are performed for every one or several rasters, and writing to the EEPROM 90 (step S47). These processes may be performed at different timings, such as when the printing of one page is completed.

以上説明した本実施例では、プリンタ1側のEEPROM90に記憶するインク残量のデータInのビット数より、インクカートリッジ107K,107Fの記憶素子80に記憶するインク残量のデータIeのビット数を小さくするだけでなく、両者の書き込みのタイミングを異ならせることで次の効果を奏する。即ち、EEPROM90には、1ページの印刷が完了する毎にデータを書き込むのに対して、記憶素子80に対しては、(1) パワースイッチ92bが操作されて電源がオフにされたとき、(2) カートリッジスイッチ92bが操作されてインクカートリッジの交換が指示されたとき、(3) 電源が強制的に遮断されたとき、にしか、書き戻す処理を行なわない。この結果、インク残量のデータは、EEPROM90については高い頻度で更新されるのに対して、記憶素子80についてはこれより低い頻度でしか更新されないのである。このため、記憶素子80に対するインク残量の書き込み回数を制限することできる。この結果、記憶素子80に書き込まれるデータがビット数の少ない8ビットのデータであることと相まって、消耗品としてのインクカートリッジに用いる記憶素子に、書き込みの許容回数および記憶容量の小さい素子を採用することが可能となり、インクカートリッジの単価を一層低減することができる。   In the present embodiment described above, the number of bits of the remaining ink data Ie stored in the storage element 80 of the ink cartridges 107K and 107F is smaller than the number of bits of the remaining ink data In stored in the EEPROM 90 of the printer 1. In addition, the following effects can be obtained by making the writing timings of the two different. That is, data is written to the EEPROM 90 every time printing of one page is completed. On the other hand, for the storage element 80, (1) when the power switch 92b is operated to turn off the power, 2) Only when the cartridge switch 92b is operated to instruct the replacement of the ink cartridge, and (3) when the power supply is forcibly shut off, the rewriting process is performed. As a result, the data on the remaining amount of ink is updated at a high frequency for the EEPROM 90, but is updated at a lower frequency for the storage element 80. Therefore, the number of times of writing the remaining amount of ink to the storage element 80 can be limited. As a result, the data to be written into the storage element 80 is 8-bit data with a small number of bits, and an element with a small allowable number of writes and a small storage capacity is adopted as the storage element used for the ink cartridge as a consumable. This makes it possible to further reduce the unit price of the ink cartridge.

この様に、記憶素子80へのデータの書き戻しの頻度を制限しても、プリンタ1のEEPROM90には常に最新のインク残量のデータが32ビットで保存されているから、プリンタ1におけるインク残量の監視処理や処理の精度には何ら影響を与えることがない。インク残量の監視処理としては、インク残量が一定以下となった場合に、プリンタ1のパネルスイッチ92に設けられたLEDなどを点滅させたり、コンピュータPCのプリンタドライバにこれを報知してコンピュータPCのディスプレイMT上に警告を表示するといったことが考えられる。プリンタ1は、プリントコントローラ40のEEPROM90に、常に最新のインク残量のデータを保持しているので、いつでもこれを参照して、必要なタイミングでインクエンドなど警告を出力することができる。もとより、ユーティリティソフトなどを立ち上げて、現在のインク残量を棒グラフなどで視覚的に表示する際に、これらのデータを利用しても良い。   As described above, even if the frequency of writing back data to the storage element 80 is limited, the latest ink remaining amount data is always stored in 32 bits in the EEPROM 90 of the printer 1. It has no effect on the volume monitoring process or the accuracy of the process. As the monitoring process of the remaining ink amount, when the remaining ink amount becomes equal to or less than a predetermined value, an LED provided on the panel switch 92 of the printer 1 is blinked or the printer driver of the computer PC is notified of the blinking. A warning may be displayed on the display MT of the PC. Since the printer 1 always holds the latest ink remaining amount data in the EEPROM 90 of the print controller 40, the printer 1 can always refer to this and output a warning such as ink end at a necessary timing. Naturally, these data may be used when starting up utility software or the like and visually displaying the current ink remaining amount in a bar graph or the like.

以上の説明では、パワーダウン命令が出された場合には、必ずインク残量をインクカートリッジ107K,107Fの記憶素子80に書き込むものとしたが、電源投入から一度も印刷が行なわれていない場合など、インク残量に変更がない場合には、インク残量を書き戻さないものとしてもよい。こうした判断は、専用のフラグを設け、インク残量が変更された場合にフラグを設定するものとし、パワーダウン命令を受け取った直後のこのフラグを読み取ることが、容易に実現することかできる。また、上記の実施例では、記憶素子80に書き込むデータとしてインク残量を例に挙げたが、EEPROM90と記憶素子80とで書き込みの頻度を異ならせるデータとしては、インク残量以外のデータも考えることができる。例えばインクカートリッジの累積的な使用時間のデータやインクカートリッジの使用の態様等のデータなどについても同様に扱うことができる。   In the above description, when the power-down command is issued, the remaining amount of ink is always written to the storage element 80 of the ink cartridges 107K and 107F. If there is no change in the remaining ink amount, the remaining ink amount may not be written back. For such a determination, a dedicated flag is provided and a flag is set when the remaining amount of ink is changed, and reading this flag immediately after receiving the power down command can be easily realized. Further, in the above-described embodiment, the remaining amount of ink is taken as an example of data to be written to the storage element 80. However, data other than the remaining amount of ink may be considered as data for making the writing frequency different between the EEPROM 90 and the storage element 80. be able to. For example, data on the cumulative use time of the ink cartridge, data on the use mode of the ink cartridge, and the like can be handled similarly.

また、EEPROM90と記憶素子80への書き込みのタイミングは上記のタイミングに限られるものではなく、例えばEEPROM90に対する書き込みをM回行なう度に1回の割合で記憶素子80に書き込むといった態様も可能である。また、クリーニングスイッチ92cを操作して吸引動作を行なわせた場合には、インク残量が有意に減少することから、吸引動作によるヘッドクリーニングの完了時に、記憶素子80へのデータの書き込みを行なうものとしても良い。更に、記憶素子80への書き込み回数を記憶素子80の所定の領域に書き込んでおき、書き込み回数が多くなるに従って、書き込みのタイミングを減らし、書き込みの頻度を小さくすることも好適である。   Further, the timing of writing to the EEPROM 90 and the storage element 80 is not limited to the above timing. For example, a mode in which writing to the storage element 80 is performed once every M times of writing to the EEPROM 90 is possible. In addition, when the suction operation is performed by operating the cleaning switch 92c, the remaining amount of ink is significantly reduced. Therefore, when the head cleaning by the suction operation is completed, data is written to the storage element 80. It is good. Further, it is also preferable to write the number of times of writing to the storage element 80 in a predetermined area of the storage element 80, and to reduce the timing of writing and reduce the frequency of writing as the number of times of writing increases.

本形態では、インクカートリッジ107K、107Fのインク種類毎のインク残量データを記憶しているので、各色インク毎に残量を知ることができる。また各色インク毎にインクエンドなどの警告を出力することができる。カラーインクカートリッジ107Fのように、5色のインクを収容しているインクカートリッジでは、インク残量のデータも5種類記憶することになる。インクカートリッジに記憶するデータを8ビットにしているため、記憶容量も8ビット×インク種類数(本実施例では5)ですみ、記憶素子80の記憶容量を徒に増大することがない。かかる効果は、本実施例のように、インク残量のデータを二重化して記憶している場合には、特に大きい。   In this embodiment, since the remaining ink amount data for each ink type of the ink cartridges 107K and 107F is stored, it is possible to know the remaining amount for each color ink. Further, it is possible to output a warning such as ink end for each color ink. In an ink cartridge containing five colors of ink, such as the color ink cartridge 107F, five types of data on the amount of remaining ink are also stored. Since the data stored in the ink cartridge is 8 bits, the storage capacity is also 8 bits × the number of ink types (5 in this embodiment), and the storage capacity of the storage element 80 does not increase unnecessarily. This effect is particularly significant when the data of the remaining amount of ink is stored in duplicate as in this embodiment.

[第2実施例]
次に本発明の第2実施例について説明する。第2実施例は、上述した第1実施例とほぼ同様のプリンタおよびインクカートリッジの構成を備えるが、次の点で第1実施例とは異なっている。即ち、この実施例では、プリンタ1のプリントコントローラ40におけるパラレル入出力インターフェース49とインクカートリッジ107の記憶素子80との間に、専用の制御IC200が設けられている。この制御IC200は、図15に示すように、制御基板205上に、RAM210と共に搭載される。この制御基板205は、図16に示すように、キャリッジ101のカートリッジ装着部18に取り付けられている。記憶素子80と制御基板205との信号のやり取りは、コネクタ286を用いて行なわれる。このコネクタ286は、図示するように、記憶素子80側のみならず、制御基板205側にも接触用のコンタクトピンが設けられており、制御基板205をカートリッジ装着部18の外側の取付部250に装着するだけで、電気的な接続が完了するようになっている。
[Second embodiment]
Next, a second embodiment of the present invention will be described. The second embodiment has substantially the same configuration of the printer and the ink cartridge as the first embodiment described above, but differs from the first embodiment in the following points. That is, in this embodiment, a dedicated control IC 200 is provided between the parallel input / output interface 49 of the print controller 40 of the printer 1 and the storage element 80 of the ink cartridge 107. The control IC 200 is mounted on a control board 205 together with a RAM 210 as shown in FIG. The control board 205 is mounted on the cartridge mounting section 18 of the carriage 101 as shown in FIG. Signal exchange between the storage element 80 and the control board 205 is performed using the connector 286. As shown, the connector 286 has contact pins for contact not only on the storage element 80 side but also on the control board 205 side, and the control board 205 is attached to the mounting portion 250 outside the cartridge mounting portion 18. Just by attaching it, the electrical connection is completed.

制御基板205とパラレル入出力インターフェース49とは、4本の信号線で接続されており、制御IC200とプリントコントローラ40とデータ交換は、シリアル通信により行なわれる。具体的には、制御IC200側からみてデータを受け取るための信号線RxD、データを出力するための信号線TxD、プリントコントローラ40側から制御IC200に対して停電時の書き込み要求を出力するパワーダウン信号NMI、信号線RxD,TxDを用いたデータの授受を許可する選択信号SELの4つの信号が、パラレル入出力インターフェース49と制御IC200との間でフレキシブルフラットケーブル(FFC)300を介してやり取りされている。制御部46は、これらの信号を用いて、制御IC200との間で必要なデータのやり取りを行なっているが、制御部46と制御IC200との通信速度は、制御IC200と記憶素子80との間のデータのやり取りの速度と比べて、十分に高速である。なお、パワーダウン信号NMIは、第1実施例と同様に、パネルスイッチ92のパワースイッチ92aやカートリッジスイッチ92bが操作された時、あるいは電源プラグが引き抜かれたりして強制的に電源が遮断された場合に出力される信号である。   The control board 205 and the parallel input / output interface 49 are connected by four signal lines, and data exchange between the control IC 200 and the print controller 40 is performed by serial communication. Specifically, a signal line RxD for receiving data as viewed from the control IC 200 side, a signal line TxD for outputting data, and a power down signal for outputting a write request at the time of a power failure from the print controller 40 to the control IC 200 The four signals of the selection signal SEL for permitting the transmission and reception of data using the NMI and the signal lines RxD and TxD are exchanged between the parallel input / output interface 49 and the control IC 200 via the flexible flat cable (FFC) 300. I have. The control unit 46 exchanges necessary data with the control IC 200 using these signals. However, the communication speed between the control unit 46 and the control IC 200 is different between the control IC 200 and the storage element 80. It is sufficiently fast compared to the speed of data exchange. As in the first embodiment, the power down signal NMI is forcibly turned off when the power switch 92a or the cartridge switch 92b of the panel switch 92 is operated or the power plug is pulled out. It is a signal output in the case.

制御IC200は、二つの記憶素子80に対して個別にデータのやり取りを行なう機能を備える。従って、一つの制御IC200で、黒用のインクカートリッジ107Kとカラー用のインクカートリッジ107Fのそれぞれの記憶素子80との間で、データのやり取りを行なうことができる。図15では、それぞれの記憶素子80に対する信号線を区別するために、図6に示した電源Powerや各信号CS,R/W,I/O,CLKなどのあとに、黒用のインクカートリッジ107Kについては、添え字「1」を、カラー用のインクカートリッジ107Fについては、添え字「2」を、それぞれ付けて区別している。   The control IC 200 has a function of individually exchanging data with the two storage elements 80. Therefore, one control IC 200 can exchange data between the storage elements 80 of the black ink cartridge 107K and the color ink cartridges 107F. In FIG. 15, in order to distinguish the signal lines for the respective storage elements 80, the black ink cartridge 107K is provided after the power supply and the signals CS, R / W, I / O, and CLK shown in FIG. Are distinguished by adding a suffix “1” and the color ink cartridge 107F by a suffix “2”.

この実施例では、プリンタ1のプリントコントローラ40の制御部46は、インク量に関するデータを、EEPROM90に書き込むだけなく、制御基板205上に設けられたRAM210にも書き込む。制御IC200への書き込みの際、制御部46は、選択信号SELをアクティブにして制御IC200を選択し、信号RxDにデータを乗せて非同期シリアル通信により、制御IC200にインク残量のデータInを書き込む。   In this embodiment, the control unit 46 of the print controller 40 of the printer 1 writes the data relating to the ink amount not only to the EEPROM 90 but also to the RAM 210 provided on the control board 205. At the time of writing to the control IC 200, the control unit 46 activates the selection signal SEL to select the control IC 200, puts data on the signal RxD, and writes the remaining ink data In to the control IC 200 by asynchronous serial communication.

一方、パワースイッチ92aが押されたり、電源が強制的に遮断されたりして、パワーダウン信号NMIが出力されると、プリントコントローラ40はパワーダウン信号NMIを、外部に、従って制御IC200にも出力する。この結果、制御IC200は、パワーダウン信号NMIを受けて、RAM210に記憶していたデータのうち、少なくともそれぞれのインク量に関するデータを、それぞれのインクカートリッジ107K,107Nの記憶素子80に書き込む処理を行なう。制御IC200による記憶素子80への書き込みの手法は、第1実施例と同様にであり、図7に示したように、まずチップセレクト信号CSをアクティブにし、直ちにライト/リード信号W/Rをハイアクティブとして書き込みを選択し、クロック信号CLKに同期して、データDATAを順次出力することにより行なわれる。   On the other hand, when the power switch 92a is pressed or the power supply is forcibly cut off and the power down signal NMI is output, the print controller 40 outputs the power down signal NMI to the outside, and thus to the control IC 200. I do. As a result, in response to the power down signal NMI, the control IC 200 performs a process of writing at least data relating to the respective ink amounts among the data stored in the RAM 210 to the storage elements 80 of the respective ink cartridges 107K and 107N. . The method of writing to the storage element 80 by the control IC 200 is the same as that of the first embodiment. First, as shown in FIG. 7, the chip select signal CS is first activated, and the write / read signal W / R is immediately turned high. This is performed by selecting writing as active and sequentially outputting data DATA in synchronization with the clock signal CLK.

次に、第2実施例におけるインク量に関する処理の実際について説明する。第2実施例では、インクカートリッジのインク量に関する処理は、「インク残量」ではなく、「インク消費量」を用いて行なっている。もとより、第1実施例と同様インク残量により処理することも可能である。図17は、プリントコントローラ40が実行する処理ルーチンを示すフローチャートである。この処理ルーチンは、印刷処理やクリーニングなど、インクカートリッジ内のインク消費量に変動を生じる処理が行なわれたときに実行される。なお、この処理は、インク量が低減する際のみならず、インク量が増加する場合にも実施可能である。例えば、インクカートリッジにインクを充填するといった処置が可能な構成を採用していれば、インク充填の際にも実行することができる。   Next, a description will be given of the actual processing of the ink amount in the second embodiment. In the second embodiment, the processing relating to the amount of ink in the ink cartridge is performed using "ink consumption amount" instead of "ink remaining amount". Of course, it is also possible to perform processing based on the remaining amount of ink as in the first embodiment. FIG. 17 is a flowchart showing a processing routine executed by the print controller 40. This processing routine is executed when a process that causes a change in the amount of ink consumed in the ink cartridge, such as a printing process or cleaning, is performed. This process can be performed not only when the ink amount is reduced but also when the ink amount is increased. For example, if a configuration capable of performing a treatment such as filling an ink cartridge with ink is adopted, the processing can be executed even when ink is filled.

図17に示した処理ルーチンが開始されると、まず今回の印刷やクリーニングなどの処理によるインク消費量を32ビットのデータで算出する処理を行なう(ステップS110)。次に、今回の処理による消費量と、EEPROM90に記憶しているそれまでの消費量とから、現在の総消費量Ihaを32ビットデータで算出する処理を行なう(ステップS120)。総消費量Ihaを求めると、次にこれをEEPROM90に書き戻す処理を行なう(ステップS130)。以上の処理により、プリントコントローラ40内のEEPROM90には、常に最新のインク総消費量のデータIhaが保存されることになる。   When the processing routine shown in FIG. 17 is started, first, a process of calculating the amount of ink consumed by the current printing and cleaning processes using 32-bit data is performed (step S110). Next, a process of calculating the current total consumption amount Iha as 32-bit data from the consumption amount by the current processing and the consumption amount stored so far in the EEPROM 90 is performed (step S120). Once the total consumption Iha is obtained, a process of writing it back to the EEPROM 90 is performed (step S130). By the above processing, the latest data Iha of the total ink consumption is always stored in the EEPROM 90 in the print controller 40.

次に、インク総消費量Ihaのデータを、8ビットデータIceに換算する処理を行なう(ステップS140)。8ビットデータへの換算は、第1実施例と同様に行なうことができる。続いて、制御部46は、8ビットのデータに換算したインク総消費量Iceを、記憶素子80に書き込むべく、制御IC200に出力する(ステップS150)。   Next, a process of converting the data of the total ink consumption Iha into 8-bit data Ice is performed (step S140). Conversion to 8-bit data can be performed in the same manner as in the first embodiment. Subsequently, the control unit 46 outputs the total ink consumption Ice converted into 8-bit data to the control IC 200 so as to write it into the storage element 80 (step S150).

以上説明した処理によれば、インクカートリッジ107K,107Fの記憶素子80に書き戻されるべきインク総消費量のデータは、記憶素子80との間のデータのやり取りを直接制御する制御IC200を介して制御基板205上のRAM210に記憶されており、制御部46は、インク残量のデータを更新するたびに、このデータを制御IC200を介してRAM210に書き込んでいる。従って、常に最新のデータが制御基板205上のRAM210には用意されていることになる。そして、電源が強制的に遮断されるといった事態となり、パワーダウン信号NMIが出力されると、プリントコントローラ40や制御部46の動作のいかんによらず、RAM210に記憶されたデータは、直ちにインクカートリッジ107K,107Fの記憶素子80に書き込まれる。従って、電源遮断時の制御部46の処理は簡略化され、処理の負担が大幅に低減される。なお、この実施例では、インクカートリッジ107K,Fの記憶素子80へのデータの書き込みをパワーダウン信号NMIを用いて開始するものとしたが、書き込み用の信号線RxDを用いてコマンドを送出することにより、制御IC200によるデータの書き込みを行なわせるものとしても良い。   According to the processing described above, the data of the total ink consumption to be written back to the storage element 80 of the ink cartridges 107K and 107F is controlled via the control IC 200 which directly controls the exchange of data with the storage element 80. The data is stored in the RAM 210 on the substrate 205, and the control unit 46 writes this data in the RAM 210 via the control IC 200 every time the data of the remaining ink amount is updated. Therefore, the latest data is always prepared in the RAM 210 on the control board 205. Then, when the power supply is forcibly shut off and the power down signal NMI is output, the data stored in the RAM 210 is immediately transferred to the ink cartridge regardless of the operation of the print controller 40 or the control unit 46. The data is written to the storage elements 80 of 107K and 107F. Therefore, the processing of the control unit 46 when the power is turned off is simplified, and the processing load is greatly reduced. In this embodiment, the writing of data into the storage elements 80 of the ink cartridges 107K and 107F is started by using the power down signal NMI. However, a command is sent by using the writing signal line RxD. Thus, data writing by the control IC 200 may be performed.

次に、電源がオンにされたり、カートリッジが交換されて新たなインクカートリッジが装着された場合の処理について説明する。図18は、電源オン、カートリッジ装着時処理ルーチンを示すフローチャートである。図示するように、この処理が開始されると、まず装着されてたインクカートリッジが新品であるか否かを、取付回数により判断する処理を行なう(ステップS200)。これまで一度もプリンタ1に装着されたことのない新品が装着されたと判断された場合には、予め定めた規定値を総消費量Ihaとして定めて、以後の処理に供するものと決定する(ステップS270)。ここで規定値は、通常は総消費量0として定められている。しかし、例えばハーフボトルなどのように、インク収容量が半分のものについては、全消費量の1/2に対応する値などを用いることもできる。装着されたインクカートリッジがハーフボトルであるとか、あるいは出荷時にプリンタ1に同梱されたサービス品(インク収容量が少ないもの)であるか等の判断は、直接インクカートリッジ107K,107Fの記憶素子80に情報を書き込んでおいて判断してもよいが、シリアルナンバーの上位2桁を、そうしたカートリッジの種別の判断に用いるといった対応も可能である。   Next, processing when the power is turned on or the cartridge is replaced and a new ink cartridge is mounted will be described. FIG. 18 is a flowchart showing a power-on, cartridge mounting processing routine. As shown in the figure, when this process is started, a process is first performed to determine whether or not the installed ink cartridge is a new one based on the number of times of attachment (step S200). If it is determined that a new product that has never been mounted on the printer 1 has been mounted, a predetermined value is determined as the total consumption Iha, and it is determined that the total consumption Iha will be used for subsequent processing (step S270). Here, the specified value is usually set as the total consumption amount 0. However, for a half-bottle or the like having a half of the ink storage amount, a value corresponding to 全 of the total consumption can be used. The determination as to whether the installed ink cartridge is a half-bottle or a service item (a small amount of ink stored) packaged with the printer 1 at the time of shipment is performed directly by the storage element 80 of the ink cartridges 107K and 107F. May be determined by writing information to the cartridge, but it is also possible to use the upper two digits of the serial number to determine the type of such a cartridge.

装着されたインクカートリッジがその取付回数などから新品ではないと判断された場合には、次にインクカートリッジ107K,107Fの記憶素子80から識別情報としてのシリアルナンバSNを読み出し、このシリアルナンバSNによりEEPROM90内を検索する処理を行なう(ステップS205)。この検索は、図19に示すように、EEPROM90にシリアルナンバSNをインデックスとして用意されたテーブルを参照することにより行なわれる。一度でも装着されたインクカートリッジのシリアルナンバSNは、記憶容量が許す限り、EEPROM90に、インク総消費量と対応づけて登録されている。なお、EEPROM90の記憶容量が一杯になれば、古いデータから順次削除される。   If it is determined that the installed ink cartridge is not a new one from the number of times of attachment, the serial number SN as identification information is read from the storage element 80 of the ink cartridges 107K and 107F, and the EEPROM 90 is read based on the serial number SN. A process for searching the inside is performed (step S205). This search is performed by referring to a table prepared in the EEPROM 90 using the serial number SN as an index, as shown in FIG. The serial number SN of the ink cartridge that has been mounted at least once is registered in the EEPROM 90 in association with the total ink consumption as long as the storage capacity permits. When the storage capacity of the EEPROM 90 becomes full, old data is deleted sequentially.

このテーブルを参照することにより、電源オン時にはあっては装着されているカートリッジが、インクカートリッジの交換時にあっては新たに装着されたカートリッジが、このプリンタ1に初めて装着されたインクカートリッジであるか否かの判断を行なうことができる(ステップS210)。インクカートリッジ107K,107Fの記憶素子80から読み出したシリアルナンバがテーブル内に見つかった場合には、初めて装着されたカートリッジではないと判断できるから、この場合には、記憶素子80から、8ビットのインク総消費量のデータIceを読み出し、これを32ビットのインク総消費量の換算データIheに換算する処理をまず行なう(ステップS220)。その後、EEPROM90にもともと32ビットで記憶されていたインク総消費量のデータIhaと、記憶素子80に8ビットで記憶されていたインク総消費量からの換算データIheとを比較し(ステップS230)、両者が対応しているか否かを判断する(ステップS240)。   By referring to this table, it is determined whether the cartridge installed when the power is turned on and the newly installed cartridge when the ink cartridge is replaced are the ink cartridges installed in the printer 1 for the first time. It can be determined whether or not (step S210). If the serial number read from the storage element 80 of the ink cartridges 107K and 107F is found in the table, it can be determined that the cartridge is not the first installed cartridge. In this case, the 8-bit ink is read from the storage element 80. First, a process of reading the total consumption data Ice and converting it into 32-bit ink total consumption conversion data Ihe is performed (step S220). Thereafter, the data Iha of the total ink consumption originally stored in the EEPROM 90 in 32 bits is compared with the conversion data Ihe from the total ink consumption stored in the storage element 80 in 8 bits (step S230). It is determined whether the two correspond to each other (step S240).

かかる比較により、両者が対応していると判断された場合には、インクカートリッジは継続して用いられているか、あるいは一旦はずされた後、そのまま戻されたものであると判断できるので、EEPROM90が記憶していたインク総消費量Ihaを、現在のインク総消費量として扱うことに決定する(ステップS250)。他方、両者が対応していないと判断された場合に、EEPROM90が記憶している総消費量のデータIhaと換算された総消費量のデータIhaのうち、大きい方を、現在のインク総消費量として扱うことに決定する(ステップS260)。ここで、一律にインクカートリッジ107K,107Fの記憶素子80が記憶していたデータを採用するとしていないのは、識別情報であるシリアルナンバSNを用いて、予めインクカートリッジを特定しているからである。このため、換算による誤差等を見込んで、インク総消費量の大きい方を用いるものとすることができる。もとより、インクカートリッジの記憶素子80に記憶されたインク総消費量のデータを優先的に扱うといった対応も可能である。例えば、専用のインク充填機などでインクを充填し、これに合わせてインク総消費量を書き直すといった装置が使用される環境が想定される場合には、インクカートリッジ側の情報を優先する。   If it is determined from the comparison that the two correspond, it is possible to determine that the ink cartridge has been used continuously or that it has been removed and then returned as it is. It is determined that the stored total ink consumption Iha is to be treated as the current total ink consumption (step S250). On the other hand, when it is determined that the two do not correspond to each other, the larger of the total consumption data Iha stored in the EEPROM 90 and the converted total consumption data Iha is determined as the current total ink consumption. (Step S260). Here, the reason why the data stored in the storage elements 80 of the ink cartridges 107K and 107F is not uniformly adopted is that the ink cartridge is specified in advance by using the serial number SN as the identification information. . For this reason, in consideration of an error due to the conversion, the larger ink consumption can be used. Of course, it is also possible to prioritize the data of the total ink consumption stored in the storage element 80 of the ink cartridge. For example, in a case where an environment is assumed in which a device is used in which ink is filled by a dedicated ink filling machine or the like and the total ink consumption is rewritten accordingly, information on the ink cartridge side is given priority.

以上の処理の他、図19に例示したテーブルを参照することにより、インクカートリッジ107K,107Fが、初めてこのプリンタ1に装着されたものであると判断された場合には、このインクカートリッジは既にどこかで使用されていたと判断できるので(ステップS200,S210)、この場合には、インクカートリッジ107K,107Fの記憶素子80から8ビットのインク総消費量のデータを読み出し、これを32ビットに換算して、その後のインク総消費量のデータIhaとして用いることに決定する(ステップS280)。   In addition to the above processing, if it is determined that the ink cartridges 107K and 107F are the first ones attached to the printer 1 by referring to the table illustrated in FIG. (Steps S200, S210), in this case, the data of the total consumption of 8 bits of ink is read from the storage element 80 of the ink cartridges 107K and 107F, and the data is converted into 32 bits. Then, it is determined to use it as the data Iha of the total ink consumption thereafter (step S280).

以上、図18を参照して説明した本実施例によれば、第1実施例れ同様に、インクカートリッジ側の記憶素子80に記憶するデータの容量を低減することができる。しかも、識別情報により、装着されるインクカートリッジを特定することができるので、例えば複数のインクカートリッジを取り替えて使用するような場合でも、これを的確に判断し、他で使用されずに再度同じプリンタ1に戻されたインクカートリッジのインク総消費量を、インクカートリッジ側のデータより遙かに高い精度で管理することができる。加えて、例えそれらのインクカートリッジを他のプリンタなどで使用した場合でも、インク総消費量を一定以上の精度で管理することができる。   According to the present embodiment described above with reference to FIG. 18, the capacity of data stored in the storage element 80 on the ink cartridge side can be reduced as in the first embodiment. In addition, since the ink cartridge to be mounted can be specified by the identification information, for example, even when a plurality of ink cartridges are replaced and used, it is accurately determined, and the same printer is re-used without being used elsewhere. The total ink consumption of the ink cartridge returned to 1 can be managed with much higher accuracy than the data on the ink cartridge side. In addition, even when those ink cartridges are used in another printer or the like, the total ink consumption can be managed with a certain level of accuracy or more.

以上、本発明の実施例について説明したが、本発明のこうした実施例に何ら限定されるものではなく、発明の要旨を逸脱しない範囲内において、例えば、記憶素子80のメモリセル81やEEPROM90に代えて、誘電体メモリ(FROM)を用いる構成など、種々なる態様で実施し得ることは勿論である。   Although the embodiments of the present invention have been described above, the present invention is not limited to these embodiments of the present invention, and may be replaced with, for example, the memory cells 81 and the EEPROM 90 of the storage element 80 without departing from the gist of the invention. Of course, it can be implemented in various modes such as a configuration using a dielectric memory (FROM).

さらに、記憶素子80は、インクカートリッジ107の外に露出した構成とすることも差し支えない。記憶素子80が露出して設けられたカラーインクカートリッジ500の一例を図20に示した。このインクカートリッジ500は、ほぼ直方体として形成された容器51にインクを含浸させた多孔質体(図示しない)を収容し、上面を蓋体53により封止されている。容器51の内部には、5色のカラーインクをそれぞれ別個に収容する5つのインク収容部(例えば、インクカートリッジ107Fにおける107C、107LC、107M、107LM、107Y)が区画形成されている。容器51の底面にはホルダに装着されたときにインク供給針に対向する位置にインク供給口54が各インク色に応じて形成されている。また、インク供給口側の垂直壁55の上端には、本体側のレバーの突起に係合する張出部56が一体に形成されている。この張出部56は、壁55の両側に別個に形成されていると共にリブ56aを有している。さらに下面と壁55との間に三角形上のリブ57が形成されている。また、容器51は誤挿入防止用の凹部59を有している。   Further, the storage element 80 may be configured to be exposed outside the ink cartridge 107. An example of the color ink cartridge 500 provided with the storage element 80 exposed is shown in FIG. In the ink cartridge 500, a porous body (not shown) impregnated with ink is accommodated in a container 51 formed as a substantially rectangular parallelepiped, and the upper surface is sealed with a lid 53. Inside the container 51, five ink storage portions (for example, 107C, 107LC, 107M, 107LM, and 107Y in the ink cartridge 107F) that separately store five color inks are formed. An ink supply port 54 is formed on the bottom surface of the container 51 at a position facing the ink supply needle when mounted on the holder, according to each ink color. A protruding portion 56 is formed integrally with the upper end of the vertical wall 55 on the ink supply port side to engage with the protrusion of the lever on the main body side. The overhang portion 56 is separately formed on both sides of the wall 55 and has a rib 56a. Further, a triangular rib 57 is formed between the lower surface and the wall 55. The container 51 has a concave portion 59 for preventing erroneous insertion.

垂直壁55のインク供給口形成側には、それぞれのカートリッジ500の幅方向の中心に位置するように凹部58が形成され、ここに回路基板31が装着されている。回路基板31は本体の接点と対向する面に複数の接点を有し、その裏面には記憶素子が実装されている。さらに、垂直壁55には回路基板31の位置決めをするための突起55a、55b、張出部55c、55dが形成されている。   On the ink supply port forming side of the vertical wall 55, a recess 58 is formed so as to be located at the center in the width direction of each cartridge 500, and the circuit board 31 is mounted here. The circuit board 31 has a plurality of contacts on a surface facing the contacts of the main body, and a storage element is mounted on the back surface. Further, the vertical wall 55 is formed with protrusions 55a and 55b for positioning the circuit board 31, and overhang portions 55c and 55d.

かかるインクカートリッジ500を用いても、回路基板31上に設けられた記憶素子に、上記の実施例同様、インク残量等のデータを、本体側のEEPROMより少ないビット数のデータとして記憶させることができる。   Even when such an ink cartridge 500 is used, the data such as the remaining ink amount can be stored in the storage element provided on the circuit board 31 as data having a smaller number of bits than the EEPROM of the main body, as in the above embodiment. it can.

さらに、上記各実施例ではカラー・インクとして、マゼンタ、シアン、イエロー、ライトシアン、ライトマゼンタの5色を用いたが他の色の組み合わせ、あるいは、さらに他の色を加えて6色や7色等にした場合にも本発明は適用され得る。また、インクカートリッジがキャリッジ上に装着されるタイプのみならず、インクカートリッジがプリンタ本体100側に固定的に装着される構成も採用可能である。   Further, in each of the above embodiments, five colors of magenta, cyan, yellow, light cyan, and light magenta were used as the color inks, but other colors are combined, or six or seven colors are added by adding other colors. The present invention can also be applied to the case where Further, not only the type in which the ink cartridge is mounted on the carriage but also a configuration in which the ink cartridge is fixedly mounted on the printer main body 100 side can be adopted.

本発明の一実施例としてのプリンタ1の要部を示す説明図である。FIG. 1 is an explanatory diagram illustrating a main part of a printer 1 as one embodiment of the present invention. 実施例におけるプリンタ1内部構成をプリントコントローラ40を中心に示すブロック図である。FIG. 2 is a block diagram illustrating an internal configuration of the printer according to the embodiment, centering on a print controller; 印刷ヘッド10におけるノズル開口部23の配列を例示する説明図である。FIG. 3 is an explanatory diagram illustrating an example of an arrangement of nozzle openings in a print head. インクカートリッジおよびカートリッジ搭載部の形状を示す斜視図である。FIG. 3 is a perspective view illustrating shapes of an ink cartridge and a cartridge mounting portion. インクカートリッジ107がカートリッジ装着部18に搭載された様子を示す断面図である。FIG. 7 is a cross-sectional view illustrating a state where the ink cartridge 107 is mounted on the cartridge mounting unit 18. インクカートリッジ107K,107Fに内蔵の記憶素子の構成を示すブロック図である。FIG. 7 is a block diagram illustrating a configuration of a storage element built in the ink cartridges 107K and 107F. 記憶素子80へのデータの書き込みの様子を示す説明図である。FIG. 4 is an explanatory diagram showing a state of writing data to a storage element 80. 黒用のインクカートリッジ107Kに内蔵の記憶素子80におけるデータ配列を示す説明図である。FIG. 5 is an explanatory diagram showing a data array in a storage element 80 built in a black ink cartridge 107K. カラー用のインクカートリッジ107Fに内蔵の記憶素子80におけるデータ配列を示す説明図である。FIG. 7 is an explanatory diagram showing a data array in a storage element 80 built in a color ink cartridge 107F. プリンタ1のプリントコントローラ40に設けられたEEPROM90におけるデータ配列を示す説明図である。FIG. 3 is an explanatory diagram showing a data array in an EEPROM provided in a print controller of the printer. インク残量を算出する処理を含む印刷処理ルーチンを示すフローチャートである。9 is a flowchart illustrating a printing process routine including a process for calculating the remaining amount of ink. パワーダウン命令が出されたときに割込により実行される退避処理ルーチンを示すフローチャートである。It is a flowchart which shows the evacuation process routine performed by interruption when a power down command is issued. インクカートリッジの装着時に実行される装着時処理ルーチンを示すフローチャートである。9 is a flowchart illustrating a mounting process routine that is executed when the ink cartridge is mounted. 32ビットデータの8ビットデータへの換算の様子を示す説明図である。FIG. 9 is an explanatory diagram showing a state of conversion of 32-bit data to 8-bit data. 第2実施例において用いられる制御IC200の接続状態を示すブロック図である。FIG. 9 is a block diagram showing a connection state of a control IC 200 used in the second embodiment. 第2実施例における制御基板205などの配置を示す説明図である。FIG. 11 is an explanatory diagram illustrating an arrangement of a control board 205 and the like in a second embodiment. 第2実施例における印刷処理の終了時などに実行される処理の内容を示すフローチャートである。9 is a flowchart illustrating the contents of processing executed at the end of printing processing in the second embodiment. 電源オン時や、カートリッジ装着時に実行される処理の内容を示すフローチャートである。9 is a flowchart showing the contents of processing executed when the power is turned on or when a cartridge is mounted. 識別情報としてのシリアルナンバを用いたテーブルの一例を示す説明図である。FIG. 9 is an explanatory diagram showing an example of a table using a serial number as identification information. カラーインクカートリッジの他の構成例を示す斜視図である。FIG. 10 is a perspective view illustrating another configuration example of the color ink cartridge.

符号の説明Explanation of reference numerals

1…プリンタ
5…プリントエンジン
10…印刷ヘッド
11…紙送り機構
12…キャリッジ機構
17…圧電振動子
18…カートリッジ装着部
23…ノズル開口部
32…圧力発生室
40…プリントコントローラ
43…インターフェース
44…RAM
44A…受信バッファ
44B…中間バッファ
44C…出力バッファ
45…ROM
46…制御部
47…発振回路
48…駆動信号発生回路
49…パラレル入出力インターフェース
50…素子駆動回路
80…記憶素子
81…メモリセル
82…ライト・リード制御部
83…アドレスカウンタ
90…EEPROM
91…電源
92…パネルスイッチ
92a…パワースイッチ
92b…カートリッジスイッチ
92c…クリーニングスイッチ
95…アドレスデコーダ
100…プリンタ本体
101…キャリッジ
102…タイミングベルト
103…キャリッジモータ
104…ガイド部材
105…印刷用紙
106…紙送りローラ
107K,107F…インクカートリッジ
108…キャッピング装置
109…ワイピング装置
116…紙送りモータ
117K…インク収容室
171…カートリッジ本体
172…側枠部
173…凹部
174…接続端子
175…インク供給部
181…針
182…カートリッジガイド
183…凹部
184…内壁
185…電極
186…コネクタ
187…底部
188…後壁部
189…係合具
191…支持軸
192…固定レバー
193…係止部
200…制御IC
205…制御基板
210…RAM
250…取付部
286…コネクタ
650…第1の記憶領域
660…第2の記憶領域
750…第1の記憶領域
760…第2の記憶領域
DESCRIPTION OF SYMBOLS 1 ... Printer 5 ... Print engine 10 ... Print head 11 ... Paper feed mechanism 12 ... Carriage mechanism 17 ... Piezoelectric vibrator 18 ... Cartridge mounting part 23 ... Nozzle opening part 32 ... Pressure generation chamber 40 ... Print controller 43 ... Interface 44 ... RAM
44A: reception buffer 44B: intermediate buffer 44C: output buffer 45: ROM
46 ... Control unit 47 ... Oscillation circuit 48 ... Drive signal generation circuit 49 ... Parallel input / output interface 50 ... Element drive circuit 80 ... Storage element 81 ... Memory cell 82 ... Write / read control unit 83 ... Address counter 90 ... EEPROM
91 Power supply 92 Panel switch 92a Power switch 92b Cartridge switch 92c Cleaning switch 95 Address decoder 100 Printer body 101 Carriage 102 Timing belt 103 Carriage motor 104 Guide member 105 Printing paper 106 Paper feed Rollers 107K, 107F Ink cartridge 108 Capping device 109 Wiping device 116 Paper feed motor 117K Ink storage chamber 171 Cartridge main body 172 Side frame 173 Depression 174 Connection terminal 175 Ink supply 181 Needle 182 ... Cartridge guide 183 ... Concave part 184 ... Inner wall 185 ... Electrode 186 ... Connector 187 ... Bottom part 188 ... Rear wall part 189 ... Engagement tool 191 ... Support shaft 192 ... Fixed lever 1 93: locking part 200: control IC
205: control board 210: RAM
250 mounting part 286 connector 650 first storage area 660 second storage area 750 first storage area 760 second storage area

Claims (32)

インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置であって、
書き換え可能な本体側メモリと、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記本体側メモリに記憶する情報書込手段と、
前記インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込むメモリ書込手段と
を備えた印刷装置。
A printing apparatus which can be mounted with a cartridge containing ink and having a rewritable nonvolatile memory, and performs printing by transferring the ink of the cartridge to a print medium,
Rewritable main unit memory,
Information writing means for storing information on the amount of ink in the cartridge consumed along with execution of printing on the print medium as data of a predetermined number of bits in the main body side memory;
A memory writing unit that converts the information on the ink amount into data having a smaller number of bits than the number of bits and writes the converted data into a nonvolatile memory provided in the cartridge.
請求項1記載の印刷装置であって、
前記メモリ書込手段は、前記情報書込手段が書き込むデータの下位ビットを削除することにより、前記変換を行なう手段である印刷装置。
The printing device according to claim 1,
The printing apparatus, wherein the memory writing unit performs the conversion by deleting lower-order bits of data written by the information writing unit.
請求項1記載の印刷装置であって、
前記メモリ書込手段は、前記情報書込手段が書き込むデータを、割合を示すデータに換算することにより、前記変換を行なう手段である印刷装置。
The printing device according to claim 1,
A printing apparatus, wherein the memory writing unit performs the conversion by converting data written by the information writing unit into data indicating a ratio.
請求項1記載の印刷装置であって、
電源が投入されたとき、前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された変換後のデータとの対応関係を判定する判定手段と、
該判定手段により両者が対応していると判定されたとき、前記本体側メモリに記憶された前記ビット数のデータを用いて、その後のインク量に関する処理を行なわせるインク量処理制御手段と
を備える印刷装置。
The printing device according to claim 1,
When power is turned on, a determination unit that determines a correspondence relationship between the information on the ink amount stored in the main body side memory and the converted data stored in the nonvolatile memory,
An ink amount processing control unit for performing a process relating to the subsequent ink amount using the data of the number of bits stored in the main body side memory when the determination unit determines that both correspond to each other. Printing device.
請求項1記載の印刷装置であって、
電源が投入されたとき、前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された変換後のデータとの対応関係を判定する判定手段と、
該判定手段により両者が対応していないと判定されたとき、前記不揮発性メモリに記憶された前記ビット数のデータを換算して、該データに対応するインク量に関する情報を前記本体側メモリに前記所定ビット数のデータとして書き込むと共に、該データを用いてその後のインク量に関する処理を行なわせるインク量処理制御手段と
を備える印刷装置。
The printing device according to claim 1,
When power is turned on, a determination unit that determines a correspondence relationship between the information on the ink amount stored in the main body side memory and the converted data stored in the nonvolatile memory,
When the determination unit determines that the two do not correspond to each other, the data of the number of bits stored in the non-volatile memory is converted, and information regarding the ink amount corresponding to the data is stored in the main body side memory. An ink amount processing control unit that writes the data as a predetermined number of bits of data and uses the data to perform processing relating to the subsequent amount of ink.
請求項1記載の印刷装置であって、
前記カートリッジの不揮発性メモリは、該カートリッジを識別する識別情報を記憶する領域を有し、更に、
電源投入時および/または前記カートリッジの交換時に、該不揮発性メモリに記憶された前記識別情報を読み出す識別情報読出手段と、
該読み出した識別情報を保存しておく識別情報保存手段と、
該読み出した識別情報と前記保存されていた識別情報とを比較して、両者の一致を判定する一致判定手段と、
該判定手段により両者が一致していると判定されたとき、前記本体側メモリに記憶された前記ビット数のデータを用いて、その後のインク量に関する処理を行なわせるインク量処理制御手段と
を備える印刷装置。
The printing device according to claim 1,
Volatile memory of the cartridge has an area that memorize the identification information identifying the cartridge, further,
Identification information reading means for reading the identification information stored in the nonvolatile memory when power is turned on and / or when the cartridge is replaced;
Identification information storage means for storing the read identification information;
Comparing the read identification information with the stored identification information to determine a match between the two;
An ink amount processing control unit for performing a process relating to the subsequent ink amount using the data of the number of bits stored in the main body side memory when the determination unit determines that the two match. Printing device.
請求項1記載の印刷装置であって、
前記カートリッジの不揮発性メモリは、該カートリッジを識別する識別情報を記憶する領域を有し、更に、
電源投入時および/または前記カートリッジの交換時に、該不揮発性メモリに記憶された前記識別情報を読み出す識別情報読出手段と、
該読み出した識別情報を保存しておく識別情報保存手段と、
該読み出した識別情報と前記保存されていた識別情報とを比較して、両者の一致を判定する一致判定手段と、
該判定手段により両者が一致していないと判定されたとき、前記不揮発性メモリに記憶された前記ビット数のデータを換算して、該データに対応するインク量に関する情報を前記本体側メモリに前記所定ビット数のデータとして書き込むと共に、該データを用いてその後のインク量に関する処理を行なわせるインク量処理制御手段と
を備える印刷装置。
The printing device according to claim 1,
Volatile memory of the cartridge has an area that memorize the identification information identifying the cartridge, further,
Identification information reading means for reading the identification information stored in the nonvolatile memory when power is turned on and / or when the cartridge is replaced;
Identification information storage means for storing the read identification information;
Comparing the read identification information with the stored identification information to determine a match between the two;
When the determination unit determines that the two do not match, the data of the number of bits stored in the non-volatile memory is converted, and information regarding the ink amount corresponding to the data is stored in the main body side memory. An ink amount processing control unit that writes the data as a predetermined number of bits of data and uses the data to perform processing relating to the subsequent amount of ink.
請求項1記載の印刷装置であって、
前記カートリッジの不揮発性メモリは、該カートリッジを識別する識別情報記憶する領域を有し、更に、
前記情報書込手段は、
電源投入時および/または前記カートリッジの交換時に、該不揮発性メモリに記憶された前記識別情報を読み出す識別情報読出手段と、
該読み出した識別情報を用い、前記インク量に関する情報を、該識別情報の異なるカートリッジ別に、本体側メモリに保存する手段と
を備え、
前記カートリッジの交換がなされ得た場合には、前記不揮発性メモリから読み出した前記識別情報を用いて、前記本体側メモリの内容を検索し、一致するカートリッジに関する前記情報が存在するか否かを判定する判定手段と、
該判定手段により一致するカートリッジに関する情報が存在すると判定された場合に、該情報を利用して、その後のインク量に関する処理を行なわせるインク量処理制御手段を備えた
印刷装置。
The printing device according to claim 1,
Volatile memory of the cartridge has an area for storing identification information for identifying the cartridge, further,
The information writing means includes:
Identification information reading means for reading the identification information stored in the nonvolatile memory when power is turned on and / or when the cartridge is replaced;
Means for using the read identification information to store the information on the ink amount in the main unit side memory for each cartridge having the different identification information,
When the cartridge can be replaced, the content of the main body side memory is searched using the identification information read from the nonvolatile memory, and it is determined whether or not the information on the matching cartridge exists. Determining means for performing
A printing apparatus comprising: an ink amount processing control unit that, when the determination unit determines that there is information about a matching cartridge, uses the information to perform a process related to the subsequent ink amount.
請求項8記載の印刷装置であって、
前記インク量処理制御手段は、前記一致するカートリッジに関する情報が存在すると判定されたとき、
前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された該カートリッジに対応した前記変換後のデータとの対応関係を判定する判定手段と、
該判定手段により両者が対応していると判定されたとき、前記その後のインク量に関する処理を、前記本体側メモリに記憶された前記一致するカートリッジについての前記ビット数のデータを用いて行なわせる手段と
を備えた印刷装置。
9. The printing device according to claim 8, wherein
The ink amount processing control means, when it is determined that there is information on the matching cartridge,
Determining means for determining a correspondence relationship between the information regarding the ink amount stored in the main body side memory and the converted data corresponding to the cartridge stored in the nonvolatile memory;
Means for causing the subsequent ink amount processing to be performed using the bit number data for the matching cartridge stored in the main body side memory when the determination means determines that both correspond to each other. A printing device comprising:
請求項8記載の印刷装置であって、
前記インク量処理制御手段は、前記一致するカートリッジに関する情報が存在すると判定されたとき、
前記本体側メモリに記憶された前記インク量に関する情報と、前記不揮発性メモリに記憶された該カートリッジに対応した変換後のデータとの対応関係を判定する判定手段と、
該判定手段により両者が対応していないと判定されたとき、前記不揮発性メモリに記憶された前記ビット数のデータを換算して該データに対応するインク量に関する情報を求める手段と、
該情報を、前記本体側メモリの前記一致したカートリッジに対応付けて、前記所定ビット数のデータとして書き込む手段と
を備えた印刷装置。
9. The printing device according to claim 8, wherein
The ink amount processing control means, when it is determined that there is information on the matching cartridge,
Determining means for determining a correspondence relationship between the information on the ink amount stored in the main body side memory and the converted data corresponding to the cartridge stored in the nonvolatile memory;
Means for converting the data of the number of bits stored in the non-volatile memory to obtain information on an ink amount corresponding to the data, when the determination means determines that the two do not correspond to each other;
Means for writing the information as data of the predetermined number of bits in association with the matched cartridge in the main body side memory.
前記本体側メモリは、前記不揮発性メモリより、大容量のメモリである請求項1記載の印刷装置。   The printing apparatus according to claim 1, wherein the main body side memory has a larger capacity than the nonvolatile memory. 前記本体側メモリは、前記不揮発性メモリより、高速なアクセスが可能なメモリである請求項1記載の印刷装置。   The printing apparatus according to claim 1, wherein the main body side memory is a memory that can be accessed at a higher speed than the nonvolatile memory. 前記メモリ書込手段は、印刷装置の電源オフ時および/または前記カートリッジの交換時に、前記情報の書込を行なう手段である請求項1記載の印刷装置。   2. The printing apparatus according to claim 1, wherein the memory writing means is a means for writing the information when a power supply of the printing apparatus is turned off and / or when the cartridge is replaced. 前記情報書込手段は、1頁分の印刷が完了した時に前記情報の書込を行なう手段である請求項1記載の印刷装置。   2. The printing apparatus according to claim 1, wherein said information writing means is means for writing said information when printing of one page is completed. 請求項1記載の印刷装置であって、
前記情報書込手段は、1以上のラスタ分の印刷が完了した時に前記情報の書込を行なう手段である印刷装置。
The printing device according to claim 1,
It said information writing means, the printing apparatus 1 or more printing raster is means for writing pre-Symbol information when completed.
請求項1記載の印刷装置であって、
前記カートリッジに収容されたインクを前記印刷媒体に吐出させる印字ヘッドと、
所定の操作を受けて、前記印字ヘッドから所定の量のインクを吐出させるヘッドクリーニングを行なうクリーニング手段と
を備えると共に、
前記情報書込手段は、該クリーニング手段が動作した時にも前記情報の書き込みを行なう手段である印刷装置。
The printing device according to claim 1,
A print head that ejects the ink contained in the cartridge onto the print medium,
Cleaning means for performing a head cleaning for discharging a predetermined amount of ink from the print head in response to a predetermined operation,
The printing apparatus, wherein the information writing unit is a unit that writes the information even when the cleaning unit operates.
請求項1記載の印刷装置であって、
前記不揮発性メモリは、シリアルアクセスによりデータの授受を行なうタイプのメモリであり、
前記メモリ書込手段は、前記情報を、アドレス指定用のクロックに同期して前記不揮発性メモリに書き込む手段である
印刷装置。
The printing device according to claim 1,
The non-volatile memory is a type of memory that transmits and receives data by serial access,
The printing device, wherein the memory writing unit is a unit that writes the information to the nonvolatile memory in synchronization with a clock for addressing.
前記本体側メモリは、前記不揮発性メモリへのデータの書き込みを直接制御する制御用IC内に設けられた請求項1記載の印刷装置。   The printing apparatus according to claim 1, wherein the main body side memory is provided in a control IC that directly controls writing of data to the nonvolatile memory. 請求項1記載の印刷装置であって、
前記カートリッジに収容されたインクを前記印刷媒体に吐出させる印字ヘッドと、
前記カートリッジは、前記印字ヘッドが設けられ前記印刷媒体に対して往復動されるキャリッジ上に装着可能であり、
前記本体側メモリは、該キャリッジ上に設けられた
印刷装置。
The printing device according to claim 1,
A print head that ejects the ink contained in the cartridge onto the print medium,
The cartridge can be mounted on a carriage provided with the print head and reciprocated with respect to the print medium,
The main body side memory is a printing device provided on the carriage.
請求項1記載の印刷装置であって、
前記カートリッジとして、黒色インクを収納した黒色インクカートリッジと、複数のカラーインクを収納したカラーインクカートリッジとを、装着可能であり、
前記メモリ書込手段は、該黒色インクカートリッジとカラーインクカートリッジの各々に備えられた前記不揮発メモリに、それぞれ前記情報を書き込む手段を備えた
印刷装置。
The printing device according to claim 1,
As the cartridge, a black ink cartridge containing black ink and a color ink cartridge containing a plurality of color inks can be mounted,
A printing apparatus comprising: a memory writing unit that writes the information into the nonvolatile memory provided in each of the black ink cartridge and the color ink cartridge.
インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置の情報を管理する方法であって、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記印刷装置の本体側に設けられた書き換え可能な本体側メモリに記憶し、
該インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込む
情報の管理方法。
A method for managing information of a printing apparatus that can be mounted with a cartridge containing ink and having a rewritable nonvolatile memory and that performs printing by transferring the ink of the cartridge to a print medium,
Information on the amount of ink in the cartridge consumed in executing printing on the print medium is stored as data of a predetermined number of bits in a rewritable main body memory provided on the main body of the printing apparatus. ,
A method of managing information, comprising converting information relating to the amount of ink into data having a smaller number of bits than the number of bits and writing the converted data into a nonvolatile memory provided in the cartridge.
インクを収容すると共に書き換え可能な不揮発性メモリを備え、印刷装置に装着して用いられるカートリッジであって、
前記不揮発性メモリは、印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報が、前記印刷装置側で扱われているビット数より少ないビット数で書き込まれる
カートリッジ。
A cartridge containing ink and having a rewritable nonvolatile memory, which is used by being mounted on a printing apparatus,
The cartridge in which the nonvolatile memory is configured to write information on the amount of ink in the cartridge consumed during execution of printing with a smaller number of bits than the number of bits handled by the printing apparatus.
請求項22記載のカートリッジであって、
前記不揮発性メモリは、前記印刷装置の電源オフ時および/または前記カートリッジの交換時に、前記情報が書き込まれるカートリッジ。
23. The cartridge of claim 22, wherein
The non-volatile memory is a cartridge in which the information is written when the power of the printing apparatus is turned off and / or when the cartridge is replaced.
前記不揮発性メモリはEEPROMである請求項22記載のカートリッジ。   23. The cartridge according to claim 22, wherein the non-volatile memory is an EEPROM. 請求項22記載のカートリッジであって、
前記不揮発性メモリは、シリアルアクセスによりデータの授受を行なうタイプのメモリであり、アドレス指定用のクロックに同期して、前記情報が書き込まれるカートリッジ。
23. The cartridge of claim 22, wherein
The non-volatile memory is a type of memory that transmits and receives data by serial access, and is a cartridge in which the information is written in synchronization with a clock for addressing.
請求項22記載のカートリッジであって、
前記書き込まれるデータは、前記印刷装置側で扱われているデータの下位ビットを除いたデータであるカートリッジ。
23. The cartridge of claim 22, wherein
The cartridge in which the data to be written is data obtained by removing lower-order bits of data handled by the printing apparatus.
請求項22記載のカートリッジであって、
前記書き込まれるデータを、前記印刷装置側で扱われているデータを、割合を示すデータに換算したデータであるカートリッジ。
23. The cartridge of claim 22, wherein
A cartridge which is data obtained by converting the data to be written into data indicating a ratio of data handled by the printing apparatus.
請求項22記載のカートリッジであって、
複数種類のインクを収容するインク収容室を有し、
前記不揮発性メモリは、該インクの種類に応じて前記データが書き込まれる
カートリッジ。
23. The cartridge of claim 22, wherein
It has an ink storage chamber that stores a plurality of types of ink,
The cartridge in which the data is written in the nonvolatile memory according to the type of the ink.
請求項28記載のカートリッジであって、
前記インク収容室は、少なくとも異なる3種類のインクを収容する3つ以上に区画され、
前記不揮発性メモリは、前記各インクの量に関連する情報をそれぞれ独立して格納する複数の情報記憶領域を有し、
その複数の情報記憶領域にはそれぞれ2バイト以下の容量が割り当てられている
カートリッジ。
29. The cartridge of claim 28,
The ink containing chamber is divided into three or more containing at least three different types of ink,
The non-volatile memory has a plurality of information storage areas that independently store information related to the amount of each of the inks,
A cartridge having a capacity of 2 bytes or less assigned to each of the plurality of information storage areas.
請求項28記載のカートリッジであって、
前記インク収容室は、少なくとも異なる5種類のインクを収容する5つ以上に区画され、
前記不揮発性メモリは、前記各インクの量に関連する情報をそれぞれ独立して格納する複数の情報記憶領域を有し、
その複数の情報記憶領域にはそれぞれ2バイト以下の容量が割り当てられている
カートリッジ。
29. The cartridge of claim 28,
The ink storage chamber is divided into five or more housing at least five different types of ink,
The non-volatile memory has a plurality of information storage areas that independently store information related to the amount of each of the inks,
A cartridge having a capacity of 2 bytes or less assigned to each of the plurality of information storage areas.
インクを収容すると共に書き換え可能な不揮発性メモリを備えたカートリッジが装着可能であり、該カートリッジのインクを印刷媒体に移して印刷を行なう印刷装置の情報を扱うプログラムを、コンピュータに読み取り可能に記録した記録媒体であって、
前記印刷媒体への印刷の実行に伴って消費される前記カートリッジ内のインク量に関する情報を、所定ビット数のデータとして、前記印刷装置の本体側に設けられた書き換え可能な本体側メモリに記憶する機能と、
該インク量に関する情報を、前記ビット数より少ないビット数のデータに変換して、前記カートリッジに備えられた不揮発性メモリに書き込む機能と
をコンピュータにより実現させるプログラムを記録した記録媒体。
A cartridge that contains ink and has a rewritable nonvolatile memory can be mounted, and a program that handles information of a printing apparatus that performs printing by transferring the ink of the cartridge to a print medium is recorded in a computer-readable manner. A recording medium,
Information on the amount of ink in the cartridge consumed in executing printing on the print medium is stored as data of a predetermined number of bits in a rewritable main body memory provided in the main body of the printing apparatus. Features and
A recording medium on which a program for realizing, by a computer, a function of converting the information on the ink amount into data having a smaller number of bits than the number of bits and writing the data into a nonvolatile memory provided in the cartridge is provided.
請求項22記載のカートリッジであって、
前記カートリッジには、前記インクに代えて、印刷用のトナーが収容されており、
前記不揮発性メモリに書き込まれるインク量に関する情報は、トナー量に関する情報である
カートリッジ。
23. The cartridge of claim 22, wherein
The cartridge contains printing toner in place of the ink,
The information on the amount of ink written in the non-volatile memory is information on the amount of toner.
JP2004160862A 1998-11-26 2004-05-31 Printing device and cartridge Expired - Fee Related JP3707494B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004160862A JP3707494B2 (en) 1998-11-26 2004-05-31 Printing device and cartridge

Applications Claiming Priority (7)

Application Number Priority Date Filing Date Title
JP33633098 1998-11-26
JP33633198 1998-11-26
JP36749098 1998-12-24
JP399399 1999-01-11
JP23991599 1999-08-26
JP29602499 1999-10-18
JP2004160862A JP3707494B2 (en) 1998-11-26 2004-05-31 Printing device and cartridge

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2002179601A Division JP2003048332A (en) 1998-11-26 2002-06-20 Printer and cartridge

Publications (2)

Publication Number Publication Date
JP2004291645A true JP2004291645A (en) 2004-10-21
JP3707494B2 JP3707494B2 (en) 2005-10-19

Family

ID=27563250

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2002179601A Pending JP2003048332A (en) 1998-11-26 2002-06-20 Printer and cartridge
JP2004160862A Expired - Fee Related JP3707494B2 (en) 1998-11-26 2004-05-31 Printing device and cartridge
JP2009032137A Expired - Fee Related JP4582239B2 (en) 1998-11-26 2009-02-16 Printing device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2002179601A Pending JP2003048332A (en) 1998-11-26 2002-06-20 Printer and cartridge

Family Applications After (1)

Application Number Title Priority Date Filing Date
JP2009032137A Expired - Fee Related JP4582239B2 (en) 1998-11-26 2009-02-16 Printing device

Country Status (1)

Country Link
JP (3) JP2003048332A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128447A (en) * 2005-11-07 2007-05-24 Seiko Epson Corp Multiprocessor system and interrupt signal transmission method
JP2010221599A (en) * 2009-03-24 2010-10-07 Fujitsu Component Ltd Printer
JP2019018569A (en) * 2017-07-14 2019-02-07 船井電機株式会社 Device for determining ink amount and method thereof
WO2021095710A1 (en) * 2019-11-13 2021-05-20 ブラザー工業株式会社 Cartridge and chip for cartridge

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006192792A (en) * 2005-01-14 2006-07-27 Seiko Epson Corp Ink jet recorder and recording method
JP2008087425A (en) * 2006-10-04 2008-04-17 Seiko Epson Corp Coloring agent management device, its control method, its control program and printer
JP6150007B2 (en) * 2014-03-14 2017-06-21 セイコーエプソン株式会社 Recording device
CN106068187B (en) * 2014-03-14 2017-07-28 精工爱普生株式会社 Tape deck
JP6800821B2 (en) * 2017-08-10 2020-12-16 キヤノン株式会社 Image forming equipment, consumables management methods, and programs
JP7114872B2 (en) * 2017-10-10 2022-08-09 ブラザー工業株式会社 Liquid ejector
JP7264293B2 (en) * 2017-12-27 2023-04-25 ブラザー工業株式会社 Drum cartridge and image forming device
JP7025699B2 (en) * 2018-03-20 2022-02-25 ブラザー工業株式会社 Information processing equipment and computer programs
JP2020034656A (en) * 2018-08-28 2020-03-05 ブラザー工業株式会社 Function execution device and computer program for function execution device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62184856A (en) * 1986-02-12 1987-08-13 Canon Inc Ink ribbon cartridge
JPH08197748A (en) * 1995-01-30 1996-08-06 Copyer Co Ltd Ink jet printer
JPH091823A (en) * 1995-06-23 1997-01-07 Nec Eng Ltd Ink residual amount detection circuit of printer
JPH0974539A (en) * 1995-07-04 1997-03-18 Asahi Optical Co Ltd Recompression inhibit controller

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3880694D1 (en) * 1988-07-25 1993-06-03 Siemens Ag ARRANGEMENT FOR PRINTING DEVICES FOR MONITORING PRESSURE MEDIA CONTAINING PRESSURE MEDIUM.
JPH06103579A (en) * 1992-09-24 1994-04-15 Matsushita Electric Ind Co Ltd Disk reproducing device
JPH06187438A (en) * 1992-12-21 1994-07-08 Tokyo Gas Co Ltd Coordinate data compressing and restoring device
JPH06261337A (en) * 1993-03-05 1994-09-16 Toshiba Corp Digital signal processing circuit and inter-frame arithmetic circuit
JP3229509B2 (en) * 1995-02-21 2001-11-19 キヤノン株式会社 Inkjet printing equipment
JPH08224885A (en) * 1995-02-23 1996-09-03 Canon Inc Recorder
JPH08224886A (en) * 1995-02-23 1996-09-03 Canon Inc Ink jet recorder
JP3697785B2 (en) * 1996-08-05 2005-09-21 セイコーエプソン株式会社 Printer device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62184856A (en) * 1986-02-12 1987-08-13 Canon Inc Ink ribbon cartridge
JPH08197748A (en) * 1995-01-30 1996-08-06 Copyer Co Ltd Ink jet printer
JPH091823A (en) * 1995-06-23 1997-01-07 Nec Eng Ltd Ink residual amount detection circuit of printer
JPH0974539A (en) * 1995-07-04 1997-03-18 Asahi Optical Co Ltd Recompression inhibit controller

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007128447A (en) * 2005-11-07 2007-05-24 Seiko Epson Corp Multiprocessor system and interrupt signal transmission method
JP4687399B2 (en) * 2005-11-07 2011-05-25 セイコーエプソン株式会社 Multiprocessor system and data backup method
JP2010221599A (en) * 2009-03-24 2010-10-07 Fujitsu Component Ltd Printer
JP2019018569A (en) * 2017-07-14 2019-02-07 船井電機株式会社 Device for determining ink amount and method thereof
JP7172208B2 (en) 2017-07-14 2022-11-16 船井電機株式会社 Apparatus and method for determining amount of ink
WO2021095710A1 (en) * 2019-11-13 2021-05-20 ブラザー工業株式会社 Cartridge and chip for cartridge
JP2021075016A (en) * 2019-11-13 2021-05-20 ブラザー工業株式会社 Cartridge and chip for cartridge
JP7028233B2 (en) 2019-11-13 2022-03-02 ブラザー工業株式会社 Cartridges and chips for cartridges

Also Published As

Publication number Publication date
JP2003048332A (en) 2003-02-18
JP3707494B2 (en) 2005-10-19
JP2009101709A (en) 2009-05-14
JP4582239B2 (en) 2010-11-17

Similar Documents

Publication Publication Date Title
KR100483882B1 (en) Printer and cartridge
JP4582239B2 (en) Printing device
JP3963777B2 (en) Printer, method for managing printer information, and printer
JP4314702B2 (en) Printing apparatus, writing method, and printer
US7393092B2 (en) Ink cartridge and printer using the same
JP4442711B2 (en) Ink container and printing apparatus using the same
JP2000218818A (en) Ink container and printer using the same
JP2002144603A (en) Ink container and printer using the ink container
JP4488025B2 (en) Ink container and printing apparatus using the same

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041109

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050111

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050712

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050725

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080812

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090812

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090812

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100812

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110812

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120812

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130812

Year of fee payment: 8

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees