JP2021030486A - Printing device - Google Patents

Printing device Download PDF

Info

Publication number
JP2021030486A
JP2021030486A JP2019150125A JP2019150125A JP2021030486A JP 2021030486 A JP2021030486 A JP 2021030486A JP 2019150125 A JP2019150125 A JP 2019150125A JP 2019150125 A JP2019150125 A JP 2019150125A JP 2021030486 A JP2021030486 A JP 2021030486A
Authority
JP
Japan
Prior art keywords
ink
light
amount
processing unit
pixel data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2019150125A
Other languages
Japanese (ja)
Inventor
貴広 祢津
Takahiro Nezu
貴広 祢津
拓真 臼田
Takuma Usuda
拓真 臼田
遠藤 宏典
Hironori Endo
宏典 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2019150125A priority Critical patent/JP2021030486A/en
Publication of JP2021030486A publication Critical patent/JP2021030486A/en
Pending legal-status Critical Current

Links

Abstract

To provide a printing device that can execute notification processing using a light source that is used for ink amount detection processing.SOLUTION: A printing device includes: an ink tank 310; a print head 107 for performing printing using ink IK stored in the ink tank; a light source 323 for emitting light into the ink tank; a sensor 190 for outputting pixel data by detecting incident light from an ink tank side in the period where the light source 323 emits light; a processing part 120 for determining an ink amount depending on output from the sensor 190; and a light guide body 112 for guiding light from the light source 323 to the outside of a housing.SELECTED DRAWING: Figure 40

Description

本発明は、印刷装置等に関する。 The present invention relates to a printing apparatus or the like.

従来、インクを用いて印刷を行う印刷装置において、インク収容容器内のインクの有無を判定する手法が知られている。例えば特許文献1には、発光器から照射されインク瓶を通過した光を、受光器を用いて受光することによって、インクの液面を検出するインク供給装置が開示されている。 Conventionally, in a printing apparatus that prints using ink, a method of determining the presence or absence of ink in an ink container has been known. For example, Patent Document 1 discloses an ink supply device that detects the liquid level of ink by receiving light emitted from a light emitter and passing through an ink bottle by using a light receiver.

特開2001−105627号公報Japanese Unexamined Patent Publication No. 2001-105627

印刷装置の、なお一層の改良が求められていた。 Further improvement of the printing apparatus was required.

本開示の一態様は、インクタンクと、前記インクタンク内のインクを用いて印刷を行う印刷ヘッドと、前記インクタンク内に光を照射する光源と、前記光源が発光する期間において前記インクタンク側から入射される光を検出するセンサーと、前記センサーの出力によってインク量を決定する処理部と、前記光源からの光を筐体の外部に導く導光体と、を含む印刷装置に関係する。 One aspect of the present disclosure is an ink tank, a print head that prints using the ink in the ink tank, a light source that irradiates the ink tank with light, and the ink tank side during a period in which the light source emits light. The present invention relates to a printing apparatus including a sensor that detects light incident from the printer, a processing unit that determines the amount of ink based on the output of the sensor, and a light guide that guides the light from the light source to the outside of the housing.

電子機器の構成を示す斜視図。The perspective view which shows the structure of an electronic device. 電子機器におけるインクタンクの配置を説明する図。The figure explaining the arrangement of the ink tank in an electronic device. インクタンクユニットの蓋部を開けた状態における電子機器の斜視図。A perspective view of an electronic device with the lid of the ink tank unit opened. インクタンクの構成を示す斜視図。The perspective view which shows the structure of the ink tank. プリンターユニット及びインクタンクユニットの構成例。Configuration example of printer unit and ink tank unit. センサーユニットの分解図。Exploded view of the sensor unit. 基板、光電変換デバイス、光源の位置関係を示す図。The figure which shows the positional relationship of a substrate, a photoelectric conversion device, and a light source. センサーユニットの断面図。Sectional view of the sensor unit. インクタンク、光源、光電変換デバイスの位置関係を説明する図。The figure explaining the positional relationship of an ink tank, a light source, and a photoelectric conversion device. 光源と導光体の位置関係を説明する図。The figure explaining the positional relationship between a light source and a light guide body. 光源と導光体の位置関係を説明する図。The figure explaining the positional relationship between a light source and a light guide body. 光源と導光体の位置関係を説明する図。The figure explaining the positional relationship between a light source and a light guide body. センサーユニットと処理部の構成例。Configuration example of sensor unit and processing unit. 光電変換デバイスの構成例。Configuration example of photoelectric conversion device. レンズのピッチ、画素ピッチ、及び光量ムラを説明する図。The figure explaining the pitch of a lens, the pixel pitch, and the unevenness of light amount. 光電変換デバイスの他の構成例。Other configuration examples of photoelectric conversion devices. センサーの出力である画素データの例。An example of pixel data that is the output of the sensor. インク量検出処理を説明するフローチャート。A flowchart illustrating an ink amount detection process. インクタンクと光電変換デバイスの位置関係を説明する図。The figure explaining the positional relationship between an ink tank and a photoelectric conversion device. 画素を間引くことによって低解像度画素データを取得する処理の説明図。An explanatory diagram of a process of acquiring low-resolution pixel data by thinning out pixels. 読取り領域において高解像度画素データを取得する処理の説明図。Explanatory drawing of the process of acquiring high-resolution pixel data in a reading area. 2段階のインク量検出処理を説明するフローチャート。The flowchart explaining the two-step ink amount detection process. 第1領域〜第3領域の設定例。Setting example of the first area to the third area. 第1読取り領域と第2読取り領域の設定例。Setting example of the first read area and the second read area. 第1読取り領域と第2読取り領域の設定例。Setting example of the first read area and the second read area. 第1読取り領域と第2読取り領域の設定例。Setting example of the first read area and the second read area. 光源の分光発光特性とインクの分光反射特性の例。Examples of the spectral emission characteristics of the light source and the spectral reflection characteristics of the ink. 顔料ブラックインクの画素データの例。Example of pixel data of pigment black ink. 顔料シアンインクの画素データの例。Example of pixel data of pigment cyan ink. 顔料マゼンタインクの画素データの例。An example of pixel data for pigment magenta ink. 顔料イエローインクの画素データの例。Example of pixel data of pigment yellow ink. 顔料ホワイトインクの画素データの例。Example of pixel data of pigment white ink. 顔料クリアインクの画素データの例。Example of pixel data of pigment clear ink. 予測インク色に基づくインク種別の判定処理を説明するフローチャート。The flowchart explaining the ink type determination process based on the predicted ink color. インク種別の判定処理を説明するフローチャート。The flowchart explaining the ink type determination process. 光量特性の組み合わせパターンの例。An example of a combination pattern of light intensity characteristics. インク種別の判定処理を説明するフローチャート。The flowchart explaining the ink type determination process. センサーユニットと、筐体外部へ光を導く導光体の位置関係の説明図。An explanatory diagram of the positional relationship between the sensor unit and the light guide body that guides light to the outside of the housing. センサーユニットと、筐体外部へ光を導く導光体の位置関係の説明図。An explanatory diagram of the positional relationship between the sensor unit and the light guide body that guides light to the outside of the housing. オンキャリッジタイプの印刷装置におけるセンサーユニットと導光体の位置関係の説明図。The explanatory view of the positional relationship between the sensor unit and the light guide body in the on-carriage type printing apparatus. 複数の光源の制御手法を説明する図。The figure explaining the control method of a plurality of light sources. スキャナーユニット使用時の電子機器の斜視図。A perspective view of an electronic device when using a scanner unit.

以下、本実施形態について説明する。なお、以下に説明する本実施形態は、特許請求の範囲に記載された内容を不当に限定するものではない。また本実施形態で説明される構成の全てが必須構成要件であるとは限らない。以下で説明する複数の実施形態は、互いに組み合わせてもよいし、入れ替えてもよい。 Hereinafter, this embodiment will be described. The present embodiment described below does not unreasonably limit the contents described in the claims. Moreover, not all of the configurations described in the present embodiment are essential configuration requirements. The plurality of embodiments described below may be combined with each other or interchanged.

1.電子機器の構成例
1.1 電子機器の基本構成
図1は、本実施形態に係る電子機器10の斜視図である。電子機器10は、プリンターユニット100と、スキャナーユニット200とを含む複合機(MFP:Multifunction Peripheral)である。また電子機器10は、印刷機能及びスキャン機能に加え、ファクシミリ機能等の他の機能を有してもよい。あるいは、印刷機能のみを有していてもよい。また電子機器10は、インクタンク310を収容するインクタンクユニット300を含む。プリンターユニット100は、インクタンク310から供給されるインクを用いて印刷を実行するインクジェットプリンターである。以下、電子機器10との記載は、適宜、印刷装置と読み替えることが可能である。
1. 1. Configuration Example of Electronic Device 1.1 Basic Configuration of Electronic Device FIG. 1 is a perspective view of the electronic device 10 according to the present embodiment. The electronic device 10 is a multifunction device (MFP: Multifunction Peripheral) including a printer unit 100 and a scanner unit 200. Further, the electronic device 10 may have other functions such as a facsimile function in addition to the printing function and the scanning function. Alternatively, it may have only a printing function. The electronic device 10 also includes an ink tank unit 300 that houses the ink tank 310. The printer unit 100 is an inkjet printer that executes printing using the ink supplied from the ink tank 310. Hereinafter, the description of the electronic device 10 can be appropriately read as a printing device.

図1には、Y軸と、Y軸と直交するX軸と、X軸及びY軸と直交するZ軸と、を示している。XYZ軸のそれぞれにおいて、矢印の向きが正方向を示しており、矢印の向きとは逆向きが負方向を示している。以下、X軸の正方向を+X方向、負方向を−X方向と表記する。Y軸及びZ軸についても同様である。電子機器10は、その使用状態において、X軸とY軸とによって規定される水平な平面に配置され、+Y方向が電子機器10の正面である。Z軸は、水平な平面に直交する軸であり、−Z方向が鉛直下方向となる。 FIG. 1 shows a Y-axis, an X-axis orthogonal to the Y-axis, and a Z-axis orthogonal to the X-axis and the Y-axis. In each of the XYZ axes, the direction of the arrow indicates a positive direction, and the direction opposite to the direction of the arrow indicates a negative direction. Hereinafter, the positive direction of the X-axis is referred to as + X direction, and the negative direction is referred to as −X direction. The same applies to the Y-axis and the Z-axis. The electronic device 10 is arranged on a horizontal plane defined by the X-axis and the Y-axis in its used state, and the + Y direction is the front surface of the electronic device 10. The Z axis is an axis orthogonal to a horizontal plane, and the −Z direction is the vertical downward direction.

電子機器10は、ユーザーインターフェース部としての操作パネル101を有する。操作パネル101には、例えば、電子機器10の電源のON/OFF操作、印刷機能を用いた印刷に関する操作、スキャン機能を用いた原稿の読み取りに関する操作を行うためのボタン類が配置される。また操作パネル101には、電子機器10の動作状態及びメッセージなどを表示するための表示部150が配置される。さらに表示部150は、後述する方法で検知されたインク量を表示する。また操作パネル101には、インクタンク310にユーザーがインクを補充してリセット処理を実行するためのリセットボタンが配置されてもよい。 The electronic device 10 has an operation panel 101 as a user interface unit. On the operation panel 101, for example, buttons for turning on / off the power of the electronic device 10, an operation related to printing using the printing function, and an operation related to reading a document using the scanning function are arranged. Further, on the operation panel 101, a display unit 150 for displaying an operating state of the electronic device 10 and a message and the like is arranged. Further, the display unit 150 displays the amount of ink detected by the method described later. Further, the operation panel 101 may be provided with a reset button for the user to replenish the ink tank 310 with ink and execute the reset process.

1.2 プリンターユニット及びスキャナーユニット
プリンターユニット100は、インクを噴射することによって、印刷用紙などの印刷媒体Pに印刷を行う。プリンターユニット100は、当該プリンターユニット100の外殻であるケース部102を有する。ケース部102の正面側には、前面カバー104が設けられている。ここでの正面とは、操作パネル101が設けられる面を表し、電子機器10のうちの+Y方向の面を表す。操作パネル101及び前面カバー104は、ケース部102に対してX軸周りに回動可能である。電子機器10は、不図示の用紙カセットを含み、当該用紙カセットは前面カバー104に対して−Y方向に設けられる。用紙カセットは、前面カバー104と連結されており、ケース部102に対して着脱可能に装着される。用紙カセットの+Z方向には、不図示の排紙トレイが設けられており、当該排紙トレイは+Y方向及び−Y方向に伸縮可能である。排紙トレイは、図1の状態において操作パネル101に対して−Y方向に設けられ、操作パネル101が回動することによって外部に露呈する。
1.2 Printer Unit and Scanner Unit The printer unit 100 prints on a printing medium P such as printing paper by injecting ink. The printer unit 100 has a case portion 102 which is an outer shell of the printer unit 100. A front cover 104 is provided on the front side of the case portion 102. The front surface here represents a surface on which the operation panel 101 is provided, and represents a surface of the electronic device 10 in the + Y direction. The operation panel 101 and the front cover 104 are rotatable about the X-axis with respect to the case portion 102. The electronic device 10 includes a paper cassette (not shown), and the paper cassette is provided in the −Y direction with respect to the front cover 104. The paper cassette is connected to the front cover 104 and is detachably attached to the case portion 102. An output tray (not shown) is provided in the + Z direction of the paper cassette, and the output tray can be expanded and contracted in the + Y direction and the −Y direction. The output tray is provided in the −Y direction with respect to the operation panel 101 in the state of FIG. 1, and is exposed to the outside by rotating the operation panel 101.

X軸が印刷ヘッド107の主走査軸HDであり、Y軸がプリンターユニット100の副走査軸VDである。用紙カセットには、複数の印刷媒体Pが積層状態で載置される。用紙カセットに載置された印刷媒体Pは、副走査軸VDに沿ってケース部102の内部に一枚ずつ供給され、プリンターユニット100で印刷された後、副走査軸VDに沿って排紙されて、排紙トレイ上に載置される。 The X-axis is the main scanning axis HD of the print head 107, and the Y-axis is the sub-scanning axis VD of the printer unit 100. A plurality of print media P are placed on the paper cassette in a laminated state. The print media P placed on the paper cassette are supplied one by one to the inside of the case portion 102 along the sub-scanning axis VD, printed by the printer unit 100, and then discharged along the sub-scanning axis VD. It is placed on the output tray.

スキャナーユニット200は、プリンターユニット100の上に載置されている。スキャナーユニット200は、ケース部201を有している。ケース部201が、スキャナーユニット200の外殻を構成する。スキャナーユニット200は、フラットベッドタイプであり、ガラスなどの透明板状部材によって形成された原稿台と、イメージセンサーとを有している。スキャナーユニット200は、用紙などの媒体に記録された画像などを、イメージセンサーを介して画像データとして読み取る。また電子機器10は、不図示のオートドキュメントフィーダーを備えてもよい。スキャナーユニット200は、オートドキュメントフィーダーによって、積層された複数の原稿を一枚ずつ反転させながら順次給送し、イメージセンサーを用いて読み取る。 The scanner unit 200 is mounted on the printer unit 100. The scanner unit 200 has a case portion 201. The case portion 201 constitutes the outer shell of the scanner unit 200. The scanner unit 200 is a flatbed type and has a platen formed of a transparent plate-like member such as glass and an image sensor. The scanner unit 200 reads an image or the like recorded on a medium such as paper as image data via an image sensor. Further, the electronic device 10 may include an auto document feeder (not shown). The scanner unit 200 sequentially feeds a plurality of stacked documents while inverting them one by one by an auto document feeder, and reads them using an image sensor.

1.3 インクタンクユニットとインクタンク
インクタンクユニット300は、プリンターユニット100に含まれる印刷ヘッド107にインクIKを供給する機能を有する。インクタンクユニット300は、ケース部301を含み、当該ケース部301は蓋部302を有する。ケース部301内には複数のインクタンク310が収容される。
1.3 Ink tank unit and ink tank The ink tank unit 300 has a function of supplying ink IK to the print head 107 included in the printer unit 100. The ink tank unit 300 includes a case portion 301, and the case portion 301 has a lid portion 302. A plurality of ink tanks 310 are housed in the case portion 301.

図2は、インクタンク310の収容状態を示す図である。図2において実線で記載された部分が、インクタンク310を表す。複数のインクタンク310には、種類が異なる複数のインクIKが個別に収容されている。すなわち、複数のインクタンク310には、インクタンク310毎に異なる種類のインクIKが収容されている。 FIG. 2 is a diagram showing an accommodation state of the ink tank 310. The portion shown by the solid line in FIG. 2 represents the ink tank 310. A plurality of ink IKs of different types are individually housed in the plurality of ink tanks 310. That is, the plurality of ink tanks 310 contain different types of ink IK for each ink tank 310.

図2の例においては、インクタンクユニット300は、5つのインクタンク310a,310b,310c,310d,310eを収容する。また本実施形態では、インクの種類として、2種類のブラックインクと、イエロー、マゼンタ、及びシアンのカラーインクとの5種類が採用されている。2種類のブラックインクとは、顔料インクと染料インクである。インクタンク310aには、顔料のブラックインクであるインクIKaが収容される。インクタンク310b,310c,310dには、イエロー、マゼンタ、シアンの各カラーインクIKb,IKc,IKdが収容される。インクタンク310eには、染料のブラックインクであるインクIKeが収容される。 In the example of FIG. 2, the ink tank unit 300 accommodates five ink tanks 310a, 310b, 310c, 310d, 310e. Further, in the present embodiment, five types of ink, two types of black ink and five types of yellow, magenta, and cyan color inks are adopted. The two types of black ink are pigment ink and dye ink. Ink IKa, which is a black pigment ink, is housed in the ink tank 310a. The ink tanks 310b, 310c, and 310d contain yellow, magenta, and cyan color inks IKb, IKc, and IKd. Ink IKe, which is a black dye ink, is housed in the ink tank 310e.

インクタンク310a,310b,310c,310d,310eは、この順序で+X方向に沿って並ぶように配置され、ケース部301内に固定されている。なお、以下では、5つのインクタンク310a,310b,310c,310d,310e及び5種類のインクIKa,IKb,IKc,IKd,IKeを区別しない場合は、単にインクタンク310及びインクIKと表記する。 The ink tanks 310a, 310b, 310c, 310d, and 310e are arranged so as to be arranged along the + X direction in this order, and are fixed in the case portion 301. In the following, when the five ink tanks 310a, 310b, 310c, 310d, 310e and the five types of inks IKa, IKb, IKc, IKd, and IKe are not distinguished, they are simply referred to as ink tanks 310 and ink IK.

本実施形態では、5つのインクタンク310のそれぞれについて、電子機器10の外部からインクタンク310内にインクIKを注入することが可能な構成になっている。具体的には、電子機器10のユーザーが、別の容器に収容されたインクIKをインクタンク310に注入して補充する。 In the present embodiment, each of the five ink tanks 310 has a configuration in which ink IK can be injected into the ink tank 310 from the outside of the electronic device 10. Specifically, the user of the electronic device 10 injects ink IK contained in another container into the ink tank 310 to replenish the ink.

本実施形態では、インクタンク310aの容量はインクタンク310b,310c,310d,310eの容量よりも大きくなっている。インクタンク310b,310c,310d,310eの容量は互いに同じである。プリンターユニット100においては、顔料のブラックインクIKaが、カラーインクIKb,IKc,IKd及び染料のブラックインクIKeと比べて、より多く消費されることを想定している。そして、顔料のブラックインクIKaが収容されたインクタンク310aは、X軸において、電子機器10の中央部に近い位置に配置されている。このようにすれば、例えばケース部301がインクタンク310の側面をユーザーに視認させるための窓部を有する場合に、使用頻度の高いインクの残量を確認しやすくなる。ただし5つのインクタンク310a,310b,310c,310d,310eの配置順は、特に限定されない。また、顔料のブラックインクIKaではなく、他のインクIKb,IKc,IKd,IKeのいずれかがより多く消費される場合は、そのインクIKを容量が大きいインクタンク310aに収容してもよい。 In the present embodiment, the capacity of the ink tank 310a is larger than the capacity of the ink tanks 310b, 310c, 310d, 310e. The capacities of the ink tanks 310b, 310c, 310d, and 310e are the same. In the printer unit 100, it is assumed that the pigment black ink IKa is consumed more than the color inks IKb, IKc, IKd and the dye black ink IKe. The ink tank 310a containing the pigment black ink IKa is arranged at a position close to the central portion of the electronic device 10 on the X-axis. In this way, for example, when the case portion 301 has a window portion for allowing the user to visually recognize the side surface of the ink tank 310, it becomes easy to check the remaining amount of frequently used ink. However, the arrangement order of the five ink tanks 310a, 310b, 310c, 310d, and 310e is not particularly limited. Further, when any of the other inks IKb, IKc, IKd, and IKe is consumed more than the black pigment ink IKa, the ink IK may be stored in the ink tank 310a having a large capacity.

図3は、インクタンクユニット300の蓋部302を開いた状態における電子機器10の斜視図である。蓋部302は、ヒンジ部303を介して、ケース部301に対して回動可能である。蓋部302を開くと、5つのインクタンク310が露呈する。より具体的には、蓋部302を開くことによって、各インクタンク310に対応する5つのキャップが露呈し、当該キャップを開くことによって、インクタンク310の+Z方向の一部が露呈する。インクタンク310の+Z方向の一部とは、当該インクタンク310が有するインクの注入口311を含む領域である。ユーザーは、インクタンク310にインクIKを注入する際に、蓋部302を回動させて上方に開くことによって、インクタンク310にアクセスする。 FIG. 3 is a perspective view of the electronic device 10 in a state where the lid 302 of the ink tank unit 300 is opened. The lid portion 302 is rotatable with respect to the case portion 301 via the hinge portion 303. When the lid 302 is opened, the five ink tanks 310 are exposed. More specifically, opening the lid 302 exposes five caps corresponding to each ink tank 310, and opening the cap exposes a part of the ink tank 310 in the + Z direction. A part of the ink tank 310 in the + Z direction is an area including the ink injection port 311 of the ink tank 310. When injecting ink IK into the ink tank 310, the user accesses the ink tank 310 by rotating the lid 302 and opening it upward.

図4は、インクタンク310の構成を示す図である。なお、図4におけるX,Y,Zの各軸は、電子機器10が正常な姿勢で使用されており、且つ、インクタンク310がケース部301に適切に固定された状態における軸を表す。具体的には、X軸Y軸は水平方向に沿った軸であり、Z軸は鉛直方向に沿った軸である。XYZの各軸については、特に説明がない限り、以下の図面においても同様である。インクタンク310は、±X方向が短辺方向となり、±Y方向が長手方向となる立体である。以下、インクタンク310の面のうち、+Z方向の面を上面、−Z方向の面を底面、±X方向及び±Y方向の面を側面と表記する。インクタンク310は、例えば、ナイロンやポリプロピレンなどの合成樹脂で形成されている。 FIG. 4 is a diagram showing the configuration of the ink tank 310. The axes X, Y, and Z in FIG. 4 represent axes in a state where the electronic device 10 is used in a normal posture and the ink tank 310 is appropriately fixed to the case portion 301. Specifically, the X-axis and the Y-axis are axes along the horizontal direction, and the Z-axis is an axis along the vertical direction. Unless otherwise specified, the same applies to each axis of XYZ in the following drawings. The ink tank 310 is a three-dimensional object in which the ± X direction is the short side direction and the ± Y direction is the longitudinal direction. Hereinafter, among the surfaces of the ink tank 310, the surface in the + Z direction is referred to as the upper surface, the surface in the −Z direction is referred to as the bottom surface, and the surfaces in the ± X direction and the ± Y direction are referred to as side surfaces. The ink tank 310 is made of, for example, a synthetic resin such as nylon or polypropylene.

なお上述したようにインクタンクユニット300が複数のインクタンク310を含む場合、当該複数のインクタンク310は、それぞれが別体で構成されていてもよいし、一体で構成されていてもよい。インクタンク310を一体で構成する場合、インクタンク310を一体で成形してもよいし、別体で成形された複数のインクタンク310を一体に束ねたり連結したりしてもよい。 When the ink tank unit 300 includes a plurality of ink tanks 310 as described above, the plurality of ink tanks 310 may be formed separately or integrally. When the ink tanks 310 are integrally formed, the ink tanks 310 may be integrally molded, or a plurality of separately molded ink tanks 310 may be integrally bundled or connected.

インクタンク310は、ユーザーによってインクIKが注入される注入口311と、インクIKを印刷ヘッド107に向けて排出する排出口312とを含む。本実施形態では、インクタンク310の前方である+Y方向側の部分の上面は、後方である−Y方向側の部分の上面よりも高くなっている。インクタンク310の前方側の部分の上面には、外部からインクIKを注入するための注入口311が設けられている。図3を用いて上述したように、蓋部302及びキャップを開けることによって、注入口311が露呈する。この注入口311からユーザーがインクIKを注入することにより、インクタンク310に各色のインクIKを補充できる。ユーザーがインクタンク310に補充するためのインクIKは、別体の補充用容器に収容され提供される。またインクタンク310の後方側の部分の上面には、印刷ヘッド107にインクを供給するための排出口312が設けられる。注入口311が電子機器10の正面に近い側に設けられることによって、インクIKの注入を容易にすることが可能である。 The ink tank 310 includes an injection port 311 into which ink IK is injected by a user and an discharge port 312 in which ink IK is discharged toward the print head 107. In the present embodiment, the upper surface of the portion on the + Y direction side, which is the front of the ink tank 310, is higher than the upper surface of the portion on the −Y direction side, which is the rear surface. An injection port 311 for injecting ink IK from the outside is provided on the upper surface of the front portion of the ink tank 310. As described above with reference to FIG. 3, the injection port 311 is exposed by opening the lid 302 and the cap. By injecting ink IK from the injection port 311 by the user, the ink tank 310 can be replenished with ink IK of each color. The ink IK for the user to refill the ink tank 310 is stored and provided in a separate refill container. Further, an discharge port 312 for supplying ink to the print head 107 is provided on the upper surface of the rear portion of the ink tank 310. By providing the injection port 311 on the side close to the front surface of the electronic device 10, it is possible to facilitate the injection of ink IK.

1.4 電子機器のその他の構成
図5は、本実施形態に係る電子機器10の概略構成図である。図5に示すように、本実施形態に係るプリンターユニット100は、キャリッジ106と、紙送りモーター108と、キャリッジモーター109と、紙送りローラー110と、処理部120と、記憶部140と、表示部150と、操作部160と、外部I/F部170を含む。なお、図5においては、スキャナーユニット200の具体的な構成を省略している。また図5は、プリンターユニット100及びインクタンクユニット300の各部の接続関係を例示する図であって、各部の物理的な構造や位置関係を限定するものではない。例えば、インクタンク310、キャリッジ106、チューブ105等の部材の電子機器10における配置は、種々の実施形態が考えられる。
1.4 Other Configurations of Electronic Devices FIG. 5 is a schematic configuration diagram of the electronic devices 10 according to the present embodiment. As shown in FIG. 5, the printer unit 100 according to the present embodiment includes a carriage 106, a paper feed motor 108, a carriage motor 109, a paper feed roller 110, a processing unit 120, a storage unit 140, and a display unit. It includes 150, an operation unit 160, and an external I / F unit 170. In FIG. 5, the specific configuration of the scanner unit 200 is omitted. Further, FIG. 5 is a diagram illustrating the connection relationship of each part of the printer unit 100 and the ink tank unit 300, and does not limit the physical structure and positional relationship of each part. For example, various embodiments can be considered for the arrangement of members such as the ink tank 310, the carriage 106, and the tube 105 in the electronic device 10.

キャリッジ106には、印刷ヘッド107が搭載されている。印刷ヘッド107は、キャリッジ106の底面側である−Z方向にインクIKを噴射する複数のノズルを有している。印刷ヘッド107と各インクタンク310との間には、チューブ105が設けられている。インクタンク310内の各インクIKは、チューブ105を介して印刷ヘッド107に送られる。印刷ヘッド107は、インクタンク310から送られる各インクIKをインク滴として、複数のノズルから印刷媒体Pに対して噴射する。 A print head 107 is mounted on the carriage 106. The print head 107 has a plurality of nozzles that eject ink IK in the −Z direction on the bottom surface side of the carriage 106. A tube 105 is provided between the print head 107 and each ink tank 310. Each ink IK in the ink tank 310 is sent to the print head 107 via the tube 105. The print head 107 ejects each ink IK sent from the ink tank 310 to the print medium P from a plurality of nozzles as ink droplets.

キャリッジ106は、キャリッジモーター109に駆動されることにより、印刷媒体P上を主走査軸HDに沿って往復移動する。紙送りモーター108は、紙送りローラー110を回転駆動し、印刷媒体Pを副走査軸VDに沿って搬送する。印刷ヘッド107の噴射制御は、ケーブルを介して処理部120により行われる。 The carriage 106 is driven by the carriage motor 109 to reciprocate on the print medium P along the main scanning axis HD. The paper feed motor 108 rotationally drives the paper feed roller 110 to convey the print medium P along the sub-scanning axis VD. The injection control of the print head 107 is performed by the processing unit 120 via a cable.

プリンターユニット100では、処理部120の制御に基づいて、キャリッジ106が主走査軸HDに沿って移動しながら、副走査軸VDに搬送される印刷媒体Pに対して印刷ヘッド107の複数のノズルからインクIKを噴射することによって、印刷媒体Pへの印刷がなされる。 In the printer unit 100, under the control of the processing unit 120, the carriage 106 moves along the main scanning axis HD from the plurality of nozzles of the print head 107 with respect to the print medium P conveyed to the sub-scanning axis VD. Printing is performed on the print medium P by injecting the ink IK.

キャリッジ106の移動領域における主走査軸HDの一端部は、キャリッジ106が待機するホームポジション領域となっている。ホームポジション領域には、例えば、印刷ヘッド107のノズルのクリーニングなどのメンテナンスを行うための不図示のキャップ等が配置されている。また、キャリッジ106の移動領域には、印刷ヘッド107のフラッシングやクリーニングを行う際の廃インクを受容するための廃インクボックスなどが配置される。なお、フラッシングとは、印刷媒体Pの印刷中に、印刷ヘッド107の各ノズルから印刷とは無関係にインクIKを噴射させることをいう。クリーニングとは、印刷ヘッド107を駆動させることなく、廃インクボックスに設けられたポンプ等で印刷ヘッドを吸引することにより印刷ヘッド内をクリーニングすることをいう。 One end of the main scanning axis HD in the moving region of the carriage 106 is a home position region in which the carriage 106 stands by. In the home position region, for example, a cap (not shown) for performing maintenance such as cleaning the nozzle of the print head 107 is arranged. Further, in the moving area of the carriage 106, a waste ink box or the like for receiving waste ink when flushing or cleaning the print head 107 is arranged. Note that flushing refers to injecting ink IK from each nozzle of the print head 107 during printing on the print medium P, regardless of printing. Cleaning means cleaning the inside of the print head by sucking the print head with a pump or the like provided in the waste ink box without driving the print head 107.

なお、ここではインクタンク310がキャリッジ106とは異なる箇所に設けられるオフキャリッジタイプの印刷装置を想定している。ただし、プリンターユニット100は、インクタンク310がキャリッジ106に搭載され、印刷ヘッド107とともに主走査軸HDに沿って移動するオンキャリッジタイプの印刷装置であってもよい。オンキャリッジタイプの印刷装置については、図40を用いて後述する。 Here, an off-carriage type printing device in which the ink tank 310 is provided at a position different from that of the carriage 106 is assumed. However, the printer unit 100 may be an on-carriage type printing device in which the ink tank 310 is mounted on the carriage 106 and moves along the main scanning axis HD together with the print head 107. The on-carriage type printing device will be described later with reference to FIG. 40.

処理部120には、ユーザーインターフェース部としての、操作部160及び表示部150が接続される。表示部150は、各種の表示画面を表示するためのものであり、例えば液晶ディスプレイや有機ELディスプレイなどにより実現できる。操作部160は、ユーザーが各種操作を行うためのものであり、各種ボタンやGUI等により実現できる。例えば図1に示したように、電子機器10は操作パネル101を含み、当該操作パネル101が表示部150と、操作部160であるボタン等を含む。また表示部150と操作部160は、タッチパネルによって一体構成されてもよい。ユーザーが操作パネル101を操作することによって、処理部120は、プリンターユニット100とスキャナーユニット200とを動作させる。 An operation unit 160 and a display unit 150 as user interface units are connected to the processing unit 120. The display unit 150 is for displaying various display screens, and can be realized by, for example, a liquid crystal display or an organic EL display. The operation unit 160 is for the user to perform various operations, and can be realized by various buttons, GUI, and the like. For example, as shown in FIG. 1, the electronic device 10 includes an operation panel 101, and the operation panel 101 includes a display unit 150, a button which is an operation unit 160, and the like. Further, the display unit 150 and the operation unit 160 may be integrally configured by a touch panel. When the user operates the operation panel 101, the processing unit 120 operates the printer unit 100 and the scanner unit 200.

例えば、図1において、スキャナーユニット200の原稿台に原稿をセットした後、ユーザーが操作パネル101を操作して電子機器10の動作を開始させる。そうすると、スキャナーユニット200によって原稿が読み取られる。続いて、この読み取られた原稿の画像データに基づき、用紙カセットからプリンターユニット100の内部に印刷媒体Pが給紙され、この印刷媒体Pにプリンターユニット100によって印刷がなされる。 For example, in FIG. 1, after setting a document on the platen of the scanner unit 200, the user operates the operation panel 101 to start the operation of the electronic device 10. Then, the original is read by the scanner unit 200. Subsequently, the print medium P is fed from the paper cassette into the printer unit 100 based on the image data of the scanned document, and the printer unit 100 prints on the print medium P.

処理部120には、外部I/F部170を介して、外部機器を接続できる。ここでの外部機器は、例えばPC(Personal Computer)である。処理部120は、外部I/F部170を介して外部機器から画像データを受信し、プリンターユニット100によって、その画像を印刷媒体Pに印刷する制御を行う。また、処理部120は、スキャナーユニット200によって原稿を読み取り、外部I/F部170を介して読み取り結果である画像データを外部機器に送信する制御、又は、読み取り結果である画像データを印刷する制御を行う。 An external device can be connected to the processing unit 120 via the external I / F unit 170. The external device here is, for example, a PC (Personal Computer). The processing unit 120 receives image data from an external device via the external I / F unit 170, and controls the printer unit 100 to print the image on the print medium P. Further, the processing unit 120 controls to read the original by the scanner unit 200 and transmit the image data as the scanning result to the external device via the external I / F unit 170, or control to print the image data as the scanning result. I do.

処理部120は、例えば駆動制御と、消費量算出処理と、インク量検出処理と、インク種別判定処理を行う。本実施形態の処理部120は、下記のハードウェアにより構成される。ハードウェアは、デジタル信号を処理する回路及びアナログ信号を処理する回路の少なくとも一方を含むことができる。例えば、ハードウェアは、回路基板に実装された1又は複数の回路装置や、1又は複数の回路素子によって構成することができる。1又は複数の回路装置は例えばIC等である。1又は複数の回路素子は例えば抵抗、キャパシター等である。 The processing unit 120 performs, for example, drive control, consumption amount calculation processing, ink amount detection processing, and ink type determination processing. The processing unit 120 of this embodiment is composed of the following hardware. The hardware can include at least one of a circuit that processes a digital signal and a circuit that processes an analog signal. For example, hardware can be composed of one or more circuit devices mounted on a circuit board or one or more circuit elements. One or more circuit devices are, for example, ICs and the like. One or more circuit elements are, for example, resistors, capacitors, and the like.

また処理部120は、下記のプロセッサーにより実現されてもよい。本実施形態の電子機器10は、情報を記憶するメモリーと、メモリーに記憶された情報に基づいて動作するプロセッサーと、を含む。情報は、例えばプログラムと各種のデータ等である。プロセッサーは、ハードウェアを含む。プロセッサーは、CPU(Central Processing Unit)、GPU(Graphics Processing Unit)、DSP(Digital Signal Processor)等、各種のプロセッサーを用いることが可能である。メモリーは、SRAM(Static Random Access Memory)、DRAM(Dynamic Random Access Memory)などの半導体メモリーであってもよいし、レジスターであってもよいし、ハードディスク装置等の磁気記憶装置であってもよいし、光学ディスク装置等の光学式記憶装置であってもよい。例えば、メモリーはコンピューターにより読み取り可能な命令を格納しており、当該命令がプロセッサーにより実行されることによって、電子機器10の各部の機能が処理として実現されることになる。ここでの命令は、プログラムを構成する命令セットの命令でもよいし、プロセッサーのハードウェア回路に対して動作を指示する命令であってもよい。 Further, the processing unit 120 may be realized by the following processor. The electronic device 10 of the present embodiment includes a memory for storing information and a processor that operates based on the information stored in the memory. The information is, for example, a program and various data. The processor includes hardware. As the processor, various processors such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), and a DSP (Digital Signal Processor) can be used. The memory may be a semiconductor memory such as SRAM (Static Random Access Memory) or DRAM (Dynamic Random Access Memory), a register, or a magnetic storage device such as a hard disk device. , An optical storage device such as an optical disk device may be used. For example, the memory stores instructions that can be read by a computer, and when the instructions are executed by the processor, the functions of each part of the electronic device 10 are realized as processing. The instruction here may be an instruction of an instruction set constituting a program, or an instruction instructing an operation to a hardware circuit of a processor.

処理部120は、キャリッジモーター109を制御して、キャリッジ106を移動させる駆動制御を行う。駆動制御に基づいて、キャリッジモーター109が、キャリッジ106に設けられる印刷ヘッド107を移動させる駆動を行う。 The processing unit 120 controls the carriage motor 109 to perform drive control for moving the carriage 106. Based on the drive control, the carriage motor 109 drives the print head 107 provided on the carriage 106 to move.

