[go: up one dir, main page]

JP2008068478A - Printing apparatus and printing apparatus control method - Google Patents

Printing apparatus and printing apparatus control method Download PDF

Info

Publication number
JP2008068478A
JP2008068478A JP2006247885A JP2006247885A JP2008068478A JP 2008068478 A JP2008068478 A JP 2008068478A JP 2006247885 A JP2006247885 A JP 2006247885A JP 2006247885 A JP2006247885 A JP 2006247885A JP 2008068478 A JP2008068478 A JP 2008068478A
Authority
JP
Japan
Prior art keywords
memory
cover
printing apparatus
data
clock signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2006247885A
Other languages
Japanese (ja)
Inventor
Kiyoshi Mukoyama
潔 向山
Mitsugi Kiriishi
貢 切石
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 JP2006247885A priority Critical patent/JP2008068478A/en
Publication of JP2008068478A publication Critical patent/JP2008068478A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Ink Jet (AREA)

Abstract

【課題】メモリ間で送受信されるデータをメモリに適切に格納できる印刷装置、及び、印刷装置の制御方法を提供することにある。
【解決手段】(a)第一メモリを有する印刷装置本体と、(b)該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、(c)開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、(d)該カバーの開閉を検知するカバーセンサと、(e)前記第一メモリと前記第二メモリが同期通信するためのクロック信号、を発生するクロック信号発生部と、(f)前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止する制御部と、(g)を備えたことを特徴とする印刷装置。
【選択図】図10
A printing apparatus capable of appropriately storing data transmitted and received between memories in the memory and a method for controlling the printing apparatus.
(A) a printing apparatus main body having a first memory; and (b) a cartridge detachable from the printing apparatus main body, the first memory being mounted on the printing apparatus main body. A cartridge having a second memory capable of communication; (c) a cover that can be opened and closed; and a cover that can be attached and detached when the cartridge is opened; and (d) a cover sensor that detects opening and closing of the cover. (E) a clock signal generator for generating a clock signal for synchronous communication between the first memory and the second memory; and (f) when the cover sensor detects that the cover is opened, A printing apparatus comprising: a control unit that stops generation of the clock signal by the clock signal generation unit; and (g).
[Selection] Figure 10

Description

本発明は、印刷装置、及び、印刷装置の制御方法に関する。   The present invention relates to a printing apparatus and a printing apparatus control method.

印刷装置として、印刷装置本体と、該印刷装置本体に対して着脱可能なカートリッジと、開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、を備えたものがある。そして、前記印刷装置本体は第一メモリを、前記カートリッジは第二メモリを、それぞれ有しており、カートリッジが印刷装置本体に装着された際に、前記第一メモリと前記第二メモリが通信可能な構成となっている。   Some printing apparatuses include a printing apparatus main body, a cartridge that can be attached to and detached from the printing apparatus main body, and a cover that can be opened and closed, and that can be attached and detached when the cartridge is opened. . The printing apparatus main body has a first memory, and the cartridge has a second memory. When the cartridge is attached to the printing apparatus main body, the first memory and the second memory can communicate with each other. It has become a structure.

また、前記印刷装置は、前記第一メモリと前記第二メモリが同期通信するためのクロック信号、を発生するクロック信号発生部、を備えており、このクロック信号発生部が発生したクロック信号に同期して、第一メモリと第二メモリの間で、データが送受信される。
特開2002−207401号公報
The printing apparatus includes a clock signal generator that generates a clock signal for synchronous communication between the first memory and the second memory, and is synchronized with the clock signal generated by the clock signal generator. Data is transmitted and received between the first memory and the second memory.
JP 2002-207401 A

ところで、前記印刷装置本体に対して着脱可能な前記カートリッジが、前記第一メモリと前記第二メモリの間の通信の実行中に、前記カバーが開いて取り外されることがある(この事象を、いわゆる活線挿抜と呼ぶ)。そして、カートリッジの取り外し中に前記第一メモリと第二メモリの間でデータが送受信されると、このデータの送受信が正常に実行されずに、前記データが第一メモリまたは第二メモリに適切に格納されない恐れがある。   By the way, the cartridge that can be attached to and detached from the printing apparatus main body may be removed by opening the cover during the communication between the first memory and the second memory (this phenomenon is called a so-called phenomenon). Called hot insertion / extraction). If data is transmitted / received between the first memory and the second memory while the cartridge is being removed, the data is not properly transmitted to the first memory or the second memory. May not be stored.

例えば、カートリッジの取り外し中に第一メモリと第二メモリの間でデータが送受信されると、前記データが、第一メモリまたは第二メモリの、本来ならデータの書き込みがされない領域に、誤って書き込まれる恐れがある。   For example, when data is transmitted / received between the first memory and the second memory while the cartridge is being removed, the data is erroneously written in an area of the first memory or the second memory where data is not originally written. There is a fear.

本発明は、かかる課題に鑑みてなされたものであり、その目的とするところは、メモリ間で送受信されるデータをメモリに適切に格納できる印刷装置、及び、印刷装置の制御方法を提供することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide a printing apparatus capable of appropriately storing data transmitted and received between memories in the memory, and a control method for the printing apparatus. It is in.

前記課題を解決するために、主たる本発明は、
第一メモリを有する印刷装置本体と、
該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、
開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、
該カバーの開閉を検知するカバーセンサと、
前記第一メモリと前記第二メモリが同期通信するためのクロック信号、を発生するクロック信号発生部と、
前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止する制御部と、
を備えたことを特徴とする印刷装置である。
In order to solve the above problems, the main present invention is:
A printing apparatus main body having a first memory;
A cartridge that is detachable from the printing apparatus main body, and has a second memory that can communicate with the first memory when mounted on the printing apparatus main body;
A cover that can be opened and closed, and a cover that can be attached and detached when the cartridge is opened;
A cover sensor for detecting opening and closing of the cover;
A clock signal generator for generating a clock signal for synchronous communication between the first memory and the second memory;
When the cover sensor detects that the cover is opened, a control unit that stops generation of the clock signal by the clock signal generation unit;
A printing apparatus comprising:

本発明の他の特徴については、本明細書及び添付図面の記載により明らかにする。   Other features of the present invention will become apparent from the description of the present specification and the accompanying drawings.

本明細書及び添付図面の記載により少なくとも次のことが明らかにされる。   At least the following will be made clear by the description of the present specification and the accompanying drawings.

第一メモリを有する印刷装置本体と、
該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、
開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、
該カバーの開閉を検知するカバーセンサと、
前記第一メモリと前記第二メモリが同期通信するためのクロック信号、を発生するクロック信号発生部と、
前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止する制御部と、
を備えたことを特徴とする印刷装置。
このような印刷装置によれば、クロック信号の発生を中止することにより、カバーが開いてカートリッジが取り外される際に、第一メモリと第二メモリの間でデータの送受信が実行されない。このため、例えば、第二メモリの、本来は非書込領域である領域に、誤ってデータが書き込まれることを防止することが可能となる。従って、上記の印刷装置によれば、第一メモリと第二メモリの間で送受信されるデータを、いわゆる活線挿抜が発生しても、これらのメモリに適切に格納することが可能となる。
A printing apparatus main body having a first memory;
A cartridge that is detachable from the printing apparatus main body, and has a second memory that can communicate with the first memory when mounted on the printing apparatus main body;
A cover that can be opened and closed, and a cover that can be attached and detached when the cartridge is opened;
A cover sensor for detecting opening and closing of the cover;
A clock signal generator for generating a clock signal for synchronous communication between the first memory and the second memory;
When the cover sensor detects that the cover is opened, a control unit that stops generation of the clock signal by the clock signal generation unit;
A printing apparatus comprising:
According to such a printing apparatus, when the generation of the clock signal is stopped, data transmission / reception is not performed between the first memory and the second memory when the cover is opened and the cartridge is removed. For this reason, for example, it is possible to prevent data from being erroneously written in an area that is originally a non-write area of the second memory. Therefore, according to the printing apparatus described above, data transmitted / received between the first memory and the second memory can be appropriately stored in these memories even if so-called hot-swapping occurs.

また、かかる印刷装置あって、前記クロック信号に同期して、前記第一メモリと前記第二メモリの間でデータが送受信され、前記制御部は、前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生と、前記データの送受信と、を中止することが望ましい。   In the printing apparatus, data is transmitted and received between the first memory and the second memory in synchronization with the clock signal, and the cover sensor detects that the cover is opened. In this case, it is desirable to stop the generation of the clock signal by the clock signal generation unit and the transmission / reception of the data.

また、かかる印刷装置あって、前記制御部は、前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止することが望ましい。   Further, in the printing apparatus, when the control unit detects that the cover is opened when data is transmitted to the second memory, the clock signal is generated by the clock signal generation unit. It is desirable to stop the occurrence of

また、かかる印刷装置あって、前記第二メモリに送信されるデータは、前記第二メモリに書き込まれない非書込データと、前記第二メモリに書き込まれる書込データと、で構成されたデータ群であり、該データ群は、前記非書込データ、前記書込データの順にシリアル伝送され、前記データ群毎に前記第二メモリにシリアル伝送するためのリセット信号、を発生するリセット信号発生部を備え、前記制御部は、前記カバーが開いたことを前記カバーセンサが検知したときには、前記リセット信号発生部に前記リセット信号を発生させ、かつ、前記クロック信号発生部による前記クロック信号の発生を中止することが望ましい。かかる場合には、ノイズによって誤ってクロック信号が出力されても、このクロック信号に同期して第二メモリに送信されるデータは非書込データであるから、第二メモリの非書込領域に書き込みデータが誤って書き込まれることを防止できる。   In this printing apparatus, the data transmitted to the second memory is data composed of non-write data that is not written to the second memory and write data that is written to the second memory. A reset signal generator for generating a reset signal for serial transmission of the non-write data and the write data in order, and for serial transmission to the second memory for each data group And the control unit causes the reset signal generation unit to generate the reset signal when the cover sensor detects that the cover is opened, and causes the clock signal generation unit to generate the clock signal. It is desirable to cancel. In such a case, even if the clock signal is erroneously output due to noise, the data transmitted to the second memory in synchronization with this clock signal is non-write data, so that the non-write area of the second memory Write data can be prevented from being written by mistake.

また、かかる印刷装置あって、前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、前記カバーが開いたことを前記カバーセンサが検知した後に前記第一メモリと前記第二メモリが通信する際に、前記カバーが開いたことを前記カバーセンサが検知したときに前記第一メモリに記憶された前記書込データが、前記第二メモリに送信されて書き込まれることが望ましい。かかる場合には、いわゆる活線挿抜の発生の際に第二メモリに書き込まれなかった書込データが、活線挿抜後にカートリッジに適切に書き込まれることとなる。   In the printing apparatus, when the cover sensor detects that the cover is opened when data is transmitted to the second memory, the cover sensor detects that the cover is opened. When the first memory and the second memory communicate with each other, the write data stored in the first memory is transmitted to the second memory when the cover sensor detects that the cover is opened. It is desirable to be written. In such a case, write data that has not been written to the second memory at the time of so-called hot-swap is properly written to the cartridge after hot-swap.

