JP4581598B2 - Electronic equipment with time management function - Google Patents

Electronic equipment with time management function Download PDF

Info

Publication number
JP4581598B2
JP4581598B2 JP2004278334A JP2004278334A JP4581598B2 JP 4581598 B2 JP4581598 B2 JP 4581598B2 JP 2004278334 A JP2004278334 A JP 2004278334A JP 2004278334 A JP2004278334 A JP 2004278334A JP 4581598 B2 JP4581598 B2 JP 4581598B2
Authority
JP
Japan
Prior art keywords
time
power
absolute
elapsed
result 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.)
Expired - Fee Related
Application number
JP2004278334A
Other languages
Japanese (ja)
Other versions
JP2006088589A (en
JP2006088589A5 (en
Inventor
理機 梶原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2004278334A priority Critical patent/JP4581598B2/en
Publication of JP2006088589A publication Critical patent/JP2006088589A/en
Publication of JP2006088589A5 publication Critical patent/JP2006088589A5/ja
Application granted granted Critical
Publication of JP4581598B2 publication Critical patent/JP4581598B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、内部クロックでカウントした時間と外部機器から与えられる時間とを用いて時間を管理する機能をもつ電子機器に関する。   The present invention relates to an electronic device having a function of managing time using a time counted by an internal clock and a time given from an external device.

この種の電子機器の従来例として、例えば特許文献1に記載されたインクジェット式プリンタがある。このプリンタは、外部装置に接続され、外部装置から印刷実行時やヘッドクリーニング要求時に時刻情報を受け取る。受け取った時刻情報によって、RAMに記憶されている時刻情報が更新される。また、このプリンタの内部にタイマがあり、この内部タイマが時間を継続的にカウントし、カウントされた時間はRAM内の時刻情報に加算される。結果として、RAMには、外部装置でカウントされている時刻情報に実質的に一致した時刻情報が保持される。   As a conventional example of this type of electronic device, for example, there is an ink jet printer described in Patent Document 1. This printer is connected to an external device and receives time information from the external device when printing is performed or when a head cleaning is requested. The time information stored in the RAM is updated with the received time information. In addition, there is a timer inside this printer, and this internal timer continuously counts the time, and the counted time is added to the time information in the RAM. As a result, the RAM holds time information that substantially matches the time information counted by the external device.

なお、プリンタ内部の時間管理機能は、充電式のバッテリによりバックアップされるようになっていてもよい。その場合には、プリンタの電源がオフである間も、プリンタ内での時間カウントが継続的される。   The time management function inside the printer may be backed up by a rechargeable battery. In that case, the time count in the printer is continued even while the printer is turned off.

特開2002−144591号公報JP 2002-144451 A

上記のようにプリンタ内で管理される時刻情報は次のような制御に利用される。例えば、その時刻情報に基づいて、前回のヘッドクリーニングが行われた時刻から現在までの経過時間が計算され、その経過時間に基づいて、ヘッドクリーニングを行うべき時期が到来したか否かの判定や、ヘッドクリーニングによりヘッドから廃インク吸収体へと排出された廃インクの蒸発量(廃インク吸収体内に残存する廃インクの量)の計算などが行われる。   The time information managed in the printer as described above is used for the following control. For example, based on the time information, the elapsed time from the time when the previous head cleaning was performed to the present is calculated, and based on the elapsed time, it is determined whether the time to perform head cleaning has arrived. The amount of evaporation of the waste ink discharged from the head to the waste ink absorber by the head cleaning (the amount of waste ink remaining in the waste ink absorber) is calculated.

上述したような経過時間に基づく制御が適正に行われるためには、プリンタ内で管理される時刻情報又は経過時間情報が正確でなければならないことは言うまでも無い。しかしながら、次の(1)、(2)に示すような問題があるために、プリンタ内の時刻情報又は経過時間情報の正確さが損なわれる。   Needless to say, the time information or the elapsed time information managed in the printer must be accurate for the above-described control based on the elapsed time to be properly performed. However, due to the following problems (1) and (2), the accuracy of time information or elapsed time information in the printer is impaired.

(1) プリンタの電源が長期間にわたりオフであった場合、バックアップバッテリが完全に放電しプリンタ内の時間管理機能が停止する。その後電源がターンオンされて時間管理機能が再起動しても、プリンタ内で保持される時刻情報は、最早、以前に保持されていた時刻情報とは整合しないことになる。よって、電源ターンオフ以前からの経過時間が把握できなくなる。例えば前回のヘッドクリーニングが電源ターンオフ以前に実行されていた場合、前回のヘッドクリーニング実行時点から現在までの経過時間が不明となるため、次のヘッドクリーニングを何時実行すべきかの判定や、廃インク蒸発量の計算が正確に行えない。   (1) When the printer is turned off for a long time, the backup battery is completely discharged and the time management function in the printer is stopped. Even if the power is turned on after that and the time management function is restarted, the time information held in the printer is no longer consistent with the time information held previously. Therefore, it becomes impossible to grasp the elapsed time before the power supply is turned off. For example, if the previous head cleaning was performed before the power supply was turned off, the elapsed time from the previous head cleaning execution time to the present time is unknown, so it is determined when the next head cleaning should be performed, and waste ink evaporation The amount cannot be calculated accurately.

(2) 上記(1)の問題が発生したとしても、電源ターンオン後に外部装置から時刻情報が改めて受信されれば、外部装置からの時刻情報によりプリンタ内の時刻情報が修正されるから、その整合性は再び回復される。しかし、外部装置に滅多に接続されることがなく、且つ、長期間電源オフとなる回数も多いプリンタの場合には、ヘッドクリーニング判定や廃インク蒸発量計算の精度は極めて悪くなる。   (2) Even if the problem (1) occurs, if the time information is received again from the external device after the power is turned on, the time information in the printer is corrected by the time information from the external device. Sex is restored again. However, in the case of a printer that is rarely connected to an external device and frequently turned off for a long period of time, the accuracy of head cleaning determination and waste ink evaporation amount calculation becomes extremely poor.

そのため、従来、定期ヘッドクリーニングや廃インク漏れ防止の機能を設計する場合、ある程度の制御精度の低下を許容して、適当に余裕のあるマージンを持った設計が行われている。しかし、これが製造コストやランニングコストの上昇の原因となる。   For this reason, conventionally, when designing a function for regular head cleaning and waste ink leakage prevention, a design having a margin with an appropriate margin has been performed by allowing a certain degree of reduction in control accuracy. However, this causes an increase in manufacturing cost and running cost.

従って、本発明の目的は、プリンタやその他の電子機器において、電子機器内で管理される時間情報の精度を高めることにある。   Accordingly, an object of the present invention is to increase the accuracy of time information managed in an electronic device in a printer or other electronic device.

また、別の目的は、電子機器内で管理される時間情報に基づいて処理される制御(例えば上述したヘッドクリーニング判定や廃インク蒸発量計算など)の信頼性を高めることにある。   Another object is to increase the reliability of control (for example, the above-described head cleaning determination and waste ink evaporation amount calculation) processed based on time information managed in the electronic device.

本発明の一つの側面に従う、絶対時刻の情報を間欠的に送る外部装置に接続することが可能な電子機器は、前記電子機器の電源オン期間中は電源からの電力により動作し、電源オフ期間中は蓄電器に蓄えられた電力で動作して、継続的に内部時刻をカウントするクロック手段と、前記外部装置から前記絶対時刻の情報を受けたとき、前記情報を用いて前記クロック手段を修正して、前記内部時刻を前記絶対時刻に対応させる内部クロック修正手段と、前記電子機器で所定処理が実行された時点にて前記クロック手段から取得される処理時刻を記憶する時刻記憶手段と、前記内部クロック修正手段により前記クロック手段が修正された場合、前記処理時刻記憶手段に保持されている前記処理時刻を、前記クロック手段と同じ修正幅だけ修正して、前記処理時刻を前記絶対時刻に対応させる記憶時刻修正手段とを備える。   According to one aspect of the present invention, an electronic device that can be connected to an external device that intermittently sends absolute time information operates with power from a power source during a power-on period of the electronic device, and a power-off period The clock means that operates with the electric power stored in the capacitor and continuously counts the internal time, and when the information on the absolute time is received from the external device, the clock means is corrected using the information. An internal clock correcting means for making the internal time correspond to the absolute time, a time storage means for storing a processing time acquired from the clock means when a predetermined process is executed in the electronic device, and the internal When the clock means is corrected by the clock correction means, the processing time held in the processing time storage means is corrected by the same correction width as the clock means. And a storage time adjustment means to adapt the processing time to the absolute time.

この電子機器によれば、外部装置から絶対時刻の情報が提供されると、その情報により、クロック手段からの内部時刻が絶対時刻に対応するよう修正される。また、電子機器で所定処理(例えば、電源ターンオフ、電源ターンオン、インクジェットプリンタの場合のヘッドクリーニングなど)が実行されると、その実行時点での内部時刻である処理時刻が記憶される。そして、クロック手段が絶対時刻に対応するよう修正されたとき、記憶されていた処理時刻も同じく絶対時刻に対応するように修正される。これにより、記憶されている処理時刻が、内部時刻と同じ時間軸上に並ぶことになる。例えば、内部時刻が絶対時間軸上にあれば、記憶されている処理時刻も絶対時間軸上にあり、また、内部時刻が相対時間軸上にあれば、記憶されている処理時刻も相対時間軸上にあるということになる。このように同じ時間軸上に並ぶことで、内部時刻と記憶された処理時刻とを用いて両時点の間の経過時間を精度よく求めることが可能になる。結果として、経過時間に基づき処理される制御の信頼性が向上する。   According to this electronic apparatus, when the information on the absolute time is provided from the external device, the internal time from the clock means is corrected by the information so as to correspond to the absolute time. When a predetermined process (for example, power supply turn-off, power supply turn-on, head cleaning in the case of an ink jet printer) is executed in the electronic device, a processing time that is an internal time at the time of execution is stored. When the clock means is corrected to correspond to the absolute time, the stored processing time is also corrected to correspond to the absolute time. As a result, the stored processing times are arranged on the same time axis as the internal time. For example, if the internal time is on the absolute time axis, the stored processing time is also on the absolute time axis, and if the internal time is on the relative time axis, the stored processing time is also on the relative time axis. It will be on top. Arranging on the same time axis in this way makes it possible to accurately obtain the elapsed time between both time points using the internal time and the stored processing time. As a result, the reliability of the control processed based on the elapsed time is improved.

好適な実施形態では、前記処理時刻記憶手段に記憶された前記処理時刻と、現在時点で前記クロック手段から取得される現在時刻との差分を計算することで、前記所定処理の実行時点から現在までの経過時間を計算する経過時間計算手段が更に備えられる。   In a preferred embodiment, by calculating a difference between the processing time stored in the processing time storage unit and the current time acquired from the clock unit at the current time point, the execution time of the predetermined process is performed until the present time. An elapsed time calculating means for calculating the elapsed time is further provided.

好適な実施形態では、前記経過時間計算手段は、前記電子機器で特定作業(例えば、インクジェットプリンタの場合のヘッドクリーニング)が実行された時、及び電源ターンオフの直前に、それぞれ、前記経過時間を計算する。少なくともこのタイミングで経過時間を計算することで、電源のオンオフが繰り返され、かつ、電源オフ期間中にクロック手段が停止することがあった場合でも、特定作業の実行時点からの経過時間を、ある程度の精度をもって把握することが可能である。その結果、例えば次の特定作業を何時行うべきかなどの、経過時間に基づく制御の信頼性が高まる。ここで、特定作業としては、例えば、インクジェットプリンタの場合のヘッドクリーニングなどがあり得る。   In a preferred embodiment, the elapsed time calculating means calculates the elapsed time when a specific operation (for example, head cleaning in the case of an ink jet printer) is performed on the electronic device and immediately before power-off. To do. By calculating the elapsed time at least at this timing, even if the power supply is repeatedly turned on and off, and the clock means may stop during the power-off period, the elapsed time from the execution time of the specific work is to some extent It is possible to grasp with accuracy. As a result, the reliability of control based on the elapsed time, such as when the next specific operation should be performed, is increased. Here, the specific work may include, for example, head cleaning in the case of an ink jet printer.

好適な実施形態では、前記所定処理として、前記特定作業、電源ターンオン、及び電源ターンオフが採用される。少なくともこれら処理の実行時刻を記憶しておくことで、電源のオンオフが繰り返され、かつ、電源オフ期間中にクロック手段が停止することがあった場合でも、特定作業の実行時点からの経過時間を、良好な精度をもって把握することが可能である。その結果、例えば次の特定作業を何時行うべきかなどの、経過時間に基づく制御の信頼性が高まる。   In a preferred embodiment, the specific operation, power supply turn-on, and power supply turn-off are employed as the predetermined process. By storing at least the execution times of these processes, even if the power supply is repeatedly turned on and off and the clock means may stop during the power supply off period, the elapsed time from the execution time of the specific work can be calculated. It is possible to grasp with good accuracy. As a result, the reliability of control based on the elapsed time, such as when the next specific operation should be performed, is increased.

好適な実施形態では、前記内部時刻が前記絶対時刻に対応しているか否かを判別し、判別結果を記憶する内部時刻判別手段が更に備えられる。内部時刻が絶対時刻に対応しているか否かを判別することで、絶対時刻対応の内部時刻に基づいて経過時間を計算する場合と、絶対時刻に対応してない内部時刻(相対時刻)に基づいて経過時間を計算する場合とで、それぞれの場合に適した計算方法を選択することが可能になる。その結果、経過時間に基づく制御の信頼性が高まる。   In a preferred embodiment, there is further provided an internal time determination means for determining whether or not the internal time corresponds to the absolute time and storing the determination result. By determining whether the internal time corresponds to the absolute time, the elapsed time is calculated based on the internal time corresponding to the absolute time, and based on the internal time (relative time) not corresponding to the absolute time Thus, it is possible to select a calculation method suitable for each case when calculating the elapsed time. As a result, the reliability of control based on the elapsed time is increased.

好適な実施形態では、前記内部時刻判別手段は、電源ターンオンの直後、及び前記内部クロック修正手段により前記クロック手段が修正された時に、前記判別を行う。内部時刻が絶対時刻に対応するようになったり、対応しなくなったりする切替時点は、クロック手段が修正された時点又は電源ターンオン時点であるから、これらの時点で判別を行うことにより、遅れのないタイムリーな判別結果が得られる。   In a preferred embodiment, the internal time determination means performs the determination immediately after power-on and when the clock means is corrected by the internal clock correction means. The switching time at which the internal time corresponds to the absolute time or no longer corresponds to the time when the clock means is corrected or the time when the power supply is turned on, so there is no delay by making a determination at these times. A timely discrimination result is obtained.

好適な実施形態では、電源オフ期間中に前記クロック手段が停止したか、継続動作していたかを判断して、判断結果を記憶するクロック停止判断手段が更に備えられる。そして、前記内部時刻判別手段は、電源ターンオン直後には、
(1) 前記判断結果が停止を示していた場合、前記内部時刻が前記絶対時刻に対応していないという判別結果を出し、
(2) 前記判断結果が継続動作を示していた場合、前回の電源ターンオフ時点での記憶されていた判別結果に従った判別結果を出し、
また、前記内部クロック修正手段により前記クロック手段が修正された時には、前記内部時刻が前記絶対時刻に対応しているという判別結果を出す。これにより、正確な判別結果が得られる。
In a preferred embodiment, there is further provided a clock stop judging means for judging whether the clock means has been stopped or continuously operated during the power-off period, and storing the judgment result. The internal time discriminating means immediately after the power is turned on,
(1) If the determination result indicates stop, a determination result that the internal time does not correspond to the absolute time is issued;
(2) If the determination result indicates a continuation operation, a determination result according to the determination result stored at the previous power-off time is issued,
When the clock means is corrected by the internal clock correction means, a determination result is output that the internal time corresponds to the absolute time. Thereby, an accurate discrimination result is obtained.

好適な実施形態では、前記電子機器で実行された特定作業に応答して、前記特定作業の結果に応じた結果データを計算する手段であって、
(1) 前記内部時刻が前記絶対時刻に対応している時に実行された前記特定作業に応答して絶対時刻ベース結果データを計算し、
(2) 前記内部時刻が前記絶対時刻に対応していない時に実行された前記所定作業に応答して相対時刻ベース結果データを計算し、
(3)前記絶対時刻ベース結果データと前記相対時刻ベース結果データを分離して管理する
作業結果管理手段が更に備えられる。
In a preferred embodiment, in response to the specific work executed by the electronic device, means for calculating result data according to the result of the specific work,
(1) calculating absolute time base result data in response to the specific operation performed when the internal time corresponds to the absolute time;
(2) calculating relative time base result data in response to the predetermined operation performed when the internal time does not correspond to the absolute time;
(3) Work result management means for separately managing the absolute time base result data and the relative time base result data is further provided.

このように、特定作業(例えば、インクジェットプリンタの場合のヘッドクリーニング)の実行結果に応じたデータ(例えば、ヘッドクリーニングでインク吸収体に吸収された廃インク量を計算したデータ)を、その特定作業が実行されたときの内部時刻が絶対時刻に対応していたか否かで区別して、別個に計算し管理することで、特定作業の結果データ(例えば、インク吸収体内の廃インク量の計算データ)の計算精度が向上する。   In this way, data corresponding to the execution result of a specific work (for example, head cleaning in the case of an ink jet printer) (for example, data obtained by calculating the amount of waste ink absorbed by the ink absorber by the head cleaning) is used as the specific work. The result data of a specific operation (for example, calculation data of the amount of waste ink in the ink absorber) is distinguished and calculated separately depending on whether or not the internal time corresponding to the execution of the time corresponds to the absolute time The calculation accuracy of is improved.

好適な実施形態では、前記作業結果管理手段は、前記経過時間計算手段により前記経過時間が計算されたとき、前記絶対時刻ベース結果データと前記相対時刻ベース結果データを、計算された前記経過時間に応じて修正する。このように特定作業の結果データに対して経過時間に応じた修正を行う(例えば、廃インク量の計算データから、経過時間に応じた蒸発量を差し引く)ことで、特定作業の結果データの計算精度が向上する。特に、絶対時刻ベース結果データに対する修正と、相対時刻ベース結果データに対する修正とを分離して行うことで、絶対時刻ベースと相対時刻ベースの性質の違いに応じた異なる修正方法が採用できるので、結果データの計算精度が向上する。   In a preferred embodiment, when the elapsed time is calculated by the elapsed time calculation means, the work result management means sets the absolute time base result data and the relative time base result data to the calculated elapsed time. Correct accordingly. In this way, the result data of the specific work is corrected according to the elapsed time (for example, the evaporation data according to the elapsed time is subtracted from the calculation data of the waste ink amount) to calculate the result data of the specific work. Accuracy is improved. In particular, it is possible to adopt different correction methods according to the difference in properties between absolute time base and relative time base by separately performing correction on absolute time base result data and correction on relative time base result data. Data calculation accuracy is improved.

好適な実施形態では、前記絶対時刻ベース結果データと前記相対時刻ベース結果データとを組み合わせたデータに基づいて、前記特定作業の結果に問題がないか否かを判断する作業結果判断手段が更に備えられる。例えば、インクジェットプリンタの場合、絶対時刻ベースの廃インク量計算データと相対時刻ベースの廃インク量計算データとを加算した値に基づいて、廃インクの溢れ出しが生じないか否かが判断され得る。   In a preferred embodiment, the apparatus further comprises work result judging means for judging whether there is no problem in the result of the specific work based on data obtained by combining the absolute time base result data and the relative time base result data. It is done. For example, in the case of an inkjet printer, it can be determined whether waste ink overflow does not occur based on a value obtained by adding absolute time-based waste ink amount calculation data and relative time-based waste ink amount calculation data. .

好適な実施形態では、前記経過時間計算手段は、
(1) 前記クロック手段の停止が生じた電源オフ期間の時間長が算入され得る第1の経過時間を計算する手段と、
(2) 前記クロック手段の停止が生じた電源オフ期間の時間長が算入され得ない第2の経過時間を計算する手段と
を有する。そして、前記作業結果管理手段は、前記経過時間の計算時点にて前記内部時刻が前記絶対時刻に対応しているか否かをチェックし、チェックの結果、
(1) 前記絶対時刻に対応している場合には、
A. 前記絶対時刻ベース結果データを、前記第1の経過時間に応じて修正し、
B. 前記相対時刻ベース結果データを、前記第2の経過時間に応じて修正し、
(2) 前記絶対時刻に対応していない場合には、前記絶対時刻ベース結果データと前記相対時刻ベース結果データとを、前記第2の経過時間に応じて修正する。
In a preferred embodiment, the elapsed time calculating means includes
(1) means for calculating a first elapsed time in which a time length of a power-off period in which the stop of the clock means has occurred can be counted;
(2) means for calculating a second elapsed time during which the time length of the power-off period in which the clock means has stopped cannot be counted. Then, the work result management means checks whether or not the internal time corresponds to the absolute time at the time of calculation of the elapsed time, and as a result of the check,
(1) When the absolute time is supported,
A. Correcting the absolute time base result data according to the first elapsed time;
B. Correcting the relative time base result data according to the second elapsed time;
(2) If the absolute time is not supported, the absolute time base result data and the relative time base result data are corrected according to the second elapsed time.

このように、結果データを経過時間に応じて修正する場合に、経過時間計算時点の内部時刻が絶対時刻に対応しているか否か、及び、修正対象が絶対時刻ベース結果データか相対時刻ベース結果データかに応じて、適用する経過時間を違えることで、それぞれの結果データを精度よく修正することができる。よって、経過時間に応じて修正された結果データに基づく判断制御(例えば、インクジェットプリンタにおける、経過時間に応じた蒸発量により修正された廃インク量に基づく、廃インクの溢れ出しの虞の判断制御)の信頼性が向上する。   Thus, when the result data is corrected according to the elapsed time, whether the internal time at the time of calculating the elapsed time corresponds to the absolute time, and whether the correction target is the absolute time base result data or the relative time base result By changing the applied elapsed time depending on the data, each result data can be corrected with high accuracy. Therefore, determination control based on the result data corrected according to the elapsed time (for example, determination control of the possibility of overflow of waste ink based on the amount of waste ink corrected by the evaporation amount according to the elapsed time in an inkjet printer) ) Reliability is improved.

好適な実施形態では、前記経過時間計算手段は、電源オフ期間中に前記クロック手段が停止したことにより前記内部時刻が前記絶対時刻に対応しなくなった場合、前記絶対時刻に対応していない前記内部時刻に基づいて前記経過時間を計算し、その後、前記外部装置から受信された前記情報により前記内部時刻及び前記処理時刻が前記絶対時刻に対応するように修正された場合、前記絶対時刻に対応する前記内部時刻及び前記処理時刻に基づいて前記経過時間を計算するとともに、前記絶対時刻に対応していない前記内部時刻に基づいて計算された前記経過時間を無効にする。これにより、長期の電源オフ期間中にクロック手段が停止して絶対時刻が不明になった場合、クロック手段が出力する相対時刻に基づいて経過時間をとりあえず計算するが、その後、外部装置から絶対時刻の情報が受信されれば、その絶対時刻に基づいた経過時間が計算し直され、相対時刻に基づいた経過時間が無かったものとされるので、経過時間に基づいて処理される制御の精度が向上する。   In a preferred embodiment, the elapsed time calculating means does not correspond to the absolute time when the internal time does not correspond to the absolute time due to the clock means being stopped during a power-off period. When the elapsed time is calculated based on time, and then the internal time and the processing time are corrected to correspond to the absolute time according to the information received from the external device, the absolute time corresponds to the absolute time The elapsed time is calculated based on the internal time and the processing time, and the elapsed time calculated based on the internal time not corresponding to the absolute time is invalidated. As a result, if the clock means stops during the long power-off period and the absolute time becomes unknown, the elapsed time is calculated for the time being based on the relative time output by the clock means. If the information is received, the elapsed time based on the absolute time is recalculated and it is assumed that there is no elapsed time based on the relative time. Therefore, the accuracy of the control processed based on the elapsed time is improved. improves.

本発明によれば、プリンタやその他の電子機器において、電子機器内で管理される時間情報の精度が高まる。   ADVANTAGE OF THE INVENTION According to this invention, the precision of the time information managed within an electronic device increases in a printer and other electronic devices.

本発明の好適な実施形態によれば、電子機器内で管理される時間情報に基づいて処理される制御の信頼性が高まる。   According to the preferred embodiment of the present invention, the reliability of the control processed based on the time information managed in the electronic device is increased.

図1は、本発明に従う電子機器の一実施形態にかかるインクジェットプリンタの全体のハードウェア構成を示す。   FIG. 1 shows the overall hardware configuration of an inkjet printer according to an embodiment of an electronic apparatus according to the present invention.

図1に示すように、インクジェットプリンタ(以下、プリンタという)100は、外部装置(例えば、パーソナルコンピュータ、デジタルカメラ又は携帯電話機などのプリンタクライアント又は画像ソース装置など)200に接続することができる。外部装置200は、自ら絶対時刻(典型的には、標準時にほぼ相当する時刻)を継続的にカウントしており、現在時刻を示す時刻情報を、プリンタ100との所定の通信時(例えば、プリンタ100に印刷ジョブ又は画像データを送信する時、あるいは、プリンタ100から時刻問い合わせが来た時など)に、現在の絶対時刻に対応する時刻情報をプリンタ100へ送信する。外部装置200からプリンタ100へ送信される現在の絶対時刻情報を、以下、TI(タイムインデックス)という。   As shown in FIG. 1, an inkjet printer (hereinafter referred to as a printer) 100 can be connected to an external device (for example, a printer client such as a personal computer, a digital camera, or a mobile phone, or an image source device) 200. The external device 200 continuously counts absolute time itself (typically, a time substantially equivalent to standard time), and uses time information indicating the current time as a predetermined communication time with the printer 100 (for example, a printer). Time information corresponding to the current absolute time is transmitted to the printer 100 when a print job or image data is transmitted to the printer 100 or when a time inquiry is received from the printer 100. The current absolute time information transmitted from the external device 200 to the printer 100 is hereinafter referred to as TI (Time Index).

プリンタ100は、印刷動作を行う機構である印刷機構110を有する。印刷機構110には、印刷ヘッド111、インクタンク112、ヘッドメンテナンス機構113、キャリッジ機構113、インク吸収体115、及び紙送り機構116などが含まれる。ヘッドメンテナンス機構113は、印刷ヘッド111に対する各種メンテナンス動作、例えば、新しいインクタンク112の装着時における印刷ヘッド111へのインクの充填や、印刷ヘッド111のクリーニング(インクジェットノズルのインク詰まりの除去や、ヘッド表面の汚れの除去など)を行うための機構であり、ヘッド保護キャップやインク吸引ポンプやワイパーなどから構成される。インク吸収体115は、印刷ヘッド111のメンテナンスが行われることで印刷ヘッド111から外へ排出される廃インクを吸収して、廃インクがプリンタ10に漏れ出ないようにするスポンジ様の物体である。キャリッジ機構114は、印刷ヘッド111を搭載したキャリッジ(図示せず)を、シャフトに沿って走行させることで、印刷ヘッド111を移動させる機構である。   The printer 100 includes a printing mechanism 110 that is a mechanism for performing a printing operation. The printing mechanism 110 includes a print head 111, an ink tank 112, a head maintenance mechanism 113, a carriage mechanism 113, an ink absorber 115, a paper feed mechanism 116, and the like. The head maintenance mechanism 113 performs various maintenance operations on the print head 111, for example, filling of the print head 111 with ink when the new ink tank 112 is mounted, cleaning of the print head 111 (removing ink clogs of inkjet nozzles, head This is a mechanism for removing dirt on the surface, and includes a head protection cap, an ink suction pump, a wiper, and the like. The ink absorber 115 is a sponge-like object that absorbs waste ink discharged from the print head 111 when maintenance of the print head 111 is performed, and prevents the waste ink from leaking into the printer 10. . The carriage mechanism 114 is a mechanism that moves the print head 111 by running a carriage (not shown) on which the print head 111 is mounted along a shaft.

プリンタ100は、また、印刷機構110を制御するためのコントローラ120を備える。コントローラ120は、CPU122、RAM124、及びEEPROM(不揮発性メモリ)126を有する。コントローラ120の機能、とりわけ本発明の原理に従う各種の制御機能については後に詳述する。   The printer 100 also includes a controller 120 for controlling the printing mechanism 110. The controller 120 includes a CPU 122, a RAM 124, and an EEPROM (nonvolatile memory) 126. The function of the controller 120, particularly various control functions according to the principles of the present invention, will be described in detail later.

プリンタ100は、また、プリンタ100内で時間を継続的にカウントするためのRTC(リアルタイムクロック回路)130を有する。このRTC130にて継続的にカウントされている時刻を、以下、RTC時刻という。RTC130でカウントされているRTC時刻は、定期的に(例えば1時間間隔で)CPU122に読み込まれるようになっている。また、RTC130でカウントされているRTC時刻は、CPU122からの指示で、CPU122が指定する時刻にセットできるようになっている。   The printer 100 also has an RTC (real time clock circuit) 130 for continuously counting time within the printer 100. Hereinafter, the time continuously counted by the RTC 130 is referred to as an RTC time. The RTC time counted by the RTC 130 is read by the CPU 122 periodically (for example, at one hour intervals). The RTC time counted by the RTC 130 can be set to a time designated by the CPU 122 by an instruction from the CPU 122.

プリンタ100は、さらに、上述した印刷機構110、コントローラ120及びRTC130に電力を供給する主電源回路140を有する。主電源回路140は、商用100VAC電源のような外部電源300から電力を入力し、プリンタ100内の上記各部へ各部用の電圧をもつ直流電力を供給する。主電源回路140は、CPU122からの制御でターンオン及びターンオフされるようになっている。以下、主電源回路140を電源と略称する場合がある。   The printer 100 further includes a main power supply circuit 140 that supplies power to the printing mechanism 110, the controller 120, and the RTC 130 described above. The main power supply circuit 140 receives power from an external power supply 300 such as a commercial 100 VAC power supply, and supplies DC power having a voltage for each part to each part in the printer 100. The main power supply circuit 140 is turned on and off under the control of the CPU 122. Hereinafter, the main power supply circuit 140 may be abbreviated as a power supply.

上述したRTC130は、電源オフである間も、蓄電器(例えば大容量のコンデンサ又はバッテリ)150から電力を受けて、継続して動作できるようになっている。蓄電器150は、電源オンの間に主電源回路140により充電される。しかし、電源オフの状態が所定時間以上に達すると、蓄電器150は完全に放電し、RTC130は停止する。以下の説明では、電源オフの状態でRTC130が蓄電器150により動作できる最長時間は、一例として160時間であるとする。このように長い電源オフ期間中にRTC130が停止した場合でも、その後に主電源回路140がターンオンされればRTC130は再び動作を開始する。RTC130は、電源オフ期間中に停止したか停止せず動作を継続していたかを示す動作情報を内部に保持するようになっている。CPU122は、電源ターンオン後にRTC130の動作情報を参照することよって、RTC130が電源オフ期間中に停止したか継続動作していたかを把握する。   The RTC 130 described above receives power from the battery (for example, a large-capacity capacitor or battery) 150 and can continue to operate while the power is off. The battery 150 is charged by the main power circuit 140 while the power is on. However, when the power-off state reaches a predetermined time or longer, the battery 150 is completely discharged and the RTC 130 stops. In the following description, it is assumed that the longest time that the RTC 130 can operate with the battery 150 in the power-off state is 160 hours as an example. Even when the RTC 130 stops during such a long power-off period, if the main power supply circuit 140 is subsequently turned on, the RTC 130 starts operating again. The RTC 130 internally stores operation information indicating whether the operation was stopped during the power-off period or whether the operation was continued without stopping. The CPU 122 refers to the operation information of the RTC 130 after the power is turned on, thereby grasping whether the RTC 130 has been stopped or continuously operated during the power-off period.

図2は、コントローラ120の制御機能、とりわけ本発明に関連する各種制御の機能を示す。   FIG. 2 shows the control functions of the controller 120, particularly various control functions related to the present invention.

図2に示すように、CPU122は、予め組み込まれた制御プログラムを実行することにより、電源オン時時間制御200、TI受信時時間制御202、キャリッジメンテナンス(CM)制御204、ヘッドメンテナンス(HM)制御206、及び廃インク制御208を行う。以下の説明では、キャリッジメンテナンスをCM、ヘッドメンテナンスをHMと略称する場合がある。   As shown in FIG. 2, the CPU 122 executes a control program incorporated in advance, thereby performing a power-on time control 200, a TI reception time control 202, a carriage maintenance (CM) control 204, and a head maintenance (HM) control. 206 and waste ink control 208 are performed. In the following description, carriage maintenance may be abbreviated as CM and head maintenance may be abbreviated as HM.

電源オン時時間制御200は、主電源回路140がターンオンされた時(直後)に実行される時間制御である。TI受信時時間制御202は、外部装置200からTIが受信された時(直後)に実行される時間制御である。電源オン時時間制御200とTI受信時時間制御202とが組み合わさって、プリンタ100内部での時間管理制御203を構成する。後の具体的な説明から明らかになるように、内部時間管理制御203は、外部装置200からTIが受信された場合、TIによりRTC時刻を修正することで、RTC時刻が絶対時刻に対応するようにする。また、内部時間管理制御203は、RTC時刻が絶対時刻に対応しているか、いないか(つまり、相対時刻に対応するに過ぎないか)を判別し、その判別結果を示す判別情報(後述するTIフラグ)を保持する。また、内部時間管理制御203は、電源ターンオン時、その前の電源オフ期間中にRTC130が停止したか継続して動作していたかを判定し、停止したと判定された場合には、電源オフ期間長が不明になったことに対処するための処理を行う。   The power-on time control 200 is a time control that is executed when the main power circuit 140 is turned on (immediately after). The TI reception time control 202 is time control that is executed when a TI is received from the external apparatus 200 (immediately after). The power-on time control 200 and the TI reception time control 202 constitute a time management control 203 inside the printer 100. As will be apparent from the specific description later, when the TI is received from the external device 200, the internal time management control 203 corrects the RTC time by the TI so that the RTC time corresponds to the absolute time. To. Also, the internal time management control 203 determines whether or not the RTC time corresponds to the absolute time (that is, only corresponds to the relative time), and determination information (TI described later) indicating the determination result. Flag). Further, the internal time management control 203 determines whether the RTC 130 has been stopped or continuously operated during the previous power-off period when the power is turned on. Process to cope with the unknown length.

キャリッジメンテナンス制御204は、キャリッジ機構114の状態を適正に保つため、特に、それに沿ってキャリッジが走行するためのシャフトに塗られた潤滑油の固化又は劣化を防止するための制御である。キャリッジメンテナンス制御204は、例えば電源ターンオン時(直後)に行われ、その前の電源オフ期間が所定のオイル閾値(潤滑油の固化を防止する観点から定められた閾値時間長)以上に長かったか判断し、そうならば、キャリッジを走行させて潤滑油を流動させて潤滑油の固化を防ぐ。   The carriage maintenance control 204 is a control for preventing the solidification or deterioration of the lubricating oil applied to the shaft for the carriage to travel along the carriage mechanism 114 in order to keep the carriage mechanism 114 in an appropriate state. The carriage maintenance control 204 is performed, for example, when the power is turned on (immediately after), and it is determined whether the previous power-off period is longer than a predetermined oil threshold (a threshold time length determined from the viewpoint of preventing solidification of the lubricating oil). If so, the carriage is run to cause the lubricating oil to flow to prevent the lubricating oil from solidifying.

ヘッドメンテナンス制御206は、印刷ヘッド111の状態を適正に維持するために、ヘッドメンテナンス、とりわけクリーニングを、できるだけ適時に自動的に行うための制御である。ヘッドメンテナンス制御206は、例えば印刷開始時(直前)に行われる(電源ターンオン時(直後)に行われる場合もある)。ヘッドメンテナンス制御206は、前回のヘッドメンテナンスの実行時からの経過時間の長短に応じて、クリーニングを行う必要があるかどうかを判断し、必要があれば、それを実行する。ここで、クリーニングには、作業量のレベルの異なる複数種類のプロセスが用意されており、クリーニングを行う必要ありと判断された場合、上記経過時間の長短に応じてどのレベルのクリーニングプロセスを行うかが選択されるようになっている。   The head maintenance control 206 is a control for automatically performing head maintenance, particularly cleaning, as timely as possible in order to properly maintain the state of the print head 111. The head maintenance control 206 is performed, for example, when printing is started (immediately before) (may be performed when the power is turned on (immediately after)). The head maintenance control 206 determines whether it is necessary to perform cleaning according to the length of time elapsed since the previous head maintenance execution, and executes it if necessary. Here, for cleaning, multiple types of processes with different levels of work amount are prepared, and when it is determined that cleaning is necessary, what level of cleaning process is performed according to the length of the elapsed time described above Is to be selected.

廃インク制御208は、インク吸収体115から保持されている廃インクの量(廃インク残量)をその蒸発量を考慮に入れて計算し、計算された廃インク残量に基づいて、インク吸収体115から廃インクが溢れて漏れ出ないように、ヘッドメンテナンス(特にクリーニング)の実行を調整するものである。廃インク制御208は、ヘッドメンテナンス制御206内で行われる。また、ユーザの要求によりヘッドメンテナンス(インクタンク装着時のインク充填、ユーザ要求によるクリーニング)が行われたときにも、廃インク制御208は実行される。後の説明から明らかになるように、廃インク制御208は、RTC時刻が絶対時刻に対応しているときに実行されたヘッドメンテナンスで排出された廃インクの残量と、RTC時刻が相対時刻に対応しているときに実行されたヘッドメンテナンスで排出された廃インクの残量とを別個に計算して保持し、そして、両者を合わせたトータルの廃インク残量に基づいて廃インクが溢れるか否かを判定する。それにより、信頼性の高い廃インク漏れ防止制御が行えることになる。   The waste ink control 208 calculates the amount of waste ink (remaining amount of waste ink) held from the ink absorber 115 in consideration of the evaporation amount, and based on the calculated waste ink remaining amount, absorbs ink. The head maintenance (especially cleaning) is adjusted so that waste ink does not overflow from the body 115 and leak out. Waste ink control 208 is performed in the head maintenance control 206. The waste ink control 208 is also executed when head maintenance (ink filling when an ink tank is mounted, cleaning according to a user request) is performed according to a user request. As will be apparent from the following description, the waste ink control 208 determines that the remaining amount of waste ink discharged by the head maintenance performed when the RTC time corresponds to the absolute time and the RTC time are relative times. Separately calculate and hold the remaining amount of waste ink discharged by the head maintenance performed when it is compatible, and whether the waste ink overflows based on the total amount of waste ink combined with both Determine whether or not. As a result, highly reliable waste ink leakage prevention control can be performed.

上述した各種の制御200〜208を行うために、CPU122は、RAM124及びEEPROM126に次のような変数データを記録する。   In order to perform the various controls 200 to 208 described above, the CPU 122 records the following variable data in the RAM 124 and the EEPROM 126.

すなわち、図2に示すように、RAM124には、TIフラグ220、電源オフ時間長222、蒸発時間長224、HM(ヘッドメンテナンス)タイマ226、及び、電源オン時刻228などの変数データが記憶される。また、EEPROM126には、前回電源オフ時TIフラグ240、前回HM(ヘッドメンテナンス)時刻242、前回電源オフ時刻244、前回蒸発計算時刻246、絶対時刻ベース廃インク総量(以下、SAと略称する場合がある)248、絶対時刻ベース廃インク残量(以下、Aと略称する場合がある)250、相対時刻ベース廃インク総量(以下、SBと略称する場合がある)252、及び、相対時刻ベース廃インク残量(以下、Bと略称する場合がある)254などの変数データが記録される。EEPROM126内のこれらの変数データは、電源オフ期間中も消えずに保持される。   That is, as shown in FIG. 2, the RAM 124 stores variable data such as the TI flag 220, the power-off time length 222, the evaporation time length 224, the HM (head maintenance) timer 226, and the power-on time 228. . The EEPROM 126 also includes a previous power-off TI flag 240, a previous HM (head maintenance) time 242, a previous power-off time 244, a previous evaporation calculation time 246, and an absolute time-based waste ink total amount (hereinafter abbreviated as SA). 248, absolute time base waste ink remaining amount (hereinafter sometimes abbreviated as A) 250, relative time base waste ink total amount (hereinafter sometimes abbreviated as SB) 252, and relative time base waste ink. Variable data such as the remaining amount (hereinafter sometimes abbreviated as B) 254 is recorded. These variable data in the EEPROM 126 are retained without being erased even during the power-off period.

RAM124内の変数データ220〜226の意味は次のとおりである。   The meanings of the variable data 220 to 226 in the RAM 124 are as follows.

TIフラグ220は、それが「1」であれば、RTC時刻が現在絶対時刻に対応していることを示し、それが「0」であれば、RTC時刻が現在絶対時刻に対応していない(相対時刻に対応している)ことを示す。   If it is “1”, the TI flag 220 indicates that the RTC time corresponds to the current absolute time, and if it is “0”, the RTC time does not correspond to the current absolute time ( Corresponding to relative time).

電源オフ時間長222は、直前の電源オフ期間の時間長を示し、これは、キャリッジメンテナンス制御204においてキャリッジメンテナンスを行うべきか否かの判断材料として用いられる。   The power-off time length 222 indicates the time length of the immediately preceding power-off period, and this is used as a material for determining whether or not carriage maintenance should be performed in the carriage maintenance control 204.

蒸発時間長224は、廃インク蒸発量の計算を実行しようとする時点における、前回の同計算の実行時点から今回の実行時点までの経過時間を示すものであり、特に、絶対時刻(厳密には、絶対時刻に対応するRTC時刻)に基づいて計算される。蒸発時間長224は、廃インク制御208において廃インクの蒸発量の計算に使用される。   The evaporation time length 224 indicates the elapsed time from the previous execution time of the same calculation to the current execution time at the time of executing the calculation of the waste ink evaporation amount. , RTC time corresponding to absolute time). The evaporation time length 224 is used for calculating the amount of evaporation of waste ink in the waste ink control 208.