また処理部120は、印刷ヘッド107の各ノズルからインクIKを噴射させることにより消費するインク消費量を算出する消費量算出処理を行う。処理部120は、各インクタンク310にインクIKが充填された状態を初期値として、消費量算出処理を開始する。より具体的には、ユーザーがインクタンク310にインクIKを補充してリセットボタンを押すと、処理部120は、そのインクタンク310に対して、インク消費量のカウント値を初期化する。具体的にはインク消費量のカウント値を0gに設定する。また処理部120は、リセットボタンの押下操作をトリガーとして、消費量算出処理を開始する。 Further, the processing unit 120 performs a consumption amount calculation process for calculating the amount of ink consumed by injecting ink IK from each nozzle of the print head 107. The processing unit 120 starts the consumption amount calculation process with the state in which the ink IK is filled in each ink tank 310 as an initial value. More specifically, when the user replenishes the ink tank 310 with ink IK and presses the reset button, the processing unit 120 initializes the ink consumption count value for the ink tank 310. Specifically, the count value of ink consumption is set to 0 g. Further, the processing unit 120 starts the consumption calculation process triggered by the operation of pressing the reset button.

また処理部120は、インクタンク310に対応して設けられるセンサーユニット320の出力に基づいて、インクタンク310に収容されているインクIKの量を検出するインク量検出処理を行う。また処理部120は、インクタンク310に対応して設けられるセンサーユニット320の出力に基づいて、当該インクタンク310に収容されているインクIKの種別を判定するインク種別判定処理を行う。インク量検出処理及びインク種別判定処理の詳細は後述する。 Further, the processing unit 120 performs an ink amount detection process for detecting the amount of ink IK contained in the ink tank 310 based on the output of the sensor unit 320 provided corresponding to the ink tank 310. Further, the processing unit 120 performs an ink type determination process for determining the type of ink IK contained in the ink tank 310 based on the output of the sensor unit 320 provided corresponding to the ink tank 310. Details of the ink amount detection process and the ink type determination process will be described later.

1.5 センサーユニットの詳細な構成例
図6は、センサーユニット320の構成を模式的に示す分解斜視図である。センサーユニット320は、基板321、光電変換デバイス322、光源323、導光体324、レンズアレイ325、ケース326を含む。
1.5 Detailed configuration example of the sensor unit FIG. 6 is an exploded perspective view schematically showing the configuration of the sensor unit 320. The sensor unit 320 includes a substrate 321, a photoelectric conversion device 322, a light source 323, a light guide body 324, a lens array 325, and a case 326.

光源323及び光電変換デバイス322は、基板321に実装される。光電変換デバイス322は、例えば光電変換素子が所定方向に並んで配置されたリニアイメージセンサーである。リニアイメージセンサーは、光電変換素子が1列に並んで配置されたセンサーであってもよいし、光電変換素子が2列以上に並んで配置されたセンサーであってもよい。光電変換素子は、例えばPD(Photodiode)である。リニアイメージセンサーを用いることによって、複数の光電変換素子に基づく複数の出力信号が取得される。そのため、インクIKの有無だけでなく、液面の位置を推定することが可能になる。なお液面は、界面と言い換えてもよい。 The light source 323 and the photoelectric conversion device 322 are mounted on the substrate 321. The photoelectric conversion device 322 is, for example, a linear image sensor in which photoelectric conversion elements are arranged side by side in a predetermined direction. The linear image sensor may be a sensor in which photoelectric conversion elements are arranged in a row, or a sensor in which photoelectric conversion elements are arranged in two or more rows. The photoelectric conversion element is, for example, PD (Photodiode). By using the linear image sensor, a plurality of output signals based on a plurality of photoelectric conversion elements are acquired. Therefore, it is possible to estimate not only the presence or absence of ink IK but also the position of the liquid level. The liquid level may be paraphrased as an interface.

光源323は、例えば、R,G,Bの各発光ダイオード(LED:Light emitting diode)を有し、R,G,Bの各発光ダイオードを高速に切り換えながら順番に発光させる。以下、Rの発光ダイオードを赤色LED323Rと表記し、Gの発光ダイオードを緑色LED323Gと表記し、Bの発光ダイオードを青色LED323Bと表記する。導光体324は、光を導くための棒状部材であって、断面形状は四角形状であってもよいし、円形状であってもよいし、他の形状であってもよい。導光体324の長手方向は、光電変換デバイス322の長手方向に沿った方向である。なお、導光体324からは、光源323からの光が出て行くことになるので、導光体324と光源323とを区別する必要が無い場合には、導光体324と光源323とをまとめて光源と称することもある。 The light source 323 has, for example, R, G, and B light emitting diodes (LEDs), and emits light in order while switching the R, G, and B light emitting diodes at high speed. Hereinafter, the light emitting diode of R is referred to as a red LED 323R, the light emitting diode of G is referred to as a green LED 323G, and the light emitting diode of B is referred to as a blue LED 323B. The light guide body 324 is a rod-shaped member for guiding light, and the cross-sectional shape may be a quadrangular shape, a circular shape, or another shape. The longitudinal direction of the light guide body 324 is a direction along the longitudinal direction of the photoelectric conversion device 322. Since the light from the light source 323 is emitted from the light guide body 324, if it is not necessary to distinguish between the light guide body 324 and the light source 323, the light guide body 324 and the light source 323 are used. Collectively referred to as a light source.

光源323、導光体324、レンズアレイ325、及び光電変換デバイス322は、ケース326と基板321との間に収容されている。ケース326には光源用の第1開口部327と、光電変換デバイス用の第2開口部328が設けられている。光源323が発する光が、導光体324に入射されることによって、導光体全体が発光する。導光体324から射出される光は、第1開口部327を介してケース326の外部へ照射される。外部からの光は第2開口部328を介してレンズアレイ325に入力される。レンズアレイ325は、入力された光を光電変換デバイス322へと導く。レンズアレイ325は、具体的には屈折率分布型レンズが多数配列されたセルフォックレンズアレイ(セルフォックは登録商標)である。 The light source 323, the light guide body 324, the lens array 325, and the photoelectric conversion device 322 are housed between the case 326 and the substrate 321. The case 326 is provided with a first opening 327 for a light source and a second opening 328 for a photoelectric conversion device. When the light emitted by the light source 323 is incident on the light guide body 324, the entire light guide body emits light. The light emitted from the light guide body 324 is irradiated to the outside of the case 326 through the first opening 327. Light from the outside is input to the lens array 325 through the second opening 328. The lens array 325 guides the input light to the photoelectric conversion device 322. Specifically, the lens array 325 is a SELFOCK lens array (SELFOC is a registered trademark) in which a large number of refractive index distribution type lenses are arranged.

図7は、光電変換デバイス322の配置を模式的に示す図である。図7に示されるように、n(nは1以上の整数)個の光電変換デバイス322が、基板321上に所与の方向に沿って並べて配置される。ここで、図7に示すように、nは2以上であってもよい。即ち、センサーユニット320は、リニアイメージセンサーの長手方向側に設けられる第2リニアイメージセンサーを含む。ここでのリニアイメージセンサーは例えば図7の322−1であり、第2リニアイメージセンサーは、322−2である。各光電変換デバイス322は、上述したように、並んで配置された多数の光電変換素子を有するチップである。複数の光電変換デバイス322を用いることによって、入射光を検出する範囲が広くなるため、インク量検出の対象範囲を広くできる。ただし、リニアイメージセンサーの数、即ちインク量検出の対象範囲の設定は種々の変形実施が可能であり、リニアイメージセンサーが1つであることは妨げられない。 FIG. 7 is a diagram schematically showing the arrangement of the photoelectric conversion device 322. As shown in FIG. 7, n (n is an integer of 1 or more) photoelectric conversion devices 322 are arranged side by side on the substrate 321 along a given direction. Here, as shown in FIG. 7, n may be 2 or more. That is, the sensor unit 320 includes a second linear image sensor provided on the longitudinal side of the linear image sensor. The linear image sensor here is, for example, 322-1 in FIG. 7, and the second linear image sensor is 322-2. As described above, each photoelectric conversion device 322 is a chip having a large number of photoelectric conversion elements arranged side by side. By using the plurality of photoelectric conversion devices 322, the range for detecting the incident light is widened, so that the target range for detecting the amount of ink can be widened. However, the number of linear image sensors, that is, the setting of the target range for ink amount detection can be variously modified, and it is not prevented that there is only one linear image sensor.

図8は、センサーユニット320の配置を模式的に示す断面図である。なお、図6及び図7からわかるように、光電変換デバイス322と光源323はZ軸における位置が重複しないが、他の部材との位置関係を説明する便宜上、図8では光源323を記載している。図8に示すように、センサーユニット320は、光源323と光電変換デバイス322の間に設けられる光遮断壁329を含む。光遮断壁329は、例えばケース326の一部であって、第1開口部327と第2開口部328の間の梁状部材が基板321まで延伸することによって形成される。光遮断壁329は、光源323から光電変換デバイス322へ向かう直接光を遮断する。光遮断壁329を設けることによって、直接光の入射を抑制できるため、インク量の検出精度を高くすることが可能になる。なお、光遮断壁329は光源323から光電変換デバイス322へ向かう直接光を遮断可能であればよく、具体的な形状は図8に限定されない。また、光遮断壁329としてケース326とは別体の部材を用いてもよい。 FIG. 8 is a cross-sectional view schematically showing the arrangement of the sensor unit 320. As can be seen from FIGS. 6 and 7, the positions of the photoelectric conversion device 322 and the light source 323 do not overlap on the Z axis, but for convenience of explaining the positional relationship with other members, the light source 323 is shown in FIG. There is. As shown in FIG. 8, the sensor unit 320 includes a light blocking wall 329 provided between the light source 323 and the photoelectric conversion device 322. The light blocking wall 329 is, for example, a part of the case 326, and is formed by extending a beam-shaped member between the first opening 327 and the second opening 328 to the substrate 321. The light blocking wall 329 blocks direct light from the light source 323 to the photoelectric conversion device 322. By providing the light blocking wall 329, the incidental light can be suppressed, so that the accuracy of detecting the amount of ink can be improved. The light blocking wall 329 may block direct light from the light source 323 to the photoelectric conversion device 322, and its specific shape is not limited to FIG. Further, a member different from the case 326 may be used as the light blocking wall 329.

図9は、インクタンク310とセンサーユニット320との位置関係を説明する図である。図9に示すように、センサーユニット320は、光電変換デバイス322の長手方向が±Z方向となる姿勢で、インクタンク310のいずれかの壁面に固定される。即ち、リニアイメージセンサーである光電変換デバイス322は、長手方向が鉛直方向に沿うように設けられる。ここでの鉛直方向とは、電子機器10が適切な姿勢で使用された場合における重力方向、及びその逆方向を表す。 FIG. 9 is a diagram illustrating the positional relationship between the ink tank 310 and the sensor unit 320. As shown in FIG. 9, the sensor unit 320 is fixed to any wall surface of the ink tank 310 in a posture in which the longitudinal direction of the photoelectric conversion device 322 is the ± Z direction. That is, the photoelectric conversion device 322, which is a linear image sensor, is provided so that the longitudinal direction is along the vertical direction. The vertical direction here represents the direction of gravity when the electronic device 10 is used in an appropriate posture, and the opposite direction.

図9の例において、センサーユニット320は、インクタンク310の−Y方向の側面に固定される。即ち、光電変換デバイス322が設けられる基板321は、インクタンク310の注入口311よりも排出口312に近い。プリンターユニット100における印刷が実行できるか否かは、インクIKが印刷ヘッド107に供給されるか否かによる。そのため、排出口312側にセンサーユニット320を設けることによって、インクタンク310のうち、特にインク量が重要となる位置を対象として、インク量の検出処理を行うことが可能になる。 In the example of FIG. 9, the sensor unit 320 is fixed to the side surface of the ink tank 310 in the −Y direction. That is, the substrate 321 on which the photoelectric conversion device 322 is provided is closer to the discharge port 312 than the injection port 311 of the ink tank 310. Whether or not printing can be executed in the printer unit 100 depends on whether or not the ink IK is supplied to the print head 107. Therefore, by providing the sensor unit 320 on the discharge port 312 side, it is possible to perform the ink amount detection process on the ink tank 310 at a position where the ink amount is particularly important.

なお図9に示すように、インクタンク310は、メイン容器315と、第2排出口313と、インク流路314を含んでもよい。メイン容器315とは、インクタンク310のうち、インクIKの収容に用いられる部分である。第2排出口313は、例えばメイン容器315のうち、最も−Z方向の位置に設けられる開口である。ただし第2排出口313の設けられる位置や形状については、種々の変形実施が可能である。例えば、インクタンク310に対して、吸引ポンプによる吸引、或いは加圧ポンプによる加圧空気の供給が行われた場合、インクタンク310のメイン容器315内に蓄積されたインクIKは、第2排出口313から排出される。第2排出口313から排出されたインクIKは、インク流路314によって+Z方向に案内され、排出口312からインクタンク310の外部へ排出される。この際、図9に示すように、インク流路314と、光電変換デバイス322が対向しない位置関係とすることによって、適切なインク量の検出処理が可能である。例えば、インク流路314はインクタンク310のうち、−X方向の端部に設けられ、センサーユニット320はインク流路314よりも+X方向に設けられる。このようにすれば、インク流路314内のインクによって、インク量検出処理の精度が低下することを抑制できる。 As shown in FIG. 9, the ink tank 310 may include a main container 315, a second discharge port 313, and an ink flow path 314. The main container 315 is a portion of the ink tank 310 used for accommodating the ink IK. The second discharge port 313 is, for example, an opening provided at the most −Z direction position in the main container 315. However, various modifications can be made to the position and shape of the second discharge port 313. For example, when suction is performed by a suction pump or pressurized air is supplied to the ink tank 310 by a pressure pump, the ink IK accumulated in the main container 315 of the ink tank 310 is discharged to the second discharge port. It is discharged from 313. The ink IK discharged from the second discharge port 313 is guided in the + Z direction by the ink flow path 314, and is discharged from the discharge port 312 to the outside of the ink tank 310. At this time, as shown in FIG. 9, the ink flow path 314 and the photoelectric conversion device 322 are not opposed to each other, so that an appropriate amount of ink can be detected. For example, the ink flow path 314 is provided at the end of the ink tank 310 in the −X direction, and the sensor unit 320 is provided in the + X direction with respect to the ink flow path 314. By doing so, it is possible to prevent the ink in the ink flow path 314 from deteriorating the accuracy of the ink amount detection process.

以上のように、本実施形態における「排出口」は、インクタンク310の外部へインクIKを排出するための排出口312と、メイン容器315から排出口312へ向けてインクIKを排出するための第2排出口313とを含む。このうち、インクIKが印刷ヘッド107に供給されるか否かにより強く関連するのは、第2排出口313である。図9に示すように、光電変換デバイス322が設けられる基板321は、インクタンク310の注入口311よりも第2排出口313に近い。これにより、特にインク量が重要となる位置を対象として、インク量の検出処理を行うことが可能になる。ただし、排出口312と第2排出口313との距離が長くなるほど、インク流路314を長くする必要があり、インク流路314の配置が複雑になるおそれもある。即ち、排出口312と第2排出口313とは近い位置に設けられることが望ましい。そのため上述したように、基板321を注入口311よりも排出口312に近い位置に設けることによって、インク量が重要となる位置を対象として、インク量の検出処理を行うことが可能である。なお、以下の説明においても同様であり、所与の部材が「インクタンク310の排出口312よりも注入口311に近い」という表現、或いはそれに類する表現において、排出口312を適宜、第2排出口313に置き換えることが可能である。 As described above, the "discharge port" in the present embodiment is a discharge port 312 for discharging the ink IK to the outside of the ink tank 310, and a discharge port 312 for discharging the ink IK from the main container 315 to the discharge port 312. Includes a second outlet 313. Of these, the second discharge port 313 is more strongly related to whether or not the ink IK is supplied to the print head 107. As shown in FIG. 9, the substrate 321 on which the photoelectric conversion device 322 is provided is closer to the second discharge port 313 than the injection port 311 of the ink tank 310. This makes it possible to perform the ink amount detection process at a position where the ink amount is particularly important. However, as the distance between the discharge port 312 and the second discharge port 313 becomes longer, it is necessary to lengthen the ink flow path 314, which may complicate the arrangement of the ink flow path 314. That is, it is desirable that the discharge port 312 and the second discharge port 313 are provided at close positions. Therefore, as described above, by providing the substrate 321 at a position closer to the discharge port 312 than the injection port 311 it is possible to perform the ink amount detection process targeting the position where the ink amount is important. The same applies to the following description, and in the expression that the given member is "closer to the injection port 311 than the discharge port 312 of the ink tank 310" or a similar expression, the discharge port 312 is appropriately referred to as the second discharge port 312. It can be replaced with the exit 313.

なお、センサーユニット320は、例えばインクタンク310に接着されてもよい。或いは、センサーユニット320及びインクタンク310にそれぞれ固定用の部材を設け、当該部材同士を嵌合等によって固定することによって、センサーユニット320をインクタンク310に装着してもよい。固定用部材の形状、材質等は種々の変形実施が可能である。また図38〜図40を用いて後述するように、センサーユニット320はインクタンク310に対して相対的に移動可能な構成であってもよい。 The sensor unit 320 may be adhered to, for example, the ink tank 310. Alternatively, the sensor unit 320 may be attached to the ink tank 310 by providing fixing members to the sensor unit 320 and the ink tank 310, respectively, and fixing the members to each other by fitting or the like. Various modifications can be made to the shape, material, etc. of the fixing member. Further, as will be described later with reference to FIGS. 38 to 40, the sensor unit 320 may be configured to be relatively movable with respect to the ink tank 310.

光電変換デバイス322は、例えばZ軸において、z1〜z2の範囲に設けられる。z1及びz2は、Z軸における座標値であり、z1<z2である。光源323からの光がインクタンク310に照射された場合、インクタンク310に充填されたインクIKによって、光の吸収、散乱が生じる。そのため、インクタンク310のうち、インクIKが充填されていない部分は相対的に明るくなり、インクIKが充填されている部分は相対的に暗くなる。例えば、Z軸における座標値がz0の位置にインクIKの液面が存在する場合、インクタンク310のうち、Z座標値がz0以下の領域が暗くなり、z0より大きい領域が明るくなる。 The photoelectric conversion device 322 is provided in the range of z1 to z2, for example, on the Z axis. z1 and z2 are coordinate values on the Z axis, and z1 <z2. When the light from the light source 323 is applied to the ink tank 310, the ink IK filled in the ink tank 310 causes light absorption and scattering. Therefore, in the ink tank 310, the portion not filled with the ink IK becomes relatively bright, and the portion filled with the ink IK becomes relatively dark. For example, when the liquid level of the ink IK exists at the position where the coordinate value on the Z axis is z0, the region of the ink tank 310 whose Z coordinate value is z0 or less becomes dark and the region larger than z0 becomes bright.

図9に示すように、長手方向が鉛直方向となるように光電変換デバイス322を設けることによって、インクIKの液面の位置を適切に検出することが可能になる。具体的には、z1<z0<z2であれば、光電変換デバイス322のうち、z1〜z0の範囲に対応する位置に配置された光電変換素子は、入力される光量が相対的に少ないため、出力値が相対的に小さくなる。z0〜z2の範囲に対応する位置に配置された光電変換素子は、入力される光量が相対的に多いため、出力値が相対的に大きくなる。即ち、光電変換デバイス322の出力に基づいて、インクIKの液面であるz0を推定することが可能になる。即ち、インク量が所定量以上であるか否かという2値の情報だけでなく、具体的な液面位置を検出することが可能になる。液面の位置がわかれば、インクタンク310の形状に基づいてミリリットル等の単位でインク量を決定することも可能である。また、z1〜z2の範囲全体の出力値が大きい場合、液面がz1よりも低いと判定し、z1〜z2の範囲全体の出力値が小さい場合、液面がz2よりも高いと判定することも可能である。また、インク量を検出可能な範囲は光電変換デバイス322が設けられる範囲であるz1〜z2の範囲となる。そのため、光電変換デバイス322の数や1チップあたりの長さを変更することによって、検出範囲を容易に調整可能である。また、インク量検出の解像度は、光電変換デバイス322の画素ピッチと、レンズアレイ325のピッチに基づいて決定される。図15を用いて後述する例であれば、インク量検出は、画素ピッチのk倍に対応する解像度で行われる。具体的な解像度は種々の変形実施が可能であるが、本実施形態の手法によれば、従来手法に比べて精度の高いインク量検出を実現できる。 As shown in FIG. 9, by providing the photoelectric conversion device 322 so that the longitudinal direction is the vertical direction, the position of the liquid surface of the ink IK can be appropriately detected. Specifically, if z1 <z0 <z2, among the photoelectric conversion devices 322, the photoelectric conversion element arranged at the position corresponding to the range of z1 to z0 receives a relatively small amount of light, so that the amount of light input is relatively small. The output value becomes relatively small. Since the photoelectric conversion element arranged at the position corresponding to the range of z0 to z2 receives a relatively large amount of light, the output value becomes relatively large. That is, it is possible to estimate z0, which is the liquid level of the ink IK, based on the output of the photoelectric conversion device 322. That is, it is possible to detect not only binary information as to whether or not the amount of ink is equal to or greater than a predetermined amount, but also a specific liquid level position. If the position of the liquid level is known, it is possible to determine the amount of ink in units of milliliters or the like based on the shape of the ink tank 310. Further, when the output value of the entire range of z1 to z2 is large, it is determined that the liquid level is lower than z1, and when the output value of the entire range of z1 to z2 is small, it is determined that the liquid level is higher than z2. Is also possible. Further, the range in which the amount of ink can be detected is the range of z1 to z2 in which the photoelectric conversion device 322 is provided. Therefore, the detection range can be easily adjusted by changing the number of photoelectric conversion devices 322 and the length per chip. Further, the resolution of ink amount detection is determined based on the pixel pitch of the photoelectric conversion device 322 and the pitch of the lens array 325. In the example described later with reference to FIG. 15, the ink amount detection is performed at a resolution corresponding to k times the pixel pitch. Although various modifications can be made to the specific resolution, according to the method of the present embodiment, it is possible to realize highly accurate ink amount detection as compared with the conventional method.

インク量を精度よく検出することを考慮すれば、インクタンク310に対して照射される光は、鉛直方向での位置によらず同程度とすることが好ましい。上述したように、インクIKの有無は明るさの差異として現れるため、照射光の光量にばらつきが出てしまうと精度低下につながるためである。よってセンサーユニット320は、長手方向が鉛直方向となるように配置される導光体324を有する。ここでの導光体324は、上述したように棒状のライトガイドである。なお、導光体324を均一に光らせることを考慮すれば、光源323は横方向、即ち導光体324の長手方向に沿った方向から導光体324に光を入射することが好ましい。このようにすれば、入射角が大きくなるため、全反射が発生しやすくなる。 Considering that the amount of ink is detected accurately, it is preferable that the light emitted to the ink tank 310 is about the same regardless of the position in the vertical direction. As described above, the presence or absence of ink IK appears as a difference in brightness, and if the amount of irradiation light varies, the accuracy will decrease. Therefore, the sensor unit 320 has a light guide body 324 arranged so that the longitudinal direction is the vertical direction. The light guide body 324 here is a rod-shaped light guide as described above. Considering that the light guide body 324 is uniformly illuminated, it is preferable that the light source 323 injects light into the light guide body 324 from a lateral direction, that is, a direction along the longitudinal direction of the light guide body 324. In this way, the incident angle becomes large, so that total reflection is likely to occur.

図10〜図12は、光源323と導光体324の位置関係を説明する図である。例えば、図10に示すように、光源323と導光体324がZ軸において並ぶように設けられてもよい。光源323は+Z方向に光を照射することによって、導光体324の長手方向に光を導くことが可能になる。或いは、図11に示すように、導光体324の光源側の端部を屈曲させてもよい。このようにすれば、光源323は基板321に垂直な方向に光を照射することによって、導光体324の長手方向に光を導くことが可能になる。或いは、図12に示すように、導光体324の光源側の端部に反射面RSを設けてもよい。光源323は基板321に垂直な方向に光を照射する。光源323からの光は、反射面RSにおいて反射されることによって、導光体324の長手方向に導かれる。なお、導光体324の−Y方向の面に反射板を設ける、当該反射板の密度を光源323からの位置に応じて変える等、本実施形態における導光体324は公知の構成を広く適用可能である。また、光源323を導光体324よりも+Z方向に設けてもよいし、同じ色の光源323を導光体324の両端にそれぞれ設けてもよく、光源323と導光体324の構成は種々の変形実施が可能である。 10 to 12 are views for explaining the positional relationship between the light source 323 and the light guide body 324. For example, as shown in FIG. 10, the light source 323 and the light guide body 324 may be provided so as to be aligned with each other on the Z axis. By irradiating the light source 323 with light in the + Z direction, it becomes possible to guide the light in the longitudinal direction of the light guide body 324. Alternatively, as shown in FIG. 11, the end portion of the light guide body 324 on the light source side may be bent. In this way, the light source 323 can guide the light in the longitudinal direction of the light guide body 324 by irradiating the light in the direction perpendicular to the substrate 321. Alternatively, as shown in FIG. 12, a reflecting surface RS may be provided at the end of the light guide body 324 on the light source side. The light source 323 irradiates light in a direction perpendicular to the substrate 321. The light from the light source 323 is guided in the longitudinal direction of the light guide body 324 by being reflected by the reflecting surface RS. The light guide 324 in the present embodiment widely applies a known configuration, such as providing a reflector on the surface of the light guide 324 in the −Y direction and changing the density of the reflector according to the position from the light source 323. It is possible. Further, the light source 323 may be provided in the + Z direction with respect to the light guide body 324, or the light source 323 of the same color may be provided at both ends of the light guide body 324, and the configurations of the light source 323 and the light guide body 324 are various. Can be modified.

なお、インクタンク310の内壁のうち、少なくとも光電変換デバイス322に対向する部分は、インクタンク310の外壁に比べて撥インク性が高いことが望ましい。もちろんインクタンク310の内壁全体を加工して、インクタンク310の外壁に比べて撥インク性が高くなるようにしてもよい。光電変換デバイス322に対向する部分とは、インクタンク310の−Y方向の内壁全体であってもよいし、当該内壁の一部であってもよい。内壁の一部とは、具体的にはインクタンク310の−Y方向の内壁のうち、XZ平面での位置が光電変換デバイス322と重複する部分を含む領域である。インクタンク310の内壁にインク滴が付着した場合、当該インク滴の部分は、インクが存在しない部分に比べて暗くなる。そのため、インク滴に起因してインク量の検出精度が低下するおそれがある。インクタンク310の内壁の撥インク性を高くすることによって、インク滴の付着を抑制することが可能になる。 It is desirable that at least the portion of the inner wall of the ink tank 310 facing the photoelectric conversion device 322 has higher ink repellency than the outer wall of the ink tank 310. Of course, the entire inner wall of the ink tank 310 may be processed so that the ink repellency is higher than that of the outer wall of the ink tank 310. The portion facing the photoelectric conversion device 322 may be the entire inner wall of the ink tank 310 in the −Y direction, or may be a part of the inner wall. The part of the inner wall is specifically a region of the inner wall of the ink tank 310 in the −Y direction including a portion whose position on the XZ plane overlaps with the photoelectric conversion device 322. When ink droplets adhere to the inner wall of the ink tank 310, the portion of the ink droplets becomes darker than the portion where the ink does not exist. Therefore, the accuracy of detecting the amount of ink may decrease due to the ink droplets. By increasing the ink repellency of the inner wall of the ink tank 310, it is possible to suppress the adhesion of ink droplets.

1.6 センサーユニットと処理部の詳細な構成例
図13は、センサーユニット320に関する機能ブロック図である。電子機器10は、処理部120とAFE(Analog Front End)回路130を含む。本実施形態においては、光電変換デバイス322及びAFE回路130をセンサー190と表記する。処理部120は第2基板111に設けられる。処理部120は、図5に示した処理部120に対応し、光電変換デバイス322を制御する制御信号を出力する。制御信号は、後述するクロック信号CLK、チップイネーブル信号EN1を含む。AFE回路130は、少なくとも、光電変換デバイス322からのアナログ信号をA/D変換する機能を備えた回路である。第2基板111は、例えば電子機器10のメイン基板であり、上述した基板321はセンサーユニット用のサブ基板である。
1.6 Detailed configuration example of the sensor unit and the processing unit FIG. 13 is a functional block diagram of the sensor unit 320. The electronic device 10 includes a processing unit 120 and an AFE (Analog Front End) circuit 130. In this embodiment, the photoelectric conversion device 322 and the AFE circuit 130 are referred to as a sensor 190. The processing unit 120 is provided on the second substrate 111. The processing unit 120 corresponds to the processing unit 120 shown in FIG. 5 and outputs a control signal for controlling the photoelectric conversion device 322. The control signal includes a clock signal CLK and a chip enable signal EN1 described later. The AFE circuit 130 is a circuit having at least a function of A / D converting an analog signal from the photoelectric conversion device 322. The second substrate 111 is, for example, the main substrate of the electronic device 10, and the substrate 321 described above is a sub substrate for the sensor unit.

図13においては、センサーユニット320は、赤色LED323R、緑色LED323G、青色LED323Bと、n個の光電変換デバイス322を含む。上述したように、nは1以上の整数である。赤色LED323R、緑色LED323G及び青色LED323Bは光源323に備えられており、複数の光電変換デバイス322は、基板321上に並べて配置されている。赤色LED323R、緑色LED323G及び青色LED323Bは、それぞれ複数個存在してもよい。 In FIG. 13, the sensor unit 320 includes a red LED 323R, a green LED 323G, a blue LED 323B, and n photoelectric conversion devices 322. As mentioned above, n is an integer greater than or equal to 1. The red LED 323R, the green LED 323G, and the blue LED 323B are provided in the light source 323, and the plurality of photoelectric conversion devices 322 are arranged side by side on the substrate 321. A plurality of red LED 323R, green LED 323G, and blue LED 323B may be present.

AFE回路130は、例えば集積回路(IC:Integrated Circuit)で実現される。AFE回路130は不図示の不揮発性メモリーを含む。ここでの不揮発性メモリーは、例えばSRAMである。なお、AFE回路130は基板321に設けられてもよいし、基板321とは異なる基板に設けられてもよい。 The AFE circuit 130 is realized by, for example, an integrated circuit (IC). The AFE circuit 130 includes a non-volatile memory (not shown). The non-volatile memory here is, for example, SRAM. The AFE circuit 130 may be provided on the substrate 321 or may be provided on a substrate different from the substrate 321.

処理部120は、センサーユニット320の動作を制御する。まず、処理部120は、赤色LED323R、緑色LED323G及び青色LED323Bの動作を制御する。具体的には、処理部120は、一定の周期Tで赤色LED323Rに対して一定の露光時間Δtだけ駆動信号DrvRを供給し、赤色LED323Rを発光させる。同様に、処理部120は、周期Tで緑色LED323Gに対して露光時間Δtだけ駆動信号DrvGを供給して緑色LED323Gを発光させ、周期Tで青色LED323Bに対して露光時間Δtだけ駆動信号DrvBを供給して青色LED323Bを発光させる。処理部120は、周期Tの間に、赤色LED323R、緑色LED323G及び青色LED323Bを排他的に1つずつ順番に発光させる。 The processing unit 120 controls the operation of the sensor unit 320. First, the processing unit 120 controls the operations of the red LED 323R, the green LED 323G, and the blue LED 323B. Specifically, the processing unit 120 supplies the drive signal DrvR to the red LED 323R for a certain exposure time Δt at a constant cycle T to cause the red LED 323R to emit light. Similarly, the processing unit 120 supplies the green LED 323G with the drive signal DrvG for the exposure time Δt in the cycle T to emit the green LED 323G, and supplies the drive signal DrvB to the blue LED 323B for the exposure time Δt in the cycle T. Then, the blue LED 323B is made to emit light. The processing unit 120 causes the red LED 323R, the green LED 323G, and the blue LED 323B to emit light exclusively one by one in order during the cycle T.

また、処理部120は、n個の光電変換デバイス323(322−1〜322−n)の動作を制御する。具体的には、処理部120は、n個の光電変換デバイス322に対して、クロック信号CLKを共通に供給する。クロック信号CLKは、n個の光電変換デバイス322の動作クロック信号であり、n個の光電変換デバイス322の各々はクロック信号CLKに基づいて動作する。 Further, the processing unit 120 controls the operation of n photoelectric conversion devices 323 (322-13-22-n). Specifically, the processing unit 120 commonly supplies the clock signal CLK to the n photoelectric conversion devices 322. The clock signal CLK is an operating clock signal of the n photoelectric conversion devices 322, and each of the n photoelectric conversion devices 322 operates based on the clock signal CLK.

各光電変換デバイス322−j(j=1〜n)は、各光電変換素子が光を受けた後、チップイネーブル信号ENjを受けると、クロック信号CLKに同期して、各光電変換素子が受けた光に基づき、出力信号OSを生成し、出力する。 When each photoelectric conversion device 322-j (j = 1 to n) receives the chip enable signal ENj after each photoelectric conversion element receives light, each photoelectric conversion element receives the light in synchronization with the clock signal CLK. The output signal OS is generated and output based on the light.

処理部120は、赤色LED323R、緑色LED323G又は青色LED323Bを発光させた後、光電変換デバイス322−1が出力信号OSの出力を終了するまでの時間だけアクティブとなるチップイネーブル信号EN1を生成し、光電変換デバイス322−1に供給する。 The processing unit 120 generates a chip enable signal EN1 that is active only for a time until the photoelectric conversion device 322-1 ends the output of the output signal OS after emitting the red LED 323R, the green LED 323G, or the blue LED 323B, and the photoelectric conversion device 120 generates a photoelectric It is supplied to the conversion device 322-1.

光電変換デバイス322−jは、出力信号OSの出力を終了する前にチップイネーブル信号ENj+1を生成する。そして、チップイネーブル信号EN2〜ENnは、それぞれ、光電変換デバイス322−2〜322−nに供給される。 The photoelectric conversion device 322-j generates a chip enable signal ENj + 1 before ending the output of the output signal OS. Then, the chip enable signals EN2 to ENn are supplied to the photoelectric conversion devices 322 to 322-n, respectively.

これにより、赤色LED323R、緑色LED323G又は青色LED323Bが発光した後、n個の光電変換デバイス322が順番に出力信号OSを出力する。そして、センサーユニット320は、n個の光電変換デバイス322が順番に出力する出力信号OSを不図示の端子から出力する。出力信号OSは、AFE回路130に転送される。 As a result, after the red LED 323R, the green LED 323G, or the blue LED 323B emits light, the n photoelectric conversion devices 322 output the output signal OS in order. Then, the sensor unit 320 outputs the output signal OS sequentially output by the n photoelectric conversion devices 322 from terminals (not shown). The output signal OS is transferred to the AFE circuit 130.

AFE回路130は、n個の光電変換デバイス322から順番に出力される出力信号OSを順次受け取り、各出力信号OSに対して、増幅処理やA/D変換処理を行って、各光電変換素子の受光量に応じたデジタル値を含むデジタルデータに変換し、各デジタルデータを順番に処理部120に送信する。処理部120は、AFE回路130から順番に送信される各デジタルデータを受け取って、後述するインク量検出処理及びインク種別判定処理を行う。 The AFE circuit 130 sequentially receives output signal OSs that are sequentially output from n photoelectric conversion devices 322, performs amplification processing and A / D conversion processing on each output signal OS, and performs amplification processing and A / D conversion processing on each output signal OS of each photoelectric conversion element. It is converted into digital data including a digital value according to the amount of received light, and each digital data is sequentially transmitted to the processing unit 120. The processing unit 120 receives each digital data sequentially transmitted from the AFE circuit 130, and performs an ink amount detection process and an ink type determination process, which will be described later.

図14は、光電変換デバイス322の機能ブロック図である。光電変換デバイス322は、制御回路3222、昇圧回路3223、画素駆動回路3224、p個の画素部3225、CDS(Correlated Double Sampling)回路3226、サンプルホールド回路3227、出力回路3228を備えている。なお、光電変換デバイス322の構成は図14に限定されず、一部の構成を省略する等の変形実施が可能である。例えば、CDS回路3226、サンプルホールド回路3227、出力回路3228が省略され、AFE回路130においてノイズ低減処理、増幅処理等の対応する処理が行われてもよい。 FIG. 14 is a functional block diagram of the photoelectric conversion device 322. The photoelectric conversion device 322 includes a control circuit 3222, a booster circuit 3223, a pixel drive circuit 3224, p pixel units 3225, a CDS (Correlated Double Sampling) circuit 3226, a sample hold circuit 3227, and an output circuit 3228. The configuration of the photoelectric conversion device 322 is not limited to FIG. 14, and it is possible to carry out modifications such as omitting a part of the configuration. For example, the CDS circuit 3226, the sample hold circuit 3227, and the output circuit 3228 may be omitted, and corresponding processing such as noise reduction processing and amplification processing may be performed in the AFE circuit 130.

光電変換デバイス322は、2つの電源端子VDP,VSPからそれぞれ電源電圧VDD及び電源電圧VSSが供給される。また光電変換デバイス322は、チップイネーブル信号EN_Iと、クロック信号CLKと、基準電圧供給端子VRPから供給される基準電圧VREFとに基づいて動作する。電源電圧VDDは高電位側電源に対応し、例えば3.3Vである。VSSは低電位側電源に対応し、例えば0Vである。チップイネーブル信号EN_Iは、図13のチップイネーブル信号EN1〜ENnのいずれかである。 In the photoelectric conversion device 322, the power supply voltage VDD and the power supply voltage VSS are supplied from the two power supply terminals VDP and VSS, respectively. Further, the photoelectric conversion device 322 operates based on the chip enable signal EN_I, the clock signal CLK, and the reference voltage VREF supplied from the reference voltage supply terminal VRP. The power supply voltage VDD corresponds to the high potential side power supply, and is, for example, 3.3 V. VSS corresponds to the low potential side power supply, for example, 0V. The chip enable signal EN_I is one of the chip enable signals EN1 to ENn in FIG.