また、かかる印刷装置あって、前記第一メモリと前記第二メモリには、前記カートリッジを識別するための識別情報が記憶されており、前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、前記カバーが開いたことを前記カバーセンサが検知した後に前記第一メモリと前記第二メモリが通信し、かつ、前記第一メモリの前記識別情報と前記第二メモリの前記識別情報とが同じである際に、前記カバーが開いたことを前記カバーセンサが検知したときに前記第一メモリに記憶された前記書込データが、前記第二メモリに送信されて書き込まれることが望ましい。   Further, in the printing apparatus, identification information for identifying the cartridge is stored in the first memory and the second memory, and when the data is transmitted to the second memory, the cover When the cover sensor detects that the cover has opened, the first memory and the second memory communicate after the cover sensor detects that the cover has been opened, and the identification information of the first memory And the identification information of the second memory is the same, the write data stored in the first memory when the cover sensor detects that the cover is opened is the second memory It is desirable to be sent and written to.

また、かかる印刷装置あって、前記カートリッジは、インクを収容したインクカートリッジであり、前記書込データは、前記インクの使用量であることが望ましい。   In the printing apparatus, it is preferable that the cartridge is an ink cartridge containing ink, and the writing data is a usage amount of the ink.

さらに、第一メモリを有する印刷装置本体と、
該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、
開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、
該カバーの開閉を検知するカバーセンサと、
を備えた印刷装置の制御方法であって、
前記第一メモリと前記第二メモリの間で同期通信するためのクロック信号、を発生するステップと、
前記カバーセンサにより前記カバーが開いたことを検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止するステップと、
を備えたことを特徴とする印刷装置の制御方法。
このような印刷装置の制御方法によれば、第一メモリと第二メモリの間で送受信されるデータを、いわゆる活線挿抜が発生しても、これらのメモリに適切に格納することが可能となる。
Furthermore, a printing apparatus main body having a first memory;
A cartridge that is detachable from the printing apparatus main body, and has a second memory that can communicate with the first memory when mounted on the printing apparatus main body;
A cover that can be opened and closed, and a cover that can be attached and detached when the cartridge is opened;
A cover sensor for detecting opening and closing of the cover;
A method for controlling a printing apparatus comprising:
Generating a clock signal for synchronous communication between the first memory and the second memory;
When detecting that the cover is opened by the cover sensor, stopping the generation of the clock signal by the clock signal generation unit;
A control method for a printing apparatus, comprising:
According to such a control method of the printing apparatus, data transmitted and received between the first memory and the second memory can be appropriately stored in these memories even if so-called hot-swapping occurs. Become.

===印刷装置の構成===
『印刷装置』の一実施形態であるインクジェットプリンタ1(単に、プリンタ1とも呼ぶ)の構成について、図1、図2、図3A及び図3Bを用いて説明する。
=== Configuration of Printing Apparatus ===
A configuration of an inkjet printer 1 (also simply referred to as a printer 1), which is an embodiment of a “printing apparatus”, will be described with reference to FIGS. 1, 2, 3A, and 3B.

図1は、プリンタ1の外観を示した斜視図である。図2は、プリンタ1の内部構成を概略的に示した図である。図3Aは、カートリッジカバー27が閉じている状態を示す図であり、図3Bは、カートリッジカバー27が開いて、インクカートリッジの着脱の途中の状態を示す図である。   FIG. 1 is a perspective view showing the appearance of the printer 1. FIG. 2 is a diagram schematically showing the internal configuration of the printer 1. 3A is a diagram illustrating a state in which the cartridge cover 27 is closed, and FIG. 3B is a diagram illustrating a state in which the cartridge cover 27 is opened and the ink cartridge is being attached or detached.

プリンタ1は、インクを紙Sに吐出して、当該紙Sに画像を印刷するためのものであり、その内部に、図2に示すように、キャリッジ41と、このキャリッジ41に搭載されたヘッド21と、キャリッジ41を紙Sに対して所定の間隔を保持しつつ相対的に平行に移動させる駆動機構24と、紙Sをキャリッジ41の移動方向と直交する方向に沿って搬送する搬送機構36と、制御部50(詳細は、後述する)と、を備えている。   The printer 1 ejects ink onto a paper S and prints an image on the paper S. Inside the printer 1, as shown in FIG. 2, a carriage 41 and a head mounted on the carriage 41 are provided. 21, a drive mechanism 24 that moves the carriage 41 relatively parallel to the paper S while maintaining a predetermined interval, and a transport mechanism 36 that transports the paper S along a direction orthogonal to the moving direction of the carriage 41. And a control unit 50 (details will be described later).

ヘッド21は、各色のインクを紙Sに向けて吐出して当該紙S上にドットを形成して、紙Sに画像を印刷する。   The head 21 ejects ink of each color toward the paper S to form dots on the paper S, and prints an image on the paper S.

駆動機構24は、キャリッジ41に接続されたタイミングベルト45と、このタイミングベルト45に噛合されたプーリ44と、このプーリ44を回転駆動するキャリッジモータ42と、キャリッジ41の移動を案内するガイドレール46と、キャリッジ41の位置を検出するリニア式エンコーダとしてリニア式エンコーダ符号板51およびこのリニア式エンコーダ符号板51を読み取る検出部52と、を備えている。この駆動機構24は、キャリッジモータ42を駆動してプーリ44を介してタイミングベルト45を回転させる。これにより、キャリッジ41は、紙Sに対してガイドレール46に沿って相対的に移動する。キャリッジモータ42は、制御部50からの制御信号により駆動制御される。   The drive mechanism 24 includes a timing belt 45 connected to the carriage 41, a pulley 44 meshed with the timing belt 45, a carriage motor 42 that rotationally drives the pulley 44, and a guide rail 46 that guides the movement of the carriage 41. And a linear encoder code plate 51 as a linear encoder for detecting the position of the carriage 41, and a detection unit 52 for reading the linear encoder code plate 51. The drive mechanism 24 drives the carriage motor 42 to rotate the timing belt 45 via the pulley 44. As a result, the carriage 41 moves relative to the paper S along the guide rail 46. The carriage motor 42 is driven and controlled by a control signal from the control unit 50.

搬送機構36は、プラテン14と、搬送ローラ17Aと、当該搬送ローラ17Aを回転駆動する搬送モータ15と、紙Sが所定位置に到達したか否かを検出する紙検知センサ53と、搬送ローラ17Aの回転量を検出するロータリ式エンコーダ56とを備えている。プラテン14は、ヘッド21に対向して配置されている。搬送モータ15が駆動すると、搬送ローラ17Aが回転して、紙Sがプラテン14上を搬送される。搬送モータ15は、制御部50からの制御信号により駆動制御される。   The transport mechanism 36 includes a platen 14, a transport roller 17A, a transport motor 15 that rotationally drives the transport roller 17A, a paper detection sensor 53 that detects whether or not the paper S has reached a predetermined position, and the transport roller 17A. And a rotary encoder 56 for detecting the amount of rotation. The platen 14 is disposed to face the head 21. When the carry motor 15 is driven, the carry roller 17 </ b> A rotates and the paper S is carried on the platen 14. The conveyance motor 15 is driven and controlled by a control signal from the control unit 50.

印刷時には、紙Sが搬送ローラ17Aにより間欠的に所定の搬送量で搬送され、その間欠的な搬送の合間にキャリッジ41が、搬送ローラ17Aによる搬送方向に対して交差する方向に沿って移動しながら、ヘッド21から紙Sに向けてインクが吐出されて印刷が施される。   During printing, the paper S is intermittently transported by a predetermined transport amount by the transport roller 17A, and the carriage 41 moves along a direction intersecting the transport direction by the transport roller 17A between the intermittent transports. However, printing is performed by ejecting ink from the head 21 toward the paper S.

また、図1に示すように、プリンタ1の下部の前面には、『カバー』の一例であるカートリッジカバー27が設けられている。このカートリッジカバー27は、図3Aと図3Bに示すように、ユーザによる『カートリッジ』の一例であるインクカートリッジINCの取り付け時又は交換時に、開閉可能なカバーであり、プリンタ1の下部の前面の左右に設けられている。そして、このインクカートリッジINCは、インクを収容しており、このインクは、上述のヘッド21に供給される。   Further, as shown in FIG. 1, a cartridge cover 27, which is an example of a “cover”, is provided on the lower front surface of the printer 1. As shown in FIGS. 3A and 3B, the cartridge cover 27 is a cover that can be opened and closed when a user installs or replaces an ink cartridge INC, which is an example of a “cartridge”. Is provided. The ink cartridge INC contains ink, and the ink is supplied to the head 21 described above.

また、カートリッジカバー27の近傍には、このカートリッジカバー27の開閉を検知するカバーセンサ29(図2)が設けられている。このカバーセンサ29は、光を発する発光部と、発光部が発した光を受ける受光部と、を備えた光学センサである。そして、カートリッジカバー27が閉じている際には、発光部から発せられた光がカートリッジカバー27に遮断されることにより、受光部が前記光を受けず、カバーセンサ29はオフ状態となる。一方で、カートリッジカバー27が開いている際には、発光部から発せられた光を、受光部が受けることにより、カバーセンサ29がオン状態となる。   A cover sensor 29 (FIG. 2) for detecting the opening / closing of the cartridge cover 27 is provided in the vicinity of the cartridge cover 27. The cover sensor 29 is an optical sensor including a light emitting unit that emits light and a light receiving unit that receives light emitted from the light emitting unit. When the cartridge cover 27 is closed, light emitted from the light emitting unit is blocked by the cartridge cover 27, so that the light receiving unit does not receive the light and the cover sensor 29 is turned off. On the other hand, when the cartridge cover 27 is opened, the cover sensor 29 is turned on when the light receiving unit receives light emitted from the light emitting unit.

さらに、プリンタ1の前面部には、操作パネル2が設けられている。そして、この操作パネル2には、ユーザ等がプリンタ1の電源のオン・オフを切り替えできる電源切替ボタンが、設けられている。   Further, an operation panel 2 is provided on the front surface of the printer 1. The operation panel 2 is provided with a power switch button that allows a user or the like to switch on / off the power of the printer 1.

===インクカートリッジの構成等===
図4Aは、インクカートリッジINCを示した図である。図4Bは、該インクカートリッジINCが着脱されるカートリッジ着脱部28を示した図である。
=== Configuration of Ink Cartridge etc. ===
FIG. 4A is a diagram illustrating the ink cartridge INC. FIG. 4B is a diagram showing the cartridge attaching / detaching portion 28 to which the ink cartridge INC is attached / detached.

プリンタ1には、それぞれインクの色が異なる4つのインクカートリッジINC(具体的には、ブラックのインクカートリッジINC1、イエローのインクカートリッジINC2、マゼンタのインクカートリッジINC3、シアンのインクカートリッジINC4)が取り付け可能であり、これら4つのインクカートリッジINCの構成は同様であるので、ここでは、ブラックのインクカートリッジINC1を例に挙げて、説明する。なお、本実施形態においては、プリンタ1のうちの、4つのインクカートリッジINCを除いた部分が、『印刷装置本体』としてのプリンタ本体に該当する。   The printer 1 can be attached with four ink cartridges INC having different ink colors (specifically, a black ink cartridge INC1, a yellow ink cartridge INC2, a magenta ink cartridge INC3, and a cyan ink cartridge INC4). Since these four ink cartridges INC have the same configuration, the black ink cartridge INC1 will be described as an example here. In the present embodiment, a portion of the printer 1 excluding the four ink cartridges INC corresponds to a printer main body as a “printing device main body”.