HMタイマ226は、蒸発時間長224と同様の意味の経過時間を示すもので、廃インクの蒸発量の計算に使用される。但し、HMタイマ226は、相対時刻(厳密には、相対時刻に対応するRTC時刻)に基づいて計算される。後の説明から明らかになるように、電源オフ期間中に蓄電器放電のためにRTC130が停止した場合、その電源オフ期間の長さが不明になるが、その不明な電源オフ期間長はHMタイマ226が示す経過時間には算入されない。結果として、不明になった電源オフ期間長が廃インクの蒸発量の計算から排除されることになり、廃インク制御208の信頼性が向上する。   The HM timer 226 indicates an elapsed time having the same meaning as the evaporation time length 224, and is used for calculating the evaporation amount of waste ink. However, the HM timer 226 is calculated based on the relative time (strictly speaking, the RTC time corresponding to the relative time). As will be apparent from the following description, when the RTC 130 is stopped due to the capacitor discharge during the power-off period, the length of the power-off period is unknown, but the unknown power-off period length is the HM timer 226. Is not included in the elapsed time indicated by. As a result, the unknown power-off period length is excluded from the calculation of the waste ink evaporation amount, and the reliability of the waste ink control 208 is improved.

電源オン時刻228は、電源がターンオンされた時点でのRTC時刻である。   The power-on time 228 is an RTC time when the power is turned on.

