JP7131030B2 - Liquid ejector - Google Patents

Liquid ejector Download PDF

Info

Publication number
JP7131030B2
JP7131030B2 JP2018068711A JP2018068711A JP7131030B2 JP 7131030 B2 JP7131030 B2 JP 7131030B2 JP 2018068711 A JP2018068711 A JP 2018068711A JP 2018068711 A JP2018068711 A JP 2018068711A JP 7131030 B2 JP7131030 B2 JP 7131030B2
Authority
JP
Japan
Prior art keywords
amount
liquid
ratio
cartridge
liquid chamber
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.)
Active
Application number
JP2018068711A
Other languages
Japanese (ja)
Other versions
JP2019177614A (en
Inventor
賢太 洞出
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.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2018068711A priority Critical patent/JP7131030B2/en
Publication of JP2019177614A publication Critical patent/JP2019177614A/en
Application granted granted Critical
Publication of JP7131030B2 publication Critical patent/JP7131030B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Ink Jet (AREA)

Description

本発明は、液体を排出する液体排出装置に関する。 The present invention relates to a liquid discharge device for discharging liquid.

従来より、着脱可能なメインタンクと、装着されたメインタンクから供給されたインクを貯留するサブタンクと、サブタンクに貯留されたインクを吐出して画像を記録する画像記録ユニットとを備えるインクジェットプリンタが知られている(例えば、特許文献1)。また、メインタンク及びサブタンクの内部空間は、大気に開放されている。そのため、メインタンクをインクジェットプリンタに装着すると、メインタンクの内部空間の水頭及びサブタンクの内部空間の水頭の差(以下、「水頭差」と表記する。)によって、メインタンク及びサブタンクの液面が同一高さに揃うようにインクが移動する。 2. Description of the Related Art Conventionally, there has been known an inkjet printer including a detachable main tank, a sub-tank for storing ink supplied from the attached main tank, and an image recording unit for recording an image by ejecting the ink stored in the sub-tank. (For example, Patent Document 1). Also, the internal spaces of the main tank and the sub-tank are open to the atmosphere. Therefore, when the main tank is attached to the inkjet printer, the liquid levels of the main tank and the sub tank are the same due to the difference between the water head in the internal space of the main tank and the water head in the internal space of the sub tank (hereinafter referred to as "head difference"). Ink moves to align with height.

特開2008-213162号公報Japanese Patent Application Laid-Open No. 2008-213162

この画像記録ユニットがインクを吐出すると、メインタンク及びサブタンクがそれぞれ貯留する液量が変化する。例えば、カートリッジが貯留するインク量がゼロ付近になれば、カートリッジの交換が必要であることをユーザに知らせることが望ましい。他方、サブタンクが貯留するインク量がゼロ付近になれば、サブタンクから画像記録ユニットへ空気が進入しないように、ユーザに知らせたり、画像記録を禁止したりすることが望ましい。したがって、メインタンク及びサブタンクのそれぞれのインク量は、把握されることが望ましい。 When the image recording unit ejects ink, the amount of liquid stored in each of the main tank and the sub-tank changes. For example, it is desirable to inform the user that the cartridge needs to be replaced when the amount of ink stored in the cartridge is near zero. On the other hand, when the amount of ink stored in the sub-tank approaches zero, it is desirable to notify the user or prohibit image recording so that air does not enter the image recording unit from the sub-tank. Therefore, it is desirable to know the amount of ink in each of the main tank and sub-tank.

本発明は、上記の事情に鑑みてなされたものであり、その目的は、第1液室及び第2液室それぞれに貯留された液体の量を個別に把握することが可能な液体排出装置を提供することにある。 SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and an object thereof is to provide a liquid discharge device capable of individually grasping the amount of liquid stored in each of the first liquid chamber and the second liquid chamber. to provide.

(1) 本発明に係る液体排出装置は、液体が貯留された第1液室、一端が上記第1液室と連通され且つ他端が外部と連通される第1流路、及び一端が上記第1液室と連通され且つ他端が外部と連通される第2流路を有するカートリッジが装着される装着ケースと、第2液室を有するタンクであって、一端が外部と連通され且つ他端が上記第2液室と連通される第3流路と、上記第3流路よりも下方に位置する一端が上記第2液室と連通される第4流路と、一端が上記第2液室に連通され且つ他端が外部と連通される第5流路と、
を有する上記タンクと、上記第4流路の他端と連通されるヘッドと、メモリと、コントローラと、を備える。上記第1流路及び上記第3流路の少なくとも一方は、上記カートリッジが上記装着ケースに装着されたときに、上記第1液室及び上記第2液室を連通する。上記コントローラは、上記ヘッドを通じて液体を排出させる排出指示を受け付け、上記ヘッドを通じた液体の排出量に対す上記第1液室に貯留されている液体の減少量ΔVcの比率、又は上記ヘッドを通じた液体の排出量に対する上記第2液室に貯留されている液体の減少量ΔVsの比率うち少なくとも一方を示す比率情報を上記メモリから読み出し、受け付けた上記排出指示で排出が指示された液体の量に相当する第1排出指示量と上記比率情報とに基づいて、上記第1排出指示量に対応する上記減少量ΔVcと上記減少量ΔVsとを決定する。
(1) A liquid discharge device according to the present invention comprises a first liquid chamber in which a liquid is stored, a first channel having one end communicating with the first liquid chamber and the other end communicating with the outside, and A mounting case to which a cartridge having a second flow path communicating with the first liquid chamber and communicating with the outside at the other end is mounted; and a tank having the second liquid chamber, one end communicating with the outside and the other a third flow channel having an end communicating with the second liquid chamber; a fourth flow channel having one end located below the third flow channel communicating with the second liquid chamber; a fifth channel communicating with the liquid chamber and having the other end communicating with the outside;
, a head that communicates with the other end of the fourth flow path, a memory, and a controller. At least one of the first flow path and the third flow path communicates the first liquid chamber and the second liquid chamber when the cartridge is mounted in the mounting case. The controller receives a discharge instruction to discharge the liquid through the head , and the ratio of the reduction amount ΔVc of the liquid stored in the first liquid chamber to the amount of liquid discharged through the head, or Ratio information indicating at least one of the ratios of the decrease amount ΔVs of the liquid stored in the second liquid chamber to the discharge amount of the liquid is read from the memory, and the amount of the liquid instructed to be discharged by the received discharge instruction is obtained. Based on the corresponding first instructed discharge amount and the ratio information, the decrease amount ΔVc and the decrease amount ΔVs corresponding to the first instructed discharge amount are determined.

上記構成によれば、液体の排出量と各液室の液体の減少量との比率を示す比率情報がメモリに記憶されており、その比率情報と、第1排出指示による液体の排出量から、各液室の液体の減少量が決定される。その結果、決定された減少量を用いて、例えば第1液室及び第2液室に貯留された液体の量を算出したり、減少量の合計を把握することにより、第1液室及び第2液室それぞれに貯留された液体の量を個別に把握することができる。これにより、例えば、第1液室と第2液室の液体の量を個別にユーザに報知することができる。また、例えば、カートリッジの交換時にタンクの液体量を把握して、新しいカートリッジの液体量と合計して液体の総残量を把握することができる。なお、第1排出指示量は、一つの第1排出指示で排出が指示された液体の量に相当する値であってもよいし、複数の第1排出指示で排出が指示された液体の量の積算値に相当する値であってもよい。 According to the above configuration, ratio information indicating the ratio between the amount of liquid discharged and the amount of decrease in liquid in each liquid chamber is stored in the memory. A decrease in liquid in each liquid chamber is determined. As a result, using the determined amount of decrease, for example, the amount of liquid stored in the first liquid chamber and the amount of liquid stored in the second liquid chamber can be calculated, or by grasping the total amount of decrease, the first liquid chamber and the The amount of liquid stored in each of the two liquid chambers can be individually grasped. Thereby, for example, the amount of liquid in the first liquid chamber and the amount of liquid in the second liquid chamber can be individually notified to the user. Also, for example, when the cartridge is replaced, the amount of liquid in the tank can be grasped, and the amount of liquid remaining in the new cartridge can be added to the amount of liquid in the new cartridge to grasp the total amount of remaining liquid. Note that the first discharge instruction amount may be a value corresponding to the amount of liquid whose discharge is instructed by one first discharge instruction, or the amount of liquid whose discharge is instructed by a plurality of first discharge instructions. may be a value corresponding to the integrated value of

(2) 好ましくは、液体排出装置は、インタフェースを更に備えている。上記装着ケースは、第1種類の上記カートリッジ及び第2種類の上記カートリッジが装着可能である。上記コントローラは、上記装着ケースに装着された上記カートリッジが上記第1種類又は上記第2種類であることを示す種類情報を上記装着ケースに装着された上記カートリッジのカートリッジメモリから上記インタフェースを通じて取得し、上記第1種類であることを示す種類情報に対応する第1比率情報、及び上記第2種類であることを示す種類情報に対応する第2比率情報の2種類の上記比率情報のうち、取得した上記種類情報に対応するいずれか1つの上記比率情報を上記メモリから読み出し、読み出した上記比率情報と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsを決定する。 (2) Preferably, the liquid ejection device further comprises an interface. A first type of cartridge and a second type of cartridge can be mounted on the mounting case. the controller acquires type information indicating whether the cartridge mounted in the mounting case is of the first type or the second type from the cartridge memory of the cartridge mounted in the mounting case through the interface; Of the two types of ratio information, the first ratio information corresponding to the type information indicating the first type and the second ratio information corresponding to the type information indicating the second type, the acquired Any one of the ratio information corresponding to the type information is read from the memory, and the decrease amount ΔVc and the decrease amount ΔVs are determined based on the read ratio information and the first discharge instruction amount.

上記構成によれば、種類の異なるカートリッジにそれぞれ対応する比率情報が読み出されて、減少量ΔVc及び減少量ΔVsが決定されるので、第1液室及び第2液室それぞれに貯留された液体の量を更に正確に把握することができる。 According to the above configuration, the ratio information corresponding to the cartridges of different types is read, and the amount of decrease ΔVc and the amount of decrease ΔVs are determined. can be more accurately determined.

(3) 好ましくは、上記コントローラは、上記第1液室に貯留されている液体の液体量Vcと上記第2液室に貯留されている液体の液体量Vsとの和である総液体量Vtが第1閾値より大きいか否かを判定し、上記総液体量Vtが上記第1閾値以上と判定したことに基づいて、上記比率情報である第1比率を上記メモリから読み出して、読み出した上記第1比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、上記総液体量Vtが上記第1閾値未満であると判定したことに基づいて、上記比率情報であり且つ上記第1比率とは異なる第2比率を上記メモリから読み出して、読み出した上記第2比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定する。
(3) Preferably, the controller determines a total liquid amount Vt which is the sum of the liquid amount Vc of the liquid stored in the first liquid chamber and the liquid amount Vs of the liquid stored in the second liquid chamber. is greater than the first threshold, and based on the determination that the total liquid amount Vt is equal to or greater than the first threshold, the first ratio, which is the ratio information, is read from the memory, and the read The decrease amount ΔVc and the decrease amount ΔVs are determined from the first ratio and the first discharge instruction amount, and the ratio is determined based on the determination that the total liquid amount Vt is less than the first threshold value. A second ratio that is information and is different from the first ratio is read from the memory, and the decrease amount ΔVc and the decrease amount ΔVs are calculated based on the read second ratio and the first discharge instruction amount. decide.

上記構成によれば、総液体量Vtと閾値との大小に基づいて、減少量の決定に用いる比率が2つの比率から選択されるので、第1液室及び第2液室それぞれに貯留された液体の量を更に正確に把握することができる。 According to the above configuration, the ratio used for determining the amount of decrease is selected from two ratios based on the magnitude of the total liquid amount Vt and the threshold. The amount of liquid can be grasped more accurately.

(4) 好ましくは、上記コントローラは、上記液体量Vcと上記液体量Vsとの和である総液体量Vtが上記第1閾値より小さい第2閾値より大きいか否かを判定し、上記総液体量Vtが上記第2閾値以上であると判定したことに基づいて、上記第2比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、上記総液体量Vtが上記第2閾値未満であると判定したことに基づいて、上記比率情報であり且つ上記第2比率とは異なる第3比率を上記メモリから読み出して、読み出した上記第3比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定する。 (4) Preferably, the controller determines whether or not a total liquid amount Vt, which is the sum of the liquid amount Vc and the liquid amount Vs, is larger than a second threshold smaller than the first threshold, and Based on the determination that the amount Vt is equal to or greater than the second threshold value, the amount of decrease ΔVc and the amount of decrease ΔVs are determined from the second ratio and the first discharge instruction amount, and the total amount of liquid is determined. Based on the determination that Vt is less than the second threshold, a third ratio that is the ratio information and is different from the second ratio is read from the memory, and the read third ratio and the first ratio are read. The amount of decrease ΔVc and the amount of decrease ΔVs are determined from the discharge instruction amount.

上記構成によれば、総液体量Vtと2つの閾値との大小に基づいて、減少量の決定に用いる比率が3つの比率から選択されるので、第1液室及び第2液室それぞれに貯留された液体の量を更に正確に把握することができる。 According to the above configuration, the ratio used for determining the amount of decrease is selected from three ratios based on the magnitude of the total liquid amount Vt and the two threshold values. The amount of liquid dispensed can be determined more accurately.

(5) 好ましくは、上記コントローラは、上記第2液室内の液面の位置が第1所定位置以上であるか判定し、 上記第2液室内の液面の位置が上記第1所定位置以上であると判定したことに基づいて、上記比率情報である第4比率を上記メモリから読み出し、
読み出した上記第4比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定し、 上記第2液室内の液面の位置が上記第1所定位置未満であると判定したことに基づいて、上記比率情報であり且つ上記第4比率とは異なる第5比率を上記メモリから読み出し、読み出した上記第5比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定する。
(5) Preferably, the controller determines whether the position of the liquid level in the second liquid chamber is equal to or higher than the first predetermined position, and determines whether the position of the liquid level in the second liquid chamber is equal to or higher than the first predetermined position. read out the fourth ratio, which is the ratio information, from the memory based on the determination that there is
determining the amount of decrease ΔVc and the amount of decrease ΔVs based on the read fourth ratio and the first discharge instruction amount, and determining the position of the liquid surface in the second liquid chamber below the first predetermined position; Based on the fact that it is determined that there is a The amount of decrease ΔVc and the amount of decrease ΔVs are determined.

上記構成によれば、第2液室内の液面の位置に基づいて、減少量の決定に用いる比率が2つの比率から選択されるので、第1液室及び第2液室それぞれに貯留された液体の量を更に正確に把握することができる。 According to the above configuration, the ratio used to determine the amount of decrease is selected from two ratios based on the position of the liquid surface in the second liquid chamber. The amount of liquid can be grasped more accurately.

(6) 好ましくは、上記コントローラは、上記第2液室内の液面の位置が上記第1所定位置以上である場合に液面センサが出力する第1信号を、上記液面センサから受信したことに基づいて、上記第2液室内の液面の位置が第1所定位置以上であると判定し、
上記第2液室内の液面の位置が上記第1所定位置未満である場合に上記液面センサが出力する第2信号を、上記液面センサから受信したことに基づいて、上記第2液室内の液面の位置が第1所定位置未満であると判定する。
(6) Preferably, the controller receives from the liquid level sensor a first signal output by the liquid level sensor when the position of the liquid level in the second liquid chamber is equal to or greater than the first predetermined position. determining that the position of the liquid surface in the second liquid chamber is equal to or higher than the first predetermined position,
In the second liquid chamber, based on receiving from the liquid level sensor a second signal output by the liquid level sensor when the position of the liquid level in the second liquid chamber is less than the first predetermined position. is below the first predetermined position.

(7) 好ましくは、上記コントローラは、上記カートリッジが装着されたか否かを判定し、上記カートリッジが装着されたと判定したことに基づいて、第2排出指示量を決定する。上記第2排出指示量は、上記カートリッジが装着されたと判定した後に受け付けた上記排出指示で排出が指示された液体の量の積算値に相当する。コントローラは、上記第2排出指示量が第3閾値より小さいか否かを判定し、上記第2排出指示量が上記第3閾値より小さいと判定したことに基づいて、上記比率情報である第6比率を上記メモリから読み出し、読み出した上記第6比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、上記第排出指示量が上記第3閾値以上であると判定したことに基づいて、上記比率情報であり且つ上記第6比率とは異なる第7比率を上記メモリから読み出し、読み出した上記第7比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定する。
(7) Preferably, the controller determines whether or not the cartridge is attached, and determines the second ejection instruction amount based on the determination that the cartridge is attached. The second discharge instruction amount corresponds to an integrated value of the amount of liquid instructed to be discharged by the discharge instruction received after it is determined that the cartridge is attached. The controller determines whether or not the second discharge instruction amount is smaller than a third threshold value, and based on the determination that the second discharge instruction amount is smaller than the third threshold value, the ratio information, which is the sixth reading the ratio from the memory, determining the decrease amount ΔVc and the decrease amount ΔVs from the read sixth ratio and the first discharge instruction amount, and determining the decrease amount ΔVc and the decrease amount ΔVs when the second discharge instruction amount is equal to or greater than the third threshold value; Based on the determination that there is, a seventh ratio that is the ratio information and is different from the sixth ratio is read from the memory, and the decrease amount is calculated from the read seventh ratio and the first discharge instruction amount. ΔVc and the amount of decrease ΔVs are determined.

上記構成によれば、カートリッジが交換されてからの排出量の積算値と閾値との大小に基づいて、減少量の決定に用いる比率が2つの比率から選択されるので、第1液室及び第2液室それぞれに貯留された液体の量を更に正確に把握することができる。 According to the above configuration, the ratio used for determining the amount of decrease is selected from two ratios based on the magnitude of the integrated value of the amount of discharge after the cartridge is replaced and the threshold. It is possible to more accurately grasp the amount of liquid stored in each of the two liquid chambers.

(8) 好ましくは、上記コントローラは、決定した上記減少量ΔVcと上記減少量ΔVsとから、上記第1液室に貯留されている液体量Vcと上記第2液室に貯留されている液体量Vsとを決定する。 (8) Preferably, the controller calculates the liquid amount Vc stored in the first liquid chamber and the liquid amount stored in the second liquid chamber from the determined decrease amount ΔVc and decrease amount ΔVs. Determine Vs.

上記構成によれば、各液室の液体の減少量に基づいて、第1液室の液体量Vcと第2液室の液体量Vsとが決定されるので、第1液室及び第2液室それぞれに貯留された液体の量を個別に把握することができる。 According to the above configuration, the amount of liquid Vc in the first liquid chamber and the amount of liquid Vs in the second liquid chamber are determined based on the amount of decrease in liquid in each liquid chamber. The amount of liquid stored in each chamber can be individually grasped.

(9) 好ましくは、上記コントローラは、決定した液体量Vsを上記メモリに記憶させ、上記第2液室内の液面の位置が第2所定位置未満であるか否かを判定する。上記第2所定位置は、上記カートリッジが上記装着ケースに装着された状態で、上記第1流路及び上記第3流路によって構成される流路を通過して水平方向に延びる仮想線以下の位置である。コントローラは、上記液体量Vsを読み出し、上記第2液室内の液面の位置が第2所定位置未満であると判定した後に受け付けた上記排出指示で排出が指示された液体の量に相当する第3排出指示量を、上記メモリから読み出した上記液体量Vsから減じて上記液体量Vsを決定する。
(9) Preferably, the controller stores the determined liquid amount Vs in the memory, and determines whether or not the position of the liquid level in the second liquid chamber is below a second predetermined position. The second predetermined position is a position below an imaginary line that extends in the horizontal direction through a channel formed by the first channel and the third channel when the cartridge is mounted in the mounting case. is. The controller reads out the liquid amount Vs, and determines that the liquid level in the second liquid chamber is below the second predetermined position. 3 The liquid amount Vs is determined by subtracting the discharge instruction amount from the liquid amount Vs read from the memory.

(10) 好ましくは液体排出装置は、インタフェースを更に備えている。上記コントローラは、決定した上記液体量Vcを、上記カートリッジが有するカートリッジメモリに、上記インタフェースを通じて記憶させる。 (10) Preferably, the liquid ejection device further comprises an interface. The controller stores the determined liquid volume Vc in the cartridge memory of the cartridge through the interface.

上記構成によれば、カートリッジ毎に、第1液室の液体量Vcの情報を有することになるので、その後に当該カートリッジが装着された液体排出装置において、液体量Vcを読み出すことができる。 According to the above configuration, since each cartridge has information on the liquid amount Vc in the first liquid chamber, the liquid amount Vc can be read out in the liquid ejection device to which the cartridge is attached after that.

(11) 好ましくは、液体排出装置は、表示機を更に備えている。上記コントローラは、決定した上記液体量Vc、上記液体量Vs、及び上記液体量Vcと上記液体量Vsとの和である総液体量Vtのうち少なくともいずれか一つを上記表示機に表示させる。 (11) Preferably, the liquid ejection device further comprises a display. The controller causes the indicator to display at least one of the determined liquid amount Vc, the liquid amount Vs, and the total liquid amount Vt, which is the sum of the liquid amount Vc and the liquid amount Vs.

上記構成によれば、個別に把握した液体量Vcや液体量Vs、またはこれらの和の総液体量Vtをユーザに知らせることができる。 According to the above configuration, the user can be notified of the individually grasped liquid amount Vc or liquid amount Vs, or the total liquid amount Vt which is the sum of these.

(12) 本発明に係る液体排出装置は、液体が貯留された第1液室、一端が上記第1液室と連通され且つ他端が外部と連通される第1流路、及び一端が上記第1液室と連通され且つ他端が外部と連通される第2流路を有するカートリッジと、上記カートリッジが装着される装着ケースと、第2液室を有するタンクであって、一端が外部と連通され且つ他端が上記第2液室と連通される第3流路と、上記第3流路よりも下方に位置する一端が上記第2液室と連通される第4流路と、一端が上記第2液室に連通され且つ他端が外部と連通される第5流路と、有する上記タンクと、上記第4流路の他端と連通されるヘッドと、メモリと、コントローラと、を備える。上記第1流路及び上記第3流路の少なくとも一方は、上記カートリッジが上記装着ケースに装着されたときに、上記第1液室及び上記第2液室を連通する。上記コントローラは、上記ヘッドを通じて液体を排出させる排出指示を受け付け、上記ヘッドを通じた液体の排出量に対す上記第1液室に貯留されている液体の減少量ΔVcの比率、又は上記ヘッドを通じた液体の排出量に対する上記第2液室に貯留されている液体の減少量ΔVsの比率うち少なくとも一方を示す比率情報を上記メモリから読み出し、受け付けた上記排出指示で排出が指示された液体の量に相当する第1排出指示量と上記比率情報とに基づいて、上記第1排出指示量に対応する上記減少量ΔVcと上記減少量ΔVsとを決定する。
(12) A liquid discharge device according to the present invention comprises a first liquid chamber in which a liquid is stored, a first channel having one end communicating with the first liquid chamber and the other end communicating with the outside, and A cartridge having a second flow path communicated with the first liquid chamber and having the other end communicated with the outside, a mounting case in which the cartridge is mounted, and a tank having the second liquid chamber, one end of which communicates with the outside. a third flow path that communicates with the second liquid chamber at the other end; a fourth flow path that is positioned below the third flow path and has one end that communicates with the second liquid chamber; is communicated with the second liquid chamber and the other end is communicated with the outside; Prepare. At least one of the first flow path and the third flow path communicates the first liquid chamber and the second liquid chamber when the cartridge is mounted in the mounting case. The controller receives a discharge instruction to discharge the liquid through the head , and the ratio of the reduction amount ΔVc of the liquid stored in the first liquid chamber to the amount of liquid discharged through the head, or Ratio information indicating at least one of the ratios of the decrease amount ΔVs of the liquid stored in the second liquid chamber to the discharge amount of the liquid is read from the memory, and the amount of the liquid instructed to be discharged by the received discharge instruction is obtained. Based on the corresponding first instructed discharge amount and the ratio information, the decrease amount ΔVc and the decrease amount ΔVs corresponding to the first instructed discharge amount are determined.

上記構成によれば、液体の排出量と各液室の液体の減少量との比率を示す比率情報がメモリに記憶されており、その比率情報と、第1排出指示による液体の排出量から、各液室の液体の減少量が決定される。その結果、決定された減少量を用いて、例えば第1液室及び第2液室に貯留された液体の量を算出したり、減少量の合計を把握することにより、第1液室及び第2液室それぞれに貯留された液体の量を個別に把握することができる。これにより、例えば、第1液室と第2液室の液体の量を個別にユーザに報知することができる。また、例えば、カートリッジの交換時にタンクの液体量を把握して、新しいカートリッジの液体量と合計して液体の総残量を把握することができる。なお、第1排出指示量は、一つの第1排出指示で排出が指示された液体の量に相当する値であってもよいし、複数の第1排出指示で排出が指示された液体の量の積算値に相当する値であってもよい。 According to the above configuration, ratio information indicating the ratio between the amount of liquid discharged and the amount of decrease in liquid in each liquid chamber is stored in the memory. A decrease in liquid in each liquid chamber is determined. As a result, using the determined amount of decrease, for example, the amount of liquid stored in the first liquid chamber and the amount of liquid stored in the second liquid chamber can be calculated, or by grasping the total amount of decrease, the first liquid chamber and the The amount of liquid stored in each of the two liquid chambers can be individually grasped. Thereby, for example, the amount of liquid in the first liquid chamber and the amount of liquid in the second liquid chamber can be individually notified to the user. Also, for example, when the cartridge is replaced, the amount of liquid in the tank can be grasped, and the amount of liquid remaining in the new cartridge can be added to the amount of liquid in the new cartridge to grasp the total amount of remaining liquid. Note that the first discharge instruction amount may be a value corresponding to the amount of liquid whose discharge is instructed by one first discharge instruction, or the amount of liquid whose discharge is instructed by a plurality of first discharge instructions. may be a value corresponding to the integrated value of

本発明によれば、第1液室及び第2液室それぞれに貯留された液体の量を個別に把握することができる。 According to the present invention, it is possible to individually grasp the amount of liquid stored in each of the first liquid chamber and the second liquid chamber.

図1は、プリンタ10の外観斜視図であって、(A)はカバー87が被覆位置である状態、(B)はカバー87が露出位置である状態を示す。1A and 1B are external perspective views of the printer 10, in which (A) shows a state in which the cover 87 is in the covered position, and (B) shows a state in which the cover 87 is in the exposed position. 図2は、プリンタ10の内部構造を模式的に示す模式断面図である。FIG. 2 is a schematic cross-sectional view schematically showing the internal structure of the printer 10. As shown in FIG. 図3は、装着ケース150の縦断面図である。FIG. 3 is a longitudinal sectional view of the mounting case 150. As shown in FIG. 図4は、カートリッジ200の構造を示す図であって、(A)は前方斜視図を、(B)は縦断面図を示す。4A and 4B are diagrams showing the structure of the cartridge 200, where (A) is a front perspective view and (B) is a vertical sectional view. 図5は、装着ケース150にカートリッジ200が装着された状態の縦断面図である。FIG. 5 is a vertical cross-sectional view of the cartridge 200 mounted in the mounting case 150. As shown in FIG. 図6は、プリンタ10のブロック図である。FIG. 6 is a block diagram of the printer 10. As shown in FIG. 図7は、画像記録処理のフローチャートである。FIG. 7 is a flowchart of image recording processing. 図8は、カウント処理のフローチャートである。FIG. 8 is a flowchart of counting processing. 図9は、変形例1のカウント処理のフローチャートである。FIG. 9 is a flow chart of the counting process of Modification 1. As shown in FIG. 図10は、変形例2のカウント処理のフローチャートである。FIG. 10 is a flow chart of the counting process of Modification 2. FIG. 図11は、インク残量画面の例である。FIG. 11 is an example of the remaining ink screen.

以下、本発明の実施形態について説明する。なお、以下に説明される実施形態は本発明の一例にすぎず、本発明の要旨を変更しない範囲で、本発明の実施形態を適宜変更できることは言うまでもない。また、プリンタ10が使用可能に水平面に設置された使用姿勢を基準として上下方向7が定義され、プリンタ10の開口13が形成された面を前面として前後方向8が定義され、プリンタ10を前面から見て左右方向9が定義される。本実施形態では、使用姿勢において、上下方向7が鉛直方向に相当し、前後方向8及び左右方向9が水平方向に相当する。前後方向8及び左右方向9は、直交している。 Embodiments of the present invention will be described below. It should be noted that the embodiment described below is merely an example of the present invention, and it goes without saying that the embodiment of the present invention can be changed as appropriate without changing the gist of the present invention. A vertical direction 7 is defined with reference to a usage posture in which the printer 10 is installed on a horizontal plane so that it can be used. A left-to-right direction 9 is defined as viewed. In this embodiment, in the usage posture, the up-down direction 7 corresponds to the vertical direction, and the front-rear direction 8 and the left-right direction 9 correspond to the horizontal direction. The front-rear direction 8 and the left-right direction 9 are orthogonal.

[プリンタ10の概要]
本実施形態に係るプリンタ10は、インクジェット記録方式でシートに画像を記録する液体排出装置の一例である。プリンタ10は、概ね直方体形状の筐体14を有している。また、プリンタ10は、ファクシミリ機能、スキャン機能、及びコピー機能などの機能を有する、所謂、「複合機」であってもよい。
[Overview of Printer 10]
A printer 10 according to the present embodiment is an example of a liquid discharge device that records an image on a sheet using an inkjet recording method. The printer 10 has a generally rectangular parallelepiped housing 14 . Further, the printer 10 may be a so-called "multifunction machine" having functions such as a facsimile function, a scan function, and a copy function.

筐体14の内部には、図1及び図2に示されるように、給送トレイ15と、給送ローラ23と、搬送ローラ25と、複数のノズル29を有するヘッド21と、ヘッド21に対面するプラテン26と、排出ローラ27と、排出トレイ16と、カートリッジ200が着脱される装着ケース150と、ヘッド21及び装着ケース150に装着されたカートリッジ200を連通させるチューブ32とが位置している。 Inside the housing 14, as shown in FIGS. 1 and 2, there are a feed tray 15, a feed roller 23, a transport roller 25, a head 21 having a plurality of nozzles 29, and a head 21 facing the head 21. A platen 26, a discharge roller 27, a discharge tray 16, a mounting case 150 in which the cartridge 200 is mounted and detached, and a tube 32 for communicating the head 21 and the cartridge 200 mounted in the mounting case 150 are positioned.

プリンタ10は、給送ローラ23及び搬送ローラ25を駆動させて、給送トレイ15に支持されたシートをプラテン26の位置まで搬送する。次に、プリンタ10は、装着ケース150に装着されたカートリッジ200からチューブ32を通じて供給されるインクを、ヘッド21にノズル29を通じて吐出させる。これにより、プラテン26に支持されたシートにインクが着弾して、シート上に画像が記録される。そして、プリンタ10は、排出ローラ27を駆動させて、画像が記録されたシートを排出トレイ16に排出する。 The printer 10 drives the feed roller 23 and the transport roller 25 to transport the sheet supported by the feed tray 15 to the position of the platen 26 . Next, the printer 10 causes the head 21 to eject the ink supplied through the tube 32 from the cartridge 200 mounted in the mounting case 150 through the nozzles 29 . As a result, the ink lands on the sheet supported by the platen 26 and an image is recorded on the sheet. The printer 10 then drives the discharge roller 27 to discharge the sheet on which the image is recorded to the discharge tray 16 .

より詳細には、ヘッド21は、搬送ローラ25によるシートの搬送向きと交差する主走査方向に往復移動するキャリッジに搭載されていてもよい。そして、プリンタ10は、主走査方向の一方から他方へキャリッジを移動させる過程で、ヘッド21にノズル29を通じてインクを吐出させてもよい。これにより、ヘッド21に対面するシートの一部の領域(以下、「1パス」と表記する。)に画像が記録される。次に、プリンタ10は、次に画像が記録されるべき領域がヘッド21に対面するように、搬送ローラ25にシートを搬送させてもよい。そして、これらの処理を交互に繰り返し実行させることによって、1枚のシートに画像が記録される。 More specifically, the head 21 may be mounted on a carriage that reciprocates in a main scanning direction that intersects the conveying direction of the sheet by the conveying rollers 25 . The printer 10 may cause the head 21 to eject ink through the nozzles 29 in the process of moving the carriage from one side of the main scanning direction to the other side. As a result, an image is printed on a partial area of the sheet facing the head 21 (hereinafter referred to as "1 pass"). Next, the printer 10 may cause the transport rollers 25 to transport the sheet so that the area where the image is to be recorded next faces the head 21 . By alternately and repeatedly executing these processes, an image is recorded on one sheet.

なお、本実施形態においては、画像記録におけるヘッド21のノズル29からのインクの排出が「吐出」と称され、他方、パージにおけるヘッド21のノズル29からのインクの排出が「吐出」と称されないが、「吐出」は「排出」に含まれる概念である。 In the present embodiment, discharging ink from the nozzles 29 of the head 21 during image recording is referred to as "ejection," whereas discharging ink from the nozzles 29 of the head 21 during purging is not referred to as "ejection." However, "discharge" is a concept included in "discharge".

[カバー87]
図1に示されるように、筐体14の前面14Aで且つ左右方向9の右端部には、開口85が形成されている。筐体14は、さらにカバー87を備える。カバー87は、開口85を閉塞させる被覆位置(図1(A)に示される位置)と、開口85を開放する露出位置(図1(B)に示される位置)との間を回動可能である。カバー87は、例えば、上下方向7における筐体14の下端近傍において、左右方向9に沿う回動軸線周りに回動可能に、筐体14によって支持されている。そして、開口85の奥に広がる筐体14内部の収容空間86には、装着ケース150が位置している。
[Cover 87]
As shown in FIG. 1, an opening 85 is formed on the front surface 14A of the housing 14 and at the right end in the left-right direction 9. As shown in FIG. Housing 14 further includes a cover 87 . The cover 87 is rotatable between a covering position (the position shown in FIG. 1A) that closes the opening 85 and an exposing position that opens the opening 85 (the position shown in FIG. 1B). be. For example, the cover 87 is supported by the housing 14 in the vicinity of the lower end of the housing 14 in the vertical direction 7 so as to be rotatable about a rotational axis along the horizontal direction 9 . A mounting case 150 is positioned in a housing space 86 inside the housing 14 that extends beyond the opening 85 .

[カバーセンサ88]
プリンタ10は、カバーセンサ88(図6参照)を有する。カバーセンサ88は、例えば、カバー87が接離するスイッチ等の機械式センサであってもよいし、カバー87の位置によって光が遮断或いは透過される光学式センサであってもよい。カバーセンサ88は、カバー87の位置に応じた信号をコントローラ130に出力する。より詳細には、カバーセンサ88は、カバー87が被覆位置に位置していることに応じて、ローレベル信号をコントローラ130へ出力する。一方、カバーセンサ88は、カバー87が被覆位置と異なる位置に位置していることに応じて、ローレベル信号より信号強度の高いハイレベル信号をコントローラ130へ出力する。換言すれば、カバーセンサ88は、カバー87が露出位置に位置していることに応じて、ハイレベル信号をコントローラ130へ出力する。
[Cover sensor 88]
The printer 10 has a cover sensor 88 (see FIG. 6). The cover sensor 88 may be, for example, a mechanical sensor such as a switch with which the cover 87 contacts and separates, or an optical sensor that blocks or transmits light depending on the position of the cover 87 . Cover sensor 88 outputs a signal corresponding to the position of cover 87 to controller 130 . More specifically, cover sensor 88 outputs a low level signal to controller 130 in response to cover 87 being positioned at the covering position. On the other hand, the cover sensor 88 outputs a high level signal having a higher signal strength than the low level signal to the controller 130 in response to the fact that the cover 87 is positioned at a position different from the covering position. In other words, the cover sensor 88 outputs a high level signal to the controller 130 in response to the cover 87 being positioned at the exposed position.

[装着ケース150]
装着ケース150は、図3に示されるように、接点152と、ロッド153と、装着センサ154と、液面センサ155と、ロックピン156とを備えている。装着ケース150には、ブラック、シアン、マゼンタ、イエローの各色に対応する4つのカートリッジ200が収容可能である。すなわち、装着ケース150は、接点152、ロッド153、装着センサ154、液面センサ155は、4つのカートリッジ200それぞれに対応して、4つずつ備えている。なお、装着ケース150に収容可能なカートリッジ200の数は、4つに限定されず、1つでも良いし、5つ以上でも良い。
[Mounting case 150]
The mounting case 150 includes a contact 152, a rod 153, a mounting sensor 154, a liquid level sensor 155, and a lock pin 156, as shown in FIG. The mounting case 150 can accommodate four cartridges 200 corresponding to black, cyan, magenta, and yellow. That is, the mounting case 150 includes four contacts 152, rods 153, mounting sensors 154, and liquid level sensors 155 corresponding to the four cartridges 200, respectively. The number of cartridges 200 that can be accommodated in the mounting case 150 is not limited to four, and may be one or five or more.

装着ケース150は、装着されたカートリッジ200を収容する内部空間を有する箱形状である。装着ケース150の内部空間は、上端を画定する天壁と、下端を画定する底壁と、前後方向8の後端を画定する奥壁と、左右方向9の両端を画定する一対の側壁とで画定される。一方、装着ケース150の奥壁と対面する位置は、開口85となっている。すなわち、開口85は、カバー87を露出位置に配置したときに、装着ケース150の内部空間を、プリンタ10の外部に露出させる。 The mounting case 150 has a box shape having an internal space for accommodating the mounted cartridge 200 . The interior space of the mounting case 150 is composed of a ceiling wall that defines the upper end, a bottom wall that defines the lower end, an inner wall that defines the rear end in the front-rear direction 8 , and a pair of side walls that define both ends in the left-right direction 9 . defined. On the other hand, an opening 85 is provided at a position facing the back wall of the mounting case 150 . That is, the opening 85 exposes the internal space of the mounting case 150 to the outside of the printer 10 when the cover 87 is placed at the exposed position.

そして、カートリッジ200は、筐体14の開口85を通じて、装着ケース150に挿入され、装着ケース150から抜かれる。より詳細には、カートリッジ200は、開口85を前後方向8の後ろ向きに通過して、装着ケース150に装着される。装着ケース150から抜かれるカートリッジ200は、開口85を前後方向8の前向きに通過する。 Then, the cartridge 200 is inserted into the mounting case 150 through the opening 85 of the housing 14 and removed from the mounting case 150 . More specifically, the cartridge 200 is attached to the attachment case 150 by passing through the opening 85 backward in the front-rear direction 8 . The cartridge 200 removed from the mounting case 150 passes forward in the front-rear direction 8 through the opening 85 .

装着ケース150は、複数種類のカートリッジ200が装着可能なように構成されている。複数種類のカートリッジ200は、液室210の形状及び断面積が異なることによって液室210の容積が異なり、各液室210に最初に貯留されるインク量Vc、すなわち初期インク量Vc0が異なるものである。また、異なる種類のカートリッジの間では、後述する関数F1、F2及びF3、閾値Vh1、Vh2、及び比率情報Gが異なる。本実施形態では、後述する標準のカートリッジ200(第1種類のカートリッジの一例)と、当該カートリッジ200より初期インク量が多い大容量カートリッジ(第2種類のカートリッジの一例)が装着ケース150に装着可能であるとする。 The mounting case 150 is configured so that a plurality of types of cartridges 200 can be mounted. The plurality of types of cartridges 200 have different volumes of the liquid chambers 210 due to the different shapes and cross-sectional areas of the liquid chambers 210, and the ink amounts Vc initially stored in the respective liquid chambers 210, that is, the initial ink amounts Vc0, differ. be. Further, functions F1, F2 and F3, threshold values Vh1 and Vh2, and ratio information G differ between different types of cartridges. In this embodiment, a standard cartridge 200 (an example of a first type cartridge), which will be described later, and a large-capacity cartridge (an example of a second type cartridge) with a larger initial ink amount than the cartridge 200 can be mounted in the mounting case 150. Suppose that

[接点152]
接点152は、装着ケース150の天壁に位置している。接点152は、天壁から装着ケース150の内部空間へ向けて下方に突出している。接点152は、装着ケース150にカートリッジ200が装着された状態において、カートリッジ200の後述する電極248に接する位置に位置している。接点152は、導電性を有しており、さらに上下方向7に沿って弾性的に変形可能である。接点152は、コントローラ130に電気的に接続されている。
[Contact 152]
Contact 152 is located on the top wall of mounting case 150 . The contact 152 protrudes downward from the top wall toward the internal space of the mounting case 150 . The contact 152 is positioned to contact an electrode 248 (described later) of the cartridge 200 when the cartridge 200 is mounted in the mounting case 150 . The contact 152 is conductive and elastically deformable in the vertical direction 7 . Contact 152 is electrically connected to controller 130 .

[ロッド153]
ロッド153は、装着ケース150の奥壁から前方へ突出している。ロッド153は、装着ケース150の奥壁において、後述するジョイント180より上方に位置している。ロッド153は、カートリッジ200が装着ケース150に装着される過程において、カートリッジ200の後述する大気連通口221を通じて大気バルブ室214に進入する。ロッド153が大気バルブ室214に進入すると、後述する大気バルブ室214が大気に連通される。
[Rod 153]
The rod 153 protrudes forward from the inner wall of the mounting case 150 . The rod 153 is located on the back wall of the mounting case 150 above a joint 180 which will be described later. The rod 153 enters the atmosphere valve chamber 214 through the later-described atmosphere communication port 221 of the cartridge 200 in the process of attaching the cartridge 200 to the attachment case 150 . When the rod 153 enters the atmosphere valve chamber 214, the later-described atmosphere valve chamber 214 is communicated with the atmosphere.

[装着センサ154]
装着センサ154は、装着ケース150の天壁に位置している。装着センサ154は、カートリッジ200が装着ケース150に装着されているか否かを、コントローラ130が検出するためのセンサである。装着センサ154は、左右方向9に離間した発光部及び受光部を備える。装着ケース150にカートリッジ200が装着された状態において、カートリッジ200の後述する遮光リブ245は、装着センサ154の発光部及び受光部の間に位置する。換言すれば、装着センサ154の発光部及び受光部は、装着ケース150に装着されたカートリッジ200の遮光リブ245を挟んで、互いに対向した状態で位置している。
[Wearing sensor 154]
The mounting sensor 154 is located on the ceiling wall of the mounting case 150 . The mounting sensor 154 is a sensor for the controller 130 to detect whether or not the cartridge 200 is mounted in the mounting case 150 . The mounting sensor 154 has a light-emitting portion and a light-receiving portion spaced apart in the left-right direction 9 . When the cartridge 200 is mounted in the mounting case 150 , a light shielding rib 245 (described later) of the cartridge 200 is positioned between the light emitting portion and the light receiving portion of the mounting sensor 154 . In other words, the light-emitting portion and the light-receiving portion of the mounting sensor 154 are positioned facing each other with the light shielding rib 245 of the cartridge 200 mounted in the mounting case 150 interposed therebetween.

装着センサ154は、発光部から左右方向9に沿って照射された光が受光部で受光されたか否かに応じて、異なる信号(図中では、「装着信号」と表記する。)を出力する。装着センサ154は、例えば、受光部で受光された光の受光強度が閾値強度未満であることに応じて、ローレベル信号をコントローラ130へ出力する。一方、装着センサ154は、受光部で受光された光の受光強度が閾値強度以上であることに応じて、ローレベル信号より信号強度の高いハイレベル信号をコントローラ130へ出力する。ハイレベル信号は第3信号の一例であり、ローレベル信号は第4信号の一例である。 The mounting sensor 154 outputs a different signal (denoted as "mounting signal" in the drawing) depending on whether the light emitted from the light emitting section along the horizontal direction 9 is received by the light receiving section. . The mounting sensor 154 outputs a low level signal to the controller 130, for example, in response to the intensity of light received by the light receiving portion being less than the threshold intensity. On the other hand, the mounting sensor 154 outputs a high-level signal having a higher signal intensity than the low-level signal to the controller 130 in response to the intensity of the light received by the light-receiving portion being equal to or higher than the threshold intensity. A high level signal is an example of a third signal, and a low level signal is an example of a fourth signal.

[液面センサ155]
液面センサ155は、後述するアクチュエータ190の被検出部194が検出位置に位置しているか否かを、コントローラ130が検出するためのセンサである。液面センサ155は、左右方向9に離間した発光部及び受光部を備える。換言すれば、液面センサ155の発光部及び受光部は、検出位置に位置した被検出部194を挟んで、互いに対向した状態で位置している。液面センサ155は、発光部から出力された光が受光部で受光されたか否かに応じて異なる信号(図中では、「液面信号」と表記する。)を出力する。液面センサ155は、例えば、受光部で受光された光の受光強度が閾値強度未満であることに応じて、ローレベル信号をコントローラ130へ出力する。一方、液面センサ155は、受光部で受光された光の受光強度が閾値強度以上であることに応じて、ローレベル信号より信号強度の高いハイレベル信号をコントローラ130へ出力する。ハイレベル信号は第2信号の一例であり、ローレベル信号は第1信号の一例である。
[Liquid level sensor 155]
The liquid level sensor 155 is a sensor for the controller 130 to detect whether or not a detected portion 194 of the actuator 190, which will be described later, is positioned at the detection position. The liquid level sensor 155 has a light emitting part and a light receiving part spaced apart in the left-right direction 9 . In other words, the light-emitting portion and the light-receiving portion of the liquid level sensor 155 are positioned facing each other with the detected portion 194 positioned at the detection position in between. The liquid level sensor 155 outputs a different signal (denoted as "liquid level signal" in the figure) depending on whether the light output from the light emitting section is received by the light receiving section. The liquid level sensor 155 outputs a low level signal to the controller 130, for example, in response to the intensity of light received by the light receiving portion being less than the threshold intensity. On the other hand, the liquid level sensor 155 outputs a high level signal having a higher signal strength than the low level signal to the controller 130 when the intensity of the light received by the light receiving portion is equal to or higher than the threshold intensity. A high level signal is an example of a second signal, and a low level signal is an example of a first signal.

[ロックピン156]
ロックピン156は、装着ケース150の内部空間の上端で且つ開口85付近において、左右方向9に沿って延びる棒状の部材である。ロックピン156の左右方向9の両端は、装着ケース150の一対の側壁に固定されている。ロックピン156は、4つのカートリッジ200が収納可能な4つの空間に亘って左右方向9に延びている。ロックピン156は、装着ケース150に装着されたカートリッジ200を、図5に示される装着位置に保持するためのものである。カートリッジ200は、装着ケース150に装着された状態で、ロックピン156に係合される。
[Lock pin 156]
The lock pin 156 is a rod-shaped member extending along the left-right direction 9 at the upper end of the inner space of the mounting case 150 and near the opening 85 . Both ends of the lock pin 156 in the left-right direction 9 are fixed to a pair of side walls of the mounting case 150 . The lock pin 156 extends in the left-right direction 9 across four spaces in which four cartridges 200 can be stored. The lock pin 156 is for holding the cartridge 200 mounted in the mounting case 150 at the mounting position shown in FIG. The cartridge 200 is engaged with the lock pin 156 while being attached to the attachment case 150 .

[タンク160]
プリンタ10は、4つのカートリッジ200それぞれに対応して、4つのタンク160を備える。タンク160は、装着ケース150の奥壁よりさらに後方に位置している。タンク160は、図3に示されるように、上壁161と、前壁162と、下壁163と、後壁164と、不図示の一対の側壁とで構成されている。なお、前壁162は、各々が前後方向8にずれた複数の壁によって構成される。タンク160の内部は、液室171が形成されている。液室171は、第2液室の一例である。
[Tank 160]
The printer 10 has four tanks 160 corresponding to the four cartridges 200 respectively. The tank 160 is positioned further rearward than the inner wall of the mounting case 150 . As shown in FIG. 3, the tank 160 includes an upper wall 161, a front wall 162, a lower wall 163, a rear wall 164, and a pair of side walls (not shown). In addition, the front wall 162 is configured by a plurality of walls that are shifted in the front-rear direction 8 . A liquid chamber 171 is formed inside the tank 160 . The liquid chamber 171 is an example of a second liquid chamber.

タンク160を構成する壁のうち、少なくとも液面センサ155に対面する壁は、透光性を有している。これにより、液面センサ155が出力した光は、液面センサ155に対面する壁を透過することができる。後壁164の少なくとも一部は、上壁161、下壁163、及び側壁の端面に溶着されるフィルムでもよい。また、タンク160の側壁は、装着ケース150と共通でもよいし、装着ケース150とは独立していてもよい。さらに、左右方向9に隣接するタンク160の間は、不図示の隔壁によって仕切られている。4つのタンク160の構成は、概ね共通する。 Of the walls forming the tank 160, at least the wall facing the liquid level sensor 155 is translucent. As a result, the light output from the liquid level sensor 155 can pass through the wall facing the liquid level sensor 155 . At least a portion of the rear wall 164 may be a film that is welded to the top wall 161, the bottom wall 163, and the end faces of the side walls. Also, the sidewall of the tank 160 may be shared with the mounting case 150 or may be independent of the mounting case 150 . Further, the tanks 160 adjacent in the left-right direction 9 are partitioned by partition walls (not shown). The configuration of the four tanks 160 is generally common.

液室171は、流出口174を通じて不図示のインク流路に連通されている。流出口174の下端は、液室171の下端を画定する下壁163によって画定されている。流出口174は、ジョイント180(より詳細には、貫通孔184の下端)より上下方向7の下方に位置している。流出口174に連通された不図示のインク流路は、チューブ32(図2参照)に連通されている。これにより、液室171は、流出口174からインク流路及びチューブ32を通じて、ヘッド21と連通する。つまり、液室171に貯留されたインクは、流出口174からインク流路及びチューブ32を通じて、ヘッド21へ供給される。流出口174に連通されたインク流路及びチューブ32は、一端(流出口174)が液室171に連通され、且つ他端33(図2参照)がヘッド21に連通された第4流路の一例である。 The liquid chamber 171 communicates with an ink flow path (not shown) through an outlet 174 . A lower end of the outflow port 174 is defined by a lower wall 163 that defines a lower end of the liquid chamber 171 . The outflow port 174 is located below the joint 180 (more specifically, the lower end of the through hole 184) in the vertical direction 7. As shown in FIG. An ink flow path (not shown) communicating with the outlet 174 communicates with the tube 32 (see FIG. 2). As a result, the liquid chamber 171 communicates with the head 21 from the outlet 174 through the ink flow path and the tube 32 . In other words, the ink stored in the liquid chamber 171 is supplied from the outlet 174 to the head 21 through the ink flow path and the tube 32 . The ink channel and the tube 32 communicating with the outlet 174 is a fourth channel having one end (outlet 174) communicated with the liquid chamber 171 and the other end 33 (see FIG. 2) communicated with the head 21. An example.

液室171は、大気連通室175を通じて大気に連通されている。より詳細には、大気連通室175は、前壁162を貫通する貫通孔176を通じて液室171に連通されている。また、大気連通室175は、大気連通ポート177及び大気連通ポート177に接続された不図示のチューブを通じて、プリンタ10の外部に連通されている。すなわち、大気連通室175は、一端(貫通孔176)が液室171に連通され、且つ他端(大気連通ポート177)がプリンタ10の外部に連通された第5流路の一例である。なお、大気連通室175は、大気連通ポート177及び不図示のチューブを通じて、大気に連通している。 The liquid chamber 171 communicates with the atmosphere through an atmosphere communication chamber 175 . More specifically, the atmospheric communication chamber 175 communicates with the liquid chamber 171 through a through hole 176 passing through the front wall 162 . The atmosphere communication chamber 175 communicates with the outside of the printer 10 through an atmosphere communication port 177 and a tube (not shown) connected to the atmosphere communication port 177 . That is, the atmosphere communication chamber 175 is an example of a fifth flow channel having one end (through hole 176 ) communicated with the liquid chamber 171 and the other end (atmosphere communication port 177 ) communicated with the outside of the printer 10 . The atmosphere communication chamber 175 communicates with the atmosphere through an atmosphere communication port 177 and a tube (not shown).

[ジョイント180]
ジョイント180は、図3に示されるように、ニードル181と、ガイド182とを備えている。ニードル181は、内部に流路が形成された管である。ニードル181は、液室171を画定する前壁162から前方へ突出している。ニードル181の突出先端には、開口183が形成されている。また、ニードル181の内部空間は、前壁162を貫通する貫通孔184を通じて液室171に連通されている。ニードル181は、一端(開口183)がタンク160の外部に連通され、且つ他端(貫通孔184)が液室171に連通された第3流路の一例である。ガイド182は、ニードル181の周囲に配置された円筒形状の部材である。ガイド182は、前壁162から前方に突出して、突出端が開口している。
[Joint 180]
The joint 180 comprises a needle 181 and a guide 182, as shown in FIG. The needle 181 is a tube with a channel formed therein. The needle 181 protrudes forward from a front wall 162 that defines the liquid chamber 171 . An opening 183 is formed at the projecting tip of the needle 181 . Further, the internal space of the needle 181 communicates with the liquid chamber 171 through a through hole 184 passing through the front wall 162 . The needle 181 is an example of a third channel having one end (opening 183 ) communicated with the outside of the tank 160 and the other end (through hole 184 ) communicated with the liquid chamber 171 . Guide 182 is a cylindrical member arranged around needle 181 . The guide 182 protrudes forward from the front wall 162 and has an open end.

ニードル181の内部空間には、バルブ185と、コイルバネ186とが位置している。バルブ185は、ニードル181の内部空間において、閉塞位置と開放位置との間を、前後方向8に沿って移動可能である。バルブ185は、閉塞位置に位置すると開口183を閉塞する。またバルブ185は、開放位置に位置すると開口183を開放する。コイルバネ186は、バルブ185を開放位置から閉塞位置に移動させる向き、すなわち前方に付勢している。 A valve 185 and a coil spring 186 are located in the internal space of the needle 181 . The valve 185 is movable in the front-rear direction 8 between a closed position and an open position in the inner space of the needle 181 . Valve 185 closes opening 183 when in the closed position. Also, the valve 185 opens the opening 183 when positioned in the open position. The coil spring 186 biases the valve 185 from the open position to the closed position, that is, forward.

[アクチュエータ190]
液室171には、アクチュエータ190が位置している。アクチュエータ190は、液室171内に配置された不図示の支持部材によって、矢印198、199の向きに回動可能に支持されている。アクチュエータ190は、図3の実線で示される位置及び破線で示される位置の間を回動することができる。さらに、アクチュエータ190は、不図示のストッパ(例えば、液室171の内壁)によって、実線の位置より矢印198の向きへの回動が規制される。アクチュエータ190は、フロート191と、軸192と、アーム193と、被検出部194とを備える。
[Actuator 190]
An actuator 190 is positioned in the liquid chamber 171 . The actuator 190 is rotatably supported in the directions of arrows 198 and 199 by a support member (not shown) arranged inside the liquid chamber 171 . Actuator 190 can pivot between the position shown in solid lines and the position shown in dashed lines in FIG. Further, the actuator 190 is restricted from rotating in the direction of the arrow 198 from the solid line position by a stopper (not shown) (for example, the inner wall of the liquid chamber 171). Actuator 190 includes float 191 , shaft 192 , arm 193 , and detected portion 194 .

フロート191は、液室171に貯留されるインクより比重が小さい材料で形成されている。軸192は、フロート191の右面及び左面から左右方向9に突出している。軸192は、支持部材に形成された不図示の孔に挿入されている。これにより、アクチュエータ190は、軸192を中心として回動可能に支持部材によって支持される。アーム193は、フロート191から略上方へ延びている。被検出部194は、アーム193の突出先端部に位置している。被検出部194は、上下方向7及び前後方向8に延びる板状の部材である。被検出部194は、液面センサ155の発光部から出力された光を遮光する材料又は色で形成されている。 The float 191 is made of a material having a lower specific gravity than the ink stored in the liquid chamber 171 . The shaft 192 protrudes in the left-right direction 9 from the right and left surfaces of the float 191 . The shaft 192 is inserted into a hole (not shown) formed in the support member. As a result, the actuator 190 is supported by the supporting member so as to be rotatable about the shaft 192 . Arm 193 extends substantially upward from float 191 . The detected portion 194 is located at the projecting tip of the arm 193 . The detected portion 194 is a plate-shaped member extending in the vertical direction 7 and the front-rear direction 8 . The detected portion 194 is made of a material or color that blocks the light emitted from the light emitting portion of the liquid level sensor 155 .

液室171内のインクの液面が所定位置P以上のとき、浮力によって矢印198の向きに回動されたアクチュエータ190は、ストッパによって図3の実線で示される検出位置に保持される。一方、インクの液面が所定位置P未満のとき、アクチュエータ190は、液面の降下に追従して矢印199の向きに回動される。これにより、被検出部194は、検出位置から外れた位置に移動する。すなわち、被検出部194は、液室171に貯留されたインクの量に対応する位置に移動する。 When the liquid level of the ink in the liquid chamber 171 is above the predetermined position P, the actuator 190 rotated in the direction of the arrow 198 by the buoyant force is held at the detection position indicated by the solid line in FIG. 3 by the stopper. On the other hand, when the ink level is below the predetermined position P, the actuator 190 is rotated in the direction of the arrow 199 following the fall of the ink level. As a result, the detected portion 194 moves to a position away from the detection position. That is, the detected portion 194 moves to a position corresponding to the amount of ink stored in the liquid chamber 171 .

所定位置Pは、上下方向7において、ニードル181の軸中心と同じ高さであり、且つ後述するインク供給口234の中心と同じ高さにおいて、水平方向に延びる仮想線によって示される。しかしながら、所定位置Pは、上下方向7における流出口174より上方の位置であれば、前述の位置に限定されない。他の例として、所定位置Pは、ニードル181の内部空間の上端や下端の高さでもよいし、インク供給口234の上端や下端の高さでもよい。 The predetermined position P is indicated by an imaginary line extending horizontally at the same height as the center of the axis of the needle 181 in the vertical direction 7 and at the same height as the center of the ink supply port 234, which will be described later. However, the predetermined position P is not limited to the position described above as long as it is a position above the outflow port 174 in the vertical direction 7 . As another example, the predetermined position P may be the height of the upper end or the lower end of the inner space of the needle 181 or the height of the upper end or the lower end of the ink supply port 234 .

液室171に貯留されたインクの液面が所定位置P以上のとき、液面センサ155の発光部から出力された光が被検出部194で遮られる。これにより、液面センサ155は、発光部からの光が受光部に到達しないので、ローレベル信号をコントローラ130へ出力する。一方、液室171に貯留されたインクの液面が所定位置P未満のとき、液面センサ155は、発光部から出力された光が受光部に到達するので、ハイレベル信号をコントローラ130へ出力する。すなわち、コントローラ130は、液室171内のインクの液面が所定位置P以上か否かを、液面センサ155から出力される信号によって検出することができる。所定位置Pは、第2所定位置の一例である。 When the liquid level of the ink stored in the liquid chamber 171 is equal to or higher than the predetermined position P, the light output from the light emitting section of the liquid level sensor 155 is blocked by the detected section 194 . As a result, the liquid level sensor 155 outputs a low level signal to the controller 130 because the light from the light emitting portion does not reach the light receiving portion. On the other hand, when the liquid level of the ink stored in the liquid chamber 171 is below the predetermined position P, the liquid level sensor 155 outputs a high level signal to the controller 130 because the light output from the light emitting section reaches the light receiving section. do. That is, the controller 130 can detect whether or not the liquid level of the ink in the liquid chamber 171 is equal to or higher than the predetermined position P based on the signal output from the liquid level sensor 155 . The predetermined position P is an example of a second predetermined position.

[カートリッジ200]
カートリッジ200は、液体の一例であるインクを内部に貯留可能な液室210(図2参照)を有する容器である。液室210は、例えば、樹脂製の壁によって画定されている。カートリッジ200は、図4(A)に示されるように、上下方向7及び前後方向8それぞれに沿った寸法が、左右方向9に沿った寸法よりも大きい扁平形状である。なお、異なる色のインクが貯留されるカートリッジ200の外形形状は、同一でもよいし、異なっていてもよい。カートリッジ200を構成する壁のうちの少なくとも一部は、透光性を有している。これにより、ユーザは、カートリッジ200の液室210に貯留されたインクの液面をカートリッジ200の外部から視認することができる。なお、上述した大容量カートリッジは、液室210の形状及び断面積が異なる他はカートリッジ200と同様の構成を有するため、詳細な説明を省略する。
[Cartridge 200]
The cartridge 200 is a container having a liquid chamber 210 (see FIG. 2) capable of storing ink, which is an example of liquid. The liquid chamber 210 is defined by, for example, resin walls. As shown in FIG. 4A, the cartridge 200 has a flat shape in which the dimension along the vertical direction 7 and the longitudinal direction 8 is larger than the dimension along the lateral direction 9 . It should be noted that the outer shapes of the cartridges 200 in which inks of different colors are stored may be the same or different. At least part of the walls that constitute the cartridge 200 are translucent. Thereby, the user can visually recognize the liquid surface of the ink stored in the liquid chamber 210 of the cartridge 200 from the outside of the cartridge 200 . The above-described large-capacity cartridge has the same configuration as the cartridge 200 except for the shape and cross-sectional area of the liquid chamber 210, so detailed description thereof will be omitted.

カートリッジ200は、筐体201と、供給管230とを備える。筐体201は、後壁202と、前壁203と、上壁204と、下壁205と、一対の側壁206、207とで構成されている。なお、後壁202は、各々が前後方向8にずれた複数の壁によって構成されている。また、上壁204は、各々が上下方向7にずれた複数の壁によって構成されている。さらに、下壁205は、各々が上下方向7にずれた複数の壁によって構成されている。 Cartridge 200 includes housing 201 and supply tube 230 . The housing 201 is composed of a rear wall 202 , a front wall 203 , an upper wall 204 , a lower wall 205 and a pair of side walls 206 and 207 . In addition, the rear wall 202 is composed of a plurality of walls that are shifted in the front-rear direction 8 . Also, the upper wall 204 is composed of a plurality of walls that are displaced in the vertical direction 7 . Furthermore, the lower wall 205 is composed of a plurality of walls that are offset in the vertical direction 7 .

カートリッジ200の内部空間には、図4(B)に示されるように、液室210、インクバルブ室213、及び大気バルブ室214が形成されている。液室210は、上部液室211と、下部液室212とを有する。上部液室211、下部液室212、及び大気バルブ室214は、筐体201の内部空間である。一方、インクバルブ室213は、供給管230の内部空間である。液室210は、インクを貯留する。大気バルブ室214は、液室210とカートリッジ200の外部とを連通させる。液室210は、第1液室の一例である。上部液室211は、第1部分の一例であり、また、下部液室212は、第2部分の一例である。 In the internal space of the cartridge 200, as shown in FIG. 4B, a liquid chamber 210, an ink valve chamber 213, and an atmosphere valve chamber 214 are formed. The liquid chamber 210 has an upper liquid chamber 211 and a lower liquid chamber 212 . The upper liquid chamber 211 , the lower liquid chamber 212 and the atmospheric valve chamber 214 are internal spaces of the housing 201 . On the other hand, the ink valve chamber 213 is the internal space of the supply pipe 230 . The liquid chamber 210 stores ink. The atmosphere valve chamber 214 communicates the liquid chamber 210 with the outside of the cartridge 200 . Liquid chamber 210 is an example of a first liquid chamber. The upper liquid chamber 211 is an example of a first portion, and the lower liquid chamber 212 is an example of a second portion.

液室210の上部液室211及び下部液室212は、筐体201の内部空間を仕切る隔壁215(壁の一例)によって、上下方向7に隔てられている。そして、上部液室211及び下部液室212は、隔壁215に形成された貫通孔216によって連通されている。また、上部液室211及び大気バルブ室214は、筐体201の内部空間を仕切る隔壁217によって、上下方向7に隔てられている。隔壁215の上面215U(第1面の一例)は、上部液室211を区画している。隔壁215の下面215L(第2面の一例)は、下部液室212を区画している。そして、上部液室211及び大気バルブ室214は、隔壁217に形成された貫通孔218によって連通されている。さらに、インクバルブ室213は、貫通孔219を通じて下部液室212の下端に連通されている。 The upper liquid chamber 211 and the lower liquid chamber 212 of the liquid chamber 210 are separated in the vertical direction 7 by a partition wall 215 (an example of a wall) that partitions the internal space of the housing 201 . The upper liquid chamber 211 and the lower liquid chamber 212 communicate with each other through a through hole 216 formed in the partition wall 215 . The upper liquid chamber 211 and the atmospheric valve chamber 214 are separated in the vertical direction 7 by a partition wall 217 that partitions the internal space of the housing 201 . An upper surface 215U (an example of a first surface) of the partition wall 215 defines the upper liquid chamber 211 . A lower surface 215</b>L (an example of a second surface) of the partition wall 215 defines the lower liquid chamber 212 . The upper liquid chamber 211 and the atmosphere valve chamber 214 communicate with each other through a through hole 218 formed in the partition wall 217 . Furthermore, the ink valve chamber 213 communicates with the lower end of the lower liquid chamber 212 through a through hole 219 .

大気バルブ室214は、カートリッジ200の上部において、後壁202に形成された大気連通口221を通じてカートリッジ200の外部に連通されている。すなわち、大気バルブ室214は、一端(貫通孔218)が液室210(より詳細には、上部液室211)に連通され、且つ他端(大気連通口221)がカートリッジ200の外部に連通された第2流路の一例である。なお、大気バルブ室214は、大気連通口221を通じて、大気に連通している。また、大気バルブ室214には、バルブ222と、コイルバネ223とが位置している。バルブ222は、閉塞位置と開放位置との間を、前後方向8に沿って移動可能である。バルブ222は、閉塞位置に位置すると、大気連通口221を閉塞する。また、バルブ222は、開放位置に位置すると大気連通口221を開放する。コイルバネ223は、バルブ222を開放位置から閉塞位置に移動させる向き、すなわち後方に付勢している。 The atmospheric valve chamber 214 communicates with the outside of the cartridge 200 through an atmospheric communication port 221 formed in the rear wall 202 at the upper portion of the cartridge 200 . That is, the atmosphere valve chamber 214 has one end (through hole 218 ) communicated with the liquid chamber 210 (more specifically, the upper liquid chamber 211 ) and the other end (atmosphere communication port 221 ) communicated with the outside of the cartridge 200 . It is an example of a second flow path. The atmosphere valve chamber 214 communicates with the atmosphere through an atmosphere communication port 221 . A valve 222 and a coil spring 223 are located in the atmosphere valve chamber 214 . The valve 222 is movable along the front-rear direction 8 between a closed position and an open position. The valve 222 closes the atmosphere communication port 221 when positioned at the closed position. Also, the valve 222 opens the atmosphere communication port 221 when positioned at the open position. The coil spring 223 biases the valve 222 from the open position to the closed position, that is, backward.

カートリッジ200が装着ケース150に装着される過程において、ロッド153が大気連通口221を通じて大気バルブ室214内に進入する。大気バルブ室214内に進入したロッド153は、閉塞位置のバルブ222をコイルバネ223の付勢力に抗して前方に移動させる。そして、バルブ222が開放位置に移動することによって、上部液室211が大気に連通される。なお、大気連通口221を開放するための構成は、前述の例に限定されない。他の例として、大気連通口221を封止するフィルムをロッド153が突き破る構成でもよい。 In the process of mounting the cartridge 200 to the mounting case 150 , the rod 153 enters the atmosphere valve chamber 214 through the atmosphere communication port 221 . The rod 153 that has entered the atmosphere valve chamber 214 moves the valve 222 in the closed position forward against the biasing force of the coil spring 223 . By moving the valve 222 to the open position, the upper liquid chamber 211 is communicated with the atmosphere. Note that the configuration for opening the atmosphere communication port 221 is not limited to the above example. As another example, a configuration in which the rod 153 breaks through the film that seals the air communication port 221 may be used.

供給管230は、筐体201の下部において、後壁202から後方に突出している。供給管230は、その突出端(すなわち、後端)が開口されている。すなわち、インクバルブ室213は、貫通孔219を通じて連通された液室210と、カートリッジ200の外部とを連通させる。インクバルブ室213は、一端(貫通孔219)が液室210(より詳細には下部液室212)と連通され、且つ他端(後述するインク供給口234)がカートリッジ200の外部と連通された第1流路の一例である。また、インクバルブ室213には、パッキン231と、バルブ232と、コイルバネ233とが位置している。 The supply pipe 230 protrudes rearward from the rear wall 202 at the bottom of the housing 201 . The supply pipe 230 is open at its protruding end (that is, rear end). That is, the ink valve chamber 213 communicates the liquid chamber 210 communicated through the through hole 219 with the outside of the cartridge 200 . One end (through hole 219) of the ink valve chamber 213 communicates with the liquid chamber 210 (more specifically, the lower liquid chamber 212), and the other end (an ink supply port 234 described later) communicates with the outside of the cartridge 200. It is an example of a first channel. A packing 231 , a valve 232 and a coil spring 233 are located in the ink valve chamber 213 .

パッキン231の中央には、前後方向8に貫通したインク供給口234が形成されている。インク供給口234の内径は、ニードル181の外径より僅かに小さい。バルブ232は、閉塞位置と開放位置との間を、前後方向8に沿って移動可能である。バルブ232は、閉塞位置に位置すると、パッキン231と当接してインク供給口234を閉塞する。また、バルブ232は、開放位置に位置すると、パッキン231から離間してインク供給口234を開放する。コイルバネ233は、バルブ232を開放位置から閉塞位置に移動させる向き、すなわち後方に付勢している。また、コイルバネ233の付勢力は、コイルバネ186より大きい。 An ink supply port 234 penetrating in the front-rear direction 8 is formed in the center of the packing 231 . The inner diameter of the ink supply port 234 is slightly smaller than the outer diameter of the needle 181 . The valve 232 is movable along the front-rear direction 8 between a closed position and an open position. When the valve 232 is positioned at the closed position, it abuts against the packing 231 to close the ink supply port 234 . Further, when the valve 232 is positioned at the open position, the valve 232 is separated from the packing 231 to open the ink supply port 234 . The coil spring 233 biases the valve 232 from the open position to the closed position, that is, backward. Also, the biasing force of the coil spring 233 is greater than that of the coil spring 186 .

カートリッジ200が装着ケース150に装着される過程において、供給管230がガイド182内に進入し、やがてニードル181がインク供給口234を通じてインクバルブ室213に進入する。このとき、ニードル181は、パッキン231を弾性変形させつつ、インク供給口234を画定する内周面に液密に接触する。カートリッジ200が装着ケース150へさらに挿入されると、ニードル181は、バルブ232をコイルバネ233の付勢力に抗して前方に移動させる。また、バルブ232は、ニードル181の開口183から突出するバルブ185を、コイルバネ186の付勢力に抗して後方に移動させる。 In the process of mounting the cartridge 200 to the mounting case 150 , the supply pipe 230 enters the guide 182 and the needle 181 eventually enters the ink valve chamber 213 through the ink supply port 234 . At this time, the needle 181 elastically deforms the packing 231 and liquid-tightly contacts the inner circumferential surface defining the ink supply port 234 . When the cartridge 200 is further inserted into the mounting case 150 , the needle 181 moves the valve 232 forward against the biasing force of the coil spring 233 . Also, the valve 232 causes the valve 185 projecting from the opening 183 of the needle 181 to move backward against the biasing force of the coil spring 186 .

これにより、図5に示されるように、インク供給口234及び開口183が開放されて、供給管230のインクバルブ室213と、ニードル181の内部空間とが連通される。すなわち、装着ケース150にカートリッジ200が装着された状態において、インクバルブ室213及びニードル181の内部空間は、カートリッジ200の液室210とタンク160の液室171とを連通させる流路を構成する。 As a result, as shown in FIG. 5, the ink supply port 234 and the opening 183 are opened, and the ink valve chamber 213 of the supply pipe 230 and the internal space of the needle 181 are communicated with each other. That is, in a state where the cartridge 200 is mounted in the mounting case 150 , the inner space of the ink valve chamber 213 and the needle 181 constitutes a channel that connects the liquid chamber 210 of the cartridge 200 and the liquid chamber 171 of the tank 160 .

また、装着ケース150にカートリッジ200が装着された状態において、液室210の一部と、液室171の一部とは、水平方向から見て互いに重なる。その結果、液室210に貯留されたインクは、接続された供給管230及びジョイント180を通じて、水頭差によってタンク160の液室171に移動する。 Further, when the cartridge 200 is mounted in the mounting case 150, part of the liquid chamber 210 and part of the liquid chamber 171 overlap each other when viewed in the horizontal direction. As a result, the ink stored in the liquid chamber 210 moves to the liquid chamber 171 of the tank 160 due to the difference in water head through the connected supply pipe 230 and joint 180 .

図4に示されるように、上壁204には、突起241が形成されている。突起241は、上壁204の外面から上方に突出し且つ前後方向8に沿って延びている。突起241は、ロック面242と、傾斜面243とを有する。ロック面242及び傾斜面243は、上壁204より上方に位置している。ロック面242は、前後方向8の前方を向き且つ上下方向7及び左右方向9に延びている(すなわち、上壁204と概ね直交する)。傾斜面243は、上方及び後方を向くように、上壁204に対して傾斜している。 As shown in FIG. 4, the upper wall 204 is formed with a protrusion 241 . The protrusion 241 protrudes upward from the outer surface of the upper wall 204 and extends along the front-rear direction 8 . The protrusion 241 has a locking surface 242 and an inclined surface 243 . The locking surface 242 and the inclined surface 243 are positioned above the top wall 204 . The lock surface 242 faces forward in the front-rear direction 8 and extends in the up-down direction 7 and the left-right direction 9 (that is, substantially perpendicular to the top wall 204). The inclined surface 243 is inclined with respect to the upper wall 204 so as to face upward and rearward.

ロック面242は、装着ケース150にカートリッジ200が装着された状態において、ロックピン156に当接される面である。傾斜面243は、カートリッジ200が装着ケース150に装着される過程において、ロックピン156をロック面242と当接する位置まで案内する面である。ロック面242とロックピン156とが当接した状態では、コイルバネ186、223、233の付勢力に抗して、カートリッジ200が図5に示される装着位置に保持される。 The lock surface 242 is a surface that abuts on the lock pin 156 when the cartridge 200 is attached to the attachment case 150 . The inclined surface 243 is a surface that guides the lock pin 156 to a position where it contacts the lock surface 242 in the process of mounting the cartridge 200 to the mounting case 150 . When the lock surface 242 and the lock pin 156 are in contact with each other, the cartridge 200 is held at the mounting position shown in FIG.

ロック面242より前方において上壁204から上方へと延びるようにして、平板状の部材が形成されている。この平板状の部材の上面は、カートリッジ200を装着ケース150から抜去する際に、ユーザが操作する操作部244である。カートリッジ200が装着ケース150に装着された状態で且つカバー87が露出位置に位置しているとき、操作部244は、ユーザに操作可能となる。操作部244が下方へ押されると、カートリッジ200が回動することによって、ロック面242がロックピン156より下方へ移動する。その結果、カートリッジ200が装着ケース150から抜去することが可能となる。 A flat plate member is formed to extend upward from the upper wall 204 in front of the lock surface 242 . The upper surface of this flat plate-shaped member is an operation portion 244 that is operated by the user when removing the cartridge 200 from the mounting case 150 . When the cartridge 200 is attached to the attachment case 150 and the cover 87 is positioned at the exposed position, the operation section 244 can be operated by the user. When the operation portion 244 is pushed downward, the lock surface 242 moves downward from the lock pin 156 by rotating the cartridge 200 . As a result, the cartridge 200 can be removed from the mounting case 150 .

上壁204の外面で且つ突起241より後方には、遮光リブ245が形成されている。遮光リブ245は、上壁204の外面から上方に突出し且つ前後方向8に沿って延びている。遮光リブ245は、装着センサ154の発光部から出力される光を遮光する材料又は色で形成されている。遮光リブ245は、装着ケース150にカートリッジ200が装着された状態において、装着センサ154の発光部から受光部に至る光路上に位置する。すなわち、装着センサ154は、装着ケース150にカートリッジ200が装着されていることに応じて、ローレベル信号をコントローラ130に出力する。一方、装着センサ154は、装着ケース150にカートリッジ200が装着されていないことに応じて、ハイレベル信号をコントローラ130に出力する。すなわち、コントローラ130は、装着ケース150にカートリッジ200が装着されているか否かを、装着センサ154から出力される信号によって検出することができる。 A light shielding rib 245 is formed on the outer surface of the upper wall 204 and behind the projection 241 . The light shielding rib 245 protrudes upward from the outer surface of the upper wall 204 and extends along the front-rear direction 8 . The light shielding rib 245 is formed of a material or color that shields light output from the light emitting portion of the mounting sensor 154 . The light shielding rib 245 is positioned on the optical path from the light emitting portion of the mounting sensor 154 to the light receiving portion when the cartridge 200 is mounted in the mounting case 150 . That is, the mounting sensor 154 outputs a low level signal to the controller 130 when the cartridge 200 is mounted in the mounting case 150 . On the other hand, the mounting sensor 154 outputs a high level signal to the controller 130 in response to the fact that the cartridge 200 is not mounted in the mounting case 150 . That is, the controller 130 can detect whether or not the cartridge 200 is attached to the attachment case 150 based on the signal output from the attachment sensor 154 .

上壁204の外面で且つ前後方向8における遮光リブ245及び突起241の間には、IC基板247が位置している。IC基板247には、電極248が形成されている。また、IC基板247は、不図示のメモリを備える。電極248は、IC基板247の上記メモリと電気的に接続されている。電極248は、IC基板247の上面において、接点152と導通可能に露出されている。すなわち、カートリッジ200が装着ケース150に装着された状態において、電極248は、接点152と電気的に導通する。コントローラ130は、接点152及び電極248を通じてIC基板247のメモリから情報を読み出し、接点152及び電極248を通じてIC基板247のメモリに情報を書き込むことができる。IC基板247は、カートリッジメモリの一例である。接点152は、インタフェースの一例である。 An IC substrate 247 is positioned on the outer surface of the upper wall 204 and between the light shielding ribs 245 and the protrusions 241 in the front-rear direction 8 . An electrode 248 is formed on the IC substrate 247 . The IC board 247 also includes a memory (not shown). The electrodes 248 are electrically connected to the memory on the IC substrate 247 . The electrode 248 is exposed on the upper surface of the IC substrate 247 so as to be electrically conductive with the contact 152 . That is, the electrodes 248 are electrically connected to the contacts 152 when the cartridge 200 is attached to the attachment case 150 . Controller 130 can read information from memory on IC board 247 through contacts 152 and electrodes 248 and write information to memory on IC board 247 through contacts 152 and electrodes 248 . IC board 247 is an example of a cartridge memory. Contact 152 is an example of an interface.

IC基板247のメモリは、インク量Vcと、カートリッジ200の個体を識別するための識別情報と、カートリッジ200の種類を示す種類情報などを記憶する。本実施形態では、装着ケース150に標準のカートリッジ200と大容量のカートリッジの、2種類のカートリッジ200が装着可能であり、IC基板247のメモリに記憶された種類情報は、当該カートリッジが「標準」と「大容量」のいずれであるかを示す。なお、カートリッジ200が新品であるIC基板247のメモリには、インク量Vcとして初期インク量Vc0が記憶されている。この初期インク量Vc0は、新品のカートリッジ200に貯留されているインクの量を示す。以下、IC基板247のメモリに記憶されている情報を総称して、「CTG情報」と表記することがある。また、「新品」とは、いわゆる未使用品であり、製造されて販売されているカートリッジ200から、カートリッジ200内のインクが一度も外部へ流出していない状態を示す。 The memory of the IC substrate 247 stores the ink amount Vc, identification information for identifying the individual cartridge 200, type information indicating the type of the cartridge 200, and the like. In this embodiment, two types of cartridges 200, a standard cartridge 200 and a large-capacity cartridge, can be mounted in the mounting case 150, and the type information stored in the memory of the IC board 247 indicates that the cartridge is "standard". or "Large capacity". It should be noted that the initial ink amount Vc0 is stored as the ink amount Vc in the memory of the IC board 247 when the cartridge 200 is new. This initial ink amount Vc0 indicates the amount of ink stored in the new cartridge 200 . Hereinafter, the information stored in the memory of the IC board 247 may be collectively referred to as "CTG information". Further, "new" means a so-called unused product, and indicates a state in which the ink in the cartridge 200 has never flowed out from the manufactured and sold cartridge 200 .

IC基板247のメモリの記憶領域は、例えば、コントローラ130によって情報が上書きされない領域と、コントローラ130によって情報が上書き可能な領域とを有する。例えば、識別情報及び種類情報は上書きされない領域に記憶され、インク量Vcは上書き可能な領域に記憶される。 The storage area of the memory of the IC board 247 has, for example, an area where information is not overwritten by the controller 130 and an area where information can be overwritten by the controller 130 . For example, identification information and type information are stored in an area that is not overwritten, and ink amount Vc is stored in an overwriteable area.

[コントローラ130]
コントローラ130は、図6に示されるように、CPU131、ROM132、RAM133、EEPROM134、及びASIC135を備えている。ROM132には、CPU131が各種動作を制御するためのプログラムなどが格納されている。RAM133は、CPU131が上記プログラムを実行する際に用いるデータや信号等を一時的に記録する記憶領域、或いはデータ処理の作業領域として使用される。EEPROM134には、電源オフ後も保持すべき設定情報が格納される。ROM132、RAM133、及びEEPROM134は、メモリの一例である。
[Controller 130]
The controller 130 includes a CPU 131, a ROM 132, a RAM 133, an EEPROM 134, and an ASIC 135, as shown in FIG. The ROM 132 stores programs and the like for the CPU 131 to control various operations. The RAM 133 is used as a storage area for temporarily recording data, signals, etc. used when the CPU 131 executes the above programs, or as a work area for data processing. The EEPROM 134 stores setting information that should be retained even after the power is turned off. The ROM 132, RAM 133, and EEPROM 134 are examples of memory.

ASIC135は、給送ローラ23、搬送ローラ25、排出ローラ27、及びヘッド21を動作させるためのものである。コントローラ130は、ASIC135を通じて不図示のモータを駆動させることによって、給送ローラ23、搬送ローラ25、及び排出ローラ27を回転させる。また、コントローラ130は、ASIC135を通じてヘッド21の駆動素子に駆動信号を出力することによって、ヘッド21にノズル29を通じてインクを吐出させる。ASIC135は、ノズル29を通じて吐出すべきインクの量に応じて、複数種類の駆動信号を出力可能である。 The ASIC 135 is for operating the feed roller 23 , the transport roller 25 , the discharge roller 27 and the head 21 . The controller 130 rotates the feeding roller 23 , the conveying roller 25 and the discharging roller 27 by driving a motor (not shown) through the ASIC 135 . In addition, the controller 130 causes the head 21 to eject ink through the nozzles 29 by outputting drive signals to the drive elements of the head 21 through the ASIC 135 . The ASIC 135 can output multiple types of drive signals according to the amount of ink to be ejected through the nozzles 29 .

また、ASIC135には、ディスプレイ17と、操作パネル22とが接続されている。ディスプレイ17は、液晶ディスプレイ、有機ELディスプレイ等であり、各種情報を表示する表示面を備える。ディスプレイ17は、報知機、表示機の一例である。但し、報知機の具体例はディスプレイ17に限定されず、スピーカ、LEDランプ、或いはこれらの組み合わせでもよい。操作パネル22は、ユーザによる操作に応じた操作信号をコントローラ130に出力する。操作パネル22は、例えば、押ボタンを有していてもよいし、ディスプレイ17に重畳されたタッチセンサを有していてもよい。 A display 17 and an operation panel 22 are also connected to the ASIC 135 . The display 17 is a liquid crystal display, an organic EL display, or the like, and has a display surface for displaying various information. The display 17 is an example of an alarm or display. However, a specific example of the annunciator is not limited to the display 17, and may be a speaker, an LED lamp, or a combination thereof. The operation panel 22 outputs an operation signal to the controller 130 according to the operation by the user. The operation panel 22 may have push buttons, or may have a touch sensor superimposed on the display 17, for example.

さらに、ASIC135には、接点152と、カバーセンサ88と、装着センサ154と、液面センサ155とが電気的に接続されている。コントローラ130は、装着ケース150に装着されたカートリッジ200のIC基板247のメモリに、接点152を通じてアクセスする。コントローラ130は、カバー87の位置をカバーセンサ88を通じて検出する。また、コントローラ130は、カートリッジ200の挿抜を装着センサ154を通じて検出する。さらに、コントローラ130は、液室171内のインクの液面が所定位置P以上か否かを液面センサ155を通じて検出する。 Further, a contact 152 , a cover sensor 88 , an attachment sensor 154 and a liquid level sensor 155 are electrically connected to the ASIC 135 . The controller 130 accesses the memory of the IC board 247 of the cartridge 200 mounted in the mounting case 150 through the contacts 152 . Controller 130 detects the position of cover 87 through cover sensor 88 . Also, the controller 130 detects insertion/removal of the cartridge 200 through the mounting sensor 154 . Furthermore, the controller 130 detects whether or not the liquid level of the ink in the liquid chamber 171 is equal to or higher than a predetermined position P through the liquid level sensor 155 .

ROM132には、液面センサ155がハイレベル信号を出力したときに、タンク160の液室171に貯留されている所定インク量Vsc、及びカートリッジ200の液室210に貯留されている所定インク量Vccが記憶されている。所定インク量Vccは、本実施形態ではゼロである。 The ROM 132 stores a predetermined amount Vsc of ink stored in the liquid chamber 171 of the tank 160 and a predetermined amount Vcc of ink stored in the liquid chamber 210 of the cartridge 200 when the liquid level sensor 155 outputs a high level signal. is stored. The predetermined ink amount Vcc is zero in this embodiment.

EEPROM134は、装着ケース150に装着される4つのカートリッジ200それぞれに対応付けて、換言すれば、カートリッジ200と連通されるタンク160それぞれに対応付けて、各種情報を記憶している。各種情報とは、例えば、液体量の一例であるインク量Vc、Vsと、関数F1、F2及びF3と、閾値Vh1、Vh2と、比率情報Gと、C_Emptyフラグと、S_Emptyフラグと、カウント値SNと、カウント値TN、TN2、及びTN3と、閾値Nthと、識別情報と、種類情報とを含む。 The EEPROM 134 stores various information associated with each of the four cartridges 200 mounted in the mounting case 150 , in other words, associated with each of the tanks 160 communicating with the cartridges 200 . The various information includes, for example, ink amounts Vc and Vs, which are examples of liquid amounts, functions F1, F2, and F3, threshold values Vh1 and Vh2, ratio information G, a C_Empty flag, an S_Empty flag, and a count value SN , count values TN, TN2, and TN3, threshold value Nth, identification information, and type information.

なお、インク量Vc、識別情報及び種類情報は、カートリッジ200が装着ケース150に装着された状態で、接点152を通じてIC基板247のメモリからコントローラ130によって読み出される情報である。関数F1、F2及びF3と、閾値Vh1、Vh2と、比率情報Gとは、EEPROM134に代えて、ROM132に記憶されていてもよい。 The ink amount Vc, identification information, and type information are information read by the controller 130 from the memory of the IC board 247 through the contact 152 while the cartridge 200 is mounted in the mounting case 150 . Functions F1, F2 and F3, threshold values Vh1 and Vh2, and ratio information G may be stored in ROM 132 instead of EEPROM 134 .

インク量Vcは、カートリッジ200の液室210に貯留されているインクの量を示す。インク量Vsは、タンク160の液室171に貯留されているインクの量を示す。インク量Vsは、関数F1、F2又はF3によって算出される。インク量Vcは、関数F1、F2又はF3によって算出されたインク量Vsと、総量Vtとによって算出される。 The ink amount Vc indicates the amount of ink stored in the liquid chamber 210 of the cartridge 200 . The ink amount Vs indicates the amount of ink stored in the liquid chamber 171 of the tank 160 . The ink amount Vs is calculated by a function F1, F2 or F3. The ink amount Vc is calculated from the ink amount Vs calculated by the function F1, F2 or F3 and the total amount Vt.

関数F1、F2及びF3は、インクの総量Vtと、インク量Vsとの対応関係を示す情報である。カートリッジ200の液室210内のインクと、タンク160の液室171内のインクとは、それぞれのインクの液面の上下方向7の位置が一致した状態で平衡になる。つまり、平衡状態では、液室210と液室171との間でのインクの移動が停止する。平衡状態におけるインクの総量Vtとインク量Vsとの関係は、実測値を関数で近似することができる。 The functions F1, F2, and F3 are information indicating the correspondence relationship between the total ink amount Vt and the ink amount Vs. The ink in the liquid chamber 210 of the cartridge 200 and the ink in the liquid chamber 171 of the tank 160 are in equilibrium when the positions of the respective ink surfaces in the vertical direction 7 match. In other words, in the equilibrium state, movement of ink between the liquid chambers 210 and 171 stops. The relationship between the total ink amount Vt and the ink amount Vs in the equilibrium state can be approximated by a function of actual measurements.

例えば、総量Vtに対するインク量Vsの関係は、3つの関数F1、F2及びF3によって近似的に表すことができる。関数F1は、総量Vtが閾値Vh1以上であるときのインク量Vsとの関係を示しており、例えば、Vs=a×Vt+b(a,bは定数)で表される。関数F2は、総量Vtが閾値Vh2以上閾値Vh1未満であるときのインク量Vsとの関係を示しており、例えば、Vs=c×Vt+d(c,dは定数)で表される。関数F3は、総量Vtが閾値Vh2未満であるときのインク量Vsとの関係を示しており、例えば、Vs=e×Vt+f(c,dは定数)で表される。 For example, the relationship of the ink amount Vs to the total amount Vt can be approximately represented by three functions F1, F2 and F3. The function F1 indicates the relationship between the total amount Vt and the ink amount Vs when the total amount Vt is equal to or greater than the threshold value Vh1, and is represented by, for example, Vs=a×Vt+b (a and b are constants). The function F2 indicates the relationship with the ink amount Vs when the total amount Vt is greater than or equal to the threshold value Vh2 and less than the threshold value Vh1, and is represented by Vs=c×Vt+d (c and d are constants), for example. A function F3 indicates the relationship between the total amount Vt and the ink amount Vs when the total amount Vt is less than the threshold value Vh2, and is represented by, for example, Vs=exVt+f (c and d are constants).

閾値Vh1、Vh2は、3つの関数F1、F2及びF3のうちいずれをインク量Vsの算出に用いるかを決定する基準となる閾値であり、比率情報Gが含む3つの比率R1、R2及びR3(後述)のうちいずれを減少量ΔVc、ΔVsの算出に用いるかを決定する基準となる閾値である。総量Vtが閾値Vh1(又はVh2)以上であるときの液面高さにおける液室210の断面積と、総量Vtが閾値Vh1(又はVh2)未満であるときの液面高さにおける液室210の断面積とが異なる。断面積が異なると、総量Vtが変化した場合のインク量Vc及びVsの変化量(すなわち減少量ΔVc、ΔVs)が異なる。そこで、総量Vtが閾値Vh1(又はVh2)以上であるか否かに応じて、異なる関数及び比率を用いる。総量Vtが閾値Vh1以上であるときには、関数F1によってインク量Vsが算出され、比率R1によって減少量ΔVc、ΔVsが算出される。総量Vtが閾値Vh2以上閾値Vh1未満であるときには、関数F2によってインク量Vsが算出され、比率R2によって減少量ΔVc、ΔVsが算出される。総量Vtが閾値Vh2未満であるときには、関数F3によってインク量Vsが算出され、比率R3によって減少量ΔVc、ΔVsが算出される。例えば、閾値Vh1は、カートリッジ200の液室210の上部液室211に貯留されたインクの液面が、隔壁215の上面215U又は下面215Lと接触するときの総量Vtに相当する値である。閾値Vh1は、第1閾値の一例である。閾値Vh2は、第2閾値の一例である。 The thresholds Vh1 and Vh2 are thresholds that serve as references for determining which of the three functions F1, F2, and F3 is used to calculate the ink amount Vs, and the three ratios R1, R2, and R3 ( later) to be used for calculating the amounts of decrease ΔVc and ΔVs. The cross-sectional area of the liquid chamber 210 at the liquid level when the total amount Vt is equal to or greater than the threshold Vh1 (or Vh2), and the cross-sectional area of the liquid chamber 210 at the liquid level when the total amount Vt is less than the threshold Vh1 (or Vh2) different from the cross-sectional area. If the cross-sectional area is different, the amount of change in the ink amounts Vc and Vs when the total amount Vt is changed (that is, the amount of decrease ΔVc and ΔVs) will be different. Therefore, different functions and ratios are used depending on whether the total amount Vt is equal to or greater than the threshold value Vh1 (or Vh2). When the total amount Vt is equal to or greater than the threshold value Vh1, the ink amount Vs is calculated by the function F1, and the decrease amounts ΔVc and ΔVs are calculated by the ratio R1. When the total amount Vt is greater than or equal to the threshold value Vh2 and less than the threshold value Vh1, the ink amount Vs is calculated by the function F2, and the decrease amounts ΔVc and ΔVs are calculated by the ratio R2. When the total amount Vt is less than the threshold value Vh2, the ink amount Vs is calculated by the function F3, and the decrease amounts ΔVc and ΔVs are calculated by the ratio R3. For example, the threshold value Vh1 is a value corresponding to the total amount Vt when the liquid surface of the ink stored in the upper liquid chamber 211 of the liquid chamber 210 of the cartridge 200 contacts the upper surface 215U or the lower surface 215L of the partition wall 215 . Threshold Vh1 is an example of a first threshold. Threshold Vh2 is an example of a second threshold.

カウント値SNは、液面センサ155から出力される信号がローレベル信号からハイレベル信号に変化した後に、ヘッド21に排出を指示したインク排出量Dh(すなわち、駆動信号で示されるインク量)に相当する値で、閾値Nthに近づく向きに更新される値である。カウント値SNは、初期値を“0”としてカウントアップされる値である。また、閾値Nthは、流出口174の上端付近と所定位置Pとの間の液室171の容積に相当する。但し、カウント値SNは、容積に相当する値を初期値として、カウントダウンされる値でもよい。この場合の閾値Nthは、0となる。カウント値SNは、第3排出指示量の一例である。 The count value SN corresponds to the ink discharge amount Dh instructed to discharge to the head 21 (that is, the ink amount indicated by the drive signal) after the signal output from the liquid level sensor 155 changes from the low level signal to the high level signal. It is a corresponding value, which is updated in the direction of approaching the threshold value Nth. The count value SN is a value that is counted up with an initial value of "0". Also, the threshold value Nth corresponds to the volume of the liquid chamber 171 between the vicinity of the upper end of the outflow port 174 and the predetermined position P. However, the count value SN may be a value counted down from a value corresponding to the volume as an initial value. The threshold Nth in this case is zero. The count value SN is an example of a third discharge instruction amount.

カウント値TN1は、装着センサ154から出力される信号がハイレベル信号からローレベル信号に変化した後に、ヘッド21に排出を指示したインク排出量Dh(すなわち、駆動信号で示されるインク量)に相当する値であり、初期値を“0”としてカウントアップされる値である。総量Vtが閾値Vh1以上である場合にカウント値TN1のカウントアップが行われ、総量Vtが閾値Vh1未満となった後、カウント値TN1のカウントアップが停止される。カウント値TN1は、第1排出指示量の一例である。 The count value TN1 corresponds to the ink discharge amount Dh (that is, the ink amount indicated by the drive signal) instructed to discharge the head 21 after the signal output from the mounting sensor 154 changes from the high level signal to the low level signal. It is a value that is counted up with an initial value of "0". The count value TN1 is counted up when the total amount Vt is equal to or greater than the threshold value Vh1, and the count up of the count value TN1 is stopped after the total amount Vt becomes less than the threshold value Vh1. The count value TN1 is an example of the first discharge instruction amount.

カウント値TN2は、総量Vtが閾値Vh1未満となった後に、ヘッド21に排出を指示したインク排出量Dh(すなわち、駆動信号で示されるインク量)に相当する値であり、初期値を“0”としてカウントアップされる値である。総量Vtが閾値Vh2以上閾値Vh1未満である場合にカウント値TN2のカウントアップが行われ、総量Vtが閾値Vh2未満となった後、カウント値TN2のカウントアップが停止される。カウント値TN2は、第1排出指示量の一例である。 The count value TN2 is a value corresponding to the ink discharge amount Dh (that is, the ink amount indicated by the drive signal) that the head 21 is instructed to discharge after the total amount Vt becomes less than the threshold value Vh1. ” is the value that is counted up. When the total amount Vt is equal to or greater than the threshold value Vh2 and less than the threshold value Vh1, the count value TN2 is counted up, and after the total amount Vt becomes less than the threshold value Vh2, the counting up of the count value TN2 is stopped. The count value TN2 is an example of the first discharge instruction amount.

カウント値TN3は、総量Vtが閾値Vh2未満となった後に、ヘッド21に排出を指示したインク排出量Dh(すなわち、駆動信号で示されるインク量)に相当する値であり、初期値を“0”としてカウントアップされる値である。カウント値TN3は、第1排出指示量の一例である。 The count value TN3 is a value corresponding to the ink discharge amount Dh (that is, the ink amount indicated by the drive signal) that the head 21 is instructed to discharge after the total amount Vt becomes less than the threshold value Vh2. ” is the value that is counted up. The count value TN3 is an example of the first discharge instruction amount.

比率情報Gは、ヘッド21を通じたインクの排出量に対する、タンク160の液室171に貯留されているインクの減少量ΔVc、及び、カートリッジ200の液室210に貯留されているインクの減少量ΔVsの比率を表す情報である。本実施形態では、カウント値TN1、TN2及びTN3と、比率情報Gとに基づいて、減少量ΔVc、ΔVsが算出される。 The ratio information G is the reduction amount ΔVc of the ink stored in the liquid chamber 171 of the tank 160 and the reduction amount ΔVs of the ink stored in the liquid chamber 210 of the cartridge 200 with respect to the amount of ink discharged through the head 21. This is information representing the ratio of In this embodiment, the reduction amounts ΔVc and ΔVs are calculated based on the count values TN1, TN2 and TN3 and the ratio information G.

比率情報Gは、比率R1と、比率R2と、比率R3とを含んでいる。比率R1は、総量Vtが閾値Vh1以上であるときの、インクの排出量と減少量ΔVc、ΔVsとの比率を示している。総量Vtが閾値Vh1以上であるときには、カウント値TN1と比率R1とによって、減少量ΔVc、ΔVsが算出される。比率R2は、総量Vtが閾値Vh2以上閾値Vh1未満であるときの、インクの排出量と減少量ΔVc、ΔVsとの比率を示している。総量Vtが閾値Vh2以上閾値Vh1未満であるときには、カウント値TN2と比率R2とによって、減少量ΔVc、ΔVsが算出される。比率R3は、総量Vtが閾値Vh2未満であるときの、インクの排出量と減少量ΔVc、ΔVsとの比率を示している。総量Vtが閾値Vh2未満であるときには、カウント値TN3と比率R3とによって、減少量ΔVc、ΔVsが算出される。比率R1は、第1比率の一例である。比率R2は、第2比率の一例である。比率R3は、第3比率の一例である。 The ratio information G includes a ratio R1, a ratio R2, and a ratio R3. The ratio R1 indicates the ratio between the amount of discharged ink and the amounts of decrease ΔVc and ΔVs when the total amount Vt is equal to or greater than the threshold value Vh1. When the total amount Vt is equal to or greater than the threshold value Vh1, the amounts of decrease ΔVc and ΔVs are calculated from the count value TN1 and the ratio R1. The ratio R2 indicates the ratio between the ink discharge amount and the reduction amounts ΔVc and ΔVs when the total amount Vt is equal to or greater than the threshold value Vh2 and less than the threshold value Vh1. When the total amount Vt is greater than or equal to the threshold value Vh2 and less than the threshold value Vh1, the decrease amounts ΔVc and ΔVs are calculated from the count value TN2 and the ratio R2. The ratio R3 indicates the ratio between the ink discharge amount and the reduction amounts ΔVc and ΔVs when the total amount Vt is less than the threshold value Vh2. When the total amount Vt is less than the threshold value Vh2, the amounts of decrease ΔVc and ΔVs are calculated from the count value TN3 and the ratio R3. Ratio R1 is an example of a first ratio. Ratio R2 is an example of a second ratio. Ratio R3 is an example of a third ratio.

例えば、比率R1は、ΔVc:ΔVs=g:(1-g)で表され、比率R2は、ΔVc:ΔVs=h:(1-h)で表され、比率R3は、ΔVc:ΔVs=k:(1-k)で表される。g、h及びkは定数であり、0≦g≦1、0≦h≦1、0≦k≦1である。総量Vtが閾値Vh1以上であるとき、減少量ΔVc、ΔVsは、ΔVc=g×TN1、ΔVs=(1-g)×TN1にて算出される。総量Vtが閾値Vh2以上閾値Vh1未満であるとき、減少量ΔVc、ΔVsは、ΔVc=h×TN2、ΔVs=(1-h)×TN2にて算出される。総量Vtが閾値Vh2未満であるとき、減少量ΔVc、ΔVsは、ΔVc=k×TN3、ΔVs=(1-k)×TN3にて算出される。 For example, the ratio R1 is expressed as ΔVc:ΔVs=g:(1−g), the ratio R2 is expressed as ΔVc:ΔVs=h:(1−h), and the ratio R3 is expressed as ΔVc:ΔVs=k: (1-k). g, h and k are constants, 0≤g≤1, 0≤h≤1, 0≤k≤1. When the total amount Vt is equal to or greater than the threshold value Vh1, the amounts of decrease ΔVc and ΔVs are calculated by ΔVc=g×TN1 and ΔVs=(1−g)×TN1. When the total amount Vt is greater than or equal to the threshold Vh2 and less than the threshold Vh1, the decreases ΔVc and ΔVs are calculated by ΔVc=h×TN2 and ΔVs=(1−h)×TN2. When the total amount Vt is less than the threshold value Vh2, the amounts of decrease ΔVc and ΔVs are calculated by ΔVc=k×TN3 and ΔVs=(1−k)×TN3.

EEPROM134には、カートリッジの種類に対応した複数の関数F1,F2、F3の組、複数の閾値Vh1、Vh2の組、及び複数の比率情報Gが記憶されている。標準のカートリッジ200に対応する比率情報Gは、第1比率情報の一例である。大容量のカートリッジに対応する比率情報Gは、第2比率情報の一例である。 The EEPROM 134 stores a set of functions F1, F2 and F3, a set of thresholds Vh1 and Vh2, and a plurality of ratio information G corresponding to the cartridge type. The ratio information G corresponding to the standard cartridge 200 is an example of first ratio information. The ratio information G corresponding to large-capacity cartridges is an example of the second ratio information.

C_Emptyフラグは、カートリッジ200がカートリッジエンプティ状態か否かを示す情報である。C_Emptyフラグには、カートリッジエンプティ状態であることに対応する値“ON”、或いはカートリッジエンプティ状態でないことに対応する値“OFF”が設定される。カートリッジエンプティ状態とは、カートリッジ200(より詳細には、液室210)にインクが実質的に貯留されていない状態である。換言すれば、カートリッジエンプティ状態とは、連通された液室210から液室171にインクが移動しない状態である。さらに換言すれば、カートリッジエンプティ状態とは、当該カートリッジ200に連通されたタンク160の液面が所定位置P未満の状態である。 The C_Empty flag is information indicating whether the cartridge 200 is in a cartridge empty state. The C_Empty flag is set to the value "ON" corresponding to the cartridge empty state or the value "OFF" corresponding to the non-cartridge empty state. The cartridge empty state is a state in which substantially no ink is stored in the cartridge 200 (more specifically, the liquid chamber 210). In other words, the cartridge empty state is a state in which ink does not move from the liquid chamber 210 that is communicated with the liquid chamber 171 to the liquid chamber 171 . In other words, the cartridge empty state is a state in which the liquid level of the tank 160 communicating with the cartridge 200 is below the predetermined position P.

S_Emptyフラグは、タンク160がインクエンプティ状態か否かを示す情報である。S_Emptyフラグには、インクエンプティ状態であることに対応する値“ON”、或いはインクエンプティ状態でないことに対応する値“OFF”が設定される。インクエンプティ状態とは、例えば、タンク160(より詳細には、液室171)に貯留されたインクの液面が流出口174の上端付近の位置に達した状態である。換言すれば、インクエンプティ状態とは、カウント値SNが閾値Nth以上の状態である。インクエンプティ状態になった後にヘッド21によるインクの吐出を継続すると、タンク160内のインクの液面が流出口174の上端よりも下がってしまい、タンク160からヘッド21までのインク流路又はヘッド21内に空気が混入してしまう(所謂、エアイン)可能性がある。その結果、ノズル29内がインクで満たされず、インクの不吐出が発生するおそれがある。 The S_Empty flag is information indicating whether the tank 160 is in an ink empty state. The S_Empty flag is set to the value "ON" corresponding to the ink empty state or the value "OFF" corresponding to the non-ink empty state. The ink empty state is, for example, a state in which the liquid level of ink stored in the tank 160 (more specifically, the liquid chamber 171 ) reaches a position near the upper end of the outlet 174 . In other words, the ink-empty state is a state in which the count value SN is equal to or greater than the threshold value Nth. If the head 21 continues to eject ink after the ink-empty state, the ink level in the tank 160 will fall below the upper end of the outflow port 174, and the ink flow path from the tank 160 to the head 21 or the head 21 will drop. There is a possibility that air will be mixed inside (so-called air-in). As a result, the inside of the nozzle 29 is not filled with ink, and there is a risk that ink will not be ejected.

[プリンタ10の動作]
図7及び図8を参照して、本実施形態に係るプリンタ10の動作を説明する。図7及び図8に示される各処理は、コントローラ130のCPU131によって実行される。なお、以下の各処理は、ROM132に記憶されているプログラムをCPU131が読み出して実行してもよいし、コントローラ130に搭載されたハードウェア回路によって実現されてもよい。また、以下の各処理の実行順序は、本発明の要旨を変更しない範囲で、適宜変更することができる。
[Operation of Printer 10]
The operation of the printer 10 according to this embodiment will be described with reference to FIGS. 7 and 8. FIG. Each process shown in FIGS. 7 and 8 is executed by the CPU 131 of the controller 130. FIG. Note that each of the following processes may be executed by the CPU 131 reading out a program stored in the ROM 132 , or may be implemented by a hardware circuit mounted on the controller 130 . Also, the execution order of the following processes can be changed as appropriate without changing the gist of the present invention.

[画像記録処理]
コントローラ130は、プリンタ10に記録指示が入力されたことに応じて、図7に示される画像記録処理を実行する。記録指示は、画像データで示される画像をシートに記録する記録処理をプリンタ10に実行させるための第1排出指示及び第2排出指示の一例である。記録指示の取得方法は特に限定されないが、例えば、記録指示に対応するユーザ操作を操作パネル22を通じて受け付けてもよいし、不図示の通信インタフェースを通じて外部装置から受信してもよい。
[Image recording process]
The controller 130 executes the image recording process shown in FIG. 7 in response to the input of the recording instruction to the printer 10 . The recording instruction is an example of a first discharge instruction and a second discharge instruction for causing the printer 10 to execute a recording process of recording an image indicated by image data on a sheet. A method of acquiring the recording instruction is not particularly limited, but for example, a user operation corresponding to the recording instruction may be received through the operation panel 22, or may be received from an external device through a communication interface (not shown).

まず、コントローラ130は、4つのカートリッジ200それぞれのS_Emptyフラグの設定値を判定する(S11)。そして、コントローラ130は、4つのカートリッジ200それぞれのS_Emptyフラグの少なくとも1つに“ON”が設定されていると判定したことに応じて(S11:ON)、S_Empty報知画面をディスプレイ17に表示させる(S12)。S_Empty報知画面は、対応するタンク160がインクエンプティ状態になって、ヘッド21を通じたインクの排出ができないことを、ユーザに報知するための画面である。S_Empty報知画面は、例えば、インクエンプティ状態のタンク160に貯留されているインクの色及びインク量Vc、Vsを示す情報を含んでもよい。なお、ステップS12において、コントローラ130は、4つのカートリッジ200のC_Emptyフラグの少なくとも1つに“ON”が設定されていると判定したことに応じて、C_Empty報知画面を、S_Empty報知画面と合わせてディスプレイ17に表示させてもよい。 First, the controller 130 determines the set value of the S_Empty flag of each of the four cartridges 200 (S11). Then, in response to determining that at least one of the S_Empty flags of the four cartridges 200 is set to "ON" (S11: ON), the controller 130 causes the display 17 to display the S_Empty notification screen ( S12). The S_Empty notification screen is a screen for notifying the user that the corresponding tank 160 is in an ink empty state and ink cannot be discharged through the head 21 . The S_Empty notification screen may include, for example, information indicating the ink color and ink amounts Vc and Vs stored in the tank 160 when the ink is empty. In step S12, the controller 130 displays the C_Empty notification screen together with the S_Empty notification screen in response to determining that at least one of the C_Empty flags of the four cartridges 200 is set to "ON". 17 may be displayed.

また、コントローラ130は、“ON”が設定されたS_Emptyフラグに対応するカートリッジ200それぞれに対して、S13~S20の処理を実行する。すなわち、S13~S20の処理は、4つのカートリッジ200のうち、対応するS_Emptyフラグに“ON”が設定されたカートリッジ200それぞれに対して実行される。カートリッジ200毎のS13~S20の処理は共通するので、1つのカートリッジ200に対応するS13~S20の処理のみを説明する。 Further, the controller 130 executes the processes of S13 to S20 for each cartridge 200 corresponding to the S_Empty flag set to "ON". That is, the processes of S13 to S20 are executed for each of the four cartridges 200 for which the corresponding S_Empty flag is set to "ON". Since the processing of S13 to S20 for each cartridge 200 is common, only the processing of S13 to S20 corresponding to one cartridge 200 will be described.

まず、コントローラ130は、装着センサ154が出力する信号を受信する(S13)。次に、コントローラ130は、装着センサ154から受信した信号がハイレベル信号からローレベル信号へ変化したかを判定する(S14)。そして、コントローラ130は、装着センサ154が出力する信号が、ローレベル信号からハイレベル信号に変化し、再びハイレベル信号からローレベル信号に変化するまで、所定の時間間隔でS13、S14の処理を繰り返し実行する(S14:No)。換言すれば、コントローラ130は、カートリッジ200が装着ケース150から抜き出され、新たにカートリッジ200が装着ケース150に装着されるまで、S13、S14の処理を繰り返し実行する。 First, the controller 130 receives a signal output by the mounting sensor 154 (S13). Next, the controller 130 determines whether the signal received from the mounting sensor 154 has changed from a high level signal to a low level signal (S14). Then, the controller 130 performs the processes of S13 and S14 at predetermined time intervals until the signal output by the mounting sensor 154 changes from a low level signal to a high level signal and again changes from a high level signal to a low level signal. Repeat execution (S14: No). In other words, the controller 130 repeats the processes of S13 and S14 until the cartridge 200 is extracted from the mounting case 150 and a new cartridge 200 is mounted in the mounting case 150. FIG.

そして、コントローラ130は、装着センサ154からローレベル信号を受信し、その後に装着センサ154からハイレベル信号を受信し、さらにその後に装着センサ154からローレベル信号を受信したことに応じて(S14:Yes)、S15に示す処理を実行する。つまり、コントローラ130は、接点152を通じてカートリッジ200のIC基板247から、識別情報、種類情報及びインク量Vcを読み出して、EEPROM134に記憶させる(S15)。このとき、コントローラ130は、EEPROM134が記憶するインク量Vcを、IC基板247から読み出したインク量Vcで更新する。 Then, controller 130 receives a low level signal from mounting sensor 154, then receives a high level signal from mounting sensor 154, and then receives a low level signal from mounting sensor 154 (S14: Yes), the process shown in S15 is executed. That is, the controller 130 reads the identification information, the type information and the ink amount Vc from the IC board 247 of the cartridge 200 through the contact 152, and stores them in the EEPROM 134 (S15). At this time, the controller 130 updates the ink amount Vc stored in the EEPROM 134 with the ink amount Vc read from the IC substrate 247 .

次に、コントローラ130は、EEPROM134に記憶されている複数の関数F1、F2、F3の組、複数の閾値Vh1、Vh2の組、及び複数の比率情報Gのうちから、S15で読み出した種類情報が示す、装着されたカートリッジの種類に対応する関数F1、F2、F3の組、閾値Vh1、Vh2の組、及び比率情報Gを選択して読み出し、RAM133に記憶させる(S16)。 Next, the controller 130 selects the set of functions F1, F2, and F3, the set of thresholds Vh1 and Vh2, and the set of ratio information G stored in the EEPROM 134 so that the type information read in S15 is A set of functions F1, F2, F3, a set of thresholds Vh1, Vh2, and ratio information G corresponding to the type of the mounted cartridge are selected, read out, and stored in the RAM 133 (S16).

また、コントローラ130は、カートリッジ交換後の総量Vtを算出する(S17)。詳細には、コントローラ130は、EEPROM134に記憶されているカートリッジ交換前のカウント値SNと、ROM132に記憶されているインク量Vscと、に基づいて、カートリッジ交換前のインク量Vsを算出して(Vs=Vsc-SN)、EEPROM134に記憶させる。なお、カートリッジ交換前のインク量Vsは、カートリッジ交換前の総量Vtに等しい。そして、算出したインク量Vsと、交換後のカートリッジ200のIC基板247のメモリから読み出したインク量Vcと、に基づいて、カートリッジ交換後の総量Vtを算出する(Vt=Vs+Vc)。そして、カートリッジ200が交換されると、カートリッジ200が交換される直前のタンク160の液室171に貯留されているインクのインク量Vs(=Vsc-SN)に、新しいカートリッジ200の液室210に貯留されているインク量Vcの一部が加わることとなる。 The controller 130 also calculates the total amount Vt after cartridge replacement (S17). Specifically, the controller 130 calculates the ink amount Vs before cartridge replacement based on the count value SN before cartridge replacement stored in the EEPROM 134 and the ink amount Vsc stored in the ROM 132 ( Vs=Vsc-SN), stored in the EEPROM 134. Note that the ink amount Vs before cartridge replacement is equal to the total amount Vt before cartridge replacement. Then, based on the calculated ink amount Vs and the ink amount Vc read from the memory of the IC board 247 of the cartridge 200 after replacement, the total amount Vt after cartridge replacement is calculated (Vt=Vs+Vc). When the cartridge 200 is replaced, the ink amount Vs (=Vsc-SN) of the ink stored in the liquid chamber 171 of the tank 160 immediately before the cartridge 200 is replaced becomes A part of the stored ink amount Vc is added.

そして、コントローラ130は、算出した総量Vtと、S16で選択してRAM133に記憶させた関数F1、F2又はF3に基づいて、液室210から液室171へのインクの移動が終了したときのインク量Vc及びインク量Vsを算出する(S17)。カートリッジが交換されると、新たなカートリッジ200の液室210に貯留されているインクが、インクニードル181を通じてタンク160の液室171に流入する。その結果、液室210のインク量Vcは減少し、また、液室171のインク量Vsは増加する。そして、カートリッジ200の液室210と、タンク160の液室171とは、それぞれの液面の上下方向7の位置が一致した状態で平衡になる。 Based on the calculated total amount Vt and the function F1, F2, or F3 selected in S16 and stored in the RAM 133, the controller 130 determines the amount of ink when the movement of the ink from the liquid chamber 210 to the liquid chamber 171 is completed. The amount Vc and the ink amount Vs are calculated (S17). When the cartridge is replaced, the ink stored in the liquid chamber 210 of the new cartridge 200 flows through the ink needle 181 into the liquid chamber 171 of the tank 160 . As a result, the ink amount Vc in the liquid chamber 210 decreases, and the ink amount Vs in the liquid chamber 171 increases. Then, the liquid chamber 210 of the cartridge 200 and the liquid chamber 171 of the tank 160 are balanced in a state where the positions of the respective liquid surfaces in the vertical direction 7 match.

コントローラ130は、算出した総量Vtと、S16で選択してRAM133に記憶させた閾値Vh1、Vh2との大小関係を判定する。例えば、新品のカートリッジ200が装着ケース150に装着されると、総量Vtは閾値Vh1以上である。コントローラ130は、総量Vtが閾値Vh1以上であれば、関数F1を用いて、総量Vtからインク量Vsを算出する。コントローラ130は、総量Vtが閾値Vh2以上閾値Vh1未満であれば、関数F2を用いて、総量Vtからインク量Vsを算出する。コントローラ130は、総量Vtが閾値Vh2未満であれば、関数F3を用いて、総量Vtからインク量Vsを算出する。コントローラ130は、算出したインク量Vsを総量Vtから減算して、インク量Vcを算出する。そして、コントローラ130は、算出したインク量Vc、VsをEEPROM134に記憶させる(S18)。このとき、コントローラ130は、EEPROM134が記憶するインク量Vc、Vsを、算出したインク量Vc、Vsにて更新する。また、コントローラ130は、算出したインク量Vcを接点152を通じてIC基板247のメモリに記憶させる(S18)。このとき、コントローラ130は、IC基板247のメモリが記憶するインク量Vcを、算出したインク量Vcにて更新する。そして、コントローラ130は、算出したインク量Vc,Vsを、カートリッジ200の装着時の当初インク量Vc1、Vs1として、EEPROM134に記憶させる(S18)。 The controller 130 determines the magnitude relationship between the calculated total amount Vt and the thresholds Vh1 and Vh2 selected in S16 and stored in the RAM 133 . For example, when a new cartridge 200 is attached to the attachment case 150, the total amount Vt is equal to or greater than the threshold value Vh1. If the total amount Vt is equal to or greater than the threshold value Vh1, the controller 130 uses the function F1 to calculate the ink amount Vs from the total amount Vt. If the total amount Vt is greater than or equal to the threshold value Vh2 and less than the threshold value Vh1, the controller 130 uses the function F2 to calculate the ink amount Vs from the total amount Vt. If the total amount Vt is less than the threshold value Vh2, the controller 130 uses the function F3 to calculate the ink amount Vs from the total amount Vt. The controller 130 subtracts the calculated ink amount Vs from the total amount Vt to calculate the ink amount Vc. Then, the controller 130 stores the calculated ink amounts Vc and Vs in the EEPROM 134 (S18). At this time, the controller 130 updates the ink amounts Vc and Vs stored in the EEPROM 134 with the calculated ink amounts Vc and Vs. Further, the controller 130 stores the calculated ink amount Vc in the memory of the IC substrate 247 through the contact 152 (S18). At this time, the controller 130 updates the ink amount Vc stored in the memory of the IC substrate 247 with the calculated ink amount Vc. Then, the controller 130 stores the calculated ink amounts Vc and Vs in the EEPROM 134 as initial ink amounts Vc1 and Vs1 when the cartridge 200 is attached (S18).

続いて、コントローラ130は、液面センサ155から受信した信号が、ハイレベル信号からローレベル信号へ変化したかを判定する(S19)。新たなカートリッジ200が装着ケース150に装着されると、カートリッジ200の液室210からタンク160の液室171へインクが流入する。そして、液室171のインクの液面が所定位置Pに到達すると、液面センサ155が出力する信号がハイレベル信号からローレベル信号へ変化する。コントローラ130は、液面センサ155から受信した信号がハイレベル信号のままであれば(S19:No)、ローレベル信号を受信するまでS19の判定を繰り返す。つまり、コントローラ130は、液室171のインクの液面が所定位置Pまで上昇するまで待機する。 Subsequently, the controller 130 determines whether the signal received from the liquid level sensor 155 has changed from a high level signal to a low level signal (S19). When a new cartridge 200 is attached to the attachment case 150 , ink flows from the liquid chamber 210 of the cartridge 200 into the liquid chamber 171 of the tank 160 . Then, when the liquid level of the ink in the liquid chamber 171 reaches a predetermined position P, the signal output from the liquid level sensor 155 changes from a high level signal to a low level signal. If the signal received from the liquid level sensor 155 remains a high level signal (S19: No), the controller 130 repeats the determination of S19 until a low level signal is received. In other words, the controller 130 waits until the liquid level of the ink in the liquid chamber 171 rises to the predetermined position P.

コントローラ130は、液面センサ155から受信した信号が、ハイレベル信号からローレベル信号へ変化したと判定したことに応じて(S19:Yes)、S_Emptyフラグ及びC_Emptyフラグをそれぞれ”OFF”とする。また、コントローラ130は、表示されているS_Empty報知画面やC_Empty報知画面をディスプレイ17から消去する(S20)。また、コントローラ130は、算出したインク量Vc及びインク量Vsをディスプレイ17に表示する。なお、コントローラ130は、算出した総量Vtをディスプレイ17に表示してもよい。総量Vt、インク量Vc,Vsの表示は、数値で表示されてもよいし、バーインデックスなどの画像によって表示されてもよい。また、必ずしもインク量Vc及びインク量Vsの双方が表示される必要はなく、少なくとも一部が、例えば、インク量Vcのみが表示されてもよい。そして、コントローラ130は、S11以降の処理を再び実行する。 When the controller 130 determines that the signal received from the liquid level sensor 155 has changed from the high level signal to the low level signal (S19: Yes), it turns the S_Empty flag and the C_Empty flag "OFF". Further, the controller 130 erases the displayed S_Empty notification screen and C_Empty notification screen from the display 17 (S20). The controller 130 also displays the calculated ink amount Vc and ink amount Vs on the display 17 . Note that the controller 130 may display the calculated total amount Vt on the display 17 . The display of the total amount Vt and the ink amounts Vc and Vs may be displayed numerically or by images such as bar indexes. Also, it is not necessary to display both the ink amount Vc and the ink amount Vs, and at least a part of the display, for example, only the ink amount Vc may be displayed. Then, the controller 130 executes the processes after S11 again.

コントローラ130は、すべてのカートリッジ200にそれぞれ対応するすべてのS_Emptyフラグが”ON”でなければ、すなわち全て”OFF”であれば、現時点で4つの液面センサ155それぞれから出力されている信号を受信する(S21)。さらにS21において、コントローラ130は、液面センサ155から受信した信号がハイレベル信号及びローレベル信号のどちらかを示す情報を、RAM133に記憶させる。 If all S_Empty flags corresponding to all cartridges 200 are not "ON", that is, if they are all "OFF", the controller 130 receives signals output from the four liquid level sensors 155 at present. (S21). Furthermore, in S21, the controller 130 causes the RAM 133 to store information indicating whether the signal received from the liquid level sensor 155 is a high level signal or a low level signal.

そして、コントローラ130は、記録指示に含まれる画像データで示される画像を1つのシートに記録する(S22)。より詳細には、コントローラ130は、給送トレイ15上のシートを給送ローラ23及び搬送ローラ25に搬送させ、ヘッド21にインクを吐出させ、画像が記録されたシートを排出ローラ27に排出トレイ16へ排出させる。すなわち、コントローラ130は、4つのS_Emptyフラグの全てに“OFF”が設定されているときに(S11:OFF)、S22の処理を実行する。つまり、ヘッド21を通じたインクの排出を許可する。一方、コントローラ130は、4つのS_Emptyフラグの少なくとも1つに“ON”が設定されているときには(S11:ON)、S22の処理を実行しない。つまり、4つのタンク160全てについてヘッド21を通じたインクの排出を禁止する。 The controller 130 then prints the image indicated by the image data included in the print instruction on one sheet (S22). More specifically, the controller 130 causes the sheet on the feed tray 15 to be conveyed by the feed roller 23 and the conveying roller 25, causes the head 21 to eject ink, and sends the sheet on which an image is recorded to the discharge roller 27 to the discharge tray. Drain to 16. That is, the controller 130 executes the process of S22 when all four S_Empty flags are set to "OFF" (S11: OFF). That is, discharge of ink through the head 21 is permitted. On the other hand, the controller 130 does not execute the process of S22 when at least one of the four S_Empty flags is set to "ON" (S11: ON). That is, discharge of ink through the head 21 is prohibited for all four tanks 160 .

次に、コントローラ130は、記録指示に従って1つのシートに画像を記録したことに応じて、現時点で4つの液面センサ155それぞれから出力されている信号を受信する(S23)。さらに、S21と同様に、コントローラ130は、液面センサ155から受信した信号がハイレベル信号及びローレベル信号のどちらかを示す情報を、RAM133に記憶させる(S23)。そして、コントローラ130は、カウント処理を実行する(S24)。カウント処理は、S21、S22で液面センサ155から受信した信号に基づいて、カウント値TN、SN、C_Emptyフラグ、及びS_Emptyフラグを更新する処理である。カウント処理の詳細は、図8を参照して後述する。 Next, the controller 130 receives the signals output from each of the four liquid level sensors 155 at this time in response to printing an image on one sheet according to the printing instruction (S23). Furthermore, as in S21, the controller 130 causes the RAM 133 to store information indicating whether the signal received from the liquid level sensor 155 is a high level signal or a low level signal (S23). The controller 130 then executes a counting process (S24). The counting process is a process of updating the count values TN, SN, C_Empty flag, and S_Empty flag based on the signals received from the liquid level sensor 155 in S21 and S22. Details of the counting process will be described later with reference to FIG.

次に、コントローラ130は、記録指示で示された全ての画像をシートに記録し、次ページが無い状態となるまで(S25:Yes)、S11~S25の処理を繰り返し実行する。そして、コントローラ130は、記録指示で示される全ての画像をシートに記録し、次ページが無い状態となったことに応じて(S25:No)、4つのS_Emptyフラグそれぞれの設定値及び4つのC_Emptyフラグそれぞれの設定値を判定する(S26、S27)。 Next, the controller 130 prints all the images indicated by the print instruction on the sheet, and repeats the processes of S11 to S25 until there is no next page (S25: Yes). Then, the controller 130 prints all the images indicated by the print instruction on the sheet, and when there is no next page (S25: No), the set values of the four S_Empty flags and the four C_Empty flags The set value of each flag is determined (S26, S27).

コントローラ130は、4つのS_Emptyフラグの少なくとも1つに“ON”が設定されていることに応じて(S26:ON)、S_Empty報知画面をディスプレイ17に表示させる(S28)。また、コントローラ130は、4つのS_Emptyフラグの全てに“OFF”が設定されており、且つ4つのC_Emptyフラグの少なくとも1つに“ON”が設定されていることに応じて(S26:OFF&S27:ON)、C_Empty報知画面をディスプレイ17に表示させる(S29)。S26、S27の処理は、報知機を作動させることの一例である。 When at least one of the four S_Empty flags is set to "ON" (S26: ON), the controller 130 causes the display 17 to display the S_Empty notification screen (S28). Further, the controller 130 responds to the fact that all four S_Empty flags are set to "OFF" and at least one of the four C_Empty flags is set to "ON" (S26: OFF & S27: ON ), the C_Empty notification screen is displayed on the display 17 (S29). The processing of S26 and S27 is an example of activating an alarm.

S28で表示されるS_Empty報知画面は、S12と同様であってもよい。また、C_Empty報知画面は、”ON”が設定されたC_Emptyフラグに対応するカートリッジ200がカートリッジエンプティ状態になったことを、ユーザに報知するための画面である。C_Empty報知画面は、例えば、カートリッジエンプティ状態のカートリッジ200に貯留されているインクの色及びインク量Vc、Vsを示す情報を含んでもよい。一方、コントローラ130は、4つのS_Emptyフラグ及び4つのC_Emptyフラグの全てに“OFF”が設定されていることに応じて(S27:OFF)、画像記録処理を終了する。 The S_Empty notification screen displayed in S28 may be the same as that in S12. The C_Empty notification screen is a screen for notifying the user that the cartridge 200 corresponding to the C_Empty flag set to "ON" is in the cartridge empty state. The C_Empty notification screen may include, for example, information indicating the ink color and ink amounts Vc and Vs stored in the cartridge 200 in the cartridge empty state. On the other hand, the controller 130 terminates the image recording process in response to all four S_Empty flags and four C_Empty flags being set to "OFF" (S27: OFF).

なお、排出指示の具体例は記録指示に限定されず、パージなどのノズル29のメンテナンスを指示するメンテナンス指示等であってもよい。コントローラ130は、例えば操作パネル22を通じてメンテナンス指示を受信したことに応じて、図7と同様の処理を実行する。メンテナンス指示を受信した場合の前述の処理との相違点は、以下の通りである。まず、コントローラ130は、S22において、不図示のメンテナンス機構を駆動させて、ノズル29を通じてインクを排出させる。また、コントローラ130は、カウント処理を実行した後にS25の処理を実行することなく、S25以降の処理を実行する。 A specific example of the discharge instruction is not limited to a recording instruction, and may be a maintenance instruction for instructing maintenance of the nozzles 29 such as purging. The controller 130 performs the same processing as in FIG. 7 in response to receiving a maintenance instruction through the operation panel 22, for example. Differences from the above-described processing when receiving a maintenance instruction are as follows. First, in S<b>22 , the controller 130 drives a maintenance mechanism (not shown) to discharge ink through the nozzles 29 . Further, the controller 130 executes the processes after S25 without executing the process of S25 after executing the counting process.

[カウント処理]
次に図8を参照して、S24でコントローラ130が実行するカウント処理の詳細を説明する。なお、コントローラ130は、4つのカートリッジ200のそれぞれに対して、カウント処理を独立して実行する。カートリッジ200毎のカウント処理は共通するので、1つのカートリッジ200に対応するカウント処理のみを説明する。
[Count processing]
Next, with reference to FIG. 8, the details of the counting process executed by the controller 130 in S24 will be described. Note that the controller 130 independently executes the counting process for each of the four cartridges 200 . Since the counting process for each cartridge 200 is common, only the counting process corresponding to one cartridge 200 will be described.

まず、コントローラ130は、S21、S22でRAM133に記憶させた液面センサ155の信号を示す情報を比較する(S31)。すなわち、コントローラ130は、カウント処理(S24)を実行する直前のS22の処理を実行する前と後とで、4つの液面センサ155それぞれの信号が変化したか否かを判定する。 First, the controller 130 compares the information indicating the signal of the liquid level sensor 155 stored in the RAM 133 in S21 and S22 (S31). That is, the controller 130 determines whether or not the signals of the four liquid level sensors 155 have changed between before and after executing the process of S22 immediately before executing the counting process (S24).

コントローラ130は、S21、S22でRAM133に記憶させた情報が共にローレベル信号を示す(すなわち、S22の処理の前後で液面センサ155の信号出力が変化していない)ことに応じて(S31:L→L)、現在の総量Vtを決定し、決定された現在の総量Vtが、S16で選択してRAM133に記憶させた閾値Vh1以上であるかを判定する(S32)。まず、コントローラ130は、S18でEEPROM134に記憶させた当初インク量Vc1と当初インク量Vs1の和から、カウント値TN1、TN2及びTN3に相当するインク量と、直前のS22で排出を指示したインク量Dnとを差し引いた値として、現在の総量Vtを決定する(Vt=Vc1+Vs1-TN1-TN2-TN3-Dn)。そして、コントローラ130は、決定された現在の総量Vtと、EEPROM134から読み出した閾値Vhとを用いて判定を行う(S32)。 The controller 130 responds that the information stored in the RAM 133 in S21 and S22 both indicate a low level signal (that is, the signal output of the liquid level sensor 155 does not change before and after the process of S22) (S31: L→L), determine the current total amount Vt, and determine whether the determined current total amount Vt is equal to or greater than the threshold value Vh1 selected in S16 and stored in the RAM 133 (S32). First, from the sum of the initial ink amount Vc1 and the initial ink amount Vs1 stored in the EEPROM 134 in S18, the controller 130 determines the ink amount corresponding to the count values TN1, TN2, and TN3, and the ink amount instructed to be discharged in the previous S22. Dn is subtracted to determine the current total Vt (Vt=Vc1+Vs1-TN1-TN2-TN3-Dn). Then, the controller 130 makes a determination using the determined current total amount Vt and the threshold Vh read from the EEPROM 134 (S32).

コントローラ130は、現在の総量Vtが閾値Vh1以上であると判定したことに応じて(S32:Yes)、カウント値TN1を更新する(S33)。すなわち、コントローラ130は、直前のS22で排出を指示したインク量Dnに相当する値で、カウント値TN1をカウントアップする。 When the controller 130 determines that the current total amount Vt is equal to or greater than the threshold value Vh1 (S32: Yes), the controller 130 updates the count value TN1 (S33). That is, the controller 130 counts up the count value TN1 with a value corresponding to the ink amount Dn instructed to be discharged in the previous S22.

次に、コントローラ130は、S16で選択してRAM133に記憶させた比率情報Gが示す比率R1と、更新されたカウント値TN1とに基づいて、減少量ΔVc1、ΔVs1と、インク量Vc、Vsとを決定する(S34)。まず、コントローラ130は、比率R1とカウント値TN1とに基づいて、減少量ΔVc1(ΔVc1=g×TN1)、及び減少量ΔVs1(ΔVs1=(1-g)×TN1)を算出する。次に、コントローラ130は、当初インク量Vc1から減少量ΔVc1を減算してインク量Vcを算出し(Vc=Vc1-ΔVc1)、当初インク量Vs1から減少量ΔVs1を減算してインク量Vsを算出する(Vc=Vc1-ΔVc1)。 Next, based on the ratio R1 indicated by the ratio information G selected in S16 and stored in the RAM 133 and the updated count value TN1, the controller 130 sets the reduction amounts ΔVc1 and ΔVs1 and the ink amounts Vc and Vs. is determined (S34). First, the controller 130 calculates a decrease amount ΔVc1 (ΔVc1=g×TN1) and a decrease amount ΔVs1 (ΔVs1=(1−g)×TN1) based on the ratio R1 and the count value TN1. Next, the controller 130 subtracts the decrease amount ΔVc1 from the initial ink amount Vc1 to calculate the ink amount Vc (Vc=Vc1−ΔVc1), and subtracts the decrease amount ΔVs1 from the initial ink amount Vs1 to calculate the ink amount Vs. (Vc=Vc1-ΔVc1).

コントローラ130は、現在の総量Vtが閾値Vh1未満であると判定したことに応じて(S32:No)、現在の総量Vtが、S16で選択してRAM133に記憶させた閾値Vh2以上であるかを判定する(S35)。コントローラ130は、現在の総量Vtが閾値Vh2以上であると判定したことに応じて(S35:Yes)、カウント値TN2を更新する(S35)。すなわち、コントローラ130は、直前のS22で排出を指示したインク量に相当する値で、カウント値TN2をカウントアップする。 When the controller 130 determines that the current total amount Vt is less than the threshold Vh1 (S32: No), the controller 130 determines whether the current total amount Vt is equal to or greater than the threshold Vh2 selected in S16 and stored in the RAM 133. Determine (S35). When the controller 130 determines that the current total amount Vt is equal to or greater than the threshold value Vh2 (S35: Yes), the controller 130 updates the count value TN2 (S35). That is, the controller 130 counts up the count value TN2 with a value corresponding to the amount of ink instructed to be discharged in S22 immediately before.

次に、コントローラ130は、S16で選択してRAM133に記憶させた比率情報Gが示す比率R2と、更新されたカウント値TN2とに基づいて、減少量ΔVc2、ΔVs2と、インク量Vc、Vsとを決定する(S37)。まず、コントローラ130は、比率R2とカウント値TN2とに基づいて、減少量ΔVc2(ΔVc2=h×TN2)、及び減少量ΔVs2(ΔVs2=(1-h)×TN2)を算出する。次に、コントローラ130は、当初インク量Vc1から、算出した減少量ΔVc2と、総量Vtが閾値Vh1以上である間の減少量ΔVc1(=g×TN1)とを減算して、インク量Vcを算出する(Vc=Vc1-ΔVc2-ΔVc1)。コントローラ130は、当初インク量Vs1から、算出した減少量ΔVs2と、総量Vtが閾値Vh1以上である間の減少量ΔVs1(=(1-g)×TN1)とを減算して、インク量Vsを算出する(Vs=Vs1-ΔVs2-ΔVs1)。 Next, based on the ratio R2 indicated by the ratio information G selected in S16 and stored in the RAM 133 and the updated count value TN2, the controller 130 sets the reduction amounts ΔVc2 and ΔVs2 and the ink amounts Vc and Vs. is determined (S37). First, the controller 130 calculates a decrease amount ΔVc2 (ΔVc2=h×TN2) and a decrease amount ΔVs2 (ΔVs2=(1−h)×TN2) based on the ratio R2 and the count value TN2. Next, the controller 130 calculates the ink amount Vc by subtracting the calculated decrease amount ΔVc2 and the decrease amount ΔVc1 (=g×TN1) while the total amount Vt is equal to or greater than the threshold value Vh1 from the initial ink amount Vc1. (Vc=Vc1-ΔVc2-ΔVc1). The controller 130 subtracts the calculated reduction amount ΔVs2 and the reduction amount ΔVs1 (=(1−g)×TN1) while the total amount Vt is equal to or greater than the threshold value Vh1 from the initial ink amount Vs1 to obtain the ink amount Vs. Calculate (Vs=Vs1-ΔVs2-ΔVs1).

コントローラ130は、現在の総量Vtが閾値Vh2未満であると判定したことに応じて(S35:No)、カウント値TN3を更新する(S38)。すなわち、コントローラ130は、直前のS22で排出を指示したインク量に相当する値で、カウント値TN3をカウントアップする。 When the controller 130 determines that the current total amount Vt is less than the threshold value Vh2 (S35: No), the controller 130 updates the count value TN3 (S38). That is, the controller 130 counts up the count value TN3 with a value corresponding to the amount of ink instructed to be discharged in S22 immediately before.

次に、コントローラ130は、S16で選択してRAM133に記憶させた比率情報Gが示す比率R3と、更新されたカウント値TN3とに基づいて、減少量ΔVc3、ΔVs3と、インク量Vc、Vsとを決定する(S39)。まず、コントローラ130は、比率R3とカウント値TN3とに基づいて、減少量ΔVc3(ΔVc3=k×TN3)、及び減少量ΔVs3(ΔVs3=(1-k)×TN3)を算出する。次に、コントローラ130は、当初インク量Vc1から、算出した減少量ΔVc3と、総量Vtが閾値Vh1以上である間の減少量ΔVc1(=g×TN1)と、総量Vtが閾値Vh2以上閾値Vh1未満である間の減少量ΔVc2(=h×TN2)とを減算して、インク量Vcを算出する(Vc=Vc1-ΔVc3-ΔVc1-ΔVc2)。コントローラ130は、当初インク量Vs1から、算出した減少量ΔVs3と、総量Vtが閾値Vh1以上である間の減少量ΔVs1(=(1-g)×TN1)と、総量Vtが閾値Vh2以上閾値Vh1未満である間の減少量ΔVs2(=(1-h)×TN2)を減算して、インク量Vsを算出する(Vs=Vs1-ΔVs3-ΔVs1-ΔVs2)。 Next, based on the ratio R3 indicated by the ratio information G selected in S16 and stored in the RAM 133 and the updated count value TN3, the controller 130 sets the reduction amounts ΔVc3 and ΔVs3 and the ink amounts Vc and Vs. is determined (S39). First, the controller 130 calculates a decrease amount ΔVc3 (ΔVc3=k×TN3) and a decrease amount ΔVs3 (ΔVs3=(1−k)×TN3) based on the ratio R3 and the count value TN3. Next, the controller 130 calculates the calculated decrease amount ΔVc3 from the initial ink amount Vc1, the decrease amount ΔVc1 (=g×TN1) while the total amount Vt is equal to or greater than the threshold value Vh1, and By subtracting the amount of decrease ΔVc2 (=h×TN2) during the period, the ink amount Vc is calculated (Vc=Vc1−ΔVc3−ΔVc1−ΔVc2). The controller 130 calculates the calculated decrease amount ΔVs3 from the initial ink amount Vs1, the decrease amount ΔVs1 (=(1−g)×TN1) while the total amount Vt is equal to or greater than the threshold value Vh1, and the total amount Vt is equal to or greater than the threshold value Vh2. The ink amount Vs is calculated by subtracting the amount of decrease ΔVs2 (=(1−h)×TN2) while it is less than (Vs=Vs1−ΔVs3−ΔVs1−ΔVs2).

以上述べたとおり、本実施形態では、総量Vtが閾値Vh1未満となる前のインクの減少量(ΔVc1、ΔVs1)が、カウント値TN1と比率R1とに基づいて決定される。総量Vtが閾値Vh1未満となった後、閾値Vh2未満となる迄のインクの減少量(ΔVc2、ΔVs2)が、カウント値TN2と比率R2とに基づいて決定される。総量Vtが閾値Vh2未満となった後のインクの減少量(ΔVc3、ΔVs3)が、カウント値TN3と比率R3とに基づいて決定される。そして、これらの減少量に基づいて、インク量Vc、Vsが決定される。 As described above, in the present embodiment, the ink decrease amount (ΔVc1, ΔVs1) before the total amount Vt becomes less than the threshold value Vh1 is determined based on the count value TN1 and the ratio R1. After the total amount Vt becomes less than the threshold value Vh1, the ink decrease amount (ΔVc2, ΔVs2) until it becomes less than the threshold value Vh2 is determined based on the count value TN2 and the ratio R2. The ink decrease amount (ΔVc3, ΔVs3) after the total amount Vt becomes less than the threshold value Vh2 is determined based on the count value TN3 and the ratio R3. Then, the ink amounts Vc and Vs are determined based on these decreased amounts.

続いて、コントローラ130は、インク残量画面をディスプレイ17に表示させる(S40)。インク残量画面は、算出したインク量Vc及びインク量Vsの双方をユーザに報知するための画面である。図11に、インク残量画面の例を示す。図示例のインク残量画面は、マゼンタ、シアン、イエロー、及びブラックの各カートリッジ200のインク量Vcを示すオブジェクト274M、274C、274Y、274Bを有する。これらオブジェクトの縦方向71の大きさが、各色のインク量Vcを示している。インク残量画面は、マゼンタ、シアン、イエロー、及びブラックの各タンク160のインク残量Vsを示すオブジェクト275M、275C、275Y、275Bを有する。これらオブジェクトの縦方向71の大きさが、各色のインク量Vsを示している。オブジェクト274Mの縦方向71の大きさと、オブジェクト275Mの縦方向71の大きさの和が、マゼンタのインク残量VcとVsとの和、すなわちマゼンタのインクの総量Vtを示している。シアン、イエロー、及びブラックについても同様である。 Subsequently, the controller 130 causes the display 17 to display an ink remaining amount screen (S40). The ink remaining amount screen is a screen for notifying the user of both the calculated ink amount Vc and ink amount Vs. FIG. 11 shows an example of the ink remaining amount screen. The remaining ink amount screen in the illustrated example has objects 274M, 274C, 274Y, and 274B indicating the ink amounts Vc of the cartridges 200 of magenta, cyan, yellow, and black. The size of these objects in the vertical direction 71 indicates the ink amount Vc of each color. The remaining ink screen has objects 275M, 275C, 275Y, and 275B indicating the ink remaining amount Vs of each tank 160 of magenta, cyan, yellow, and black. The size of these objects in the vertical direction 71 indicates the ink amount Vs of each color. The sum of the vertical size 71 of the object 274M and the vertical size 71 of the object 275M indicates the sum of the remaining magenta ink amounts Vc and Vs, that is, the total magenta ink amount Vt. The same is true for cyan, yellow, and black.

そして、コントローラ130は、算出したインク量VcをEEPROM134に記憶させる(S41)。このとき、コントローラ130は、EEPROM134が記憶するインク量Vsを、算出したインク量Vsにて更新する。また、コントローラ130は、算出したインク量Vcを接点152を通じてIC基板247のメモリに記憶させる(S41)。このとき、コントローラ130は、IC基板247のメモリが記憶するインク量Vcを、算出したインク量Vcにて更新する。 Then, the controller 130 stores the calculated ink amount Vc in the EEPROM 134 (S41). At this time, the controller 130 updates the ink amount Vs stored in the EEPROM 134 with the calculated ink amount Vs. Further, the controller 130 stores the calculated ink amount Vc in the memory of the IC substrate 247 through the contact 152 (S41). At this time, the controller 130 updates the ink amount Vc stored in the memory of the IC substrate 247 with the calculated ink amount Vc.

また、コントローラ130は、S21でRAM133に記憶させた情報がローレベル信号を示し、S22でRAM133に記憶させた情報がハイレベル信号を示す(すなわち、S22の処理の前後で液面センサ155の信号出力が変化したことに応じて(S31:L→H)、C_Emptyフラグに“ON”を設定する(S42)。液面センサ155の出力がローレベル信号からハイレベル信号に変化するのは、S22の処理中に液室171の液面が所定位置Pに達したことに対応する。そして、これ以降は、カートリッジ200とタンク160との間でインクが移動しない。 Further, the controller 130 determines that the information stored in the RAM 133 in S21 indicates a low level signal, and the information stored in the RAM 133 in S22 indicates a high level signal (that is, the signal of the liquid level sensor 155 before and after the process of S22). In response to the change in the output (S31: L→H), the C_Empty flag is set to "ON" (S42). This corresponds to the fact that the liquid surface of the liquid chamber 171 reaches a predetermined position P during the process 1. After that, the ink does not move between the cartridge 200 and the tank 160 .

また、コントローラ130は、ROM132から所定インク量Vcc(=0)を読み出して、インク量Vcを所定インク量Vccとする(S43)。同様に、コントローラ130は、ROM132から所定インク量Vsc(所定位置P未満の液室171の容積に相当する。)を読み出して、インク量Vsを所定インク量Vscとする(S43)。カウント処理で算出されるインク量Vc、Vsは誤差を含むので、コントローラ130は、液面センサ155の出力がローレベル信号からハイレベル信号に変化したタイミングで、インク量Vcを所定インク量Vccとし、また、インク量Vsを所定インク量Vscとして、累積した誤差をリセットする。また、コントローラ130は、現在の総量Vtを、インク量Vsと同じ値(Vt=Vsc)として算出する(S43)。インク量Vcがゼロになることによって、総量Vtは、インク量Vsと同じ値となる。 Further, the controller 130 reads out the predetermined ink amount Vcc (=0) from the ROM 132 and sets the ink amount Vc to the predetermined ink amount Vcc (S43). Similarly, the controller 130 reads the predetermined ink amount Vsc (corresponding to the volume of the liquid chamber 171 below the predetermined position P) from the ROM 132 and sets the ink amount Vs to the predetermined ink amount Vsc (S43). Since the ink amounts Vc and Vs calculated in the counting process contain errors, the controller 130 sets the ink amount Vc to the predetermined ink amount Vcc at the timing when the output of the liquid level sensor 155 changes from a low level signal to a high level signal. Also, the ink amount Vs is set to the predetermined ink amount Vsc, and the accumulated error is reset. The controller 130 also calculates the current total amount Vt as the same value as the ink amount Vs (Vt=Vsc) (S43). When the ink amount Vc becomes zero, the total amount Vt becomes the same value as the ink amount Vs.

そして、コントローラ130は、インク残量画面をディスプレイ17に表示させる(S44)。S44で表示させるインク残量画面は、S40で表示させるインク残量画面と同様の画面であってよい。また、コントローラ130は、カートリッジ200のIC基板247のメモリに記憶されたインク量Vcを、前述したインク量Vc(=0)で上書きする(S45)。 Then, the controller 130 causes the display 17 to display an ink remaining amount screen (S44). The remaining ink screen displayed in S44 may be the same screen as the remaining ink screen displayed in S40. Further, the controller 130 overwrites the ink amount Vc stored in the memory of the IC board 247 of the cartridge 200 with the ink amount Vc (=0) (S45).

なお、液面センサ155の信号出力が変化するのは、S22の処理の途中である。よって、S43で読み出された所定インク量Vscは、正確には、液面センサ155の信号出力が変化した瞬間にタンク160に貯留されているインクの量ではなく、液面センサ155の信号出力が変化する直前のインクの量を示していることとなる。しかしながら、これらのインク量の差は僅かなので、S43で読み出された所定インク量Vscが、液面センサ155の信号出力が変化した時点のインク量Vsとして近似的に扱われる。 It should be noted that the signal output of the liquid level sensor 155 changes during the process of S22. Therefore, the predetermined ink amount Vsc read in S43 is not the amount of ink stored in the tank 160 at the instant when the signal output of the liquid level sensor 155 changes, but the signal output of the liquid level sensor 155. indicates the amount of ink immediately before the change. However, since the difference between these ink amounts is slight, the predetermined ink amount Vsc read in S43 is treated approximately as the ink amount Vs when the signal output of the liquid level sensor 155 changes.

また、コントローラ130は、EEPROM134に記憶されたカウント値SNを、直前のS22で排出を指示したインク量に相当する値で更新する(S46)。換言すれば、コントローラ130は、液面センサ155の出力がローレベル信号からハイレベル信号に変化したことに応じて、カウント値SNの更新を開始してカウントアップする。 The controller 130 also updates the count value SN stored in the EEPROM 134 with a value corresponding to the amount of ink instructed to be discharged in the previous S22 (S46). In other words, the controller 130 starts updating the count value SN and counts up in response to the change of the output of the liquid level sensor 155 from the low level signal to the high level signal.

そして、コントローラ130は、インク量Vsを算出する(S47)。算出されるインク量Vsは、ROM132に記憶された所定インク量Vscから、EEPROM134に記憶されたカウント値SNに相当するインク量を差し引いた値である。なお、前述したように、液面センサ155の出力がハイレベル信号になった後は、インク量Vsは、現在の総量Vtと同じ値である。また、インク量Vcはゼロである。 The controller 130 then calculates the ink amount Vs (S47). The calculated ink amount Vs is a value obtained by subtracting the ink amount corresponding to the count value SN stored in the EEPROM 134 from the predetermined ink amount Vsc stored in the ROM 132 . As described above, after the output of the liquid level sensor 155 becomes a high level signal, the ink amount Vs is the same value as the current total amount Vt. Also, the ink amount Vc is zero.

そして、コントローラ130は、インク残量画面をディスプレイ17に表示させる(S48)。S48で表示させるインク残量画面は、S40又はS44で表示させるインク残量画面と同様の画面であってよい。なお、液面センサ155の出力がハイレベル信号になった後は、インク量Vcはゼロなので、コントローラ130は、カートリッジ200のIC基板247のメモリに記憶されたインク量Vcを更新する必要はない。 Then, the controller 130 causes the display 17 to display an ink remaining amount screen (S48). The remaining ink screen displayed in S48 may be the same screen as the remaining ink screen displayed in S40 or S44. Since the ink amount Vc is zero after the output of the liquid level sensor 155 becomes a high level signal, the controller 130 does not need to update the ink amount Vc stored in the memory of the IC substrate 247 of the cartridge 200. .

次に、コントローラ130は、S46で更新したカウント値SNと、閾値Nthとを比較する(S49)。そして、コントローラ130は、S46で更新したカウント値SNが閾値Nth未満だと判定したことに応じて(S49:No)、カウント処理を終了する。一方、コントローラ130は、S46で更新したカウント値SNが閾値Nth以上だと判定したことに応じて(S49:Yes)、S_Emptyフラグに“ON”を設定する(S50)。そして、コントローラ130は、S_Emptyフラグに“ON”が設定されていることに応じてヘッド21を通じたインクの排出を禁止して、カウント処理を終了する。 Next, the controller 130 compares the count value SN updated in S46 with the threshold value Nth (S49). When the controller 130 determines that the count value SN updated in S46 is less than the threshold value Nth (S49: No), the controller 130 ends the counting process. On the other hand, when the controller 130 determines that the count value SN updated in S46 is equal to or greater than the threshold value Nth (S49: Yes), it sets the S_Empty flag to "ON" (S50). Then, the controller 130 prohibits ejection of ink through the head 21 in response to the S_Empty flag being set to "ON", and ends the counting process.

また、コントローラ130は、S21、S22でRAM133に記憶させた情報が共にハイレベル信号を示すことに応じて(S31:H→H)、EEPROM134に記憶されているカウント値SNを読み出す。そして、コントローラ130は、読み出したカウント値SNを、直前のS22で排出を指示したインク量に相当する値でカウントアップして、再びEEPROM134に記憶させる。すなわち、コントローラ130は、カウント値SNを更新する(S46)。また、コントローラ130は、カウント値TNも更新する。次に、コントローラ130は、S46で更新したカウント値SNを用いて、前述したS47からS50の処理を実行する。 Further, the controller 130 reads out the count value SN stored in the EEPROM 134 in response to both the information stored in the RAM 133 in S21 and S22 indicating a high level signal (S31: H→H). Then, the controller 130 counts up the read count value SN by a value corresponding to the amount of ink instructed to be discharged in the previous S22, and stores the count value SN in the EEPROM 134 again. That is, controller 130 updates count value SN (S46). The controller 130 also updates the count value TN. Next, the controller 130 uses the count value SN updated in S46 to execute the processes of S47 to S50 described above.

[作用効果]
上記実施形態によれば、コントローラ130が、排出指示で排出が指示された液体の量に相当するカウント値TN1、TN2及びTN3と、比率情報Gとに基づいて、インク量Vs,Vcを決定することができる。また、コントローラ130が、複数の比率R1、R2及びR3を用いてインク量Vc、Vsを決定するので、インク量を正確に算出することができる。
[Effect]
According to the above embodiment, the controller 130 determines the ink amounts Vs and Vc based on the count values TN1, TN2, and TN3 corresponding to the amount of liquid instructed to be discharged by the discharge instruction, and the ratio information G. be able to. In addition, since the controller 130 determines the ink amounts Vc and Vs using a plurality of ratios R1, R2, and R3, the ink amounts can be calculated accurately.

また、コントローラ130が、液面センサ155から受信したローレベル信号に基づいて現在の総量Vtを所定インク量Vscとするので、カウント値の誤差などを修正し、インク量Vcがゼロになった後のインク量Vsを正確に算出できる。また、コントローラ130は、液面センサ155からローレベル信号を受信した後は、比率情報Gを用いず、カウント値SNをインク量Vsから減じてインク量Vsを更新する。 In addition, the controller 130 sets the current total amount Vt to the predetermined ink amount Vsc based on the low level signal received from the liquid level sensor 155. can be calculated accurately. Further, after receiving the low level signal from the liquid level sensor 155, the controller 130 does not use the ratio information G, but subtracts the count value SN from the ink amount Vs to update the ink amount Vs.

また、算出されたインク量VcがIC基板247に記憶されるので、カートリッジ200が装着ケース150から取り外された後に、当該カートリッジ200が装着された別のプリンタ10において、インク量Vcを読み出すことができる。 Further, since the calculated ink amount Vc is stored in the IC board 247, after the cartridge 200 is removed from the mounting case 150, another printer 10 in which the cartridge 200 is mounted can read out the ink amount Vc. can.

また、コントローラ130が、算出した総量Vt、インク量Vc、及びインク量Vsの少なくともいずれかをディスプレイ17に表示するので、総量Vt、インク量Vc、又はインク量Vsをユーザに知らせることができる。 In addition, the controller 130 displays at least one of the calculated total amount Vt, ink amount Vc, and ink amount Vs on the display 17, so that the user can be notified of the total amount Vt, the ink amount Vc, or the ink amount Vs.

[変形例1](液面高さで比率を選択:請求項5,6)
上記実施形態では、インク量Vc,Vsの決定に比率R1、R2及びR3のいずれを用いるかが、総量Vtと閾値Vhとの大小に基づいて決定された。変形例1では、比率R1、R2及びR3のいずれを用いるかが、タンク160の液室171内の液面の位置に基づいて決定される例を説明する。
[Modification 1] (Ratio selected by liquid level: Claims 5 and 6)
In the above embodiment, which of the ratios R1, R2, and R3 is used to determine the ink amounts Vc and Vs is determined based on the magnitude of the total amount Vt and the threshold value Vh. Modification 1 describes an example in which which of the ratios R1, R2, and R3 is used is determined based on the position of the liquid surface in the liquid chamber 171 of the tank 160. FIG.

変形例1のプリンタ10は、第1液面センサと、第2液面センサとを有する。第1液面センサ及び第2液面センサは、上記実施形態と同様の構成によりタンク160の液室171内の液面を検出するよう、構成されている。第1液面センサは、タンク160の液室171内の液面の位置が位置P1以上であることに応じて、ローレベル信号をコントローラ130へ出力し、液面の位置が位置P1未満であることに応じて、ハイレベル信号をコントローラ130へ出力する。第2液面センサは、タンク160の液室171内の液面の位置が位置P2以上であることに応じて、ローレベル信号をコントローラ130へ出力し、液面の位置が位置P2未満であることに応じて、ハイレベル信号をコントローラ130へ出力する。位置P1は、総量Vtが閾値Vh1と等しい場合の、タンク160の液室171内の液面の位置である。位置P2は、総量Vtが閾値Vh2と等しい場合の、タンク160の液室171内の液面の位置である。 The printer 10 of Modification 1 has a first liquid level sensor and a second liquid level sensor. The first liquid level sensor and the second liquid level sensor are configured to detect the liquid level in the liquid chamber 171 of the tank 160 by the same configuration as in the above embodiment. The first liquid level sensor outputs a low level signal to the controller 130 when the position of the liquid level in the liquid chamber 171 of the tank 160 is equal to or higher than the position P1, and the position of the liquid level is less than the position P1. In response, it outputs a high level signal to the controller 130 . The second liquid level sensor outputs a low level signal to the controller 130 when the position of the liquid level in the liquid chamber 171 of the tank 160 is equal to or higher than the position P2, and the position of the liquid level is less than the position P2. In response, it outputs a high level signal to the controller 130 . A position P1 is the position of the liquid surface in the liquid chamber 171 of the tank 160 when the total amount Vt is equal to the threshold value Vh1. A position P2 is the position of the liquid surface in the liquid chamber 171 of the tank 160 when the total amount Vt is equal to the threshold value Vh2.

本変形例では、コントローラ130は、図8に示されるカウント処理に替えて、図9に示されるカウント処理を実行する。なお、以下で説明する処理以外の処理は、上記実施形態で説明した処理と同じである。図9に示される処理において、実施形態と同じ処理については、同一の参照符号を付して説明を省略する。 In this modification, the controller 130 executes the counting process shown in FIG. 9 instead of the counting process shown in FIG. Processing other than the processing described below is the same as the processing described in the above embodiment. In the processing shown in FIG. 9, the same reference numerals are given to the same processing as in the embodiment, and the description thereof is omitted.

本変形例に係るプリンタ10のコントローラ130は、実施形態と同様に、S31の処理を実行する。コントローラ130は、S21、S22でRAM133に記憶させた情報が共にローレベル信号を示す(すなわち、S22の処理の前後で液面センサ155の信号出力が変化していない)ことに応じて(S31:L→L)、タンク160の液室171内の液面の位置が位置P1以上であるか否かを判定する(S51)。詳しくは、コントローラ130は、第1液面センサから受信した信号が、ローレベル信号であるか否かを判定する。コントローラ130は、第1液面センサから受信した信号がローレベル信号であると判定したことに応じて(S51:Yes)、S16でRAM133に記憶させた比率情報Gが示す比率R1を用いて、S33以降の処理を実行する。コントローラ130は、第1液面センサから受信した信号がハイレベル信号であると判定したことに応じて(S51:No)、タンク160の液室171内の液面の位置が位置P2以上であるか否かを判定する(S52)。詳しくは、コントローラ130は、第2液面センサから受信した信号が、ローレベル信号であるか否かを判定する。コントローラ130は、第2液面センサから受信した信号がローレベル信号であると判定したことに応じて(S52:Yes)、S16でRAM133に記憶させた比率情報Gが示す比率R2を用いて、S36以降の処理を実行する。コントローラ130は、第2液面センサから受信した信号がハイレベル信号であると判定したことに応じて(S52:No)、S16でRAM133に記憶させた比率情報Gが示す比率R3を用いて、S38以降の処理を実行する。第1液面センサは、液面センサの一例である。位置P1は、第1所定位置の一例である。第1液面センサが出力するローレベル信号は、第1信号の一例である。第1液面センサが出力するハイレベル信号は、第2信号の一例である。比率R1は、第4比率の一例である。比率R2は、第5比率の一例である。 The controller 130 of the printer 10 according to this modification executes the process of S31, as in the embodiment. The controller 130 responds that the information stored in the RAM 133 in S21 and S22 both indicate a low level signal (that is, the signal output of the liquid level sensor 155 does not change before and after the process of S22) (S31: L→L), and it is determined whether or not the position of the liquid surface in the liquid chamber 171 of the tank 160 is equal to or higher than the position P1 (S51). Specifically, the controller 130 determines whether the signal received from the first liquid level sensor is a low level signal. When the controller 130 determines that the signal received from the first liquid level sensor is a low level signal (S51: Yes), using the ratio R1 indicated by the ratio information G stored in the RAM 133 in S16, The processing after S33 is executed. When the controller 130 determines that the signal received from the first liquid level sensor is a high level signal (S51: No), the position of the liquid level in the liquid chamber 171 of the tank 160 is equal to or higher than the position P2. (S52). Specifically, the controller 130 determines whether the signal received from the second liquid level sensor is a low level signal. When the controller 130 determines that the signal received from the second liquid level sensor is a low level signal (S52: Yes), using the ratio R2 indicated by the ratio information G stored in the RAM 133 in S16, The processing after S36 is executed. When the controller 130 determines that the signal received from the second liquid level sensor is a high level signal (S52: No), the controller 130 uses the ratio R3 indicated by the ratio information G stored in the RAM 133 in S16 to The processing after S38 is executed. The first liquid level sensor is an example of a liquid level sensor. Position P1 is an example of a first predetermined position. The low level signal output by the first liquid level sensor is an example of the first signal. The high level signal output by the first liquid level sensor is an example of the second signal. Ratio R1 is an example of a fourth ratio. Ratio R2 is an example of a fifth ratio.

以上述べた変形例1では、比率R1、R2及びR3のいずれを用いるかが、第1液面センサ及び第2液面センサが出力する信号に基づいて決定されたが、インク量Vsに基づいて決定される液面高さHsに基づいて決定されてもよい。液面高さHsは、タンク160に貯留されているインクの液面と基準位置との上下方向の高さを示す。基準位置は、所定位置Pと同じ位置であってもよいし、他の位置でもよい。液面高さHsは、例えば、EEPROM134に記憶された、インク量Vsと液面高さHsとの関係を示す関数やテーブルに基づいて決定される。 In Modification 1 described above, which of the ratios R1, R2, and R3 is used is determined based on the signals output by the first liquid level sensor and the second liquid level sensor. It may be determined based on the determined liquid level height Hs. The liquid level height Hs indicates the vertical height between the liquid level of the ink stored in the tank 160 and the reference position. The reference position may be the same position as the predetermined position P, or may be another position. The liquid level height Hs is determined, for example, based on a function or table stored in the EEPROM 134 and showing the relationship between the ink amount Vs and the liquid level height Hs.

[変形例2](ドットカウントで比率を選択:請求項7)
上記実施形態では、インク量Vc,Vsの決定に比率R1、R2及びR3のいずれを用いるかが、総量Vtと閾値Vhとの大小に基づいて決定された。変形例2では、比率R1、R2及びR3のいずれを用いるかが、カウント値TN1、TN2と閾値との大小に基づいて決定される例を説明する。
[Modification 2] (select ratio by dot count: claim 7)
In the above embodiment, which of the ratios R1, R2, and R3 is used to determine the ink amounts Vc and Vs is determined based on the magnitude of the total amount Vt and the threshold value Vh. Modification 2 describes an example in which which of the ratios R1, R2, and R3 is used is determined based on the magnitude of the count values TN1, TN2 and the threshold.

本変形例では、コントローラ130は、図8に示されるカウント処理に替えて、図10に示されるカウント処理を実行する。なお、以下で説明する処理以外の処理は、上記実施形態で説明した処理と同じである。図9に示される処理において、実施形態と同じ処理については、同一の参照符号を付して説明を省略する。 In this modification, the controller 130 executes the counting process shown in FIG. 10 instead of the counting process shown in FIG. Processing other than the processing described below is the same as the processing described in the above embodiment. In the processing shown in FIG. 9, the same reference numerals are given to the same processing as in the embodiment, and the description thereof is omitted.

本変形例に係るプリンタ10のコントローラ130は、実施形態と同様に、S31の処理を実行する。コントローラ130は、S21、S22でRAM133に記憶させた情報が共にローレベル信号を示す(すなわち、S22の処理の前後で液面センサ155の信号出力が変化していない)ことに応じて(S31:L→L)、カウント値TN1が閾値Th1以下であるかを判定する(S61)。閾値Th1は、総量Vtが閾値Vh1と等しい場合に対応する、カウント値TN1の値である。閾値Th1、Th2(後述)は、画像記録処理のS19で算出されたカートリッジ交換後の総量Vtに基づいて、カートリッジ200が装着される都度計算されて、EEPROM134に記憶される。コントローラ130は、カウント値TN1が閾値Th1以下であると判定したことに応じて(S61:Yes)、S16でRAM133に記憶させた比率情報Gが示す比率R1を用いて、S33以降の処理を実行する。コントローラ130は、カウント値TN1が閾値Th1より大きいと判定したことに応じて(S61:No)、カウント値TN1とカウント値TN2との和が閾値Th2以下であるか否かを判定する(S62)。閾値Th2は、総量Vtが閾値Vh2と等しい場合に対応する、カウント値TN1とカウント値TN2との和の値である。コントローラ130は、カウント値TN1とカウント値TN2との和が閾値Th2以下であると判定したことに応じて(S62:Yes)、S16でRAM133に記憶させた比率情報Gが示す比率R2を用いて、S36以降の処理を実行する。コントローラ130は、カウント値TN1とカウント値TN2との和が閾値Th2より大きいと判定したことに応じて(S62:No)、S16でRAM133に記憶させた比率情報Gが示す比率R3を用いて、S38以降の処理を実行する。カウント値TN1は、第2排出指示量の一例である。閾値Th1は、第3閾値の一例である。比率R1は、第6比率の一例である。比率R2は、第7比率の一例である。 The controller 130 of the printer 10 according to this modification executes the process of S31, as in the embodiment. The controller 130 responds that the information stored in the RAM 133 in S21 and S22 both indicate a low level signal (that is, the signal output of the liquid level sensor 155 does not change before and after the process of S22) (S31: L→L), and it is determined whether the count value TN1 is equal to or less than the threshold value Th1 (S61). The threshold Th1 is the value of the count value TN1 corresponding to the case where the total amount Vt is equal to the threshold Vh1. Thresholds Th1 and Th2 (described later) are calculated each time the cartridge 200 is mounted based on the total amount Vt after cartridge replacement calculated in S19 of the image recording process, and stored in the EEPROM 134 . When the controller 130 determines that the count value TN1 is equal to or smaller than the threshold value Th1 (S61: Yes), the controller 130 uses the ratio R1 indicated by the ratio information G stored in the RAM 133 in S16 to execute the processing from S33 onwards. do. In response to determining that the count value TN1 is greater than the threshold value Th1 (S61: No), the controller 130 determines whether the sum of the count value TN1 and the count value TN2 is equal to or less than the threshold value Th2 (S62). . The threshold Th2 is the sum of the count value TN1 and the count value TN2 corresponding to the case where the total amount Vt is equal to the threshold Vh2. When the controller 130 determines that the sum of the count value TN1 and the count value TN2 is equal to or less than the threshold value Th2 (S62: Yes), the controller 130 uses the ratio R2 indicated by the ratio information G stored in the RAM 133 in S16. , S36 and subsequent steps are executed. When the controller 130 determines that the sum of the count value TN1 and the count value TN2 is greater than the threshold value Th2 (S62: No), the controller 130 uses the ratio R3 indicated by the ratio information G stored in the RAM 133 in S16 to The processing after S38 is executed. The count value TN1 is an example of the second discharge instruction amount. The threshold Th1 is an example of a third threshold. Ratio R1 is an example of a sixth ratio. Ratio R2 is an example of a seventh ratio.

[変形例3](減少量の算出を積算値でなく単ページ(又は1パス)で行う例)
上記実施形態では、カウント値TN1、TN2及びTN3に基づいてインク量Vc,Vsが決定される例が説明された。カウント値TN1、TN2及びTN3は、装着センサ154から出力される信号がハイレベル信号からローレベル信号に変化した後に、ヘッド21に排出を指示したインク排出量Dhに相当する値であり、すなわち、現在までのインク排出量を積算した値であって、複数ページの画像記録についてのインク排出量の積算値である。インク量Vc,Vsの決定は、比率情報Gと、単一ページの画像記録についてのインク排出量Dnに基づいて行われてもよい。なお、インク排出量Dnは、ヘッド21に対面するシートの一部の領域の画像記録(例えば、1パス、あるいは複数のパス)についてのインク排出量であってもよい。インク排出量Dnは、第1排出指示量の一例である。
[Modification 3] (Example of calculating the amount of decrease for a single page (or one pass) instead of the integrated value)
In the above embodiment, an example was explained in which the ink amounts Vc and Vs are determined based on the count values TN1, TN2 and TN3. The count values TN1, TN2, and TN3 are values corresponding to the ink discharge amount Dh instructed to discharge to the head 21 after the signal output from the mounting sensor 154 changes from a high level signal to a low level signal. It is a value obtained by accumulating the amount of discharged ink up to the present, and is the integrated value of the amount of discharged ink for image printing of a plurality of pages. The ink amounts Vc and Vs may be determined based on the ratio information G and the ink discharge amount Dn for single page image printing. Note that the ink discharge amount Dn may be the ink discharge amount for image recording (for example, one pass or multiple passes) on a partial area of the sheet facing the head 21 . The ink discharge amount Dn is an example of the first discharge instruction amount.

例えば、コントローラ130は、現在の総量Vtが閾値Vh1以上であると判定したことに応じて(S32:Yes)、比率R1と、直前のS22で排出を指示したインク量Dnとに基づいて、減少量ΔVc、ΔVsと、インク量Vc、Vsとを決定する。まず、コントローラ130は、インク量Dnに対応する減少量ΔVc(ΔVc=g×Dn)、及び減少量ΔVs(ΔVs=(1-g)×Dn)を算出する。次に、コントローラ130は、EEPROM134から読み出したインク量Vcから減少量ΔVcを減算して、現在のインク量Vcを算出する(Vc=Vc-ΔVc)。コントローラ130は、EEPROM134から読み出したインク量Vsから減少量ΔVsを減算して、現在のインク量Vsを算出する(Vc=Vc1-ΔVc)。コントローラ130は、算出したインク量Vc、Vsで、EEPROM134に記憶されているインク量Vc、Vsを更新する(S41)。 For example, when the controller 130 determines that the current total amount Vt is equal to or greater than the threshold value Vh1 (S32: Yes), the controller 130 reduces the Quantities ΔVc, ΔVs and ink amounts Vc, Vs are determined. First, the controller 130 calculates a decrease amount ΔVc (ΔVc=g×Dn) and a decrease amount ΔVs (ΔVs=(1−g)×Dn) corresponding to the ink amount Dn. Next, the controller 130 subtracts the decrease amount ΔVc from the ink amount Vc read from the EEPROM 134 to calculate the current ink amount Vc (Vc=Vc−ΔVc). The controller 130 subtracts the decrease amount ΔVs from the ink amount Vs read from the EEPROM 134 to calculate the current ink amount Vs (Vc=Vc1−ΔVc). The controller 130 updates the ink amounts Vc and Vs stored in the EEPROM 134 with the calculated ink amounts Vc and Vs (S41).

また、コントローラ130は、現在の総量Vtが閾値Vh1未満であると判定し(S32:No)、現在の総量Vtが閾値Vh2以上であると判定したことに応じて(S35:Yes)、比率R2と、直前のS22で排出を指示したインク量Dnとに基づいて、減少量ΔVc、ΔVsと、インク量Vc、Vsとを決定する。まず、コントローラ130は、インク量Dnに対応する減少量ΔVc(ΔVc=h×Dn)、及び減少量ΔVs(ΔVs=(1-h)×Dn)を算出する。次に、コントローラ130は、EEPROM134から読み出したインク量Vcから減少量ΔVcを減算して、現在のインク量Vcを算出する(Vc=Vc-ΔVc)。コントローラ130は、EEPROM134から読み出したインク量Vsから減少量ΔVsを減算して、現在のインク量Vsを算出する(Vc=Vc1-ΔVc)。コントローラ130は、算出したインク量Vc、Vsで、EEPROM134に記憶されているインク量Vc、Vsを更新する(S41)。 Further, the controller 130 determines that the current total amount Vt is less than the threshold Vh1 (S32: No), and in response to determining that the current total amount Vt is equal to or greater than the threshold Vh2 (S35: Yes), the ratio R2 , and the ink amount Dn instructed to be discharged in S22 immediately before, the decrease amounts ΔVc and ΔVs and the ink amounts Vc and Vs are determined. First, the controller 130 calculates a decrease amount ΔVc (ΔVc=h×Dn) and a decrease amount ΔVs (ΔVs=(1−h)×Dn) corresponding to the ink amount Dn. Next, the controller 130 subtracts the decrease amount ΔVc from the ink amount Vc read from the EEPROM 134 to calculate the current ink amount Vc (Vc=Vc−ΔVc). The controller 130 subtracts the decrease amount ΔVs from the ink amount Vs read from the EEPROM 134 to calculate the current ink amount Vs (Vc=Vc1−ΔVc). The controller 130 updates the ink amounts Vc and Vs stored in the EEPROM 134 with the calculated ink amounts Vc and Vs (S41).

また、コントローラ130は、現在の総量Vtが閾値Vh1未満であると判定し(S32:No)、現在の総量Vtが閾値Vh2未満であると判定したことに応じて(S35:No)、比率R3と、直前のS22で排出を指示したインク量Dnとに基づいて、減少量ΔVc、ΔVsと、インク量Vc、Vsとを決定する。まず、コントローラ130は、インク量Dnに対応する減少量ΔVc(ΔVc=k×Dn)、及び減少量ΔVs(ΔVs=(1-k)×Dn)を算出する。次に、コントローラ130は、EEPROM134から読み出したインク量Vcから減少量ΔVcを減算して、現在のインク量Vcを算出する(Vc=Vc-ΔVc)。コントローラ130は、EEPROM134から読み出したインク量Vsから減少量ΔVsを減算して、現在のインク量Vsを算出する(Vc=Vc1-ΔVc)。コントローラ130は、算出したインク量Vc、Vsで、EEPROM134に記憶されているインク量Vc、Vsを更新する(S41)。 Further, the controller 130 determines that the current total amount Vt is less than the threshold Vh1 (S32: No), and in response to determining that the current total amount Vt is less than the threshold Vh2 (S35: No), the ratio R3 , and the ink amount Dn instructed to be discharged in S22 immediately before, the decrease amounts ΔVc and ΔVs and the ink amounts Vc and Vs are determined. First, the controller 130 calculates a decrease amount ΔVc (ΔVc=k×Dn) and a decrease amount ΔVs (ΔVs=(1−k)×Dn) corresponding to the ink amount Dn. Next, the controller 130 subtracts the decrease amount ΔVc from the ink amount Vc read from the EEPROM 134 to calculate the current ink amount Vc (Vc=Vc−ΔVc). The controller 130 subtracts the decrease amount ΔVs from the ink amount Vs read from the EEPROM 134 to calculate the current ink amount Vs (Vc=Vc1−ΔVc). The controller 130 updates the ink amounts Vc and Vs stored in the EEPROM 134 with the calculated ink amounts Vc and Vs (S41).

[変形例4]
上記実施形態では、比率情報Gが2つの比率R1、R2を含み、総量Vtと1つの閾値Vhとの大小に基づいて、比率R1又はR2が用いられる例が説明された。比率及び閾値の数はこれに限られない。例えば、比率情報Gが比率R1、R2に加えて、比率R1及びR2と異なる比率R3を含んでもよい。コントローラ130が、総量Vtが閾値Vh1(閾値Vh1<閾値Vh)以下であると判定したことに基づいて、比率R3に基づいてインク量Vc,Vsを決定してもよい。閾値Vh1は、第2閾値の一例である。比率R3は、第3比率の一例である。
[Modification 4]
In the above embodiment, the ratio information G includes two ratios R1 and R2, and the ratio R1 or R2 is used based on the magnitude of the total amount Vt and one threshold value Vh. The number of ratios and thresholds is not limited to this. For example, the ratio information G may include a ratio R3 different from the ratios R1 and R2 in addition to the ratios R1 and R2. The ink amounts Vc and Vs may be determined based on the ratio R3 based on the controller 130 determining that the total amount Vt is equal to or less than the threshold Vh1 (threshold Vh1<threshold Vh). Threshold Vh1 is an example of a second threshold. Ratio R3 is an example of a third ratio.

[その他の変形例]
上記実施形態では、比率情報Gが3つの比率R1、R2及びR3を含み、総量Vtと2つの閾値Vh1、Vh2との大小に基づいて、用いられる比率が決まる例が説明された。比率及び閾値の数はこれに限られない。比率情報Gが2つの比率を含み、1つの閾値が用いられてもよい。比率情報Gが4つ以上の比率を含み、3つ以上の閾値が用いられてもよい。
[Other Modifications]
In the above embodiment, the ratio information G includes three ratios R1, R2 and R3, and the ratio to be used is determined based on the magnitude of the total amount Vt and the two threshold values Vh1 and Vh2. The number of ratios and thresholds is not limited to this. The ratio information G may contain two ratios and one threshold may be used. Three or more thresholds may be used when the ratio information G includes four or more ratios.

上記実施形態では、比率R1、R2及びR3が、例えばΔVc:ΔVs=g:(1-g)の形態で表される例が説明されたが、比率情報Gが含む比率R1、R2及びR3の形態はこれに限られない。比率R1、R2及びR3がΔVc:ΔVs=m:nの形態で表されてもよい。また、比率R1、R2が、ヘッド21を通じたインクの排出量に対するインクの減少量ΔVc、ΔVsのうち一方の比率を表す情報であってもよい。例えば、比率R1が、減少量ΔVcの比率を示すs(sは定数であり、0≦j≦1)で表されてもよい。この場合、減少量ΔVcは、ΔVc=s×TNで算出され、減少量ΔVsは、ΔVs=TN-ΔVcで算出される。 In the above embodiment, an example in which the ratios R1, R2 and R3 are represented, for example, in the form of ΔVc:ΔVs=g:(1−g) has been described. The form is not limited to this. The ratios R1, R2 and R3 may be expressed in the form ΔVc:ΔVs=m:n. Also, the ratios R1 and R2 may be information representing the ratio of one of the ink reduction amounts ΔVc and ΔVs to the amount of ink discharged through the head 21 . For example, the ratio R1 may be represented by s (s is a constant and 0≦j≦1) that indicates the ratio of the amount of decrease ΔVc. In this case, the amount of decrease ΔVc is calculated by ΔVc=s×TN, and the amount of decrease ΔVs is calculated by ΔVs=TN−ΔVc.

上記実施形態では、コントローラ130は、装着センサ154からローレベル信号を受信し、その後に装着センサ154からハイレベル信号を受信し、さらにその後に装着センサ154からローレベル信号を受信したことに応じて(S14:Yes)、S15に示す処理を実行した。コントローラ130がS15に示す処理を実行するのは、装着ケース150内にカートリッジ200が存在しない装着ケース150内に、カートリッジ200が装着されたことを契機としている。つまり、コントローラ130は、装着ケース150内にカートリッジ200が装着されたと判定したことに応じて、S15に示す処理を実行すればよい。なお、コントローラ130が、装着センサ154からローレベル信号を受信し、その後に装着センサ154からハイレベル信号を受信し、さらにその後に装着センサ154からローレベル信号を受信したことは、コントローラ130が、装着ケース150内にカートリッジが装着されたと判定したことの一例である。コントローラ130が、装着ケース150内にカートリッジ200が装着されたと判定する、他の例を以下に説明する。 In the above embodiment, the controller 130 responds to receiving a low signal from the mounting sensor 154, followed by a high signal from the mounting sensor 154, and then a low signal from the mounting sensor 154. (S14: Yes), the process shown in S15 was executed. The reason why the controller 130 executes the processing shown in S15 is that the cartridge 200 is mounted in the mounting case 150 where the cartridge 200 is not present. In other words, the controller 130 may execute the processing shown in S15 in response to determining that the cartridge 200 is mounted in the mounting case 150. FIG. It should be noted that controller 130 receives a low level signal from mounting sensor 154, then receives a high level signal from mounting sensor 154, and then receives a low level signal from mounting sensor 154. This is an example of determining that the cartridge is mounted in the mounting case 150 . Another example in which the controller 130 determines that the cartridge 200 is mounted in the mounting case 150 will be described below.

例えば、コントローラ130が、カバーセンサ88からハイレベル信号を受信した後にローレベル信号を受信する。そして、コントローラ130は、IC基板247のメモリから識別情報を読み出して、EEPROM134に記憶された交換前のカートリッジ200の識別情報と比較する。IC基板247のメモリから読み出した識別情報と、EEPROM134に記憶された識別情報とが異なると判定したことに応じて、コントローラ130は、S15に示す処理を実行してもよい。つまり、「コントローラ130は、IC基板247のメモリから識別情報を読み出して、EEPROM134に記憶された交換前のカートリッジ200の識別情報と比較する。その結果、IC基板247のメモリから読み出した識別情報と、EEPROM134に記憶された識別情報とが異なると判定した」ことが、コントローラ130が、装着ケース150内にカートリッジ200が装着されたと判定することの一例である。 For example, controller 130 receives a low level signal after receiving a high level signal from cover sensor 88 . The controller 130 then reads the identification information from the memory of the IC board 247 and compares it with the identification information of the cartridge 200 before replacement stored in the EEPROM 134 . In response to determining that the identification information read from the memory of the IC board 247 and the identification information stored in the EEPROM 134 are different, the controller 130 may execute the process shown in S15. That is, "the controller 130 reads the identification information from the memory of the IC board 247 and compares it with the identification information of the cartridge 200 before replacement stored in the EEPROM 134. As a result, the identification information read from the memory of the IC board 247 and the , and the identification information stored in the EEPROM 134 ” is an example of the controller 130 determining that the cartridge 200 is mounted in the mounting case 150 .

また、例えば、コントローラ130が、カバーセンサ88からハイレベル信号を受信した後にローレベル信号を受信する。そして、コントローラ130は、ディスプレイ17を通じてユーザに、装着ケース150内に新たなカートリッジ200の装着をしたか、を示す確認画面を表示させる。コントローラ130は、ディスプレイ17に確認画面を表示させている一方で、操作パネル22を通じて、当該確認画面に対応する、入力を受信する。受信した当該入力が、装着ケース150内に新たなカートリッジ200の装着した、ことに対応していることに応じて、コントローラ130は、S15に示す処理を実行する。つまり、「コントローラ130が、カバーセンサ88からハイレベル信号を受信した後にローレベル信号を受信する。そして、コントローラ130は、ディスプレイ17を通じてユーザに、装着ケース150内に新たなカートリッジ200の装着をしたか、を示す確認画面を表示させる。コントローラ130は、ディスプレイ17に確認画面を表示させている一方で、操作パネル22を通じて、当該確認画面に対応する、入力を受信する。受信した当該入力が、装着ケース150内に新たなカートリッジ200の装着した、ことに対応している」ことが、コントローラ130が、装着ケース150内にカートリッジ200が装着されたと判定することの一例である。 Also, for example, the controller 130 receives a low level signal from the cover sensor 88 after receiving a high level signal. Then, the controller 130 causes the user to display a confirmation screen through the display 17 as to whether or not a new cartridge 200 has been installed in the installation case 150 . While displaying the confirmation screen on the display 17 , the controller 130 receives an input corresponding to the confirmation screen through the operation panel 22 . If the received input corresponds to the installation of a new cartridge 200 in the installation case 150, the controller 130 executes the processing shown in S15. That is, "the controller 130 receives a low-level signal after receiving a high-level signal from the cover sensor 88. Then, the controller 130 informs the user through the display 17 that a new cartridge 200 has been mounted in the mounting case 150. While displaying the confirmation screen on the display 17, the controller 130 receives an input corresponding to the confirmation screen through the operation panel 22. The received input is "corresponding to the installation of a new cartridge 200 in the installation case 150" is an example of the controller 130 determining that the cartridge 200 has been installed in the installation case 150. FIG.

上記実施形態では、供給管230に設けられたインク供給口234と、ニードル181の開口183とが開放されて、供給管230のインクバルブ室213と、ニードル181の内部空間とが連通される例が説明された。インク供給口234は、カートリッジ200の後壁202に設けられてもよい。例えば、インク供給口234として、後壁202を厚み方向に貫通する貫通孔が後壁202に形成されてもよい。インク供給口234の内部空間は、第1流路の一例である。この変形例では、カートリッジ200が装着ケース150に装着される過程において、ニードル181がインク供給口234を通じてカートリッジ200の液室210に進入し、ニードル181の一端(開口183)が、カートリッジ200の液室210の内部に位置する状態となる。これにより、カートリッジ200の液室210と、ニードル181の内部空間とが連通される。すなわち、装着ケース150にカートリッジ200が装着された状態において、ニードル181の内部空間は、カートリッジ200の液室210とタンク160の液室171とを連通させる流路を形成する。 In the above embodiment, the ink supply port 234 provided in the supply pipe 230 and the opening 183 of the needle 181 are opened, and the ink valve chamber 213 of the supply pipe 230 and the internal space of the needle 181 communicate with each other. was explained. The ink supply port 234 may be provided in the rear wall 202 of the cartridge 200 . For example, as the ink supply port 234 , a through hole penetrating the rear wall 202 in the thickness direction may be formed in the rear wall 202 . The internal space of the ink supply port 234 is an example of a first flow path. In this modification, in the process of mounting the cartridge 200 to the mounting case 150 , the needle 181 enters the liquid chamber 210 of the cartridge 200 through the ink supply port 234 , and one end (opening 183 ) of the needle 181 reaches the liquid of the cartridge 200 . It will be in a state of being located inside the chamber 210 . Thereby, the liquid chamber 210 of the cartridge 200 and the internal space of the needle 181 are communicated with each other. That is, in the state where the cartridge 200 is mounted in the mounting case 150 , the internal space of the needle 181 forms a channel that connects the liquid chamber 210 of the cartridge 200 and the liquid chamber 171 of the tank 160 .

また、開口183が、タンク160の前壁162に設けられてもよい。例えば、開口183として、前壁162を厚み方向に貫通する貫通孔が前壁162に形成されてもよい。開口183の内部空間は、第1流路の一例である。この変形例では、カートリッジ200が装着ケース150に装着される過程において、供給管230が開口183を通じてタンク160の液室171に進入し、供給管230の他端(インク供給口234)が、タンク160の液室171の内部に位置する状態となる。これにより、カートリッジ200の液室210と、ニードル181の内部空間とが連通される。すなわち、装着ケース150にカートリッジ200が装着された状態において、インクバルブ室213は、カートリッジ200の液室210とタンク160の液室171とを連通させる流路を形成する。 An opening 183 may also be provided in the front wall 162 of the tank 160 . For example, as the opening 183 , a through hole penetrating the front wall 162 in the thickness direction may be formed in the front wall 162 . The internal space of the opening 183 is an example of a first channel. In this modification, in the process of mounting the cartridge 200 to the mounting case 150, the supply pipe 230 enters the liquid chamber 171 of the tank 160 through the opening 183, and the other end of the supply pipe 230 (ink supply port 234) is connected to the tank. 160 is positioned inside the liquid chamber 171 . Thereby, the liquid chamber 210 of the cartridge 200 and the internal space of the needle 181 are communicated with each other. That is, in a state where the cartridge 200 is mounted in the mounting case 150 , the ink valve chamber 213 forms a channel that allows the liquid chamber 210 of the cartridge 200 and the liquid chamber 171 of the tank 160 to communicate with each other.

また、上記実施形態では、コントローラ130が、液面センサ155が出力する信号に基づいて、アクチュエータ190の被検出部194が検出位置に位置しているか否かを検出する構成であるが、液室171におけるインクの液面が検出できれば、液面センサ155の構成は特に限定されない。例えば、液室171の後壁164にインクが接触しているか否かによって異なる反射率を有するプリズムを利用して、液室171におけるインクの液面を光学的に検出するためのセンサであってもよいし、液室171のインクの液面が電極によって検出される構成であってもよい。また、液面センサ155は、タンク160の液室171の液面によって異なる信号を出力するものに代えて、カートリッジ200の液室210の液面によって異なる信号を出力するものであってもよい。なお、変形例1に係る第1液面センサ及び第2液面センサについても同様である。 Further, in the above embodiment, the controller 130 is configured to detect whether or not the detected portion 194 of the actuator 190 is positioned at the detection position based on the signal output from the liquid level sensor 155. The configuration of the liquid level sensor 155 is not particularly limited as long as the liquid level of the ink at 171 can be detected. For example, a sensor for optically detecting the liquid surface of the ink in the liquid chamber 171 by using a prism having a different reflectance depending on whether the ink is in contact with the rear wall 164 of the liquid chamber 171. Alternatively, the liquid level of the ink in the liquid chamber 171 may be detected by an electrode. Further, the liquid level sensor 155 may output different signals depending on the liquid level of the liquid chamber 210 of the cartridge 200 instead of outputting different signals depending on the liquid level of the liquid chamber 171 of the tank 160 . The same applies to the first liquid level sensor and the second liquid level sensor according to Modification 1.

また、前述された実施形態では、プリンタ10は、装着センサ154及び液面センサ155を備えているが、装着センサ154及び液面センサ155は任意の構成である。例えば、液面センサ155を備えないプリンタ10であれば、前述されたカウント処理においてS31が実行されず、S32からS41が実行されて、総量Vt、インク量Vc,Vsが算出される。そして、カウント値TNが所定の閾値に到達すれば、C_EmptyフラグやS_Emptyフラグが更新される。 Further, in the above-described embodiment, the printer 10 includes the mounting sensor 154 and the liquid level sensor 155, but the mounting sensor 154 and the liquid level sensor 155 are optional. For example, if the printer 10 does not have the liquid level sensor 155, S31 is not executed in the counting process described above, and S32 to S41 are executed to calculate the total amount Vt and the ink amounts Vc and Vs. Then, when the count value TN reaches a predetermined threshold value, the C_Empty flag and the S_Empty flag are updated.

また、上記実施形態では、4つのS_Emptyフラグの少なくとも1つに“ON”が設定されているときに(S11:ON)、4つのタンク160全てについてヘッド21を通じたインクの排出を禁止する例が説明された。S_Emptyフラグに“ON”が設定されているタンク160についてのみ、ヘッド21を通じたインクの排出が禁止されてもよい。また、マゼンタ、シアン、及びイエローに係るS_Emptyフラグの少なくとも一つに“ON”が設定され、ブラックに係るS_Emptyフラグに“OFF”が設定されている場合に、マゼンタ、シアン、及びイエローのインクの排出が禁止され、ブラックのインクの排出が許可されてもよい。 Further, in the above-described embodiment, when at least one of the four S_Empty flags is set to "ON" (S11: ON), there is an example in which discharge of ink through the head 21 is prohibited for all four tanks 160. explained. Ejection of ink through the head 21 may be prohibited only for the tanks 160 for which the S_Empty flag is set to "ON". Further, when at least one of the S_Empty flags for magenta, cyan, and yellow is set to "ON" and the S_Empty flag for black is set to "OFF," Ejection may be prohibited and ejection of black ink may be permitted.

また、前述された実施形態では、コントローラ130は、S_Emptyフラグが“ON”であれば、ヘッド21を通じたインクの排出を禁止するが、ヘッド21を通じたインクの排出は必ずしも禁止される必要はなく、コントローラ130は、S_Emptyフラグが“ON”であれば、S_Empty報知画面をディスプレイ17に表示させるのみであってもよい。 In the above-described embodiment, the controller 130 prohibits ink ejection through the head 21 if the S_Empty flag is "ON", but ink ejection through the head 21 need not necessarily be prohibited. , the controller 130 may only cause the display 17 to display the S_Empty notification screen if the S_Empty flag is "ON".

また、IC基板247は、接点152と接触して導通されるが、これにかえて、NFC(near field communication)やRFID(radio frequency identification)のような電波を用いて非接触でデータを読み書きする情報媒体とインタフェースとが採用されてもよい。 Also, the IC substrate 247 is in contact with the contact 152 and is electrically connected, but instead of this, data is read and written without contact using radio waves such as NFC (near field communication) and RFID (radio frequency identification). An information medium and an interface may be employed.

また、前述された実施形態では、インクが液体の一例として説明されているが、液体は、例えば、画像記録時にインクに先立って用紙などに吐出される前処理液でもよいし、ヘッド21を洗浄するための水でもよい。 Further, in the above-described embodiments, the ink is described as an example of the liquid, but the liquid may be, for example, a pretreatment liquid that is ejected onto paper prior to the ink during image recording, or may be a liquid that cleans the head 21 . It can also be water for

10・・・プリンタ(液体排出装置)
17・・・ディスプレイ(表示機)
21・・・ヘッド
32・・・チューブ(第4流路)
130・・・コントローラ
132・・・ROM(メモリ)
133・・・RAM(メモリ)
134・・・EEPROM(メモリ)
150・・・装着ケース
152・・・接点(インタフェース)
154・・・装着センサ
155・・・液面センサ
160・・・タンク
171・・・液室(第2液室)
175・・・大気連通室(第5流路)
181・・・ニードル(第3流路)
200・・・カートリッジ
210・・・液室(第1液室)
213・・・インクバルブ室(第1流路)
214・・・大気バルブ室(第2流路)
10 Printer (liquid ejection device)
17 Display (display device)
21... Head 32... Tube (fourth channel)
130... Controller 132... ROM (memory)
133 RAM (memory)
134 EEPROM (memory)
150: Mounting case 152: Contact (interface)
154 Mounted sensor 155 Liquid level sensor 160 Tank 171 Liquid chamber (second liquid chamber)
175: Atmospheric communication chamber (fifth flow path)
181 Needle (third flow path)
200 Cartridge 210 Liquid chamber (first liquid chamber)
213... Ink valve chamber (first channel)
214: atmosphere valve chamber (second flow path)

Claims (12)

液体が貯留された第1液室、一端が上記第1液室と連通され且つ他端が外部と連通される第1流路、及び一端が上記第1液室と連通され且つ他端が外部と連通される第2流路を有するカートリッジが装着される装着ケースと、
第2液室を有するタンクであって、
一端が外部と連通され且つ他端が上記第2液室と連通される第3流路と、
上記第3流路よりも下方に位置する一端が上記第2液室と連通される第4流路と、
一端が上記第2液室に連通され且つ他端が外部と連通される第5流路と、
を有する上記タンクと、
上記第4流路の他端と連通されるヘッドと、
メモリと、
コントローラと、を備え、
上記第1流路及び上記第3流路の少なくとも一方は、上記カートリッジが上記装着ケースに装着されたときに、上記第1液室及び上記第2液室を連通し、
上記コントローラは、
上記ヘッドを通じて液体を排出させる排出指示を受け付け、
上記ヘッドを通じた液体の排出量に対す上記第1液室に貯留されている液体の減少量ΔVcの比率、又は上記ヘッドを通じた液体の排出量に対する上記第2液室に貯留されている液体の減少量ΔVsの比率うち少なくとも一方を示す比率情報を上記メモリから読み出し、
受け付けた上記排出指示で排出が指示された液体の量に相当する第1排出指示量と上記比率情報とに基づいて、上記第1排出指示量に対応する上記減少量ΔVcと上記減少量ΔVsとを決定する液体排出装置。
a first liquid chamber in which a liquid is stored, a first channel having one end communicating with the first liquid chamber and the other end communicating with the outside, and one end communicating with the first liquid chamber and the other end communicating with the outside a mounting case in which a cartridge having a second flow path communicating with is mounted;
A tank having a second liquid chamber,
a third channel having one end communicating with the outside and the other end communicating with the second liquid chamber;
a fourth channel having one end located below the third channel and communicating with the second liquid chamber;
a fifth channel having one end communicating with the second liquid chamber and the other end communicating with the outside;
and
a head communicating with the other end of the fourth channel;
memory;
a controller;
at least one of the first flow path and the third flow path communicates the first liquid chamber and the second liquid chamber when the cartridge is mounted in the mounting case;
The above controller is
Receiving a discharge instruction to discharge the liquid through the head,
The ratio of the decrease amount ΔVc of the liquid stored in the first liquid chamber to the amount of liquid discharged through the head, or the liquid stored in the second liquid chamber to the amount of liquid discharged through the head reading from the memory the ratio information indicating at least one of the ratios of the amount of decrease ΔVs of
Based on the first discharge instruction amount corresponding to the amount of liquid instructed to be discharged by the received discharge instruction and the ratio information, the decrease amount ΔVc and the decrease amount ΔVs corresponding to the first discharge instruction amount are calculated. Determine the liquid discharge device.
インタフェースを更に備えており、
上記装着ケースは、第1種類の上記カートリッジ及び第2種類の上記カートリッジが装着可能であり、
上記コントローラは、
上記装着ケースに装着された上記カートリッジが上記第1種類又は上記第2種類であることを示す種類情報を上記装着ケースに装着された上記カートリッジのカートリッジメモリから上記インタフェースを通じて取得し、
上記第1種類であることを示す種類情報に対応する第1比率情報、及び上記第2種類であることを示す種類情報に対応する第2比率情報の2種類の上記比率情報のうち、取得した上記種類情報に対応するいずれか1つの上記比率情報を上記メモリから読み出し、
読み出した上記比率情報と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsを決定する
請求項1に記載の液体排出装置。
It also has an interface,
The mounting case is mountable with the first type of cartridge and the second type of cartridge,
The above controller is
acquiring type information indicating whether the cartridge mounted in the mounting case is of the first type or the second type from the cartridge memory of the cartridge mounted in the mounting case through the interface;
Of the two types of ratio information, the first ratio information corresponding to the type information indicating the first type and the second ratio information corresponding to the type information indicating the second type, the acquired reading any one of the ratio information corresponding to the type information from the memory;
2. The liquid discharge device according to claim 1, wherein the reduction amount .DELTA.Vc and the reduction amount .DELTA.Vs are determined based on the read ratio information and the first discharge instruction amount.
上記コントローラは、
上記第1液室に貯留されている液体の液体量Vcと上記第2液室に貯留されている液体の液体量Vsとの和である総液体量Vtが第1閾値より大きいか否かを判定し、
上記総液体量Vtが上記第1閾値以上と判定したことに基づいて、上記比率情報である第1比率を上記メモリから読み出して、読み出した上記第1比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、
上記総液体量Vtが上記第1閾値未満であると判定したことに基づいて、上記比率情報であり且つ上記第1比率とは異なる第2比率を上記メモリから読み出して、読み出した上記第2比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定する
請求項1又は2に記載の液体排出装置。
The above controller is
It is determined whether or not a total liquid amount Vt, which is the sum of the liquid amount Vc of the liquid stored in the first liquid chamber and the liquid amount Vs of the liquid stored in the second liquid chamber, is greater than a first threshold value. judge,
Based on the determination that the total liquid amount Vt is equal to or greater than the first threshold value, the first ratio, which is the ratio information, is read from the memory, and from the read first ratio and the first discharge instruction amount, determining the amount of decrease ΔVc and the amount of decrease ΔVs;
Based on the determination that the total liquid amount Vt is less than the first threshold value, a second ratio that is the ratio information and is different from the first ratio is read from the memory, and the read second ratio is 3. The liquid discharging apparatus according to claim 1, wherein the amount of decrease ΔVc and the amount of decrease ΔVs are determined based on the amount of discharge and the first instruction amount of discharge.
上記コントローラは、
上記液体量Vcと上記液体量Vsとの和である総液体量Vtが上記第1閾値より小さい第2閾値以上であるか否かを判定し、
上記総液体量Vtが上記第2閾値以上であると判定したことに基づいて、上記第2比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、
上記総液体量Vtが上記第2閾値未満であると判定したことに基づいて、上記比率情報であり且つ上記第2比率とは異なる第3比率を上記メモリから読み出して、読み出した上記第3比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定する
請求項3に記載の液体排出装置。
The above controller is
determining whether or not a total liquid amount Vt, which is the sum of the liquid amount Vc and the liquid amount Vs, is equal to or greater than a second threshold smaller than the first threshold;
determining the decrease amount ΔVc and the decrease amount ΔVs from the second ratio and the first discharge instruction amount based on the determination that the total liquid amount Vt is equal to or greater than the second threshold;
Based on the determination that the total liquid amount Vt is less than the second threshold, a third ratio that is the ratio information and is different from the second ratio is read from the memory, and the read third ratio is 4. The liquid discharge device according to claim 3, wherein the decrease amount .DELTA.Vc and the decrease amount .DELTA.Vs are determined from the first discharge instruction amount and the first discharge instruction amount.
上記コントローラは、
上記第2液室内の液面の位置が第1所定位置以上であるか判定し、
上記第2液室内の液面の位置が上記第1所定位置以上であると判定したことに基づいて、上記比率情報である第4比率を上記メモリから読み出し、
読み出した上記第4比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定し、
上記第2液室内の液面の位置が上記第1所定位置未満であると判定したことに基づいて、上記比率情報であり且つ上記第4比率とは異なる第5比率を上記メモリから読み出し、
読み出した上記第5比率と上記第1排出指示量とに基づいて、上記減少量ΔVc及び上記減少量ΔVsとを決定する
請求項1から4のいずれかに記載の液体排出装置。
The above controller is
determining whether the position of the liquid surface in the second liquid chamber is equal to or greater than a first predetermined position;
reading a fourth ratio, which is the ratio information, from the memory based on determination that the position of the liquid surface in the second liquid chamber is equal to or greater than the first predetermined position;
determining the decrease amount ΔVc and the decrease amount ΔVs based on the read fourth ratio and the first discharge instruction amount;
reading a fifth ratio, which is the ratio information and is different from the fourth ratio, from the memory based on determining that the position of the liquid surface in the second liquid chamber is below the first predetermined position;
5. The liquid discharge device according to claim 1, wherein the decrease amount .DELTA.Vc and the decrease amount .DELTA.Vs are determined based on the read fifth ratio and the first discharge instruction amount.
上記コントローラは、
上記第2液室内の液面の位置が上記第1所定位置以上である場合に液面センサが出力する第1信号を、上記液面センサから受信したことに基づいて、上記第2液室内の液面の位置が第1所定位置以上であると判定し、
上記第2液室内の液面の位置が上記第1所定位置未満である場合に上記液面センサが出力する第2信号を、上記液面センサから受信したことに基づいて、上記第2液室内の液面の位置が第1所定位置未満であると判定する
請求項5に記載の液体排出装置。
The above controller is
When the position of the liquid level in the second liquid chamber is equal to or higher than the first predetermined position, a first signal output by the liquid level sensor is received from the liquid level sensor. determining that the position of the liquid surface is equal to or higher than the first predetermined position;
In the second liquid chamber, based on receiving from the liquid level sensor a second signal output by the liquid level sensor when the position of the liquid level in the second liquid chamber is less than the first predetermined position. 6. The liquid discharge device according to claim 5, wherein it is determined that the position of the liquid surface of is below the first predetermined position.
上記コントローラは、
上記カートリッジが装着されたか否かを判定し、
上記カートリッジが装着されたと判定したことに基づいて、第2排出指示量を決定し、上記第2排出指示量は、上記カートリッジが装着されたと判定した後に受け付けた上記排出指示で排出が指示された液体の量の積算値に相当し、
上記第2排出指示量が第3閾値より小さいか否かを判定し、
上記第2排出指示量が上記第3閾値より小さいと判定したことに基づいて、上記比率情報である第6比率を上記メモリから読み出し、
読み出した上記第6比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定し、
上記第排出指示量が上記第3閾値以上であると判定したことに基づいて、上記比率情報であり且つ上記第6比率とは異なる第7比率を上記メモリから読み出し、
読み出した上記第7比率と上記第1排出指示量とから、上記減少量ΔVc及び上記減少量ΔVsとを決定する
請求項1から6のいずれかに記載の液体排出装置。
The above controller is
determining whether or not the cartridge is mounted,
A second ejection instruction amount is determined based on the determination that the cartridge is attached, and the second ejection instruction amount is determined by the ejection instruction received after it is determined that the cartridge is attached. Equivalent to the integrated value of the amount of liquid,
determining whether the second discharge instruction amount is smaller than a third threshold;
reading a sixth ratio, which is the ratio information, from the memory based on determination that the second discharge instruction amount is smaller than the third threshold;
determining the decrease amount ΔVc and the decrease amount ΔVs from the read sixth ratio and the first discharge instruction amount;
reading a seventh ratio, which is the ratio information and is different from the sixth ratio, from the memory based on determination that the second discharge instruction amount is equal to or greater than the third threshold;
7. The liquid discharge device according to claim 1, wherein the decrease amount ΔVc and the decrease amount ΔVs are determined from the readout of the seventh ratio and the first discharge instruction amount.
上記コントローラは、
決定した上記減少量ΔVcと上記減少量ΔVsとから、上記第1液室に貯留されている液体量Vcと上記第2液室に貯留されている液体量Vsとを決定する
請求項1から7のいずれかに記載の液体排出装置。
The above controller is
8. A liquid amount Vc stored in the first liquid chamber and a liquid amount Vs stored in the second liquid chamber are determined from the determined decrease amount ΔVc and decrease amount ΔVs. The liquid ejection device according to any one of 1.
上記コントローラは、
決定した液体量Vsを上記メモリに記憶させ、
上記第2液室内の液面の位置が第2所定位置未満であるか否かを判定し、上記第2所定位置は、上記カートリッジが上記装着ケースに装着された状態で、上記第1流路及び上記第3流路によって構成される流路を通過して水平方向に延びる仮想線以下の位置であり、
上記液体量Vsを読み出し、
上記第2液室内の液面の位置が第2所定位置未満であると判定した後に受け付けた上記排出指示で排出が指示された液体の量に相当する第3排出指示量を、上記メモリから読み出した上記液体量Vsから減じて上記液体量Vsを決定する
請求項8に記載の液体排出装置。
The above controller is
storing the determined liquid amount Vs in the memory;
It is determined whether or not the position of the liquid surface in the second liquid chamber is below a second predetermined position, and the second predetermined position is set in the first flow path while the cartridge is mounted in the mounting case. and a position below a virtual line extending in the horizontal direction through the flow path configured by the third flow path,
reading the liquid amount Vs,
reading from the memory a third discharge instruction amount corresponding to the amount of liquid instructed to be discharged in the discharge instruction received after determining that the position of the liquid surface in the second liquid chamber is below the second predetermined position; 9. The liquid discharge device according to claim 8, wherein the liquid amount Vs is determined by subtracting from the liquid amount Vs.
インタフェースを更に備えており、
上記コントローラは、決定した上記液体量Vcを、上記カートリッジが有するカートリッジメモリに、上記インタフェースを通じて記憶させる
請求項8又は9に記載の液体排出装置。
It also has an interface,
10. The liquid ejection device according to claim 8, wherein the controller stores the determined liquid amount Vc in a cartridge memory of the cartridge through the interface.
表示機を更に備えており、
上記コントローラは、決定した上記液体量Vc、上記液体量Vs、及び上記液体量Vcと上記液体量Vsとの和である総液体量Vtのうち少なくともいずれか一つを上記表示機に表示させる請求項8から10のいずれかに記載の液体排出装置。
It also has a display,
The controller causes the indicator to display at least one of the determined liquid amount Vc, the liquid amount Vs, and the total liquid amount Vt, which is the sum of the liquid amount Vc and the liquid amount Vs. Item 11. A liquid ejection device according to any one of Items 8 to 10.
液体が貯留された第1液室、一端が上記第1液室と連通され且つ他端が外部と連通される第1流路、及び一端が上記第1液室と連通され且つ他端が外部と連通される第2流路を有するカートリッジと、
上記カートリッジが装着される装着ケースと、
第2液室を有するタンクであって、
一端が外部と連通され且つ他端が上記第2液室と連通される第3流路と、
上記第3流路よりも下方に位置する一端が上記第2液室と連通される第4流路と、
一端が上記第2液室に連通され且つ他端が外部と連通される第5流路と、
を有する上記タンクと、
上記第4流路の他端と連通されるヘッドと、
メモリと、
コントローラと、を備え、
上記第1流路及び上記第3流路の少なくとも一方は、上記カートリッジが上記装着ケースに装着されたときに、上記第1液室及び上記第2液室を連通し、
上記コントローラは、
上記ヘッドを通じて液体を排出させる排出指示を受け付け、
上記ヘッドを通じた液体の排出量に対す上記第1液室に貯留されている液体の減少量ΔVcの比率、又は上記ヘッドを通じた液体の排出量に対する上記第2液室に貯留されている液体の減少量ΔVsの比率うち少なくとも一方を示す比率情報を上記メモリから読み出し、
受け付けた上記排出指示で排出が指示された液体の量に相当する第1排出指示量と上記比率情報とに基づいて、上記第1排出指示量に対応する上記減少量ΔVcと上記減少量ΔVsとを決定する液体排出装置。
a first liquid chamber in which a liquid is stored, a first channel having one end communicating with the first liquid chamber and the other end communicating with the outside, and one end communicating with the first liquid chamber and the other end communicating with the outside a cartridge having a second flow path in communication with
a mounting case in which the cartridge is mounted;
A tank having a second liquid chamber,
a third channel having one end communicating with the outside and the other end communicating with the second liquid chamber;
a fourth channel having one end located below the third channel and communicating with the second liquid chamber;
a fifth channel having one end communicating with the second liquid chamber and the other end communicating with the outside;
and
a head communicating with the other end of the fourth channel;
memory;
a controller;
at least one of the first flow path and the third flow path communicates the first liquid chamber and the second liquid chamber when the cartridge is mounted in the mounting case;
The above controller is
Receiving a discharge instruction to discharge the liquid through the head,
The ratio of the decrease amount ΔVc of the liquid stored in the first liquid chamber to the amount of liquid discharged through the head, or the liquid stored in the second liquid chamber to the amount of liquid discharged through the head reading from the memory the ratio information indicating at least one of the ratios of the amount of decrease ΔVs of
Based on the first discharge instruction amount corresponding to the amount of liquid instructed to be discharged by the received discharge instruction and the ratio information, the decrease amount ΔVc and the decrease amount ΔVs corresponding to the first discharge instruction amount are calculated. Determine the liquid discharge device.
JP2018068711A 2018-03-30 2018-03-30 Liquid ejector Active JP7131030B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018068711A JP7131030B2 (en) 2018-03-30 2018-03-30 Liquid ejector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018068711A JP7131030B2 (en) 2018-03-30 2018-03-30 Liquid ejector

Publications (2)

Publication Number Publication Date
JP2019177614A JP2019177614A (en) 2019-10-17
JP7131030B2 true JP7131030B2 (en) 2022-09-06

Family

ID=68277536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018068711A Active JP7131030B2 (en) 2018-03-30 2018-03-30 Liquid ejector

Country Status (1)

Country Link
JP (1) JP7131030B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2021060085A1 (en) 2019-09-27 2021-04-01

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002273906A (en) 2001-01-09 2002-09-25 Seiko Epson Corp Ink jet recording device and correction method for ink consumption arithmetic function for the device
JP2008213162A (en) 2007-02-28 2008-09-18 Brother Ind Ltd Liquid droplet ejector

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6155664A (en) * 1998-06-19 2000-12-05 Lexmark International, Inc. Off-carrier inkjet print supply with memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002273906A (en) 2001-01-09 2002-09-25 Seiko Epson Corp Ink jet recording device and correction method for ink consumption arithmetic function for the device
JP2008213162A (en) 2007-02-28 2008-09-18 Brother Ind Ltd Liquid droplet ejector

Also Published As

Publication number Publication date
JP2019177614A (en) 2019-10-17

Similar Documents

Publication Publication Date Title
JP6950245B2 (en) Liquid drainer
US11203205B2 (en) Liquid discharge device
JP6859809B2 (en) Liquid drainer
JP7131029B2 (en) Liquid ejector
JP6848616B2 (en) Liquid drainer and cartridge
JP7135383B2 (en) Liquid discharge device and system
JP6939030B2 (en) Liquid drainer
US10717290B2 (en) Liquid discharge device
JP6950440B2 (en) Liquid drainer
JP7131030B2 (en) Liquid ejector
JP6874728B2 (en) Liquid drainer
JP6972881B2 (en) Liquid drainer
JP7119451B2 (en) Liquid discharge device and system
JP7077573B2 (en) Liquid drainer
JP7196509B2 (en) Liquid ejector
JP7180099B2 (en) Liquid ejector
JP7119450B2 (en) Liquid discharge device and system
JP7131031B2 (en) Liquid ejector
JP6879251B2 (en) Liquid drainer
JP7073853B2 (en) Liquid drainer
US10960677B2 (en) Liquid discharge device
JP7063129B2 (en) Liquid drainer
JP7167467B2 (en) Liquid ejection devices, cartridges and systems
JP7087579B2 (en) Liquid drainer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210330

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220203

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220329

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220519

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: 20220726

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220808

R150 Certificate of patent or registration of utility model

Ref document number: 7131030

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150