インクカートリッジINC1は、内部にインクを収容するインク収容部を構成するカートリッジ本体26aと、このカートリッジ本体26aの外枠部に内蔵された『第二メモリ』の一例である記憶素子26b(詳細は、後述する)と、を備えている。   The ink cartridge INC1 includes a cartridge main body 26a that forms an ink storage portion that stores ink therein, and a storage element 26b that is an example of a “second memory” built in an outer frame portion of the cartridge main body 26a (for details, see FIG. (To be described later).

カートリッジ着脱部28の内壁には、コネクタ28aが配置され、このコネクタ28aには、カートリッジ着脱部28にインクカートリッジINC1が装着したときに、記憶素子26bの接続端子26c(図4A)がそれぞれ電気的に接続する電極28bが形成されている。
そして、接続端子26cと電極28bが電気的に接続した状態で、プリンタ本体と記憶素子26bの間においてデータの送受信が可能となる。
A connector 28a is disposed on the inner wall of the cartridge attaching / detaching portion 28. When the ink cartridge INC1 is attached to the cartridge attaching / detaching portion 28, the connection terminal 26c (FIG. 4A) of the storage element 26b is electrically connected to the connector 28a. An electrode 28b connected to is formed.
In a state where the connection terminal 26c and the electrode 28b are electrically connected, data can be transmitted and received between the printer main body and the storage element 26b.

===制御部の構成===
図5は、制御部50を示したブロック図である。制御部50は、プリンタ1の制御を行うためのものであり、CPU101と、メモリ102と、『クロック信号発生部』の一例であるクロック103と、インターフェース部104と、リセット信号発生部105と、を有している。
=== Configuration of Control Unit ===
FIG. 5 is a block diagram showing the control unit 50. The control unit 50 is for controlling the printer 1, and includes a CPU 101, a memory 102, a clock 103 that is an example of a “clock signal generation unit”, an interface unit 104, a reset signal generation unit 105, have.

CPU101は、プリンタ全体の制御を行うためのものである。メモリ102は、電気的に書き換え可能なRAM102a及び『第一メモリ』であるEEPROM102b(詳細は、後述する)と、各種制御用プログラムを備えたROM102cと、を備えている。クロック103は、CPU101に対して周期的にクロック信号を発生する。インターフェース部104は、プリンタ1の外部に設けられたコンピュータ等の間でデータ(例えば、印刷処理命令、クリーニング処理命令)の送受信を行う。リセット信号発生部105は、リセット信号(後述)を発生するためのものである。   The CPU 101 is for controlling the entire printer. The memory 102 includes an electrically rewritable RAM 102a, an EEPROM 102b which is a “first memory” (details will be described later), and a ROM 102c including various control programs. The clock 103 periodically generates a clock signal for the CPU 101. The interface unit 104 transmits and receives data (for example, a print processing command and a cleaning processing command) to and from a computer or the like provided outside the printer 1. The reset signal generator 105 generates a reset signal (described later).

===メモリの構成===
4つのインクカートリッジINCの記憶素子26bの構成と、プリンタ本体のEEPROM102bの構成と、について、説明する。4つのインクカートリッジINCの記憶素子26bのデータ配列は同様な構成となっているので、ここでは、ブラックのインクカートリッジINC1の記憶素子26bのデータ配列について、説明する。
=== Configuration of memory ===
The configuration of the storage element 26b of the four ink cartridges INC and the configuration of the EEPROM 102b of the printer main body will be described. Since the data arrays of the storage elements 26b of the four ink cartridges INC have the same configuration, the data array of the storage elements 26b of the black ink cartridge INC1 will be described here.

図6Aは、インクカートリッジINC1の記憶素子26bのデータ配列を示す説明図である。インクカートリッジINC1の記憶素子26bに記憶されているデータは、「インク使用量」、「取り付け回数」、「シリアルNo」である。そして、「インク使用量」は、インクカートリッジINC1に収容されたトナーの使用量を示すデータであり、「取り付け回数」は、インクカートリッジINC1のプリンタへの取り付け回数を示すデータであり、「シリアルNo」は、個々のインクカートリッジを識別する『識別情報』を示すデータである。   FIG. 6A is an explanatory diagram showing a data array of the storage elements 26b of the ink cartridge INC1. The data stored in the storage element 26b of the ink cartridge INC1 is “ink use amount”, “number of times of attachment”, and “serial number”. The “ink usage amount” is data indicating the usage amount of the toner stored in the ink cartridge INC1, and the “number of attachments” is data indicating the number of times the ink cartridge INC1 is attached to the printer. "Is data indicating" identification information "for identifying individual ink cartridges.

図6Bは、プリンタ本体のEEPROM102bのデータ配列を示す説明図である。EEPROM102bに記憶されているデータは、各インクカートリッジINCに対応した「インク使用量」、「取り付け回数」、及び、「シリアルNo」と、「活線挿抜フラグ」と、である。「活線挿抜フラグ」は、インクカートリッジINCの記憶素子26bへのデータの送信中に、カートリッジカバー27が開いたことをカバーセンサ29が検知した際に、セットされるものである。   FIG. 6B is an explanatory diagram showing a data array of the EEPROM 102b of the printer main body. The data stored in the EEPROM 102b are “ink usage”, “number of times of attachment”, “serial No.”, and “hot-swap flag” corresponding to each ink cartridge INC. The “hot line insertion / extraction flag” is set when the cover sensor 29 detects that the cartridge cover 27 is opened during transmission of data to the storage element 26b of the ink cartridge INC.

そして、各色のインクカートリッジINCの記憶素子26bの「インク使用量」、「取り付け回数」及び「シリアルNo」は、プリンタ1の電源がオンに切り替わる際に、EEPROM102bに読み出される。また、EEPROM102bの「インク使用量」は、後述する印刷処理やクリーニング処理によってインクが消費される毎に、更新される。そして、EEPROM102bの「インク使用量」、「取り付け回数」及び「シリアルNo」のうちの「インク使用量」は、プリンタ1の電源がオフに切り替わる際に、インクカートリッジの記憶素子26bの「インク使用量」に書き込まれる。   The “ink use amount”, “attachment count”, and “serial number” of the storage element 26b of each color ink cartridge INC are read to the EEPROM 102b when the printer 1 is turned on. Further, the “ink usage” in the EEPROM 102b is updated every time ink is consumed by a printing process or a cleaning process described later. The “ink usage” of the “ink usage”, “number of times of attachment”, and “serial No.” of the EEPROM 102b is the “ink usage” of the storage element 26b of the ink cartridge when the printer 1 is turned off. Written in "amount".

===データを送受信する際のプリンタ1の動作===
本実施形態に係るプリンタ1においては、インクカートリッジINCがプリンタ本体に着脱可能な構成となっているため、該インクカートリッジINCが適切に取り付けられているか、また、インクカートリッジINCの使用が適切に行われるかを判断等するために、インクカートリッジINCの記憶素子26bと、プリンタ本体のEEPROM102bの間で、データの同期通信が行われる。以下においては、記憶素子26bとEEPROM102bの間でデータの通信が実行される際の、プリンタ1の動作について説明する。
=== Operation of Printer 1 when Data is Transmitted / Received ===
In the printer 1 according to the present embodiment, since the ink cartridge INC is configured to be detachable from the printer body, the ink cartridge INC is appropriately attached, and the ink cartridge INC is appropriately used. In order to determine whether or not the data is read, synchronous communication of data is performed between the storage element 26b of the ink cartridge INC and the EEPROM 102b of the printer main body. Hereinafter, an operation of the printer 1 when data communication is executed between the storage element 26b and the EEPROM 102b will be described.

図7は、記憶素子26bとEEPROM102bの間でデータが送受信される際の、プリンタ1の動作を示すフローチャートである。   FIG. 7 is a flowchart showing the operation of the printer 1 when data is transmitted and received between the storage element 26b and the EEPROM 102b.

プリンタ1の当該動作が実行されるときの各種動作は、主として、制御部50により実現される。特に、本実施の形態においては、ROM102cに格納されたプログラムをCPU101が処理することにより実現される。そして、このプログラムは、以下に説明される各種の動作を行うためのコードから構成されている。   Various operations when the operation of the printer 1 is executed are mainly realized by the control unit 50. In particular, this embodiment is realized by the CPU 101 processing a program stored in the ROM 102c. And this program is comprised from the code | cord | chord for performing the various operation | movement demonstrated below.

ユーザ等によって操作パネル2の電源切替ボタンが操作されて、プリンタ1の電源がオンに切り替わると、制御部50は、まず、初期化動作を実行させる(ステップS102)。この初期化動作として、例えば、制御部50は、キャリッジ41を印刷処理開始前の所定の待機位置に移動させたり、カバーセンサ29によりカートリッジカバー27が閉じているか否かを検知等する。   When the power switch button on the operation panel 2 is operated by the user or the like and the printer 1 is turned on, the control unit 50 first executes an initialization operation (step S102). As the initialization operation, for example, the control unit 50 moves the carriage 41 to a predetermined standby position before starting the printing process, or detects whether the cartridge cover 27 is closed by the cover sensor 29 or the like.

次に、制御部50は、各色のインクカートリッジの記憶素子26bに格納されたデータのデータ読み出し処理を実行する(ステップS104)。具体的には、制御部50は、図6Aに示すように、記憶素子26bの「インク使用量」、「取り付け回数」及び「シリアルNo」を読み出す。なお、本実施の形態に係るデータ読み込み処理の詳細については、後述する。   Next, the control unit 50 performs a data read process for the data stored in the storage element 26b of each color ink cartridge (step S104). Specifically, as illustrated in FIG. 6A, the control unit 50 reads “ink use amount”, “number of times of attachment”, and “serial number” of the storage element 26 b. The details of the data reading process according to the present embodiment will be described later.

次に、制御部50は、コンピュータからインターフェース部104を介して印刷処理命令を受信した場合には(ステップS106:Yes)、印刷処理を実行する(ステップS108)。すなわち、制御部50は、駆動機構24によって移動されるキャリッジ41に搭載されたヘッド21から、搬送機構36によって搬送される紙S上に、インクを吐出させる。これにより、当該紙Sに画像が印刷される。   Next, when the print processing command is received from the computer via the interface unit 104 (step S106: Yes), the control unit 50 executes the print processing (step S108). That is, the control unit 50 ejects ink from the head 21 mounted on the carriage 41 moved by the driving mechanism 24 onto the paper S conveyed by the conveyance mechanism 36. Thereby, an image is printed on the paper S.

そして、制御部50は、EEPROM102bに格納されている「インク使用量」の値を、ステップS108の印刷処理で消費されたインク量だけ増やすように、更新する(ステップS110)。   Then, the control unit 50 updates the value of “ink usage” stored in the EEPROM 102b so as to increase by the amount of ink consumed in the printing process in step S108 (step S110).

次に、制御部50は、コンピュータからインターフェース部104を介してクリーニング命令を受信した場合には(ステップS112:Yes)、クリーニング処理を実行する(ステップS114)。すなわち、制御部50は、不図示のポンプ装置に、ヘッド21からインクを吸い出させる。このため、クリーニング処理が実行されると、インクが消費されることとなる。   Next, when the cleaning command is received from the computer via the interface unit 104 (step S112: Yes), the control unit 50 executes a cleaning process (step S114). That is, the control unit 50 causes a pump device (not shown) to suck out ink from the head 21. For this reason, when the cleaning process is executed, the ink is consumed.

そして、制御部50は、EEPROM102bに格納されている「インク使用量」の値を、ステップS114のクリーニング処理で消費されたインク量だけ増やすように、更新する(ステップS116)。   Then, the control unit 50 updates the value of “ink use amount” stored in the EEPROM 102b so as to increase by the amount of ink consumed in the cleaning process in step S114 (step S116).

次に、制御部50は、インクカートリッジINCの交換がされた場合には(ステップS118:Yes)、交換後にプリンタ1に取り付けられたインクカートリッジINCの記憶素子26bに格納されたデータ(「インク使用量」、「取り付け回数」及び「シリアルNo」)を、ステップS104と同様に読み出す(ステップS120)。   Next, when the ink cartridge INC has been replaced (step S118: Yes), the control unit 50 stores the data stored in the storage element 26b of the ink cartridge INC attached to the printer 1 after the replacement (“ink use”). “Amount”, “Number of times of attachment” and “Serial No”) are read out in the same manner as in step S104 (step S120).