チップイネーブル信号EN_I、クロック信号CLKは、制御回路3222に入力される。制御回路3222は、チップイネーブル信号EN_I及びクロック信号CLKに基づいて、昇圧回路3223、画素駆動回路3224、p個の画素部3225、CDS回路3226及びサンプルホールド回路3227の動作を制御する。具体的には、制御回路3222は、昇圧回路3223を制御する制御信号CPC、画素駆動回路3224を制御する制御信号DRC、CDS回路3226を制御する制御信号CDSC、サンプルホールド回路3227を制御するサンプリング信号SMP、画素部3225を制御する画素選択信号SEL0、リセット信号RST及びチップイネーブル信号EN_Oを生成する。 The chip enable signal EN_I and the clock signal CLK are input to the control circuit 3222. The control circuit 3222 controls the operations of the booster circuit 3223, the pixel drive circuit 3224, the p pixel units 3225, the CDS circuit 3226, and the sample hold circuit 3227 based on the chip enable signal EN_I and the clock signal CLK. Specifically, the control circuit 3222 includes a control signal CPC that controls the booster circuit 3223, a control signal DRC that controls the pixel drive circuit 3224, a control signal CDSC that controls the CDS circuit 3226, and a sampling signal that controls the sample hold circuit 3227. The SMP, the pixel selection signal SEL0 that controls the pixel unit 3225, the reset signal RST, and the chip enable signal EN_O are generated.

昇圧回路3223は、制御回路3222からの制御信号CPCに基づいて、電源電圧VDDを昇圧し、昇圧された電源電圧をハイレベルとする転送制御信号Txを生成する。転送制御信号Txは、露光時間Δtの間に光電変換素子による光電変換に基づいて生成された電荷を転送するための制御信号であり、p個の画素部3225に共通に供給される。 The booster circuit 3223 boosts the power supply voltage VDD based on the control signal CPC from the control circuit 3222, and generates a transfer control signal Tx having the boosted power supply voltage as a high level. The transfer control signal Tx is a control signal for transferring the electric charge generated based on the photoelectric conversion by the photoelectric conversion element during the exposure time Δt, and is commonly supplied to the p pixel units 3225.

画素駆動回路3224は、制御回路3222からの制御信号DRCに基づいて、p個の画素部3225を駆動する駆動信号Drvを生成する。p個の画素部3225は1次元方向に並んで設けられており、駆動信号Drvはp個の画素部3225に転送される。そして、i番目(iは1〜pのいずれか)の画素部3225は、駆動信号Drvがアクティブ、かつ、画素選択信号SELi−1がアクティブのときに、画素選択信号SELiをアクティブにして信号を出力する。画素選択信号SELiはi+1番目の画素部3225に出力される。 The pixel drive circuit 3224 generates a drive signal Drv that drives p pixel units 3225 based on the control signal DRC from the control circuit 3222. The p pixel units 3225 are provided side by side in the one-dimensional direction, and the drive signal Drv is transferred to the p pixel units 3225. Then, when the drive signal Drv is active and the pixel selection signal SELi-1 is active, the i-th pixel unit 3225 (i is any of 1 to p) activates the pixel selection signal SELi to generate a signal. Output. The pixel selection signal SELi is output to the i + 1th pixel unit 3225.

p個の画素部3225は、光を受けて光電変換する光電変換素子を含み、それぞれ、転送制御信号Tx、画素選択信号SEL(SEL0〜SELp−1のいずれか)、リセット信号RST及び駆動信号Drvに基づき、光電変換素子が露光時間Δtの間に受けた光に応じた電圧の信号を出力する。p個の画素部3225から出力される信号は、順番にCDS回路3226に転送される。 The p pixel units 3225 include a photoelectric conversion element that receives light and performs photoelectric conversion, and each includes a transfer control signal Tx, a pixel selection signal SEL (any of SEL0 to SELp-1), a reset signal RST, and a drive signal Drv. Based on the above, the photoelectric conversion element outputs a signal having a voltage corresponding to the light received during the exposure time Δt. The signals output from the p pixel units 3225 are sequentially transferred to the CDS circuit 3226.

CDS回路3226は、p個の画素部3225からそれぞれ出力される信号を順番に含む信号Voが入力され、制御回路3222からの制御信号CDSCに基づいて動作する。CDS回路3226は、p個の画素部3225が有する増幅トランジスターの特性ばらつきにより発生し、信号Voに重畳されている雑音を、基準電圧VREFを基準とする相関二重サンプリングによって除去する。すなわち、CDS回路3226は、p個の画素部3225から出力された信号に含まれるノイズを低減するノイズ低減回路である。 The CDS circuit 3226 is input with a signal Vo including signals output from each of the p pixel units 3225 in order, and operates based on the control signal CDSC from the control circuit 3222. The CDS circuit 3226 removes noise generated by variation in the characteristics of the amplification transistors of the p pixel units 3225 and superimposed on the signal Vo by correlated double sampling with reference to the reference voltage VREF. That is, the CDS circuit 3226 is a noise reduction circuit that reduces noise included in the signal output from the p pixel units 3225.

サンプルホールド回路3227は、CDS回路3226によって雑音が除去された信号をサンプリング信号SMPに基づいてサンプリングし、サンプリングした信号をホールドして出力回路3228に出力する。 The sample hold circuit 3227 samples the signal from which noise has been removed by the CDS circuit 3226 based on the sampling signal SMP, holds the sampled signal, and outputs the sampled signal to the output circuit 3228.

出力回路3228は、サンプルホールド回路3227が出力する信号を増幅して出力信号OSを生成する。前述の通り、出力信号OSは出力端子OP1を介して光電変換デバイス322から出力され、AFE回路130に供給される。 The output circuit 3228 amplifies the signal output by the sample hold circuit 3227 to generate an output signal OS. As described above, the output signal OS is output from the photoelectric conversion device 322 via the output terminal OP1 and supplied to the AFE circuit 130.

制御回路3222は、出力回路3228からの出力信号OSの出力が終了する少し前に、ハイパルス信号であるチップイネーブル信号EN_Oを生成し、出力端子OP2から次段の光電変換デバイス322に出力する。ここでのチップイネーブル信号EN_Oは、図13におけるチップイネーブル信号EN2〜ENn+1のいずれかである。その後、制御回路3222は、出力回路3228に出力信号OSの出力を停止させ、さらに出力端子OP1をハイインピーダンスに設定する。 The control circuit 3222 generates a chip enable signal EN_O, which is a high pulse signal, shortly before the output of the output signal OS from the output circuit 3228 ends, and outputs the chip enable signal EN_O from the output terminal OP2 to the photoelectric conversion device 322 in the next stage. The chip enable signal EN_O here is one of the chip enable signals EN2 to ENn + 1 in FIG. After that, the control circuit 3222 stops the output of the output signal OS in the output circuit 3228, and further sets the output terminal OP1 to high impedance.

以上のように、本実施形態のセンサー190は、光電変換デバイス322と、当該光電変換デバイス322に接続されたAFE回路130を含む。このようにすれば、光電変換デバイス322から出力される出力信号OSに基づいて、適切な画素データを出力することが可能になる。出力信号OSはアナログ信号であり、画素データはデジタルデータである。なお、センサー190は、光電変換デバイス322に含まれる光電変換素子の数に対応する数の画素データを出力してもよいが、これには限定されない。図16を用いて後述するように、光電変換デバイス322において複数画素の出力の合計を表す出力信号OSが生成されてもよい。或いは図20等を用いて後述するように、AFE回路130において、複数画素の出力のうちの一部が間引かれてもよいし、複数画素の出力の合計に対応する情報が演算されてもよい。 As described above, the sensor 190 of the present embodiment includes the photoelectric conversion device 322 and the AFE circuit 130 connected to the photoelectric conversion device 322. In this way, it is possible to output appropriate pixel data based on the output signal OS output from the photoelectric conversion device 322. The output signal OS is an analog signal, and the pixel data is digital data. The sensor 190 may output a number of pixel data corresponding to the number of photoelectric conversion elements included in the photoelectric conversion device 322, but the sensor 190 is not limited to this. As will be described later with reference to FIG. 16, the photoelectric conversion device 322 may generate an output signal OS representing the total output of a plurality of pixels. Alternatively, as will be described later with reference to FIG. 20 and the like, in the AFE circuit 130, a part of the outputs of the plurality of pixels may be thinned out, or information corresponding to the total output of the plurality of pixels may be calculated. Good.

2.レンズピッチと画素ピッチ
上述したように、本実施形態のセンサーユニット320は、複数のセルフォックレンズが所定方向に並んで配置されたレンズアレイ325を含む。光電変換デバイス322に含まれる光電変換素子は、レンズアレイ325をからの光を受光することによって、光量に応じた信号を出力する。
2. Lens Pitch and Pixel Pitch As described above, the sensor unit 320 of the present embodiment includes a lens array 325 in which a plurality of selfock lenses are arranged side by side in a predetermined direction. The photoelectric conversion element included in the photoelectric conversion device 322 receives light from the lens array 325 and outputs a signal corresponding to the amount of light.

図15は±Z方向に配置される複数のセルフォックレンズ及び複数の光電変換素子と、レンズアレイ325を通過した後の光量の関係を表す図である。1つのセルフォックレンズは、光軸に沿った方向における光量が多く、光軸から離れるほど光量が小さくなる光量分布を有する。ここでの光軸は、例えばセルフォックレンズの中心を通過し、Y軸に平行な軸である。セルフォックレンズアレイでは、所与のセルフォックレンズの作る像が、その近傍のセルフォックレンズの作る像と重なる。セルフォックレンズアレイの光量は各セルフォックレンズの光量の和となるため、図15に示すように、当該光量はレンズのピッチに対応する周期的なムラを有する。例えば、レンズアレイ325に一様な光量の光が入射した場合であっても、レンズアレイ325を透過した光の光量は±Z方向において周期性を持って変化する。 FIG. 15 is a diagram showing the relationship between a plurality of selfock lenses and a plurality of photoelectric conversion elements arranged in the ± Z direction and the amount of light after passing through the lens array 325. One selfock lens has a light amount distribution in which the amount of light is large in the direction along the optical axis and the amount of light decreases as the distance from the optical axis increases. The optical axis here is, for example, an axis that passes through the center of the selfock lens and is parallel to the Y axis. In a Selfoc lens array, the image produced by a given Selfoc lens overlaps the image produced by a nearby Selfoc lens. Since the amount of light of the Selfock lens array is the sum of the amount of light of each Selfock lens, the amount of light has periodic unevenness corresponding to the pitch of the lens, as shown in FIG. For example, even when a uniform amount of light is incident on the lens array 325, the amount of light transmitted through the lens array 325 changes periodically in the ± Z direction.

本実施形態では、後述するように光電変換デバイス322によって検出される光量に基づいて、インク量検出処理やインク種別の判定処理を行う。光量ムラは、これらの処理の精度を低下させる要因となる。具体的には、光量ムラに起因して、後述する閾値との比較処理等において誤判定が発生するおそれがある。 In the present embodiment, the ink amount detection process and the ink type determination process are performed based on the amount of light detected by the photoelectric conversion device 322 as described later. Light intensity unevenness is a factor that reduces the accuracy of these processes. Specifically, due to the unevenness of the amount of light, there is a possibility that an erroneous determination may occur in the comparison process with the threshold value described later.

レンズアレイ325及び光電変換デバイス322がスキャナーに用いられる場合、シェーディング補正が行われる。シェーディング補正における基準値が光量ムラを含む情報となるため、当該基準値を用いたシェーディング補正を行うことによって、光量ムラを低減可能である。本実施形態においても、シェーディング補正を行うことは妨げられない。ただし、シェーディング補正を行うためには、事前に基準値を測定して不揮発性メモリーに書き込む処理が必要である。そのため、出荷前の工程が増えてしまいコスト増につながる。また処理部120は、センサー190から出力される画素データに対して、基準値を用いた補正処理を行った後に、インク量検出処理等を行う必要がある。そのため、印刷装置の動作時における処理負荷も大きい。 When the lens array 325 and the photoelectric conversion device 322 are used in the scanner, shading correction is performed. Since the reference value in the shading correction is information including the light amount unevenness, the light amount unevenness can be reduced by performing the shading correction using the reference value. Also in this embodiment, shading correction is not hindered. However, in order to perform shading correction, it is necessary to measure the reference value in advance and write it to the non-volatile memory. Therefore, the number of processes before shipping increases, which leads to an increase in cost. Further, the processing unit 120 needs to perform an ink amount detection process or the like after performing a correction process using the reference value on the pixel data output from the sensor 190. Therefore, the processing load during operation of the printing apparatus is also large.

よって本実施形態では、複数のレンズのピッチは、センサー190の画素ピッチのk倍(kは2以上の整数)であってもよい。レンズのピッチとは、レンズアレイ325に含まれるレンズの配置間隔である。具体的には、レンズのピッチとは所与のレンズの基準位置から、隣り合うレンズの基準位置までの距離である。ここでの基準位置はレンズの中心であってもよいし、Z軸における一方側の端点であってもよいし、他の位置であってもよい。図15に示すように、レンズが隙間なく配置されると考えられる場合、レンズのピッチとは1つのレンズのZ軸における長さ、具体的には直径に相当する。センサー190の画素ピッチとは、光電変換デバイス322に含まれる光電変換素子の配置間隔である。具体的には、画素ピッチとは所与の光電変換素子の基準位置から、隣り合う光電変換素子の基準位置までの距離である。 Therefore, in the present embodiment, the pitch of the plurality of lenses may be k times the pixel pitch of the sensor 190 (k is an integer of 2 or more). The lens pitch is the lens arrangement interval included in the lens array 325. Specifically, the lens pitch is the distance from the reference position of a given lens to the reference position of adjacent lenses. The reference position here may be the center of the lens, one end point on the Z axis, or the other position. As shown in FIG. 15, when it is considered that the lenses are arranged without gaps, the pitch of the lenses corresponds to the length of one lens on the Z axis, specifically, the diameter. The pixel pitch of the sensor 190 is the arrangement interval of the photoelectric conversion elements included in the photoelectric conversion device 322. Specifically, the pixel pitch is the distance from the reference position of a given photoelectric conversion element to the reference position of adjacent photoelectric conversion elements.

そして処理部120は、連続するk個の画素の出力の合計に基づいて、インク量を決定する。ここでの画素とは、図14の画素部3225に対応し、光電変換デバイス322における最小単位の出力を表す。具体的には、1つの画素は1つの光電変換素子に対応する。 Then, the processing unit 120 determines the amount of ink based on the total output of k consecutive pixels. The pixel here corresponds to the pixel portion 3225 of FIG. 14, and represents the output of the smallest unit in the photoelectric conversion device 322. Specifically, one pixel corresponds to one photoelectric conversion element.

上述したように、レンズアレイ325の光量ムラは、レンズのピッチに対応する周期性を有する。レンズのピッチを画素ピッチのk倍とすることによって、連続するk個の画素は光量ムラの波長に相当する長さを有する。そのため、連続k画素の出力を合計することによって、光量ムラを低減できる。例えば、図15のA1に示す3画素における光量ムラの発生度合いと、A2に示す3画素における光量ムラの発生度合いとは同等となる。そのため、A1に示す3画素とA2に示す3画素について、それぞれ出力を合計した場合、2つの合計の間では光量ムラに起因する差異が十分低減される。A3、A4に示す3画素の出力の合計についても同様である。なお、処理部120が用いる情報は連続k画素の出力の合計に基づく情報であればよく、合計そのものに限定されない。例えば、処理部120は、連続k画素の出力の平均を用いてインク量を決定してもよい。広義には、処理部120は、k画素の出力の合計を定数倍した情報に基づいてインク量を決定してもよい。ここでの定数は1/kに限定されず、合計に基づく平均以外の情報が用いられてもよい。 As described above, the light intensity unevenness of the lens array 325 has a periodicity corresponding to the pitch of the lens. By setting the pitch of the lens to k times the pixel pitch, k consecutive pixels have a length corresponding to the wavelength of light intensity unevenness. Therefore, unevenness in the amount of light can be reduced by summing the outputs of continuous k pixels. For example, the degree of occurrence of light amount unevenness in the three pixels shown in A1 of FIG. 15 and the degree of occurrence of light amount unevenness in the three pixels shown in A2 are equivalent. Therefore, when the outputs of the three pixels shown in A1 and the three pixels shown in A2 are totaled, the difference due to the uneven light intensity is sufficiently reduced between the two totals. The same applies to the total output of the three pixels shown in A3 and A4. The information used by the processing unit 120 may be information based on the total output of continuous k pixels, and is not limited to the total itself. For example, the processing unit 120 may determine the amount of ink by using the average of the outputs of continuous k pixels. In a broad sense, the processing unit 120 may determine the amount of ink based on the information obtained by multiplying the total output of k pixels by a constant. The constant here is not limited to 1 / k, and information other than the average based on the sum may be used.

ここで、レンズのピッチは、例えば300マイクロメートルである。300マイクロメートルはセルフォックレンズアレイにおいて広く用いられるピッチである。例えば、スキャナーにおいて広く用いられているセルフォックレンズアレイを、本実施形態の手法に適用することが可能である。 Here, the pitch of the lens is, for example, 300 micrometers. 300 micrometers is a widely used pitch in Selfoc lens arrays. For example, a Selfoc lens array widely used in scanners can be applied to the method of this embodiment.

また、kは3以上5以下であってもよい。光電変換素子のサイズは種々の設計が可能である。ただし、過剰に大きい素子を製造することは容易でない。また本実施形態におけるインク量検出処理等においては、極端に高い解像度が必要とならない。例えばスキャナーでは600dpi(dots per inch)、1200dpi、4800dpi等の解像度が用いられることがあるが、本実施形態の解像度はこれより低くてもよい。例えば、250〜430dpi前後の低解像度のスキャナーで用いられる画素ピッチの光電変換デバイス322を用いることによって、部品を流用しつつ、コストを抑制することが可能である。レンズのピッチが300マイクロメートルである場合、画素ピッチは60〜100マイクロメートル程度となる。以下、k=3の例について説明する。 Further, k may be 3 or more and 5 or less. Various designs are possible for the size of the photoelectric conversion element. However, it is not easy to manufacture an excessively large element. Further, in the ink amount detection process and the like in the present embodiment, an extremely high resolution is not required. For example, a scanner may use a resolution of 600 dpi (dots per inch), 1200 dpi, 4800 dpi, or the like, but the resolution of the present embodiment may be lower than this. For example, by using a pixel pitch photoelectric conversion device 322 used in a low-resolution scanner of about 250 to 430 dpi, it is possible to reduce costs while diverting parts. When the pitch of the lens is 300 micrometers, the pixel pitch is about 60 to 100 micrometers. Hereinafter, an example of k = 3 will be described.

センサー190は、1画素単位での画素データを処理部120に出力し、処理部120において、連続するk個の画素について画素データの合計や平均を求める処理を行ってもよい。この場合も、光量ムラを低減することが可能である。 The sensor 190 may output pixel data in units of one pixel to the processing unit 120, and the processing unit 120 may perform processing for obtaining the total or average of the pixel data for k consecutive pixels. In this case as well, it is possible to reduce the unevenness of the amount of light.

或いは、センサー190は、連続k画素の出力の合計に対応する画素データを出力してもよい。このようにすれば、センサー190において、画素データの合計や平均を求める処理が行われる。処理部120において合計や平均を求める場合に比べて、AFE回路130においてSRAMに記憶するデータ量を削減することや、AFE回路130と処理部120との間での通信データ量を削減することが可能になる。データ量の詳細については、図19〜図26を用いて後述する。 Alternatively, the sensor 190 may output pixel data corresponding to the total output of continuous k pixels. In this way, the sensor 190 performs a process of obtaining the total or average of the pixel data. Compared with the case where the processing unit 120 obtains the total or the average, the amount of data stored in the SRAM in the AFE circuit 130 can be reduced, and the amount of communication data between the AFE circuit 130 and the processing unit 120 can be reduced. It will be possible. The details of the amount of data will be described later with reference to FIGS. 19 to 26.

図16は、光電変換デバイス322の構成を示す図である。なお、図14と同様の構成については適宜省略して記載している。図16に示すように、各画素部3225はスイッチを介して出力端子OP1と接続される。なお、図14に示したように、出力端子OP1と画素部3225の間にCDS回路3226等が設けられてもよい。ここでは、9個の画素部を例示しているため、スイッチSW0〜SW8を記載している。各スイッチは、例えばトランジスターによって実現される。スイッチのオンオフは、処理部120からの指示に基づいて制御回路3222が制御する。 FIG. 16 is a diagram showing the configuration of the photoelectric conversion device 322. The same configuration as in FIG. 14 is omitted as appropriate. As shown in FIG. 16, each pixel unit 3225 is connected to the output terminal OP1 via a switch. As shown in FIG. 14, a CDS circuit 3226 or the like may be provided between the output terminal OP1 and the pixel unit 3225. Here, since nine pixel portions are illustrated, switches SW0 to SW8 are described. Each switch is realized by, for example, a transistor. The on / off of the switch is controlled by the control circuit 3222 based on the instruction from the processing unit 120.

制御回路3222は、p個の画素部3225のうち、1番目〜3番目の画素部3225が信号を出力する期間において、スイッチSW0、SW1及びSW2をオンにし、それ以外のスイッチをオフにする。この場合、出力端子OP1から3つの画素部3225の合計に相当するアナログ信号が出力される。当該信号に対して、AFE回路130においてA/D変換処理を行うことによって、連続する3画素の出力の合計に相当する画素データが出力される。なお、画素部3225はアンプを含んでもよい。この場合、アンプのゲインを予め調整することによって、3画素分の合計を出力することも可能であるし、3画素分の平均を出力することも可能である。或いは、AFE回路130に含まれるアンプのゲインを調整してもよい。 The control circuit 3222 turns on the switches SW0, SW1 and SW2 and turns off the other switches during the period when the first to third pixel units 3225 of the p pixel units 3225 output a signal. In this case, an analog signal corresponding to the total of the three pixel units 3225 is output from the output terminal OP1. By performing A / D conversion processing on the signal in the AFE circuit 130, pixel data corresponding to the total output of three consecutive pixels is output. The pixel unit 3225 may include an amplifier. In this case, by adjusting the gain of the amplifier in advance, it is possible to output the total of three pixels, or it is possible to output the average of three pixels. Alternatively, the gain of the amplifier included in the AFE circuit 130 may be adjusted.

同様に、4番目〜6番目の画素部3225が信号を出力する期間において、スイッチSW3、SW4及びSW5をオンにし、それ以外のスイッチをオフにすることによって、次の連続する3画素分の合計が出力される。これ以降も同様であり、k個のスイッチの組を順次オンにする制御を行うことによって、センサー190は連続k画素の出力の合計に対応する画素データを出力できる。この場合、1つの光電デバイス323から出力される出力信号OSは、p/k個の信号を順番に含む信号である。 Similarly, during the period when the 4th to 6th pixel units 3225 output a signal, the switches SW3, SW4 and SW5 are turned on and the other switches are turned off to add up the next three consecutive pixels. Is output. The same applies thereafter, and the sensor 190 can output pixel data corresponding to the total output of continuous k pixels by controlling the k switches to be turned on in sequence. In this case, the output signal OS output from one photoelectric device 323 is a signal including p / k signals in order.

なお、光電変換デバイス322は1画素単位での画素データをAFE回路130に出力し、AFE回路130において、連続するk個の画素について画素データの合計や平均を求める処理を行ってもよい。 The photoelectric conversion device 322 may output pixel data in units of one pixel to the AFE circuit 130, and the AFE circuit 130 may perform a process of obtaining the total or average of the pixel data for k consecutive pixels.

またセンサー190は、1画素単位での出力と、k画素単位での出力を切り替え可能であってもよい。例えば処理部120は、センサー190に対して、1画素単位での出力指示、又はk画素単位での出力指示のいずれかを行う。1画素単位での出力指示を受信した場合、光電変換デバイス322の制御回路3222は、画素部3225に対応して設けられたスイッチを1つずつオンにする。具体的には、アクティブな画素部3225に対応するスイッチのみをオンにし、他のスイッチをオフにする。またk画素単位での出力指示を受信した場合、光電変換デバイス322の制御回路3222は、上述したように、画素部3225に対応して設けられたスイッチをk個組にしてオンにする。このようにすれば、光量ムラをセンサー190において補正するか否かを切り替え可能になる。例えば、処理部120における処理負荷を軽減する場合には、センサー190においてk画素分の出力を合計する。一方、精度を重視する場合には、センサー190は1画素単位での画素データを出力し、処理部120においてシェーディング補正を行う。 Further, the sensor 190 may be capable of switching between an output in units of one pixel and an output in units of k pixels. For example, the processing unit 120 gives an output instruction in units of one pixel or an output instruction in units of k pixels to the sensor 190. When the output instruction in units of one pixel is received, the control circuit 3222 of the photoelectric conversion device 322 turns on the switches provided corresponding to the pixel unit 3225 one by one. Specifically, only the switch corresponding to the active pixel unit 3225 is turned on, and the other switches are turned off. When the output instruction in units of k pixels is received, the control circuit 3222 of the photoelectric conversion device 322 turns on the switches provided corresponding to the pixel unit 3225 in k sets as described above. In this way, it is possible to switch whether or not the sensor 190 corrects the light intensity unevenness. For example, when reducing the processing load in the processing unit 120, the output of k pixels is totaled in the sensor 190. On the other hand, when importance is attached to accuracy, the sensor 190 outputs pixel data in units of one pixel, and the processing unit 120 performs shading correction.

なお、レンズのピッチは例えば300マイクロメートルであり、画素ピッチは例えば100マイクロメートルであり、k=3である。ただし、レンズのピッチ及び画素ピッチには製造誤差が生じるため、レンズのピッチが画素ピッチの整数倍とならない場合がある。上述したように、光量ムラを厳密に補正する場合、レンズのピッチと、画素ピッチのk倍を一致させることが望ましい。このようにすれば、連続k画素が光量ムラの波長に対応するためである。ただし、連続複数画素の合計に対応する画素データを用いることによって、インク量検出処理において問題がない程度に光量ムラを低減可能であることが確認された。よって、本実施形態における「レンズのピッチが画素ピッチのk倍」とは、レンズのピッチが画素ピッチのk倍又は略k倍となるように設計されていればよく、実際のピッチ比が整数倍となっていることに限定されない。例えば、本実施形態におけるレンズのピッチ、画素ピッチ、kはそれぞれ有効数字が一桁である。 The lens pitch is, for example, 300 micrometers, the pixel pitch is, for example, 100 micrometers, and k = 3. However, since a manufacturing error occurs in the lens pitch and the pixel pitch, the lens pitch may not be an integral multiple of the pixel pitch. As described above, when the light amount unevenness is strictly corrected, it is desirable that the pitch of the lens and the k times of the pixel pitch are matched. This is because the continuous k pixels correspond to the wavelengths of uneven light intensity. However, it was confirmed that by using the pixel data corresponding to the total of a plurality of continuous pixels, it is possible to reduce the light amount unevenness to the extent that there is no problem in the ink amount detection process. Therefore, "the lens pitch is k times the pixel pitch" in the present embodiment may be designed so that the lens pitch is k times or substantially k times the pixel pitch, and the actual pitch ratio is an integer. It is not limited to doubling. For example, the lens pitch, pixel pitch, and k in this embodiment each have one significant digit.

異なる言い方をすれば、処理部120は、複数のレンズの各レンズに対応してセンサー190に設けられた連続するk個の画素の出力の合計に基づいて、インク量を決定する。即ち、レンズと連続k画素とは対応関係を有すればよく、厳密に一致する必要はない。 In other words, the processing unit 120 determines the amount of ink based on the total output of k consecutive pixels provided in the sensor 190 corresponding to each lens of the plurality of lenses. That is, the lens and the continuous k pixel need only have a corresponding relationship, and do not have to be exactly the same.

例えばレンズのピッチは、300±40マイクロメートルであってもよい。本実施形態では、レンズのピッチ、又は画素ピッチ、又は2つのピッチの相対的な関係に10%前後の誤差が生じた場合であっても、十分な精度でのインク量検出処理が可能であることが確認されている。 For example, the pitch of the lens may be 300 ± 40 micrometers. In the present embodiment, even when an error of about 10% occurs in the lens pitch, the pixel pitch, or the relative relationship between the two pitches, the ink amount detection process can be performed with sufficient accuracy. It has been confirmed that.

3.インク量検出処理
次に、センサー190の出力に基づいて、インクタンク310に収容されるインクIKの量を決定する処理について説明する。
3. 3. Ink amount detection process Next, a process of determining the amount of ink IK contained in the ink tank 310 based on the output of the sensor 190 will be described.

3.1 基本的なインク量検出処理
図17は、センサー190の出力である画素データを表す波形である。なお、図13を用いて上述したように、光電変換デバイス322の出力信号OSはアナログ信号であり、AFE回路130によるA/D変換によって、デジタルデータである画素データが取得される。
3.1 Basic ink amount detection process FIG. 17 is a waveform representing pixel data output from the sensor 190. As described above with reference to FIG. 13, the output signal OS of the photoelectric conversion device 322 is an analog signal, and pixel data, which is digital data, is acquired by A / D conversion by the AFE circuit 130.

図17の横軸は光電変換デバイス322の長手方向における位置を表し、縦軸は当該位置に設けられる光電変換素子に対応する画素データの値を表す。図17の横軸の数値は、基準位置からの距離をミリメートル単位で表したものである。図17は、光源323として、赤色LED323R、緑色LED323G、青色LED323Bが設けられる例を示している。処理部120は、光電変換デバイス322の画素データとして、RGBの3つの画素データを取得する。 The horizontal axis of FIG. 17 represents the position of the photoelectric conversion device 322 in the longitudinal direction, and the vertical axis represents the value of pixel data corresponding to the photoelectric conversion element provided at the position. The numerical values on the horizontal axis of FIG. 17 represent the distance from the reference position in millimeters. FIG. 17 shows an example in which a red LED 323R, a green LED 323G, and a blue LED 323B are provided as the light source 323. The processing unit 120 acquires three RGB pixel data as pixel data of the photoelectric conversion device 322.

光電変換デバイス322の長手方向が鉛直方向となる場合において、横軸の左方向は−Z方向に対応し、右方向が+Z方向に対応する。光電変換デバイス322とインクタンク310の位置関係が既知であれば、各光電変換素子と、インクタンク310の基準位置からの距離とを対応付けることが可能である。インクタンク310の基準位置とは、例えば、インクタンク310の内側底面に相当する位置である。内側底面とは、想定される最も低いインク液面の位置である。 When the longitudinal direction of the photoelectric conversion device 322 is the vertical direction, the left direction of the horizontal axis corresponds to the −Z direction and the right direction corresponds to the + Z direction. If the positional relationship between the photoelectric conversion device 322 and the ink tank 310 is known, it is possible to associate each photoelectric conversion element with the distance from the reference position of the ink tank 310. The reference position of the ink tank 310 is, for example, a position corresponding to the inner bottom surface of the ink tank 310. The inner bottom surface is the position of the lowest expected ink liquid level.

また1つの光電変換素子に対応する画素データは、例えば8ビットのデータであって、0〜255の範囲の値となる。ただし縦軸の値は正規化処理等が行われた後のデータに置き換えが可能である。当然ながら、8ビットに限定されるものでもなく、4ビットや12ビットなど、他のビットであってもかまわない。 Further, the pixel data corresponding to one photoelectric conversion element is, for example, 8-bit data, and has a value in the range of 0 to 255. However, the value on the vertical axis can be replaced with the data after normalization processing or the like. Of course, the bit is not limited to 8 bits, and other bits such as 4 bits and 12 bits may be used.

上述したように、インクIKが存在しない領域に対応する光電変換素子は相対的に受光する光量が多く、インクIKが存在する領域に対応する光電変換素子は相対的に受光する光量が少ない。図17の例においては、D1に示した範囲において出力データの値が大きく、D3に示した範囲において出力データの値が小さい。そして、D1とD3の間のD2に示した範囲において、位置の変化に対して画素データの値が大きく変化する。即ち、D1の範囲は、インクIKが存在しない蓋然性が高いインク非検出領域である。D3の範囲は、インクIKが存在する蓋然性が高いインク検出領域である。D2の範囲は、インクIKが存在する領域と存在しない領域の境界を表すインク境界領域である。 As described above, the photoelectric conversion element corresponding to the region where the ink IK does not exist has a relatively large amount of light received, and the photoelectric conversion element corresponding to the region where the ink IK exists has a relatively small amount of light received. In the example of FIG. 17, the value of the output data is large in the range shown in D1, and the value of the output data is small in the range shown in D3. Then, in the range shown in D2 between D1 and D3, the value of the pixel data changes significantly with respect to the change in position. That is, the range of D1 is an ink non-detection region with a high probability that ink IK does not exist. The range of D3 is an ink detection region where there is a high probability that ink IK is present. The range of D2 is an ink boundary region representing the boundary between the region where the ink IK exists and the region where the ink IK does not exist.

処理部120は、センサー190が出力する画素データに基づいてインク量検出処理を行う。具体的には、処理部120は、画素データに基づいて、インクIKの液面の位置を検出する。図17に示したように、インクIKの液面は、境界領域D2のいずれかの位置に存在すると考えられる。よって処理部120は、インク非検出領域における画素データの値よりも小さく、且つ、インク検出領域における画素データの値よりも大きい所与の閾値Thに基づいて、インクIKの液面を検出する。 The processing unit 120 performs ink amount detection processing based on the pixel data output by the sensor 190. Specifically, the processing unit 120 detects the position of the liquid surface of the ink IK based on the pixel data. As shown in FIG. 17, it is considered that the liquid level of the ink IK exists at any position in the boundary region D2. Therefore, the processing unit 120 detects the liquid level of the ink IK based on a given threshold value Th that is smaller than the value of the pixel data in the ink non-detection region and larger than the value of the pixel data in the ink detection region.

例えば処理部120は、画素データの最大値をインク非検出領域における画素データの値として特定する。そして処理部120は、特定した値よりも所定量だけ小さい値を閾値Thとして決定する。或いは処理部120は、画素データの最小値をインク検出領域における画素データの値として特定する。そして処理部120は、特定した値よりも所定量だけ大きい値を閾値Thとして決定する。或いは処理部120は、画素データの最大値と最小値の平均等に基づいて閾値Thを決定してもよい。 For example, the processing unit 120 specifies the maximum value of the pixel data as the value of the pixel data in the ink non-detection region. Then, the processing unit 120 determines a value smaller than the specified value by a predetermined amount as the threshold value Th. Alternatively, the processing unit 120 specifies the minimum value of the pixel data as the value of the pixel data in the ink detection region. Then, the processing unit 120 determines a value that is larger than the specified value by a predetermined amount as the threshold value Th. Alternatively, the processing unit 120 may determine the threshold value Th based on the average of the maximum value and the minimum value of the pixel data.

ただし、インクIKの種類、及び光源323の種類が決定されれば、インク液面に相当する画素データの値を予め決定することが可能である。よって処理部120は、その都度、閾値Thを求めるのではなく、あらかじめ決定されている閾値Thを記憶部140から読み出す処理を行ってもよい。 However, once the type of ink IK and the type of light source 323 are determined, it is possible to determine in advance the value of the pixel data corresponding to the ink liquid level. Therefore, the processing unit 120 may perform a process of reading a predetermined threshold value Th from the storage unit 140 instead of obtaining the threshold value Th each time.

閾値Thが取得されたら、処理部120は、出力値がThとなる位置をインクIKの液面位置として検出する。このようにすれば、リニアイメージセンサーである光電変換デバイス322を用いて、インクタンク310に含まれるインク量を検出可能になる。なおThを用いて直接的に求められる情報は、光電変換デバイス322に対するインク液面の相対的な位置である。よって処理部120は、液面の位置に基づいて、インクIKの残量を求める演算を行ってもよい。 When the threshold value Th is acquired, the processing unit 120 detects the position where the output value becomes Th as the liquid level position of the ink IK. In this way, the amount of ink contained in the ink tank 310 can be detected by using the photoelectric conversion device 322 which is a linear image sensor. The information directly obtained using Th is the relative position of the ink liquid level with respect to the photoelectric conversion device 322. Therefore, the processing unit 120 may perform a calculation for obtaining the remaining amount of ink IK based on the position of the liquid surface.

また処理部120は、全ての出力データがThよりも大きい場合、インク量検出の対象範囲にインクが存在しない、即ち液面は光電変換デバイス322の−Z方向の端点よりもさらに低い位置にあると判定する。また処理部120は、全ての出力データがThよりも小さい場合、インク量検出の対象範囲はインクが充填されている、即ち液面は光電変換デバイス322の+Z方向の端点よりもさらに高い位置にあると判定する。もし、液面が光電変換デバイス322の+Z方向の端点よりもさらに高い位置にあるということがありえないのであれば、異常が発生していると判定してもよい。 Further, when all the output data is larger than Th, the processing unit 120 does not have ink in the target range of ink amount detection, that is, the liquid level is further lower than the end point in the −Z direction of the photoelectric conversion device 322. Is determined. Further, when all the output data is smaller than Th, the processing unit 120 is filled with ink in the target range of ink amount detection, that is, the liquid level is at a position higher than the end point in the + Z direction of the photoelectric conversion device 322. Judge that there is. If it is impossible that the liquid level is higher than the end point in the + Z direction of the photoelectric conversion device 322, it may be determined that an abnormality has occurred.

なお、インク量検出処理は、図17の閾値Thを用いた処理に限定されない。例えば処理部120は、図17に示すグラフの傾きを求める処理を行う。傾きとは、具体的には微分値であり、さらに具体的には隣り合う画素データの差分値である。そして処理部120は、傾きが所定閾値よりも大きい点、より具体的には傾きが最大となる位置を液面の位置として検出する。なお処理部120は、求められた傾きの最大値が所与の傾き閾値以下の場合、液面は光電変換デバイス322の−Z方向の端点よりもさらに低い位置、又は、+Z方向の端点よりもさらに高い位置にあると判定する。液面がいずれの側にあるかは、画素データの値から識別可能である。 The ink amount detection process is not limited to the process using the threshold value Th in FIG. For example, the processing unit 120 performs a process of obtaining the slope of the graph shown in FIG. The slope is specifically a differential value, and more specifically is a difference value of adjacent pixel data. Then, the processing unit 120 detects a point where the inclination is larger than the predetermined threshold value, more specifically, a position where the inclination is maximum as the position of the liquid surface. When the maximum value of the obtained inclination is equal to or less than a given inclination threshold value, the processing unit 120 raises the liquid level to a position lower than the end point in the −Z direction of the photoelectric conversion device 322 or from the end point in the + Z direction. It is determined that the position is higher. Which side the liquid level is on can be identified from the value of the pixel data.