EEPROM126内の変数データ240〜254の意味は次のとおりである。   The meaning of the variable data 240 to 254 in the EEPROM 126 is as follows.

前回電源オフ時TIフラグ240は、前回の電源ターンオフがなされた時点におけるTIフラグ220の値(つまり、RTC時刻が絶対時刻と相対時刻のどちらを示したか)を示す。前回HM時刻242は、前回のヘッドメンテナンスを実行した時刻を示す。前回電源オフ時刻244は、前回の電源ターンオフがなされた時刻を示す。前回蒸発計算時刻246は、前回の蒸発量計算が実行された時刻(前回の廃インク制御208が実行された時刻)を示す。   The previous power-off TI flag 240 indicates the value of the TI flag 220 at the time of the previous power-off (that is, whether the RTC time indicates an absolute time or a relative time). The previous HM time 242 indicates the time when the previous head maintenance was executed. The previous power-off time 244 indicates the time when the previous power-off was performed. The previous evaporation calculation time 246 indicates the time when the previous evaporation amount calculation was executed (the time when the previous waste ink control 208 was executed).

絶対時刻ベース廃インク総量(SA)248は、RTC時刻が絶対時刻に対応しているとき(TIフラグ220が「1」であるとき)に実行されたヘッドメンテナンスでインク吸収体115へ排出されたインクの総量を示す。絶対時刻ベース廃インク残量(A)250は、SA248のうち、蒸発量を除いた残量を示す。   The absolute time base waste ink total amount (SA) 248 is discharged to the ink absorber 115 by the head maintenance performed when the RTC time corresponds to the absolute time (when the TI flag 220 is “1”). Indicates the total amount of ink. The absolute time base waste ink remaining amount (A) 250 indicates the remaining amount of SA248 excluding the evaporation amount.