一方で、インクカートリッジINCの交換がされず(ステップS118:No)、かつ、ユーザ等によって操作パネル2の電源切替ボタンが操作されてプリンタ1の電源がオフに切り替わると(ステップS122:Yes)、制御部50は、電源オフ処理を実行させる(ステップS124)。   On the other hand, if the ink cartridge INC is not exchanged (step S118: No) and the power switch button on the operation panel 2 is operated by the user or the like to turn off the printer 1 (step S122: Yes), The controller 50 causes the power off process to be executed (step S124).

そして、制御部50は、電源オフ処理の際に、各色のインクカートリッジINCの記憶素子26bに、EEPROM102bのデータ(具体的には、「インク使用量」)を書き込む(ステップS126)。これにより、EEPROM102の「インク使用量」と記憶素子26bの「インク使用量」が、同じ値となる。   Then, the controller 50 writes the data (specifically, “ink usage”) of the EEPROM 102b in the storage element 26b of each color ink cartridge INC during the power-off process (step S126). As a result, the “ink usage amount” of the EEPROM 102 and the “ink usage amount” of the storage element 26 b have the same value.

このように、EEPROM102bと記憶素子26bの間で、通信が正常に実行されている場合には、記憶素子26bのうちの「インク使用量」のみが書き込みされる書込領域となり、「シリアルNo」や「取り付け回数」は書き込みされない非書込領域となる。   In this way, when the communication is normally performed between the EEPROM 102b and the storage element 26b, only the “ink usage” in the storage element 26b becomes a writing area to be written, and “Serial No”. Or “number of times of attachment” is a non-written area where data is not written.

===データの送受信中にインクカートリッジを取り外す際のプリンタの動作===
「発明が解決しようとする課題」の項で説明したように、プリンタ本体に対して着脱可能なインクカートリッジINCが、プリンタ本体のEEPROM102bとインクカートリッジINCの記憶素子26bの間のデータの送受信中に、カートリッジカバー27が開いて取り外されることがある(この事象を、いわゆる活線挿抜と呼ぶ)。そして、インクカートリッジINCの取り外し中にEEPROM102bと記憶素子26bの間でデータが送受信されると、このデータの送受信が正常に実行されずに、前記データがEEPROM102bや記憶素子26bに適切に格納されない恐れがある。
=== Printer operation when removing ink cartridge during data transmission / reception ===
As described in the section “Problems to be Solved by the Invention”, the ink cartridge INC, which is detachable from the printer main body, is being transmitted / received between the EEPROM 102b of the printer main body and the storage element 26b of the ink cartridge INC. The cartridge cover 27 may be opened and removed (this phenomenon is referred to as so-called hot insertion / extraction). If data is transmitted / received between the EEPROM 102b and the storage element 26b while the ink cartridge INC is being removed, the data may not be transmitted / received normally, and the data may not be properly stored in the EEPROM 102b or the storage element 26b. There is.

ここでは、EEPROM102bデータを記憶素子26bに書き込む際に、インクカートリッジINCが取り外される場合を例に挙げて、具体的に説明する。   Here, the case where the ink cartridge INC is removed when writing the EEPROM 102b data to the storage element 26b will be described as an example.

上述したように、EEPROM102bのデータ(「インク使用量」)は、プリンタ1の電源オフ処理(図7に示すステップS124)の際に、クロック103が発生するクロック信号に同期して記憶素子26bにシリアル伝送されて、該記憶素子26b(具体的には、「インク使用量」が格納される領域)に書き込まれる。しかし、このシリアル伝送中にインクカートリッジINCが取り外されることがあり(記憶素子26bの接続端子26cと、着脱部28の電極28bとの接続が、解除される)、インクカートリッジの取り外し中にシリアル伝送された前記データ(「インク使用量」)が、記憶素子26bの「インク使用量」が格納される領域ではなく、「シリアルNo」や「取り付け回数」が格納される領域に、書き込まれる恐れがある。   As described above, the data (“ink usage”) in the EEPROM 102b is stored in the storage element 26b in synchronization with the clock signal generated by the clock 103 during the power-off process of the printer 1 (step S124 shown in FIG. 7). The data is serially transmitted and written to the storage element 26b (specifically, an area where “ink usage” is stored). However, the ink cartridge INC may be removed during the serial transmission (the connection between the connection terminal 26c of the storage element 26b and the electrode 28b of the detachable portion 28 is released), and the serial transmission is performed while the ink cartridge is being removed. The written data (“ink usage amount”) may be written not in the area where the “ink usage amount” of the storage element 26 b is stored, but in the area where “serial number” or “number of times of attachment” is stored. is there.

例えば、EEPROM102bの「インク使用量」が、記憶素子26bの「シリアルNo」を格納する領域に書き込まれると、活線挿抜が無ければEEPROM102bの「シリアルNo」と、記憶素子26bの「シリアルNo」が同一の値であるはずなのに、活線挿抜が発生することにより二つの「シリアルNo」が異なる値となってしまう。このため、記憶素子26bが、インクカートリッジINCに関する本来の情報を有しないこととなってしまう。   For example, when the “ink usage amount” of the EEPROM 102b is written in the area storing the “serial No.” of the storage element 26b, the “serial No.” of the EEPROM 102b and the “serial No.” of the storage element 26b if there is no hot plugging. Are supposed to be the same value, but the two “Serial Nos” become different values due to hot-line insertion / extraction. For this reason, the storage element 26b does not have original information regarding the ink cartridge INC.

そこで、上述の問題を解消するために、本実施の形態においては、制御部50は、プリンタ1の電源オフ処理の際にカートリッジカバー27が開いたことをカバーセンサ29が検知したとき(すなわち、カバーセンサ29がオン状態)には、クロック103によるクロック信号の発生を中止することとしている。また、制御部50は、活線挿抜により記憶素子26bに書き込まれなかったデータを再度書き込むために、クロック信号の発生中止後にプリンタ1の電源がオンされてEEPROM102bと記憶素子26bが通信する際に、クロック信号の発生中止の際にEEPROM102bに記憶されていたデータ(「トナー使用量」)を、記憶素子26bに書き込むこととしている。   Therefore, in order to solve the above-described problem, in the present embodiment, the controller 50 detects when the cover sensor 29 detects that the cartridge cover 27 is opened during the power-off process of the printer 1 (that is, When the cover sensor 29 is on), the generation of the clock signal by the clock 103 is stopped. Further, the controller 50 re-writes data that has not been written to the storage element 26b due to hot-swapping, so that when the power of the printer 1 is turned on after the generation of the clock signal is stopped and the EEPROM 102b and the storage element 26b communicate with each other. The data (“toner usage amount”) stored in the EEPROM 102b when the generation of the clock signal is stopped is written in the storage element 26b.

以下においては、記憶素子26bにデータを書き込むときに活線挿抜が発生した際のプリンタ1の動作と、活線挿抜が発生したインクカートリッジへデータを再度書き込む際のプリンタ1の動作と、について説明する。   In the following, the operation of the printer 1 when hot-swap occurs when writing data to the storage element 26b and the operation of the printer 1 when re-writing data to the ink cartridge where hot-swapping has occurred will be described. To do.

<<<インクカートリッジへのデータ書き込み処理について>>>
EEPROM102bのデータを記憶素子26bに書き込み処理するときに活線挿抜が発生する際の、プリンタ1の動作について説明する。なお、本処理は、図7に示すフローチャートのステップS126の「インクカートリッジへのデータ書き込み処理」に該当する。
<<< Regarding Data Writing Process to Ink Cartridge >>>
The operation of the printer 1 when hot-swapping occurs when data in the EEPROM 102b is written into the storage element 26b will be described. This process corresponds to “data writing process to ink cartridge” in step S126 of the flowchart shown in FIG.

図8は、各インクカートリッジへのデータ書き込み処理を説明するためのフローチャートである。
制御部50は、まず、インクカートリッジINCの記憶素子26bに、EEPROM102bのデータ(具体的には、「インク使用量」)を書き込む(ステップS202)。
FIG. 8 is a flowchart for explaining data writing processing to each ink cartridge.
First, the control unit 50 writes the data (specifically, “ink usage”) of the EEPROM 102b to the storage element 26b of the ink cartridge INC (step S202).

記憶素子26bへのデータ書き込み処理の詳細について、説明する。
図9は、活線挿抜が発生していないときの、クロック信号CLK及びリセット信号LSTの発生タイミングと、データの送信タイミングを示したタイミングチャートである。なお、図9は、4色のインクカートリッジINCの記憶素子26bに、データを順次送信する際のタイミングチャートである。
Details of the data writing process to the storage element 26b will be described.
FIG. 9 is a timing chart showing the generation timing of the clock signal CLK and the reset signal LST and the transmission timing of data when hot-swap is not occurring. FIG. 9 is a timing chart when data is sequentially transmitted to the storage element 26b of the four-color ink cartridge INC.

制御部50は、記憶素子26bへのデータ書き込み処理のために、クロック信号CLKに同期して4つのデータ群DATAをシリアル伝送させる。また、リセット信号発生部105は、リセット信号RSTを、所定の周期tで発生する(リセット信号RSTが、Lの状態からHの状態へ切り替わる)が、制御部50は、このリセット信号RSTの発生のタイミング時に、各データ群DATAのシリアル伝送を、開始させる。   The controller 50 serially transmits the four data groups DATA in synchronization with the clock signal CLK for the data writing process to the storage element 26b. The reset signal generator 105 generates the reset signal RST at a predetermined cycle t (the reset signal RST switches from the L state to the H state), but the control unit 50 generates the reset signal RST. At this time, serial transmission of each data group DATA is started.

上述の4つのデータ群は、ブラックのインクカートリッジINC1の記憶素子26bに送信されるデータ群DATA(K)と、イエローのインクカートリッジINC2の記憶素子26bに送信されるデータ群DATA(Y)と、マゼンタのインクカートリッジINC3の記憶素子26bに送信されるデータ群DATA(M)と、シアンのインクカートリッジINC4の記憶素子26bに送信されるデータ群DATA(C)と、である。   The four data groups described above include the data group DATA (K) transmitted to the storage element 26b of the black ink cartridge INC1, the data group DATA (Y) transmitted to the storage element 26b of the yellow ink cartridge INC2, and A data group DATA (M) transmitted to the storage element 26b of the magenta ink cartridge INC3 and a data group DATA (C) transmitted to the storage element 26b of the cyan ink cartridge INC4.