図17に示すように波長帯域の異なる複数の光に基づいて、複数の画素データが取得される場合、インク量検出処理は、いずれか1つの画素データに基づいて行われてもよい。或いは処理部120は、各出力データを用いてそれぞれ画素の位置を特定し、特定された位置に基づいて、最終的な液面の位置を決定してもよい。例えば処理部120は、Rの画素データに基づいて求められた液面位置と、Gの画素データに基づいて求められた液面位置と、Bの画素データに基づいて求められた液面位置と、の平均値等を液面位置として決定する。或いは処理部120は、RGBの3つの画素データを合成した合成データを求め、当該合成データに基づいて液面の位置を求めてもよい。合成データとは、例えば各点においてRGBの画素データを平均することによって求められる平均データである。 When a plurality of pixel data are acquired based on a plurality of lights having different wavelength bands as shown in FIG. 17, the ink amount detection process may be performed based on any one pixel data. Alternatively, the processing unit 120 may specify the position of each pixel using each output data, and determine the final position of the liquid level based on the specified position. For example, the processing unit 120 has a liquid level position obtained based on the pixel data of R, a liquid level position obtained based on the pixel data of G, and a liquid level position obtained based on the pixel data of B. The average value of, etc. is determined as the liquid level position. Alternatively, the processing unit 120 may obtain the composite data obtained by synthesizing the three pixel data of RGB, and may obtain the position of the liquid surface based on the composite data. The composite data is, for example, average data obtained by averaging RGB pixel data at each point.

図18は、インク量検出処理を含む処理を説明するフローチャートである。この処理が開始されると、処理部120は、光源323を発光させる制御を行う(S101)。そして光源323が発光する期間において、光電変換デバイス322を用いた読み取り処理を行う(S102)。光源323が複数のLEDを含む場合、処理部120は赤色LED323R、緑色LED323G、青色LED323Bのそれぞれについて、順次S101及びS102の処理を実行する。以上の処理によって、図17に示すRGB3つの画素データが取得される。 FIG. 18 is a flowchart illustrating a process including an ink amount detection process. When this process is started, the process unit 120 controls the light source 323 to emit light (S101). Then, during the period when the light source 323 emits light, a reading process using the photoelectric conversion device 322 is performed (S102). When the light source 323 includes a plurality of LEDs, the processing unit 120 sequentially executes the processes of S101 and S102 for each of the red LED 323R, the green LED 323G, and the blue LED 323B. By the above processing, the three RGB pixel data shown in FIG. 17 are acquired.

次に処理部120は、取得された画素データに基づいてインク量の検出処理を行う(S103)。S103の具体的な処理は、上述したように、閾値Thとの比較処理、傾きの最大値の検出処理等、種々の変形実施が可能である。 Next, the processing unit 120 performs an ink amount detection process based on the acquired pixel data (S103). As described above, the specific processing of S103 can be various modifications such as comparison processing with the threshold value Th and detection processing of the maximum value of the slope.

処理部120は、検出した液面の位置に基づいて、インクタンク310に充填されているインクIKの量を判定する(S104)。例えば処理部120は、あらかじめ「残量大」、「残量小」、「インクエンド」の3段階のインク量を設定しておき、現在のインク量がそのうちのいずれに該当するかを判定する。残量大とは、インクIKが十分な量だけ残っており印刷の継続においてユーザーの対応が不要である状態を表す。残量小とは、印刷の継続自体は可能であるが、インク量が減っておりユーザーによる補充が望ましい状態を表す。インクエンドとは、インク量が著しく減っており、印刷動作を停止すべき状況を表す。 The processing unit 120 determines the amount of ink IK filled in the ink tank 310 based on the detected position of the liquid level (S104). For example, the processing unit 120 sets in advance three levels of ink amount, "large remaining amount", "low remaining amount", and "ink end", and determines which of the three levels of the current ink amount corresponds to. .. The large remaining amount means that a sufficient amount of ink IK remains and no user action is required to continue printing. The low remaining amount means that printing can be continued, but the amount of ink is low and it is desirable for the user to replenish the ink. The ink end represents a situation in which the amount of ink is significantly reduced and the printing operation should be stopped.

S104の処理において残量大と判定された場合(S105)、処理部120は報知等を行わずに処理を終了する。S104の処理において残量小と判定された場合(S106)、処理部120はユーザーにインクIKの補充を促す報知処理を行う(S107)。報知処理は、例えば表示部150にテキストや画像を表示することによって行われる。ただし、報知処理は表示に限定されず、報知用の発光部を発光させることによる報知であってもよいし、スピーカーを用いた音による報知であってもよいし、これらを組み合わせた報知であってもよい。S104の処理においてインクエンドと判定された場合(S108)、処理部120はユーザーにインクIKの補充を促す報知処理を行う(S109)。S109の報知処理は、S107の報知処理と同じ内容であってもよい。ただし、上述したようにインクエンドは印刷動作の継続が難しく、残量小に比べて深刻な状態である。よって処理部120は、S109においてS107とは異なる報知処理を行ってもよい。具体的には、処理部120は、S107の処理に比べて、表示するテキストをユーザーにより強くインクIKの補充を促す内容に変更する、光の発光頻度を高くする、音を大きくする等の処理をS109において実行してもよい。また処理部120は、S109の処理後、印刷動作の停止制御等の不図示の処理を行ってもよい。 When it is determined in the processing of S104 that the remaining amount is large (S105), the processing unit 120 ends the processing without performing notification or the like. When it is determined in the process of S104 that the remaining amount is low (S106), the processing unit 120 performs a notification process for prompting the user to replenish the ink IK (S107). The notification process is performed, for example, by displaying a text or an image on the display unit 150. However, the notification process is not limited to the display, and may be a notification by causing a light emitting unit for notification to emit light, a notification by sound using a speaker, or a combination of these. You may. When the ink end is determined in the processing of S104 (S108), the processing unit 120 performs a notification process for prompting the user to replenish the ink IK (S109). The notification process of S109 may have the same contents as the notification process of S107. However, as described above, it is difficult for the ink end to continue the printing operation, and the ink end is in a more serious state than the remaining amount is small. Therefore, the processing unit 120 may perform a notification process different from that of S107 in S109. Specifically, the processing unit 120 changes the displayed text to a content that strongly prompts the user to replenish the ink IK, increases the frequency of light emission, makes the sound louder, and the like, as compared with the processing of S107. May be executed in S109. Further, the processing unit 120 may perform a process (not shown) such as stop control of the printing operation after the process of S109.

図18に示したインク量検出処理の実行トリガーは種々の設定が可能である。例えば、所与の印刷ジョブの実行開始を実行トリガーとしてもよいし、所定時間の経過を実行トリガーとしてもよい。 The execution trigger of the ink amount detection process shown in FIG. 18 can be set in various ways. For example, the start of execution of a given print job may be used as an execution trigger, or the elapse of a predetermined time may be used as an execution trigger.

また処理部120は、インク量検出処理によって検出されたインク量を記憶部140に記憶してもよい。そして処理部120は、検出されたインク量の時系列変化に基づいて処理を行う。例えば処理部120は、所与のタイミングにおいて検出されたインク量と、それよりも前のタイミングにおいて検出されたインク量の差分に基づいて、インク増加量又はインク減少量を求める。 Further, the processing unit 120 may store the amount of ink detected by the ink amount detection process in the storage unit 140. Then, the processing unit 120 performs processing based on the time-series change of the detected ink amount. For example, the processing unit 120 obtains an ink increase amount or an ink decrease amount based on the difference between the ink amount detected at a given timing and the ink amount detected at a timing earlier than that.

インクIKは印刷やヘッドクリーニング等に用いられるため、インク量が減少することは電子機器10の動作として自然である。ただし、印刷における単位時間あたりのインクIKの消費量や、ヘッドクリーニングの1回あたりのインクIKの消費量はある程度決まっており、極端に消費量が大きい場合、インクの漏れなどの何らかの異常が発生しているおそれがある。 Since the ink IK is used for printing, head cleaning, and the like, it is natural for the electronic device 10 to reduce the amount of ink. However, the amount of ink IK consumed per unit time in printing and the amount of ink IK consumed per head cleaning are fixed to some extent, and if the consumption is extremely large, some abnormality such as ink leakage will occur. There is a possibility that it is.

例えば処理部120は、印刷等において想定される標準インク消費量をあらかじめ求めておく。標準インク消費量は、単位時間あたりの予想インク消費量に基づいて求められてもよいし、1ジョブあたりの予想インク消費量に基づいて求められてもよい。処理部120は、時系列のインク量検出処理に基づいて求められたインク減少量が、標準インク消費量に比べて所定量以上多い場合に異常と判定する。或いは処理部120は、インクIKの吐出回数をカウントすることによってインク消費量を算出する消費量算出処理を行ってもよい。この場合、処理部120は、時系列のインク量検出処理に基づいて求められたインク減少量が、消費量算出処理によって算出されたインク消費量に比べて所定量以上多い場合に異常と判定する。 For example, the processing unit 120 obtains in advance the standard ink consumption expected in printing or the like. The standard ink consumption may be determined based on the estimated ink consumption per unit time, or may be determined based on the estimated ink consumption per job. The processing unit 120 determines that an abnormality occurs when the ink reduction amount obtained based on the time-series ink amount detection processing is larger than a predetermined amount by a predetermined amount or more with respect to the standard ink consumption amount. Alternatively, the processing unit 120 may perform a consumption amount calculation process for calculating the ink consumption amount by counting the number of times the ink IK is ejected. In this case, the processing unit 120 determines that the abnormality is determined when the ink reduction amount obtained based on the time-series ink amount detection process is larger than the ink consumption amount calculated by the consumption amount calculation process by a predetermined amount or more. ..

処理部120は、異常と判定された場合に異常フラグをオンに設定する。このようにすれば、インク量が過剰に減少した場合に、何らかのエラー処理を実行することが可能になる。異常フラグがオンに設定された場合の処理は種々考えられる。例えば、処理部120は異常フラグをトリガーとして、図18に示したインク量検出処理を再度実行してもよい。或いは、処理部120は、異常フラグに基づいてユーザーにインクタンク310の確認を促す報知処理を行ってもよい。 The processing unit 120 sets the abnormality flag to ON when it is determined that there is an abnormality. In this way, it is possible to execute some kind of error processing when the amount of ink is excessively reduced. Various processes can be considered when the abnormality flag is set to ON. For example, the processing unit 120 may re-execute the ink amount detection process shown in FIG. 18 using the abnormality flag as a trigger. Alternatively, the processing unit 120 may perform a notification process that prompts the user to confirm the ink tank 310 based on the abnormality flag.

またインク量は、ユーザーがインクIKを補充することによって増加する。ただし、電子機器10の揺れによる一時的な液面の変化、チューブ105からのインクIKの逆流、光電変換デバイス322の検出誤差等、インクIKが補充されていない場合にもインク量が増加することは考えられる。よって処理部120は、インク増加量が所与の閾値以下である場合、インクIKは補充されておらず、且つ、増加幅も許容可能な誤差の範囲内と判定する。この場合、インク量の変化は正常な状態であると判定されるため、追加の処理は特に行われない。 In addition, the amount of ink increases as the user replenishes the ink IK. However, the amount of ink increases even when the ink IK is not replenished, such as a temporary change in the liquid level due to the shaking of the electronic device 10, backflow of the ink IK from the tube 105, and a detection error of the photoelectric conversion device 322. Can be considered. Therefore, when the ink increase amount is equal to or less than a given threshold value, the processing unit 120 determines that the ink IK is not replenished and the increase width is within an acceptable error range. In this case, since it is determined that the change in the ink amount is in a normal state, no additional processing is particularly performed.

一方、処理部120は、インク増加量が所与の閾値よりも大きい場合、インクが補充されたと判定し、インク補充フラグをオンに設定する。インク補充フラグは、例えば後述するインク種別判定処理の実行トリガーとして用いられる。またインク補充フラグは、消費量算出処理において、初期値をリセットする処理のトリガーとして用いられてもよい。 On the other hand, when the ink increase amount is larger than a given threshold value, the processing unit 120 determines that the ink has been replenished and sets the ink replenishment flag to ON. The ink replenishment flag is used, for example, as an execution trigger of the ink type determination process described later. Further, the ink replenishment flag may be used as a trigger of the process of resetting the initial value in the consumption amount calculation process.

ただし、インク増加量が所与の閾値よりも大きい場合、何らかの異常によって許容できないほど大きい誤差が生じている可能性も否定できない。よって処理部120は、ユーザーに対してインクIKを補充したか否かの入力を求める報知処理を行い、ユーザーの入力結果に基づいて異常フラグを設定するか、インク補充フラグを設定するかを決定してもよい。 However, when the amount of ink increase is larger than a given threshold value, it cannot be denied that some abnormality may cause an unacceptably large error. Therefore, the processing unit 120 performs a notification process for requesting the user to input whether or not the ink IK has been replenished, and determines whether to set the abnormality flag or the ink replenishment flag based on the input result of the user. You may.

3.2 データ量を削減可能なインク量検出処理
図13及び図14を用いて上述したように、光電変換デバイス322の出力信号OSはAFE回路130に送信され、AFE回路130はデジタルデータである画素データを処理部120に送信する。AFE回路130は不図示のメモリーを含み、当該メモリーにA/D変換後の画素データを一時的に蓄積する必要がある。以下、メモリーがSRAMである例について説明する。
3.2 Ink amount detection processing that can reduce the amount of data As described above with reference to FIGS. 13 and 14, the output signal OS of the photoelectric conversion device 322 is transmitted to the AFE circuit 130, and the AFE circuit 130 is digital data. The pixel data is transmitted to the processing unit 120. The AFE circuit 130 includes a memory (not shown), and it is necessary to temporarily store pixel data after A / D conversion in the memory. Hereinafter, an example in which the memory is SRAM will be described.

図19は、インクタンク310と光電変換デバイス322の配置を説明する図である。図9を用いて上述したように、光電変換デバイス322はリニアイメージセンサーであり、長手方向が鉛直方向となるように配置される。即ち、光電変換デバイス322に含まれる複数の光電変換素子は、鉛直方向に並んで配置される。1つのセンサー190に含まれる光電変換デバイス322の数は種々の変形実施が可能であるし、1つの光電変換デバイス322に含まれる光電変換素子の数も種々の変形実施が可能である。即ち、センサー190に含まれる光電変換素子の数は種々の変形実施が可能である。以下、センサー190に含まれる光電変換素子の数をqとする。qは2以上の整数である。 FIG. 19 is a diagram illustrating an arrangement of the ink tank 310 and the photoelectric conversion device 322. As described above with reference to FIG. 9, the photoelectric conversion device 322 is a linear image sensor, and is arranged so that the longitudinal direction is the vertical direction. That is, the plurality of photoelectric conversion elements included in the photoelectric conversion device 322 are arranged side by side in the vertical direction. The number of photoelectric conversion devices 322 included in one sensor 190 can be variously modified, and the number of photoelectric conversion elements included in one photoelectric conversion device 322 can also be variously modified. That is, the number of photoelectric conversion elements included in the sensor 190 can be modified in various ways. Hereinafter, the number of photoelectric conversion elements included in the sensor 190 is defined as q. q is an integer greater than or equal to 2.

例えばAFE回路130は、q個の光電変換素子に基づくq通りの信号を含む出力信号OSを受信し、当該出力信号OSをA/D変換し、A/D変換結果であるq個の画素データをSRAMに書き込む。なお、図15及び図16を用いて上述したように、光電変換デバイス322の出力信号OSが、連続k画素を合計したq/k通りの信号を含む場合も考えられるが、そのような例については後述し、ここでは光電変換デバイス322が1画素単位の出力を行う例について説明する。 For example, the AFE circuit 130 receives an output signal OS including q signals based on q photoelectric conversion elements, A / D converts the output signal OS, and q pixel data which is an A / D conversion result. To the SRAM. As described above with reference to FIGS. 15 and 16, it is conceivable that the output signal OS of the photoelectric conversion device 322 includes q / k signals in which continuous k pixels are totaled. Will be described later, and here, an example in which the photoelectric conversion device 322 outputs in units of one pixel will be described.

1つの画素データを8ビットで表現する場合、AFE回路130に含まれるSRAMは、q×8ビットのデータを記憶可能である必要があり、SRAMのサイズが大きくなってしまう。また、AFE回路130と処理部120との間のインターフェースは、例えばSPI(Serial Peripheral Interface)等のシリアルインターフェースである。そのため、転送データ量が多い場合、通信に要する時間が長くなる。よって本実施形態のセンサー190は、データ量の削減を行ってもよい。以下、具体的な手法について説明する。 When one pixel data is represented by 8 bits, the SRAM included in the AFE circuit 130 needs to be able to store q × 8 bit data, which increases the size of the SRAM. The interface between the AFE circuit 130 and the processing unit 120 is, for example, a serial interface such as an SPI (Serial Peripheral Interface). Therefore, when the amount of transferred data is large, the time required for communication becomes long. Therefore, the sensor 190 of the present embodiment may reduce the amount of data. Hereinafter, a specific method will be described.

3.2.1 読取り領域の指定と2段階読取り
例えば処理部120は、センサー190に対して読取り領域を指定し、センサー190から出力された読取り領域の画素データに基づいて、インク量を決定する。ここでの読取り領域とは、センサー190が光を検出可能な領域のうちの一部の領域を表す。センサー190が光を検出可能な領域とは、光電変換素子が配置される領域である。
3.2.1 Designation of reading area and two-step reading For example, the processing unit 120 designates a reading area for the sensor 190 and determines the amount of ink based on the pixel data of the reading area output from the sensor 190. .. The reading area here represents a part of the area where the sensor 190 can detect light. The region where the sensor 190 can detect light is the region where the photoelectric conversion element is arranged.

なお、本実施形態においては、インクローからインクフルに対応する領域よりも広い範囲に光電変換素子を配置する場合がある。インクローとは検出すべきインクIKの最低量に対応し、インクフルとは検出すべきインクIKの最大量に対応する。以下、インクローからインクフルに対応する領域を検出領域と表記する。 In this embodiment, the photoelectric conversion element may be arranged in a wider range than the region corresponding to the ink low to the ink full. Ink claw corresponds to the minimum amount of ink IK to be detected, and ink full corresponds to the maximum amount of ink IK to be detected. Hereinafter, the area corresponding to the ink low to the ink full is referred to as a detection area.

例えば、検出領域が180個の光電変換素子に相当する範囲である場合に、200個の光電変換素子を有するセンサー190が用いられる。このようにすれば、取り付け誤差によって、インクタンク310に対するセンサーユニット320の相対位置が±Z方向にずれた場合であっても、検出領域を対象としてインク量検出処理を行うことが可能になるためである。ただしこの場合、インク量検出の対象とならない位置に光電変換素子が配置されることになり、当該光電変換素子の出力は処理に用いる必要性が低い。 For example, when the detection region is in the range corresponding to 180 photoelectric conversion elements, the sensor 190 having 200 photoelectric conversion elements is used. In this way, even if the relative position of the sensor unit 320 with respect to the ink tank 310 deviates in the ± Z direction due to the mounting error, it is possible to perform the ink amount detection process for the detection area. Is. However, in this case, the photoelectric conversion element is arranged at a position that is not the target of ink amount detection, and it is less necessary to use the output of the photoelectric conversion element for processing.

本実施形態における読取り領域の指定とは、光電変換素子が設けられる領域のうち、検出領域を指定するものであってもよい。例えばインクタンク310は、センサーユニット320側の壁面の所定位置にマークを有してもよい。処理部120は、センサー190の出力に基づいてマーク位置を検出する。マーク位置と検出領域との関係は既知であるため、処理部120はマークの検出結果に基づいてインク量検出処理の対象範囲を読取り領域として指定する。 The designation of the reading region in the present embodiment may specify the detection region in the region where the photoelectric conversion element is provided. For example, the ink tank 310 may have a mark at a predetermined position on the wall surface on the sensor unit 320 side. The processing unit 120 detects the mark position based on the output of the sensor 190. Since the relationship between the mark position and the detection area is known, the processing unit 120 designates the target range of the ink amount detection process as the reading area based on the mark detection result.

光電変換デバイス322は、上述したとおり1画素単位での出力を行い、AFE回路130は、200個の光電変換素子に基づく200通りの信号を含む出力信号OSを受信する。AFE回路130は、200通りの信号のうち、指定された180個の光電変換素子に対応する信号をA/D変換した画素データをSRAMに保存する。一方AFE回路130は、200通りの信号のうち、指定されていない20個の光電変換素子に対応する信号については、SRAMに保存せずに破棄する。このようにすれば、SRAMに保存するデータ量、及び処理部120に送信するデータ量を削減することが可能である。 The photoelectric conversion device 322 outputs in units of one pixel as described above, and the AFE circuit 130 receives an output signal OS including 200 signals based on 200 photoelectric conversion elements. The AFE circuit 130 stores in SRAM the pixel data obtained by A / D converting the signals corresponding to the 180 designated photoelectric conversion elements out of the 200 types of signals. On the other hand, the AFE circuit 130 discards the signals corresponding to the 20 undesignated photoelectric conversion elements out of the 200 types of signals without storing them in the SRAM. By doing so, it is possible to reduce the amount of data stored in the SRAM and the amount of data transmitted to the processing unit 120.

よりデータ量を削減することを考慮すれば、指定される読取り領域は、検出領域の一部の領域であってもよい。例えば、読取り領域を検出領域の下半分の領域とすることによって、SRAMに保存する画素データを90個に減らすことが可能である。ここでの下とは−Z方向を表す。ただし、検出領域の上半分にインクIKの液面が存在した場合、インク量を適切に検出することができない。具体的には、全ての画素データの値が小さくなってしまい、液面位置を決定できなくなってしまう。 The designated read area may be a part of the detection area in consideration of further reducing the amount of data. For example, by setting the read area as the lower half area of the detection area, it is possible to reduce the number of pixel data stored in the SRAM to 90. Here, the bottom represents the -Z direction. However, if the liquid level of the ink IK is present in the upper half of the detection area, the amount of ink cannot be detected appropriately. Specifically, the values of all the pixel data become small, and the liquid level position cannot be determined.

よって処理部120は、センサー190が出力した低解像度画素データに基づいて、インクIKの液面の位置を推定し、推定した液面の位置を含む領域を読取り領域に指定してもよい。そして処理部120は、センサー190から出力された読取り領域での高解像度画素データに基づいて、インク量を決定する。換言すれば、処理部120は2段階での読取りをセンサー190に指示する。 Therefore, the processing unit 120 may estimate the position of the liquid level of the ink IK based on the low-resolution pixel data output by the sensor 190, and designate a region including the estimated liquid level position as the reading area. Then, the processing unit 120 determines the amount of ink based on the high-resolution pixel data in the reading region output from the sensor 190. In other words, the processing unit 120 instructs the sensor 190 to read in two steps.

まず液面の概略的な位置を推定し、推定した位置に基づいて読取り領域を指定することによって、読取り領域内に液面が存在する蓋然性を高くすることが可能になる。そのため、検出領域の一部が読取り領域から除外された場合であっても、インク量を適切に決定することが可能になる。なお、この場合の読取り領域は、検出領域外の領域を含まないことが望ましい。上述したように、検出領域外の光電変換素子は、取り付け誤差等を考慮して設けられるものであり、検出領域外において液面を検出する必要がないためである。以下、検出領域を180個の光電変換素子に対応する領域とし、その一部の領域を読取り領域として指定する例について説明する。ただしデータ量を削減することを考慮すれば、読取り領域は、光電変換素子が設けられる領域の一部に限定されればよく、読取り領域が検出領域外の領域を含むことも妨げられない。 By first estimating the approximate position of the liquid level and specifying the reading area based on the estimated position, it is possible to increase the probability that the liquid level exists in the reading area. Therefore, even when a part of the detection area is excluded from the reading area, the ink amount can be appropriately determined. The read area in this case preferably does not include an area outside the detection area. As described above, the photoelectric conversion element outside the detection region is provided in consideration of mounting error and the like, and it is not necessary to detect the liquid level outside the detection region. Hereinafter, an example will be described in which the detection region is a region corresponding to 180 photoelectric conversion elements and a part of the region is designated as a reading region. However, in consideration of reducing the amount of data, the reading region may be limited to a part of the region where the photoelectric conversion element is provided, and it is not prevented that the reading region includes a region outside the detection region.

低解像度画素データの取得、及び読取り領域の設定については種々の手法が考えられる。例えば、センサー190は複数の光電変換素子を含み、処理部120は、複数の光電変換素子のうち、一部の光電変換素子からの出力を間引いた画素データを低解像度画素データとして取得してもよい。 Various methods can be considered for acquiring low-resolution pixel data and setting the reading area. For example, the sensor 190 includes a plurality of photoelectric conversion elements, and the processing unit 120 may acquire pixel data obtained by thinning out the output from some of the photoelectric conversion elements as low-resolution pixel data. Good.

図20は、低解像度画素データを取得する手法の説明図である。例えば処理部120は、検出領域を18画素ごとの区間に区分し、各区間について1画素を残し、17画素を間引く指示をセンサー190に行うことによって低解像度画素データを取得する。例えば各区間の最も下の画素を残す場合、処理部120は、検出領域の下から1画素目、19画素目、37画素目、・・・、163画素目を間引かず、他の画素を間引く指示をセンサー190に送信する。AFE回路130は、間引かないという指示が行われた画素の画素データをSRAMに保存し、他の画素データを保存せずに破棄する。この場合、SRAMは10画素分の画素データを保存すればよく、データ量の削減が可能である。以下、この10個の画素データを第1画素データ〜第10画素データと表記する。 FIG. 20 is an explanatory diagram of a method for acquiring low-resolution pixel data. For example, the processing unit 120 acquires low-resolution pixel data by dividing the detection area into sections for every 18 pixels, leaving one pixel for each section, and instructing the sensor 190 to thin out 17 pixels. For example, when the lowest pixel of each section is left, the processing unit 120 does not thin out the first pixel, the 19th pixel, the 37th pixel, ..., The 163rd pixel from the bottom of the detection area, and sets the other pixels. The thinning instruction is transmitted to the sensor 190. The AFE circuit 130 saves the pixel data of the pixel instructed not to thin out in the SRAM, and discards the other pixel data without saving. In this case, the SRAM may store pixel data for 10 pixels, and the amount of data can be reduced. Hereinafter, the 10 pixel data will be referred to as 1st pixel data to 10th pixel data.

液面が図20に示した位置に存在する場合、第1画素データ〜第3画素データは値が閾値以下であるためインク検出領域と判定され、第4画素データ〜第10画素データは値が閾値より大きいためインク非検出領域と判定される。即ち、インクIKの液面は、第3画素データに対応する光電変換素子の位置と、第4画素データに対応する光電変換素子の位置の間にあると推定される。以下、所与の画素データに対応する光電変換素子の位置を、単に画素データの位置と表記する。上記例であれば、検出領域に対応する180画素のうち、液面位置は37画素目〜55画素目の間の区間にあると推定される。以上のように、低解像度画素データを用いることによって、検出領域の広い範囲、狭義には検出領域の全体をカバーした液面推定を行いつつ、データ量を削減することが可能になる。 When the liquid level exists at the position shown in FIG. 20, the values of the 1st pixel data to the 3rd pixel data are determined to be the ink detection area because the values are equal to or less than the threshold value, and the values of the 4th pixel data to the 10th pixel data are high. Since it is larger than the threshold value, it is determined to be an ink non-detection area. That is, it is estimated that the liquid level of the ink IK is between the position of the photoelectric conversion element corresponding to the third pixel data and the position of the photoelectric conversion element corresponding to the fourth pixel data. Hereinafter, the position of the photoelectric conversion element corresponding to the given pixel data is simply referred to as the position of the pixel data. In the above example, the liquid level position is estimated to be in the section between the 37th pixel and the 55th pixel among the 180 pixels corresponding to the detection region. As described above, by using the low-resolution pixel data, it is possible to reduce the amount of data while estimating the liquid level covering a wide range of the detection area, in a narrow sense, the entire detection area.

処理部120は、第3画素データと第4画素データの間に対応する領域を含むように、読取り領域を設定する。ただし、液面位置が37画素目の光電変換素子近傍に位置した場合、第3画素データの値は液面の揺れ等に応じて大きく変化するおそれがある。換言すれば、ノイズによって液面位置が37画素目〜55画素目の間に位置すると誤判定されたのであって、実際の液面位置が37画素目よりも下側に存在することも考えられる。同様に、実際の液面位置が55画素目よりも上側に存在することも考えられる。 The processing unit 120 sets the reading area so as to include a corresponding area between the third pixel data and the fourth pixel data. However, when the liquid level position is located near the photoelectric conversion element of the 37th pixel, the value of the third pixel data may change significantly depending on the fluctuation of the liquid level or the like. In other words, it is erroneously determined that the liquid level position is located between the 37th pixel to the 55th pixel due to noise, and it is possible that the actual liquid level position exists below the 37th pixel. .. Similarly, it is conceivable that the actual liquid level position exists above the 55th pixel.

よって処理部120は、間引き後の画素データである第1画素データ〜第s(sは4以上の整数)画素データのうちの第t(tは2≦t≦s−2を満たす整数)画素データと第t+1画素データの間に液面の位置があると推定した場合、当該領域を拡張した領域を読取り領域として指定する。この拡張した領域を指定するとは、例えばこの場合に、第t−1画素データと第t+2画素データの間の区間を含む領域を読取り領域として指定することである。上記の例であれば、s=10、t=3である。 Therefore, the processing unit 120 is the t (t is an integer satisfying 2 ≦ t ≦ s-2) pixel of the first pixel data to the s (s is an integer of 4 or more) pixel data which is the pixel data after thinning. When it is estimated that there is a liquid level position between the data and the t + 1 pixel data, the area obtained by expanding the area is designated as the reading area. Specifying this expanded area means, for example, in this case, designating an area including a section between the t-1 pixel data and the t + 2 pixel data as a read area. In the above example, s = 10 and t = 3.

図21は、指定される読取り領域の具体例を示す図である。なお、図21では図面の都合上、1区間に含まれる光電変換素子の数が4つとなっているが、上記の例であれば1区間に含まれる光電変換素子の数は18である。処理部120は、第3画素データと第4画素データの間に対応する区間だけでなく、第2画素データと第3画素データの間に対応する区間、及び第4画素データと第5画素データの間に対応する区間についても読取り領域に指定する。例えば、第2画素データに対応する19画素目から、第5画素データに対応する73画素目までに対応する区間が読取り領域に指定される。 FIG. 21 is a diagram showing a specific example of the designated read area. In FIG. 21, for convenience of drawing, the number of photoelectric conversion elements included in one section is four, but in the above example, the number of photoelectric conversion elements included in one section is 18. The processing unit 120 includes not only the section corresponding between the third pixel data and the fourth pixel data, but also the section corresponding between the second pixel data and the third pixel data, and the fourth pixel data and the fifth pixel data. Also specify the corresponding interval between and in the read area. For example, a section corresponding to the 19th pixel corresponding to the second pixel data to the 73rd pixel corresponding to the fifth pixel data is designated as the read area.

なお、液面が第1画素データと第2画素データの間と判定された場合、それよりも下側の領域は存在しないため、処理部120は第1画素データと第3画素データの間の2区間を読取り領域に指定する。同様に、液面が第10画素データよりも上方と判定された場合、処理部120は第9画素データと第10画素データの間、及び第10画素データよりも上方の2区間を読取り領域に指定する。また、検出領域の端点に存在する第1画素データは省略が可能である。第1画素データを省略した場合も、第2画素データの値に基づいて、液面が第2画素データよりも下方であるか否かを判定可能である。 When the liquid level is determined to be between the first pixel data and the second pixel data, there is no region below that, so the processing unit 120 is between the first pixel data and the third pixel data. Specify two sections as the read area. Similarly, when it is determined that the liquid level is above the 10th pixel data, the processing unit 120 sets two sections between the 9th pixel data and the 10th pixel data and above the 10th pixel data as a reading area. specify. Further, the first pixel data existing at the end point of the detection region can be omitted. Even when the first pixel data is omitted, it is possible to determine whether or not the liquid level is lower than the second pixel data based on the value of the second pixel data.

処理部120は、読取り領域での間引かない画素データを、高解像度画素データとして取得する。上述した例であれば、AFE回路130は、処理部120からの読取り領域の指定に基づいて、1〜18画素目の情報を破棄し、19画素目〜73画素目に対応する55画素分の画素データをSRAMに保存し、74画素目〜180画素目の情報を破棄する。処理部120は、AFE回路130から55個の画素データを高解像度画素データとして取得し、図17を用いて上述したように閾値判定等の処理を行うことによって、液面位置を決定する。 The processing unit 120 acquires pixel data that is not thinned out in the reading area as high-resolution pixel data. In the above example, the AFE circuit 130 discards the information of the 1st to 18th pixels based on the designation of the reading area from the processing unit 120, and the AFE circuit 130 discards the information of the 55 pixels corresponding to the 19th to 73rd pixels. The pixel data is saved in the SRAM, and the information of the 74th pixel to the 180th pixel is discarded. The processing unit 120 acquires 55 pixel data from the AFE circuit 130 as high-resolution pixel data, and determines the liquid level position by performing processing such as threshold value determination as described above using FIG.

図22は、図20及び図21に示した手法を用いたインク量検出処理を説明するフローチャートである。この処理が開始されると、まず処理部120は低解像度画素データの出力をセンサー190に指示する(S201)。間引く画素と間引かれない画素を特定する情報は、例えば記憶部140に記憶されており、処理部120は当該情報を読み出すことによってS201の指示を行う。センサー190は、処理部120からの指示に基づいて低解像度画素データを出力する。処理部120は、センサー190から低解像度画素データを取得する(S202)。 FIG. 22 is a flowchart illustrating an ink amount detection process using the methods shown in FIGS. 20 and 21. When this process is started, the process unit 120 first instructs the sensor 190 to output low-resolution pixel data (S201). Information for identifying the pixels to be thinned out and the pixels to be thinned out is stored in, for example, the storage unit 140, and the processing unit 120 gives an instruction in S201 by reading the information. The sensor 190 outputs low-resolution pixel data based on an instruction from the processing unit 120. The processing unit 120 acquires low-resolution pixel data from the sensor 190 (S202).

次に処理部120は、低解像度画素データに基づいて液面の概略的な位置を推定する(S203)。S203の処理は、例えば上述したように、間引き後の画素データと閾値との比較処理である。処理部120は、推定された液面の位置に基づいて、高解像度画素データの取得に用いられる読取り領域を設定する(S204)。 Next, the processing unit 120 estimates the approximate position of the liquid level based on the low-resolution pixel data (S203). The process of S203 is, for example, as described above, a process of comparing the pixel data after thinning out with the threshold value. The processing unit 120 sets a reading area used for acquiring high-resolution pixel data based on the estimated liquid level position (S204).

処理部120は、センサー190に読取り領域を指示する(S205)。具体的には、読取り領域において、画素を間引かない高解像度画素データを出力する指示を、センサー190に対して行う。センサー190は、処理部120からの指示に基づいて高解像度画素データを出力する。処理部120は、センサー190から高解像度画素データを取得する(S206)。 The processing unit 120 indicates the reading area to the sensor 190 (S205). Specifically, in the reading area, the sensor 190 is instructed to output high-resolution pixel data without thinning out the pixels. The sensor 190 outputs high-resolution pixel data based on an instruction from the processing unit 120. The processing unit 120 acquires high-resolution pixel data from the sensor 190 (S206).

処理部120は、取得した高解像度画素データに基づいて、精度の高い液面位置を決定する(S207)。S207の処理は図18のS103と同様であり、画素データの値と閾値の比較、或いは画素データの傾きと閾値の比較等の処理である。 The processing unit 120 determines the liquid level position with high accuracy based on the acquired high-resolution pixel data (S207). The process of S207 is the same as that of S103 of FIG. 18, and is a process of comparing the value of the pixel data and the threshold value, or comparing the slope of the pixel data and the threshold value.

また、液面の概略的な位置を推定するための低解像度画素データは、一部の画素を間引くことによって取得される画素データに限定されない。例えば、複数画素の出力の合計や平均に相当する情報を含む画素データを、低解像度画素データとしてもよい。 Further, the low-resolution pixel data for estimating the approximate position of the liquid surface is not limited to the pixel data acquired by thinning out some pixels. For example, pixel data including information corresponding to the total or average of the outputs of a plurality of pixels may be used as low-resolution pixel data.

図23は、2段階読取りを行う他の手法を説明する図である。図23に示すように、センサー190が読み取り可能な領域に第1領域と、第2領域と、第1領域の一部及び第2領域の一部と重複する第3領域とが設定される。なお、センサー190が読み取り可能な領域は、光電変換素子が設けられる領域全体であってもよいし、検出領域であってもよい。図23の例においては、B1に示す第1領域は検出領域の下半分の領域であり、B2に示す第2領域は検出領域R2の上半分の領域である。B3に示す第3領域はその下半分が第1領域と重複し、その上半分が第2領域と重複する。より具体的には、第1領域は1画素目〜90画素目であり、第2領域は91画素目〜180画素目であり、第3領域は46画素目〜135画素目である。ただし、各領域の具体的な範囲については種々の変形実施が可能である。 FIG. 23 is a diagram illustrating another method of performing two-step reading. As shown in FIG. 23, a first region, a second region, and a third region that overlaps a part of the first region and a part of the second region are set in the region that can be read by the sensor 190. The area that can be read by the sensor 190 may be the entire area where the photoelectric conversion element is provided, or may be a detection area. In the example of FIG. 23, the first region shown in B1 is the lower half region of the detection region, and the second region shown in B2 is the upper half region of the detection region R2. The lower half of the third region shown in B3 overlaps with the first region, and the upper half overlaps with the second region. More specifically, the first region is the first pixel to the 90th pixel, the second region is the 91st pixel to the 180th pixel, and the third region is the 46th pixel to the 135th pixel. However, various modifications can be made for the specific range of each region.

図23の例における低解像度画素データは、第1領域に含まれる光電変換素子の出力の合計に基づく第1データ、第2領域に含まれる光電変換素子の出力の合計に基づく第2データ、及び第3領域に含まれる光電変換素子の出力の合計に基づく第3データを含む。 The low-resolution pixel data in the example of FIG. 23 includes the first data based on the total output of the photoelectric conversion elements included in the first region, the second data based on the total output of the photoelectric conversion elements included in the second region, and the second data. Includes third data based on the sum of the outputs of the photoelectric conversion elements included in the third region.