相対時刻ベース廃インク総量(SB)252は、RTC時刻が相対時刻に対応しているとき(TIフラグ220が「0」であるとき)に実行されたヘッドメンテナンスでインク吸収体115へ排出されたインクの総量を示す。相対時刻ベース廃インク残量(B)254は、SB252のうち、蒸発量を除いた残量を示す。   The relative time base waste ink total amount (SB) 252 is discharged to the ink absorber 115 by the head maintenance performed when the RTC time corresponds to the relative time (when the TI flag 220 is “0”). Indicates the total amount of ink. The relative time base waste ink remaining amount (B) 254 indicates the remaining amount of the SB 252 excluding the evaporation amount.

以下、CPU122が行う上記各種の制御200〜208の具体的な流れを説明する。   Hereinafter, specific flows of the various controls 200 to 208 performed by the CPU 122 will be described.

図3は、電源オン時時間制御200の流れを示す。   FIG. 3 shows the flow of the power-on time control 200.

図3のステップS300に示すように、電源(主電源回路140)のターンオン直後に、この電源オン時時間制御200が開始される。ステップS302で、RTC130が直前の電源オフ期間中に継続的に動作していたか、蓄電器放電のために停止していたかが、RTC130がもつ動作情報に基づいて判断される。   As shown in step S300 of FIG. 3, the power-on time control 200 is started immediately after the power source (main power circuit 140) is turned on. In step S <b> 302, it is determined based on the operation information held by the RTC 130 whether the RTC 130 has been continuously operated during the immediately preceding power-off period or has been stopped due to the capacitor discharge.

ステップS302で、RTC130が継続動作していたと判断された場合、制御はステップS304へ進み、前回電源オフ時刻244から現在のRTC時刻(現在時刻)までの経過時間が計算され、計算された経過時間が電源オフ時間長222として記録される。また、ステップ304で、HMタイマに現在のRTC時刻(現在時刻)がセットされる。   If it is determined in step S302 that the RTC 130 has been continuously operated, the control proceeds to step S304, the elapsed time from the previous power-off time 244 to the current RTC time (current time) is calculated, and the calculated elapsed time is calculated. Is recorded as the power-off time length 222. In step 304, the current RTC time (current time) is set in the HM timer.

さらに、ステップ308で、前回電源オフ時TIフラグ240がチェックされる。前回電源オフ時TIフラグ240が値「1」であれば、前回の電源ターンオフ時にRTC時刻が絶対時刻に対応していたこと(つまり、TIを受信していたこと)を意味する。その場合には、TIフラグ220に値「1」がセットされる。これは、現在もRTC時刻が絶対時刻に対応していることを意味する。他方、ステップ308の結果、前回電源オフ時TIフラグ240が値「0」であれば、前回の電源ターンオフ時にRTC時刻が相対時刻に対応していたこと(つまり、TIを受信していなかったこと)を意味する。その場合には、TIフラグ220に値「0」がセットされる。これは、現在もRTC時刻が相対時刻に対応していることを意味する。   In step 308, the previous power-off TI flag 240 is checked. If the previous power-off TI flag 240 has a value of “1”, it means that the RTC time corresponds to the absolute time at the previous power-off (that is, the TI was received). In that case, the value “1” is set in the TI flag 220. This means that the RTC time still corresponds to the absolute time. On the other hand, if the result of step 308 is that the previous power-off TI flag 240 is “0”, the RTC time corresponds to the relative time at the previous power-off (that is, the TI was not received). ). In that case, the value “0” is set in the TI flag 220. This means that the RTC time still corresponds to the relative time.

また、上述したステップS302の結果、RTC130が直前の電源オフ期間中に停止していたと判定された場合には、制御はステップS320へ進む。この場合、電源オフ時間長は正確には不明であるが、蓄電器150の最大バックアップ時間長(例えば160時間)より長いことは判る。そこで、ステップS320で、電源オフ時間長の推定最低値(例えば161時間)が電源オフ時間長222にセットされる。また、この場合、RTC時刻も信頼できない値になっているので、ステップ322でRTC130にRTC時刻として初期値「0」がセットされ、ステップ324でHMタイマ226にもRTC時刻の初期値「0」がセットされる。これにより、RTC130は、電源ターンオン時点を相対時刻の原点として時間カウントを開始することになる。ステップ312で、TIフラグ220に値「0」がセットされる。これは、現在のRTC時刻が相対時刻に対応していることを意味する。   If it is determined as a result of step S302 described above that the RTC 130 has stopped during the previous power-off period, the control proceeds to step S320. In this case, the power-off time length is not exactly known, but it is understood that it is longer than the maximum backup time length of the battery 150 (for example, 160 hours). Therefore, in step S320, the estimated minimum value (eg, 161 hours) of the power-off time length is set as the power-off time length 222. In this case, since the RTC time is also an unreliable value, the initial value “0” is set as the RTC time in the RTC 130 in Step 322, and the initial value “0” of the RTC time is also set in the HM timer 226 in Step 324. Is set. As a result, the RTC 130 starts time counting with the power supply turn-on time as the origin of the relative time. In step 312, the value “0” is set in the TI flag 220. This means that the current RTC time corresponds to the relative time.

以上の電源オン時時間制御200により、現在のRTC時刻がTIと同様の絶対時刻に対応しているか、あるいは、相対時刻に対応しているかという、プリンタ内部で管理される時刻の性質が、TIフラグ220によって識別されることになる。また、電源オフ期間中にRTC130が継続動作していた場合には、電源オフ期間の正確な時間長が、電源オフ時間長222として記録される。他方、電源オフ期間中にRTC130が停止した場合には、蓄電器のバックアップ能力(例えば160時間)から推定される電源オフ期間の最低時間長(例えば161時間)が、電源オフ時間長222として記録されることになる。また、電源オフ期間中にRTC130が停止した場合、RTC時刻は、その後の電源ターンオン時点を原点としてカウントされ直されることになる。   With the above power-on time control 200, the property of the time managed inside the printer, whether the current RTC time corresponds to the same absolute time as TI or the relative time, is TI. It will be identified by the flag 220. When the RTC 130 continues to operate during the power-off period, the exact time length of the power-off period is recorded as the power-off time length 222. On the other hand, when the RTC 130 stops during the power-off period, the minimum time length (for example, 161 hours) of the power-off period estimated from the backup capability (for example, 160 hours) of the battery is recorded as the power-off time length 222. Will be. Further, when the RTC 130 stops during the power-off period, the RTC time is counted again with the subsequent power-on time as the origin.

図4は、TI受信時時間制御202に流れを示す。   FIG. 4 shows a flow of the TI reception time control 202.

図4のステップS400に示すように、外部装置200からTIが受信された直後に、このTI受信時時間制御202が開始される。ステップ402で、今回のTI受信が、電源ターンオン後最初の受信であるか否かがチェックされる。   As shown in step S400 of FIG. 4, immediately after the TI is received from the external device 200, the TI reception time control 202 is started. In step 402, it is checked whether or not the current TI reception is the first reception after the power is turned on.

その結果、最初の受信である場合には、ステップS404で、RTC130にRTC時刻として、受信されたTIに対応する絶対時刻(TI対応時刻)がセットされる(つまり、RTC時刻がTI対応時刻に一致するように修正される)。ここで、TI対応時刻とは、TIが示す例えば2004年10月1日13時15分のような絶対時刻を、例えば一定年数周期のリングカウンタであるRTC130のカウント値に換算した値である。なお、RTC時刻と受信されたTIとの間の時間差が、外部装置200が管理する時間の通常のばらつき程度に小さい場合(例えば24時間以内)である場合には、その時間差は、外部装置200での時間管理のばらつきに起因するものであり、RTC時刻は正しい絶対時刻に対応しているとみなすことができる。そこで、そのように時間差が小さい場合には、ステップ404はパスされてもよい。   As a result, if it is the first reception, in step S404, the RTC 130 is set as the RTC time with the absolute time (TI corresponding time) corresponding to the received TI (that is, the RTC time is set to the TI corresponding time). Modified to match). Here, the TI corresponding time is a value obtained by converting an absolute time indicated by the TI, for example, 13:15 on October 1, 2004, into a count value of the RTC 130 which is a ring counter having a fixed number of years. If the time difference between the RTC time and the received TI is as small as the normal variation of the time managed by the external device 200 (for example, within 24 hours), the time difference is The RTC time can be regarded as corresponding to the correct absolute time. Thus, if the time difference is so small, step 404 may be passed.

また、TIが受信された場合、ステップ406でTIフラグ220に値「1」がセットされる。これは、現在のRTC時刻が絶対時刻に対応していることを意味する。   If a TI is received, a value “1” is set in the TI flag 220 in step 406. This means that the current RTC time corresponds to the absolute time.

さらに、ステップS408で、今回のTI受信が、このプリンタ100の工場出荷後最初の受信であるかがチェックされる。その結果、最初の受信でないと判断された場合には、HMタイマ226、電源オン時刻228、前回HM時刻242、前回電源オフ時刻244、及び、前回蒸発計算時刻246が、ステップ404でのRTC時刻とTI対応時刻と差分(つまり、RTC時刻の修正幅と同じ修正幅)だけ修正される。例えば、ステップ404でRTC時刻に100時間がプラスされた場合、HMタイマ226、電源オン時刻228、前回HM時刻242、前回電源オフ時刻244、及び、前回蒸発計算時刻246も同様に100時間がプラスされる。この修正により、HMタイマ226、電源オン時刻228、前回HM時刻242、前回電源オフ時刻244、及び、前回蒸発計算時刻246が、RTC時刻と同じ絶対時刻の時間軸上の値となるので、これらの値の間の差分が意味ある経過時間を示すようになる(例えば、修正された前回電源オフ時刻244とRTC時刻との差分は、前回の電源オフから現在までの経過時間を示す)。他方、ステップS408の結果、工場出荷後最初の受信と判断された場合には、ステップ410の修正はパスされる。出荷後最初の受信の場合、HMタイマ226、前回HM時刻242、前回電源オフ時刻244、及び、前回蒸発計算時刻246の値は不定であるため、これを修正することに意味がないからである。   In step S408, it is checked whether the current TI reception is the first reception after the printer 100 is shipped from the factory. As a result, if it is determined that it is not the first reception, the HM timer 226, the power-on time 228, the previous HM time 242, the previous power-off time 244, and the previous evaporation calculation time 246 are the RTC time in step 404. And the TI corresponding time and the difference (that is, the same correction width as that of the RTC time) are corrected. For example, if 100 hours is added to the RTC time in step 404, the HM timer 226, the power-on time 228, the previous HM time 242, the previous power-off time 244, and the previous evaporation calculation time 246 are also added to 100 hours. Is done. As a result of this correction, the HM timer 226, the power-on time 228, the previous HM time 242, the previous power-off time 244, and the previous evaporation calculation time 246 become values on the time axis of the same absolute time as the RTC time. The difference between these values indicates a meaningful elapsed time (for example, the difference between the corrected previous power-off time 244 and the RTC time indicates the elapsed time from the previous power-off to the present). On the other hand, if it is determined in step S408 that the reception is the first reception after shipment from the factory, the correction in step 410 is passed. In the case of the first reception after shipment, the values of the HM timer 226, the previous HM time 242, the previous power-off time 244, and the previous evaporation calculation time 246 are indefinite, so it is meaningless to correct this. .

上述したステップ402で、電源オン後最初の受信でない(2回目以降の受信)と判断された場合には、ステップS404〜S410はパスされる。この場合、既にRTC時刻はTIにより修正されて正しい現在の絶対時刻に対応しているので、改めて修正する必要がないからである。   If it is determined in step 402 described above that the reception is not the first reception after the power is turned on (reception after the second time), steps S404 to S410 are passed. In this case, the RTC time has already been corrected by the TI and corresponds to the correct current absolute time, so there is no need to correct it again.

以上のTI受信時時間制御202により、プリンタ内で管理されているRTC時刻、HMタイマ226、電源オン時刻228、前回HM時刻242、前回電源オフ時刻244、及び、前回蒸発計算時刻246などの時間情報が、外部装置200で管理されている絶対時刻に対応した値にセットされる。   By the TI reception time control 202 described above, the RTC time, the HM timer 226, the power-on time 228, the previous HM time 242, the previous power-off time 244, the previous evaporation calculation time 246, etc. managed in the printer. The information is set to a value corresponding to the absolute time managed by the external device 200.