そして、4つのデータ群DATAは、それぞれ、記憶素子26bに書き込まれない非書込データである「識別ID」及び「書込指令」と、記憶素子26bに書き込まれる書込データである「インク使用量」と、で構成されており、「識別ID」、「書込指令」、「インク使用量」の順にシリアル伝送される。なお、「インク使用量」は、EEPROM102bに格納されているデータと同一のものである。また、「識別ID」は、4つのインクカートリッジINCのいずれかを示すデータであり、「書込指令」は、該「書込指令」の後にシリアル伝送される「インク使用量」を書き込ませる命令を示すデータである。   Each of the four data groups DATA includes “identification ID” and “write command” that are non-write data that is not written to the storage element 26b, and “ink use” that is write data that is written to the storage element 26b. Amount ”is serially transmitted in the order of“ identification ID ”,“ write command ”, and“ ink usage ”. The “ink usage” is the same as the data stored in the EEPROM 102b. The “identification ID” is data indicating one of the four ink cartridges INC, and the “write command” is a command for writing “ink consumption” serially transmitted after the “write command”. It is data which shows.

また、データ群DATA(K)の「識別ID」、「書込指令」及び「インク使用量」は、それぞれ、所定数のビットから構成されているビットデータである。このため、例えば、「インク使用量」を構成するビットデータが、シリアル伝送されることにより、「インク使用量」が記憶素子26bに書き込まれる。   The “identification ID”, “write command”, and “ink usage” of the data group DATA (K) are bit data each composed of a predetermined number of bits. For this reason, for example, the bit data constituting the “ink use amount” is serially transmitted, so that the “ink use amount” is written in the storage element 26b.

ここで、データ群DATAの送信方法について、ブラックのインクカートリッジINC1に送信されるデータ群DATA(K)を例に挙げて、説明する。
図10は、インクカートリッジINC1の記憶素子26bへのデータ書込処理を説明するためのフローチャートである。
Here, the transmission method of the data group DATA will be described by taking the data group DATA (K) transmitted to the black ink cartridge INC1 as an example.
FIG. 10 is a flowchart for explaining data writing processing to the storage element 26b of the ink cartridge INC1.

制御部50は、リセット信号RSTの発生のタイミング時(Lの状態からHの状態へ切り替わるタイミング時)に(ステップS302)、クロック信号CLKに同期させて、インクカートリッジINC1の「識別ID」を構成するビットを、順次送信する(ステップS304)。そして、本実施例では、インクカートリッジINC1が、この「識別ID」を受信することにより、インクカートリッジINC1へのデータの送信が、可能となる。   The control unit 50 configures the “identification ID” of the ink cartridge INC1 in synchronization with the clock signal CLK at the timing of generating the reset signal RST (at the timing of switching from the L state to the H state) (step S302). The bits to be transmitted are sequentially transmitted (step S304). In this embodiment, when the ink cartridge INC1 receives this “identification ID”, data can be transmitted to the ink cartridge INC1.

次に、制御部50は、クロック信号CLKに同期させて、「書込指令」を構成するビットを、インクカートリッジINC1に順次送信する(ステップS306)。そして、インクカートリッジINC1側は、「書込指令」を受信することにより、その後に送信されるデータ(すなわち、「インク使用量(K)」)が記憶素子26bに書き込まれる書込データであることを認識する。   Next, the control unit 50 sequentially transmits the bits constituting the “write command” to the ink cartridge INC1 in synchronization with the clock signal CLK (step S306). Then, the ink cartridge INC1 side receives the “write command”, and the data transmitted thereafter (that is, “ink usage (K)”) is the write data written to the storage element 26b. Recognize

次に、制御部50は、クロック信号CLKに同期させて、EEPROM102bの「インク使用量(K)」を構成する複数のビットを、インクカートリッジINC1の記憶素子26bに順次送信する(ステップS308、S310)。そして、この複数のビッドの送信中にカートリッジカバー27が開いたことをカバーセンサ29が検知しない(カバーセンサ29がオフ状態)ときには(ステップS312:No)、「インク使用量(K)」を構成する全てのビットの送信が完了することにより(ステップS314:Yes)、EEPROM102bの「インク使用量(K)」が、記憶素子26bの「インク使用量」の領域に書き込まれることとなる。   Next, in synchronization with the clock signal CLK, the control unit 50 sequentially transmits a plurality of bits constituting the “ink usage (K)” of the EEPROM 102b to the storage element 26b of the ink cartridge INC1 (steps S308 and S310). ). When the cover sensor 29 does not detect that the cartridge cover 27 has been opened during the transmission of the plurality of bids (the cover sensor 29 is in an off state) (step S312: No), “ink usage (K)” is configured. When the transmission of all the bits to be completed is completed (step S314: Yes), the “ink usage (K)” of the EEPROM 102b is written in the “ink usage” area of the storage element 26b.

ところで、記憶素子26bへのデータ群DATA(K)の送信中に、ユーザ等がカートリッジカバー27を開いて、プリンタ本体からインクカートリッジINCを取り外すことがある。インクカートリッジINCの取り外し中に該インクカートリッジINC1の記憶素子26bへのデータの送信が実行されると、例えば、送信中の「インク使用量(K)」のデータが、記憶素子26bの「シリアルNo」を格納する領域(本来は、非書込領域)に、誤って書き込まれる恐れがある。   Incidentally, during transmission of the data group DATA (K) to the storage element 26b, the user or the like may open the cartridge cover 27 and remove the ink cartridge INC from the printer body. When data transmission to the storage element 26b of the ink cartridge INC1 is executed while the ink cartridge INC is being removed, for example, the data of “ink usage (K)” being transmitted is stored in the “serial No.” of the storage element 26b. ”May be erroneously written in an area (originally a non-write area).

ここでは、インクカートリッジINC1の記憶素子26bへのデータ群DATA(K)の送信中に、インクカートリッジINC1が取り外されるものとして、説明する。   Here, description will be made assuming that the ink cartridge INC1 is removed during transmission of the data group DATA (K) to the storage element 26b of the ink cartridge INC1.

図11は、いわゆる活線挿抜が発生するときの、クロック信号CLK及びリセット信号LSTの発生タイミングと、データの送信タイミングを示したタイミングチャートである。本実施形態においては、「インク使用量(K)」を構成する複数のビットの送信中にカートリッジカバー27が開いたことをカバーセンサ29が検知する(カバーセンサ29がオン状態)と(ステップ312:Yes)、制御部50は、リセット信号発生部105にリセット信号RSTを発生させる(ステップS322)。そして、制御部50は、クロック103によるクロック信号CLKの発生を中止させる(ステップS324)。   FIG. 11 is a timing chart showing the generation timing of the clock signal CLK and the reset signal LST and the data transmission timing when so-called hot-swap occurs. In the present embodiment, the cover sensor 29 detects that the cartridge cover 27 is opened during transmission of a plurality of bits constituting the “ink usage (K)” (the cover sensor 29 is in an ON state) (step 312). : Yes), the control unit 50 causes the reset signal generation unit 105 to generate the reset signal RST (step S322). Then, the control unit 50 stops the generation of the clock signal CLK by the clock 103 (step S324).

上述したように、「インク使用量(K)」は、クロック信号CLKに同期して記憶素子26bに送信されるから、クロック信号CLKの発生が中止されると、前記「インク使用量(K)」を構成する残りのビットの記憶素子26bへの送信も中止される。そして、「インク使用量」の全てのビットがインクカートリッジINC1によって受信されないと、記憶素子26bへの書き込みがされない。このため、EEPROM102bに格納されている「インク使用量(K)」と、記憶素子26bに格納されている「インク使用量」は、異なる値を示す。すなわち、記憶素子26bの「インク使用量」は、印刷処理やクリーニング処理等で使用されたインク量が更新されない状態を維持した値となる。   As described above, the “ink use amount (K)” is transmitted to the storage element 26b in synchronization with the clock signal CLK. Therefore, when the generation of the clock signal CLK is stopped, the “ink use amount (K)” is described. The transmission of the remaining bits constituting "" to the storage element 26b is also stopped. If all the bits of “ink consumption” are not received by the ink cartridge INC1, writing to the storage element 26b is not performed. For this reason, the “ink usage (K)” stored in the EEPROM 102b and the “ink usage” stored in the storage element 26b show different values. That is, the “ink use amount” of the storage element 26b is a value that maintains the state where the ink amount used in the printing process, the cleaning process, and the like is not updated.

クロック信号CLKの発生を中止(ステップS324)した後に、制御部50は、プリンタ本体のEEPROM102bの「活線挿抜フラグ」をセットする(ステップS326)。これにより、記憶素子26bへの「インク使用量(K)」の送信中にインクカートリッジが取り外された可能性があり、記憶素子26bのデータがインクカートリッジINC1の使用状況に適したものでないと判断される。   After stopping the generation of the clock signal CLK (step S324), the control unit 50 sets a “hot line insertion / extraction flag” in the EEPROM 102b of the printer main body (step S326). As a result, there is a possibility that the ink cartridge has been removed during the transmission of the “ink usage (K)” to the storage element 26b, and it is determined that the data in the storage element 26b is not suitable for the use status of the ink cartridge INC1. Is done.

図8に示すフローチャートに戻って、各インクカートリッジへのデータ書き込み処理の説明を続ける。   Returning to the flowchart shown in FIG. 8, the description of the data writing process to each ink cartridge will be continued.

制御部50は、EEPROM102bの「活線挿抜フラグ」がセットされている場合には(ステップS204:Yes)、他のインクカートリッジ(すなわち、イエローのインクカートリッジINC2、マゼンタのインクカートリッジINC3、シアンのインクカートリッジINC4)の記憶素子26bへのデータ書き込み処理(ステップS202)を実行しない(図11参照)。   When the “hot-swap flag” of the EEPROM 102b is set (step S204: Yes), the controller 50 determines that other ink cartridges (that is, yellow ink cartridge INC2, magenta ink cartridge INC3, cyan ink) are set. The data writing process (step S202) to the storage element 26b of the cartridge INC4) is not executed (see FIG. 11).

一方で、制御部50は、EEPROM102bの「活線挿抜フラグ」がセットされていない場合には(ステップS204:No)、図9に示すように、インクカートリッジINC2、インクカートリッジINC3及びインクカートリッジINC4の記憶素子26bへの「インク使用量」の書き込み処理を実行する(ステップS206:No、ステップS202)。そして、全色のインクカートリッジの記憶素子26bへのデータ書き込み処理(ステップS202)が実行されると(ステップS206:Yes)、本処理が終了する。   On the other hand, when the “hot-swap flag” of the EEPROM 102b is not set (step S204: No), the control unit 50 sets the ink cartridge INC2, the ink cartridge INC3, and the ink cartridge INC4 as shown in FIG. Write processing of “ink consumption” to the storage element 26b is executed (step S206: No, step S202). Then, when the data writing process (step S202) to the storage element 26b of the ink cartridges of all colors is executed (step S206: Yes), this process ends.

<<<インクカートリッジからのデータ読み出し処理について>>>
次に、記憶素子26bへのデータ群DATA(K)の送信中に、インクカートリッジINC1が取り外された後に、当該インクカートリッジINC1が再度プリンタ本体に装着された場合の、インクカートリッジからのデータ読み出し処理について説明する。なお、本処理は、図7に示すフローチャートのステップS104(ステップS120)の「インクカートリッジからのデータ読み出し処理」に該当する。
<<< Process for Reading Data from Ink Cartridge >>>
Next, a process of reading data from the ink cartridge when the ink cartridge INC1 is mounted on the printer body again after the ink cartridge INC1 is removed during transmission of the data group DATA (K) to the storage element 26b. Will be described. This process corresponds to “data reading process from ink cartridge” in step S104 (step S120) of the flowchart shown in FIG.