例えば、第1データは、1画素目〜90画素目までの90個の画素データの合計や平均等である。光電変換デバイス322は、上述したように180個の光電変換素子に対応する信号を含む出力信号OSをAFE回路130に出力する。AFE回路130は、出力信号OSに含まれる180個のアナログ信号を順次A/D変換する。 For example, the first data is the total or average of 90 pixel data from the first pixel to the 90th pixel. As described above, the photoelectric conversion device 322 outputs an output signal OS including signals corresponding to 180 photoelectric conversion elements to the AFE circuit 130. The AFE circuit 130 sequentially A / D-converts 180 analog signals included in the output signal OS.

AFE回路130は、例えばデジタル加算器を含み、1画素目〜90画素目の画素データを順次加算し、加算結果のみをSRAMに記憶する。90個の画素データの合計は0〜255×90の範囲の値となるため、15ビットで表現可能である。90画素目の画素データまでを加算することによって、第1領域の出力の合計が演算される。AFE回路130は、合計を第1データとして処理部120に出力してもよいし、平均を求める演算を行い、求められた平均を第1データとして処理部120に出力してもよい。同様にAFE回路130は、91画素目〜180画素目の画素データを順次加算し、加算結果のみをSRAMに記憶することによって第2データを求める。AFE回路130は、46画素目〜135画素目の画素データを順次加算し、加算結果のみをSRAMに記憶することによって第3データを求める。 The AFE circuit 130 includes, for example, a digital adder, sequentially adds pixel data of the first pixel to the 90th pixel, and stores only the addition result in the SRAM. Since the total of 90 pixel data is a value in the range of 0 to 255 × 90, it can be expressed by 15 bits. By adding up to the pixel data of the 90th pixel, the total output of the first region is calculated. The AFE circuit 130 may output the total as the first data to the processing unit 120, or may perform an operation for obtaining the average and output the obtained average as the first data to the processing unit 120. Similarly, the AFE circuit 130 sequentially adds the pixel data of the 91st pixel to the 180th pixel, and obtains the second data by storing only the addition result in the SRAM. The AFE circuit 130 sequentially adds the pixel data of the 46th pixel to the 135th pixel, and obtains the third data by storing only the addition result in the SRAM.

例えばAFE回路130は、1画素目〜45画素目については第1データを求める加算処理を行う。46画素目〜90画素目については2つのデジタル加算器を用いることによって、第1データを求める加算処理と第3データを求める加算処理を並列に行う。91画素目〜135画素目については2つのデジタル加算器を用いることによって、第3データを求める加算処理と第2データを求める加算処理を並列に行う。この範囲では第1データの加算処理は完了しているため、第1データ用の加算器を第2データを求める加算処理に流用可能である。136画素目〜180画素目については第2データを求める加算処理を行う。この場合、SRAMは3つの加算結果を保持すればよく、例えば3×15ビットの領域を有すれば足りる。即ち8ビットの画素データを180個保持する場合に比べてデータ量の削減が可能である。なお、以上ではデジタル的に加算処理を行う例を示したが、AFE回路130が、アナログ的に加算処理を行うことは妨げられない。 For example, the AFE circuit 130 performs an addition process for obtaining the first data for the first pixel to the 45th pixel. For the 46th to 90th pixels, two digital adders are used to perform an addition process for obtaining the first data and an addition process for obtaining the third data in parallel. By using two digital adders for the 91st pixel to the 135th pixel, the addition process for obtaining the third data and the addition process for obtaining the second data are performed in parallel. Since the addition process of the first data is completed in this range, the adder for the first data can be diverted to the addition process for obtaining the second data. For the 136th to 180th pixels, an addition process for obtaining the second data is performed. In this case, the SRAM may hold three addition results, for example, it suffices to have an area of 3 × 15 bits. That is, the amount of data can be reduced as compared with the case where 180 8-bit pixel data are held. Although the example of digitally performing the addition processing has been shown above, it is not prevented that the AFE circuit 130 performs the addition processing in an analog manner.

処理部120は、第1データ、第2データ及び第3データに基づいて、読取り領域を指定する。以下、第1〜第3データが平均である例について説明する。 The processing unit 120 designates a read area based on the first data, the second data, and the third data. Hereinafter, an example in which the first to third data are averages will be described.

第1領域が全てインク検出領域に含まれる場合、第1領域に対応する全画素データの値が十分小さくなるため、第1データも小さい値となる。一方、第1領域が全てインク非検出領域に含まれる場合、第1領域に対応する全画素データの値が十分大きくなるため、第1データも大きい値となる。なお説明を簡略化するため、インク検出領域における画素データの値は0に正規化され、インク非検出領域における画素データの値は255に正規化されるものとする。この場合、第1領域が全てインク検出領域であれば第1データは0となり、第1領域が全てインク非検出領域であれば第1データは255となる。 When the first region is entirely included in the ink detection region, the value of all pixel data corresponding to the first region is sufficiently small, so that the first data is also a small value. On the other hand, when all the first regions are included in the ink non-detection region, the values of all pixel data corresponding to the first region are sufficiently large, so that the first data is also large. In order to simplify the explanation, it is assumed that the pixel data value in the ink detection region is normalized to 0 and the pixel data value in the ink non-detection region is normalized to 255. In this case, if the first region is all the ink detection region, the first data is 0, and if the first region is all the ink non-detection region, the first data is 255.

液面が第1領域内のいずれかの位置である場合、第1領域の1画素目〜所定画素目までの画素データが0となり、それよりも上側の画素データが255となる。平均である第1データは、0と255の間の値となり、その値は液面の高さに応じて変化する。例えば液面が第1領域の中央である場合、0となる画素データの数と255となる画素データの数が同等になるため、第1データは128程度の値となる。第2領域及び第3領域についても同様であり、第2データと第3データの値に応じて、各領域内での液面の位置を推定できる。 When the liquid level is at any position in the first region, the pixel data from the first pixel to the predetermined pixel in the first region becomes 0, and the pixel data above it becomes 255. The first data, which is the average, is a value between 0 and 255, and the value changes according to the height of the liquid level. For example, when the liquid level is in the center of the first region, the number of pixel data to be 0 and the number of pixel data to be 255 are equal, so that the value of the first data is about 128. The same applies to the second region and the third region, and the position of the liquid level in each region can be estimated according to the values of the second data and the third data.

処理部120は、第1〜第3データの関係に基づいて、読取り領域を決定する。例えば処理部120は、液面の推定位置がB4よりも下、B4とB5の間、B5よりも上のいずれであるかを判定する。B4は、第1領域と第3領域の重複部分の中央近傍の位置である。この場合、第1データは50程度、第2データは255程度、第3データは200程度の値となる。またB5は、第2領域と第3領域の重複部分の中央近傍の位置である。この場合、第1データは0程度、第2データは200程度、第3データは50程度の値となる。これらの値と、実際の第1〜第3データを比較することによって、液面の推定位置がB4よりも下、B4とB5の間、B5よりも上のいずれであるかを判定可能である。 The processing unit 120 determines the read area based on the relationship between the first to third data. For example, the processing unit 120 determines whether the estimated position of the liquid level is below B4, between B4 and B5, or above B5. B4 is a position near the center of the overlapping portion of the first region and the third region. In this case, the first data has a value of about 50, the second data has a value of about 255, and the third data has a value of about 200. Further, B5 is a position near the center of the overlapping portion of the second region and the third region. In this case, the value of the first data is about 0, the value of the second data is about 200, and the value of the third data is about 50. By comparing these values with the actual first to third data, it is possible to determine whether the estimated position of the liquid level is below B4, between B4 and B5, or above B5. ..

なお、図17を用いて上述したように、センサー190が出力する画素データは、インクIKの液面において0から255に急激に変化するものではなく、中間的な値をとる領域が存在する。また図28〜図33等を用いて後述するように、具体的な波形はインクIKの種別や光の波長帯域によっても異なる。第1データは第1領域における合計や平均であるため、±Z方向における詳細な情報は失われており、第1データのみから精度の高い液面位置の推定は困難である。同様に、第2データ単体又は第3データ単体を用いた高精度な液面推定は容易でない。その点、上述したように第1〜第3データをそれぞれ求め、その関係を比較することによって、液面位置の推定精度向上が可能であるため、適切な読取り領域を設定できる。例えば処理部120は、第1データ〜第3データの大小関係、第1データと第2データの比、第1データと第3データの比、第2データと第3データの比、等に基づいて、液面位置を推定する。 As described above with reference to FIG. 17, the pixel data output by the sensor 190 does not suddenly change from 0 to 255 at the liquid level of the ink IK, and there is a region that takes an intermediate value. Further, as will be described later with reference to FIGS. 28 to 33 and the like, the specific waveform differs depending on the type of ink IK and the wavelength band of light. Since the first data is the total or average in the first region, detailed information in the ± Z direction is lost, and it is difficult to estimate the liquid level position with high accuracy only from the first data. Similarly, it is not easy to estimate the liquid level with high accuracy using the second data alone or the third data alone. In that respect, since it is possible to improve the estimation accuracy of the liquid level position by obtaining the first to third data respectively and comparing the relationships as described above, an appropriate reading area can be set. For example, the processing unit 120 is based on the magnitude relationship between the first data to the third data, the ratio between the first data and the second data, the ratio between the first data and the third data, the ratio between the second data and the third data, and the like. To estimate the liquid level position.

図23に示したように、第1領域はインクローに対応する液面の位置を含む領域であり、第2領域はインクフルに対応する液面の位置を含む領域である。処理部120は、第1データ、第2データ及び第3データに基づいて、第1領域、第2領域及び第3領域のいずれか1つに対応する領域を読取り領域として指定してもよい。 As shown in FIG. 23, the first region is a region including the position of the liquid surface corresponding to the ink low, and the second region is a region including the position of the liquid surface corresponding to the ink full. The processing unit 120 may designate an area corresponding to any one of the first area, the second area, and the third area as the reading area based on the first data, the second data, and the third data.

図23に示す例では、第1〜第3領域によって検出領域がカバーされる。そのため、液面位置が検出領域のいずれの位置であっても、第1〜第3領域のいずれかを読取り領域とすることによって、液面位置を精度よく決定可能である。第1領域と第2領域のみが設定される場合、液面が第1領域と第2領域の境界近傍にあった場合、実際の液面が読取り領域から外れてしまうおそれがある。しかし第3領域を設けることによって、このような場合にも適切な読取り領域を設定可能である。具体的には、液面の推定位置がB4よりも下である場合、第1領域を読取り領域とする。推定位置がB4とB5の間である場合、第3領域を読取り領域とする。推定位置がB5よりも上である場合、第2領域を読取り領域とする。なお、実際の読取り領域は第1領域〜第3領域のいずれか1つの領域と一致する必要はなく、いずれかの領域に略等しい領域が読取り領域に設定されてもよい。 In the example shown in FIG. 23, the detection region is covered by the first to third regions. Therefore, regardless of the position of the liquid level in the detection region, the liquid level position can be accurately determined by setting any of the first to third regions as the reading region. When only the first region and the second region are set, if the liquid level is near the boundary between the first region and the second region, the actual liquid level may deviate from the reading region. However, by providing the third area, an appropriate read area can be set even in such a case. Specifically, when the estimated position of the liquid level is lower than B4, the first region is set as the reading region. When the estimated position is between B4 and B5, the third area is set as the reading area. When the estimated position is above B5, the second area is set as the reading area. The actual read area does not have to match any one of the first to third areas, and an area substantially equal to any one of the areas may be set as the read area.

図23における処理の流れについても図22と同様である。ただし、低解像度画素データとして第1〜第3データが用いられる(S201,S202)。また、液面位置の推定は、上述したように第1〜第3データの組に基づいて判定される(S203)。また、読取り領域は、第1〜第3領域のいずれかに対応する領域である(S204)。読取り領域決定後の処理は同様であり、処理部120は、読取り領域において画素を間引かないデータを高解像度画素データとして液面を決定する処理を実行する。 The processing flow in FIG. 23 is the same as in FIG. 22. However, the first to third data are used as the low resolution pixel data (S201, S202). Further, the estimation of the liquid level position is determined based on the set of the first to third data as described above (S203). The read area is an area corresponding to any of the first to third areas (S204). The process after determining the reading area is the same, and the processing unit 120 executes a process of determining the liquid level using the data in which the pixels are not thinned out in the reading area as high-resolution pixel data.

図23に示す手法を用いる場合にも、検出領域全域を対象として概略的な液面位置を推定すること、及び、適切な読取り領域を設定することによって高精度な液面位置を決定することが可能になる。その際、1回目の読取りでは低解像度画素データを用い、高解像度画素データを用いる2回目の読取りの際には読取り領域を限定するため、データ量の削減が可能である。 Even when the method shown in FIG. 23 is used, it is possible to estimate the approximate liquid level position over the entire detection area and determine the liquid level position with high accuracy by setting an appropriate reading area. It will be possible. At that time, since the low-resolution pixel data is used in the first reading and the reading area is limited in the second reading using the high-resolution pixel data, the amount of data can be reduced.

なお、図23においては検出領域に第1〜第3領域の3つの領域が設定される例について説明した。ただし本実施形態の処理はこれに限定されない。例えば、検出領域に第1領域〜第5領域の5つの領域が設定されてもよい。第1領域〜第3領域は検出領域を3つに区分する。例えば第1領域は1画素目〜60画素目、第2領域は61画素目〜120画素目、第3領域は121画素目〜180画素目である。第4領域は、第1領域の一部及び第2領域の一部に重複し、第5領域は、第2領域の一部及び第3領域の一部に重複する。第4領域は31画素目〜90画素目であり、第5領域は91画素目〜150画素目である。処理部120は、各領域の合計に対応する第1〜第5データに基づいて、第1領域〜第5領域のいずれかに対応する領域を読取り領域に設定する。このようにしても、データ量を削減しつつ、適切なインク量検出処理を実行することが可能である。また、設定される領域は2×j+1(jは1以上の整数)に拡張可能である。 In addition, in FIG. 23, an example in which three regions of the first to third regions are set as the detection region has been described. However, the processing of this embodiment is not limited to this. For example, five regions, a first region to a fifth region, may be set as the detection region. The first to third regions divide the detection region into three. For example, the first region is the first pixel to the 60th pixel, the second region is the 61st pixel to the 120th pixel, and the third region is the 121st pixel to the 180th pixel. The fourth region overlaps a part of the first region and a part of the second region, and the fifth region overlaps a part of the second region and a part of the third region. The fourth region is the 31st to 90th pixels, and the fifth region is the 91st to 150th pixels. The processing unit 120 sets the area corresponding to any of the first area to the fifth area as the reading area based on the first to fifth data corresponding to the total of each area. Even in this way, it is possible to execute an appropriate ink amount detection process while reducing the amount of data. Further, the set area can be expanded to 2 × j + 1 (j is an integer of 1 or more).

3.2.2 1回読取り
またインク量検出処理におけるデータ量削減は、上記の手法に限定されない。例えば処理部120は、第1読取り領域においてセンサー190が出力した低解像度画素データと、第1読取り領域以外の第2読取り領域においてセンサー190が出力した高解像度画素データに基づいて、インク量を決定する。このように、低解像度画素データを出力する領域と高解像度画素データを出力する領域をそれぞれ設定することによって、全領域について高解像度画素データを用いる場合に比べてデータ量を削減できる。第1読取り領域及び第2読取り領域は、それぞれセンサー190が読み取り可能な領域のうちの一部の領域であり、狭義には検出領域の一部の領域である。また第2読取り領域は、第1読取り領域と異なる領域であって、具体的には第1読取り領域と重複しない領域である。さらに具体的には、第2読取り領域は、センサー190が読み取り可能な領域又は検出領域のうち、第1読取り領域以外の領域である。
3.2.2 Reading once The data amount reduction in the ink amount detection process is not limited to the above method. For example, the processing unit 120 determines the amount of ink based on the low-resolution pixel data output by the sensor 190 in the first reading area and the high-resolution pixel data output by the sensor 190 in the second reading area other than the first reading area. To do. In this way, by setting the area for outputting the low-resolution pixel data and the area for outputting the high-resolution pixel data, the amount of data can be reduced as compared with the case where the high-resolution pixel data is used for the entire area. The first read area and the second read area are each a part of the area that can be read by the sensor 190, and in a narrow sense, a part of the detection area. The second read area is an area different from the first read area, and specifically, is an area that does not overlap with the first read area. More specifically, the second read area is an area other than the first read area in the area that can be read by the sensor 190 or the detection area.

具体的には、センサー190は、1回の読取りによって、低解像度画素データと高解像度画素データを出力する。このようにすれば、図20〜図23を用いて上述した2段階での読取りに比べて、インク量検出処理に要する時間を短縮することが可能である。 Specifically, the sensor 190 outputs low-resolution pixel data and high-resolution pixel data by one reading. By doing so, it is possible to shorten the time required for the ink amount detection process as compared with the two-step reading described above using FIGS. 20 to 23.

図24は、第1読取り領域と第2読取り領域の設定例である。図24のC1が第1読取り領域に対応し、C2が第2読取り領域に対応する。図24に示すように、第2読取り領域は、インクローに対応する液面の位置を含む領域である。ここでインクローは、インクタンク310内のインクIKが所与の量よりも少ない状態を表し、狭義には検出すべきインクIKの最低量に対応する。インクローは、例えば図18において上述したインクエンドである。インクタンク310内のインクIKがなくなった場合、インクIKが印刷媒体Pに吐出されなくなるため、損紙が発生するおそれがある。また、印刷ヘッド107において空打ちが発生するため、吐出不良等のヘッド故障の要因となる。図24に示すように第2読取り領域を設定することによって、高解像度画素データを用いてインクローを精度よく検出することが可能になり、損紙やヘッド故障を抑制可能である。なお図24に示すように、高解像度画素データは画素を間引かない画素データである。 FIG. 24 is a setting example of the first read area and the second read area. C1 in FIG. 24 corresponds to the first read area, and C2 corresponds to the second read area. As shown in FIG. 24, the second reading region is a region including the position of the liquid level corresponding to the inclaw. Here, the ink low represents a state in which the amount of ink IK in the ink tank 310 is less than a given amount, and in a narrow sense, corresponds to the minimum amount of ink IK to be detected. The ink claw is, for example, the ink end described above in FIG. When the ink IK in the ink tank 310 runs out, the ink IK is not ejected to the print medium P, so that there is a possibility that waste paper may occur. In addition, since blank printing occurs in the print head 107, it causes head failure such as ejection failure. By setting the second reading area as shown in FIG. 24, it is possible to accurately detect the ink row using high-resolution pixel data, and it is possible to suppress paper loss and head failure. As shown in FIG. 24, the high resolution pixel data is pixel data in which pixels are not thinned out.

また処理部120は、複数の光電変換素子のうち、一部の光電変換素子からの出力を間引いた画素データを低解像度画素データとして取得してもよい。例えば図21を用いて上述した例と同様に、センサー190は、第1読取り領域に含まれる画素を所定画素ずつの区間に区分し、各区間から1画素を残し、他の画素を間引くことによって低解像度画素データを出力する。 Further, the processing unit 120 may acquire pixel data obtained by thinning out the outputs from some of the photoelectric conversion elements among the plurality of photoelectric conversion elements as low-resolution pixel data. For example, in the same manner as in the above-described example using FIG. 21, the sensor 190 divides the pixels included in the first reading area into sections of predetermined pixels, leaves one pixel from each section, and thins out the other pixels. Outputs low resolution pixel data.

処理部120は、センサー190に対して第1読取り領域及び第2読取り領域を指定する処理を行う。図24の例であれば、処理部120は第1読取り領域と第2読取り領域の境界である境界画素を指定する。図24における境界はC3に対応する。例えばセンサー190が下側の画素から上側の画素に向かって順次画素データを取得する場合、処理部120は、最初の画素から境界までの画素データを間引かずに出力し、境界よりも上方の画素については、一部の画素を間引いた低解像度画素データを出力する指示をセンサー190に行う。 The processing unit 120 performs a process of designating the first reading area and the second reading area for the sensor 190. In the example of FIG. 24, the processing unit 120 specifies a boundary pixel that is a boundary between the first reading area and the second reading area. The boundary in FIG. 24 corresponds to C3. For example, when the sensor 190 sequentially acquires pixel data from the lower pixel to the upper pixel, the processing unit 120 outputs the pixel data from the first pixel to the boundary without thinning out, and is above the boundary. As for the pixels, the sensor 190 is instructed to output low-resolution pixel data obtained by thinning out some pixels.

このようにすれば、処理部120からの指示に基づいて、センサー190は適切な低解像度画素データと高解像度画素データを出力することが可能になる。なお、境界画素の位置や、第1読取り領域において間引かれる画素の比率等は固定の値が用いられてもよいし、処理部120において動的に変更可能であってもよい。 In this way, the sensor 190 can output appropriate low-resolution pixel data and high-resolution pixel data based on the instruction from the processing unit 120. A fixed value may be used for the position of the boundary pixel, the ratio of the pixels thinned out in the first reading region, and the like, or the processing unit 120 may dynamically change the position.

また第1読取り領域と第2読取り領域の設定は図24に限定されない。図25の例においては、E1が第1読取り領域に対応し、E2及びE3が第2読取り領域に対応する。第1読取り領域と第2読取り領域の境界は、E4及びE5である。図25に示すように、第2読取り領域は、インクフルに対応する液面の位置を含む領域である。なお、図25では、第2読取り領域として、インクローに対応する液面の位置を含む領域と、インクフルに対応する液面の位置を含む領域の2つの領域が設定される例を示している。 The settings of the first read area and the second read area are not limited to FIG. 24. In the example of FIG. 25, E1 corresponds to the first read area, and E2 and E3 correspond to the second read area. The boundaries between the first read area and the second read area are E4 and E5. As shown in FIG. 25, the second reading region is a region including the position of the liquid level corresponding to the ink full. Note that FIG. 25 shows an example in which two regions are set as the second reading region, a region including the position of the liquid level corresponding to the ink low and a region including the position of the liquid level corresponding to the ink full.

インクフルとは、インク量が十分多い状態を表し、狭義には検出すべきインクIKの最大量を表す。より具体的には、インクフルとはインク量がインクタンク310の容量の最大値に近い状態である。インクフルの状態からユーザーがさらにインクIKを補充した場合、インクタンク310からインクがあふれてしまい、印刷装置の内部の汚れや故障の原因となる。よって処理部120は、インクフルが検出された場合、これ以上のインク補充を抑制するための報知処理を行ってもよい。インクフルに対応する液面の位置を含む領域を第2読取り領域とすることによって、インクフルの検出精度を高くできるため、インクのあふれを適切に抑制可能になる。 Ink full represents a state in which the amount of ink is sufficiently large, and in a narrow sense, represents the maximum amount of ink IK to be detected. More specifically, ink full is a state in which the amount of ink is close to the maximum value of the capacity of the ink tank 310. When the user further replenishes the ink IK from the ink-full state, the ink overflows from the ink tank 310, which causes stains or malfunctions inside the printing apparatus. Therefore, when ink full is detected, the processing unit 120 may perform a notification process for suppressing further ink replenishment. By setting the region including the position of the liquid level corresponding to the ink full as the second reading region, the detection accuracy of the ink full can be improved, so that the overflow of the ink can be appropriately suppressed.

図24及び図25に示したように、相対的に重要度の高い領域を第2読取り領域に設定し、重要度の低い領域を第1読取り領域に設定することによって、データ量の削減が可能になる。また、インクローやインクフルといった印刷装置の制御において重要な状態は、データ量を削減しない場合と同程度の検出精度を維持できる。 As shown in FIGS. 24 and 25, the amount of data can be reduced by setting the relatively important area as the second read area and the less important area as the first read area. become. In addition, important states in the control of the printing apparatus such as ink low and ink full can maintain the same detection accuracy as when the amount of data is not reduced.

3.2.3 過去のインク量検出処理の結果を用いた処理
以上では1回のインク量検出処理において、データ量を削減可能な種々の手法について説明した。本実施形態では、インク量検出処理を繰り返し実行することが想定される。インク量は、時間の経過とともに変動するため、当該変動を適切に検出するためである。インク量の変動とは、印刷やメンテナンスの実行に伴う減少や、ユーザーがインクIKを補充することによる増加が考えられる。
3.2.3 Processing using the results of past ink amount detection processing In the above, various methods that can reduce the amount of data in one ink amount detection processing have been described. In the present embodiment, it is assumed that the ink amount detection process is repeatedly executed. This is because the amount of ink fluctuates with the passage of time, and the fluctuation is appropriately detected. Fluctuations in the amount of ink may be a decrease due to the execution of printing or maintenance, or an increase due to the user replenishing ink IK.

ただし、インク量の変動はある程度予測することが可能である。例えば印刷によるインクIKの消費量は、ノズルからのインクIKの吐出回数と、1回当たりの吐出量との積によって推定できる。また、1回のフラッシングやクリーニングによるインクIKの消費量も設計に基づいて予め推定できる。そのため処理部120は、前回のインク量検出処理によって決定されたインク量と、前回のインク量検出処理から現在までの印刷やメンテナンスの実行状況とに基づいて、現在のインク量を推定可能である。或いは、処理負荷を軽減するために、前回のインク量検出処理の結果と、経過時間とに基づいて、簡易的なインク量推定を行ってもよい。さらに処理を簡略化する場合、前回のインク量検出処理の結果をそのまま現在のインク量の推定量とすることも妨げられない。 However, fluctuations in the amount of ink can be predicted to some extent. For example, the amount of ink IK consumed by printing can be estimated by the product of the number of times ink IK is ejected from the nozzle and the amount of ink ejected at one time. In addition, the amount of ink IK consumed by one flushing or cleaning can be estimated in advance based on the design. Therefore, the processing unit 120 can estimate the current ink amount based on the ink amount determined by the previous ink amount detection process and the execution status of printing and maintenance from the previous ink amount detection process to the present. .. Alternatively, in order to reduce the processing load, a simple ink amount estimation may be performed based on the result of the previous ink amount detection process and the elapsed time. When further simplifying the process, it is not hindered that the result of the previous ink amount detection process is used as it is as the estimated amount of the current ink amount.

この場合、インクIKの推定量に対応する液面位置を含む領域を重点的に探索することによって、インク量を適切に決定可能である。例えば処理部120は、インク量の予測量に基づいて、センサー190に対して第1読取り領域及び第2読取り領域を指定する。 In this case, the amount of ink can be appropriately determined by intensively searching the region including the liquid level position corresponding to the estimated amount of ink IK. For example, the processing unit 120 designates a first reading area and a second reading area for the sensor 190 based on the predicted amount of ink amount.

具体的には処理部120は、推定したインク量に対応する液面位置を含む領域を第2読取り領域として設定する。例えば、推定した液面位置を中心とし、所与の画素範囲の領域を第2読取り領域とする。処理部120は、検出領域のうち、第2読取り領域以外の領域を第1読取り領域とする。 Specifically, the processing unit 120 sets a region including the liquid level position corresponding to the estimated ink amount as the second reading region. For example, the estimated liquid level position is centered, and the region of a given pixel range is defined as the second reading region. The processing unit 120 uses an area other than the second read area as the first read area in the detection area.

図26はインク量の予測量に基づく領域指定の例である。図26のF1は予測量に対応する液面位置である。この場合、処理部120は、F1を含む領域であるF2を第2読取り領域とし、それ以外のF3及びF4を第1読取り領域とする指定をセンサー190に対して行う。このようにすれば、液面が存在する蓋然性の高い領域を高精度で読み取ることが可能になる。また、第2読取り領域以外の領域についても低解像度画素データを用いた判定が行われるため、予想を超えたインク量変動があった場合にも、当該変動に追随することが可能である。例えば、ユーザーがインクIKを補充した場合、インク量は急激に増加することになるが、その場合もインク液面を推定可能である。 FIG. 26 is an example of region designation based on the predicted amount of ink. F1 in FIG. 26 is the liquid level position corresponding to the predicted amount. In this case, the processing unit 120 specifies to the sensor 190 that F2, which is an area including F1, is set as the second reading area, and the other areas F3 and F4 are set as the first reading area. In this way, it is possible to read the region where the liquid level is likely to exist with high accuracy. Further, since the determination is performed using the low-resolution pixel data also in the region other than the second reading region, it is possible to follow the fluctuation even if the ink amount fluctuation exceeds the expectation. For example, when the user replenishes the ink IK, the amount of ink increases sharply, but even in that case, the ink liquid level can be estimated.

或いは、インク量検出処理の負荷の軽減や高速化を考慮すれば、第1読取り領域を用いなくてもよい。具体的には、処理部120は、インク量の予測量が取得可能な場合、図21に示した2段階目の読取りと同様に、検出領域の一部のみを対象として高解像度画素データを取得する。検出領域のそれ以外の領域については高解像度画素データを取得しないだけでなく、低解像度画素データの取得も省略する。ただしこの場合、読取り領域外に実際の液面が存在した場合、インク量を適切に検出できない。よって処理部120は、読取り領域外に液面が存在すると判定した場合、図20、図21、図23〜図25に示したいずれかの手法を用いて再度インク量検出処理を行う。即ち処理部120は、インク量が未検出の場合及びインク量を適切に追跡できなくなった場合に検出領域全体を対象としたインク量検出処理を行い、それ以外の場面では検出領域の一部を対象としたインク量検出処理を行ってもよい。 Alternatively, the first reading area may not be used in consideration of reducing the load of the ink amount detection process and increasing the speed. Specifically, when the predicted amount of ink can be acquired, the processing unit 120 acquires high-resolution pixel data for only a part of the detection area, as in the second-stage reading shown in FIG. To do. Not only is the high-resolution pixel data not acquired for the other areas of the detection region, but the acquisition of low-resolution pixel data is also omitted. However, in this case, if the actual liquid level exists outside the reading area, the amount of ink cannot be detected appropriately. Therefore, when the processing unit 120 determines that the liquid level exists outside the reading region, the processing unit 120 performs the ink amount detection process again using any of the methods shown in FIGS. 20, 21, 23 to 25. That is, the processing unit 120 performs ink amount detection processing for the entire detection area when the ink amount is not detected or when the ink amount cannot be tracked appropriately, and in other situations, a part of the detection area is used. The target ink amount detection process may be performed.

3.2.4 加算読取り
なお、上述したデータ量を削減する手法と、図15及び図16を用いて上述した光量ムラを低減する手法を組み合わせることも可能である。
3.2.4 Additive reading It is also possible to combine the above-mentioned method for reducing the amount of data and the above-mentioned method for reducing the amount of light unevenness using FIGS. 15 and 16.

連続k画素の出力の合計を求める処理は、処理部120において行われてもよい。この場合、処理部120は、センサー190から取得された画素データのうち、連続k画素に対応するk個の画素データの合計を求める処理を行う。なお、低解像度画素データが一部の画素を間引いたデータである場合、当該低解像度画素データは連続k画素に対応する画素データを有さない場合がある。よってこの場合、処理部120は、高解像度画素データを対象として連続k画素に対応するk個の画素データの合計を求める処理を行う。或いは間引き後にも連続するk画素が残るような低解像度画素データが用いられてもよい。例えば図20において1画素目、19画素目、37画素目、・・・、163画素目のみを残すのではなく、1〜3画素目、19〜21画素目、37〜39画素目、・・・、163〜165画素目を残すような間引きが行われる。処理部120は、上記画素の画素データを出力する指示をセンサー190に送信する。 The process of obtaining the total output of continuous k pixels may be performed by the processing unit 120. In this case, the processing unit 120 performs a process of obtaining the total of k pixel data corresponding to continuous k pixels among the pixel data acquired from the sensor 190. When the low-resolution pixel data is data obtained by thinning out some pixels, the low-resolution pixel data may not have pixel data corresponding to continuous k pixels. Therefore, in this case, the processing unit 120 performs a process of obtaining the total of k pixel data corresponding to continuous k pixels for the high resolution pixel data. Alternatively, low-resolution pixel data such that continuous k pixels remain even after thinning may be used. For example, in FIG. 20, instead of leaving only the 1st pixel, 19th pixel, 37th pixel, ..., 163rd pixel, 1st to 3rd pixels, 19th to 21st pixels, 37th to 39th pixels, ... -The thinning is performed so as to leave the 163rd to 165th pixels. The processing unit 120 transmits an instruction to output the pixel data of the pixel to the sensor 190.

或いは連続k画素の出力の合計を求める処理はセンサー190において行われてもよく、狭義には図16に示したように光電変換デバイス322において行われてもよい。この場合、AFE回路130は、q/k通りの信号を含む出力信号OSを受信する。例えば上述したようにq=180、k=3であり、AFE回路130は60個の画素データを取得可能である。 Alternatively, the process of obtaining the total output of continuous k pixels may be performed in the sensor 190, or in a narrow sense, in the photoelectric conversion device 322 as shown in FIG. In this case, the AFE circuit 130 receives an output signal OS including q / k signals. For example, as described above, q = 180 and k = 3, and the AFE circuit 130 can acquire 60 pixel data.

この場合、検出領域に対応する画素が180画素ではなく60画素に変更されたと見なすことによって、上記の例と同様に処理を行うことが可能である。例えば図20に示す1段階目の読取りでは、60個の画素のうちの一部の画素が間引かれる。例えばAFE回路130は、6画素あたり1画素を残し、5画素を間引くことによって低解像度画素データを出力する。図21に示す2段階目の読取りでは、読取り領域の画素を間引かずに用いることによって高解像度画素データを出力する。例えば光量ムラを考慮しない図21の例では、第t−1画素、第t画素、第t+1画素、第t+2画素の4画素に加え、その間の17×3=51画素の合計55画素分の画素データが高解像度画素データとして取得された。本変形例においては、第t−1画素、第t画素、第t+1画素、第t+2画素の4画素に加え、その間の5×3=15画素を読取り領域とすればよく、高解像度画素データは当該19画素分の画素データとなる。また図24〜図26の場合も同様であり、第1読取り領域においては6画素あたり5画素を間引くことによって低解像度画素データが出力され、第2読取り領域においては領域内の画素を間引かないことによって高解像度画素データが出力される。図23に示す手法の場合、第1領域〜第3領域がそれぞれ30画素分の領域となる点を除き、上記の例と同様である。 In this case, it is possible to perform the same processing as in the above example by considering that the pixel corresponding to the detection area is changed to 60 pixels instead of 180 pixels. For example, in the first-stage reading shown in FIG. 20, some of the 60 pixels are thinned out. For example, the AFE circuit 130 outputs low-resolution pixel data by thinning out 5 pixels, leaving 1 pixel for every 6 pixels. In the second-stage reading shown in FIG. 21, high-resolution pixel data is output by using the pixels in the reading area without thinning out. For example, in the example of FIG. 21 in which the light amount unevenness is not considered, in addition to the four pixels of the t-1 pixel, the t pixel, the t + 1 pixel, and the t + 2 pixel, 17 × 3 = 51 pixels in between, a total of 55 pixels The data was acquired as high resolution pixel data. In this modification, in addition to the four pixels of the t-1 pixel, the t pixel, the t + 1 pixel, and the t + 2 pixel, 5 × 3 = 15 pixels in between may be set as the reading area, and the high resolution pixel data may be obtained. It becomes the pixel data for the 19 pixels. The same applies to FIGS. 24 to 26. In the first reading area, low-resolution pixel data is output by thinning out 5 pixels per 6 pixels, and in the second reading area, the pixels in the area are not thinned out. As a result, high-resolution pixel data is output. The method shown in FIG. 23 is the same as the above example except that the first to third regions are regions for 30 pixels each.

即ち光量ムラを抑制する場合にも、図20〜図23の例と同様に、処理部120は、センサー190が出力した低解像度画素データに基づいて、インクIKの液面の位置を推定し、推定した液面の位置を含む領域を読取り領域に指定する。そして処理部120は、センサー190から出力された読取り領域での高解像度画素データに基づいて、インク量を決定する。或いは図24〜図26の例と同様に、処理部120は、第1読取り領域においてセンサー190が出力した低解像度画素データと、第1読取り領域以外の第2読取り領域においてセンサー190が出力した高解像度画素データに基づいて、インク量を決定する。 That is, even when suppressing the unevenness of the amount of light, the processing unit 120 estimates the position of the liquid surface of the ink IK based on the low-resolution pixel data output by the sensor 190, as in the examples of FIGS. 20 to 23. Specify the area containing the estimated liquid level position as the reading area. Then, the processing unit 120 determines the amount of ink based on the high-resolution pixel data in the reading region output from the sensor 190. Alternatively, as in the examples of FIGS. 24 to 26, the processing unit 120 has the low resolution pixel data output by the sensor 190 in the first reading area and the height output by the sensor 190 in the second reading area other than the first reading area. The amount of ink is determined based on the resolution pixel data.

なお処理部120は、低解像度画素データを取得する場合に、センサー190に対して、連続k画素の出力の合計に対応する画素データを出力させる制御を行ってもよい。ここでの低解像度画素データは、具体的には、複数の光電変換素子のうち、一部の光電変換素子からの出力を間引いた画素データである。即ち、低解像度画素データは、一部の画素を間引くことによって取得される画素データである。 When acquiring low-resolution pixel data, the processing unit 120 may control the sensor 190 to output pixel data corresponding to the total output of continuous k pixels. Specifically, the low-resolution pixel data here is pixel data obtained by thinning out the outputs from some of the photoelectric conversion elements among the plurality of photoelectric conversion elements. That is, the low-resolution pixel data is pixel data acquired by thinning out some pixels.

画素の間引きが行われる場合、間引かれた画素の情報は失われる。連続k画素の出力を合計しない場合、例えば上記したように18画素のうち17画素が間引かれる。残される画素の割合が少ないため、当該残された画素の画素データにノイズが含まれる場合、インク量検出処理に対するノイズの影響が大きくなってしまう。これに対して、センサー190において連続k画素の合計が求められている場合、センサー190の出力である画素データにはk画素分の情報が含まれている。例えば、図20と同様の例において10個の画素データを低解像度画素データとして出力する場合、1つ目の画素データは1画素目〜3画素目の合計に対応する。そのため、1画素目の画素データにノイズが含まれたとしても、2画素目及び3画素目の画素データを用いることによって、当該ノイズの影響を抑制できる。即ち、光量ムラを抑制するための処理を行うことによって、光量ムラとは異なるノイズの影響も抑制することが可能になる。そして光量ムラを抑制する処理は、1画素当たりの重みが大きくなる低解像度画素データの取得時に特に有効と言える。 When pixel thinning is performed, the information of the thinned pixels is lost. When the outputs of continuous k pixels are not summed, for example, 17 out of 18 pixels are thinned out as described above. Since the ratio of the remaining pixels is small, when the pixel data of the remaining pixels contains noise, the influence of the noise on the ink amount detection process becomes large. On the other hand, when the total of continuous k pixels is obtained in the sensor 190, the pixel data output from the sensor 190 includes information for k pixels. For example, in the same example as in FIG. 20, when 10 pixel data is output as low resolution pixel data, the first pixel data corresponds to the total of the first pixel to the third pixel. Therefore, even if the pixel data of the first pixel contains noise, the influence of the noise can be suppressed by using the pixel data of the second pixel and the third pixel. That is, by performing the process for suppressing the light amount unevenness, it is possible to suppress the influence of noise different from the light amount unevenness. It can be said that the process of suppressing the unevenness of the amount of light is particularly effective when acquiring low-resolution pixel data in which the weight per pixel becomes large.