また、RTC130の停止により絶対時刻が不明になった場合であっても、その後にTIが受信されると、RTC時刻及び記憶されている前回蒸発計算時刻などの各種時刻はTIにより修正されて絶対時刻に対応するものに変る。後に詳述するように、廃インク制御208では、廃インクの蒸発量を計算するために、RTC時刻に基づいて経過時間が計算される。相対時刻に対応するRTC時刻により計算された経過時間は、電源オフ期間中にRTC130が停止したことの影響を受けるので、正確でない可能性がある。これに対し、絶対時刻に対応するRTC時刻により計算された経過時間は、そのような影響を受けないので正確である。RTC130の停止により絶対時刻が不明になった後、相対時刻で経過時間が計算された場合であっても、その後にTIが受信されてRTC時刻及び記憶されている前回蒸発計算時刻などが再び絶対時刻に対応することになったならば、その絶対時刻に基づいて正確な経過時間が計算されることになり、相対時間で計算された不正確な経過時間は無効にされることになる。このように、TIによるRTC130の修正により、正確な経過時間の把握が可能になり、結果として、廃インク制御208のように経過時間に基づいて処理される制御の精度が向上する。   Even if the absolute time becomes unknown due to the stop of the RTC 130, when the TI is received after that, various times such as the RTC time and the stored previous evaporation calculation time are corrected by the TI and are absolute. It changes to the one corresponding to the time. As will be described in detail later, the waste ink control 208 calculates the elapsed time based on the RTC time in order to calculate the evaporation amount of the waste ink. The elapsed time calculated from the RTC time corresponding to the relative time is influenced by the fact that the RTC 130 is stopped during the power-off period, and may not be accurate. On the other hand, the elapsed time calculated by the RTC time corresponding to the absolute time is accurate because it is not affected by such an effect. Even if the elapsed time is calculated at the relative time after the absolute time becomes unknown due to the stop of the RTC 130, the TI is received after that, the RTC time and the stored previous evaporation calculation time are absolute again. If it corresponds to the time, the accurate elapsed time is calculated based on the absolute time, and the incorrect elapsed time calculated in the relative time is invalidated. As described above, the correction of the RTC 130 by the TI makes it possible to accurately grasp the elapsed time, and as a result, the accuracy of the control that is processed based on the elapsed time like the waste ink control 208 is improved.

図5は、キャリッジメンテナンス制御204の流れを示す。   FIG. 5 shows the flow of the carriage maintenance control 204.

図5のステップS500に示すように、電源ターンオンの直後にこのキャリッジメンテナンス制御204が開始される。ステップS502で、直前の電源オフ期間の時間長が所定のCM(キャリッジメンテナンス)閾値以上であるかどうかが、電源オフ時間長222に基づいて判断される。ここで、CM閾値は、キャリッジメンテナンスのインターバルとして適当な時間長であり、例えば、キャリッジ機構114のシャフト等に塗られている潤滑油の固化を防止するために適切なインターバルの長さであり、蓄電器のバックアップ能力(例えば160時間)よりは短い。   As shown in step S500 of FIG. 5, the carriage maintenance control 204 is started immediately after the power is turned on. In step S502, it is determined based on the power-off time length 222 whether the time length of the immediately preceding power-off period is equal to or greater than a predetermined CM (carriage maintenance) threshold. Here, the CM threshold is an appropriate time length as an interval for carriage maintenance, for example, an appropriate interval length for preventing the lubricant applied to the shaft or the like of the carriage mechanism 114 from solidifying, It is shorter than the backup capacity of the battery (for example, 160 hours).

ステップS502の結果、電源オフ時間長222がCM閾値以上であるならば、ステップS504で、キャリッジのシャフトに沿うフル可動範囲にわたる往復走行が実行される。これにより、キャリッジ機構114の潤滑油が引き伸ばされ流動して固化が防止される。   If the result of step S502 is that the power-off time length 222 is greater than or equal to the CM threshold value, reciprocating travel is performed in step S504 over the full movable range along the carriage shaft. Thereby, the lubricating oil of the carriage mechanism 114 is stretched and flows to prevent solidification.

以上のキャリッジメンテナンス制御204により、CM閾値以上に長い電源オフ期間があった場合、その後の電源ターンオン直後にキャリッジメンテナンスが必ず実行されることになる。特に長期間の電源オフ期間があった場合、その間にRTC130が停止しても、その後の電源ターンオン直後に確実にキャリッジメンテナンスが実行される。   According to the above carriage maintenance control 204, when there is a power-off period longer than the CM threshold, carriage maintenance is always executed immediately after the subsequent power-on. In particular, when there is a long power-off period, even if the RTC 130 stops during that time, the carriage maintenance is surely performed immediately after the subsequent power-on.

図6は、ヘッドメンテナンス(HM)制御206の流れを示す。   FIG. 6 shows the flow of the head maintenance (HM) control 206.

図6のステップS600に示すように、印刷を実行する直前に、このヘッドメンテナンス制御206が開始される。或いは、電源ターンオン直後にヘッドメンテナンス制御206が開始されてもよい。また、ステップS602に示すように、ユーザからヘッドメンテナンス実行要求(例えば、ヘッドクリーニングの実行要求、或いは、インクタンク装着完了の通知など)が入力されたときにも、このヘッドメンテナンス制御206が開始される。   As shown in step S600 of FIG. 6, this head maintenance control 206 is started immediately before printing. Alternatively, the head maintenance control 206 may be started immediately after the power is turned on. Further, as shown in step S602, the head maintenance control 206 is also started when a head maintenance execution request (for example, a head cleaning execution request or a notification of completion of ink tank installation) is input from the user. The

ステップS600により印刷実行直前(又は電源ターンオン直後)にヘッドメンテナンス制御206が開始された場合、ステップS604で、前回HM時刻242と現在のRTC時刻(現在時刻)との差分を計算することで前回のヘッドメンテナンス実行時から現在までの経過時間が計算され、ステップS606で、計算された経過時間が所定の複数レベルのHM(ヘッドメンテナンス)閾値をどれかに該当(超えたか)するか否かが判定される。ここで、それぞれのレベルのHM閾値とは、それぞれのレベルのヘッドメンテナンス(特にヘッドクリーニング)を実行するのに適したヘッドメンテナンス間のインターバルの長さである。レベルが高い(クリーニング作業が入念で重い)ほど、HM閾値はより長い時間に設定されている。   If the head maintenance control 206 is started immediately before printing is performed (or immediately after the power is turned on) in step S600, the difference between the previous HM time 242 and the current RTC time (current time) is calculated in step S604. The elapsed time from the head maintenance execution time to the present time is calculated. In step S606, it is determined whether or not the calculated elapsed time falls within (exceeds) a predetermined plurality of levels of HM (head maintenance) thresholds. Is done. Here, the HM threshold value of each level is the length of an interval between head maintenances suitable for executing head maintenance (particularly head cleaning) of each level. The higher the level (the more careful and heavy the cleaning operation), the longer the HM threshold is set.

ステップS606の判定の結果、計算された経過時間が複数レベルのHM閾値のいずれにも該当しない(つまり、最小のHM閾値未満である)場合、ヘッドメンテナンスは実行されずにヘッドメンテナンス制御206は終了する。他方、計算された経過時間がいずれかのHM閾値に該当する(「該当するHM閾値」とは、経過時間以下のHM閾値のうちの最大のHM閾値をいう)場合、その該当するHM閾値のレベルのヘッドメンテナンスを実行するために、制御はステップS608へ進む。   As a result of the determination in step S606, if the calculated elapsed time does not correspond to any of the multiple levels of the HM threshold (that is, less than the minimum HM threshold), the head maintenance is not performed and the head maintenance control 206 is terminated. To do. On the other hand, when the calculated elapsed time corresponds to one of the HM thresholds (“corresponding HM threshold” means the maximum HM threshold among HM thresholds equal to or less than the elapsed time), the corresponding HM threshold Control proceeds to step S608 to perform level head maintenance.

また、上述したステップ602で、ユーザ要求によりヘッドメンテナンス制御206が開始された場合にも、ユーザ要求されたヘッドメンテナンスを実行するために、制御はステップS608へ進む。   In addition, when the head maintenance control 206 is started by a user request in step 602 described above, the control proceeds to step S608 in order to execute the head maintenance requested by the user.

ステップS608で、予備的な廃インク制御が実行される。予備的な廃インク制御とは、後に詳述される廃インク制御208と実質的に同じ計算手順により、今行おうとしているヘッドメンテナンスを実際に行った場合にインク吸収体115の廃インク残量がどのような値になるかを予測的に計算して、インク吸収体115から廃インクが溢れ出るか否かを予測的に判定する処理である。この予備的な廃インク制御の計算では、ヘッドメンテナンスによって排出されるインク量として、予めレベルごとに定められているインク排出量値が用いられる。廃インク制御208では、後述するように、RAM124やEEPROM126内の変数データが確定的に更新されるのに対し、予備的な廃インク制御では、変数データの確定的な更新は行われない。   In step S608, preliminary waste ink control is executed. Preliminary waste ink control refers to the amount of waste ink remaining in the ink absorber 115 when the head maintenance to be performed is actually performed according to substantially the same calculation procedure as the waste ink control 208 described in detail later. Is a process for predictively calculating whether or not waste ink overflows from the ink absorber 115. In this preliminary waste ink control calculation, an ink discharge amount value determined in advance for each level is used as the amount of ink discharged by the head maintenance. In the waste ink control 208, as will be described later, the variable data in the RAM 124 and the EEPROM 126 is deterministically updated, whereas in the preliminary waste ink control, the variable data is not deterministically updated.

ステップ610で、ステップ608の予備的な廃インク制御の結果により廃インク溢れが生じる可能性があるか否かが判断される。その可能性があると判定された場合、ヘッドメンテナンスの実行はパスされて、ヘッドメンテナンス制御206が終了する。この場合、予備的な廃インク制御の中で、廃インク溢れ用の所定のメンテナンスエラー処理(例えば、ユーザに所定のメッセージを通知する)が行われる。   In step 610, it is determined whether or not there is a possibility of waste ink overflow based on the result of the preliminary waste ink control in step 608. If it is determined that there is such a possibility, the execution of the head maintenance is passed, and the head maintenance control 206 ends. In this case, in the preliminary waste ink control, a predetermined maintenance error process for overflowing the waste ink (for example, a predetermined message is notified to the user) is performed.

ステップ610で、廃インク溢れが生じる可能性がないと判断された場合、制御はステップS612に進み、上記ステップ606で判定されたレベル(又は、ステップ602でユーザにより要求されたレベル)のヘッドメンテナンスが実行される。そして、ステップS612で、廃インク制御208が実行される。この廃インク制御208では、今実行されたヘッドメンテナンスの結果としてインク吸収体115の廃インク残量がどのような値になったが計算され、インク吸収体115から廃インクが溢れ出るか否かが判定される。また、ステップS616で、前回HM時刻242に現在のRTC時刻(現在時刻)がセットされる。   If it is determined in step 610 that there is no possibility of waste ink overflow, control proceeds to step S612, and head maintenance at the level determined in step 606 (or the level requested by the user in step 602). Is executed. In step S612, waste ink control 208 is executed. In this waste ink control 208, the value of the amount of waste ink remaining in the ink absorber 115 as a result of the head maintenance that has just been performed is calculated, and whether or not waste ink overflows from the ink absorber 115 is determined. Is determined. In step S616, the current RTC time (current time) is set as the previous HM time 242.

以上のようなヘッドメンテナンス制御206により、印刷実行前又は電源ターンオン時に、前回のヘッドメンテナンス実行時からの経過時間の長さに応じた適当なレベルのヘッドメンテナンスが選択的に実行される。また、インク吸収体115からの廃インクの溢れ出しを防止するように、ヘッドメンテナンスの実行可否が制御される。   By the head maintenance control 206 as described above, an appropriate level of head maintenance is selectively executed according to the length of time elapsed since the previous head maintenance execution before printing or when the power is turned on. Further, whether or not the head maintenance can be performed is controlled so as to prevent the waste ink from overflowing from the ink absorber 115.

図7と図8は、互いに繋がって廃インク制御208の流れを示す。   7 and 8 show the flow of the waste ink control 208 connected to each other.

図7のステップS700に示すように、電源ターンオフが行われる直前、及び、上述したヘッドメンテナンス制御206の中で、この廃インク制御208が実行される。ステップS702で、前回蒸発計算時刻246が不定か否かが判断される。前回蒸発計算時刻246が不定な場合とは、このプリンタ10が工場集荷されてからまだ一度もヘッドメンテナンス又は電源ターンオフのいずれもが行われたことがない(廃インク制御208が一度も実行されてない)場合であり、この場合には、廃インク蒸発量の計算を行うことは意味がない。そこで、この場合には、制御は、廃インク蒸発量の計算にかかわる処理をパスして、図8に示すステップ806へ進み、そこで、今回のヘッドメンテナンスで排出したインク量を、SB(相対時刻ベース廃インク総量)252とB(相対時刻ベース廃インク残量)254に加算する。   As shown in step S700 of FIG. 7, the waste ink control 208 is executed immediately before the power is turned off and in the head maintenance control 206 described above. In step S702, it is determined whether the previous evaporation calculation time 246 is indefinite. The case where the previous evaporation calculation time 246 is indefinite means that neither the head maintenance nor the power supply turn-off has been performed since the printer 10 was collected at the factory (the waste ink control 208 has been executed once). In this case, it is meaningless to calculate the waste ink evaporation amount. Therefore, in this case, the control passes the processing related to the calculation of the waste ink evaporation amount, and proceeds to step 806 shown in FIG. 8, where the ink amount discharged in the current head maintenance is set to SB (relative time). The total amount of base waste ink) 252 and B (relative time base waste ink remaining amount) 254 are added.

上記ステップS702の結果、前回蒸発計算時刻246が特定されている場合(既にヘッドメンテナンス又は電源ターンオフのいずれかが行われたことがある場合(既に廃インク制御208が実行されたことがある場合))には、廃インクの蒸発量を計算するために、制御はステップS704に進む。ステップS704で、今回の蒸発量計算が電源ターンオン後の最初の計算回であるか否かが判断される。   If the previous evaporation calculation time 246 has been identified as a result of step S702 above (when head maintenance or power supply turn-off has already been performed (when waste ink control 208 has already been performed)). ), The control proceeds to step S704 in order to calculate the evaporation amount of the waste ink. In step S704, it is determined whether or not the current evaporation amount calculation is the first calculation after the power is turned on.