図12は、各インクカートリッジINCからのデータ読み出し処理を説明するためのフローチャートである。
制御部50は、まず、インクカートリッジINCの記憶素子26bから、データ(具体的には、「シリアルNo」と「取り付け回数」)を読み出す(ステップS402)。
FIG. 12 is a flowchart for explaining the data reading process from each ink cartridge INC.
First, the control unit 50 reads data (specifically, “serial No” and “number of attachments”) from the storage element 26b of the ink cartridge INC (step S402).

ここで、記憶素子26bからのデータの読み出し処理について、ブラックのインクカートリッジINC1を例に挙げて、説明する。
図13は、インクカートリッジINC1の記憶素子26bからのデータ読み出し処理を説明するためのフローチャートである。
Here, the process of reading data from the storage element 26b will be described by taking the black ink cartridge INC1 as an example.
FIG. 13 is a flowchart for explaining a process of reading data from the storage element 26b of the ink cartridge INC1.

制御部50は、リセット信号RSTの発生のタイミング時(Lの状態からHの状態へ切り替わるタイミング時)に(ステップS502)、クロック信号CLKに同期させて、インクカートリッジINC1の「識別ID」を構成するビットを、順次送信する(ステップS504)。そして、本実施例では、インクカートリッジINC1が、この「識別ID」を受信することにより、インクカートリッジINC1へのデータの送信が、可能となる。   The control unit 50 configures the “identification ID” of the ink cartridge INC1 in synchronization with the clock signal CLK at the timing of generating the reset signal RST (at the timing of switching from the L state to the H state) (step S502). The bits to be transmitted are sequentially transmitted (step S504). In this embodiment, when the ink cartridge INC1 receives this “identification ID”, data can be transmitted to the ink cartridge INC1.

次に、制御部50が、クロック信号CLKに同期させて、「読出指令」を構成するビットを、インクカートリッジINC1に順次送信する(ステップ506)。そして、インクカートリッジINC1が、この「読出指令」を受信すると、クロック信号CLKに同期して、インクカートリッジINC1の記憶素子26bの「シリアルNo」と「取り付け回数」を構成するビットが、EEPROM102bに送信される(ステップS508、S510)。そして、「シリアルNo」と「取り付け回数」を構成するビットがEEPROM102bに送信されるまで、読み出し処理が実行される(ステップS512:No)。   Next, the control unit 50 sequentially transmits the bits constituting the “read command” to the ink cartridge INC1 in synchronization with the clock signal CLK (step 506). When the ink cartridge INC1 receives this “read command”, the bits constituting the “serial No.” and “number of times of attachment” of the storage element 26b of the ink cartridge INC1 are transmitted to the EEPROM 102b in synchronization with the clock signal CLK. (Steps S508 and S510). Then, the reading process is executed until the bits constituting “Serial No” and “Number of times of attachment” are transmitted to the EEPROM 102b (Step S512: No).

次に、制御部50は、他のインクカートリッジ(インクカートリッジINC2、インクカートリッジINC3、及び、インクカートリッジINC4)についても、データの読み出し処理(ステップS402)を実行し、4色のインクカートリッジの記憶素子26bからのデータ読み込み処理が完了すると(ステップS404:Yes)、インクカートリッジINCの活線挿抜の復帰処理を行う(ステップS406)。   Next, the control unit 50 also executes data read processing (step S402) for the other ink cartridges (ink cartridge INC2, ink cartridge INC3, and ink cartridge INC4), and the storage elements of the four color ink cartridges. When the data reading process from 26b is completed (step S404: Yes), the hot-line insertion / removal process of the ink cartridge INC is performed (step S406).

ここで、インクカートリッジの活線挿抜の復帰処理の詳細について、インクカートリッジINC1を例に挙げて、説明する。
図14は、インクカートリッジINC1の活線挿抜の復帰処理を説明するためのフローチャートである。
Here, the details of the return processing of the hot insertion / extraction of the ink cartridge will be described by taking the ink cartridge INC1 as an example.
FIG. 14 is a flowchart for explaining the hot-line insertion / return process of the ink cartridge INC1.

制御部50は、まず、プリンタ本体のEEPROM102bの「シリアルNo」及び「取り付け回数」と、インクカートリッジINC1の記憶素子26bの「シリアルNo」及び「取り付け回数」とが、それぞれ同じであるか否かを判断する(ステップS602、S604)。   First, the control unit 50 determines whether the “serial No.” and “number of times of attachment” of the EEPROM 102b of the printer main body are the same as the “serial number” and “number of times of attachment” of the storage element 26b of the ink cartridge INC1. Is determined (steps S602 and S604).

そして、制御部50は、「シリアルNo」及び「取り付け回数」が同じであると判断した場合には(ステップ602:Yes、ステップS604:Yes)、次に、EEPROM102bの「活線挿抜フラグ」がセットされているか否かを判断する(ステップS606)。そして、本実施例においては、前述のデータ書き込み処理において「活線挿抜フラグ」がセット(図10のステップS326)されているから(ステップS606:Yes)、EEPROM102bの「インク使用量(K)」を、インクカートリッジINC1の記憶素子26bの「インク使用量」の領域に書き込む(ステップS608)。これにより、活線挿抜の際に記憶素子26bに書き込まれなかった「インク使用量」が、書き込まれることとなる。   If the control unit 50 determines that the “serial No.” and the “number of times of attachment” are the same (step 602: Yes, step S604: Yes), then the “hot-swap flag” of the EEPROM 102b is set. It is determined whether it is set (step S606). In the present embodiment, since the “hot line insertion / extraction flag” is set (step S 326 in FIG. 10) in the data writing process described above (step S 606: Yes), “ink usage (K)” in the EEPROM 102 b. Is written in the “ink consumption” area of the storage element 26b of the ink cartridge INC1 (step S608). As a result, the “ink use amount” that has not been written to the storage element 26b during the hot-line insertion / extraction is written.

上記では、同一のインクカートリッジINC1が着脱されているので、「シリアルNo」と「取り付け回数」が一致する。しかし、異なるインクカートリッジが着脱されると、「シリアルNo」が一致しない(ステップS602:No)。また、着脱の間に、別のプリンタに着脱されていると、「取り付け回数」が一致しない(ステップS604:No)。かかる際には、制御部50は、まず、インクカートリッジINC1の記憶素子26bの「取り付け回数」を「+1」だけインクリメントし(ステップS612)、該記憶素子26bの「取り付け回数」をEEPROM102bに書き込む(ステップS614)。これにより、EEPROM102bの「取り付け回数」が、新たに装着されたインクカートリッジINCに対応したものとなる。   In the above description, since the same ink cartridge INC1 is attached and detached, the “serial number” and the “number of times of attachment” match. However, when a different ink cartridge is attached or detached, the “serial No” does not match (step S602: No). Further, if the printer is attached / detached to / from another printer during the attachment / detachment, the “number of attachments” does not match (step S604: No). In this case, the control unit 50 first increments the “number of attachments” of the storage element 26b of the ink cartridge INC1 by “+1” (step S612), and writes the “number of attachments” of the storage element 26b in the EEPROM 102b ( Step S614). As a result, the “number of times of mounting” of the EEPROM 102b corresponds to the newly mounted ink cartridge INC.

図12に示すフローチャートに戻って、各インクカートリッジからのデータ読み出し処理の説明を続ける。
制御部50は、インクカートリッジINC1の活性挿抜の復帰処理(ステップS406)が完了すると、他のインクカートリッジINC2、INC3、INC4の活線挿抜の復帰処理を実行する(ステップS406)。そして、制御部50は、4色のインクカートリッジINCの活線挿抜の復帰処理が実行されると(ステップS408:Yes)、EEPROM102bの「活線挿抜フラグ」をクリアさせる(ステップS410)。これにより、本処理が終了する。
Returning to the flowchart shown in FIG. 12, the description of the data reading process from each ink cartridge will be continued.
Upon completion of the active insertion / removal return process (step S406) of the ink cartridge INC1, the control unit 50 executes a hot-line insertion / removal return process for the other ink cartridges INC2, INC3, INC4 (step S406). When the hot-line insertion / removal process of the four-color ink cartridges INC is executed (step S408: Yes), the control unit 50 clears the “hot-line insertion / extraction flag” in the EEPROM 102b (step S410). Thereby, this process is complete | finished.

===本実施形態に係るプリンタ1の有効性===
上述したように、本実施形態に係る『印刷装置』(プリンタ1)は、(a)『第一メモリ』(EEPROM102b)を有する『印刷装置本体』(プリンタ本体)と、(b)該プリンタ本体に対して着脱可能な『カートリッジ』(インクカートリッジINC)であって、プリンタ本体に装着された際にEEPROM102bと通信可能な『第二メモリ』(記憶素子26b)、を有するインクカートリッジINCと、(c)開閉可能な『カバー』(カートリッジカバー27)であって、開いた際にインクカートリッジINCの着脱が可能なカートリッジカバー27と、(d)該カートリッジカバー27の開閉を検知するカバーセンサ29と、(e)EEPROM102bと記憶素子26bが同期通信するためのクロック信号、を発生する『クロック信号発生部』(クロック103)と、を備えている。
=== Effectiveness of Printer 1 According to the Present Embodiment ===
As described above, the “printing apparatus” (printer 1) according to the present embodiment includes (a) a “printing apparatus main body” (printer main body) having a “first memory” (EEPROM 102b), and (b) the printer main body. An ink cartridge INC that has a “second memory” (storage element 26b) that can communicate with the EEPROM 102b when it is attached to the printer body. c) a “cover” (cartridge cover 27) that can be opened and closed, and a cartridge cover 27 that can be attached and detached when opened, and (d) a cover sensor 29 that detects opening and closing of the cartridge cover 27. (E) a clock signal for synchronously communicating the EEPROM 102b and the storage element 26b, It includes a click signal generating unit "(clock 103), the.

そして、プリンタ1は、図10に示すように、カートリッジカバー27が開いたことをカバーセンサ29が検知したときには、クロック103によるクロック信号の発生を中止する制御部50、を備えている。   As shown in FIG. 10, the printer 1 includes a control unit 50 that stops generating the clock signal by the clock 103 when the cover sensor 29 detects that the cartridge cover 27 is opened.

このように、クロック信号の発生を中止することにより、カートリッジカバー27が開いてインクカートリッジINCが取り外される際に、インクカートリッジの記憶素子26bと、プリンタ本体のEEPROM102bとの間で、データの送受信が実行されない。このため、例えば、記憶素子26bの、本来は非書込領域である「シリアルNo」等に、誤ってデータ(「インク使用量」)が書き込まれることを防止することが可能となる。従って、上記のプリンタ1によれば、EEPROM102bと記憶素子26bの間で送受信されるデータを、活線挿抜が発生しても、これらのメモリに適切に格納することが可能となる。   In this way, by stopping the generation of the clock signal, when the cartridge cover 27 is opened and the ink cartridge INC is removed, data is transmitted and received between the storage element 26b of the ink cartridge and the EEPROM 102b of the printer body. Not executed. For this reason, for example, it is possible to prevent data (“ink usage”) from being erroneously written in the “serial No.” or the like, which is originally a non-writing area, of the storage element 26b. Therefore, according to the printer 1 described above, data transmitted and received between the EEPROM 102b and the storage element 26b can be appropriately stored in these memories even when hot-line insertion / extraction occurs.