4.インク種別判定
また本実施形態においては、処理部120は、センサー190の出力に基づいてインクタンク310内のインクIKのインク種別を判定してもよい。
4. Ink Type Determination In the present embodiment, the processing unit 120 may determine the ink type of the ink IK in the ink tank 310 based on the output of the sensor 190.

4.1 インク種別判定の概要
図2及び図3を用いて上述したように、電子機器10はそれぞれ種類の異なるインクIKが充填される複数のインクタンク310を含んでもよい。この場合、インクタンク310aに充填すべきインクIKaを、ユーザーが誤ってインクタンク310b等の他のインクタンク310に充填してしまう可能性がある。また電子機器10が1つのインクタンク
310を有するモノクロ印刷装置であったとしても、ユーザーが機種の異なる印刷装置を併用している場合、他の印刷装置に用いられるインクIKを誤って充填する可能性がある。さらに言えば、ユーザーが1つのモノクロ印刷装置のみを使用する場合であっても、機種に応じて異なる多数のインクが市場で流通しているため、ユーザーが異機種用のインクを誤って購入、充填する可能性は否定できない。
4.1 Outline of Ink Type Determining As described above with reference to FIGS. 2 and 3, the electronic device 10 may include a plurality of ink tanks 310 each filled with different types of ink IK. In this case, the user may mistakenly fill another ink tank 310 such as the ink tank 310b with the ink IKa to be filled in the ink tank 310a. Further, even if the electronic device 10 is a monochrome printing device having one ink tank 310, if the user also uses printing devices of different models, the ink IK used for other printing devices can be erroneously filled. There is sex. Furthermore, even if the user uses only one monochrome printing device, many different inks are distributed in the market depending on the model, so the user mistakenly purchases ink for a different model. The possibility of filling cannot be denied.

例えば、イエローインクを充填すべきインクタンク310にマゼンタインクを充填してしまった場合、印刷結果の色味は所望の色味から大きく乖離してしまう。即ち、適切な印刷を行うためには、インクの色の誤りを適切に検出する必要がある。よって処理部120は、インク種別としてインク色を判定する。 For example, when the ink tank 310 to be filled with yellow ink is filled with magenta ink, the color tone of the print result greatly deviates from the desired color tone. That is, in order to perform proper printing, it is necessary to properly detect ink color errors. Therefore, the processing unit 120 determines the ink color as the ink type.

図27は、インクIKに照射される光の分光発光特性と、インクIKの分光反射特性を説明する図である。図27の横軸は波長を表し、縦軸は分光発光特性又は分光反射特性を表す。 FIG. 27 is a diagram for explaining the spectral emission characteristics of the light applied to the ink IK and the spectral reflection characteristics of the ink IK. The horizontal axis of FIG. 27 represents the wavelength, and the vertical axis represents the spectroscopic emission characteristic or the spectral reflection characteristic.

本実施形態では、インクIKには赤色に対応するR光と、緑色に対応するG光と、青色に対応するB光とが照射される。例えば、B光の波長帯域は430〜500nm程度であり、G光の波長帯域は500〜600nm程度であり、R光の波長帯域は600〜650nm程度である。ただし、各光の波長帯域、ピーク波長、半値幅等については種々の変形実施が可能である。 In the present embodiment, the ink IK is irradiated with R light corresponding to red, G light corresponding to green, and B light corresponding to blue. For example, the wavelength band of B light is about 430 to 500 nm, the wavelength band of G light is about 500 to 600 nm, and the wavelength band of R light is about 600 to 650 nm. However, various modifications can be made for the wavelength band, peak wavelength, full width at half maximum, etc. of each light.

また図27に示すように、インクIKの色に応じて分光反射特性が異なる。例えばブラックインクはRGBに対応する広い波長帯域において反射率が低い。イエローインクはB光の波長帯域では反射率が低く、G光及びR光の波長帯域では反射率が非常に高くなる。マゼンタインクはB光及びG光の波長帯域では反射率が低く、R光の波長帯域では反射率が高い。シアンインクは、B光の波長帯域では反射率がやや高く、G光及びR光の波長帯域では反射率が低い。 Further, as shown in FIG. 27, the spectral reflection characteristics differ depending on the color of the ink IK. For example, black ink has low reflectance in a wide wavelength band corresponding to RGB. Yellow ink has a low reflectance in the wavelength band of B light, and has a very high reflectance in the wavelength band of G light and R light. Magenta ink has low reflectance in the wavelength band of B light and G light, and high reflectance in the wavelength band of R light. Cyan ink has a slightly high reflectance in the wavelength band of B light, and has a low reflectance in the wavelength band of G light and R light.

光電変換素子の入力をDとし、照射光の分光発光特性をS(λ)とし、インクIKの分光反射特性をR(λ)とした場合、Dは例えば、下式(1)によって表される。DはインクIKが存在する領域からの光の受光結果であるため、インク検出領域における画素データはDと光電変換素子の分光感度特性に相関する値となる。上述したように、インク色に応じてRGBの波長帯域における分光反射特性R(λ)が異なるため、インク色に応じてインク検出領域における画素データの特性が異なることになる。
When the input of the photoelectric conversion element is D, the spectral emission characteristic of the irradiation light is S (λ), and the spectral reflection characteristic of the ink IK is R (λ), D is represented by, for example, the following equation (1). .. Since D is the result of receiving light from the region where the ink IK exists, the pixel data in the ink detection region has a value that correlates with the spectral sensitivity characteristics of D and the photoelectric conversion element. As described above, since the spectral reflection characteristic R (λ) in the RGB wavelength band differs depending on the ink color, the characteristics of the pixel data in the ink detection region differ depending on the ink color.

図28〜図33は、顔料インクのインク色ごとの画素データを表す波形である。図17に示した例と同様に、各図の横軸は光電変換デバイス322の長手方向における位置を表し、縦軸は当該位置に設けられる光電変換素子に対応する画素データの値を表す。なお各図における縦方向の線は、画素データ測定時のインクIKの液面の位置を表す。例えば図28のブラックインクの場合、7.3前後の位置に液面が存在する。 28 to 33 are waveforms representing pixel data for each ink color of the pigment ink. Similar to the example shown in FIG. 17, the horizontal axis of each figure represents the position of the photoelectric conversion device 322 in the longitudinal direction, and the vertical axis represents the value of the pixel data corresponding to the photoelectric conversion element provided at the position. The vertical line in each figure represents the position of the liquid level of the ink IK at the time of pixel data measurement. For example, in the case of the black ink shown in FIG. 28, the liquid level exists at a position around 7.3.

図28は、ブラックインクの画素データを表す。図28に示すように、ブラックインクの画素データは、RGBのいずれの光を受光した場合であっても、液面よりも下側のインク検出領域において0、或いは0に十分近い小さい値となる。またインク非検出領域においては画素データは200程度の大きい値となる。なお、インク非検出領域における画素データの値についてはインクIKの種別による影響が大きくないため、図29以降では適宜インク非検出領域に関する説明を省略する。 FIG. 28 represents the pixel data of black ink. As shown in FIG. 28, the pixel data of the black ink is 0 or a small value sufficiently close to 0 in the ink detection region below the liquid surface regardless of whether RGB light is received. .. Further, in the ink non-detection region, the pixel data has a large value of about 200. Since the value of the pixel data in the ink non-detection region is not significantly affected by the type of ink IK, the description of the ink non-detection region will be omitted from FIG. 29 onward.

図29は、シアンインクの画素データを表す。図29に示すように、シアンインクのR光及びG光についての画素データは、インク検出領域において0、或いは0に十分近い小さい値となる。一方、B光についての画素データは、インク検出領域において100程度の値となる。即ち、B光についてのインク検出領域の画素データは、インク非検出領域との区別が可能な程度に小さいが、0に比べて十分大きい値となる。 FIG. 29 shows pixel data of cyan ink. As shown in FIG. 29, the pixel data for the R light and G light of the cyan ink is 0 or a small value sufficiently close to 0 in the ink detection region. On the other hand, the pixel data for the B light has a value of about 100 in the ink detection region. That is, the pixel data of the ink detection region for B light is small enough to be distinguished from the ink non-detection region, but is sufficiently large compared to 0.

図30は、マゼンタインクの画素データを表す。図30に示すように、マゼンタインクのR光についての画素データは、インク検出領域において170〜200程度となる。G光についての画素データは、インク検出領域において0に十分近い小さい値となる。B光についての画素データは、インク検出領域において50弱程度の値となる。 FIG. 30 represents the pixel data of magenta ink. As shown in FIG. 30, the pixel data for the R light of the magenta ink is about 170 to 200 in the ink detection region. The pixel data for G light is a small value sufficiently close to 0 in the ink detection region. The pixel data for the B light has a value of about 50 or less in the ink detection region.

図31は、イエローインクの画素データを表す。図31に示すように、イエローインクのR光についての画素データは、インク検出領域において255に近い値となる。G光についての画素データは、インク検出領域において150前後の値となる。B光についての画素データは、インク検出領域において0に十分近い小さい値となる。 FIG. 31 shows pixel data of yellow ink. As shown in FIG. 31, the pixel data for the R light of the yellow ink has a value close to 255 in the ink detection region. The pixel data for G light has a value of around 150 in the ink detection region. The pixel data for the B light is a small value sufficiently close to 0 in the ink detection region.

また本実施形態では、ホワイトインクとクリアインクをインク色判定の対象としてもよい。ホワイトインクとは白色のインクであり、例えば透明な素材に印刷する際の下地として用いられる。クリアインクとは、光を透過する透明又は半透明のインクであり、印刷媒体Pに光沢を与える、質感を変える、厚みを持たせる等の用途で用いられる。 Further, in the present embodiment, the white ink and the clear ink may be the targets of the ink color determination. White ink is white ink, and is used as a base when printing on a transparent material, for example. The clear ink is a transparent or translucent ink that transmits light, and is used for applications such as giving gloss to the print medium P, changing the texture, and giving thickness.

図32は、ホワイトインクの画素データを表す。ホワイトインクが存在する領域は、インク非検出領域におけるインクタンク310の壁面色よりも明るい白色となる。そのため、図32に示すように、ホワイトインクのインク検出領域における画素データは、RGBのいずれの光を受光する場合でも、インク非検出領域よりも大きい値となる。具体的にはホワイトインクの画素データは、インク検出領域において255に近い値となる。 FIG. 32 represents the pixel data of the white ink. The region where the white ink is present is white, which is brighter than the wall color of the ink tank 310 in the ink non-detection region. Therefore, as shown in FIG. 32, the pixel data in the ink detection region of the white ink has a larger value than the ink non-detection region when receiving any of RGB light. Specifically, the pixel data of white ink has a value close to 255 in the ink detection region.

図33は、クリアインクの画素データを表す。図33に示すように、クリアインクの画素データは、RGBのいずれの光を受光する場合でも、100〜150程度の値となる。 FIG. 33 shows the pixel data of the clear ink. As shown in FIG. 33, the pixel data of the clear ink has a value of about 100 to 150 regardless of whether it receives RGB light.

図27〜図33に示したように、分光反射特性の違いに起因して、インク検出領域における画素データの特性はインク色ごとに異なる。ブラックインクのR光とシアンインクのR光のように、光の色によっては画素データの特性差が小さい場合もあるが、複数の色の光を組み合わせることによって、インク色を判定できる。例えばブラックインクとシアンインクを識別する場合、B光を用いればよい。 As shown in FIGS. 27 to 33, the characteristics of the pixel data in the ink detection region differ depending on the ink color due to the difference in the spectral reflection characteristics. Depending on the color of the light, the characteristic difference of the pixel data may be small, such as the R light of black ink and the R light of cyan ink, but the ink color can be determined by combining light of a plurality of colors. For example, when distinguishing between black ink and cyan ink, B light may be used.

本実施形態のセンサー190は、光源323が発光する期間において、インクタンク310側から入射される第1の波長帯域色の第1の光と第2の波長帯域の第2の光を検出する。処理部120は、インクIKが存在する位置における第1の光についての第1光量と、インクIKが存在する位置における第2の光についての第2光量とに基づいてインクタンク310内のインクIKのインク種別を判定する。処理部120は、センサー190から第1光量及び第2光量を取得する。 The sensor 190 of the present embodiment detects the first light of the first wavelength band color and the second light of the second wavelength band incident from the ink tank 310 side during the period when the light source 323 emits light. The processing unit 120 determines the ink IK in the ink tank 310 based on the first light amount for the first light at the position where the ink IK is present and the second light amount for the second light at the position where the ink IK is present. Judge the ink type of. The processing unit 120 acquires the first light amount and the second light amount from the sensor 190.

第1光量及び第2光量は、具体的にはインク検出領域における画素データである。第1光量及び第2光量は、例えばインク検出領域における画素データの最小値である。ただし第1光量及び第2光量として、インク検出領域における画素データの平均値や中央値等の他の情報が用いられてもよい。また第1の波長帯域と第2の波長帯域は、インクIKの分光反射特性に差が出る程度の違いがあればよく、一部が重複することは妨げられない。 The first light amount and the second light amount are specifically pixel data in the ink detection region. The first light amount and the second light amount are, for example, the minimum values of pixel data in the ink detection region. However, other information such as the average value and the median value of the pixel data in the ink detection region may be used as the first light amount and the second light amount. Further, the first wavelength band and the second wavelength band need only be different to the extent that the spectral reflection characteristics of the ink IK are different, and partial overlap is not prevented.

このように、複数の波長帯域の光を用いることによって、インク種別を適切に判定することが可能になる。例えばブラックインクは、シアンインクと比較した場合、B光の光量が異なる。またブラックインクは、マゼンタ、イエロー、ホワイト、クリアの各インクと比較した場合、R光の光量が異なる。即ち、R光とB光の2つを用いることによって、ブラックインクと他のインクを識別できる。 In this way, by using light in a plurality of wavelength bands, it is possible to appropriately determine the ink type. For example, black ink has a different amount of B light when compared with cyan ink. Further, the black ink has a different amount of R light when compared with the magenta, yellow, white, and clear inks. That is, black ink and other inks can be distinguished by using two types of light, R light and B light.

本実施形態の処理部120は、第1光量及び第2光量に基づいて、顔料インクのインク色判定を行ってもよい。図28〜図33に示したとおり、顔料インクはインク色に応じて分光反射特性が異なるため、センサー190のインク色ごとの出力が、インク色を識別可能な程度に相違するためである。このようにすれば、顔料インクの入れ間違え等を適切に検出することが可能になる。 The processing unit 120 of the present embodiment may determine the ink color of the pigment ink based on the first light amount and the second light amount. As shown in FIGS. 28 to 33, since the pigment ink has different spectral reflection characteristics depending on the ink color, the output of each ink color of the sensor 190 differs to the extent that the ink color can be identified. By doing so, it becomes possible to appropriately detect an incorrect insertion of the pigment ink and the like.

以下では、インク種別判定が顔料インクの色判定である例について説明する。ただし同じ色の顔料インクであっても、メーカーや型番等に応じて用いられる色材が異なるため、インク検出領域における光量の特性は異なる。ここでの色材の違いとは、材料となる物質自体の違いであってもよいし、複数の材料の配合比の違いであってもよい。例えば図28に示した波形は所与の顔料ブラックインクの特性であり、色材が異なる顔料ブラックインクにおいては波形が異なる。波形の差異を用いることによって、同じ色のインク内での種類の違いを判定することが可能である。また、顔料インクと染料インクも色材が異なるため、同じ色であっても波形に差異が生じる。即ち本実施形態におけるインク種別判定は、顔料インクの色判定に限定されず、色材等を含めたインク種別の判定等に拡張可能である。 Hereinafter, an example in which the ink type determination is the color determination of the pigment ink will be described. However, even if the pigment inks have the same color, the characteristics of the amount of light in the ink detection region are different because the coloring materials used differ depending on the manufacturer, model number, and the like. The difference in the coloring material here may be a difference in the substance itself as a material, or a difference in the blending ratio of a plurality of materials. For example, the waveform shown in FIG. 28 is a characteristic of a given pigment black ink, and the waveform is different in pigment black inks having different coloring materials. By using the difference in waveform, it is possible to determine the difference in type within the same color ink. Further, since the coloring materials of the pigment ink and the dye ink are different, the waveforms are different even if they are the same color. That is, the ink type determination in the present embodiment is not limited to the color determination of the pigment ink, and can be extended to the determination of the ink type including the coloring material and the like.

本実施形態の光源323は、第1の光及び第2の光を照射してもよい。例えば光源323は、赤色LED323R、緑色LED323G、青色LED323Bのように、照射する光の波長帯域が異なる複数の光源を含む。或いは光源323はカラーフィルターを有し、当該カラーフィルターを切り替えることによって、第1の光と第2の光を時分割で照射してもよい。第1光量は、光源323が第1の光を照射した時のセンサー190の出力であり、第2光量は、光源323が第2の光を照射した時のセンサーの出力である。このように、異なる波長帯域の光を照射可能な光源323を用いることによって、インク種別を適切に判定できる。 The light source 323 of the present embodiment may irradiate the first light and the second light. For example, the light source 323 includes a plurality of light sources having different wavelength bands of the emitted light, such as the red LED 323R, the green LED 323G, and the blue LED 323B. Alternatively, the light source 323 has a color filter, and the first light and the second light may be irradiated in a time-division manner by switching the color filter. The first light quantity is the output of the sensor 190 when the light source 323 irradiates the first light, and the second light quantity is the output of the sensor when the light source 323 irradiates the second light. As described above, by using the light source 323 capable of irradiating light of different wavelength bands, the ink type can be appropriately determined.

ただし、本実施形態のインク種別判定は、センサー190において波長帯域の異なる複数の光を受光可能であればよい。例えば光源323は波長帯域の広い光、例えば白色光を照射し、センサー190は、カラーフィルターを用いることによって第1の光と第2の光を受光する。この場合、カラーフィルターは図27の分光発光特性と同等の分光透過特性を有するRフィルター、Gフィルター及びBフィルターを含む。或いはセンサー190は、第1の光を受光する光電変換デバイス322と第2の光を受光する光電変換デバイス322を有し、プリズムやハーフミラーを用いることによって第1の光と第2の光を分離し、分離した各光を対応する光電変換デバイス322に入射させる構成であってもよい。 However, the ink type determination of the present embodiment may be performed as long as the sensor 190 can receive a plurality of lights having different wavelength bands. For example, the light source 323 irradiates light having a wide wavelength band, for example, white light, and the sensor 190 receives the first light and the second light by using a color filter. In this case, the color filter includes an R filter, a G filter, and a B filter having spectral transmission characteristics equivalent to those of the spectral emission characteristics of FIG. 27. Alternatively, the sensor 190 has a photoelectric conversion device 322 that receives the first light and a photoelectric conversion device 322 that receives the second light, and uses a prism or a half mirror to transmit the first light and the second light. It may be configured to separate and incident each separated light on the corresponding photoelectric conversion device 322.

またセンサー190は、第3の色の光を検出してもよい。処理部120は、第3の色の光についての第3光量と、第1光量及び第2光量に基づいてインク種別を検出する。用いる光の種類を増やすことによって、より細かいインク種別の判定が可能になる。例えば判定対象のインクIKがブラックインクであるか否かという判定だけでなく、当該インクIKが何色のインクであるかを判定することも可能になる。なお以上の記載からわかるように、本実施形態のインク色判定とは、判定対象のインクIKが正しい色かどうかの判定であってもよいし、当該インクIKの色を特定する判定であってもよい。 The sensor 190 may also detect light of a third color. The processing unit 120 detects the ink type based on the third light amount, the first light amount, and the second light amount for the light of the third color. By increasing the types of light used, it becomes possible to determine the ink type in more detail. For example, it is possible not only to determine whether or not the ink IK to be determined is black ink, but also to determine how many colors the ink IK is. As can be seen from the above description, the ink color determination of the present embodiment may be a determination of whether or not the ink IK to be determined is the correct color, or a determination of specifying the color of the ink IK. May be good.

以下、第1の光、第2の光及び第3の光は、赤色の波長帯域に対応するR光、緑色の波長帯域に対応するG光及び青色の波長帯域に対応するB光である例について説明する。第1の光及び第2の光は、R光、G光、B光のうちのいずれか2つであり、2つの光に基づいてインク種別判定を行う場合の光の組み合わせは任意である。 Hereinafter, the first light, the second light, and the third light are R light corresponding to the red wavelength band, G light corresponding to the green wavelength band, and B light corresponding to the blue wavelength band. Will be described. The first light and the second light are any two of R light, G light, and B light, and the combination of lights when the ink type determination is performed based on the two lights is arbitrary.

処理部120は、センサー190に入射したR光の光量を表すR光量と、センサーに入射したG光の光量を表すG光量と、センサーに入射したB光の光量を表すB光量とに基づいて、インク種別を判定する。以下、各光量が画素データの最小値である例について説明するが、上述したとおり、光量を表すデータは種々の変形実施が可能である。 The processing unit 120 is based on the amount of R light representing the amount of R light incident on the sensor 190, the amount of G light representing the amount of G light incident on the sensor, and the amount of B light representing the amount of B light incident on the sensor. , Judge the ink type. Hereinafter, an example in which each light amount is the minimum value of the pixel data will be described, but as described above, the data representing the light amount can be variously modified.

このようにすれば、RGBの3色の光を用いてインク種別を判定できる。図28〜図33に示したとおり、3色の光量の特性はインク色に応じて異なるため、適切な判定が可能である。また、RGBの3色の組み合わせは白色光に相当するため、自然な色味の画像を形成する際に広く用いられる。即ち本実施形態のインク種別判定においては、スキャナー等に用いられる光電変換デバイス322と光源323を流用することが可能である。 In this way, the ink type can be determined using the three colors of RGB light. As shown in FIGS. 28 to 33, the characteristics of the light amounts of the three colors differ depending on the ink color, so that an appropriate determination can be made. Further, since the combination of the three colors of RGB corresponds to white light, it is widely used when forming an image having a natural color. That is, in the ink type determination of the present embodiment, the photoelectric conversion device 322 and the light source 323 used for a scanner or the like can be diverted.

ただし図27からわかるとおり、インク色に応じて分光反射特性が異なる波長帯域はRGBの波長帯域に限定されない。そのため、インク種類の判定に用いられる光を、紫色に対応するV光、紫外光、赤外光等の他の光に拡張することが可能である。また、どのインクをどのインクと区別する必要があるのかに応じて、使用する光の数と種類を、適宜選択することができる。例えば、白色光の1種類の光のみ用いてもよいし、RGBに加えて、赤外光とオレンジの光とを加えて5種類の光を用いても良い。蛍光インクを使用するような場合には、インクの分光反射特性に加えて、或いは代えて、分光蛍光特性を用いて判別できる。この場合、センサー190に、カラーフィルターを用いて、インクタンクに入射する光の波長帯域とセンサーに入射する光の波長帯域とが異なるものを検出できることが望ましい。 However, as can be seen from FIG. 27, the wavelength band in which the spectral reflection characteristics differ depending on the ink color is not limited to the RGB wavelength band. Therefore, the light used for determining the ink type can be extended to other light such as V light, ultraviolet light, and infrared light corresponding to purple. In addition, the number and type of light to be used can be appropriately selected depending on which ink needs to be distinguished from which ink. For example, only one type of white light may be used, or five types of light may be used by adding infrared light and orange light in addition to RGB. When a fluorescent ink is used, it can be discriminated by using the spectral fluorescence characteristic in addition to or instead of the spectral reflection characteristic of the ink. In this case, it is desirable that the sensor 190 can detect a sensor 190 having a different wavelength band of light incident on the ink tank and a wavelength band of light incident on the sensor by using a color filter.

4.2 インク色ごとの判定処理
処理部120は、インクIKが存在する位置において、R光量が閾値ThBk_R以下であり、G光量が閾値ThBk_G以下であり、B光量が閾値ThBk_B以下である場合に、インクIKがブラックインクであると判定する。
4.2 Judgment processing for each ink color In the position where the ink IK exists, the R light amount is the threshold Th Bk_R or less, the G light amount is the threshold Th Bk_G or less, and the B light amount is the threshold Th Bk_B or less. In some cases, it is determined that the ink IK is black ink.

図28に示したように、ブラックインクを対象とした場合、インク検出領域においてRGBの全ての光量が十分小さい値になる。よって所与の閾値以下であるか否かを判定することによってブラックインクであるか否かを判定できる。ここでの各閾値は、ブラックインクにおいて想定される値よりも大きい必要がある。ただし他の色のインクIKがブラックインクであると誤判定されることを抑制するため、ブラックインクにおいて想定される値より過剰に大きくすることは望ましくない。例えば各閾値は想定値よりもΔだけ大きい値とする。Δの具体的な値は種々の変形実施が可能であるが、例えば20〜60程度である。またRGBのそれぞれにおいてΔの値を変更してもよい。例えば(ThBk_R,ThBk_G,ThBk_B)=(50,50,50)である。このような閾値を用いた判定を行うことによって、例えば特性が近いシアンインクとの判別も適切に実行できる。 As shown in FIG. 28, when black ink is targeted, all the light amounts of RGB are sufficiently small in the ink detection region. Therefore, it can be determined whether or not the ink is black ink by determining whether or not the ink is equal to or less than a given threshold value. Each threshold value here needs to be larger than the value assumed for black ink. However, in order to prevent the ink IK of other colors from being erroneously determined to be black ink, it is not desirable to make the value excessively larger than the value assumed for black ink. For example, each threshold value is set to be a value larger than the assumed value by Δ. The specific value of Δ can be variously modified, but is, for example, about 20 to 60. Further, the value of Δ may be changed in each of RGB. For example, (Th Bk_R , Th Bk_G , Th Bk_B ) = (50, 50, 50). By performing the determination using such a threshold value, for example, the determination with cyan ink having similar characteristics can be appropriately executed.

なお、本実施形態におけるインク検出領域における光量は、インク検出領域での画素データそのものであってもよいし、インク非検出領域を基準とした画素データの差分であってもよい。上述したように、インク非検出領域における画素データはインクタンク310の壁面に対応する情報であり、インクIKの種別による影響が小さい。よって、インク非検出領域における光量を基準として、インク検出領域における光量を求めてもよい。この場合、インク検出領域における光量が閾値以下であるか否かの判定は、画素データの差分値が所定閾値以上であるか否かの判定により実現できる。即ち、閾値判定における大小関係は光量の表現に応じて適宜変更可能である。 The amount of light in the ink detection region in the present embodiment may be the pixel data itself in the ink detection region or the difference between the pixel data based on the ink non-detection region. As described above, the pixel data in the ink non-detection region is information corresponding to the wall surface of the ink tank 310, and is less affected by the type of ink IK. Therefore, the amount of light in the ink detection region may be obtained based on the amount of light in the ink non-detection region. In this case, the determination of whether or not the amount of light in the ink detection region is equal to or less than the threshold value can be realized by determining whether or not the difference value of the pixel data is equal to or greater than the predetermined threshold value. That is, the magnitude relationship in the threshold value determination can be appropriately changed according to the expression of the amount of light.

また処理部120は、インクIKが存在する位置において、R光量が閾値ThC_R以下であり、G光量が閾値ThC_G以下であり、B光量が閾値ThC_Bより大きい場合に、インクIKがシアンインクであると判定する。ThC_R及びThC_Gについてもブラックインクの例と同様に、想定される光量の値よりもΔだけ大きい値とする。また閾値ThC_Bについては想定される光量の値よりもΔだけ小さい値とする。例えば(ThC_R,ThC_G,ThC_B)=(50,50,50)である。 Further, in the processing unit 120, when the R light amount is equal to or less than the threshold Th C_R, the G light amount is equal to or less than the threshold Th C_G, and the B light amount is larger than the threshold Th C_B at the position where the ink IK exists, the ink IK is cyan ink. Is determined to be. Similar to the example of black ink, Th C_R and Th C_G are set to values larger than the expected light intensity value by Δ. Further, the threshold value Th C_B is set to a value smaller than the expected value of the amount of light by Δ. For example, (Th C_R , Th C_G , Th C_B ) = (50, 50, 50).

また処理部120は、インクIKが存在する位置において、R光量が閾値ThM_Rより大きく、G光量が閾値ThM_G以下であり、B光量が閾値ThM_B以下である場合に、インクIKがマゼンタインクであると判定する。例えば(ThM_R,ThM_G,ThM_B)=(130,50,70)である。なお、他のインク色との判定の共通化を考慮すれば、ThM_B=50であってもよい。 Further, in the processing unit 120, when the R light amount is larger than the threshold Th M_R , the G light amount is equal to or less than the threshold Th M_G, and the B light amount is equal to or less than the threshold Th M_B at the position where the ink IK exists, the ink IK is magenta ink. Is determined to be. For example, (Th M_R , Th M_G , Th M_B ) = (130, 50, 70). In consideration of common judgment with other ink colors, Th M_B = 50 may be used.

また処理部120は、インクIKが存在する位置において、R光量が閾値ThY_Rより大きく、G光量が閾値ThY_Gより大きく、B光量が閾値ThY_B以下である場合に、インクがイエローインクであると判定する。例えば(ThY_R,ThY_G,ThY_B)=(220,100,50)である。 Further, in the processing unit 120, when the R light amount is larger than the threshold Th Y_R , the G light amount is larger than the threshold Th Y_G, and the B light amount is equal to or less than the threshold Th Y_B at the position where the ink IK exists, the ink is yellow ink. Is determined. For example, (Th Y_R , Th Y_G , Th Y_B ) = (220, 100, 50).

また処理部120は、R光量、G光量及びB光量の少なくとも2つにおいて、インクIKが存在する位置の光量が、インクIKが存在しない位置の光量よりも多い場合に、インクIKがホワイトインクであると判定する。この場合、処理部120は、インク非検出領域における光量の値を基準値として求め、それよりも−Z側の位置において光量が当該基準値を超えるか否かを判定する。 Further, in the processing unit 120, when the amount of light at the position where the ink IK exists is larger than the amount of light at the position where the ink IK does not exist in at least two of the amount of R light, the amount of G light, and the amount of B light, the ink IK is white ink. Judge that there is. In this case, the processing unit 120 obtains the value of the amount of light in the ink non-detection region as a reference value, and determines whether or not the amount of light exceeds the reference value at a position on the −Z side of the value.

なお、基準値を実測するのではなく、設計から想定される値を予め設定してもよい。例えば処理部120は、R光量が閾値ThW_Rより大きく、G光量が閾値ThW_Gより大きく、B光量が閾値ThW_Bより大きい場合に、インクIKがホワイトインクであると判定する。例えば(ThY_R,ThY_G,ThY_B)=(220,220,220)である。 In addition, instead of actually measuring the reference value, the value assumed from the design may be set in advance. For example, the processing unit 120 is greater than the threshold value Th W_R R light quantity is larger G light amount than the threshold value Th W_G, if B amount is greater than the threshold Th W_B, determines that the ink IK is white ink. For example, (Th Y_R , Th Y_G , Th Y_B ) = (220, 220, 220).

また処理部120は、インクIKが存在する位置において、R光量が閾値ThCL_Rより大きく、G光量が閾値ThCL_Gより大きく、B光量が閾値ThCL_Bより大きい場合に、インクIKがクリアインクであると判定する。例えば(ThCL_R,ThCL_G,ThCL_B)=(50,50,50)である。 The processing unit 120, at a position where the ink IK exists, larger than R light amount threshold value Th CL_R, greater than the threshold value Th CL_G G light amount, if B amount is greater than the threshold Th CL_B, ink IK is a clear ink Is determined. For example, (Th CL_R , Th CL_G , Th CL_B ) = (50, 50, 50).

なお、ホワイトインクもこの条件を満たすことになるため、予めホワイトインクに関する上記判定を行うことによってホワイトインクを識別しておく、或いはクリアインクの判定において、下限側閾値と上限側閾値の2種類を設定することが望ましい。例えば処理部120は、下限側閾値50と上限側閾値150を設定し、RGBの各光量が下限側閾値と上限側閾値の間である場合に、インクIKがクリアインクであると判定する。またクリアインク以外のインクIKについても、想定される値が中間的な値である場合、下限側閾値と上限側閾値を設定してもよい。例えばシアンインクのB光量については、下限側閾値50に加えて上限側閾値150を設定してもよい。マゼンタインクのR光量については、下限側閾値130に加えて、上限側閾値220を設定してもよい。イエローインクのG光量については、下限側閾値100に加えて、上限側閾値200を設定してもよい。 Since the white ink also satisfies this condition, the white ink is identified by performing the above determination regarding the white ink in advance, or in the determination of the clear ink, two types, a lower limit side threshold value and an upper limit side threshold value, are used. It is desirable to set. For example, the processing unit 120 sets the lower limit side threshold value 50 and the upper limit side threshold value 150, and determines that the ink IK is clear ink when each of the RGB light amounts is between the lower limit side threshold value and the upper limit side threshold value. Further, for ink IK other than clear ink, if the assumed value is an intermediate value, the lower limit side threshold value and the upper limit side threshold value may be set. For example, for the amount of B light of cyan ink, the upper limit side threshold value 150 may be set in addition to the lower limit side threshold value 50. Regarding the amount of R light of magenta ink, the upper limit side threshold value 220 may be set in addition to the lower limit side threshold value 130. Regarding the amount of G light of the yellow ink, the upper limit side threshold value 200 may be set in addition to the lower limit side threshold value 100.

以上のように、処理部120は、第1インク色に対応する第1インク色閾値に基づいて、判定対象のインクIKが第1インク色であるかの判定を行い、第2インク色に対応する第2インク色閾値に基づいて、判定対象のインクIKが第2インク色であるかの判定を行ってもよい。即ち、第1インク色閾値に基づく判定は、第1インク色のインクのみが条件を満たし、他の色のインクは条件を満たさない。よってインク色に応じた閾値を用いて判定を行うことによって、インク種別を判定できる。 As described above, the processing unit 120 determines whether the ink IK to be determined is the first ink color based on the first ink color threshold corresponding to the first ink color, and corresponds to the second ink color. Based on the second ink color threshold, it may be determined whether the ink IK to be determined is the second ink color. That is, in the determination based on the first ink color threshold value, only the ink of the first ink color satisfies the condition, and the inks of other colors do not satisfy the condition. Therefore, the ink type can be determined by performing the determination using the threshold value according to the ink color.

本実施形態では上述したように複数の波長帯域の光を用いる。そのため、第1インク色閾値は、第1光量との比較に用いられる閾値Th11と、第2光量との比較に用いられる閾値Th12とを含み、第2インク色閾値は、第1光量との比較に用いられる閾値Th21と、第2光量との比較に用いられる閾値Th22とを含む。第1インク色がブラックである場合、閾値Th11とは例えばThBk_Rであり、閾値Th12とは例えばThBk_Gである。また上述したように、Th11等の閾値は1つの値に限定されず、下限側閾値と上限側閾値を含んでもよい。また、上述した各閾値の値は一例であり、具体的な数値については種々の変形実施が可能である。 In this embodiment, as described above, light having a plurality of wavelength bands is used. Therefore, the first ink color threshold includes the threshold Th11 used for comparison with the first light amount and the threshold Th12 used for comparison with the second light amount, and the second ink color threshold is compared with the first light amount. Includes a threshold Th21 used in the above and a threshold Th22 used for comparison with the second light intensity. When the first ink color is black, the threshold Th11 is, for example, Th Bk_R , and the threshold Th12 is, for example, Th Bk_G . Further, as described above, the threshold value such as Th11 is not limited to one value, and may include a lower limit side threshold value and an upper limit side threshold value. Further, the values of the above-mentioned threshold values are examples, and various modifications can be made for specific numerical values.

上述したように、適切な印刷を行うためには、所与のインクタンク310に、不適切な種別のインクIKが充填されたか否かを検出することが重要である。例えばブラックインク用のインクタンク310であれば、ブラックインク以外のインクが充填されたか否かを検出できればよく、具体的なインク色まで特定しなくてもよい場合がある。よって処理部120は、予測インク色に対応して設定された閾値に基づいて、判定対象のインクが予測インク色であるか否かを判定するインク色判定を行う。このインク色判定は、例えば、インク量判定において、誤差と想定する範囲を超えてインク量が増加したことを検知した場合に、開始する。 As described above, in order to perform proper printing, it is important to detect whether or not a given ink tank 310 is filled with an inappropriate type of ink IK. For example, in the case of the ink tank 310 for black ink, it is sufficient if it is possible to detect whether or not ink other than black ink is filled, and it may not be necessary to specify a specific ink color. Therefore, the processing unit 120 performs an ink color determination for determining whether or not the ink to be determined is the predicted ink color based on the threshold value set corresponding to the predicted ink color. This ink color determination is started, for example, when it is detected in the ink amount determination that the ink amount has increased beyond the range assumed to be an error.