ステップS704の結果、電源ターンオン後の最初の計算回であると判定された場合には、ステップS706で、その電源ターンオン時にRTC130が継続動作していたか停止していたかが判断される。そして、電源ターンオン時にRTC130が継続動作していた場合には、ステップS708で、前回電源オフ時刻244と現在のRTC時刻(現在時刻)との差分が計算され、その差分がHMタイマ242にセットされる。つまり、前回の電源ターンオフ時点(つまり、前回の蒸発量計算が行われた時点)から現在までの経過時間が、HMタイマ242にセットされる。他方、電源ターンオン時にRTC130が停止していた場合には、現在のRTC時刻は前回の電源ターン時刻からカウントされ続けた値ではなく、電源ターンオン時からカウント開始された値になってしまっている。そこで、この場合には、ステップS710で、電源オン時刻228と現在のRTC時刻(現在時刻)との差分が計算され、その差分がHMタイマ242にセットされる。つまり、電源ターンオン時点から現在までの経過時間がHMタイマ242にセットされる。要するに、電源ターンオン後の最初の計算回では、前回の蒸発量計算が行われた時点から現在までの経過時間のうち、RTC130の停止で不明に陥った電源オフ期間の長さを除いた、確実に経過していると認められる時間長が、HMタイマ242にセットされる。   As a result of step S704, if it is determined that this is the first calculation time after the power supply is turned on, it is determined in step S706 whether the RTC 130 was continuously operating or stopped when the power supply was turned on. If the RTC 130 continues to operate when the power is turned on, the difference between the previous power-off time 244 and the current RTC time (current time) is calculated in step S708, and the difference is set in the HM timer 242. The That is, the elapsed time from the previous power supply turn-off time (that is, the time when the previous evaporation amount calculation was performed) to the present time is set in the HM timer 242. On the other hand, when the RTC 130 is stopped when the power supply is turned on, the current RTC time is not a value that has been counted since the previous power supply turn time, but a value that has been counted since the power supply is turned on. In this case, the difference between the power-on time 228 and the current RTC time (current time) is calculated in step S 710, and the difference is set in the HM timer 242. That is, the elapsed time from the time when the power is turned on until the present is set in the HM timer 242. In short, in the first calculation after the power is turned on, the elapsed time from the time when the previous evaporation amount calculation was performed to the present time, the length of the power off period that was unknown due to the stop of the RTC 130 was excluded. The HM timer 242 is set to a time length that is recognized as having passed.

他方、ステップS704で、電源ターンオン後の最初の計算回でないと判定された場合(電源ターンオン後2回目以降の計算回の場合)には、ステップS712で、現在のHMタイマ242(前回の廃インク制御208におけるステップ732でセットされた、前回の廃インク制御208の実行時刻)と現在のRTC時刻(現在時刻)との差分が計算され、その差分がHMタイマ242に改めてセットされる。つまり、電源ターンオン後2回目以降の計算回では、前回の廃インク制御208の実行時点から現在までの経過時間(これは、確実に経過していると認められる)が、HMタイマ242にセットされる。   On the other hand, if it is determined in step S704 that it is not the first calculation time after the power supply turn-on (in the case of the second or subsequent calculation time after the power supply turn-on), in step S712, the current HM timer 242 (previous waste ink is used). The difference between the previous execution time of waste ink control 208 set in step 732 of the control 208 and the current RTC time (current time) is calculated, and the difference is set in the HM timer 242 again. In other words, in the second and subsequent calculation times after the power is turned on, the elapsed time from the previous execution time of the waste ink control 208 to the present time (which is considered to have surely passed) is set in the HM timer 242. The

この後、制御はステップS714に進み、TIフラグ220(RTC時刻が絶対時刻に対応するか相対時刻に対応するか)がチェックされる。TIフラグ220が「1」の場合(RTC時刻が絶対時刻に対応する場合)には、制御はステップS716へ進み、そこで、前回蒸発計算時刻246と現在のRTC時刻(現在時刻)との差分が計算され、その差分が蒸発時間長224にセットされる。こうしてセットされた蒸発時間長224は、RTC時刻が示す絶対時刻に基づいて計算された、前回の蒸発計算実行時点から現在まで経過時間であり、これは、確実に経過していると認められる時間である。そして、ステップS718で、前回蒸発計算時刻246が、現在のRTC時刻(現在時刻)に更新される。   Thereafter, control proceeds to step S714, where TI flag 220 (whether RTC time corresponds to absolute time or relative time) is checked. When the TI flag 220 is “1” (when the RTC time corresponds to the absolute time), the control proceeds to step S716, where the difference between the previous evaporation calculation time 246 and the current RTC time (current time) is calculated. The difference is calculated and the evaporation time length 224 is set. The evaporation time length 224 set in this way is the elapsed time from the previous evaporation calculation execution time to the present time calculated based on the absolute time indicated by the RTC time, and this is the time that is surely passed. It is. In step S718, the previous evaporation calculation time 246 is updated to the current RTC time (current time).

その後、ステップS720で、上記ステップS716でセットされた蒸発時間長224の所定の関数として廃インクの蒸発量が計算される。例えば、蒸発時間長224に所定の蒸発係数(単位時間当たりの蒸発量を定義した値)を乗算することで、蒸発量が計算される。このように蒸発時間長224に基づいて計算された蒸発量が、現在のA(絶対時刻ベース廃インク残量)250から差し引かれ、それにより得られた廃インク残量がA250に改めてセットされる。   Thereafter, in step S720, the evaporation amount of the waste ink is calculated as a predetermined function of the evaporation time length 224 set in step S716. For example, the evaporation amount is calculated by multiplying the evaporation time length 224 by a predetermined evaporation coefficient (a value defining the evaporation amount per unit time). Thus, the evaporation amount calculated based on the evaporation time length 224 is subtracted from the current A (absolute time base waste ink remaining amount) 250, and the waste ink remaining amount thus obtained is set to A250 again. .

さらに、ステップS722で、上記ステップS708、710又は712でセットされたHMタイマ220の所定の関数として廃インクの蒸発量が計算される。例えば、HMタイマ220に上記蒸発係数を乗算することで、蒸発量が計算される。このようにHMタイマ220に基づいて計算された蒸発量が、現在のB(相対時刻ベース廃インク残量)254から差し引かれ、それにより得られた廃インク残量がB254に改めてセットされる。   Further, in step S722, the evaporation amount of waste ink is calculated as a predetermined function of the HM timer 220 set in step S708, 710, or 712. For example, the evaporation amount is calculated by multiplying the HM timer 220 by the evaporation coefficient. The evaporation amount calculated based on the HM timer 220 in this way is subtracted from the current B (relative time base waste ink remaining amount) 254, and the waste ink remaining amount thus obtained is set to B254 again.

ここで、上記ステップS720とS722での蒸発量計算の根拠として用いられる蒸発時間長224とHMタイマ220の意味について説明する。   Here, the meaning of the evaporation time length 224 and the HM timer 220 used as the basis of the evaporation amount calculation in the steps S720 and S722 will be described.

蒸発時間長224は、絶対時刻に対応するRTC時刻を用いて計算されるもので、前回の蒸発量計算時点(ヘッドメンテナンス実行時点又は電源ターンオフ時点)から、今回の蒸発量計算時点(ヘッドメンテナンス実行時点又は電源ターンオフ時点)までの時間区間の長さである。前回の蒸発量計算時点と今回の蒸発量計算時点との間に電源オフ期間が挟まる場合がある。その電源オフ期間中にRTC130が停止したとしても、その電源オフ期間の長さは、必然的に、蒸発時間長224に算入されることになる。   The evaporation time length 224 is calculated using the RTC time corresponding to the absolute time, and from the previous evaporation amount calculation time (head maintenance execution time or power supply turn-off time) to the current evaporation amount calculation time (head maintenance execution time). The time interval until the time or power supply turn-off time). There is a case where the power-off period is sandwiched between the previous evaporation amount calculation time and the current evaporation amount calculation time. Even if the RTC 130 is stopped during the power-off period, the length of the power-off period is necessarily included in the evaporation time length 224.

これに対し、HMタイマ220は、絶対時刻に対応するRTC時刻を用いて計算される場合もあれば、相対時刻に対応するRTC時刻を用いて計算される場合もある。これは、HMタイマ220がセットされる時点でRTC時刻が絶対時刻に対応しているか相対時刻に対応しているかによって決まる。HMタイマ220は次の時間長を示す。   In contrast, the HM timer 220 may be calculated using the RTC time corresponding to the absolute time, or may be calculated using the RTC time corresponding to the relative time. This is determined depending on whether the RTC time corresponds to the absolute time or the relative time when the HM timer 220 is set. The HM timer 220 indicates the next time length.

(1) 電源ターンオン後の最初の蒸発量計算時(ヘッドメンテナンス実行時点又は電源ターンオフ時点)の場合
A. 電源オフ期間中にRTC130が継続動作していた場合
前回の電源ターンオフ時点から現在(ヘッドメンテナンス実行時点又は電源ターンオフ時点)までの時間区間の長さ。
(1) When calculating the first evaporation after power-on (when head maintenance is performed or when power is turned off) When the RTC 130 is continuously operating during the power-off period The length of the time interval from the previous power-off time to the present time (head maintenance execution time or power-off time).

B. 電源オフ期間中にRTC130が停止した場合
電源ターンオン時点から現在(ヘッドメンテナンス実行時点又は電源ターンオフ時点)までの時間区間の長さ。
B. When the RTC 130 stops during the power-off period The length of the time interval from the time when the power is turned on until the present time (when head maintenance is performed or when the power is turned off)

(2) 電源ターンオン後の2回目の蒸発量計算時(ヘッドメンテナンス実行時点又は電源ターンオフ時点)の場合
前回の蒸発量計算時点(ヘッドメンテナンス実行時点)から今回の蒸発量計算時点(ヘッドメンテナンス実行時点又は電源ターンオフ時点)までの時間区間の長さ。
(2) When the second evaporation amount is calculated after the power is turned on (when head maintenance is performed or when the power is turned off) From the previous evaporation amount calculation time (head maintenance execution time) to the current evaporation amount calculation time (head maintenance execution time) Or the length of the time interval until the power is turned off.

HMタイマ220は、蒸発時間長224と異なり、RTC130の停止が生じた電源オフ期間の時間長は、これに算入されない。一方、RTC130が継続動作している電源オフ期間の時間長は、HMタイマ220に算入され得る。   Unlike the evaporation time length 224, the HM timer 220 does not include the time length of the power-off period in which the RTC 130 is stopped. On the other hand, the time length of the power-off period during which the RTC 130 is continuously operating can be included in the HM timer 220.

蒸発時間長224とHMタイマ220とは、通常は同じ値になるのであるが、次の場合にだけ異なる値となる。その場合とは、電源オフ期間中にRTC130が停止した後に電源がターンオンされた後の最初の計算回の場合である。この場合、既に述べたように、蒸発時間長224には、前回蒸発計算時刻246から現在のRTC時刻との差分がセットされるのに対し、他方、HMタイマ220には、電源ターンオン時刻から現在のRTC時刻との差分がセットされ、それには電源ターンオン以前の経過時間は含まれていない。このように異なる蒸発時間長224とHMタイマ220を使い分ることで、後に説明するように、A250とB252の値の信頼性が向上することになる。   The evaporation time length 224 and the HM timer 220 normally have the same value, but differ only in the following cases. This is the case of the first calculation after the power is turned on after the RTC 130 is stopped during the power-off period. In this case, as described above, in the evaporation time length 224, a difference from the previous evaporation calculation time 246 to the current RTC time is set, whereas in the HM timer 220, the current time from the power turn-on time to the current time is set. The difference from the RTC time is set, and it does not include the elapsed time before the power is turned on. By properly using the different evaporation time lengths 224 and the HM timer 220 in this way, as will be described later, the reliability of the values of A250 and B252 is improved.

さて、A250とB252が計算された後、ステップS724で、SA(絶対時刻ベース廃インク総量)248とSB(相対時刻ベース廃インク総量)252と所定の蒸発残率(もうこれ以上は蒸発しないと認められる限界の廃インク残量の廃インク総量に対する比率)とに基づいて、上記計算されたA250とB254がそれぞれ過少ではないか(つまり、計算された廃インク蒸発量が過大でないか)がチェックされる。その結果、A250又はB254が過少と判断されると、そのA250又はB254が修正される。例えば、SA248とSB252にそれぞれ蒸発残率が乗算されることで、SA248に基づく限界廃インク残量と、SB252に基づく限界廃インク残量とが計算される。そして、A250とSA248に基づく限界廃インク残量とが比較され、A250の方が小さければ、A250が、SA248に基づく限界廃インク残量と同じ値に修正される。また、B254も同様に、SB252に基づく限界廃インク残量より小さければ、SB252に基づく限界廃インク残量と同じ値に修正される。   Now, after A250 and B252 are calculated, in step S724, SA (absolute time base waste ink total) 248, SB (relative time base waste ink total) 252 and a predetermined residual evaporation rate (no more evaporation is required). The calculated A250 and B254 are not too small (that is, the calculated amount of waste ink evaporation is not too large) based on the limit of the ratio of the remaining amount of waste ink to the total amount of waste ink). Is done. As a result, when it is determined that A250 or B254 is insufficient, A250 or B254 is corrected. For example, SA248 and SB252 are multiplied by the residual evaporation rate, respectively, so that the limit waste ink remaining amount based on SA248 and the limit waste ink remaining amount based on SB252 are calculated. Then, A250 and the limit waste ink remaining amount based on SA248 are compared. If A250 is smaller, A250 is corrected to the same value as the limit waste ink remaining amount based on SA248. Similarly, if B254 is smaller than the limit waste ink remaining amount based on SB252, it is corrected to the same value as the limit waste ink remaining amount based on SB252.

その後、ステップS726で、今回のヘッドメンテナンスで新たに排出された廃インク量が、SA248とA250に加算される。SB252とB254には、新たに排出された廃インク量の加算は行われない。その後、制御は、後述するステップS728へ進む。   Thereafter, in step S726, the amount of waste ink newly discharged by the current head maintenance is added to SA248 and A250. The amount of newly discharged waste ink is not added to SB252 and B254. Thereafter, the control proceeds to step S728 described later.

他方、上記ステップS714で、TIフラグ220が「0」と判定された場合(RTC時刻が相対時刻に対応している場合)には、制御は図8に示すステップS800へ進む。ステップS800で、前回蒸発計算時刻246が、これに上記ステップS708、710又は712でセットされたHMタイマ220を加算した値に更新される。   On the other hand, when it is determined in step S714 that the TI flag 220 is “0” (when the RTC time corresponds to the relative time), the control proceeds to step S800 shown in FIG. In step S800, the previous evaporation calculation time 246 is updated to a value obtained by adding the HM timer 220 set in step S708, 710 or 712 to the previous evaporation calculation time 246.