===その他の実施形態===
一実施形態としてのプリンタ1や印刷システム100を説明したが、上記の実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることは言うまでもない。
=== Other Embodiments ===
Although the printer 1 and the printing system 100 as one embodiment have been described, the above-described embodiment is for facilitating the understanding of the present invention, and is not intended to limit the present invention. The present invention can be changed and improved without departing from the gist thereof, and it is needless to say that the present invention includes equivalents thereof.

なお、上記実施の形態において、印刷処理やクリーニング処理が実行された毎に、EEPROM102bの「インク使用量」を更新することとしたが、これに限定されるものではない。例えば、印刷処理やクリーニング処理の実行毎の「インク使用量」の更新については、RAM102aにて行われ、プリンタ1の電源オフ処理の際に、RAM102aに格納された「インク使用量」の値を、EEPROM102bに書き込んで更新することとしてもよい。   In the above embodiment, the “ink usage” of the EEPROM 102b is updated every time the printing process or the cleaning process is executed. However, the present invention is not limited to this. For example, the update of the “ink usage” every time the printing process or the cleaning process is performed is performed in the RAM 102a, and the value of the “ink usage” stored in the RAM 102a is set when the printer 1 is turned off. The data may be updated by writing to the EEPROM 102b.

さらに、上記実施の形態において、図10に示すように、制御部50は、EEPROM102bに記憶されたデータが記憶素子26bに送信される際に、カートリッジカバー27が開いたことをカバーセンサ29が検知したときには、クロック103によるクロック信号の発生を中止することとしたが、これに限定されるものではない。例えば、クロック信号の発生を中止するのは、記憶素子26bからデータを読み出す際に、カートリッジカバー27が開いたことをカバーセンサ29が検知したときであることとしてもよい。   Further, in the above embodiment, as shown in FIG. 10, the controller 50 detects that the cartridge cover 27 is opened when the data stored in the EEPROM 102b is transmitted to the storage element 26b. In this case, the generation of the clock signal by the clock 103 is stopped, but the present invention is not limited to this. For example, the generation of the clock signal may be stopped when the cover sensor 29 detects that the cartridge cover 27 is opened when reading data from the storage element 26b.

さらに、上記実施の形態において、図9に示すように、EEPROM102bから記憶素子26bに送信されるデータは、記憶素子26bに書き込まれない『非書込データ』(例えば、「識別ID」や「書込指令」)と、記憶素子26bに書き込まれる『書込データ』(例えば、「インク使用量」)と、で構成されたデータ群DATAであり、該データ群DATAは、前記非書込データ、前記書込データの順にシリアル伝送されることとした。また、プリンタ1は、前記データ群DATA毎に記憶素子26bにシリアル伝送するためのリセット信号、を発生するリセット信号発生部105を備えることとした。そして、制御部50は、図10や図11に示すように、カートリッジカバー27が開いたことをカバーセンサ29が検知したときには、リセット信号発生部105にリセット信号を発生させ、かつ、クロック103によるクロック信号の発生を中止することとした。しかし、上記に限定されるものではない。例えば、リセット信号が発生されないこととしてもよい。   Further, in the above embodiment, as shown in FIG. 9, the data transmitted from the EEPROM 102b to the storage element 26b is “non-write data” (for example, “identification ID” or “ Data command ”) and“ write data ”(for example,“ ink usage ”) written in the storage element 26b, and the data group DATA includes the non-write data, Serial transmission is performed in the order of the write data. In addition, the printer 1 includes a reset signal generation unit 105 that generates a reset signal for serial transmission to the storage element 26b for each data group DATA. Then, as shown in FIGS. 10 and 11, when the cover sensor 29 detects that the cartridge cover 27 has been opened, the control unit 50 generates a reset signal in the reset signal generation unit 105 and uses the clock 103. The generation of the clock signal was stopped. However, it is not limited to the above. For example, the reset signal may not be generated.

リセット信号が発生されない場合に、発生が中止されたクロック信号がノイズによって誤って発生すると、このクロック信号に同期して、書込データ(「インク使用量」)が送信されることがあるから、記憶素子26bの非書込領域に誤って「インク使用量」が書き込まれる恐れがある。これに対して、リセット信号を発生させる場合には、ノイズによって誤ってクロック信号が出力されても、このクロック信号に同期して記憶素子26bに送信されるデータは非書込データ(「識別ID」や「書込命令」)であるから、記憶素子26bの非書込領域に書込データが誤って書き込まれることを防止できる点で、より望ましい。   When the reset signal is not generated and the generated clock signal is erroneously generated due to noise, write data (“ink usage”) may be transmitted in synchronization with this clock signal. There is a possibility that the “ink usage” is erroneously written in the non-writing area of the storage element 26b. On the other hand, when a reset signal is generated, even if a clock signal is erroneously output due to noise, data transmitted to the storage element 26b in synchronization with this clock signal is not written data (“identification ID”). Or “write command”), which is more preferable in that write data can be prevented from being erroneously written in the non-write region of the storage element 26b.

さらに、上記実施の形態において、図14に示すように、EEPROM102bに記憶されたデータが記憶素子26bに送信される際に、カートリッジカバー27が開いたことをカバーセンサ29が検知したときには、カートリッジカバー27が開いたことをカバーセンサ29が検知した後にEEPROM102bと記憶素子26bが通信する際に、カートリッジカバー27が開いたことをカバーセンサ29が検知したときにEEPROM102bに記憶された書込データ(「インク使用量」)が、記憶素子26bに送信されて書き込まれることとしたが、これに限定されるものではない。例えば、いわゆる活線挿抜後のEEPROM102bと記憶素子26bの通信の際に、活線挿抜の発生のときにEEPROM102bに記憶された「インク使用量」が、記憶素子26bに書き込まれないこととしてもよい。   Further, in the above embodiment, as shown in FIG. 14, when the cover sensor 29 detects that the cartridge cover 27 is opened when the data stored in the EEPROM 102b is transmitted to the storage element 26b, the cartridge cover When the EEPROM 102b and the storage element 26b communicate with each other after the cover sensor 29 detects that the cover 27 is opened, the write data stored in the EEPROM 102b when the cover sensor 29 detects that the cartridge cover 27 is opened (" Ink use amount ") is transmitted and written to the storage element 26b, but is not limited thereto. For example, during communication between the so-called EEPROM 102b after hot-swap and the storage element 26b, the “ink usage” stored in the EEPROM 102b when hot-swap occurs may not be written to the memory element 26b. .

活線挿抜の発生のときにEEPROM102bに記憶された「インク使用量」が記憶素子26bに書き込まれない場合には、当該記憶素子26bを備えたインクカートリッジINCを再度プリンタ本体に装着して使用される場合に、実際とは異なる「インク使用量」に基づいて、印刷が行われることとなってしまう。これに対して、活線挿抜の発生のときにEEPROM102bに記憶された「インク使用量」が、記憶素子26bに書き込まれる場合には、上記の問題が改善される点で、より望ましい。   If the “ink usage” stored in the EEPROM 102b is not written to the storage element 26b when hot-swap occurs, the ink cartridge INC provided with the storage element 26b is mounted on the printer body again and used. In this case, printing is performed based on an “ink usage amount” different from the actual amount. On the other hand, when the “ink usage” stored in the EEPROM 102b at the time of occurrence of hot-swapping is written in the storage element 26b, it is more desirable in that the above problem is improved.

さらに、上記実施の形態において、前記カートリッジは、インクを収容したインクカートリッジであり、前記書込データは、「インクの使用量」であることとした。このため、前記カートリッジを備えた『印刷装置』は、インクジェットプリンタであることとした。   Furthermore, in the above embodiment, the cartridge is an ink cartridge containing ink, and the writing data is “ink consumption”. For this reason, the “printing apparatus” provided with the cartridge is an ink jet printer.

しかし、これに限定されるものではない。 However, it is not limited to this.

例えば、前記カートリッジは、トナーを収容したトナーカートリッジであり、前記書込データはトナーの使用量であることとしてもよい。かかる場合には、『印刷装置』は、いわゆる電子写真方式のレーザープリンタ(感光体や現像器を備える)である。   For example, the cartridge may be a toner cartridge that contains toner, and the writing data may be the amount of toner used. In such a case, the “printing apparatus” is a so-called electrophotographic laser printer (including a photoconductor and a developing device).

プリンタ1の外観を示した斜視図である。1 is a perspective view illustrating an appearance of a printer 1. FIG. プリンタ1の内部構成を概略的に示した図である。FIG. 2 is a diagram schematically illustrating an internal configuration of a printer. 図3Aは、カートリッジカバー27が閉じている状態を示す図であり、図3Bは、カートリッジカバー27が開いて、インクカートリッジの着脱の途中の状態を示す図である。3A is a diagram illustrating a state in which the cartridge cover 27 is closed, and FIG. 3B is a diagram illustrating a state in which the cartridge cover 27 is opened and the ink cartridge is being attached or detached. 図4Aは、インクカートリッジINC1を示した図である。図4Bは、プリンタ本体のカートリッジ着脱部28を示した図である。FIG. 4A is a diagram illustrating the ink cartridge INC1. FIG. 4B is a view showing the cartridge attaching / detaching portion 28 of the printer main body. 制御部50を示したブロック図である。3 is a block diagram showing a control unit 50. FIG. 図6Aは、インクカートリッジINC1の記憶素子26bのデータ配列を示す説明図である。図6Bは、プリンタ本体のEEPROM102bのデータ配列を示す説明図である。FIG. 6A is an explanatory diagram showing a data array of the storage elements 26b of the ink cartridge INC1. FIG. 6B is an explanatory diagram showing a data array of the EEPROM 102b of the printer main body. 記憶素子26bとEEPROM102bの間でデータが送受信される際の、プリンタ1の動作を示すフローチャートである。4 is a flowchart illustrating an operation of the printer 1 when data is transmitted and received between the storage element 26b and the EEPROM 102b. 各インクカートリッジへのデータ書き込み処理を説明するためのフローチャートである。6 is a flowchart for explaining data writing processing to each ink cartridge. クロック信号及びリセット信号の発生タイミングと、データの送信タイミングを示したタイミングチャートである。6 is a timing chart showing generation timings of a clock signal and a reset signal and data transmission timings. インクカートリッジINC1の記憶素子26bへのデータ書込処理を説明するためのフローチャートである。6 is a flowchart for explaining a data writing process to the storage element 26b of the ink cartridge INC1. いわゆる活線挿抜が発生する際の、クロック信号及びリセット信号の発生タイミングと、データの送信タイミングを示したタイミングチャートである。It is the timing chart which showed the generation timing of a clock signal and a reset signal, and the transmission timing of data when what is called hot-line insertion / extraction occurs. 各インクカートリッジからのデータ読み出し処理を説明するためのフローチャートである。4 is a flowchart for explaining a process of reading data from each ink cartridge. インクカートリッジINC1の記憶素子26bからのデータ読み出し処理を説明するためのフローチャートである。10 is a flowchart for explaining a process of reading data from the storage element 26b of the ink cartridge INC1. インクカートリッジINC1の活線挿抜の復帰処理を説明するためのフローチャートである。6 is a flowchart for explaining hot-line insertion / removal recovery processing of the ink cartridge INC1.