図34は、この場合のインク色判定を説明するフローチャートである。この処理が開始されると、処理部120は光源323及びセンサー190を制御することによって、R光量、G光量及びB光量を取得する(S301)。また処理部120は、予測インク色を特定する(S302)。光電変換デバイス322が読取り対象としたインクタンク310は既知であり、当該インクタンク310に充填すべきインク色も設計上既知である。なお、光電変換デバイス322がインクタンク310に装着される場合、光電変換デバイス322とインクタンク310の関係は設計時に固定される。また、図38、図39を用いて後述するように、光電変換デバイス322とインクタンク310の位置関係が変化する場合にも、キャリッジ等の駆動機構の制御情報に基づいて、光電変換デバイス322とインクタンク310の関係を求めることが可能である。 FIG. 34 is a flowchart illustrating the ink color determination in this case. When this process is started, the processing unit 120 acquires the R light amount, the G light amount, and the B light amount by controlling the light source 323 and the sensor 190 (S301). Further, the processing unit 120 specifies the predicted ink color (S302). The ink tank 310 read by the photoelectric conversion device 322 is known, and the ink color to be filled in the ink tank 310 is also known in terms of design. When the photoelectric conversion device 322 is mounted on the ink tank 310, the relationship between the photoelectric conversion device 322 and the ink tank 310 is fixed at the time of design. Further, as will be described later with reference to FIGS. 38 and 39, even when the positional relationship between the photoelectric conversion device 322 and the ink tank 310 changes, the photoelectric conversion device 322 and the photoelectric conversion device 322 are based on the control information of the drive mechanism such as the carriage. It is possible to determine the relationship of the ink tank 310.

次に処理部120は、予測インク色に基づいて処理を分岐させる(S303)。予測インク色がブラックである場合、処理部120はブラックインクであるか否かの判定を行う(S304)。ブラックインクであるか否の判定とは、具体的にはThBk_R,ThBk_G,ThBk_Bを用いた閾値判定である。同様に、処理部120は、予測インク色がシアンある場合、シアンインクであるか否かの判定を行う(S305)。予測インク色がマゼンタである場合、マゼンタインクであるか否かの判定を行う(S306)。予測インク色がイエローである場合、イエローインクであるか否かの判定を行う(S307)。予測インク色がホワイトである場合、ホワイトインクであるか否かの判定を行う(S308)。予測インク色がクリアである場合、クリアインクであるか否かの判定を行う(S309)。また処理部120は、S304〜S309の判定において、インク色が予測インク色でないと判定された場合、エラーフラグをオンにセットする。 Next, the processing unit 120 branches the processing based on the predicted ink color (S303). When the predicted ink color is black, the processing unit 120 determines whether or not the ink is black ink (S304). The determination of whether or not the ink is black ink is specifically a threshold value determination using Th Bk_R , Th Bk_G , and Th Bk_B. Similarly, when the predicted ink color is cyan, the processing unit 120 determines whether or not the predicted ink color is cyan (S305). When the predicted ink color is magenta, it is determined whether or not it is magenta ink (S306). When the predicted ink color is yellow, it is determined whether or not the ink is yellow ink (S307). When the predicted ink color is white, it is determined whether or not the ink is white ink (S308). When the predicted ink color is clear, it is determined whether or not the ink is clear ink (S309). Further, when it is determined that the ink color is not the predicted ink color in the determinations of S304 to S309, the processing unit 120 sets the error flag to ON.

次に処理部120は、エラーフラグがオンであるか否かを判定する(S310)。エラーフラグがオンである場合(S310でYes)、所与のインクタンク310に不適切なインクIKが充填されたと判定される。よって処理部120は、ユーザーにその旨を報知する処理を行う(S311)。エラーフラグがオフである場合(S310でNo)、報知処理を行わずに処理を終了する。 Next, the processing unit 120 determines whether or not the error flag is on (S310). If the error flag is on (Yes in S310), it is determined that the given ink tank 310 is filled with improper ink IK. Therefore, the processing unit 120 performs a process of notifying the user to that effect (S311). When the error flag is off (No in S310), the processing ends without performing the notification processing.

図35は、インク色の判定処理を説明する他のフローチャートである。この処理が開始されると、処理部120はR光量、G光量及びB光量を取得する(S401)。S401の処理は図34のS301と同様である。 FIG. 35 is another flowchart illustrating the ink color determination process. When this process is started, the processing unit 120 acquires the R light amount, the G light amount, and the B light amount (S401). The processing of S401 is the same as that of S301 of FIG.

処理部120は、判定対象のインクIKがブラックインクであるか否かを判定する(S402)。S402の処理は、S304と同様である。インクIKがブラックインクであると判定された場合(S402でYes)、処理部120はインク色の判定処理を終了する。 The processing unit 120 determines whether or not the ink IK to be determined is black ink (S402). The processing of S402 is the same as that of S304. When it is determined that the ink IK is black ink (Yes in S402), the processing unit 120 ends the ink color determination process.

インクIKがブラックインクでないと判定された場合(S402でNo)、処理部120は、判定対象のインクIKがシアンインクであるか否かを判定する(S403)。S403の処理は、S305と同様である。インクIKがシアンインクであると判定された場合(S403でYes)、処理部120はインク色の判定処理を終了する。 When it is determined that the ink IK is not black ink (No in S402), the processing unit 120 determines whether or not the ink IK to be determined is cyan ink (S403). The processing of S403 is the same as that of S305. When it is determined that the ink IK is cyan ink (Yes in S403), the processing unit 120 ends the ink color determination process.

以下、処理部120は、インクIKがマゼンタインク、イエローインク、ホワイトインク、クリアインクであるか否かを順次判定し(S404〜S407)、いずれかのインク色であると判定された段階で処理を終了する。なお、S402〜S407の処理の順序は図35に示す例に限定されず、種々の変形実施が可能である。 Hereinafter, the processing unit 120 sequentially determines whether or not the ink IK is magenta ink, yellow ink, white ink, or clear ink (S404 to S407), and processes at the stage where it is determined to be any ink color. To finish. The order of processing of S402 to S407 is not limited to the example shown in FIG. 35, and various modifications can be performed.

図35に示す処理を行うことによって、インクIKが予測インク色であるか否かの判定だけでなく、具体的なインク色を特定することが可能になる。なお、S402〜S407のいずれでもNoと判定された場合、インク色を特定できなかったことになるため、処理部120はエラーを報知する処理を行った後(S408)、処理を終了する。 By performing the process shown in FIG. 35, it is possible not only to determine whether or not the ink IK is the predicted ink color, but also to specify a specific ink color. If No is determined in any of S402 to S407, it means that the ink color could not be specified. Therefore, the processing unit 120 finishes the process after performing the process of notifying the error (S408).

図34及び図35に示したように、本実施形態におけるインク色の判定処理は、判定対象のインクIKが予測インク色であるか否かの判定処理であってもよいし、具体的なインク色の特定処理であってもよい。 As shown in FIGS. 34 and 35, the ink color determination process in the present embodiment may be a determination process of whether or not the ink IK to be determined is the predicted ink color, or a specific ink. It may be a color specifying process.

4.3 変形例
以上ではR光量、G光量及びB光量が、インク検出領域における画素データの最小値や平均値等である例について説明した。即ち光量は1つの数値データであり、インク色の判定処理は当該数値データと閾値との比較処理である。ただし本実施形態における光量は、インク検出領域における複数の画素データの集合であってもよい。例えば処理部120は、複数の画素データの各画素データを対象として上記閾値との比較処理を行う。そして所定割合以上の画素データが条件を満たすか否かに基づいて、判定対象のインクIKのインク色を判定する。
4.3 Modifications In the above, an example in which the R light amount, the G light amount, and the B light amount are the minimum value, the average value, or the like of the pixel data in the ink detection region has been described. That is, the amount of light is one numerical data, and the ink color determination process is a comparison process between the numerical data and the threshold value. However, the amount of light in this embodiment may be a set of a plurality of pixel data in the ink detection region. For example, the processing unit 120 performs comparison processing with the above threshold value for each pixel data of a plurality of pixel data. Then, the ink color of the ink IK to be determined is determined based on whether or not the pixel data of a predetermined ratio or more satisfies the condition.

或いは光量は、インク検出領域における複数の画素データを含む波形情報であってもよい。例えば記憶部140は、各色のインクIKについて、基準波形情報を記憶しておく。基準波形情報は、対応する色のインクIKで想定される波形情報である。例えばブラックインクの基準波形情報は、ブラックインクを対象として実測された波形情報に基づいて設定される。処理部120は、センサー190から取得した波形情報と各インク色についての基準波形情報を比較することによって、判定対象のインクIKのインク色を判定してもよい。ここで、波形情報とは、インク検出領域における複数の画素データの集合である。実体は数字を羅列や数式で表現することもできるが、図27から図33のようにグラフにしたときに、波のように見えることから波形情報と称している。 Alternatively, the amount of light may be waveform information including a plurality of pixel data in the ink detection region. For example, the storage unit 140 stores reference waveform information for each color of ink IK. The reference waveform information is waveform information assumed for the ink IK of the corresponding color. For example, the reference waveform information of black ink is set based on the waveform information actually measured for black ink. The processing unit 120 may determine the ink color of the ink IK to be determined by comparing the waveform information acquired from the sensor 190 with the reference waveform information for each ink color. Here, the waveform information is a set of a plurality of pixel data in the ink detection region. The entity can express numbers by enumeration or mathematical formulas, but it is called waveform information because it looks like a wave when graphed as shown in FIGS. 27 to 33.

また以上では、所定のインク色であるか否かを判定するために、当該所定のインク色に対応する閾値を用いた比較処理を行う例について説明した。この場合、ブラックインク用の閾値、シアンインク用の閾値等が個別に設定され、各閾値がR光量との比較用閾値、G光量との比較用閾値、B光量との比較用閾値を含む。換言すれば、インク色を基準として判定を行う手法を説明した。 Further, in the above, an example in which a comparison process using a threshold value corresponding to the predetermined ink color is performed in order to determine whether or not the ink color is a predetermined color has been described. In this case, a threshold value for black ink, a threshold value for cyan ink, and the like are individually set, and each threshold value includes a threshold value for comparison with the amount of R light, a threshold value for comparison with the amount of G light, and a threshold value for comparison with the amount of B light. In other words, the method of making a judgment based on the ink color has been described.

ただし本実施形態の手法はこれに限定されない。処理部120は、第1光量と、値の異なる複数の閾値を含む第1光量閾値とを用いた比較処理を行うことによって、第1光量特性が、3以上の特性のうちのいずれの特性であるかを分類してもよい。同様に、第2光量と、値の異なる複数の閾値を含む第2光量閾値とを用いた比較処理を行うことによって、第2光量特性が、3以上の特性のうちのいずれの特性であるかを分類する。そして処理部120は、第1光量特性と第2光量特性の組み合わせパターンに基づいて、インク色判定を行う。第3の光を用いる場合、処理部120は、第3光量と、値の異なる複数の閾値を含む第3光量閾値とを用いた比較処理を行うことによって、第3光量特性が、3以上の特性のうちのいずれの特性であるかを分類する。そして第1〜第3光量特性の組み合わせパターンに基づいて、インク色判定を行う。 However, the method of this embodiment is not limited to this. The processing unit 120 performs a comparison process using the first light amount and the first light amount threshold value including a plurality of threshold values having different values, so that the first light amount characteristic is any of the characteristics of 3 or more. You may classify whether there is. Similarly, by performing a comparison process using the second light amount and the second light amount threshold value including a plurality of threshold values having different values, which of the three or more characteristics the second light amount characteristic is. To classify. Then, the processing unit 120 determines the ink color based on the combination pattern of the first light quantity characteristic and the second light quantity characteristic. When the third light is used, the processing unit 120 performs a comparison process using the third light amount and the third light amount threshold value including a plurality of threshold values having different values, so that the third light amount characteristic is 3 or more. Classify which of the characteristics it is. Then, the ink color determination is performed based on the combination pattern of the first to third light intensity characteristics.

例えば、図28〜図33を鑑みて、各光量特性として4つの特性を設定する。第1特性は、ブラックインクのR光量のように、インク検出領域における画素データと、インク非検出領域における画素データとの差が非常に大きい特性である。例えば、インク検出領域における画素データが0近傍であり、インク非検出領域における画素データが200近傍である。このような光量特性は、液面近傍での値の変化幅が大きく、インク量検出処理に適した特性と言える。ブラックインクのB光量や、マゼンタインクのB光量は、インク検出領域における画素データが0まで下がらないが、インク非検出領域との差分が十分大きいため、それらの光量特性は第1特性に含まれる。 For example, in view of FIGS. 28 to 33, four characteristics are set as each light quantity characteristic. The first characteristic is a characteristic in which the difference between the pixel data in the ink detection region and the pixel data in the ink non-detection region is very large, such as the amount of R light of black ink. For example, the pixel data in the ink detection region is in the vicinity of 0, and the pixel data in the ink non-detection region is in the vicinity of 200. It can be said that such a light amount characteristic is suitable for the ink amount detection process because the value change range is large in the vicinity of the liquid surface. Regarding the B light amount of black ink and the B light amount of magenta ink, the pixel data in the ink detection area does not decrease to 0, but since the difference from the ink non-detection area is sufficiently large, those light amount characteristics are included in the first characteristic. ..

第2特性は、マゼンタインクのR光量のように、インク検出領域における画素データと、インク非検出領域における画素データとの差が非常に小さい特性である。例えば、インク検出領域における画素データと、インク非検出領域における画素データがともに200近傍である。このような光量特性は、液面近傍での値の変化幅が小さく、インク量検出処理に適していない。イエローインクのG光量は、インク検出領域における画素データが150程度の値であるが、インク非検出領域の値も160〜170程度の値となるため、イエローインクのG光量特性は第2特性である。 The second characteristic is a characteristic in which the difference between the pixel data in the ink detection region and the pixel data in the ink non-detection region is very small, such as the R light amount of magenta ink. For example, the pixel data in the ink detection region and the pixel data in the ink non-detection region are both in the vicinity of 200. Such a light amount characteristic is not suitable for the ink amount detection process because the range of change in the value near the liquid surface is small. The G light amount of the yellow ink is a value of about 150 for the pixel data in the ink detection region, but the value of the ink non-detection area is also a value of about 160 to 170. Therefore, the G light amount characteristic of the yellow ink is the second characteristic. is there.

第3特性は、シアンインクのB光量のように、インク検出領域における画素データと、インク非検出領域における画素データとの差が中間的な値となる特性である。例えば、インク検出領域における画素データと、インク非検出領域における画素データの差が100程度である。このような光量特性は、液面近傍での値の変化幅が中程度であるため、インク量検出処理は可能であるが、第1特性に比べて高精度での判定が難しい。 The third characteristic is a characteristic in which the difference between the pixel data in the ink detection region and the pixel data in the ink non-detection region is an intermediate value, such as the amount of B light of cyan ink. For example, the difference between the pixel data in the ink detection region and the pixel data in the ink non-detection region is about 100. Since the range of change in the value of such a light amount characteristic is medium in the vicinity of the liquid surface, the ink amount detection process is possible, but it is difficult to determine with higher accuracy than the first characteristic.

第4特性は、インク検出領域における画素データが、インク非検出領域における画素データに比べて大きい値となる特性である。第4特性は、インクIKの反射率が非常に高くなる場合に対応する。例えば、イエローインクのR光量特性や、ホワイトインクの各光量特性が第4特性となる。 The fourth characteristic is that the pixel data in the ink detection region has a larger value than the pixel data in the ink non-detection region. The fourth characteristic corresponds to the case where the reflectance of the ink IK becomes very high. For example, the R light intensity characteristic of the yellow ink and each light intensity characteristic of the white ink are the fourth characteristics.

図36は、インク色、光の波長帯域、光量特性の関係を示す図である。図36において、○は第1特性を表し、×は第2特性を表し、△は第3特性を表し、*は第4特性を表す。 FIG. 36 is a diagram showing the relationship between the ink color, the wavelength band of light, and the light amount characteristic. In FIG. 36, ◯ represents the first characteristic, × represents the second characteristic, Δ represents the third characteristic, and * represents the fourth characteristic.

図36に示すように、ブラックインクは、R光量特性、G光量特性、B光量特性の全てが○である。シアンインクは、R光量特性とG光量特性が○であり、B光量特性が△である。マゼンタインクは、R光量特性が×であり、G光量特性とB光量特性が○である。イエローインクは、R光量特性が*であり、G光量特性が×であり,B光量特性が○である。ホワイトインクは、R光量特性、G光量特性、B光量特性の全てが*である。クリアインクは、R光量特性、G光量特性、B光量特性の全てが△である。 As shown in FIG. 36, in the black ink, all of the R light amount characteristic, the G light amount characteristic, and the B light amount characteristic are ◯. The cyan ink has an R light quantity characteristic and a G light quantity characteristic of ◯, and a B light quantity characteristic of Δ. The magenta ink has an R light quantity characteristic of x, and a G light quantity characteristic and a B light quantity characteristic of ◯. The yellow ink has an R light intensity characteristic of *, a G light intensity characteristic of ×, and a B light intensity characteristic of ◯. The white ink has all of the R light amount characteristic, the G light amount characteristic, and the B light amount characteristic *. In the clear ink, all of the R light amount characteristic, the G light amount characteristic, and the B light amount characteristic are Δ.

図36からわかるように、ブラック、シアン、マゼンタ、イエロー、ホワイト、クリアの各インクは、RGBの3つの光量特性の組み合わせパターンが互いに重複しない。よって処理部120は、判定対象のインクIKについて光量特性の組み合わせパターンを求め、当該パターンが図36のいずれのパターンに一致するかという判定に基づいて、インク色を判定できる。 As can be seen from FIG. 36, the black, cyan, magenta, yellow, white, and clear inks do not overlap with each other in the combination patterns of the three light intensity characteristics of RGB. Therefore, the processing unit 120 can obtain a combination pattern of light quantity characteristics for the ink IK to be determined, and can determine the ink color based on the determination of which pattern in FIG. 36 the pattern matches.

例えば処理部120は、インク非検出領域における画素データとインク検出領域における画素データの差分絶対値を光量として求める。そして当該光量が150より大きい場合に第1特性と判定し、50より大きく150以下の場合に第3特性と判定する。光量が50以下の場合、インク検出領域の画素データとインク非検出領域の画素データの大小関係を判定する。処理部120は、インク検出領域の画素データが相対的に小さい場合に第2特性と判定し、インク検出領域の画素データが相対的に大きい場合に第4特性と判定する。この場合、第1光量閾値に含まれる複数の閾値とは50と150の2つである。同様に、第2光量閾値に含まれる複数の閾値も50と150の2つである。ただし、閾値の具体的な数値は種々の変形実施が可能である。また第1光量閾値に含まれる複数の閾値と、第2光量閾値に含まれる複数の閾値は一致しなくてもよい。例えばR光量特性判定用の閾値と、G光量特性判定用の閾値とが異なってもよい。 For example, the processing unit 120 obtains the absolute difference between the pixel data in the ink non-detection region and the pixel data in the ink detection region as the amount of light. Then, when the amount of light is greater than 150, it is determined to be the first characteristic, and when it is greater than 50 and 150 or less, it is determined to be the third characteristic. When the amount of light is 50 or less, the magnitude relationship between the pixel data in the ink detection region and the pixel data in the ink non-detection region is determined. The processing unit 120 determines that the second characteristic is when the pixel data in the ink detection region is relatively small, and determines that the fourth characteristic is when the pixel data in the ink detection region is relatively large. In this case, the plurality of thresholds included in the first light intensity threshold are 50 and 150. Similarly, the plurality of thresholds included in the second light intensity threshold are also 50 and 150. However, the specific numerical value of the threshold value can be modified in various ways. Further, the plurality of thresholds included in the first light amount threshold value and the plurality of threshold values included in the second light amount threshold value do not have to match. For example, the threshold value for determining the R light intensity characteristic and the threshold value for determining the G light intensity characteristic may be different.

また、ここではインク非検出領域における画素データを基準としたインク検出領域での画素データを光量として用いる例を説明したが、インク検出領域での画素データをそのまま光量として用いてもよい。例えば処理部120は、第1光量閾値として50、150、220の3つの閾値を設定する。そして処理部120は、インク検出領域での画素データの値が50以下の場合に第1特性と判定し、50より大きく150以下の場合に第3特性と判定し、150より大きく220以下の場合に第2特性と判定し、220より大きい場合に第4特性と判定する。第2光量閾値、第3光量閾値についても同様に3つに閾値に基づいて光量特性を判定してもよい。 Further, although an example in which the pixel data in the ink detection region based on the pixel data in the ink non-detection region is used as the light amount has been described here, the pixel data in the ink detection region may be used as it is as the light amount. For example, the processing unit 120 sets three thresholds of 50, 150, and 220 as the first light intensity threshold. Then, the processing unit 120 determines that the value of the pixel data in the ink detection region is 50 or less as the first characteristic, if it is larger than 50 and 150 or less, it is determined as the third characteristic, and if it is larger than 150 and 220 or less. If it is larger than 220, it is determined to be the fourth characteristic. Similarly, for the second light amount threshold value and the third light amount threshold value, the light amount characteristic may be determined based on the three threshold values.

また図36からわかるように、△を×に置き換えたとしても、光量特性の組み合わせパターンは互いに重複するものはない。そのため、処理部120は、第2特性と第3特性を区別せずに、光量特性を3つに分類してもよい。同様に、*を×に置き換えたとしても、光量特性の組み合わせパターンは重複しない。そのため、処理部120は、第2特性と第4特性を区別せずに、光量特性を3つに分類してもよい。 Further, as can be seen from FIG. 36, even if Δ is replaced with ×, the combination patterns of the light intensity characteristics do not overlap with each other. Therefore, the processing unit 120 may classify the light quantity characteristics into three without distinguishing between the second characteristic and the third characteristic. Similarly, even if * is replaced with x, the combination patterns of the light intensity characteristics do not overlap. Therefore, the processing unit 120 may classify the light quantity characteristics into three without distinguishing between the second characteristic and the fourth characteristic.

また、以上ではRGBの全ての光量を取得してからインク種別判定を行う例について説明した。ただしこれについても変形実施が可能である。なお、以下では説明を簡略化するために、ブラック、シアン、マゼンタ、イエローの4色を対象として、インク色判定を行う処理について説明する。 Further, in the above, an example in which the ink type determination is performed after acquiring all the RGB light amounts has been described. However, this can also be modified. In the following, in order to simplify the explanation, a process of determining the ink color for four colors of black, cyan, magenta, and yellow will be described.

図37は、インク色判定処理を説明する他のフローチャートである。この処理が開始されると、処理部120はR光量を取得する(S501)。S501においてはRに対応する赤色LED323Rの発光制御が行われ、緑色LED323G及び青色LED323Bの発光制御は不要である。処理部120は、R光量を用いた判定を行う(S502)。S502の処理は、例えば図36を用いた光量特性判定であり、狭義には第1特性であるか否かの判定である。 FIG. 37 is another flowchart illustrating the ink color determination process. When this process is started, the process unit 120 acquires the amount of R light (S501). In S501, the light emission control of the red LED 323R corresponding to R is performed, and the light emission control of the green LED 323G and the blue LED 323B is unnecessary. The processing unit 120 makes a determination using the amount of R light (S502). The process of S502 is, for example, the determination of the light quantity characteristic using FIG. 36, and in a narrow sense, the determination of whether or not it is the first characteristic.

R光量特性が第1特性である場合(S502でYes)、判定対象のインクIKはブラック又はシアンと判定される。よって処理部120は、B光量を取得する(S503)。S503においては青色LED323Bの発光制御が行われ、赤色LED323R及び緑色LED323Gの発光制御は不要である。処理部120は、B光量を用いた判定を行う(S504)。B光量特性が第1特性である場合(S504でYes)、処理部120は判定対象のインクIKがブラックインクであると判定する(S505)。B光量特性が第1特性でない場合(S504でNo)、処理部120は判定対象のインクIKがシアンインクであると判定する(S506)。 When the R light intensity characteristic is the first characteristic (Yes in S502), the ink IK to be determined is determined to be black or cyan. Therefore, the processing unit 120 acquires the amount of B light (S503). In S503, the light emission control of the blue LED 323B is performed, and the light emission control of the red LED 323R and the green LED 323G is unnecessary. The processing unit 120 makes a determination using the amount of B light (S504). When the B light intensity characteristic is the first characteristic (Yes in S504), the processing unit 120 determines that the ink IK to be determined is black ink (S505). When the B light intensity characteristic is not the first characteristic (No in S504), the processing unit 120 determines that the ink IK to be determined is cyan ink (S506).

R光量特性が第1特性でない場合(S502でNo)、判定対象のインクIKはマゼンタ又はイエローと判定される。よって処理部120は、G光量を取得する(S507)。S507においては緑色LED323Gの発光制御が行われ、赤色LED323R及び青色LED323Bの発光制御は不要である。処理部120は、G光量を用いた判定を行う(S508)。G光量特性が第1特性である場合(S508でYes)、処理部120は判定対象のインクIKがマゼンタインクであると判定する(S509)。G光量特性が第1特性でない場合(S508でNo)、処理部120は判定対象のインクIKがシアンインクであると判定する(S510)。 When the R light intensity characteristic is not the first characteristic (No in S502), the ink IK to be determined is determined to be magenta or yellow. Therefore, the processing unit 120 acquires the amount of G light (S507). In S507, the light emission control of the green LED 323G is performed, and the light emission control of the red LED 323R and the blue LED 323B is unnecessary. The processing unit 120 makes a determination using the amount of G light (S508). When the G light intensity characteristic is the first characteristic (Yes in S508), the processing unit 120 determines that the ink IK to be determined is magenta ink (S509). When the G light intensity characteristic is not the first characteristic (No in S508), the processing unit 120 determines that the ink IK to be determined is cyan ink (S510).

図37に示す処理においては、インク色を判定するまでに波長帯域の異なる2つの光を発光すればよい。RGBの3色全ての光量を取得する場合に比べて、光源323の発光及びセンサー190による画素データの出力に要する時間を低減できるため、インク色判定処理の高速化が可能になる。なお図37ではまずR光量を判定し、その後にG光量又はB光量を判定する例を説明したが、判定順序に種々の変形実施が可能であることは容易に理解できることである。またS502、S504、S508の判定は、インク色間の差異を識別可能な処理であればよく、図36を用いて上述した光量特性判定に限定されない。 In the process shown in FIG. 37, two lights having different wavelength bands may be emitted before the ink color is determined. Compared with the case of acquiring the light amounts of all three colors of RGB, the time required for the light emission of the light source 323 and the output of the pixel data by the sensor 190 can be reduced, so that the ink color determination process can be speeded up. In FIG. 37, an example in which the R light amount is first determined and then the G light amount or the B light amount is determined has been described, but it is easy to understand that various modifications can be performed in the determination order. Further, the determination of S502, S504, and S508 may be any process as long as the difference between the ink colors can be identified, and is not limited to the above-mentioned light intensity characteristic determination using FIG. 36.

また本実施形態では、インク種別に基づいて、インク量検出処理に用いる光源323を決定してもよい。具体的には、ブラックインク、シアンインク、マゼンタインク、イエローインクのいずれかのインクIKを対象とする場合、光量特性が第1特性である光源323をインク量検出処理に用いる。上述したように、第1特性とはインク検出領域とインク非検出領域との画素データの差が大きい。そのため、第1特性の画素データを用いることによって、他の特性の画素データを用いる場合に比べてインク量検出処理の精度を高くすることが可能である。 Further, in the present embodiment, the light source 323 used for the ink amount detection process may be determined based on the ink type. Specifically, when the ink IK of any one of black ink, cyan ink, magenta ink, and yellow ink is targeted, the light source 323 whose light amount characteristic is the first characteristic is used for the ink amount detection process. As described above, the difference between the first characteristic and the pixel data between the ink detection region and the ink non-detection region is large. Therefore, by using the pixel data of the first characteristic, it is possible to increase the accuracy of the ink amount detection process as compared with the case of using the pixel data of other characteristics.

図37の処理とインク量検出処理を組み合わせる例について説明する。判定対象のインクIKがブラックインクであると判定された場合(S505)、処理部120は、S501において取得されたRの画素データ又はS503において取得されたBの画素データに基づいてインク量検出処理を行う。ブラックインクはRGB全ての光量特性が第1特性であるため、処理部120は任意の色の画素データをインク量検出処理に利用可能である。ここでは取得済の画素データを利用することを考慮し、R又はBを用いる。 An example of combining the process of FIG. 37 and the ink amount detection process will be described. When it is determined that the ink IK to be determined is black ink (S505), the processing unit 120 performs ink amount detection processing based on the pixel data of R acquired in S501 or the pixel data of B acquired in S503. I do. Since the light amount characteristic of all RGB is the first characteristic of the black ink, the processing unit 120 can use the pixel data of any color for the ink amount detection process. Here, R or B is used in consideration of using the acquired pixel data.

判定対象のインクIKがシアンインクであると判定された場合(S506)、処理部120は、S501において取得されたRの画素データに基づいてインク量検出処理を行う。判定対象のインクIKがマゼンタインクであると判定された場合(S509)、処理部120は、S507において取得されたGの画素データに基づいてインク量検出処理を行う。 When it is determined that the ink IK to be determined is cyan ink (S506), the processing unit 120 performs the ink amount detection process based on the pixel data of R acquired in S501. When it is determined that the ink IK to be determined is magenta ink (S509), the processing unit 120 performs the ink amount detection process based on the pixel data of G acquired in S507.

判定対象のインクIKがイエローインクであると判定された場合(S510)、処理部120は、Bの画素データに基づいてインク量検出処理を行う。ただしS510の段階ではB光量は未取得であるため、処理部120は青色LED323Bの発光制御を行うことによってB光量を取得した後、取得したBの画素データに基づいてインク量検出処理を行う。 When it is determined that the ink IK to be determined is yellow ink (S510), the processing unit 120 performs the ink amount detection process based on the pixel data of B. However, since the B light amount has not been acquired at the stage of S510, the processing unit 120 acquires the B light amount by controlling the light emission of the blue LED 323B, and then performs the ink amount detection process based on the acquired B pixel data.

5.センターユニットの光源を用いた報知
また以上では、センサーユニット320に含まれる光源323が、インク量検出処理又はインク種別判定処理に用いられる例について説明した。即ち、光源323はインクタンク310の側面に向けて光を照射する。ただし、光源323にこれらの他の機能も持たせることが可能である。
5. Notification using the light source of the center unit In the above, an example in which the light source 323 included in the sensor unit 320 is used for the ink amount detection process or the ink type determination process has been described. That is, the light source 323 irradiates light toward the side surface of the ink tank 310. However, it is possible to provide the light source 323 with these other functions as well.

例えば印刷装置である電子機器10は、インクタンク310、印刷ヘッド107、光源323、センサー190、処理部120に加えて、上記光源323からの光を筐体の外部に導く導光体112を含んでもよい。なおここでの筐体とは、印刷装置の各部を収容する部材である。例えば電子機器10は、インクタンク310、印刷ヘッド107、光源323、センサー190及び処理部120を収容する筐体を含む。ここでの筐体は、プリンターユニット100のケース部102に相当するが、当該筐体はスキャナーユニット200のケース部201、インクタンクユニット300のケース部301等を含んでもよい。また図6を用いて上述した導光体324は、光源323からの光をセンサーユニット320の外部に導くものであり、光源323からの光を筐体の外部に導く導光体112とは異なる。例えば光源323からの光は、導光体324を介して導光体112に入射し、導光体112によって筐体の外部に導かれる。 For example, the electronic device 10 which is a printing device includes an ink tank 310, a print head 107, a light source 323, a sensor 190, and a processing unit 120, as well as a light guide 112 that guides light from the light source 323 to the outside of a housing. It may be. The housing here is a member that houses each part of the printing apparatus. For example, the electronic device 10 includes a housing that houses an ink tank 310, a print head 107, a light source 323, a sensor 190, and a processing unit 120. The housing here corresponds to the case portion 102 of the printer unit 100, but the housing may include the case portion 201 of the scanner unit 200, the case portion 301 of the ink tank unit 300, and the like. Further, the light guide body 324 described above with reference to FIG. 6 guides the light from the light source 323 to the outside of the sensor unit 320, and is different from the light guide body 112 that guides the light from the light source 323 to the outside of the housing. .. For example, the light from the light source 323 enters the light guide body 112 via the light guide body 324, and is guided to the outside of the housing by the light guide body 112.

このようにすれば、インク量検出処理やインク種別判定処理に用いられる光源323を、他の用途に流用することが可能になる。具体的には光源323は、印刷装置の状態を視覚的に報知するために用いられる。例えば、光源323の発光に基づいて、インク量に関する報知を行うことや、エラー等の発生を報知することによって、ユーザーに適切な対処を促すことが可能になる。このようにすれば、光源323とは別に報知専用の光源を設ける必要がないため、印刷装置のコスト削減が可能になる。 In this way, the light source 323 used for the ink amount detection process and the ink type determination process can be diverted to other uses. Specifically, the light source 323 is used to visually notify the state of the printing apparatus. For example, it is possible to urge the user to take appropriate measures by notifying the amount of ink based on the light emission of the light source 323 and notifying the occurrence of an error or the like. In this way, it is not necessary to provide a light source dedicated to notification separately from the light source 323, so that the cost of the printing apparatus can be reduced.

図38及び図39は、本実施形態の印刷装置におけるインクタンク310、光源323を含むセンサーユニット320、導光体112の位置関係を説明する斜視図である。図38及び図39に示すように、導光体112とインクタンク310とは第1方向に並ぶ。ここでの第1方向は例えば±X方向であり、印刷装置の主走査軸HDに対応する。ここではインクタンク310として5つのインクタンク310a〜310eを例示している。例えば+X方向に沿って、導光体112、インクタンク310a、インクタンク310b、インクタンク310c、インクタンク310d、インクタンク310eがこの順に並んで配置される。 38 and 39 are perspective views illustrating the positional relationship between the ink tank 310, the sensor unit 320 including the light source 323, and the light guide 112 in the printing apparatus of the present embodiment. As shown in FIGS. 38 and 39, the light guide 112 and the ink tank 310 are aligned in the first direction. The first direction here is, for example, the ± X direction, which corresponds to the main scanning axis HD of the printing apparatus. Here, five ink tanks 310a to 310e are illustrated as the ink tanks 310. For example, the light guide 112, the ink tank 310a, the ink tank 310b, the ink tank 310c, the ink tank 310d, and the ink tank 310e are arranged side by side in this order along the + X direction.

また、光源323は、インクタンク310及び導光体112よりも−Y方向の位置に設けられ、インクタンク310又は導光体112の−Y方向側の側面に光を照射する。ここで図38及び図39に示すように、光源323及びセンサー190は、インクタンク310及び導光体112に対し、第1方向へ相対的に移動してもよい。 Further, the light source 323 is provided at a position in the −Y direction with respect to the ink tank 310 and the light guide body 112, and irradiates the side surface of the ink tank 310 or the light guide body 112 on the −Y direction side with light. Here, as shown in FIGS. 38 and 39, the light source 323 and the sensor 190 may move relative to the ink tank 310 and the light guide 112 in the first direction.

図9を用いて上述したように、インク量検出処理を考慮すれば、センサーユニット320はインクタンク310の側面に固定されてもよい。しかし、その状態が維持される場合、光源323からの光を導光体112を用いて筐体外部に導くことが難しい。これに対して、インクタンク310及び導光体112と、センサーユニット320とがX軸方向に沿って相対移動可能である場合、図38に示すように導光体112とセンサーユニット320のX軸での位置が重複する状態と、図39に示すようにいずれかのインクタンク310とセンサーユニット320のX軸での位置が重複する状態を切り替えることが可能になる。図38に示す状態においては、光源323からの光が導光体112に入射される。そのため、導光体112を筐体付近まで延伸させることによって、光源323の光を筐体の外部へ導くことが可能になる。図39に示す状態においては、光源323からの光がインクタンク310の側面に入射される。そのため、上述したインク量検出処理やインク種別判定処理が可能になる。 As described above with reference to FIG. 9, the sensor unit 320 may be fixed to the side surface of the ink tank 310 in consideration of the ink amount detection process. However, if that state is maintained, it is difficult to guide the light from the light source 323 to the outside of the housing by using the light guide 112. On the other hand, when the ink tank 310, the light guide 112, and the sensor unit 320 can move relative to each other along the X-axis direction, the X-axis of the light guide 112 and the sensor unit 320 is shown in FIG. 38. It is possible to switch between a state in which the positions of the ink tanks 310 and the sensor unit 320 overlap in the X-axis as shown in FIG. 39. In the state shown in FIG. 38, the light from the light source 323 is incident on the light guide 112. Therefore, by extending the light guide body 112 to the vicinity of the housing, the light of the light source 323 can be guided to the outside of the housing. In the state shown in FIG. 39, the light from the light source 323 is incident on the side surface of the ink tank 310. Therefore, the above-mentioned ink amount detection process and ink type determination process can be performed.

さらに言えば、インクタンク310aとセンサーユニット320のX軸での位置が重複する状態と、インクタンク310bとセンサーユニット320のX軸での位置が重複する状態とを切り替える制御も可能である。そのため、少数のセンサーユニット320、狭義には1つのセンサーユニット320を用いて、複数のインクタンク310を対象としたインク量検出処理、インク種別判定処理を実行することも可能である。 Furthermore, it is also possible to control switching between a state in which the positions of the ink tank 310a and the sensor unit 320 overlap on the X-axis and a state in which the positions of the ink tank 310b and the sensor unit 320 overlap on the X-axis. Therefore, it is also possible to use a small number of sensor units 320, or in a narrow sense, one sensor unit 320, to execute ink amount detection processing and ink type determination processing for a plurality of ink tanks 310.

図40は、インクタンク310、導光体112、センサーユニット320を+Z方向から観察した場合の、各部の位置関係を説明する図である。図40に示すように、印刷装置は、インクタンク310を搭載し、筐体に対して移動するキャリッジ106を更に含む。即ち、キャリッジ106は、インクタンク310と印刷ヘッド107を有し、それらを搭載した状態で主走査方向に移動可能である。このようにすれば、キャリッジ106を駆動する制御によって、インクタンク310と光源323の位置関係を調整することが可能になる。この場合、センサーユニット320は筐体に対する位置を固定可能であるが、キャリッジ106とセンサーユニット320の両方を駆動することも妨げられない。また、導光体を1部材又は複数部材で構成することも妨げられない。 FIG. 40 is a diagram for explaining the positional relationship of each part when the ink tank 310, the light guide body 112, and the sensor unit 320 are observed from the + Z direction. As shown in FIG. 40, the printing apparatus further includes a carriage 106 that includes an ink tank 310 and moves relative to the housing. That is, the carriage 106 has an ink tank 310 and a print head 107, and can move in the main scanning direction with the ink tank 310 and the print head 107 mounted therein. In this way, the positional relationship between the ink tank 310 and the light source 323 can be adjusted by controlling the carriage 106 to be driven. In this case, the position of the sensor unit 320 with respect to the housing can be fixed, but driving both the carriage 106 and the sensor unit 320 is not hindered. Further, it is not hindered that the light guide body is composed of one member or a plurality of members.