そして、ステップS802で、HMタイマ220の関数として蒸発量が計算される。例えば、HMタイマ220に上記蒸発係数を乗算することで、蒸発量が計算される。このようにHMタイマ220に基づいて計算された蒸発量が、現在のA250とB254からそれぞれ差し引かれ、それにより得られた廃インク残量がそれぞれA250とB254に改めてセットされる。   In step S802, the evaporation amount is calculated as a function of the HM timer 220. For example, the evaporation amount is calculated by multiplying the HM timer 220 by the evaporation coefficient. Thus, the evaporation amount calculated based on the HM timer 220 is subtracted from the current A250 and B254, respectively, and the remaining amount of waste ink obtained thereby is set to A250 and B254, respectively.

その後、ステップ804で、前述のステップS724で行ったと同様の方法で、上記S802で計算されたA250とB254がそれぞれ過少ではないか(つまり、計算された廃インク蒸発量が過大でないか)がチェックされ、その結果、過少と判断されたA250又はB254が修正される。   Thereafter, in step 804, it is checked whether A250 and B254 calculated in step S802 are too small (that is, whether the calculated amount of waste ink evaporation is excessive) in the same manner as in step S724 described above. As a result, A250 or B254 determined to be insufficient is corrected.

その後、ステップS806で、今回のヘッドメンテナンスで新たに排出された廃インク量が、SB252とB254に加算される。SA248とA250には、新たに排出された廃インク量の加算は行われない。その後、制御は、ステップS728へ進む。   Thereafter, in step S806, the amount of waste ink newly discharged by the current head maintenance is added to SB252 and B254. The amount of newly discharged waste ink is not added to SA248 and A250. Thereafter, the control proceeds to step S728.

ステップS728では、A250とB254が加算されてトータルの廃インク残量が計算され、そのトータルの廃インク残量が、所定の溢れ閾値以上になったかが判定される。ここで、溢れ閾値とは、廃インク残量が溢れ閾値以下であれば、インク吸収体115から廃インクが溢れ出るおそれがないと判断される値である。判定の結果、トータルの廃インク残量が溢れ閾値を越えた場合、ステップ730で、廃インク溢れ出しに対処するための所定のメンテナンスエラー制御(例えば、ユーザへのメッセージの表示)が行われる。その後、ステップS732で、HMタイマに現在のRTC時刻(現在時刻)がセットされる。   In step S728, A250 and B254 are added to calculate the total waste ink remaining amount, and it is determined whether the total waste ink remaining amount is equal to or greater than a predetermined overflow threshold. Here, the overflow threshold is a value that determines that there is no possibility of overflow of waste ink from the ink absorber 115 if the remaining amount of waste ink is equal to or less than the overflow threshold. As a result of the determination, if the total waste ink remaining amount exceeds the overflow threshold value, predetermined maintenance error control (for example, display of a message to the user) is performed in step 730 in order to deal with waste ink overflow. Thereafter, in step S732, the current RTC time (current time) is set in the HM timer.

以上のような廃インク制御208により、A250には、RTC時刻が絶対時刻に対応しているときに排出された廃インクの残量が記録され、一方、B254には、RTC時刻が相対時刻に対応しているときに排出された廃インクの残量が記録されることになる。   By the waste ink control 208 as described above, the remaining amount of waste ink discharged when the RTC time corresponds to the absolute time is recorded in A250, while the RTC time is set to the relative time in B254. The remaining amount of the waste ink discharged when it is compatible is recorded.

ステップS720、S722に示したように、TIフラグが「1」である場合(つまり、RTC時刻が絶対時刻に対応している場合)には、A250の蒸発量計算では蒸発時間長224が使用されるのに対し、B254の蒸発量計算ではHMタイマ220が使用される。その理由は次のとおりである。すなわち、B254(つまり、RTC時刻が相対時刻に対応しているときに排出された廃インク量)については、電源オフ期間中にRTC130が停止する事態が生じると、そのインク排出が行われた時刻が不明になってしまう。そのような場合には、不明になったB254のインク排出時刻から現在までの経過時間より長い経過時間が、蒸発時間長224にセットされる虞がある。そのため、B254の蒸発量計算に蒸発時間長224を用いると、実際より大きい蒸発量が計算される場合があり、その結果、廃インクが溢れ出る事態が発生する可能性がある。HMタイマ220は、電源ターンオン時点から現在までの確実に経過していると認められる時間を表している。そのため、不明になった経過時間での蒸発量は算入せず、確実に蒸発したと認められる蒸発量だけを計算するために、B254の蒸発量計算ではHMタイマ224が用いられる。他方、A250(つまり、RTC時刻が絶対時刻に対応しているときに排出された廃インク量)については、現在のRTC時刻が絶対時刻に対応している限り、現在のRTC時刻と前回の蒸発量計算時刻との差分である蒸発時間長224の方が、HMタイマ220よりも、そのインク排出時刻から現在までの経過時間長により近い値を表すことになる。そこで、A250の蒸発量計算では、蒸発時間長224が使用される。   As shown in steps S720 and S722, when the TI flag is “1” (that is, when the RTC time corresponds to the absolute time), the evaporation time length 224 is used in the evaporation amount calculation of A250. In contrast, the HM timer 220 is used in the calculation of the evaporation amount of B254. The reason is as follows. That is, regarding B254 (that is, the amount of waste ink discharged when the RTC time corresponds to the relative time), when the RTC 130 stops during the power-off period, the time when the ink was discharged. Becomes unknown. In such a case, there is a possibility that an elapse time longer than the elapsed time from the B254 ink discharge time that has become unknown to the present is set in the evaporation time length 224. Therefore, when the evaporation time length 224 is used for calculating the evaporation amount of B254, an evaporation amount larger than the actual amount may be calculated, and as a result, there is a possibility that waste ink overflows. The HM timer 220 represents the time that is considered to have elapsed reliably from the time of power-on to the present. For this reason, the HM timer 224 is used in the calculation of the evaporation amount of B254 in order to calculate only the evaporation amount that is recognized as being surely evaporated, without counting the evaporation amount at the elapsed time that has become unknown. On the other hand, for A250 (that is, the amount of waste ink discharged when the RTC time corresponds to the absolute time), as long as the current RTC time corresponds to the absolute time, the current RTC time and the previous evaporation. The evaporation time length 224, which is the difference from the amount calculation time, represents a value closer to the elapsed time length from the ink discharge time to the present time than the HM timer 220. Therefore, the evaporation time length 224 is used in the evaporation amount calculation of A250.

また、ステップS802に示したように、TIフラグが「0」である場合(つまり、RTC時刻が相対時刻に対応している場合)には、A250についても、B254についても、蒸発量計算ではHMタイマ220が使用される。その理由は次のとおりである。すなわち、現在のRTC時刻が相対時刻に対応している場合には、その前の電源オフ期間中にRTC130が停止する事態が生じると、電源オフ期間中の経過時間が不明になってしまう。また、RTC時刻が相対時刻に対応している限り、そのRTC時刻と前回蒸発計算時刻246との差分である蒸発時間長224を計算することは無意味である(ステップS718に示すように、前回蒸発計算時刻246には、絶対時刻に対応しているRTC時刻がセットされるから、相対時刻に対応する現在のRTC時刻との差分は無意味である)。このことは、A250についても、B254についても同様である。要するに、TIフラグが「0」である場合には、前回の蒸発量計算時点から確実に経過したと認められる時間を示すものはHMタイマ220だけである。よって、HMタイマ220だけが蒸発量計算に使用されるのである。   Further, as shown in step S802, when the TI flag is “0” (that is, when the RTC time corresponds to the relative time), the evaporation amount calculation for both A250 and B254 is HM. A timer 220 is used. The reason is as follows. In other words, when the current RTC time corresponds to the relative time, if the RTC 130 stops during the previous power-off period, the elapsed time during the power-off period becomes unknown. As long as the RTC time corresponds to the relative time, it is meaningless to calculate the evaporation time length 224 that is the difference between the RTC time and the previous evaporation calculation time 246 (as shown in step S718). Since the RTC time corresponding to the absolute time is set in the evaporation calculation time 246, the difference from the current RTC time corresponding to the relative time is meaningless). The same applies to A250 and B254. In short, when the TI flag is “0”, only the HM timer 220 indicates the time that is surely passed since the previous evaporation amount calculation time. Therefore, only the HM timer 220 is used for the evaporation amount calculation.

以上のような蒸発時間長224とHMタイマ220との使い分けによって、RTC時刻が絶対時刻に対応しているときに排出された廃インク残量の計算値であるA250と、RTC時刻が相対時刻に対応しているときに排出された廃インク残量の計算値であるB254が、共に、信頼性の高い値となる。A250とB25とを加算したトータルの廃インク残量に基づいて判断することにより、廃インク溢れ出し防止の精度と信頼性が向上する。   By properly using the evaporation time length 224 and the HM timer 220 as described above, A250, which is a calculated value of the remaining amount of waste ink discharged when the RTC time corresponds to the absolute time, and the RTC time become the relative time. B254, which is a calculated value of the remaining amount of waste ink discharged when it corresponds, is a highly reliable value. By making a determination based on the total waste ink remaining amount obtained by adding A250 and B25, the accuracy and reliability of preventing waste ink overflow can be improved.

また、電源オフ期間中のRTC130の停止により絶対時刻が不明になった後、相対時刻で経過時間(HMタイマ226)が計算された場合であっても、その後にTIが受信されてRTC時刻や記憶されている前回蒸発計算時刻などが再び絶対時刻に対応することになったならば、それらの絶対時刻から正確な経過時間(蒸発時間長224)が計算されるので、相対時間で計算された不正確な経過時間(HMタイマ226)ではなく、正確な経過時間(蒸発時間長224)を用いて廃インク残量が計算される。このように、TIによるRTC130の修正により、正確な経過時間の把握が可能になり、結果として、廃インク制御208のように経過時間に基づいて処理される制御の精度が向上する。   Even when the elapsed time (HM timer 226) is calculated as a relative time after the absolute time becomes unknown due to the stop of the RTC 130 during the power-off period, the TI is subsequently received and the RTC time or If the stored previous evaporation calculation time or the like again corresponds to the absolute time, an accurate elapsed time (evaporation time length 224) is calculated from the absolute time, so the calculation was performed in relative time. The remaining ink remaining amount is calculated using the accurate elapsed time (evaporation time length 224), not the incorrect elapsed time (HM timer 226). As described above, the correction of the RTC 130 by the TI makes it possible to accurately grasp the elapsed time, and as a result, the accuracy of the control that is processed based on the elapsed time like the waste ink control 208 is improved.

以上、本発明の実施形態を説明したが、この実施形態は本発明の説明のための例示にすぎず、本発明の範囲をこの実施形態にのみ限定する趣旨ではない。本発明は、その要旨を逸脱することなく、その他の様々な態様でも実施することができる。   As mentioned above, although embodiment of this invention was described, this embodiment is only the illustration for description of this invention, and is not the meaning which limits the scope of the present invention only to this embodiment. The present invention can be implemented in various other modes without departing from the gist thereof.

例えば、上記実施形態では、図7の廃インク制御208におけるステップS710で、HMタイマ226に、電源ターンオン時点から現在までの経過時間をセットしている。これは、RTC130の停止で不明になった電源ターンオン以前の経過時間を蒸発量計算に算入しないようにする趣旨である。しかし、電源オフ期間中にRTC130が停止した場合、その電源オフ期間中に、少なくとも、蓄電器150のバックアップ能力(例えば160時間)を僅かに超える時間(例えばア161時間)が経過していると認められる。そこで、変形例として、ステップS710では、電源ターンオン時点から現在までの経過時間に、上記バックアップ能力を僅かに超える時間長(例えば161時間)を加算してもよい。   For example, in the above embodiment, in step S710 in the waste ink control 208 of FIG. 7, the elapsed time from the time when the power is turned on to the present is set in the HM timer 226. This is to prevent the elapsed time before the power-turn-on, which has become unknown due to the stop of the RTC 130, from being included in the evaporation amount calculation. However, if the RTC 130 stops during the power-off period, it is recognized that at least a time (for example, 161 hours) slightly exceeding the backup capability (for example, 160 hours) of the battery 150 has elapsed during the power-off period. It is done. Therefore, as a modified example, in step S710, a time length slightly exceeding the backup capability (for example, 161 hours) may be added to the elapsed time from the power-on time to the present time.

本発明に従う電子機器の一実施形態にかかるインクジェットプリンタの全体のハードウェア構成を示すブロック図。1 is a block diagram showing an overall hardware configuration of an inkjet printer according to an embodiment of an electronic device according to the present invention. コントローラ120の制御機能、とりわけ本発明に関連する各種制御の機能を示すブロック図。The block diagram which shows the control function of the controller 120, especially the function of various control relevant to this invention. 電源オン時時間制御200の流れを示すフローチャート。The flowchart which shows the flow of the time control 200 at the time of power-on. TI受信時時間制御202の流れを示すフローチャート。The flowchart which shows the flow of time control 202 at the time of TI reception. キャリッジメンテナンス制御204の流れを示すフローチャート。7 is a flowchart showing a flow of carriage maintenance control 204. ヘッドメンテナンス(HM)制御206の流れを示すフローチャート。7 is a flowchart showing the flow of head maintenance (HM) control 206. 廃インク制御208の流れ(図8とつながる)を示すフローチャート。9 is a flowchart showing a flow of waste ink control 208 (connected to FIG. 8). 廃インク制御208の流れ(図7とつながる)を示すフローチャート。8 is a flowchart showing a flow of waste ink control 208 (connected to FIG. 7).

符号の説明Explanation of symbols

100:プリンタ、110:印刷機構有、111:印刷ヘッド、113:ヘッドメンテナンス機構、113:キャリッジ機構、115:インク吸収体、120:コントローラ、122:CPU、124:RAM、126:EEPROM(不揮発性メモリ)、130:RTC(リアルタイムクロック回路)、140:主電源回路、150:蓄電器、200:電源オン時時間制御、202:TI受信時時間制御、203:内部時間管理制御、204:キャリッジメンテナンス(CM)制御、206:ヘッドメンテナンス制御、208:廃インク制御。 100: printer, 110: printing mechanism present, 111: print head, 113: head maintenance mechanism, 113: carriage mechanism, 115: ink absorber, 120: controller, 122: CPU, 124: RAM, 126: EEPROM (nonvolatile Memory), 130: RTC (real time clock circuit), 140: main power supply circuit, 150: capacitor, 200: power on time control, 202: TI reception time control, 203: internal time management control, 204: carriage maintenance ( CM) control, 206: head maintenance control, 208: waste ink control.