符号の説明Explanation of symbols

1 プリンタ、2 操作パネル、14 プラテン、15 搬送モータ、
17A 搬送ローラ、21 ヘッド、24 駆動機構、25 排紙トレイ、
26a カートリッジ本体、26b 記憶素子、26c 接続端子、
27 カートリッジカバー、28 カートリッジ着脱部、28a コネクタ、
28b 電極、29 カバーセンサ、36 搬送機構、41 キャリッジ、
42 キャリッジモータ、44 プーリ、45 タイミングベルト、
46 ガイドレール、50 制御部、51 リニア式エンコーダ符号板、
52 検出部、53 紙検知センサ、56 ロータリ式エンコーダ、
101 CPU、102 メモリ、102a RAM、102b EEPROM、
102c ROM、103 クロック、104 インターフェース部、
105 リセット信号発生部
1 printer, 2 operation panel, 14 platen, 15 transport motor,
17A transport roller, 21 head, 24 drive mechanism, 25 paper discharge tray,
26a cartridge body, 26b storage element, 26c connection terminal,
27 cartridge cover, 28 cartridge attaching / detaching portion, 28a connector,
28b electrode, 29 cover sensor, 36 transport mechanism, 41 carriage,
42 Carriage motor, 44 pulley, 45 timing belt,
46 guide rail, 50 controller, 51 linear encoder code plate,
52 detection unit, 53 paper detection sensor, 56 rotary encoder,
101 CPU, 102 memory, 102a RAM, 102b EEPROM,
102c ROM, 103 clock, 104 interface section,
105 Reset signal generator

Claims (8)

第一メモリを有する印刷装置本体と、
該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、
開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、
該カバーの開閉を検知するカバーセンサと、
前記第一メモリと前記第二メモリが同期通信するためのクロック信号、を発生するクロック信号発生部と、
前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止する制御部と、
を備えたことを特徴とする印刷装置。
A printing apparatus main body having a first memory;
A cartridge that is detachable from the printing apparatus main body, and has a second memory that can communicate with the first memory when mounted on the printing apparatus main body;
A cover that can be opened and closed, and a cover that can be attached and detached when the cartridge is opened;
A cover sensor for detecting opening and closing of the cover;
A clock signal generator for generating a clock signal for synchronous communication between the first memory and the second memory;
When the cover sensor detects that the cover is opened, a control unit that stops generation of the clock signal by the clock signal generation unit;
A printing apparatus comprising:
請求項1に記載の印刷装置であって、
前記クロック信号に同期して、前記第一メモリと前記第二メモリの間でデータが送受信され、
前記制御部は、
前記カバーが開いたことを前記カバーセンサが検知したときには、前記クロック信号発生部による前記クロック信号の発生と、前記データの送受信と、を中止することを特徴とする印刷装置。
The printing apparatus according to claim 1,
In synchronization with the clock signal, data is transmitted and received between the first memory and the second memory,
The controller is
The printing apparatus, wherein when the cover sensor detects that the cover is opened, generation of the clock signal by the clock signal generation unit and transmission / reception of the data are stopped.
請求項1または請求項2に記載の印刷装置であって、
前記制御部は、
前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、
前記クロック信号発生部による前記クロック信号の発生を中止することを特徴とする印刷装置。
The printing apparatus according to claim 1 or 2, wherein
The controller is
When the cover sensor detects that the cover is opened when data is transmitted to the second memory,
A printing apparatus, wherein the generation of the clock signal by the clock signal generator is stopped.
請求項3に記載の印刷装置であって、
前記第二メモリに送信されるデータは、
前記第二メモリに書き込まれない非書込データと、前記第二メモリに書き込まれる書込データと、で構成されたデータ群であり、
該データ群は、前記非書込データ、前記書込データの順にシリアル伝送され、
前記データ群毎に前記第二メモリにシリアル伝送するためのリセット信号、を発生するリセット信号発生部を備え、
前記制御部は、
前記カバーが開いたことを前記カバーセンサが検知したときには、前記リセット信号発生部に前記リセット信号を発生させ、かつ、前記クロック信号発生部による前記クロック信号の発生を中止することを特徴とする印刷装置。
The printing apparatus according to claim 3,
The data transmitted to the second memory is
A data group composed of non-write data that is not written to the second memory and write data that is written to the second memory;
The data group is serially transmitted in the order of the non-write data and the write data,
A reset signal generating unit for generating a reset signal for serial transmission to the second memory for each data group,
The controller is
When the cover sensor detects that the cover is opened, the reset signal generation unit generates the reset signal and the clock signal generation unit stops generating the clock signal. apparatus.
請求項4に記載の印刷装置であって、
前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、
前記カバーが開いたことを前記カバーセンサが検知した後に前記第一メモリと前記第二メモリが通信する際に、
前記カバーが開いたことを前記カバーセンサが検知したときに前記第一メモリに記憶された前記書込データが、前記第二メモリに送信されて書き込まれることを特徴とする印刷装置。
The printing apparatus according to claim 4,
When the cover sensor detects that the cover is opened when data is transmitted to the second memory,
When the first memory and the second memory communicate after the cover sensor detects that the cover is opened,
The printing apparatus, wherein when the cover sensor detects that the cover is opened, the write data stored in the first memory is transmitted and written to the second memory.
請求項5に記載の印刷装置であって、
前記第一メモリと前記第二メモリには、前記カートリッジを識別するための識別情報が記憶されており、
前記第二メモリにデータが送信される際に、前記カバーが開いたことを前記カバーセンサが検知したときには、
前記カバーが開いたことを前記カバーセンサが検知した後に前記第一メモリと前記第二メモリが通信し、かつ、前記第一メモリの前記識別情報と前記第二メモリの前記識別情報とが同じである際に、
前記カバーが開いたことを前記カバーセンサが検知したときに前記第一メモリに記憶された前記書込データが、前記第二メモリに送信されて書き込まれることを特徴とする印刷装置。
The printing apparatus according to claim 5,
In the first memory and the second memory, identification information for identifying the cartridge is stored,
When the cover sensor detects that the cover is opened when data is transmitted to the second memory,
After the cover sensor detects that the cover is opened, the first memory and the second memory communicate with each other, and the identification information in the first memory and the identification information in the second memory are the same. In some cases
The printing apparatus, wherein when the cover sensor detects that the cover is opened, the write data stored in the first memory is transmitted and written to the second memory.
請求項4〜請求項6のいずれかに記載の印刷装置であって、
前記カートリッジは、インクを収容したインクカートリッジであり、
前記書込データは、前記インクの使用量であることを特徴とする印刷装置。
A printing apparatus according to any one of claims 4 to 6,
The cartridge is an ink cartridge containing ink,
The printing apparatus, wherein the writing data is a usage amount of the ink.
第一メモリを有する印刷装置本体と、
該印刷装置本体に対して着脱可能なカートリッジであって、前記印刷装置本体に装着された際に前記第一メモリと通信可能な第二メモリ、を有するカートリッジと、
開閉可能なカバーであって、開いた際に前記カートリッジの着脱が可能なカバーと、
該カバーの開閉を検知するカバーセンサと、
を備えた印刷装置の制御方法であって、
前記第一メモリと前記第二メモリの間で同期通信するためのクロック信号、を発生するステップと、
前記カバーセンサにより前記カバーが開いたことを検知したときには、前記クロック信号発生部による前記クロック信号の発生を中止するステップと、
を備えたことを特徴とする印刷装置の制御方法。
A printing apparatus main body having a first memory;
A cartridge that is detachable from the printing apparatus main body, and has a second memory that can communicate with the first memory when mounted on the printing apparatus main body;
A cover that can be opened and closed, and a cover that can be attached and detached when the cartridge is opened;
A cover sensor for detecting opening and closing of the cover;
A method for controlling a printing apparatus comprising:
Generating a clock signal for synchronous communication between the first memory and the second memory;
When detecting that the cover is opened by the cover sensor, stopping the generation of the clock signal by the clock signal generation unit;
A control method for a printing apparatus, comprising:
JP2006247885A 2006-09-13 2006-09-13 Printing apparatus and printing apparatus control method Withdrawn JP2008068478A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006247885A JP2008068478A (en) 2006-09-13 2006-09-13 Printing apparatus and printing apparatus control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006247885A JP2008068478A (en) 2006-09-13 2006-09-13 Printing apparatus and printing apparatus control method

Publications (1)

Publication Number Publication Date
JP2008068478A true JP2008068478A (en) 2008-03-27

Family

ID=39290498

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006247885A Withdrawn JP2008068478A (en) 2006-09-13 2006-09-13 Printing apparatus and printing apparatus control method

Country Status (1)

Country Link
JP (1) JP2008068478A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002234192A (en) * 2000-12-05 2002-08-20 Seiko Epson Corp Printing equipment, ink cartridges
JP2006181724A (en) * 2004-12-24 2006-07-13 Canon Inc Liquid container, liquid supply system and recording apparatus using the container, circuit module and substrate for container, and liquid container

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002234192A (en) * 2000-12-05 2002-08-20 Seiko Epson Corp Printing equipment, ink cartridges
JP2006181724A (en) * 2004-12-24 2006-07-13 Canon Inc Liquid container, liquid supply system and recording apparatus using the container, circuit module and substrate for container, and liquid container

Similar Documents

Publication Publication Date Title
JP4985797B2 (en) Identification of printing recording material container
JP5556371B2 (en) Storage device, substrate, liquid container, method for receiving data to be written to data storage unit from host circuit, and system including storage device electrically connectable to host circuit
CN101898455B (en) Storage device, substrate, liquid container, system, data receiving method
US6984012B2 (en) Cartridge and recording apparatus
CN101856912B (en) Storage device and system including storage device electrically connectable to host circuit
US8075115B2 (en) Mountable apparatus and board having an installation status notifier
US8215734B2 (en) Liquid consuming system, liquid consuming apparatus, liquid supply unit, and method of supervising a remaining amount of liquid contained in a liquid supply unit
US20110131441A1 (en) System including plurality of storage devices and data transmission method for the same
CN101898454B (en) Memory device, host circuit, base plate and data receiving method
US8186816B2 (en) Liquid container, board, and method of rewriting liquid information
JP4269128B2 (en) Printer control apparatus, printer control method, and medium on which printer control program is recorded
JP2008068478A (en) Printing apparatus and printing apparatus control method
JP2001105699A (en) Printer, printer system, and error detection method in printer
JP2007001066A (en) ink cartridge
JP7806462B2 (en) liquid discharge device
JP4075943B2 (en) Printer, printer system, and error detection method in printer
JP2003063037A (en) Printing device, printing method and computor system
JP2010046979A (en) Ink storage unit
JP2007001065A (en) Ink cartridge and recording apparatus
JP2004122644A (en) Recording device, computer program, computer system, and recording method
JP2004050428A (en) Recording device
JP2000246884A (en) Ink jet recording device
JP2008006831A (en) Printer, printer system, and error detection method in printer
JP2005212152A (en) Ink jet recording apparatus and information updating method for ink tank of the recording apparatus
JP2005219293A (en) Droplet discharge device, inspection method for droplet discharge device, cartridge, and inspection method for cartridge

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090724

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110308

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110510