より具体的には、導光体112は、キャリッジ106に搭載された第1導光体112−1と、キャリッジ106外に設けられて筐体に固定された第2導光体112−2とを有する。そして、第1導光体112−1を通った光は第2導光体112−2を経由して筐体の外部に放出される。キャリッジ106に第1導光体112−1を搭載することによって、導光体112とセンサーユニット320のX軸における位置関係を調整することが可能になる。即ち、図38に示すように、光源323の光が導光体112に入射する状態を実現できる。また、第2導光体112−2を固定することによって、導光体112のうち、移動対象となる部分を限定できる。導光体112全体が移動する場合、他の部材との衝突を抑制するため、移動経路となる空間を大きく開けておく必要がある。これに対して、第2導光体112−2を筐体に固定することによって、印刷装置の大型化を抑制することが可能になる。 More specifically, the light guide body 112 includes a first light guide body 112-1 mounted on the carriage 106 and a second light guide body 112-2 provided outside the carriage 106 and fixed to a housing. Has. Then, the light that has passed through the first light guide body 112-1 is emitted to the outside of the housing via the second light guide body 112-2. By mounting the first light guide body 112-1 on the carriage 106, it is possible to adjust the positional relationship between the light guide body 112 and the sensor unit 320 on the X axis. That is, as shown in FIG. 38, it is possible to realize a state in which the light of the light source 323 is incident on the light guide body 112. Further, by fixing the second light guide body 112-2, the portion of the light guide body 112 to be moved can be limited. When the entire light guide body 112 moves, it is necessary to open a large space as a movement path in order to suppress collision with other members. On the other hand, by fixing the second light guide body 112-2 to the housing, it is possible to suppress the increase in size of the printing apparatus.

なお図40に示すように、光源323からの光が筐体の外部へ導かれる状態においては、光源323と第1導光体112−1と第2導光体112−2とが、第1方向に交差する第2方向において、この順に並ぶ。第2方向とはY軸に沿った方向であり、副走査軸VDに対応する。第2方向は、具体的には+Y方向である。このようにすれば、光源323からの光が第1導光体112−1、第2導光体112−2の順に導光されるため、当該光を適切に筐体の外部へ導くことが可能になる。 As shown in FIG. 40, in a state where the light from the light source 323 is guided to the outside of the housing, the light source 323, the first light guide body 112-1, and the second light guide body 112-2 are the first. They are arranged in this order in the second direction that intersects the directions. The second direction is a direction along the Y axis and corresponds to the sub-scanning axis VD. The second direction is specifically the + Y direction. In this way, the light from the light source 323 is guided in the order of the first light guide body 112-1 and the second light guide body 112-2, so that the light can be appropriately guided to the outside of the housing. It will be possible.

なお印刷装置は、導光体112と、窓部からなるインジケーターを含む。即ち、筐体の一部を透光性を有する窓部とすることによって、導光体112によって導かれた光源323からの光を筐体外部に放出可能となる。以下、窓部は光源323から照射された光の波長帯域を変更せずに、当該光を透過する例について説明する。例えば光源323が赤色LED323Rを発光させた場合、インジケーターは赤色に発光する。ただし本実施形態の手法はこれに限定されず、光源323からの光に対して何らかのフィルター処理が行われ、当該フィルター処理後の光が筐体の外部へ放出されてもよい。また、光源323からの光が、液晶ディスプレイ等のバックライトとして用いられてもよい。また窓部は、透光部材であってもよいし、筐体に設けられる開口であってもよい。 The printing device includes a light guide body 112 and an indicator including a window portion. That is, by making a part of the housing a translucent window portion, the light from the light source 323 guided by the light guide 112 can be emitted to the outside of the housing. Hereinafter, an example in which the window portion transmits the light without changing the wavelength band of the light emitted from the light source 323 will be described. For example, when the light source 323 emits the red LED 323R, the indicator emits red. However, the method of the present embodiment is not limited to this, and the light from the light source 323 may be subjected to some sort of filtering, and the light after the filtering may be emitted to the outside of the housing. Further, the light from the light source 323 may be used as a backlight for a liquid crystal display or the like. Further, the window portion may be a translucent member or an opening provided in the housing.

処理部120は、印刷装置に状態に基づいて、導光体112によって外部に導かれる光の制御を行う。このようにすれば、印刷装置の状態を適切にユーザーに報知することが可能になる。ここでの状態は、具体的には印刷装置のエラー状態又はインクタンク内のインクIKの状態である。インクIKの状態とは、具体的にはインクロー又はインクフルに対応する状態である。エラー状態によって表されるエラーとは、印刷ヘッド107の吐出不良、紙詰まり、インク漏れ、モーター故障、ポンプ故障等、種々のエラーが想定される。エラー状態とは、印刷を実行できない状態であったり、ユーザーが対処を行わないと印刷を実行できなくなるおそれがある状態である。そのためエラー状態を報知することは重要である。また、インクローはインクがなくなることによる印刷ヘッド107の不良が発生するおそれがある状態であり、インクフルはそれ以上の補充によりインク漏れが発生するおそれがある状態である。これらの場合についても、ユーザーに報知を行うことによって、印刷装置を適切に動作させることが可能になる。 The processing unit 120 controls the light guided to the outside by the light guide 112 based on the state of the printing apparatus. In this way, it is possible to appropriately notify the user of the state of the printing device. Specifically, the state here is an error state of the printing apparatus or an ink IK state in the ink tank. The state of ink IK is specifically a state corresponding to ink low or ink full. As the error represented by the error state, various errors such as ejection failure of the print head 107, paper jam, ink leakage, motor failure, and pump failure are assumed. The error state is a state in which printing cannot be executed, or a state in which printing may not be executed unless the user takes corrective action. Therefore, it is important to notify the error status. Ink low is a state in which a defect of the print head 107 may occur due to running out of ink, and ink full is a state in which ink leakage may occur due to further replenishment. Even in these cases, the printing device can be operated appropriately by notifying the user.

状態に応じた報知制御は、例えば光源323に含まれるいずれかの色の光源に関する制御であってもよい。この場合、処理部120は、当該光源の点灯、消灯、点滅等によって状態を表す制御を行う。処理部120は、点滅の間隔等を調整することによって状態を識別可能に報知してもよい。 The notification control according to the state may be, for example, control relating to a light source of any color included in the light source 323. In this case, the processing unit 120 controls the state by turning on, off, blinking, or the like of the light source. The processing unit 120 may notify the state in an identifiable manner by adjusting the blinking interval and the like.

或いは光源323は複数色の光を照射してもよい。処理部120は、複数色の光の発光パターンに基づいて、状態に応じた光の制御を行う。上述したように、インク量検出処理やインク種別判定処理においては、例えばRGBの3色の光が照射される。そのため処理部120は、点灯、消灯、点滅等の発光タイミングに関する制御だけでなく、インジケーターの発光色を制御してもよい。例えば処理部120は、RGBの各波長帯域の光をPWM(Pulse Width Modulation)制御によって光量を調整して混色することによって、インジケーターを報知の対象となるインク色で発光させる。 Alternatively, the light source 323 may irradiate light of a plurality of colors. The processing unit 120 controls the light according to the state based on the light emission pattern of the light of a plurality of colors. As described above, in the ink amount detection process and the ink type determination process, for example, three colors of RGB light are irradiated. Therefore, the processing unit 120 may control not only the light emission timing such as lighting, extinguishing, and blinking, but also the light emitting color of the indicator. For example, the processing unit 120 adjusts the amount of light by PWM (Pulse Width Modulation) control to mix the light in each wavelength band of RGB, thereby causing the indicator to emit light in the ink color to be notified.

図41は、光の混色を説明する図である。処理部120は、図41に示すように、赤色LED323Rの制御信号のパルス幅、緑色LED323Gの制御信号のパルス幅、及び青色LED323Bの制御信号のパルス幅を制御することによって、RGBの各色の強度を調整する。図41の例であれば、R光及びG光の強度を高くし、B光を発光させないことによって、光源323からの光を黄色光とすることが可能になる。例えば、イエローインクがインクロー又はインクフルと判定された場合に、処理部120はインジケーターを黄色光で発光させる制御を行う。例えば処理部120は、イエローインクがインクローと判定された場合にインジケーターを黄色点灯させる制御を行い、イエローインクがインクフルと判定された場合にインジケーターを黄色点滅させる制御を行う。このようにすれば、複数色のインクIKを用いる印刷装置において、インクIKの状態をわかりやすい態様で報知することが可能になる。 FIG. 41 is a diagram illustrating color mixing of light. As shown in FIG. 41, the processing unit 120 controls the pulse width of the control signal of the red LED 323R, the pulse width of the control signal of the green LED 323G, and the pulse width of the control signal of the blue LED 323B, thereby intensifying the intensity of each color of RGB. To adjust. In the example of FIG. 41, the light from the light source 323 can be made yellow light by increasing the intensity of the R light and the G light and not emitting the B light. For example, when it is determined that the yellow ink is ink low or ink full, the processing unit 120 controls the indicator to emit yellow light. For example, the processing unit 120 controls to turn on the indicator in yellow when the yellow ink is determined to be ink low, and controls to blink the indicator in yellow when the yellow ink is determined to be ink full. In this way, in a printing apparatus using ink IK of a plurality of colors, it is possible to notify the state of the ink IK in an easy-to-understand manner.

また本実施形態の手法は、インクタンク310と、印刷ヘッド107と、光源323と、センサー190と、処理部120とを含み、処理部120が印刷装置の状態に応じて光源323を制御することによって、当該状態をユーザーに報知する処理を行う印刷装置に適用できる。即ち、本実施形態の印刷装置は光源323の光を用いた報知を実行可能な構成を有すればよく、当該構成は導光体112に限定されない。インクタンクがキャリッジの外側に設けられた、所謂オフキャリ型の印刷装置にも適用可能である。この場合、インクタンクに並ぶように筐体に固定された導光体に対抗する位置に光源323が移動することで、光を用いた報知を実行可能にすればよい。 Further, the method of the present embodiment includes an ink tank 310, a print head 107, a light source 323, a sensor 190, and a processing unit 120, and the processing unit 120 controls the light source 323 according to the state of the printing apparatus. This can be applied to a printing device that performs a process of notifying the user of the state. That is, the printing apparatus of the present embodiment may have a configuration capable of executing notification using the light of the light source 323, and the configuration is not limited to the light guide 112. It can also be applied to a so-called off-carry type printing apparatus in which an ink tank is provided on the outside of a carriage. In this case, the light source 323 may move to a position opposite to the light guide body fixed to the housing so as to line up with the ink tank, so that the notification using light can be executed.

6.複合機
本実施形態にかかる電子機器10は、印刷機能とスキャン機能を有する複合機であってもよい。図42は、図1の電子機器10において、スキャナーユニット200のケース部201をプリンターユニット100に対して回動させた状態を表す斜視図である。図42に示す状態において、原稿台202が露呈する。ユーザーは原稿台202に読取り対象となる原稿をセットした上で、操作部160を用いてスキャン実行を指示する。スキャナーユニット200は、ユーザーの指示操作に基づいて、不図示の画像読取部を移動させながら読取り処理を行うことによって、原稿の画像を読み取る。なおスキャナーユニット200は、フラットベッド型のスキャナーに限定されない。例えば、スキャナーユニット200は、不図示のADF(Auto Document Feeder)を有するスキャナーであってもよい。また電子機器10は、フラットベッド型のスキャナーとADFを有するスキャナーの両方を有する機器であってもよい。
6. Multifunction device The electronic device 10 according to the present embodiment may be a multifunction device having a printing function and a scanning function. FIG. 42 is a perspective view showing a state in which the case portion 201 of the scanner unit 200 is rotated with respect to the printer unit 100 in the electronic device 10 of FIG. In the state shown in FIG. 42, the platen 202 is exposed. The user sets the original to be read on the platen 202, and then uses the operation unit 160 to instruct the scan to be executed. The scanner unit 200 reads the image of the original by performing the reading process while moving the image reading unit (not shown) based on the user's instruction operation. The scanner unit 200 is not limited to the flatbed type scanner. For example, the scanner unit 200 may be a scanner having an ADF (Auto Document Feeder) (not shown). Further, the electronic device 10 may be a device having both a flatbed type scanner and a scanner having an ADF.

電子機器10は、第1センサーモジュールを含む画像読取部と、インクタンク310と、印刷ヘッド107と、第2センサーモジュールと、処理部120を含む。画像読取部は、m(2以上の整数)個のリニアイメージセンサーチップを含む第1センサーモジュールを用いて原稿を読み込む。第2センサーモジュールは、n(nは1以上、n<mの整数)個のリニアイメージセンサーチップを含み、インクタンク310から入射される光を検出する。処理部120は、第2センサーモジュールの出力に基づいて、インクタンク内のインク量を検出する。第1センサーモジュールはスキャナーユニット200における画像のスキャンに用いられるセンサーモジュールであり、第2センサーモジュールは、インクタンクユニット300におけるインク量検出処理に用いられるセンサーモジュールである。 The electronic device 10 includes an image reading unit including a first sensor module, an ink tank 310, a print head 107, a second sensor module, and a processing unit 120. The image reading unit reads a document using a first sensor module including m (integer of 2 or more) linear image sensor chips. The second sensor module includes n (n is 1 or more, an integer of n <m) linear image sensor chips, and detects light incident from the ink tank 310. The processing unit 120 detects the amount of ink in the ink tank based on the output of the second sensor module. The first sensor module is a sensor module used for scanning an image in the scanner unit 200, and the second sensor module is a sensor module used for ink amount detection processing in the ink tank unit 300.

第1センサーモジュールと第2センサーモジュールは、いずれもリニアイメージセンサーチップを含む。リニアイメージセンサーチップの具体的な構成は、上述してきた光電変換デバイス322と同様であり、複数の光電変換素子が所定方向に並んで配置されるチップである。画像読み取りに用いるリニアイメージセンサーとインク量検出処理に用いるリニアイメージセンサーを共通化することが可能であるため、電子機器10の製造を効率化することが可能である。 Both the first sensor module and the second sensor module include a linear image sensor chip. The specific configuration of the linear image sensor chip is the same as that of the photoelectric conversion device 322 described above, and is a chip in which a plurality of photoelectric conversion elements are arranged side by side in a predetermined direction. Since the linear image sensor used for image reading and the linear image sensor used for ink amount detection processing can be shared, it is possible to improve the efficiency of manufacturing the electronic device 10.

ただし、第1センサーモジュールは読取り対象となる原稿サイズに応じた長さを有する必要がある。1つのリニアイメージセンサーチップの長さは例えば10mm程度であるため、第1センサーモジュールは少なくとも2以上のリニアイメージセンサーチップを含む必要がある。これに対して、第2センサーモジュールはインク量検出の対象範囲に対応する長さを有する。インク量検出の対象範囲は種々の変形実施が可能であるが、一般的には画像読取りに比べて短い。即ち、上述したとおり、mは2以上の整数、nは1以上の整数であって、m>nとなる。このようにすれば、用途に合わせてリニアイメージセンサーチップの個数を適切に設定することが可能になる。 However, the first sensor module needs to have a length corresponding to the size of the document to be read. Since the length of one linear image sensor chip is, for example, about 10 mm, the first sensor module needs to include at least two or more linear image sensor chips. On the other hand, the second sensor module has a length corresponding to the target range of ink amount detection. The target range of ink amount detection can be modified in various ways, but is generally shorter than that of image reading. That is, as described above, m is an integer of 2 or more, n is an integer of 1 or more, and m> n. In this way, the number of linear image sensor chips can be appropriately set according to the application.

また第1センサーモジュールと第2センサーモジュールの差は、リニアイメージセンサーチップの個数に限定されない。第1センサーモジュールのm個のリニアイメージセンサーチップは、長手方向が水平方向に沿って設けられる。第2センサーモジュールのn個のリニアイメージセンサーチップは、長手方向が鉛直方向に沿って設けられる。第2センサーモジュールは、上述したようにインクIKの液面を検出する必要があるため、長手方向が鉛直方向となる。 The difference between the first sensor module and the second sensor module is not limited to the number of linear image sensor chips. The m linear image sensor chips of the first sensor module are provided along the horizontal direction in the longitudinal direction. The n linear image sensor chips of the second sensor module are provided along the vertical direction in the longitudinal direction. Since the second sensor module needs to detect the liquid level of the ink IK as described above, the longitudinal direction is the vertical direction.

一方、原稿の画像を読み取ることを考慮すれば、第1センサーモジュールの長手方向は水平方向とする必要がある。第1センサーモジュールの長手方向を鉛直方向とした場合、原稿台202に原稿を安定してセットすることが難しい、或いはADFによる原稿搬送時に、原稿姿勢を安定させることが難しいためである。用途に合わせてリニアイメージセンサーチップの長手方向を設定することによって、インク量検出処理と画像読み取りを適切に実行することが可能になる。 On the other hand, in consideration of reading the image of the original, the longitudinal direction of the first sensor module needs to be the horizontal direction. This is because when the longitudinal direction of the first sensor module is set to the vertical direction, it is difficult to stably set the original on the platen 202, or it is difficult to stabilize the original posture when the original is conveyed by the ADF. By setting the longitudinal direction of the linear image sensor chip according to the application, it becomes possible to appropriately execute the ink amount detection process and the image reading.

また、第1センサーモジュールは、第1動作周波数で動作し、第2センサーモジュールは、第1動作周波数よりも低い第2動作周波数で動作する。画像読取りにおいては、多数の画素に対応する信号を連続的に取得し、当該信号のA/D変換処理、補正処理等を行って画像データを形成する必要がある。そのため、第1センサーモジュールによる読取りは高速で行うことが望ましい。一方、インク量検出は、光電変換素子の数が少ない上に、インク量の検出までにある程度の時間がかかっても問題になりにくい。センサーモジュールごとに動作周波数を設定することによって、各センサーモジュールを適切な速度によって動作させることが可能になる。 Further, the first sensor module operates at the first operating frequency, and the second sensor module operates at the second operating frequency lower than the first operating frequency. In image reading, it is necessary to continuously acquire signals corresponding to a large number of pixels and perform A / D conversion processing, correction processing, etc. of the signals to form image data. Therefore, it is desirable that the reading by the first sensor module be performed at high speed. On the other hand, the ink amount detection is less likely to be a problem even if the number of photoelectric conversion elements is small and it takes a certain amount of time to detect the ink amount. By setting the operating frequency for each sensor module, each sensor module can be operated at an appropriate speed.

以上のように本実施形態の印刷装置は、インクタンクと、印刷ヘッドと、光源と、センサーと、処理部と、導光体を含む。印刷ヘッドは、インクタンク内のインクを用いて印刷を行う。光源は、インクタンク内に光を照射する。センサーは、光源が発光する期間においてインクタンク側から入射される光を検出して画素データを出力する。処理部は、センサーの出力によってインク量を決定する。導光体は、光源からの光を筐体の外部に導く。 As described above, the printing apparatus of the present embodiment includes an ink tank, a printing head, a light source, a sensor, a processing unit, and a light guide body. The print head prints using the ink in the ink tank. The light source irradiates the ink tank with light. The sensor detects the light incident from the ink tank side during the period when the light source emits light and outputs the pixel data. The processing unit determines the amount of ink based on the output of the sensor. The light guide guides the light from the light source to the outside of the housing.

このようにすれば、インク量の決定に用いる光源の光を、筐体の外部に導くことが可能になる。インク量検出処理用の光源を報知処理等に流用できるため、コストの削減等が可能になる。 In this way, the light of the light source used for determining the amount of ink can be guided to the outside of the housing. Since the light source for the ink amount detection process can be diverted to the notification process and the like, the cost can be reduced.

また本実施形態の導光体とインクタンクとは第1方向に並び、光源及びセンサーは、インクタンク及び導光体に対し、第1方向へ相対的に移動してもよい。 Further, the light guide body and the ink tank of the present embodiment are arranged in the first direction, and the light source and the sensor may move relative to the ink tank and the light guide body in the first direction.

このようにすれば、光源を用いてインク量を検出可能な状態と、当該光源の光を筐体の外部へ導く状態とを切り替えることが可能になる。 In this way, it is possible to switch between a state in which the amount of ink can be detected using the light source and a state in which the light of the light source is guided to the outside of the housing.

また本実施形態の印刷装置は、インクタンクを搭載し、筐体に対して移動するキャリッジを更に含んでもよい。 Further, the printing apparatus of the present embodiment may further include a carriage that is equipped with an ink tank and moves with respect to the housing.

このようにすれば、キャリッジの駆動に基づいて、光源を用いてインク量を検出可能な状態と、当該光源の光を筐体の外部へ導く状態とを切り替えることが可能になる。 In this way, it is possible to switch between a state in which the amount of ink can be detected using the light source and a state in which the light of the light source is guided to the outside of the housing based on the drive of the carriage.

また本実施形態の導光体は、キャリッジに搭載された第1導光体と、キャリッジ外に設けられて筐体に固定された第2導光体とを有し、第1導光体を通った光は第2導光体を経由して筐体の外部に放出されてもよい。 Further, the light guide body of the present embodiment has a first light guide body mounted on the carriage and a second light guide body provided outside the carriage and fixed to the housing, and the first light guide body is provided. The light that has passed may be emitted to the outside of the housing via the second light guide body.

このようにすれば、キャリッジの駆動に基づいて、光源を用いてインク量を検出可能な状態と、当該光源の光を筐体の外部へ導く状態とを切り替えつつ、移動対象となる導光体のサイズを抑制することが可能になる。 In this way, the light guide body to be moved while switching between a state in which the amount of ink can be detected using a light source and a state in which the light of the light source is guided to the outside of the housing based on the drive of the carriage. It becomes possible to suppress the size of the.

また本実施形態では、光源と第1導光体と第2導光体とが、第1方向に交差する第2方向において、光源、第1導光体、第2導光体の順に並んでもよい。 Further, in the present embodiment, the light source, the first light guide body, and the second light guide body may be arranged in the order of the light source, the first light guide body, and the second light guide body in the second direction where the light source, the first light guide body, and the second light guide body intersect in the first direction. Good.

このようにすれば、第1導光体と第2導光体を用いて、光源の光を適切に筐体の外部まで導光することが可能になる。 In this way, it is possible to appropriately guide the light of the light source to the outside of the housing by using the first light guide body and the second light guide body.

また本実施形態の処理部は、印刷装置に状態に基づいて、導光体によって外部に導かれる光の制御を行ってもよい。 Further, the processing unit of the present embodiment may control the light guided to the outside by the light guide based on the state of the printing apparatus.

このようにすれば、インク量検出処理用の光源を用いて、印刷装置の状態を報知することが可能になる。 In this way, it is possible to notify the state of the printing apparatus by using the light source for the ink amount detection process.

また本実施形態の光源は複数色の光を照射し、処理部は、複数色の光の発光パターンに基づいて、状態に応じた光の制御を行ってもよい。 Further, the light source of the present embodiment irradiates light of a plurality of colors, and the processing unit may control the light according to the state based on the emission pattern of the light of the plurality of colors.

このようにすれば、インク量検出処理用の光源を用いて、多様な報知処理を行うことが可能になる。 In this way, various notification processes can be performed using the light source for the ink amount detection process.

また本実施形態の状態は、印刷装置のエラー状態又はインクタンク内のインクの状態であってもよい。 Further, the state of the present embodiment may be an error state of the printing apparatus or a state of ink in the ink tank.

このようにすれば、ユーザーによる対処が必要となる状態を適切に報知することが可能になる。 In this way, it is possible to appropriately notify the state that needs to be dealt with by the user.

また本実施形態の導光体と、窓部からなるインジケーターをさらに含んでもよい。 Further, the light guide body of the present embodiment and an indicator including a window portion may be further included.

このようにすれば、光源を用いた報知を効率的な構成によって実現することが可能になる。 In this way, it is possible to realize notification using a light source with an efficient configuration.

また本実施形態の印刷装置は、インクタンクと、印刷ヘッドと、光源と、センサーと、処理部を含む。印刷ヘッドは、インクタンク内のインクを用いて印刷を行う。光源は、インクタンク内に光を照射する。センサーは、光源が発光する期間においてインクタンク側から入射される光を検出して画素データを出力する。処理部は、センサーの出力によってインク量を決定する。そして処理部は、印刷装置の状態に応じて光源を制御することによって、当該状態をユーザーに報知する処理を行う。 Further, the printing apparatus of this embodiment includes an ink tank, a printing head, a light source, a sensor, and a processing unit. The print head prints using the ink in the ink tank. The light source irradiates the ink tank with light. The sensor detects the light incident from the ink tank side during the period when the light source emits light and outputs the pixel data. The processing unit determines the amount of ink based on the output of the sensor. Then, the processing unit controls the light source according to the state of the printing device to notify the user of the state.

このようにすれば、インク量の決定に用いる光源を報知処理に流用できるため、コストの削減等が可能になる。 In this way, the light source used for determining the amount of ink can be diverted to the notification process, so that the cost can be reduced.

また本実施形態のセンサーは、光電変換デバイスと、光電変換デバイスに接続されたAFE(Analog Front End)回路を含んでもよい。 Further, the sensor of the present embodiment may include a photoelectric conversion device and an AFE (Analog Front End) circuit connected to the photoelectric conversion device.

このようにすれば、デジタルデータである画素データを出力するセンサーを実現することが可能になる。 In this way, it becomes possible to realize a sensor that outputs pixel data, which is digital data.

また本実施形態の光電変換デバイスは、リニアイメージセンサーであってもよい。 Further, the photoelectric conversion device of this embodiment may be a linear image sensor.

このように、所定方向に並ぶ複数の光電変換素子を用いることによって、インク量を精度よく検出することが可能になる。 By using a plurality of photoelectric conversion elements arranged in a predetermined direction in this way, it is possible to accurately detect the amount of ink.

また本実施形態のリニアイメージセンサーは、長手方向が鉛直方向に沿うように設けられてもよい。 Further, the linear image sensor of the present embodiment may be provided so that the longitudinal direction is along the vertical direction.

このように、鉛直方向に並ぶ複数の光電変換素子を用いることによって、インク量を精度よく検出することが可能になる。 By using a plurality of photoelectric conversion elements arranged in the vertical direction in this way, it is possible to accurately detect the amount of ink.

なお、上記のように本実施形態について詳細に説明したが、本実施形態の新規事項および効果から実体的に逸脱しない多くの変形が可能であることは当業者には容易に理解できるであろう。従って、このような変形例はすべて本開示の範囲に含まれるものとする。例えば、明細書又は図面において、少なくとも一度、より広義または同義な異なる用語と共に記載された用語は、明細書又は図面のいかなる箇所においても、その異なる用語に置き換えることができる。また本実施形態及び変形例の全ての組み合わせも、本開示の範囲に含まれる。また電子機器、プリンターユニット、スキャナーユニット、インクタンクユニット等の構成及び動作等も、本実施形態で説明したものに限定されず、種々の変形実施が可能である。 Although the present embodiment has been described in detail as described above, those skilled in the art will easily understand that many modifications that do not substantially deviate from the new matters and effects of the present embodiment are possible. .. Therefore, all such variations are included in the scope of the present disclosure. For example, a term described at least once in a specification or drawing with a different term in a broader or synonymous manner may be replaced by that different term anywhere in the specification or drawing. All combinations of the present embodiment and modifications are also included in the scope of the present disclosure. Further, the configuration and operation of the electronic device, the printer unit, the scanner unit, the ink tank unit, and the like are not limited to those described in the present embodiment, and various modifications can be performed.

例えば、光電変換デバイスは、リニアイメージセンサーを水平方向や水平方向から斜めに配置してもよい。この場合は、複数のリニアイメージセンサーを垂直方向に並べる又はインクタンクに対して相対的に垂直方向に移動させることで、リニアイメージセンサーを垂直方向に配置したときと同等の情報を得ることができる。また、光電変換デバイスは、1又は複数のエリアイメージセンサーであってもよい。このようにすることで、1つのイメージセンサーを複数のインクタンクに跨るようにしてもよい。 For example, in the photoelectric conversion device, the linear image sensor may be arranged horizontally or diagonally from the horizontal direction. In this case, by arranging a plurality of linear image sensors in the vertical direction or moving them in the vertical direction relative to the ink tank, it is possible to obtain the same information as when the linear image sensors are arranged in the vertical direction. .. Further, the photoelectric conversion device may be one or a plurality of area image sensors. By doing so, one image sensor may be straddled over a plurality of ink tanks.

10…電子機器、100…プリンターユニット、101…操作パネル、102…ケース部、104…前面カバー、105…チューブ、106…キャリッジ、107…印刷ヘッド、108…紙送りモーター、109…キャリッジモーター、110…紙送りローラー、111…基板、112…導光体、120…処理部、130…AFE回路、140…記憶部、150…表示部、160…操作部、170…外部I/F部、190…センサー、200…スキャナーユニット、201…ケース部、202…原稿台、300…インクタンクユニット、301…ケース部、302…蓋部、303…ヒンジ部、310,310a〜310e…インクタンク、311…注入口、312…排出口、313…第2排出口、314…インク流路、315…メイン容器、320…センサーユニット、321…基板、322…光電変換デバイス、3222…制御回路、3223…昇圧回路、3224…画素駆動回路、3225…画素部、3226…CDS回路、3227…サンプルホールド回路、3228…出力回路、323…光源、323R…赤色LED、323G…緑色LED、323B…青色LED、324…導光体、325…レンズアレイ、326…ケース、327,328…開口部、329…光遮断壁、CDSC,CPC,DRC…制御信号、CLK…クロック信号、Drv,DrvB,DrvG,DrvR…駆動信号、EN_I,EN_O,EN1〜ENn…チップイネーブル信号、HD…主走査軸、VD…副走査軸、IK,IKa〜IKe…インク、OP1,OP2…出力端子、OS…出力信号、P…印刷媒体、RS…反射面、RST…リセット信号、SMP…サンプリング信号、SW0〜SW8…スイッチ、Tx…転送制御信号、VDD,VSS…電源電圧、VDP,VSP…電源端子、VREF…基準電圧、VRP…基準電圧供給端子 10 ... Electronic equipment, 100 ... Printer unit, 101 ... Operation panel, 102 ... Case, 104 ... Front cover, 105 ... Tube, 106 ... Carriage, 107 ... Print head, 108 ... Paper feed motor, 109 ... Carriage motor, 110 ... Paper feed roller, 111 ... Substrate, 112 ... Light guide, 120 ... Processing unit, 130 ... AFE circuit, 140 ... Storage unit, 150 ... Display unit, 160 ... Operation unit, 170 ... External I / F unit, 190 ... Sensor, 200 ... Scanner unit, 201 ... Case, 202 ... Document stand, 300 ... Ink tank unit, 301 ... Case, 302 ... Lid, 303 ... Hinge, 310, 310a-310e ... Ink tank, 311 ... Note Inlet, 312 ... Discharge port, 313 ... Second discharge port, 314 ... Ink flow path, 315 ... Main container, 320 ... Sensor unit, 321 ... Board, 322 ... Photoelectric conversion device, 3222 ... Control circuit, 3223 ... Boost circuit, 3224 ... Pixel drive circuit, 3225 ... Pixel part, 3226 ... CDS circuit, 3227 ... Sample hold circuit, 3228 ... Output circuit, 323 ... Light source, 323R ... Red LED, 323G ... Green LED, 323B ... Blue LED, 324 ... Light guide Body, 325 ... Lens array, 326 ... Case, 327,328 ... Opening, 329 ... Light blocking wall, CDSC, CPC, DRC ... Control signal, CLK ... Clock signal, Drv, DrvB, DrvG, DrvR ... Drive signal, EN_I , EN_O, EN1 to ENn ... Chip enable signal, HD ... Main scanning axis, VD ... Sub scanning axis, IK, IKa to IKe ... Ink, OP1, OP2 ... Output terminal, OS ... Output signal, P ... Print medium, RS ... Reflective surface, RST ... reset signal, SMP ... sampling signal, SW0 to SW8 ... switch, Tx ... transfer control signal, VDD, VSS ... power supply voltage, VDP, VSS ... power supply terminal, VREF ... reference voltage, VRP ... reference voltage supply terminal

Claims (13)

インクタンクと、
前記インクタンク内のインクを用いて印刷を行う印刷ヘッドと、
前記インクタンク内に光を照射する光源と、
前記光源が発光する期間において前記インクタンク側から入射される光を検出するセンサーと、
前記センサーの出力によってインク量を決定する処理部と、
前記光源からの光を筐体の外部に導く導光体と、
を含むことを特徴とする印刷装置。
Ink tank and
A print head that prints using the ink in the ink tank,
A light source that irradiates the ink tank with light,
A sensor that detects light incident from the ink tank side during the period when the light source emits light,
A processing unit that determines the amount of ink based on the output of the sensor,
A light guide that guides the light from the light source to the outside of the housing,
A printing apparatus comprising.
請求項1において、
前記導光体と前記インクタンクとは第1方向に並び、
前記光源及び前記センサーは、前記インクタンク及び前記導光体に対し、前記第1方向へ相対的に移動することを特徴とする印刷装置。
In claim 1,
The light guide and the ink tank are arranged in the first direction.
A printing apparatus characterized in that the light source and the sensor move relative to the ink tank and the light guide in the first direction.
請求項2において、
前記インクタンクを搭載し、前記筐体に対して移動するキャリッジを更に含むことを特徴とする印刷装置。
In claim 2,
A printing apparatus comprising the ink tank and further including a carriage that moves with respect to the housing.
請求項3において
前記導光体は、前記キャリッジに搭載された第1導光体と、前記キャリッジ外に設けられて前記筐体に固定された第2導光体とを有し、
前記第1導光体を通った光は前記第2導光体を経由して前記筐体の外部に放出されることを特徴とする印刷装置。
In claim 3, the light guide body includes a first light guide body mounted on the carriage and a second light guide body provided outside the carriage and fixed to the housing.
A printing apparatus characterized in that light that has passed through the first light guide body is emitted to the outside of the housing via the second light guide body.
請求項4において、
前記光源と前記第1導光体と前記第2導光体とが、前記第1方向に交差する第2方向において、前記光源、前記第1導光体、前記第2導光体の順に並ぶことを特徴とする印刷装置。
In claim 4,
In the second direction in which the light source, the first light guide body, and the second light guide body intersect in the first direction, the light source, the first light guide body, and the second light guide body are arranged in this order. A printing device characterized by the fact that.
請求項1乃至5のいずれか一項において、
前記処理部は、印刷装置に状態に基づいて、前記導光体によって外部に導かれる光の制御を行うことを特徴とする印刷装置。
In any one of claims 1 to 5,
The processing unit is a printing device that controls the light guided to the outside by the light guide based on the state of the printing device.
請求項6において、
前記光源は複数色の光を照射し、
前記処理部は、前記複数色の光の発光パターンに基づいて、前記状態に応じた光の制御を行うことを特徴とする印刷装置。
In claim 6,
The light source irradiates light of multiple colors and
The processing unit is a printing apparatus characterized in that the light is controlled according to the state based on the light emission pattern of the plurality of colors of light.
請求項6又は7において、
前記状態は、前記印刷装置のエラー状態又は前記インクタンク内の前記インクの状態であることを特徴とする印刷装置。
In claim 6 or 7,
The printing device is characterized in that the state is an error state of the printing device or a state of the ink in the ink tank.
請求項1乃至8のいずれか一項において、
前記導光体と、窓部からなるインジケーターをさらに含むことを特徴とする印刷装置。
In any one of claims 1 to 8,
A printing apparatus comprising the light guide body and an indicator including a window portion.
インクタンクと、
前記インクタンク内のインクを用いて印刷を行う印刷ヘッドと、
前記インクタンク内に光を照射する光源と、
前記光源が発光する期間において前記インクタンク側から入射される光を検出するセンサーと、
前記センサーの出力によってインク量を決定する処理部と、
を含み、
前記処理部は、
前記印刷装置の状態に応じて前記光源を制御することによって、前記状態をユーザーに報知する処理を行うことを特徴とする印刷装置。
Ink tank and
A print head that prints using the ink in the ink tank,
A light source that irradiates the ink tank with light,
A sensor that detects light incident from the ink tank side during the period when the light source emits light,
A processing unit that determines the amount of ink based on the output of the sensor,
Including
The processing unit
A printing device characterized in that a process of notifying a user of the state is performed by controlling the light source according to the state of the printing device.
請求項1乃至10のいずれか一項において、
前記センサーは、光電変換デバイスと、前記光電変換デバイスに接続されたAFE回路を含むことを特徴とする印刷装置。
In any one of claims 1 to 10,
The sensor is a printing apparatus including a photoelectric conversion device and an AFE circuit connected to the photoelectric conversion device.
請求項11において、
前記光電変換デバイスは、リニアイメージセンサーであることを特徴とする印刷装置。
11.
The photoelectric conversion device is a printing device characterized by being a linear image sensor.
請求項12において、
前記リニアイメージセンサーは、長手方向が鉛直方向に沿うように設けられることを特徴とする印刷装置。
In claim 12,
The linear image sensor is a printing apparatus characterized in that the linear image sensor is provided so that the longitudinal direction is along the vertical direction.
JP2019150125A 2019-08-20 2019-08-20 Printing device Pending JP2021030486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019150125A JP2021030486A (en) 2019-08-20 2019-08-20 Printing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019150125A JP2021030486A (en) 2019-08-20 2019-08-20 Printing device

Publications (1)

Publication Number Publication Date
JP2021030486A true JP2021030486A (en) 2021-03-01

Family

ID=74676995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019150125A Pending JP2021030486A (en) 2019-08-20 2019-08-20 Printing device

Country Status (1)

Country Link
JP (1) JP2021030486A (en)

Similar Documents

Publication Publication Date Title
JP7404707B2 (en) printing device
JP7400260B2 (en) printing device
EP3695973B1 (en) Printer
EP3695971B1 (en) Printer
JP7334535B2 (en) printer
JP7326988B2 (en) printer
EP3695972B1 (en) Printer
EP3695975B1 (en) Printer
US11046086B2 (en) Printer
US11084296B2 (en) Production method of printer
JP2020128057A (en) Printing device
JP2020128060A (en) Printing device
JP2021030486A (en) Printing device
US11104149B2 (en) Electronic apparatus