Claims (4)

絶対時刻の情報を間欠的に送る外部装置に接続することが可能な電子機器において、
前記電子機器の電源オン期間中は電源からの電力により動作し、電源オフ期間中は蓄電器に蓄えられた電力で動作して、継続的に内部時刻をカウントするクロック手段と、
前記外部装置から前記絶対時刻の情報を受けたとき、前記情報を用いて前記クロック手段を修正して、前記内部時刻を前記絶対時刻に対応させる内部クロック修正手段と、
前記電子機器で所定処理が実行された時点にて前記クロック手段から取得される処理時刻を記憶する処理時刻記憶手段と、
前記内部クロック修正手段により前記クロック手段が修正された場合、前記処理時刻記憶手段に保持されている前記処理時刻を、前記クロック手段と同じ修正幅だけ修正して、前記処理時刻を前記絶対時刻に対応させる記憶時刻修正手段と、
前記処理時刻記憶手段に記憶された前記処理時刻と、現在時点で前記クロック手段から取得される現在時刻との差分を計算することで、前記所定処理の実行時点から現在までの経過時間を計算する経過時間計算手段と、
前記電子機器で実行された特定作業に応答して、前記特定作業の結果に応じた結果データを計算する手段であって、
(1) 前記内部時刻が前記絶対時刻に対応している時に実行された前記特定作業に応答して絶対時刻ベース結果データを計算し、
(2) 前記内部時刻が前記絶対時刻に対応していない時に実行された前記所定作業に応答して相対時刻ベース結果データを計算し、
(3) 前記絶対時刻ベース結果データと前記相対時刻ベース結果データを分離して保持し、
(4) 前記経過時間計算手段により前記経過時間が計算されたとき、前記絶対時刻ベース結果データと前記相対時刻ベース結果データを、それぞれ、計算された前記経過時間に応じて修正する作業結果管理手段とを備え、
前記経過時間計算手段は、
(1) 前記クロック手段の停止が生じた電源オフ期間の時間長が算入され得る第1の経過時間を計算する手段と、
(2) 前記クロック手段の停止が生じた電源オフ期間の時間長が算入され得ない第2の経過時間を計算する手段と
を有し、
前記作業結果管理手段は、前記経過時間の計算時点にて前記内部時刻が前記絶対時刻に対応しているか否かをチェックし、チェックの結果、
(1) 前記絶対時刻に対応している場合には、
A. 前記絶対時刻ベース結果データを、前記第1の経過時間に応じて修正し、
B. 前記相対時刻ベース結果データを、前記第2の経過時間に応じて修正し、
(2) 前記絶対時刻に対応していない場合には、前記絶対時刻ベース結果データと前記相対時刻ベース結果データとを、前記第2の経過時間に応じて修正する電子機器。
In electronic devices that can be connected to external devices that send absolute time information intermittently,
Clock means for operating with power from a power source during the power-on period of the electronic device, operating with power stored in a capacitor during the power-off period, and continuously counting the internal time;
Internal clock correction means for correcting the clock means using the information when the information on the absolute time is received from the external device, and making the internal time correspond to the absolute time;
A processing time storage means for storing a processing time acquired from the clock means when a predetermined process is executed in the electronic device;
When the clock means is corrected by the internal clock correction means, the processing time held in the processing time storage means is corrected by the same correction width as the clock means, and the processing time is set to the absolute time. A corresponding storage time correction means;
By calculating the difference between the processing time stored in the processing time storage means and the current time acquired from the clock means at the current time, the elapsed time from the execution time of the predetermined process to the present is calculated. Elapsed time calculation means,
In response to the specific work executed in the electronic device, means for calculating result data according to the result of the specific work,
(1) calculating absolute time base result data in response to the specific operation performed when the internal time corresponds to the absolute time;
(2) calculating relative time base result data in response to the predetermined work performed when the internal time does not correspond to the absolute time;
(3) Separately holding the absolute time base result data and the relative time base result data ;
(4) Work result management means for correcting the absolute time base result data and the relative time base result data according to the calculated elapsed time when the elapsed time is calculated by the elapsed time calculation means. It equipped with a door,
The elapsed time calculation means includes
(1) means for calculating a first elapsed time in which a time length of a power-off period in which the stop of the clock means has occurred can be counted;
(2) means for calculating a second elapsed time during which the time length of the power-off period in which the clock means has stopped cannot be counted;
Have
The work result management means checks whether the internal time corresponds to the absolute time at the time of calculation of the elapsed time, and as a result of the check,
(1) If it corresponds to the absolute time,
A. Correcting the absolute time base result data according to the first elapsed time;
B. Correcting the relative time base result data according to the second elapsed time;
(2) An electronic device that corrects the absolute time base result data and the relative time base result data according to the second elapsed time when the absolute time is not supported .
絶対時刻の情報を間欠的に送る外部装置に接続することが可能な電子機器において、
前記電子機器の電源オン期間中は電源からの電力により動作し、電源オフ期間中は蓄電器に蓄えられた電力で動作して、継続的に内部時刻をカウントするクロック手段と、
前記外部装置から前記絶対時刻の情報を受けたとき、前記情報を用いて前記クロック手段を修正して、前記内部時刻を前記絶対時刻に対応させる内部クロック修正手段と、
前記電子機器で所定処理が実行された時点にて前記クロック手段から取得される処理時刻を記憶する処理時刻記憶手段と、
前記内部クロック修正手段により前記クロック手段が修正された場合、前記処理時刻記憶手段に保持されている前記処理時刻を、前記クロック手段と同じ修正幅だけ修正して、前記処理時刻を前記絶対時刻に対応させる記憶時刻修正手段と、
前記処理時刻記憶手段に記憶された前記処理時刻と、現在時点で前記クロック手段から取得される現在時刻との差分を計算することで、前記所定処理の実行時点から現在までの経過時間を計算する経過時間計算手段と、
前記電子機器で実行された特定作業に応答して、前記特定作業の結果に応じた結果データを計算する手段であって、
(1) 前記内部時刻が前記絶対時刻に対応している時に実行された前記特定作業に応答して絶対時刻ベース結果データを計算し、
(2) 前記内部時刻が前記絶対時刻に対応していない時に実行された前記所定作業に応答して相対時刻ベース結果データを計算し、
(3) 前記絶対時刻ベース結果データと前記相対時刻ベース結果データを分離して保持し、
(4)前記経過時間計算手段により前記経過時間が計算されたとき、前記絶対時刻ベース結果データと前記相対時刻ベース結果データを、それぞれ、計算された前記経過時間に応じて計算する作業結果管理手段とを備え、
前記経過時間計算手段は、電源オフ期間中に前記クロック手段が停止したことにより前記内部時刻が前記絶対時刻に対応しなくなった場合、前記絶対時刻に対応していない前記内部時刻に基づいて前記経過時間を計算し、その後、前記外部装置から受信された前記情報により前記内部時刻及び前記処理時刻が前記絶対時刻に対応するように修正された場合、前記絶対時刻に対応する前記内部時刻及び前記処理時刻に基づいて前記経過時間を計算するとともに、前記絶対時刻に対応していない前記内部時刻に基づいて計算された前記経過時間を無効にする電子機器。
In electronic devices that can be connected to external devices that send absolute time information intermittently,
Clock means for operating with power from a power source during the power-on period of the electronic device, operating with power stored in a capacitor during the power-off period, and continuously counting the internal time;
Internal clock correction means for correcting the clock means using the information when the information on the absolute time is received from the external device, and making the internal time correspond to the absolute time;
A processing time storage means for storing a processing time acquired from the clock means when a predetermined process is executed in the electronic device;
When the clock means is corrected by the internal clock correction means, the processing time held in the processing time storage means is corrected by the same correction width as the clock means, and the processing time is set to the absolute time. A corresponding storage time correction means;
By calculating the difference between the processing time stored in the processing time storage means and the current time acquired from the clock means at the current time, the elapsed time from the execution time of the predetermined process to the present is calculated. Elapsed time calculation means,
In response to the specific work executed in the electronic device, means for calculating result data according to the result of the specific work,
(1) calculating absolute time base result data in response to the specific operation performed when the internal time corresponds to the absolute time;
(2) calculating relative time base result data in response to the predetermined operation performed when the internal time does not correspond to the absolute time;
(3) Separately holding the absolute time base result data and the relative time base result data ;
(4) Work result management means for calculating the absolute time base result data and the relative time base result data according to the calculated elapsed time when the elapsed time is calculated by the elapsed time calculation means. It equipped with a door,
The elapsed time calculation means, when the internal time does not correspond to the absolute time due to the clock means being stopped during the power-off period, the elapsed time based on the internal time not corresponding to the absolute time If the internal time and the processing time are corrected to correspond to the absolute time according to the information received from the external device after calculating the time, the internal time and the processing corresponding to the absolute time An electronic device that calculates the elapsed time based on time and invalidates the elapsed time calculated based on the internal time that does not correspond to the absolute time .
前記絶対時刻ベース結果データと前記相対時刻ベース結果データとを組み合わせたデータに基づいて、前記特定作業の結果に問題がないか否かを判断する作業結果判断手段を更に備えた請求項1又は2記載の電子機器。   The work result judging means for judging whether there is no problem in the result of the specific work based on data obtained by combining the absolute time base result data and the relative time base result data. The electronic device described. 前記電子機器は、インクジェットプリンタであり、
前記特定作業は、ヘッドメンテナンスであり、
前記結果データは、前記ヘッドメンテナンスにより印刷ヘッドから排出されてインク吸収体に保持された廃インク量を示す廃インク量データであり、
前記作業結果管理手段による前記修正は、前記廃インク量データから、前記経過時間に応じたインク蒸発量を差し引くことである
請求項1乃至記載の電子機器。
The electronic device is an inkjet printer;
The specific operation is head maintenance,
The result data is waste ink amount data indicating the amount of waste ink discharged from the print head by the head maintenance and held in the ink absorber,
The work result the correction by the management means, wherein the waste ink amount data, the electronic device of claims 1 to 3, wherein by subtracting the ink evaporation amount corresponding to the elapsed time.
JP2004278334A 2004-09-24 2004-09-24 Electronic equipment with time management function Expired - Fee Related JP4581598B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004278334A JP4581598B2 (en) 2004-09-24 2004-09-24 Electronic equipment with time management function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004278334A JP4581598B2 (en) 2004-09-24 2004-09-24 Electronic equipment with time management function

Publications (3)

Publication Number Publication Date
JP2006088589A JP2006088589A (en) 2006-04-06
JP2006088589A5 JP2006088589A5 (en) 2007-09-06
JP4581598B2 true JP4581598B2 (en) 2010-11-17

Family

ID=36230004

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004278334A Expired - Fee Related JP4581598B2 (en) 2004-09-24 2004-09-24 Electronic equipment with time management function

Country Status (1)

Country Link
JP (1) JP4581598B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5465977B2 (en) * 2009-10-15 2014-04-09 理想科学工業株式会社 Image recording apparatus and method for controlling image recording apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11227305A (en) * 1997-11-17 1999-08-24 Canon Business Mach Inc Scheduling system of event of device
JP2002175129A (en) * 2000-12-07 2002-06-21 Nissin Electric Co Ltd Computer having time adjusting function, and network system
JP2004021882A (en) * 2002-06-20 2004-01-22 Toshiba Corp Information terminal equipment
JP2004078754A (en) * 2002-08-21 2004-03-11 Seiko Instruments Inc Printer and printing system with authentication module
JP2004094613A (en) * 2002-08-30 2004-03-25 Casio Comput Co Ltd Date certification device, electronic seal device, electronic seal system and date certification program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11227305A (en) * 1997-11-17 1999-08-24 Canon Business Mach Inc Scheduling system of event of device
JP2002175129A (en) * 2000-12-07 2002-06-21 Nissin Electric Co Ltd Computer having time adjusting function, and network system
JP2004021882A (en) * 2002-06-20 2004-01-22 Toshiba Corp Information terminal equipment
JP2004078754A (en) * 2002-08-21 2004-03-11 Seiko Instruments Inc Printer and printing system with authentication module
JP2004094613A (en) * 2002-08-30 2004-03-25 Casio Comput Co Ltd Date certification device, electronic seal device, electronic seal system and date certification program

Also Published As

Publication number Publication date
JP2006088589A (en) 2006-04-06

Similar Documents

Publication Publication Date Title
KR101002531B1 (en) Semiconductor storage device management system, semiconductor storage device, host unit, and semiconductor storage device management method
US7624298B2 (en) Memory card, data processor, memory card control method and memory card setting
KR100383404B1 (en) Semiconductor memory device having error detection and correction
EP2865524A1 (en) Method for recording chip usage state information, chip of imaging box and imaging box
US7707376B2 (en) Verifying the validity of data saved at power down by comparing the time of save to time of power-off upon start up
US5838591A (en) Temperature control apparatus for motor and information storing medium used therefor
JPWO2008069046A1 (en) Electronic device, battery, and battery remaining amount display method
JP4581598B2 (en) Electronic equipment with time management function
US6554392B2 (en) System and method for managing an auxiliary spittoon in a printer
US20190227919A1 (en) Electronic apparatus and recording medium suitable for management of nonvolatile memory
JP6732234B2 (en) How to reset chips, container of chips and consumables
CN111459726A (en) Chip and chip self-repairing method
US20160288492A1 (en) Controlling nozzles in a print head
KR20050086368A (en) Recording medium device
US9962940B2 (en) Managing a service cartridge
JP2019144816A (en) Information processing device and information processing method
US7398922B2 (en) POS terminal apparatus
JP4750393B2 (en) Image forming apparatus
US11190650B2 (en) Management apparatus that estimates load of the management apparatus
CN108292263B (en) Information processing apparatus and information processing method
US20030081236A1 (en) Adaptive preventive maintenance for hardcopy devices
JP6643931B2 (en) Oil management system
CN110307142B (en) Control method of air compressor and air compressor
EP2442184A1 (en) Method for determining a time-varying temperature of at least one temperature-critical component
US20180275582A1 (en) Image forming apparatus, replacement management system for the same, and program for image forming apparatus

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070725

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070725

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20070725

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100518

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100712

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100803

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100816

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees