JP2012045715A - Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method - Google Patents

Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method Download PDF

Info

Publication number
JP2012045715A
JP2012045715A JP2010186917A JP2010186917A JP2012045715A JP 2012045715 A JP2012045715 A JP 2012045715A JP 2010186917 A JP2010186917 A JP 2010186917A JP 2010186917 A JP2010186917 A JP 2010186917A JP 2012045715 A JP2012045715 A JP 2012045715A
Authority
JP
Japan
Prior art keywords
data
unit
printing
write
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP2010186917A
Other languages
Japanese (ja)
Inventor
Hayato Takahashi
隼人 高橋
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 JP2010186917A priority Critical patent/JP2012045715A/en
Publication of JP2012045715A publication Critical patent/JP2012045715A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data storage processing apparatus that can correctly write back update data of a second storage unit written by a print controller to a first storage unit, and does not reduce print throughput preferably, and to provide a printing apparatus, and a data storage processing method.SOLUTION: Data D written in a first storage part 131 of RAM 54 from a nonvolatile memory 55 when powered on is updated by write access of part of each of print system task parts 81-89. A write task part 91 copies the data D of the first memory 131 to the second memory 132. A write back task part 92 writes back the data D of the second memory 132 to the nonvolatile memory 55. Priorities of tasks set by a scheduler 72 of a real-time OS 71 are set in such that the priority of a writing task part 91 is higher than those of the printing system task sections 81-89, and the priority of a write back task part 90 is set lower than those of the print system task parts 81-89.

Description

本発明は、印刷装置の稼働中に更新される印刷関連情報を含むデータを不揮発性記憶手段に記憶させて保存する印刷装置におけるデータ記憶処理装置、印刷装置及びデータ記憶処理方法に関する。   The present invention relates to a data storage processing apparatus, a printing apparatus, and a data storage processing method in a printing apparatus that stores data including printing related information updated during operation of the printing apparatus in a nonvolatile storage unit.

例えば特許文献1、2には、インク残量の情報などのデータを不揮発性メモリーに記憶して保存する印刷装置が開示されている。
例えば特許文献1に記載の記録装置では、記録ヘッドに搭載されている不揮発性メモリーと、インクタンクに搭載されている不揮発性メモリーとを備え、記録ヘッドに搭載されている不揮発性メモリーに、インクタンクに搭載された不揮発性メモリーの内容をコピーする技術が開示されている。印刷終了時、回復動作完了時など、インクを消費する動作を行った場合に、インクタンクの不揮発性メモリーと記録ヘッドの不揮発性メモリーの内容を同時に書き換える。このため、データ書込み中のインクタンクの着脱などの不意な行為によりインクタンクの不揮発性メモリーへのデータの書き換えが失敗しても、記録ヘッドの不揮発性メモリーの内容でインクタンクの不揮発性メモリーの内容を復元することができる。
For example, Patent Documents 1 and 2 disclose printing apparatuses that store and store data such as ink remaining amount information in a nonvolatile memory.
For example, a recording apparatus described in Patent Document 1 includes a nonvolatile memory mounted on a recording head and a nonvolatile memory mounted on an ink tank. A technique for copying the contents of a non-volatile memory mounted on a tank is disclosed. When an operation that consumes ink is performed at the end of printing or when the recovery operation is completed, the contents of the non-volatile memory of the ink tank and the non-volatile memory of the recording head are simultaneously rewritten. For this reason, even if data rewriting to the ink tank non-volatile memory fails due to an unexpected action such as attachment / detachment of the ink tank during data writing, the contents of the non-volatile memory of the ink tank The contents can be restored.

また、特許文献2には、1ページの印刷が完了する度に、インク残量を演算し、これを不揮発性メモリー(EEPROM)に書き戻す印刷装置が開示されている。そして、パワーダウン命令が出力された場合には、不揮発性メモリーのインク残量のデータを、インクカートリッジの不揮発性の記憶素子に書き込むようになっていた。   Patent Document 2 discloses a printing apparatus that calculates the remaining ink amount and writes it back to a nonvolatile memory (EEPROM) each time printing of one page is completed. When a power-down command is output, the remaining amount of ink data in the nonvolatile memory is written in the nonvolatile storage element of the ink cartridge.

しかし、RAM又は不揮発性メモリーから他の不揮発性メモリー(不揮発性の記憶素子)へのデータの書き戻しは、電源オフ時に行っていたので、停電の発生時や電源プラグが抜けたときには、電源が遮断されるまでの短時間(例えば二次電池機能をもつコンデンサーの放電時間)のうちに書き戻し処理を完了しなければならなかった。この場合、データの書き戻しを最後まで行うことができず、不揮発性メモリーに一部旧いデータが混在するなどの問題が発生する虞があった。   However, since data was written back from RAM or non-volatile memory to another non-volatile memory (non-volatile storage element) when the power was turned off, the power was not supplied when a power failure occurred or the power plug was disconnected. The write-back process had to be completed within a short time before being shut off (for example, the discharge time of a capacitor having a secondary battery function). In this case, the data cannot be written back to the end, and there is a possibility that problems such as a part of old data being mixed in the nonvolatile memory may occur.

このようにEEPROMのような不揮発性メモリーでは、書込み回数に制限があるため、データの書戻しは、パワーダウン命令が出力されたとき、インクカートリッジ交換時などに制限されていたので、上記の問題が発生する。近年、書込み回数に実質的に制限がない程度に耐久性のあるFeRAMのような不揮発性メモリーも使用されるようになってきている。この場合、逐次更新されたインク残量などの更新データはRAMに記憶しておき、RAMの書込み頻度よりも少ない書込み頻度で不揮発性メモリーに書き込むことが望ましい。また、印刷装置などの電子機器では、例えばリアルタイムOSなどを搭載してマルチタスク処理を行う構成が採用されている。   As described above, in a nonvolatile memory such as an EEPROM, since the number of times of writing is limited, data write-back is limited when a power-down command is output or when an ink cartridge is replaced. Occurs. In recent years, non-volatile memories such as FeRAM, which are durable to such an extent that the number of writing operations is not substantially limited, have come to be used. In this case, it is desirable that update data such as the ink remaining amount that is sequentially updated is stored in the RAM and written into the non-volatile memory with a writing frequency lower than the writing frequency of the RAM. In addition, in an electronic device such as a printing apparatus, for example, a configuration in which a real-time OS or the like is installed to perform multitask processing is employed.

特開2005−193593号公報JP 2005-193593 A 特開2003−19818号公報JP 2003-18818 A

しかしながら、RAM又は不揮発性メモリーなどの一の記憶手段(第2の記憶手段)から不揮発性メモリーからなる他の記憶手段(第1の記憶手段)へデータを書き戻す場合、リアルタイムOSなどを使用してマルチタスク処理を行う構成において、次の問題が発生する虞があった。書戻しタスク部(書戻し手段)が第2の記憶手段から第1の記憶手段へのデータの書戻しを行っている書戻し途中に、書戻しタスク部よりも優先順位の高い他のタスク部(例えば印刷系タスク)が起動されて、第2の記憶手段の書戻し元データに更新データを上書きした場合、その後、起動された書戻しタスク部が、中断途中の続きからデータの書戻しを再開したときにその上書きされたデータを書き戻すと、書戻し中断前の前回の旧いデータと、書戻し再開後の今回の新しいデータとを繋げた間違ったデータを書き戻すことになってしまうという問題があった。   However, when data is written back from one storage means (second storage means) such as RAM or non-volatile memory to another storage means (first storage means) consisting of non-volatile memory, a real-time OS or the like is used. In the configuration for performing multitask processing, the following problems may occur. Another task unit having a higher priority than the write-back task unit during the write-back while the write-back task unit (write-back unit) is writing back data from the second storage unit to the first storage unit When (for example, a printing task) is activated and the update data is overwritten on the write-back source data of the second storage means, the activated write-back task unit then writes back the data from the middle of the interruption. If the overwritten data is written back when resuming, the previous data before the interruption of writing back and the new data after resuming writing will be written back. There was a problem.

不揮発性メモリー(第1の記憶手段)に間違ったデータが保存されたまま電源がオフされると、次回電源オン時に不揮発性メモリーから読み出された間違ったデータを基に取得される例えばインク残量の情報が実際のインク残量と異なっている場合が起こり得た。この場合、インク残量情報の上ではインクエンドになっていないにも拘らず、実際のインク残量が無くなって印刷途中でインク切れとなったり、実際にはインクが残っているにも拘らずインクエンドと判定されて印刷動作が強制的に停止されたりする不都合が発生するという問題がある。もちろん、不揮発性メモリー(第1の記憶手段)にはインク残量以外にも種々のデータが保存されるので、間違ったデータにより引き起こされる問題はデータ種ごとに異なる。   If the power is turned off while wrong data is stored in the non-volatile memory (first storage means), for example, the remaining ink is obtained based on the wrong data read from the non-volatile memory at the next power-on. There may have been a case where the amount information is different from the actual remaining ink amount. In this case, although the ink end is not in the ink remaining amount information, the actual ink remaining amount is exhausted, the ink runs out during printing, or the ink is actually remaining. There is a problem in that the printing operation is forcibly stopped due to the ink end being determined. Of course, since various data other than the remaining ink amount are stored in the nonvolatile memory (first storage means), problems caused by incorrect data differ depending on the data type.

また、書戻しタスク部の優先順位を印刷系のタスク部(印刷制御手段)より高くすれば、書戻し途中の割込みが発生しないので、正しいデータを書戻すことはできる。しかし、印刷中にも頻繁にデータの書戻し処理が行われると、印刷スループットが低下するという別の問題が発生してしまう。   Also, if the priority of the write-back task part is set higher than that of the print-related task part (printing control means), no interruption occurs during the write-back, so that correct data can be written back. However, if data write-back processing is frequently performed even during printing, another problem that print throughput is reduced occurs.

本発明は、上記課題に鑑みてなされたものであり、その目的の一つは、印刷制御手段が書き込んだ第2の記憶手段の更新データを第1の記憶手段に正しく書き戻すことができ、しかも印刷スループットをなるべく低下させずに済む印刷装置におけるデータ記憶処理装置、印刷装置及びデータ記憶処理方法を提供することにある。   The present invention has been made in view of the above problems, and one of its purposes is to correctly write back the update data of the second storage means written by the print control means to the first storage means, In addition, it is an object of the present invention to provide a data storage processing apparatus, a printing apparatus, and a data storage processing method in a printing apparatus that can reduce the printing throughput as much as possible.

上記目的の一つを達成するために、本発明の態様の一つは、印刷装置におけるデータ記憶処理装置であって、印刷手段に印刷媒体への記録動作を行わせる記録系処理を行う記録処理手段を含むとともに前記印刷手段による印刷動作によって更新される印刷関連情報を取得する印刷制御手段と、前記印刷関連情報を含むデータが記憶される不揮発性の第1の記憶手段と、前記第1の記憶手段のデータが書き込まれるとともに当該データの更新のために前記印刷制御手段による書込みアクセスが許可された第1記憶部と前記印刷制御手段による書込みアクセスが禁止された第2記憶部とを有する揮発性又は不揮発性の第2の記憶手段と、前記第1の記憶手段のデータを第1記憶部に書き込む書込み手段と、前記第1記憶部の前記データを前記第2記憶部にコピーするコピー手段と、前記第2記憶部のデータを前記第1の記憶手段に書き戻す書戻し手段と、前記印刷制御手段、前記書込み手段、前記コピー手段及び前記書戻し手段を、設定された起動優先順位に従って選択的に起動させる制御手段と、を備え、前記コピー手段が前記印刷制御手段及び前記書戻し手段よりも起動優先順位が高く設定され、かつ前記書戻し手段が前記印刷制御手段のうち少なくとも記録系処理手段よりも起動優先順位が低く設定されていることを要旨とする。   In order to achieve one of the above objects, one aspect of the present invention is a data storage processing apparatus in a printing apparatus, which performs a recording process for causing a printing unit to perform a recording operation on a printing medium. Printing control means for acquiring printing related information that is updated by a printing operation by the printing means, a nonvolatile first storage means for storing data including the printing related information, and the first Volatilization having a first storage unit in which data in the storage unit is written and write access by the print control unit is permitted to update the data, and a second storage unit in which write access by the print control unit is prohibited Or non-volatile second storage means, writing means for writing data of the first storage means to the first storage section, and the data of the first storage section to the second A copy unit for copying to a storage unit, a write-back unit for writing back data in the second storage unit to the first storage unit, the print control unit, the write unit, the copy unit, and the write-back unit. Control means for selectively starting according to the set start priority, the copy means is set to have a higher start priority than the print control means and the write back means, and the write back means is the print The gist of the invention is that the starting priority is set lower than at least the recording processing means in the control means.

この発明の一態様によれば、第1の記憶手段のデータは書込み手段により第2の記憶手段の第1記憶部に書き込まれる。印刷制御手段は印刷手段に記録動作を含む印刷動作を行わせ、この印刷動作によって更新された印刷関連情報を第2の記憶手段の第1記憶部に書き込むことによりデータを更新する。第1記憶部のデータはコピー手段により第2記憶部にコピーされる。このとき、コピー手段は、印刷制御手段及び書戻し手段よりも起動優先順位が高いので、コピーの途中でそのコピー元データが印刷制御手段によって書き替えられることがない。そして、書戻し手段が、第2の記憶部のデータを第1の記憶手段に書き戻す。このとき、印刷制御手段は第2記憶部への書込みアクセスが禁止されているので、この書戻し中において第2記憶部のデータが書き替えられることはない。この結果、第1の記憶手段へ正しいデータを書き戻すことができる。   According to one aspect of the present invention, the data in the first storage means is written into the first storage section of the second storage means by the writing means. The print control unit causes the printing unit to perform a printing operation including a recording operation, and updates the data by writing the printing related information updated by the printing operation in the first storage unit of the second storage unit. The data in the first storage unit is copied to the second storage unit by the copying means. At this time, since the copy unit has a higher activation priority than the print control unit and the write back unit, the copy source data is not rewritten by the print control unit in the middle of copying. Then, the write-back means writes the data in the second storage unit back to the first storage means. At this time, since the print control means is prohibited from writing access to the second storage unit, the data in the second storage unit is not rewritten during this write-back. As a result, correct data can be written back to the first storage means.

本発明の態様の一つであるデータ記憶処理装置では、前記印刷手段は、前記印刷媒体に記録を行う記録手段と前記印刷媒体を搬送する搬送手段とを含み、前記印刷制御手段は、前記記録手段の記録動作に用いられる記録データを生成するための画像処理を含む記録系処理を行う前記記録処理手段と、前記印刷手段に前記印刷媒体の搬送動作を行わせる搬送系制御を行う搬送制御手段とを備え、前記書戻し手段の起動優先順位は、前記搬送制御手段よりも高くかつ前記記録処理手段よりも低く設定されている。   In the data storage processing apparatus according to one aspect of the present invention, the printing unit includes a recording unit that records on the printing medium and a conveying unit that conveys the printing medium, and the printing control unit includes the recording unit The recording processing means for performing recording system processing including image processing for generating recording data used for the recording operation of the means, and the transport control means for performing transport system control for causing the printing means to perform the transport operation of the printing medium. The starting priority of the writing-back means is set higher than the transport control means and lower than the recording processing means.

この発明の一態様によれば、書戻し手段の起動優先順位は、搬送制御手段よりも高くかつ記録処理手段よりも低く設定されているので、記録処理手段による記録系処理の途中で書戻し手段が割り込むことがないうえ、印刷中において記録系処理の合間に搬送動作に優先して書戻しを行うことができる。この結果、さらなる効果として、記録系処理の停滞が抑えられることで印刷スループットの低下をなるべく回避しつつ、印刷中に記録の合間に書戻しを行うことでデータの書戻し頻度を高めることができる。   According to one aspect of the present invention, the activation priority order of the writing-back means is set higher than the conveyance control means and lower than the recording processing means, so the writing-back means during the recording system processing by the recording processing means. Is not interrupted, and write back can be performed prior to the transport operation during the printing process during printing. As a result, as a further effect, it is possible to increase the frequency of data rewriting by performing rewriting between recordings during printing while avoiding a decrease in printing throughput as much as possible by suppressing the stagnation of recording processing. .

本発明の態様の一つであるデータ記憶処理装置では、印刷装置の待機中に起動される起動優先順位に設定されている。
この発明の一態様によれば、書戻し手段は、印刷装置の待機中に起動されるので、印刷動作などが行われない待機状態になる度に、第2の記憶手段の第2記憶部のデータを第1の記憶手段に書き戻すことができる。このため、印刷動作中に書戻し手段による割り込みが発生せず印刷処理を円滑に進められるとともにデータの書戻し頻度を高めることができる。
In the data storage processing apparatus which is one aspect of the present invention, the activation priority is set to be activated while the printing apparatus is on standby.
According to one aspect of the present invention, since the writing-back unit is activated while the printing apparatus is on standby, the write-back unit is stored in the second storage unit of the second storage unit every time a standby state in which a printing operation or the like is not performed. Data can be written back to the first storage means. For this reason, the interruption by the writing back means does not occur during the printing operation, the printing process can be smoothly performed, and the data writing back frequency can be increased.

本発明の態様の一つであるデータ記憶処理装置では、前記コピー手段は、前記書戻し手段による前記データの書戻しが開始されると当該データの書戻しが完了するまで前記コピーを行わないように構成されている。   In the data storage processing apparatus according to one aspect of the present invention, when the write back of the data is started by the write back means, the copy means does not copy the data until the write back of the data is completed. It is configured.

この発明の一態様によれば、書戻し手段が第2記憶部のデータを第1の記憶手段に書き戻しし終わるまで、第2記憶部へのデータのコピーが行われることはない。このため、書戻し途中に書戻し元のデータが書き替えられることが回避されるので、正しいデータを第1の記憶手段に書き戻すことができる。   According to one aspect of the present invention, the data is not copied to the second storage unit until the write-back unit finishes writing the data in the second storage unit back to the first storage unit. For this reason, it is avoided that the data of the write-back source is rewritten during the write-back, so that correct data can be written back to the first storage means.

本発明の態様の一つであるデータ記憶処理装置では、印刷装置の電源遮断時に、前記書戻し手段が前記コピー手段より起動優先順位が低いという関係は保持しつつ、前記書戻し手段を前記印刷制御手段より高い起動優先順位に変更する優先順位変更手段を更に備えている。   In the data storage processing apparatus according to one aspect of the present invention, when the power of the printing apparatus is shut off, the write-back means is kept in the print-back means while maintaining the relationship that the write-back means has a lower start priority than the copy means. Priority change means for changing the priority to a higher activation priority than the control means is further provided.

この発明の一態様によれば、印刷装置の電源遮断時に、優先順位変更手段は、書戻し手段を、コピー手段よりも起動優先順位が低いという関係を保持したまま、印刷制御手段よりも高い優先順位に変更する。このため、印刷動作中に何らか原因(例えば停電や電源プラグ抜け等)により不意な電源遮断が発生したときには、印刷制御手段に優先してコピー手段又は書戻し手段が起動されることになる。電源遮断発生時にコピー手段が起動中でなければ、書戻し手段が起動されてデータの書戻しが行われる。一方、電源遮断発生時にコピー手段がコピー中であればそのコピーを終えた後に、書戻し手段が起動されてデータの書戻しが行われる。よって、電源遮断時にもデータの書戻しができ、しかも速やかかつ正しいデータを書戻すことができる。   According to one aspect of the present invention, when the power of the printing apparatus is turned off, the priority order changing unit retains the relationship that the activation priority is lower than that of the copy unit, while maintaining a higher priority than the print control unit. Change to rank. For this reason, when an unexpected power interruption occurs due to any cause (for example, power failure or power plug disconnection) during the printing operation, the copying unit or the writing back unit is activated in preference to the printing control unit. If the copy unit is not activated when the power is cut off, the write-back unit is activated and data is written back. On the other hand, if the copying means is copying at the time of power interruption, the writing-back means is activated after the copying is completed, and data is written back. Therefore, data can be written back even when the power is shut off, and correct data can be written back quickly.

本発明の態様の一つは、印刷手段と、前記印刷手段を制御する制御装置とを備えた印刷装置であって、前記制御装置は、上記発明の一態様のうちいずれか一つに係る前記データ記憶処理装置を備えている。この発明の一態様によれば、上記発明の幾つかの態様のいずれか一つに係る前記データ記憶処理装置を備えているので、前記データ記憶処理装置に係る発明の幾つかの態様のうちいずれか一つが有する効果を同様に得ることができる。   One aspect of the present invention is a printing apparatus that includes a printing unit and a control device that controls the printing unit, and the control device includes the control unit according to any one of the above aspects of the present invention. A data storage processing device is provided. According to one aspect of the present invention, since the data storage processing device according to any one of the several aspects of the invention is provided, any one of the several aspects of the invention according to the data storage processing device is provided. The effect which one has can be obtained similarly.

本発明の態様の一つは、印刷装置におけるデータ記憶処理方法であって、印刷装置には、印刷関連情報を含むデータが記憶される不揮発性の第1の記憶手段と、前記第1の記憶手段のデータが書き込まれるとともに当該データの更新のために印刷制御手段による書込みアクセスが許可された第1記憶部と、前記印刷制御手段による書込みアクセスが禁止された第2記憶部とを有する揮発性又は不揮発性の第2の記憶手段とが備えられ、前記第1の記憶手段のデータを前記第2の記憶手段の第1記憶部に書き込む書込み段階と、印刷手段に印刷媒体への記録動作を行わせるための記録系処理を行う記録系処理段階を備える印刷処理段階を含むとともに前記印刷手段による印刷動作によって更新される印刷関連情報を取得する印刷制御段階と、前記印刷制御段階で取得した印刷関連情報を前記第1記憶部に書き込むデータ更新段階と、前記第1記憶部のデータを前記第2記憶部にコピーするコピー段階と、前記第2記憶部のデータを前記第1の記憶手段に書き戻す書戻し段階と、を備え、前記コピー段階が前記データ更新段階よりも実行優先順位が高く設定され、前記書戻し段階は前記印刷制御段階のうち少なくとも前記記録系処理段階よりも実行優先順位が低く設定されていることを要旨とする。この発明の一態様によれば、上記発明の態様の一つに係る前記データ記憶処理装置と効果を同様に得ることができる。   One aspect of the present invention is a data storage processing method in a printing apparatus, wherein the printing apparatus stores non-volatile first storage means for storing data including printing related information, and the first storage. Volatile having a first storage unit in which data of the means is written and write access by the print control unit is permitted to update the data, and a second storage unit in which write access by the print control unit is prohibited Or a non-volatile second storage means, a writing stage for writing the data of the first storage means into the first storage unit of the second storage means, and a recording operation on the printing medium in the printing means. A print control stage including a print processing stage including a recording system processing stage for performing a recording system process for performing printing, and acquiring print-related information updated by a printing operation by the printing unit; A data update stage for writing the print-related information acquired in the print control stage to the first storage section, a copy stage for copying data in the first storage section to the second storage section, and data in the second storage section A write-back stage for writing back to the first storage means, wherein the copy stage has a higher execution priority than the data update stage, and the write-back stage is at least the recording system in the print control stage. The gist is that the execution priority is set lower than the processing stage. According to one aspect of the present invention, the same effect as that of the data storage processing device according to one of the above aspects of the present invention can be obtained.

第1実施形態における印刷システムの模式側面図。1 is a schematic side view of a printing system according to a first embodiment. 印刷システムの電気的構成を示すブロック図。1 is a block diagram showing an electrical configuration of a printing system. コントローラーの機能構成を説明するブロック図。The block diagram explaining the functional structure of a controller. コントローラーのハードウェア構成を示すブロック図。The block diagram which shows the hardware constitutions of a controller. (a)(b)タスク優先順位管理テーブルを示す模式図。(A) (b) A schematic diagram showing a task priority management table. データ記憶処理を説明するブロック図。The block diagram explaining a data storage process. 通常時におけるデータ記憶処理を説明するシーケンス図。The sequence diagram explaining the data storage process in the normal time. 電源オフ時におけるデータ記憶処理を説明するシーケンス図。The sequence diagram explaining the data storage process at the time of power-off. 第2実施形態における通常時のデータ記憶処理を説明するシーケンス図。The sequence diagram explaining the data storage process at the normal time in 2nd Embodiment.

(第1実施形態)
以下、本発明をラテラル方式のインクジェット式プリンターの印刷制御装置に具体化した第1実施形態を図1〜図8に従って説明する。
(First embodiment)
A first embodiment in which the present invention is embodied in a printing control apparatus for a lateral type ink jet printer will be described below with reference to FIGS.

図1は、ラテラル方式のインクジェット式プリンターを備えた印刷システムの模式図である。図1に示すように、印刷システム100は、画像データを生成する画像生成装置110と、画像生成装置110から受信した画像データを基に印刷データを生成するホスト装置120と、ホスト装置120から受信した印刷データに基づく画像を印刷する印刷装置の一例としてのラテラル方式のインクジェット式プリンター(以下、単に「プリンター11」と称す)とを備えている。   FIG. 1 is a schematic diagram of a printing system including a lateral type ink jet printer. As illustrated in FIG. 1, the printing system 100 includes an image generation device 110 that generates image data, a host device 120 that generates print data based on the image data received from the image generation device 110, and a reception from the host device 120. A lateral ink jet printer (hereinafter simply referred to as “printer 11”) as an example of a printing apparatus that prints an image based on the print data.

画像生成装置110は、例えばパーソナルコンピューターにより構成され、その本体111内のCPUが画像作成用ソフトウェアを実行することで構築される画像生成部112を備える。ユーザーは、画像生成部112を起動して入力装置113の操作でモニター114上で画像を作成し、入力装置113を操作して画像の印刷を指示する。すると、その画像に係る画像データが所定の通信インターフェイスを介してホスト装置120へ送信される。   The image generation device 110 includes, for example, a personal computer, and includes an image generation unit 112 that is constructed by a CPU in the main body 111 executing image creation software. The user activates the image generation unit 112, creates an image on the monitor 114 by operating the input device 113, and operates the input device 113 to instruct printing of the image. Then, image data related to the image is transmitted to the host device 120 via a predetermined communication interface.

ホスト装置120は、例えばパーソナルコンピューターにより構成され、その本体121内のCPUがプリンタードライバー用ソフトウェアを実行することで構築されるプリンタードライバー122を備える。プリンタードライバー122は、画像生成装置110から受信した画像データを基に印刷データを生成し、プリンター11に設けられた制御装置Cへ送信する。制御装置Cは、プリンタードライバー122から受信した印刷データに基づいてプリンター11を制御し、プリンター11に印刷データに基づく画像を印刷させる。なお、モニター123には、プリンター11に制御用設定値を入力設定するためのメニュー画面や印刷対象の画像等が表示される。   The host device 120 is configured by, for example, a personal computer, and includes a printer driver 122 that is constructed by a CPU in the main body 121 executing printer driver software. The printer driver 122 generates print data based on the image data received from the image generation device 110 and transmits the print data to the control device C provided in the printer 11. The control device C controls the printer 11 based on the print data received from the printer driver 122 and causes the printer 11 to print an image based on the print data. The monitor 123 displays a menu screen for inputting and setting control setting values to the printer 11, an image to be printed, and the like.

次に、図1に示すプリンター11の構成について説明する。なお、以下における明細書中の説明において、「左右方向」、「上下方向」をいう場合は、図1に矢印で示した方向を基準として示すものとする。また、図1において手前側を前側、奥側を後側とする。   Next, the configuration of the printer 11 shown in FIG. 1 will be described. In the following description in the specification, the terms “left-right direction” and “vertical direction” refer to the direction indicated by the arrow in FIG. In FIG. 1, the front side is the front side, and the back side is the rear side.

図1に示すように、プリンター11は、直方体状の本体ケース12を備える。本体ケース12内には、長尺状のシート13を繰り出す繰出し部14と、そのシート13にインクの噴射により印刷を施す印刷室15と、その印刷によりインクが付着したシート13に乾燥処理を施す乾燥装置16と、乾燥処理が施されたシート13を巻き取る巻取り部17とが設けられている。   As shown in FIG. 1, the printer 11 includes a rectangular parallelepiped main body case 12. In the main body case 12, a feeding unit 14 that feeds out the long sheet 13, a printing chamber 15 that prints the sheet 13 by ejecting ink, and a drying process that is performed on the sheet 13 to which ink has adhered by printing. A drying device 16 and a winding unit 17 that winds the sheet 13 that has been dried are provided.

すなわち、本体ケース12内におけるやや上寄りの位置には、本体ケース12内を上下に区画する平板状の基台18が設けられており、この基台18よりも上側の領域が矩形板状の支持部材19を基台18上に支持してなる印刷室15となっている。そして、基台18よりも下側の領域において、シート13の搬送方向で上流側となる左側寄りの位置に、繰出し部14が配設されると共に、下流側となる右側寄りの位置に、乾燥装置16及び巻取り部17が配設されている。   That is, a flat base 18 that vertically divides the inside of the main body case 12 is provided at a position slightly above in the main body case 12, and a region above the base 18 has a rectangular plate shape. The printing chamber 15 is formed by supporting the support member 19 on the base 18. In the region below the base 18, the feeding unit 14 is disposed at a position on the left side on the upstream side in the conveyance direction of the sheet 13, and is dried at a position on the right side on the downstream side. A device 16 and a winding part 17 are arranged.

図1に示すように、繰出し部14には、前後方向に延びる巻き軸20が回転自在に設けられ、その巻き軸20に対してシート13が予めロール状に巻かれた状態で一体回転可能に支持されている。すなわち、シート13は、巻き軸20が回転することにより、繰出し部14から繰り出されるようになっている。また、繰出し部14から繰り出されたシート13は、巻き軸20の右側に位置する第1ローラー21に巻き掛けられて上方へ案内される。   As shown in FIG. 1, a winding shaft 20 extending in the front-rear direction is rotatably provided in the feeding portion 14, and can be integrally rotated with the sheet 13 wound in a roll shape on the winding shaft 20 in advance. It is supported. That is, the sheet 13 is fed out from the feeding unit 14 as the winding shaft 20 rotates. Further, the sheet 13 fed out from the feeding unit 14 is wound around the first roller 21 located on the right side of the winding shaft 20 and guided upward.

一方、支持部材19の左側であって下側の第1ローラー21と上下方向で対応する位置には、第2ローラー22が下側の第1ローラー21と平行な状態で設けられている。そして、第1ローラー21によって搬送方向が鉛直上方向に変換されたシート13は、この第2ローラー22に左側下方から巻き掛けられることにより、その搬送方向が水平右方向に変換されて支持部材19の上面に摺接するようになっている。   On the other hand, a second roller 22 is provided in parallel with the lower first roller 21 at a position corresponding to the lower first roller 21 in the vertical direction on the left side of the support member 19. And the sheet | seat 13 by which the conveyance direction was converted into the vertically upward direction by the 1st roller 21 is wound around this 2nd roller 22 from the lower left side, The conveyance direction is converted into the horizontal right direction, and the support member 19 It is designed to come into sliding contact with the upper surface.

また、支持部材19の右側には、左側の第2ローラー22と支持部材19を挟んで対向する第3ローラー23が第2ローラー22と平行な状態で設けられている。なお、第2ローラー22及び第3ローラー23は各々の周面の頂部が支持部材19の上面と同一高さとなるように位置調整されている。   Further, on the right side of the support member 19, a third roller 23 facing the second roller 22 on the left side and the support member 19 is provided in parallel with the second roller 22. The positions of the second roller 22 and the third roller 23 are adjusted so that the tops of the respective peripheral surfaces are at the same height as the upper surface of the support member 19.

印刷室15内で左側の第2ローラー22により搬送方向が水平右方向に変換されたシート13は、支持部材19の上面に摺接しつつ下流側となる右側に搬送された後、第3ローラー23に右側上方から巻き掛けられることにより搬送方向が鉛直下方向に変換されて基台18よりも下側の乾燥装置16に向けて搬送されるようになっている。そして、乾燥装置16内を通過することにより乾燥処理が施されたシート13は、更に鉛直下方向に搬送された後、第4ローラー24に巻き掛けられて搬送方向を水平右方向に変換され、この第4ローラー24の右側に配設された巻取り部17の巻取り軸25が搬送モーター61(図2参照)の駆動力に基づいて回転することによりロール状に巻き取られる。   The sheet 13 whose conveyance direction is changed to the horizontal right direction by the left second roller 22 in the printing chamber 15 is conveyed to the right side which is the downstream side while being in sliding contact with the upper surface of the support member 19, and then the third roller 23. By being wound from above the right side, the conveying direction is changed to a vertically downward direction and conveyed toward the drying device 16 below the base 18. The sheet 13 that has been dried by passing through the drying device 16 is further transported vertically downward, and is then wound around the fourth roller 24 to change the transport direction to the horizontal right direction. The winding shaft 25 of the winding unit 17 disposed on the right side of the fourth roller 24 rotates based on the driving force of the transport motor 61 (see FIG. 2) to be wound into a roll.

図1に示すように、印刷室15内における支持部材19の前後両側には、左右方向に延びるガイドレール26(図1では2点鎖線で示す)が対をなすように設けられている。ガイドレール26の上面は支持部材19の上面よりも高くなっており、両ガイドレール26の上面には、矩形状のキャリッジ27が第1キャリッジモーター62(図2参照)の駆動に基づき両ガイドレール26に沿って図1に示す主走査方向X(図1では左右方向)への往復移動が可能な状態で支持されている。また、キャリッジ27は第2キャリッジモーター63(図2参照)の駆動に基づき副走査方向(図1では紙面と直交する前後方向)への移動も可能となっている。そして、このキャリッジ27の下面側には支持板28を介して記録手段の一例である複数の記録ヘッド29が支持されている。   As shown in FIG. 1, guide rails 26 (indicated by a two-dot chain line in FIG. 1) extending in the left-right direction are provided on both the front and rear sides of the support member 19 in the printing chamber 15 so as to form a pair. The upper surface of the guide rail 26 is higher than the upper surface of the support member 19, and a rectangular carriage 27 is placed on the upper surfaces of both guide rails 26 based on the driving of the first carriage motor 62 (see FIG. 2). 26 is supported in a state in which it can reciprocate in the main scanning direction X (left-right direction in FIG. 1) shown in FIG. Further, the carriage 27 can be moved in the sub-scanning direction (the front-rear direction perpendicular to the paper surface in FIG. 1) based on the driving of the second carriage motor 63 (see FIG. 2). A plurality of recording heads 29 as an example of recording means are supported on the lower surface side of the carriage 27 via a support plate 28.

支持部材19の左端から右端までの一定範囲が印刷領域とされており、この印刷領域単位でシート13は間欠的に搬送されるようになっている。そして、支持部材19上に停止したシート13に対してキャリッジ27の往復移動に伴い記録ヘッド29からインクが噴射されることでシート13に印刷が施される。   A fixed range from the left end to the right end of the support member 19 is a printing area, and the sheet 13 is intermittently conveyed in units of the printing area. Then, printing is performed on the sheet 13 by ejecting ink from the recording head 29 as the carriage 27 reciprocates on the sheet 13 stopped on the support member 19.

なお、印刷時には、支持部材19の下側に設けられた吸引装置30が駆動され、支持部材19の上面に開口する多数の吸引孔に及ぶ負圧による吸引力により、シート13は支持部材19の上面に吸着される。そして、シート13への1回分の印刷が終わると、吸引装置30の負圧が解除され、シート13の搬送が行われるようになっている。   At the time of printing, the suction device 30 provided on the lower side of the support member 19 is driven, and the sheet 13 is moved by the suction force due to negative pressure that reaches a large number of suction holes opened on the upper surface of the support member 19. Adsorbed on the top surface. When the printing on the sheet 13 is completed once, the negative pressure of the suction device 30 is released, and the sheet 13 is conveyed.

また、印刷室15内において、第3ローラー23よりも右側となる非印刷領域には、非印刷時に記録ヘッド29のメンテナンスを行うためのメンテナンス装置32が設けられている。メンテナンス装置32は、記録ヘッド29毎にキャップ33と昇降装置34とを備える。各キャップ33は昇降装置34の駆動により、記録ヘッド29のノズル形成面に当接するキャッピング位置と、ノズル形成面から離間する退避位置との間を移動する。   In the printing chamber 15, a maintenance device 32 for performing maintenance of the recording head 29 at the time of non-printing is provided in a non-printing region on the right side of the third roller 23. The maintenance device 32 includes a cap 33 and a lifting device 34 for each recording head 29. Each cap 33 moves between a capping position that contacts the nozzle formation surface of the recording head 29 and a retreat position that is separated from the nozzle formation surface by driving the lifting device 34.

また、図1に示すように、本体ケース12内には、異なる色のインクをそれぞれ収容した複数(例えば8個)のインクカートリッジIC1〜IC8が着脱可能に装着されている。そして、各インクカートリッジIC1〜IC8はインク供給路等(図示省略)を通じて記録ヘッド29に接続され、各記録ヘッド29は各インクカートリッジIC1〜IC8から供給されたインクを噴射する。このため、本例のプリンター11では、8色のインクを用いたカラー印刷が可能となっている。なお、本体ケース12においてインクカートリッジIC1〜IC8の配置位置と対応する箇所には開閉式のカバー38が設けられている。インクカートリッジIC1〜IC8の交換作業はカバー38を開けて行われる。インクカートリッジ交換等を行う際のカバー38の開操作は、制御装置Cにより検出されるようになっている。   As shown in FIG. 1, a plurality (e.g., eight) of ink cartridges IC <b> 1 to IC <b> 8 respectively containing different color inks are detachably mounted in the main body case 12. Each ink cartridge IC1 to IC8 is connected to the recording head 29 through an ink supply path or the like (not shown), and each recording head 29 ejects ink supplied from each ink cartridge IC1 to IC8. For this reason, in the printer 11 of this example, color printing using eight colors of ink is possible. In the main body case 12, an openable / closable cover 38 is provided at a position corresponding to the arrangement position of the ink cartridges IC1 to IC8. The replacement operation of the ink cartridges IC1 to IC8 is performed with the cover 38 opened. The opening operation of the cover 38 when the ink cartridge is exchanged is detected by the control device C.

8個のインクカートリッジIC1〜IC8は、例えば黒(K)、シアン(C)、マゼンタ(M)、イエロー(Y)等の各インクを収容する。なお、保湿液を収容する保湿液カートリッジが装填される構成も採用できる。もちろん、インクの種類(色数)は適宜設定でき、黒インクだけでモノクロ印刷する構成や、インクを2色としたり、8色以外で3色以上の任意の色数としたりした構成も採用できる。   The eight ink cartridges IC1 to IC8 contain inks such as black (K), cyan (C), magenta (M), and yellow (Y). A configuration in which a moisturizing liquid cartridge that stores the moisturizing liquid is loaded can also be employed. Of course, the type (number of colors) of the ink can be set as appropriate, and a configuration in which monochrome printing is performed using only black ink, or a configuration in which the ink is set to two colors, or an arbitrary number of colors other than eight colors such as three or more can be employed. .

各インクカートリッジIC1〜IC8はカートリッジホルダー(図示省略)を介して制御装置Cと電気的に接続されており、各インクカートリッジIC1〜IC8に実装された不揮発性の記憶素子47(図2参照)には、対応する色のインク残量情報が書き込まれるようになっている。また、本実施形態では、制御装置Cには、無停電電源48が接続されており、プリンター11の各種駆動系及び表示系への電力供給は、無停電電源48から制御装置Cを介して行われるようになっている。なお、無停電電源48に替えて、無停電機能を備えない通常の電源を用いてもよい。   Each of the ink cartridges IC1 to IC8 is electrically connected to the control device C via a cartridge holder (not shown), and is connected to a non-volatile storage element 47 (see FIG. 2) mounted on each of the ink cartridges IC1 to IC8. The ink remaining amount information of the corresponding color is written. In the present embodiment, an uninterruptible power supply 48 is connected to the control device C, and power supply to various drive systems and display systems of the printer 11 is performed from the uninterruptible power supply 48 via the control device C. It has come to be. Instead of the uninterruptible power supply 48, a normal power supply without an uninterruptible function may be used.

図2は、印刷システム100の電気構成を示すブロック図である。図2に示すホスト装置120内のプリンタードライバー122は、モニター123に表示させるべきメニュー画面及び印刷条件設定画面などの各種画面の表示制御を行うと共に、各画面の表示状態において操作部124から入力した操作信号に応じた所定処理を行うホスト制御部125を備えている。ホスト制御部125は、プリンタードライバー122を統括的に制御する。また、プリンタードライバー122には、上位の画像生成装置110から受信した画像データに対して印刷データの生成に必要な画像処理を施す、解像度変換部126、色変換部127及びハーフトーン処理部128を備えている。解像度変換部126は、画像データを表示解像度から印刷解像度へ変換する解像度変換処理を行う。色変換部127は、表示用の表色系(例えばRGB表色系やYCbCr表色系)から印刷用の表色系(例えばCMYK表色系)に色変換する色変換処理を行う。さらにハーフトーン処理部128は、表示用の高階調(例えば256階調)の画素データを印刷用の低階調(例えば2階調又は4階調)の画素データに階調変換するハーフトーン処理などを行う。そして、プリンタードライバー122は、これらの画像処理を施した結果生成された印刷画像データに、印刷制御コード(例えばESC/P)で記述されたコマンドを付して印刷ジョブデータ(以下、単に「印刷データPD」と称す)を生成する。   FIG. 2 is a block diagram illustrating an electrical configuration of the printing system 100. The printer driver 122 in the host device 120 shown in FIG. 2 performs display control of various screens such as a menu screen and a print condition setting screen to be displayed on the monitor 123, and inputs from the operation unit 124 in the display state of each screen. A host control unit 125 that performs predetermined processing according to the operation signal is provided. The host control unit 125 controls the printer driver 122 as a whole. In addition, the printer driver 122 includes a resolution conversion unit 126, a color conversion unit 127, and a halftone processing unit 128 that perform image processing necessary for generating print data on the image data received from the higher-level image generation apparatus 110. I have. The resolution conversion unit 126 performs resolution conversion processing for converting image data from display resolution to print resolution. The color conversion unit 127 performs color conversion processing for color conversion from a display color system (for example, RGB color system or YCbCr color system) to a print color system (for example, CMYK color system). Furthermore, the halftone processing unit 128 converts halftone processing for converting high gradation (for example, 256 gradation) pixel data for display into low gradation (for example, two or four gradations) pixel data for printing. And so on. Then, the printer driver 122 attaches a command described by a print control code (for example, ESC / P) to the print image data generated as a result of performing these image processes, and print job data (hereinafter simply referred to as “print”). Data PD) ”.

ホスト装置120はデータの転送制御を行う転送制御部129を備える。転送制御部129は、プリンタードライバー122が生成した印刷データPDを所定容量のパケットデータずつプリンター11へ順次シリアル転送する。   The host device 120 includes a transfer control unit 129 that performs data transfer control. The transfer control unit 129 serially transfers the print data PD generated by the printer driver 122 to the printer 11 sequentially by a predetermined amount of packet data.

一方、プリンター11側の制御装置Cは、ホスト装置120から印刷データPDを受信して記録系の制御をはじめとする各種制御を行うコントローラー40を備えている。コントローラー40は、複数個(本例では15個)の記録ヘッド29を制御する。   On the other hand, the control device C on the printer 11 side includes a controller 40 that receives the print data PD from the host device 120 and performs various controls including control of the recording system. The controller 40 controls a plurality (15 in this example) of recording heads 29.

図2に示すように、本実施形態のホスト装置120は、シリアル通信ポートU1を備えている。また、コントローラー40もシリアル通信ポートU2を備えている。そして、転送制御部129は、シリアル通信ポートU1,U2間の通信を介してコントローラー40へ対応する印刷データPDをシリアル転送するようになっている。   As shown in FIG. 2, the host device 120 of this embodiment includes a serial communication port U1. The controller 40 also has a serial communication port U2. The transfer control unit 129 serially transfers the print data PD corresponding to the controller 40 via communication between the serial communication ports U1 and U2.

図2に示すように、コントローラー40には、複数個(N個(本例では8個))のヘッド制御ユニット45(以下、単に「HCU45」という)が接続され、各HCU45にはそれ一個につき記録ヘッド29が複数個(M個(本例では2個))ずつ接続されている。   As shown in FIG. 2, a plurality (N (eight in this example)) of head control units 45 (hereinafter simply referred to as “HCU45”) are connected to the controller 40, and each HCU 45 has one for each. A plurality of (M (two in this example)) recording heads 29 are connected.

また、コントローラー40に接続された各通信回路46には、8個のインクカートリッジIC1〜IC8に実装された8個の記憶素子47がそれぞれ接続されている。コントローラー40は8個のインクカートリッジIC1〜IC4に実装された記憶素子47と通信可能である。記憶素子47は不揮発性の記憶素子により構成されている。記憶素子47には、対応するインクカートリッジICのインク残量情報、インク色、使用期限、メンテナンス情報、品番などの各種のインク関連情報が記憶される。なお、インクカートリッジIC(図1参照)がカートリッジホルダーに装着された状態で、記憶素子47とカートリッジホルダー側の端子部とが電気的に接続されることにより、通信回路46は記憶素子47に対して読み取り及び書き込みのための通信が可能となる。   Further, eight storage elements 47 mounted on eight ink cartridges IC1 to IC8 are connected to each communication circuit 46 connected to the controller 40, respectively. The controller 40 can communicate with the storage elements 47 mounted on the eight ink cartridges IC1 to IC4. The storage element 47 is configured by a nonvolatile storage element. The storage element 47 stores various ink-related information such as ink remaining amount information, ink color, expiration date, maintenance information, and product number of the corresponding ink cartridge IC. In the state where the ink cartridge IC (see FIG. 1) is mounted in the cartridge holder, the communication circuit 46 is connected to the storage element 47 by electrically connecting the storage element 47 and the terminal portion on the cartridge holder side. Thus, communication for reading and writing becomes possible.

コントローラー40は、8個のインクカートリッジIC1〜IC8のインク残量等を管理する。コントローラー40は、通信回路46を介してインクカートリッジIC1〜IC8の各記憶素子47と通信してインク関連情報の読出し及び書込みが可能となっている。   The controller 40 manages the remaining amount of ink of the eight ink cartridges IC1 to IC8. The controller 40 can read and write ink related information by communicating with the storage elements 47 of the ink cartridges IC1 to IC8 via the communication circuit 46.

さらに、制御装置Cは、コントローラー40の出力側(制御下流側)に通信線SL1を通じて接続されたメカコントローラー43を備えている。メカコントローラー43は主に搬送系及びキャリッジ駆動系を含むメカニカル機構44の制御を司る。コントローラー40は、自身が受け持つ複数個(例えば15個)の記録ヘッド29の印刷準備ができた段階(つまりインク滴噴射制御に使用する印刷画像データが準備された段階)でキャリッジ起動コマンドをメカコントローラー43へ送信するようになっている。これにより、コントローラー40のうち一方の印刷準備完了前にキャリッジ27が起動されてしまうことに起因し、記録ヘッド29が噴射位置に到達したにも拘わらずインク滴が噴射されない噴射ミスが防止される。   Furthermore, the control device C includes a mechanical controller 43 connected to the output side (control downstream side) of the controller 40 through the communication line SL1. The mechanical controller 43 mainly controls the mechanical mechanism 44 including a transport system and a carriage drive system. The controller 40 sends a carriage start command to the mechanical controller when a plurality of (for example, fifteen) recording heads 29 that it is responsible for are ready for printing (ie, when print image data used for ink droplet ejection control is prepared). 43 is transmitted. This prevents an ejection error in which ink droplets are not ejected even though the recording head 29 has reached the ejection position due to the carriage 27 being activated before one of the controllers 40 is ready for printing. .

また、コントローラー40は、自身が受け持つ複数個の記録ヘッド29の印刷を完了した段階で、シート13の搬送を指令する搬送コマンドをメカコントローラー43へ送信する。これにより、印刷完了前の段階でシート13が搬送開始(又は支持部材19上のシートの吸着解除)されてしまうことに起因し、記録ヘッド29から噴射されたインク滴のシート13に対する着弾位置ずれ(印刷位置ずれ)が防止される。   Further, the controller 40 transmits a conveyance command for instructing conveyance of the sheet 13 to the mechanical controller 43 at the stage where the printing of the plurality of recording heads 29 that the controller 40 has completed is completed. Thereby, the landing position shift of the ink droplets ejected from the recording head 29 with respect to the sheet 13 is caused by the start of conveyance of the sheet 13 (or the suction release of the sheet on the support member 19) before the completion of printing. (Print position deviation) is prevented.

図2に示すように、コントローラー40にはリニアエンコーダー50が接続されている。このリニアエンコーダー50はキャリッジ27の移動経路に沿って設けられ、コントローラー40には、このリニアエンコーダー50からキャリッジ27の移動距離に比例する数のパルスをもつ検出信号(エンコーダーパルス信号)が入力される。コントローラー40に入力されたエンコーダーパルス信号は、キャリッジ27の主走査方向における位置(キャリッジ位置)及びキャリッジ移動方向の取得や、記録ヘッド29へ出力される噴射タイミング信号の生成に用いられる。   As shown in FIG. 2, a linear encoder 50 is connected to the controller 40. The linear encoder 50 is provided along the movement path of the carriage 27, and a detection signal (encoder pulse signal) having a number of pulses proportional to the movement distance of the carriage 27 is input from the linear encoder 50 to the controller 40. . The encoder pulse signal input to the controller 40 is used to acquire the position (carriage position) and carriage movement direction of the carriage 27 in the main scanning direction and to generate an ejection timing signal output to the recording head 29.

図2に示すように、コントローラー40は、CPU51(中央処理装置)、ASIC52(Application Specific IC(特定用途向け集積回路))、ROM53、第2の記憶手段の一例としてのRAM54、及び第1の記憶手段の一例としての不揮発性メモリー55を備えている。CPU51は、ROM53に記憶されたプログラムを実行することにより、印刷制御に必要な各種タスクを実行する。また、ASIC52は、印刷データPDの処理など記録系のデータ処理などを行う。もちろん、各タスクを含むプログラムは不揮発性メモリー55に記憶されてもよい。   As shown in FIG. 2, the controller 40 includes a CPU 51 (central processing unit), an ASIC 52 (Application Specific IC (integrated circuit for specific application)), a ROM 53, a RAM 54 as an example of second storage means, and a first storage. A nonvolatile memory 55 is provided as an example of the means. The CPU 51 executes various tasks necessary for print control by executing a program stored in the ROM 53. The ASIC 52 also performs recording data processing such as processing of print data PD. Of course, the program including each task may be stored in the nonvolatile memory 55.

本実施形態では、RAM54にはDRAM(Dynamic Random Access Memory)が用いられている。DRAMとしては、SDRAM(Synchronous DRAM)、DDR SDRAM(Double-Data-Rate SDRAM)、DDR2 SDRAM、DDR3 SDRAMなどが用いられているが、その他、EDO DRAM(Extended Data Out DRAM)、バーストEDO DRAMなどを用いることもできる。もちろん、RAM54には、SRAM(Static Random Access Memory)を用いてもよい。   In the present embodiment, a DRAM (Dynamic Random Access Memory) is used for the RAM 54. As DRAM, SDRAM (Synchronous DRAM), DDR SDRAM (Double-Data-Rate SDRAM), DDR2 SDRAM, DDR3 SDRAM, etc. are used, but also EDO DRAM (Extended Data Out DRAM), burst EDO DRAM, etc. It can also be used. Of course, the RAM 54 may be an SRAM (Static Random Access Memory).

また、本実施形態では、不揮発性メモリー55として、例えばFeRAM(強誘電体メモリー)が用いられているが、MRAM(Magnetoresistive RAM)、PRAM(Phase change RAM)、ReRAM(Resistive RAM)でもよい。もちろん、書込み可能回数が比較的多ければ、EEPROMやフラッシュメモリーでもよい。   In this embodiment, for example, FeRAM (ferroelectric memory) is used as the nonvolatile memory 55, but MRAM (Magnetoresistive RAM), PRAM (Phase change RAM), and ReRAM (Resistive RAM) may be used. Of course, if the number of writable times is relatively large, an EEPROM or a flash memory may be used.

一方、メカコントローラー43には、モーター駆動回路60を介してメカニカル機構44を構成する搬送モーター61、第1キャリッジモーター(以下、「第1CRモーター62」ともいう)及び第2キャリッジモーター(以下、「第2CRモーター63」ともいう)がそれぞれ接続されている。また、メカコントローラー43には、吸引装置30及びメンテナンス装置32がそれぞれ接続されている。なお、本実施形態では、記録ヘッド29及びメカニカル機構44により印刷手段の一例が構成される。このため、第1CRモーター62及び第2CRモーター63も、印刷手段の構成要素の一例を構成している。また、メカニカル機構44のうち搬送モーター61と各ローラー21〜24と軸20,25等により、印刷手段のうちの搬送手段の一例が構成される。   On the other hand, the mechanical controller 43 includes a transport motor 61, a first carriage motor (hereinafter also referred to as “first CR motor 62”), and a second carriage motor (hereinafter “ The second CR motor 63 "is also connected. The mechanical controller 43 is connected to the suction device 30 and the maintenance device 32. In the present embodiment, the recording head 29 and the mechanical mechanism 44 constitute an example of a printing unit. For this reason, the 1st CR motor 62 and the 2nd CR motor 63 also constitute an example of the component of printing means. In addition, the mechanical motor 44, the rollers 21 to 24, the shafts 20, 25, and the like in the mechanical mechanism 44 constitute an example of a transport unit of the printing unit.

また、メカコントローラー43には、入力系として、電源スイッチ65、エンコーダー66及び温度センサー67がそれぞれ接続されている。電源スイッチ65がオン操作されたときのオン信号及びオフ操作されたときのオフ信号はメカコントローラー43を介してコントローラー40へ送信される。コントローラー40及びメカコントローラー43には、無停電電源48が接続されており、コントローラー40は電源スイッチ65のオン信号の入力に基づき無停電電源48の電力供給を指示し、電源スイッチ65のオフ信号の入力に基づき無停電電源48に電力供給の停止を指示する。   The mechanical controller 43 is connected with a power switch 65, an encoder 66, and a temperature sensor 67 as input systems. An on signal when the power switch 65 is turned on and an off signal when the power switch 65 is turned off are transmitted to the controller 40 via the mechanical controller 43. An uninterruptible power supply 48 is connected to the controller 40 and the mechanical controller 43. The controller 40 instructs the power supply of the uninterruptible power supply 48 based on the input of the ON signal of the power switch 65, and the OFF signal of the power switch 65 is Based on the input, the uninterruptible power supply 48 is instructed to stop power supply.

また、メカコントローラー43は、コントローラー40から通信線SL1を通じて受信した各種コマンドに従って、各モーター61〜63、吸引装置30及びメンテナンス装置32を駆動制御する。エンコーダー66は、搬送モーター61を動力源とする搬送駆動系の回転軸の回転を検出するものであり、メカコントローラー43は、エンコーダー66の検出信号(エンコーダーパルス信号)を用いてシート13の搬送量及び搬送位置を検出する。   The mechanical controller 43 drives and controls the motors 61 to 63, the suction device 30, and the maintenance device 32 in accordance with various commands received from the controller 40 through the communication line SL1. The encoder 66 detects the rotation of the rotation shaft of the conveyance drive system using the conveyance motor 61 as a power source, and the mechanical controller 43 uses the detection signal (encoder pulse signal) of the encoder 66 to convey the sheet 13. And the transport position is detected.

また、温度センサー67は、シート13の温度を検出するためのものであり、メカコントローラー43には温度センサー67からシート温度に応じた温度検出信号が入力される。このシート温度はプリンター11が動作するのに必要な調整値を求めるために使用される。   The temperature sensor 67 is for detecting the temperature of the sheet 13, and a temperature detection signal corresponding to the sheet temperature is input from the temperature sensor 67 to the mechanical controller 43. This sheet temperature is used to obtain an adjustment value necessary for the printer 11 to operate.

制御装置Cは、印刷時に、搬送モーター61を駆動してシート13の次の被印刷領域を支持部材19上に配置すべくシート13を搬送する搬送動作と、シート搬送後に次の被印刷領域を支持部材19に吸着させる吸着動作と、記録ヘッド29によるシート13への印刷動作と、1回分(1頁分)の印刷終了後にシート13の吸着を解除する吸着解除動作とを行う。このとき、印刷動作(記録動作)は、キャリッジ27の主走査方向Xへの移動中に記録ヘッド29からインク滴を噴射することにより行われる。この印刷動作は、第1CRモーター62の駆動によるキャリッジ27の主走査方向Xへの移動(1パス動作)と、1パス終了毎に行われる第2CRモーター63の駆動によるキャリッジ27の副走査方向Yへの移動とを、所定回数繰り返すことにより行われる。   At the time of printing, the control device C drives the transport motor 61 to transport the sheet 13 so as to place the next print area of the sheet 13 on the support member 19, and the next print area after the sheet is transported. An adsorption operation for adsorbing to the support member 19, a printing operation on the sheet 13 by the recording head 29, and an adsorption releasing operation for releasing the adsorption of the sheet 13 after completion of printing for one time (one page) are performed. At this time, the printing operation (recording operation) is performed by ejecting ink droplets from the recording head 29 during the movement of the carriage 27 in the main scanning direction X. This printing operation is performed by moving the carriage 27 in the main scanning direction X by driving the first CR motor 62 (one-pass operation) and in the sub-scanning direction Y of the carriage 27 by driving the second CR motor 63 performed at the end of each pass. The movement to is performed by repeating a predetermined number of times.

図4は、コントローラー40内のコンピューターに係る部分の電気的構成を示すブロック図である。図4に示すように、CPU51、ASIC52、ROM53、RAM54、及び不揮発性メモリー55は、バス56に接続されており、CPU51及びASIC52はバス56を介してROM53、RAM54及び不揮発性メモリー55にアクセスすることが可能になっている。また、バス56にはメモリーコントローラー57が接続されており、このメモリーコントローラー57にはバス58を介して他のRAM59が接続されている。このRAM59は、主に印刷データの画像処理の際に、処理前、処理途中、処理後の各種データを格納するためのバッファーとして用いられる。ASIC52はメモリーコントローラー57を介してRAM59にアクセスすることで、印刷データ、その処理途中の印刷画像データの読み出し、及び読み出したデータに画像処理を施した後のデータ(プレーンデータ、ヘッド制御データ等)の書き込みを行う。また、画像処理のうち一部はCPU51が行い、CPU51もメモリーコントローラー57を介してRAM59にアクセスして印刷画像データ等の読み出し及び画像処理後のデータの書き込みを行う。また、ASIC52とRAM59間のデータ転送(DMA転送)はメモリーコントローラー57が行う。このメモリーコントローラー57へのデータ転送処理の指示及びその転送条件などの設定は、CPU51がメモリーコントローラー57にアクセスして行う。   FIG. 4 is a block diagram showing an electrical configuration of a part related to the computer in the controller 40. As shown in FIG. 4, the CPU 51, the ASIC 52, the ROM 53, the RAM 54, and the nonvolatile memory 55 are connected to a bus 56, and the CPU 51 and the ASIC 52 access the ROM 53, the RAM 54, and the nonvolatile memory 55 via the bus 56. It is possible. A memory controller 57 is connected to the bus 56, and another RAM 59 is connected to the memory controller 57 via the bus 58. The RAM 59 is mainly used as a buffer for storing various data before, during, and after processing of print data. The ASIC 52 accesses the RAM 59 via the memory controller 57 to read out print data, print image data being processed, and data obtained by performing image processing on the read data (plane data, head control data, etc.) Write. Also, part of the image processing is performed by the CPU 51, and the CPU 51 also accesses the RAM 59 via the memory controller 57 to read out print image data and the like and write data after image processing. The memory controller 57 performs data transfer (DMA transfer) between the ASIC 52 and the RAM 59. The CPU 51 accesses the memory controller 57 to set the data transfer processing instruction to the memory controller 57 and the transfer conditions.

CPU51とASIC52により、印刷データに各種の画像処理が施されることにより、プレーンデータ、ヘッド制御データが順番に生成される。すなわち、CPU51により、印刷データの解凍処理、印刷画像データの画素をノズルに割り付けるマイクロウィーブ処理などが施されることによりプレーンデータは生成され、ASIC52により、プレーンデータに縦横変換処理などの画像処理が施されることによりヘッド制御データが生成される。なお、本実施形態では、プレーンデータ及びヘッド制御データが、画像処理により生成される記録データに相当する。   By the CPU 51 and the ASIC 52 performing various image processing on the print data, plane data and head control data are generated in order. That is, plane data is generated by the CPU 51 performing decompression processing of print data, microweave processing for assigning the pixels of the print image data to the nozzles, and the ASIC 52 performs image processing such as vertical / horizontal conversion processing on the plane data. As a result, head control data is generated. In the present embodiment, plane data and head control data correspond to print data generated by image processing.

RAM59に格納されたヘッド制御データは図2に示すHCU45を介して各記録ヘッド29へ転送される。記録ヘッド29には不図示のヘッド駆動回路が内蔵され、ヘッド駆動回路がノズル毎に設けられた不図示の噴射駆動素子をヘッド制御データに基づいて駆動制御することにより記録ヘッド29のノズルからインク滴が噴射される。なお、噴射駆動素子としては、電圧を振動に変換する圧電素子(ピエゾ素子)や静電駆動素子の他、インクを加熱して沸騰した際の気泡の力を利用してインク滴を噴射させるヒーター素子を用いることもできる。   The head control data stored in the RAM 59 is transferred to each recording head 29 via the HCU 45 shown in FIG. The recording head 29 incorporates a head drive circuit (not shown), and the head drive circuit controls the ejection drive element (not shown) provided for each nozzle based on the head control data, thereby causing ink from the nozzles of the print head 29 to flow. Drops are jetted. In addition, as the ejection drive element, in addition to a piezoelectric element (piezo element) that converts voltage into vibration and an electrostatic drive element, a heater that ejects ink droplets using the force of bubbles when the ink is heated to boil An element can also be used.

図3は、コントローラー40の機能構成を説明するブロック図である。図3に示すコントローラー40内の各種機能構成部分は、CPU51がプログラムを実行することにより構築されている。   FIG. 3 is a block diagram illustrating the functional configuration of the controller 40. Various functional components in the controller 40 shown in FIG. 3 are constructed by the CPU 51 executing a program.

図3に示すように、コントローラー40は、OS(O perating System)として、制御手段の一例であるリアルタイムOS71を備えている。そして、コントローラー40内には、このリアルタイムOS71の管理下で選択的に起動される複数のタスク部81〜92等が備えられている。複数のタスク部には、図3に示すように、主制御部81、通信部82、画像処理部83、コマンド解析部84、印刷タスク部85、メカ制御部86、メカ通信部87、ヘッド制御部88、インク管理部89、緊急タスク部90(エマージェンシータスク部)、書込み手段及びコピー手段の一例である書込みタスク部91、及び書戻し手段の一例である書戻しタスク部92などがある。主制御部81は、各タスク部82〜92を統括的に制御する。なお、本実施形態では、リアルタイムOS71、各タスク部81〜92、RAM54及び不揮発性メモリー55により、データ記憶処理装置の一例が構成される。   As shown in FIG. 3, the controller 40 includes a real-time OS 71 which is an example of a control unit as an OS (O perating System). The controller 40 includes a plurality of task units 81 to 92 that are selectively activated under the management of the real-time OS 71. As shown in FIG. 3, the plurality of task units include a main control unit 81, a communication unit 82, an image processing unit 83, a command analysis unit 84, a print task unit 85, a mechanical control unit 86, a mechanical communication unit 87, a head control. A unit 88, an ink management unit 89, an emergency task unit 90 (emergency task unit), a writing task unit 91 which is an example of a writing unit and a copying unit, and a writing back task unit 92 which is an example of a writing back unit. The main control unit 81 controls the task units 82 to 92 in an integrated manner. In the present embodiment, the real-time OS 71, the task units 81 to 92, the RAM 54, and the nonvolatile memory 55 constitute an example of a data storage processing device.

リアルタイムOS71は、スケジューラー72及び優先順位変更手段の一例としての優先順位変更部73を備える。スケジューラー72は、タスク管理部74及びディスパッチ部75を備えている。   The real-time OS 71 includes a scheduler 72 and a priority changing unit 73 as an example of priority changing means. The scheduler 72 includes a task management unit 74 and a dispatch unit 75.

スケジューラー72は、タスク部81〜92のスケジュール管理を行う。すなわち、タスク部81〜92の起動要求を受け付けると、空きがあればそのタスク部を起動するが、既に他のタスク部が実行中(Run状態)であれば、そのタスク部をReady状態とする。そして、実行中のタスク部から処理を終了した旨あるいは待ちが発生した旨の通知SC(サービスコール)を受け付けると、そのときReady状態のタスク部が存在すればそのうち優先順位の一番高いタスク部を起動させることで実行タスク(起動タスク)を切り換えるようになっている。タスク管理部74は、タスクの状態(Wait,Ready,Run等)を管理する。ディスパッチ部75は、スケジューラー72がタスク切り換えイベントとなる通知SC(サービスコール)を受け付けると、タスク管理部74が管理するタスクの状態を参照してReady状態のタスク部のうち優先順位の一番高いタスク部に起動指示を通知してこれを起動させる。   The scheduler 72 performs schedule management of the task units 81 to 92. In other words, when an activation request for the task units 81 to 92 is received, the task unit is activated if there is a space, but if another task unit is already executing (Run state), the task unit is set to the Ready state. . When a notification SC (service call) indicating that processing has been completed or waiting has been received from the task portion being executed, if there is a task portion in the Ready state, the task portion with the highest priority among them The execution task (starting task) is switched by starting up. The task management unit 74 manages task states (Wait, Ready, Run, etc.). When the scheduler 72 receives a notification SC (service call) that becomes a task switching event, the dispatch unit 75 refers to the state of the task managed by the task management unit 74 and has the highest priority among the task units in the Ready state. The task part is notified of the activation instruction and activated.

タスク管理部74は、図5に示す優先順位管理テーブル97を有している。この優先順位管理テーブル97には、タスクが優先順位の順番に配列されている。図5の例では、複数のタスク81〜92が上側から優先順位の高い順番に配列されており、上側に位置するタスクほど優先順位が高く設定されている。   The task management unit 74 has a priority order management table 97 shown in FIG. In the priority management table 97, tasks are arranged in order of priority. In the example of FIG. 5, a plurality of tasks 81 to 92 are arranged in order of higher priority from the upper side, and the priority is set higher for the task located on the upper side.

優先順位変更部73は、優先順位管理テーブル97の優先順位の順番を並び替え、スケジューラー72が起動させるべきタスクの優先順位を変更する機能を有する。電源オン時には、リアルタイムOS71は図5(a)に示す通常時の優先順位管理テーブル97を設定する。優先順位変更部73は、電源スイッチ65のオフ操作によるプリンター11の電源オフ時(通常電源オフ時)と、電源プラグ抜けや電源故障などによる電源遮断時(異常電源オフ時)に、優先順位管理テーブル97を、図5(a)に示す通常時の優先順位の順番から、図5(b)に示す電源オフ時の優先順位の順番に変更する。ここで、各タスクのうちCPU51が一のタスクを実行することにより、図3に示す各タスク部81〜92のうち一のタスク部が起動される。図3に示す各タスク部81〜92は、CPU51の実行対象である、主制御タスク、通信タスク、コマンド解析タスク、画像処理タスク、印刷タスク、メカ制御タスク、メカ通信タスク、ヘッド制御タスク、インク管理タスク、緊急タスク、書込みタスク及び書戻しタスクとそれぞれ対応している。なお、無停電機能を備えない通常の電源を用いた構成の場合は、停電も異常電源オフの原因となる。   The priority changing unit 73 has a function of rearranging the order of priority in the priority management table 97 and changing the priority of tasks to be started by the scheduler 72. When the power is turned on, the real-time OS 71 sets a normal priority management table 97 shown in FIG. The priority level changing unit 73 manages priority levels when the printer 11 is turned off by the power switch 65 being turned off (when the normal power is turned off), and when the power is cut off due to a power plug disconnection or power failure (when the abnormal power is turned off). The table 97 is changed from the normal priority order shown in FIG. 5A to the power-off priority order shown in FIG. 5B. Here, when the CPU 51 executes one task among the tasks, one task unit among the task units 81 to 92 illustrated in FIG. 3 is activated. 3 are main control tasks, communication tasks, command analysis tasks, image processing tasks, printing tasks, mechanical control tasks, mechanical communication tasks, head control tasks, inks, which are the execution targets of the CPU 51. It corresponds to the management task, emergency task, writing task, and writing-back task, respectively. In the case of a configuration using a normal power supply that does not have an uninterruptible function, a power failure also causes an abnormal power off.

図5(a)に示す通常時の優先順位管理テーブル97には、緊急タスク、書込みタスク、ヘッド制御タスク、画像処理タスク、…、書戻しタスクの順番に優先順位が設定されている。つまり、印刷系タスク部81〜89よりも書込みタスク部91の優先順位が高く設定されるとともに、書戻しタスク部92が印刷系タスク部81〜89よりも低い優先順位に設定されている。ここで、印刷系タスク部81〜89とは、印刷データPDに基づく印刷処理を行ううえで必要な処理を担うタスク部を指す。本実施形態では、印刷系タスク部には、通信系タスク部に属する通信部82及びメカ通信部87と、記録系タスク部に属する主制御部81、画像処理部83及びヘッド制御部88と、メカ駆動系タスク部(コマンド処理系タスク部)に属するコマンド解析部84、印刷タスク部85及びメカ制御部86とが含まれる。なお、通信系タスク部82,87は、記録系及びメカ駆動系の両方に属する通信部82と、メカ駆動系のみに属するメカ通信部87とに分かれる。また、本実施形態では、印刷系タスク部81〜89により、印刷制御手段の一例が構成される。   In the normal priority management table 97 shown in FIG. 5A, priorities are set in the order of emergency task, writing task, head control task, image processing task,. That is, the priority of the writing task unit 91 is set higher than that of the printing system task units 81 to 89, and the writing back task unit 92 is set to a priority level lower than that of the printing system task units 81 to 89. Here, the printing system task units 81 to 89 indicate task units that perform processing necessary for performing printing processing based on the print data PD. In the present embodiment, the printing system task unit includes a communication unit 82 and a mechanical communication unit 87 belonging to the communication system task unit, a main control unit 81, an image processing unit 83 and a head control unit 88 belonging to the recording system task unit, A command analysis unit 84, a print task unit 85, and a mechanical control unit 86 belonging to a mechanical drive system task unit (command processing system task unit) are included. The communication system task units 82 and 87 are divided into a communication unit 82 belonging to both the recording system and the mechanical drive system, and a mechanical communication unit 87 belonging to only the mechanical drive system. In the present embodiment, the print system task units 81 to 89 constitute an example of a print control unit.

本実施形態では、このように通常時には、書込みタスク部91は緊急タスク部90を除くタスクの中で一番高い優先順位に設定されており、書戻しタスク部92は一番低い優先順位に設定されている。よって、書込みタスク部91は印刷系タスク部81〜89よりも高い優先順位に設定され、書戻しタスク部92は印刷系タスク部81〜89よりも低い一優先順位に設定されている。   In this embodiment, in this normal state, the write task unit 91 is set to the highest priority among the tasks other than the emergency task unit 90, and the write-back task unit 92 is set to the lowest priority. Has been. Therefore, the writing task unit 91 is set to a higher priority than the printing system task units 81 to 89, and the writing back task unit 92 is set to one priority level lower than the printing system task units 81 to 89.

また、図5(b)に示す電源オフ時の優先順位管理テーブル97には、緊急タスク、書込みタスク、書戻しタスク、ヘッド制御タスク、画像処理タスク、…の順番に優先順位が設定されている。つまり、書込みタスク部91と書戻しタスク部92との優先順位の関係を通常時と同じ関係に保持したまま、緊急タスク部90以外のタスクの中で書込みタスク部91と書戻しタスク部92とをそれぞれ第1位と第2位の優先順位に設定されるようになっている。このように電源オフ時には、書込みタスク部91と書戻しタスク部92は、書込みタスク部91の方が書戻しタスク部92よりも高い優先順位になる関係を保持したまま、共に印刷系タスク部81〜89よりも高い優先順位に設定される。換言すれば、電源オフ時には、書戻しタスク部92は、書込みタスク部91との優先順位の関係を保持したまま、印刷系タスク部81〜89よりも低い優先順位から、印刷系タスク部81〜89よりも高い優先順位へ変更される。なお、本実施形態では、二次電池を備えており、電源プラグ抜けや電源故障などの不意な電源遮断(異常電源オフ)発生時でも、二次電池が放電されるまでの例えば10〜500ミリ秒の範囲内の所定時間の間は二次電池から電力が供給されるようになっている。このため、不意な電源遮断時においても、データの書戻し処理などを行うことが可能である。   In the priority management table 97 at the time of power-off shown in FIG. 5B, priorities are set in the order of emergency task, writing task, writing-back task, head control task, image processing task,. . That is, while the priority order relationship between the write task unit 91 and the write-back task unit 92 is maintained in the same relationship as normal, the write task unit 91 and the write-back task unit 92 in the tasks other than the emergency task unit 90 Are set to the first and second priority levels, respectively. As described above, when the power is turned off, the write task unit 91 and the write-back task unit 92 both hold the relationship in which the write task unit 91 has a higher priority than the write-back task unit 92, and the printing task unit 81 Priority is set higher than -89. In other words, when the power is turned off, the write-back task unit 92 retains the priority order relationship with the write task unit 91 while maintaining the priority order lower than that of the print system task units 81 to 89. The priority is changed to a higher priority than 89. In the present embodiment, a secondary battery is provided, and even when an unexpected power cut-off (abnormal power off) such as a power plug disconnection or a power failure occurs, the secondary battery is discharged, for example, 10 to 500 mm. Electric power is supplied from the secondary battery for a predetermined time within a range of seconds. For this reason, it is possible to perform data write-back processing or the like even when the power supply is unexpectedly cut off.

図3に戻って、各タスク部82〜92の機能について説明する。
通信部82は、シリアル通信ポートU2を制御する通信ドライバーソフトウェアを含み、シリアル通信ポートU2を介してホスト装置120との間で行われるシリアル通信を制御する。通信部82が受信した印刷データPDは、画像バッファー59Aに格納される。この画像バッファー59AはRAM59の少なくとも一部の記憶領域により構成される。画像バッファー59Aは、詳しくは、受信バッファーと中間バッファー(プレーンバッファ)と印刷バッファー(イメージバッファー)とを含み、印刷データPDはまず受信バッファーに格納される。
Returning to FIG. 3, functions of the task units 82 to 92 will be described.
The communication unit 82 includes communication driver software for controlling the serial communication port U2, and controls serial communication performed with the host device 120 via the serial communication port U2. The print data PD received by the communication unit 82 is stored in the image buffer 59A. The image buffer 59A is constituted by at least a part of the storage area of the RAM 59. Specifically, the image buffer 59A includes a reception buffer, an intermediate buffer (plane buffer), and a print buffer (image buffer), and the print data PD is first stored in the reception buffer.

画像処理部83は、画像バッファー59Aから印刷データPDを読み出し、印刷データPDをまず解凍する。ここで、印刷データPDは印刷画像データと印刷言語記述コマンドとを含み、画像処理部83は、解凍後の印刷画像データを画像バッファー59A(詳しくはプレーンバッファー)に一時格納するとともに、印刷言語記述コマンドをコマンド解析部84に送る。   The image processing unit 83 reads the print data PD from the image buffer 59A, and first decompresses the print data PD. Here, the print data PD includes print image data and a print language description command, and the image processing unit 83 temporarily stores the decompressed print image data in the image buffer 59A (specifically, a plain buffer) and also print language description. The command is sent to the command analysis unit 84.

コマンド解析部84は、解凍後の印刷データPD中の印刷言語記述コマンドを解析して制御用のコマンドを取得し、その取得したコマンドを印刷タスク部85へ送る。
画像処理部83は、印刷データPDの解凍後の処理として、画像バッファー59Aから読み出した印刷画像データ(プレーンデータ)にマイクロウィーブ処理(ノズル割付処理)などの画像処理を順次施し、記録ヘッド29の制御に用いられるヘッド制御データを生成して画像バッファー59A(詳しくはイメージバッファー)に格納する。なお、マイクロウィーブ処理とは、記録ヘッド29のノズル形成面において副走査方向に隣接するノズルにより記録される主走査ライン(ドットライン)が隣接しないように印刷画像データ(プレーンデータ)の各ドットを各ノズルに割り付ける特定の割付処理を指す。なお、本実施形態では、縦横変換処理などの一部の画像処理は、ASIC52内の縦横変換回路などの画像処理用回路(図示省略)により行われる。この縦横変換処理の際には、ASIC52はRAM59との間でメモリーコントローラー57(図4参照)を介してデータ転送を行う。このメモリーコントローラー57に対する転送開始指示や転送条件設定処理は、CPU51が行う。このため、本実施形態では、CPU51がデータ転送処理及び転送条件設定処理などを行うソフトウェア部分によって、主制御部81の一部が構成されている。この点において、主制御部81は、記録ヘッド29の記録動作に用いられる噴射系データ生成のための画像処理を含む記録系処理を行う記録系タスク部81〜83,88に属する。本実施形態では、記録系タスク部81〜83,88により、記録系処理手段の一例が構成される。また、記録系タスク部81〜83,88が記録系処理を行う段階により、記録系処理段階が構成される。
The command analysis unit 84 analyzes the print language description command in the decompressed print data PD to acquire a control command, and sends the acquired command to the print task unit 85.
The image processing unit 83 sequentially performs image processing such as microweave processing (nozzle allocation processing) on the print image data (plane data) read from the image buffer 59 </ b> A as processing after decompression of the print data PD. Head control data used for control is generated and stored in an image buffer 59A (specifically, an image buffer). In the microweave process, each dot of print image data (plane data) is processed so that main scanning lines (dot lines) recorded by nozzles adjacent in the sub-scanning direction on the nozzle formation surface of the recording head 29 are not adjacent. This refers to a specific assignment process assigned to each nozzle. In the present embodiment, some image processing such as vertical / horizontal conversion processing is performed by an image processing circuit (not shown) such as a vertical / horizontal conversion circuit in the ASIC 52. In the vertical / horizontal conversion process, the ASIC 52 performs data transfer with the RAM 59 via the memory controller 57 (see FIG. 4). The CPU 51 performs a transfer start instruction and a transfer condition setting process for the memory controller 57. For this reason, in the present embodiment, a part of the main control unit 81 is configured by a software part in which the CPU 51 performs a data transfer process, a transfer condition setting process, and the like. In this respect, the main control unit 81 belongs to the recording system task units 81 to 83 and 88 that perform recording system processing including image processing for generating ejection system data used for the recording operation of the recording head 29. In the present embodiment, the recording system task units 81 to 83, 88 constitute an example of a recording system processing unit. Further, the recording system processing stage is constituted by the stage where the recording system task units 81 to 83, 88 perform the recording system processing.

ヘッド制御部88は、画像バッファー59Aからヘッド制御データを読み出し、このヘッド制御データを記録ヘッド29毎に分割して各HCU45へ割り振りつつ転送する。さらに、HCU45は受け付けたヘッド制御データを、対応する各記録ヘッド29へ逐次送信する。記録ヘッド29内の不図示のヘッド駆動回路は、ヘッド制御データに基づきノズル毎の噴射駆動素子を駆動制御することで、ノズルからインク滴を噴射させる。このとき、ヘッド駆動回路は、リニアエンコーダー50のエンコーダーパルス信号を基に生成された噴射タイミング信号を入力し、この噴射タイミング信号に基づく噴射タイミング毎に噴射駆動素子を駆動させることにより、シート13上に主走査方向Xに所定の印刷解像度でインク滴によるドットを形成する。   The head control unit 88 reads out the head control data from the image buffer 59A, divides the head control data for each recording head 29, and transfers the divided control data to the respective HCUs 45. Further, the HCU 45 sequentially transmits the received head control data to the corresponding recording heads 29. A head drive circuit (not shown) in the recording head 29 ejects ink droplets from the nozzles by drivingly controlling ejection drive elements for each nozzle based on the head control data. At this time, the head drive circuit inputs an injection timing signal generated based on the encoder pulse signal of the linear encoder 50, and drives the injection drive element at each injection timing based on the injection timing signal, so In addition, dots by ink droplets are formed in the main scanning direction X at a predetermined printing resolution.

図3に示す印刷タスク部85は、コマンド解析部84から受け付けたコマンドを、メカコントローラー43へ指示できる形態のコマンドに処理するコマンド処理を行い、処理後のコマンドをメカ制御部86へ送る。   The print task unit 85 shown in FIG. 3 performs a command process that processes the command received from the command analysis unit 84 into a command that can be instructed to the mechanical controller 43, and sends the processed command to the mechanical control unit 86.

メカ制御部86は、受け付けたコマンドを実行順に管理してジョブを制御するジョブ制御部93と、ジョブ制御部93から実行順に受け付けたコマンドの出力先及び出力タイミングを制御して、ヘッド駆動系・搬送系・キャリッジ駆動系等の各種デバイスを制御するデバイス制御部94とを備えている。ジョブ制御部93は、印刷ジョブで指示された印刷動作を行う過程でヘッド駆動系、搬送系、キャリッジ駆動系のシーケンス動作の完了通知コマンドをデバイス制御部94を介して受け付けるため、ヘッド駆動系、搬送系、キャリッジ駆動系の駆動タイミングの把握が可能である。このため、ジョブ制御部93は、印刷動作の切れ目となるタイミングを把握することが可能である。ここで、印刷動作の切れ目とは、1ページ分の印刷が終わった改ページのタイミング、あるいはキャリッジ27が主走査方向Xに一回移動して1行分の印刷(1パス)を終了したタイミングなどを指す。   The mechanical control unit 86 manages the received commands in the execution order and controls the job, and controls the output destination and output timing of the commands received from the job control unit 93 in the execution order, And a device control unit 94 that controls various devices such as a transport system and a carriage drive system. The job control unit 93 receives a completion notification command of the sequence operation of the head drive system, the transport system, and the carriage drive system via the device control unit 94 in the course of performing the print operation instructed by the print job. It is possible to grasp the drive timing of the transport system and carriage drive system. For this reason, the job control unit 93 can grasp the timing at which the printing operation is interrupted. Here, the break of the printing operation is the timing of a page break when printing for one page is completed, or the timing at which printing for one line (one pass) is completed by moving the carriage 27 once in the main scanning direction X. And so on.

デバイス制御部94は、メカ通信部87、ヘッド制御部88、インク管理部89及び緊急タスク部90などと接続され、これら各部宛毎のコマンドを出力したり、各部からの通知を受け付けたりして、これらのデバイスを制御等する一種のデバイスマネージャー機能を有している。デバイス制御部94は、例えばヘッド制御部88の処理の進捗を監視し、次パスの印刷に使用するヘッド制御データが準備できた段階で、メカシーケンス用のコマンドをメカ通信部87へ送る。また、デバイス制御部94は、メカコントローラー43から通知された装置状態情報(ステータス情報)に基づいて、メカニカル機構44における搬送系及びキャリッジ駆動系の状態を把握し、噴射開始に適切な状態になったタイミングでヘッド制御部88に噴射開始の旨を指示する。   The device control unit 94 is connected to the mechanical communication unit 87, the head control unit 88, the ink management unit 89, the emergency task unit 90, and the like, and outputs a command addressed to each unit or receives a notification from each unit. It has a kind of device manager function for controlling these devices. For example, the device control unit 94 monitors the progress of the processing of the head control unit 88, and sends a mechanical sequence command to the mechanical communication unit 87 when head control data used for printing the next pass is prepared. Further, the device control unit 94 grasps the states of the conveyance system and the carriage drive system in the mechanical mechanism 44 based on the apparatus state information (status information) notified from the mechanical controller 43, and enters a state suitable for the start of injection. The head control unit 88 is instructed to start ejection at the determined timing.

シーケンス制御用のコマンドには、例えば搬送コマンド、吸着コマンド、第1キャリッジ起動コマンド(キャリッジ主走査方向移動コマンド)、第2キャリッジ起動コマンド(キャリッジ副走査方向移動コマンド)、吸着解除コマンドなどがある。デバイス制御部94は、これらのシーケンスコマンドを、ヘッド制御部88の進捗に合わせた適宜なタイミング、あるいはメカコントローラー43側の進捗に合わせた適宜なタイミングで発行する。   The sequence control commands include, for example, a transport command, a suction command, a first carriage activation command (carriage main scanning direction movement command), a second carriage activation command (carriage sub-scanning direction movement command), and a suction release command. The device control unit 94 issues these sequence commands at an appropriate timing according to the progress of the head control unit 88 or at an appropriate timing according to the progress on the mechanical controller 43 side.

メカ通信部87は、メカ制御部86からコマンドを受け付けると、そのコマンドをメカコントローラー43へ送信する。また、メカ通信部87は、メカコントローラー43からコマンド受信成功の応答(ACK信号)、コマンド受信失敗の応答であるリトライ要求(NACK信号)、メカコントローラー43が発行したコマンドや状態情報を受け付けると、上位のメカ制御部86へ送る。   When the mechanical communication unit 87 receives a command from the mechanical control unit 86, the mechanical communication unit 87 transmits the command to the mechanical controller 43. Further, when the mechanical communication unit 87 receives from the mechanical controller 43 a command reception success response (ACK signal), a retry request (NACK signal) that is a command reception failure response, a command or status information issued by the mechanical controller 43, It is sent to the upper mechanical control unit 86.

図3に示すインク管理部89は、各インクカートリッジIC1〜IC8のインク関連情報を管理する。インク管理部89は演算部95を備えている。演算部95は、記録ヘッド29及びメンテナンス装置32で消費されたインク消費量及び各インクカートリッジIC1〜IC8のインク残量を演算する。詳しくは、演算部95は、各記録ヘッド29が消費した8色分のインク消費量を演算する。ここで、ヘッド制御部88は、ヘッド制御データに基づき記録ヘッド29のインク滴噴射回数に相当するドット数を色別に計数するドットカウンター(図示せず)を内蔵している。演算部95は、ヘッド制御部88から各記録ヘッド29の色別のドット数を取得し、その取得したドット数を色別に合計し、さらにその合計した色別のドット数を基に全記録ヘッド29が消費したインク色別のインク消費量を演算する。   The ink management unit 89 shown in FIG. 3 manages ink related information of the ink cartridges IC1 to IC8. The ink management unit 89 includes a calculation unit 95. The calculation unit 95 calculates the ink consumption consumed by the recording head 29 and the maintenance device 32 and the ink remaining amounts of the ink cartridges IC1 to IC8. Specifically, the computing unit 95 computes the ink consumption for eight colors consumed by each recording head 29. Here, the head controller 88 includes a dot counter (not shown) that counts the number of dots corresponding to the number of ink droplet ejections of the recording head 29 based on the head control data. The calculation unit 95 acquires the number of dots for each color of each recording head 29 from the head control unit 88, sums the acquired number of dots for each color, and further calculates the total recording head based on the total number of dots for each color. 29 calculates the ink consumption for each ink color consumed by the printer 29.

そして、インク管理部89は、1回の印刷が終わったとき、インクカートリッジ交換が行われたとき、電源スイッチ65がオフ操作された際の電源遮断時などの所定時期に、全ての記録ヘッド29で消費された8色分のインク消費量を算出する。さらに演算部95は、この8色分の各インク消費量を、この8色の前回のインク残量からそれぞれ減算することで、現在の8色のインク残量を算出する。本実施形態では、インク管理部89は、インク残量情報とこれ以外のインクに係る情報などとを含む印刷関連情報(データの一部)を取得する。本実施形態では、印刷関連情報には、インク残量、インク消費量及びインクカートリッジ使用期限残り時間などのインク関連情報と、印刷ページ数、課金情報、メンテナンス情報(メンテナンス項目毎の実施回数)、印刷実施時刻情報などが含まれている。   The ink management unit 89 then prints all the recording heads 29 at a predetermined time such as when one printing is completed, when an ink cartridge is replaced, or when the power switch 65 is turned off. The ink consumption for the eight colors consumed in is calculated. Further, the calculation unit 95 calculates the current ink remaining amounts of eight colors by subtracting the ink consumption amounts for the eight colors from the previous ink remaining amounts of the eight colors. In the present embodiment, the ink management unit 89 acquires print-related information (part of data) including ink remaining amount information and information related to other ink. In the present embodiment, the print-related information includes ink-related information such as the remaining ink amount, ink consumption, and remaining ink cartridge expiration date, the number of printed pages, billing information, maintenance information (the number of times of execution for each maintenance item), Print execution time information and the like are included.

さらにインク管理部89は、印刷関連情報を管理する他、インクカートリッジICの状態を監視し、インク関連のエラー検出も行う。インク管理部89は、例えば演算部95が算出したインク残量がインクエンド閾値未満になったか否かを判定し、インク残量がその閾値未満である場合にインクエンドと判定する。例えばインクエンドになってから、一定の許容印刷時間又は一定の許容インク量が消費されるまでの期間を過ぎると、強制的に印刷動作を停止させるためのエラーが、メカ制御部86を介して緊急タスク部90に通知される。また、インクカートリッジICの外れや、色違いのインクカートリッジICの装着を検出したときにも、メカ制御部86を介して緊急タスク部90にエラーが通知される。このエラー通知には、エラー内容を把握できる識別子(例えばエラーコマンド番号)やパラメーター値が付与される。   Further, the ink management unit 89 manages the printing related information, monitors the state of the ink cartridge IC, and also detects ink related errors. For example, the ink management unit 89 determines whether or not the remaining amount of ink calculated by the calculation unit 95 is less than the ink end threshold. If the remaining amount of ink is less than the threshold, the ink management unit 89 determines that the ink has ended. For example, an error for forcibly stopping a printing operation via the mechanical control unit 86 after a certain allowable printing time or a period until a certain allowable ink amount is consumed after the ink end is reached. The emergency task unit 90 is notified. Further, the error is notified to the emergency task unit 90 via the mechanical control unit 86 when it is detected that the ink cartridge IC is detached or an ink cartridge IC of a different color is mounted. This error notification is given an identifier (for example, an error command number) that can grasp the error content and a parameter value.

緊急タスク部90は、インク管理部89からエラー通知を受け付けると、そのエラーの内容を判断し、その判断したエラー内容に応じた種類のエラーコマンドを発行する。エラーコマンドはメカ制御部86を介して適切な送信先へ送られる。例えばインクエンド通知用のエラーコマンドは、メカコントローラー43及びホスト制御部125に送られ、メカニカル機構44の動作の非常停止や、ホスト装置120のモニター123へのインクエンドの旨を報知する表示が行われる。また、緊急タスク部90は、電源オフ機能及び電源遮断検出機能を備えている。緊急タスク部90は、電源スイッチ65がオフ操作された際のオフ信号を入力すると、電源オフ機能により、前述の優先順位変更要求をリアルタイムOS71へ出力し、その後、データバックアップ処理終了の旨の書戻し完了通知を受け付けると、プリンター11の終了処理を行い、終了処理の後に電源を遮断させる。また、緊急タスク部90は、電源遮断検出機能により、電源プラグ抜けや電源故障などの不意な電源遮断を検出したときにも、同様の優先順位変更要求をリアルタイムOS71へ出力する。なお、電源オフ時の書戻し完了通知は、書込みタスク部91と書戻しタスク部92によるデータバックアップ処理完了の旨を通知するものである。   Upon receiving an error notification from the ink management unit 89, the emergency task unit 90 determines the content of the error and issues an error command of a type corresponding to the determined error content. The error command is sent to an appropriate transmission destination via the mechanical control unit 86. For example, an error command for ink end notification is sent to the mechanical controller 43 and the host control unit 125, and an emergency stop of the operation of the mechanical mechanism 44 and a display informing the ink end to the monitor 123 of the host device 120 are performed. Is called. Further, the emergency task unit 90 has a power-off function and a power-off detection function. Upon receiving an off signal when the power switch 65 is turned off, the emergency task unit 90 outputs the above-described priority change request to the real-time OS 71 by the power off function, and then indicates that the data backup processing is completed. When the return completion notification is received, the printer 11 is terminated, and the power is shut off after the termination processing. The emergency task unit 90 also outputs a similar priority order change request to the real-time OS 71 when it detects an unexpected power shutdown such as a power plug disconnection or power failure by the power shutdown detection function. Note that the write back completion notification when the power is turned off notifies the completion of the data backup processing by the write task unit 91 and the write back task unit 92.

書込みタスク部91は、電源スイッチ65がオン操作された際のプリンター11の起動時に、CPU51とバス56を介して接続された不揮発性メモリー55からデータD(印刷関連情報を含む)を読み込み、その読み込んだデータDをRAM54に書き込む書込み処理を行う。なお、データDには、印刷関連情報以外に、主制御部81が記録ヘッド29及びメカニカル機構44を駆動させる調整処理を行わせた際に、調整処理の結果として取得された調整値データ(補正値データ)などが含まれる。調整処理としては、キャリッジ27の往動時と復動時における記録ヘッド29の噴射タイミングを、プリンター11の個体差や、シート13の厚み(媒体厚)に応じて調整する噴射タイミング調整処理などを挙げることができる。この噴射タイミング調整処理では、例えばテストパターンを印刷し、そのテストパターンの中からユーザーが最適と判断した番号を入力する方法、テストパターンをスキャナーに読み取らせて取得した画像データを画像解析してその画像解析結果から最適な調整値をプリンター11が求める方法などが挙げられる。この場合、主制御部81は、第1記憶部131のデータD中の噴射タイミング用の調整値(補正値)を更新する。この種の調整値(補正値)は、ユーザーが調整処理の実施を選択したときに限り更新されるものであり、通常、過去に一度設定されたほとんど固定値である。よって、この種の調整値は、プリンター11の電源オン時に一度読み出されて設定されれば、その後、ほとんど読み出しも書き替えも行われることがない。   When the printer 11 is started when the power switch 65 is turned on, the writing task unit 91 reads data D (including printing related information) from the nonvolatile memory 55 connected to the CPU 51 via the bus 56. A writing process for writing the read data D into the RAM 54 is performed. In addition to the printing related information, the data D includes adjustment value data (correction) acquired as a result of the adjustment process when the main control unit 81 performs the adjustment process for driving the recording head 29 and the mechanical mechanism 44. Value data). As the adjustment process, an ejection timing adjustment process for adjusting the ejection timing of the recording head 29 when the carriage 27 moves forward and backward according to individual differences of the printer 11 and the thickness (medium thickness) of the sheet 13 is performed. Can be mentioned. In this ejection timing adjustment process, for example, a test pattern is printed, and the number that the user has determined to be optimal is input from among the test patterns. For example, the printer 11 may obtain an optimum adjustment value from the image analysis result. In this case, the main control unit 81 updates the adjustment value (correction value) for injection timing in the data D of the first storage unit 131. This type of adjustment value (correction value) is updated only when the user selects to execute the adjustment process, and is usually a substantially fixed value set once in the past. Therefore, once this kind of adjustment value is read and set once when the printer 11 is turned on, the adjustment value is hardly read or rewritten thereafter.

また、書戻しタスク部92は、RAM54に記憶されているデータDを読み出し、その読み出したデータDを不揮発性メモリー55に書き戻す書戻し処理を行う。
図3に示すように、RAM54は、プログラムデータ記憶部130と、第1記憶部131(ミラー記憶領域部)と、第2記憶部132(コピー記憶領域部)とを有する。プログラムデータ記憶部130は、ROM53(又は不揮発性メモリー55)から読み出されたプログラムデータや各種の設定値の書込み先となる記憶領域である。
The write-back task unit 92 reads data D stored in the RAM 54 and performs a write-back process for writing the read data D back to the nonvolatile memory 55.
As illustrated in FIG. 3, the RAM 54 includes a program data storage unit 130, a first storage unit 131 (mirror storage area unit), and a second storage unit 132 (copy storage area unit). The program data storage unit 130 is a storage area to which program data read from the ROM 53 (or the nonvolatile memory 55) and various setting values are written.

第1記憶部131(ミラー記憶領域部)は、不揮発性メモリー55から読み出されたデータDの書込み先となる記憶領域である。第1記憶部131は、印刷系タスク部81〜89、緊急タスク部90がアクセスしてデータの読出し及び書込みが可能な記憶領域である。電源オン時に不揮発性メモリー55から第1記憶部131に書き込まれたデータDは、プリンター11の稼働中(電源オン中)において各タスク部81〜89からの書込みアクセスにより逐次更新される。例えばインク管理部89が第1記憶部131に書込みアクセスし、インク残量やインクカートリッジ使用期限残り時間などの印刷関連情報を、第1記憶部131に書き込むことによりデータDは更新される。もちろん、主制御部81をはじめとする他の印刷系タスク部の書込みアクセスによっても、第1記憶部131のデータDは更新される。   The first storage unit 131 (mirror storage area unit) is a storage area to which the data D read from the nonvolatile memory 55 is written. The first storage unit 131 is a storage area in which the print task units 81 to 89 and the emergency task unit 90 can access and read and write data. Data D written from the nonvolatile memory 55 to the first storage unit 131 when the power is turned on is sequentially updated by writing accesses from the task units 81 to 89 while the printer 11 is operating (power is on). For example, the ink management unit 89 has write access to the first storage unit 131, and the data D is updated by writing print-related information such as the remaining ink amount and the remaining ink cartridge expiration date in the first storage unit 131. Of course, the data D in the first storage unit 131 is also updated by the write access of other printing system task units including the main control unit 81.

第2記憶部132(コピー記憶領域部)は、第1記憶部131から読み出されたデータDのコピー先となる記憶領域である。この第2記憶部132は、書込みタスク部91による書込みアクセスと書戻しタスク部92による読み出しアクセスは許可されているものの、各タスク部81〜90の第2記憶部132への書込みアクセスが禁止されている。但し、各タスク部81〜90の第2記憶部132への読出しアクセスは許可しても構わない。   The second storage unit 132 (copy storage area unit) is a storage area that is a copy destination of the data D read from the first storage unit 131. In the second storage unit 132, write access by the write task unit 91 and read access by the write-back task unit 92 are permitted, but write access to the second storage unit 132 of each task unit 81 to 90 is prohibited. ing. However, read access to the second storage unit 132 of each task unit 81 to 90 may be permitted.

書戻しタスク部92は、各タスク部81〜92の中で一番優先順位が低いので(図5(a)参照)、印刷動作が行われていない待機中に起動されることになる。そして、プリンター11が待機状態にあるときに起動された書戻しタスク部92は、第2記憶部132に記憶されたデータDを不揮発性メモリー55へ書き戻す処理(書戻し処理)を行う。書戻しタスク部92は、書戻し処理を完了すると、書込みタスク部91に対して書戻し完了通知を行うようになっている。   Since the write-back task unit 92 has the lowest priority among the task units 81 to 92 (see FIG. 5A), the write-back task unit 92 is activated during a standby period when no printing operation is performed. Then, the write-back task unit 92 activated when the printer 11 is in the standby state performs a process of writing back the data D stored in the second storage unit 132 to the nonvolatile memory 55 (write-back process). When the write-back task unit 92 completes the write-back process, the write-back task unit 92 notifies the write task unit 91 of a write-back completion.

書込みタスク部91は、書戻しタスク部92から書戻し完了通知を受け付けると、リアルタイムOS71に起動要求を出す。書込みタスク部91は、緊急タスク部90以外の各タスク部81〜89,91,92の中で一番優先順位が高いので、書戻しタスク部92による書戻し処理の完了後直ぐに起動される。書込みタスク部91は、書戻し完了通知を受け付けて起動されたときは、第1記憶部131のデータD(更新データ)を第2記憶部132に上書きすることでコピーする。もちろん、前回コピー時と今回コピー時との間に、第1記憶部131のデータDの更新が行われていないときなどは、コピーしても第2記憶部132のデータDが変らない場合もある。   When the write task unit 91 receives a write back completion notification from the write back task unit 92, the write task unit 91 issues an activation request to the real-time OS 71. The write task unit 91 has the highest priority among the task units 81 to 89, 91, 92 other than the emergency task unit 90, and thus is activated immediately after the completion of the write-back process by the write-back task unit 92. When the write task unit 91 is activated upon receiving a write-back completion notification, the write task unit 91 copies the data D (update data) in the first storage unit 131 by overwriting the data in the second storage unit 132. Of course, when the data D in the first storage unit 131 has not been updated between the previous copy and the current copy, the data D in the second storage unit 132 may not change even after copying. is there.

また、電源オフ操作時、電源プラグ抜けや電源故障などの電源オフ時(電源遮断時)は、優先順位変更部73が、優先順位管理テーブル97を、図5(b)に示す優先順、すなわち、書戻しタスク部92を印刷系タスク部81〜89の優先順位より高い順位(本例では第3位の優先順位)とする優先順に変更する。このため、書込みタスク部91によるコピーが完了すると、書戻しタスク部92が直ぐ起動され、そのコピーされたばかりの最新のデータDが不揮発性メモリー55へ書戻しされるようになっている。   When the power is turned off, or when the power is turned off (when the power is cut off) such as a power plug disconnection or power failure, the priority changing unit 73 sets the priority management table 97 in the priority order shown in FIG. Then, the writing-back task unit 92 is changed to a priority order that is higher than the priority order of the printing system task units 81 to 89 (third priority order in this example). For this reason, when the copying by the writing task unit 91 is completed, the writing-back task unit 92 is activated immediately, and the latest data D just copied is written back to the nonvolatile memory 55.

ここで、不揮発性メモリー55をFeRAMとしている本例では、不揮発性メモリー55に保存できるデータ記憶容量が、例えばフラッシュメモリーに比べ比較的小さい。本実施形態では、これまで不揮発性メモリー(例えばフラッシュメモリー)に保存していたデータを、プリンター稼働中に全く更新されないか殆ど更新されないデータ(不変データ)と、印刷の実施や時間経過などに伴って更新されるデータ(可変データ)とに大きく分け、不変データのかなりの部分についてはホスト装置120のホスト記憶部120Mに保存することにしている。このため、不揮発性メモリー55に保存しておくべきデータDの容量が小さくなり、不揮発性メモリー55としてFeRAMを使用することが可能になった。フラッシュメモリーは、書込み可能回数がFeRAMに比べ非常に少なく、書戻し処理を電源オフ時などに制限する必要があったが、本実施形態では、不揮発性メモリー55としてFeRAMを使用するため、電源オフ時以外のプリンター11の稼働中においても不揮発性メモリー55へのデータDの書戻しを行うことができる。なお、電源オフ時には、書戻しタスク部91は、RAM54の第2記憶部132から読み出した最新のデータDを記憶素子47にも書き戻すようになっている。   Here, in this example in which the nonvolatile memory 55 is an FeRAM, the data storage capacity that can be stored in the nonvolatile memory 55 is relatively small compared to, for example, a flash memory. In the present embodiment, data stored in a nonvolatile memory (for example, a flash memory) is changed from data that has not been updated at all during printer operation (almost unchanged data) to data that has not been updated at all, as printing has been performed and time has elapsed. The data is roughly divided into data to be updated (variable data), and a substantial part of the invariant data is stored in the host storage unit 120M of the host device 120. For this reason, the capacity of the data D to be stored in the non-volatile memory 55 is reduced, and FeRAM can be used as the non-volatile memory 55. The flash memory has a very small number of writable times compared to FeRAM, and it was necessary to limit the write-back processing when the power was turned off. However, in this embodiment, since FeRAM is used as the nonvolatile memory 55, the power is turned off. The data D can be written back to the non-volatile memory 55 even during operation of the printer 11 at other times. When the power is turned off, the write-back task unit 91 writes the latest data D read from the second storage unit 132 of the RAM 54 back to the storage element 47.

図6は、書込み処理、コピー処理、書戻し処理を説明するブロック図である。電源オン時には、ROM53のプログラムデータ等がRAM54のプログラムデータ記憶部130に書き込まれ、CPU51がそのうちブートプログラムを実行することによりリアルタイムOS71が起動される。このリアルタイムOS71が起動された最初に、書込みタスク部91が起動される。図6に示すように、電源オン時に書込みタスク部91により不揮発性メモリー55からRAM54の第1記憶部131へのデータDの書込み処理が行われる(図6中の(1))(書込み段階)。すなわち、書込みタスク部91は、前回の電源オフ時(電源遮断時)に不揮発性メモリー55に保存されたデータDを、その不揮発性メモリー55から読み出し、その読み出したデータDをRAM54の第1記憶部131に書き込む。   FIG. 6 is a block diagram for explaining write processing, copy processing, and write-back processing. When the power is turned on, the program data of the ROM 53 is written into the program data storage unit 130 of the RAM 54, and the real time OS 71 is started when the CPU 51 executes the boot program. The write task unit 91 is activated first when the real-time OS 71 is activated. As shown in FIG. 6, when the power is turned on, the write task unit 91 performs a write process of data D from the nonvolatile memory 55 to the first storage unit 131 of the RAM 54 ((1) in FIG. 6) (write stage). . That is, the write task unit 91 reads the data D stored in the nonvolatile memory 55 when the power is turned off (when the power is cut off) from the nonvolatile memory 55 and stores the read data D in the first memory of the RAM 54. Write to the unit 131.

書込みタスク部91は、この電源オン時の書込み処理のときに限り、書込み処理に続けてコピー処理も行い、第1記憶部131のデータDを第2記憶部132にコピーする(図6中の(2))(コピー段階)。その後、プリンター11が待機状態になると、各タスク部81〜92の中で一番優先順位の低い書戻しタスク部92が起動される。そして、書戻しタスク部92は、第2記憶部132のデータDを不揮発性メモリー55に書き戻す(図6中の(3))(書戻し段階)。書戻しタスク部92は、データDを全て書戻し、書戻し処理を完了すると、書戻し完了通知を書込みタスク部91へ送る。書込みタスク部91は、書戻し完了通知を受け付けると起動し、第1記憶部131から第2記憶部132へデータDをコピーするコピー処理を行う(図6中の(2))。こうしてプリンター11が待機状態になる度に、書戻しタスク部92が起動し、第2記憶部132のデータDを不揮発性メモリー55に書戻す(図6中の(3))。この書戻し完了の度に書戻しタスク部91から送られてくる書戻し完了通知を受け付ける度に書込みタスク部91は起動し、前回コピー時と今回コピー時の間の期間に更新された第1記憶部131のデータDを、第2記憶部132へコピーする(図6中の(2))。   The write task unit 91 also performs a copy process subsequent to the write process only during the write process when the power is turned on, and copies the data D in the first storage unit 131 to the second storage unit 132 (in FIG. 6). (2)) (copying stage). Thereafter, when the printer 11 enters a standby state, the write-back task unit 92 having the lowest priority among the task units 81 to 92 is activated. Then, the write-back task unit 92 writes the data D in the second storage unit 132 back to the nonvolatile memory 55 ((3) in FIG. 6) (write-back stage). The write-back task unit 92 writes back all the data D, and sends a write-back completion notification to the write task unit 91 when the write-back process is completed. The write task unit 91 is activated when a write back completion notification is received, and performs a copy process for copying the data D from the first storage unit 131 to the second storage unit 132 ((2) in FIG. 6). Thus, every time the printer 11 enters the standby state, the write-back task unit 92 is activated, and the data D in the second storage unit 132 is written back to the nonvolatile memory 55 ((3) in FIG. 6). The write task unit 91 is activated each time a write-back completion notification sent from the write-back task unit 91 is received every time this write-back is completed, and the first storage unit updated in the period between the previous copy and the current copy The data D 131 is copied to the second storage unit 132 ((2) in FIG. 6).

以下、プリンター11において不揮発性メモリー55とRAM54との間におけるデータDの書込み、コピー、書戻しによって行われるデータ記憶処理を、図5〜図8等を参照しつつ説明する。図7及び図8は、書込みタスク部91、書戻しタスク部92及び印刷系タスク部81〜89の処理の流れを示すシーケンス図である。ここで、図7は通常時のデータ記憶処理の流れを示すシーケンス図、図8は電源遮断時のデータ記憶処理の流れを示すシーケンス図である。まず電源オンから電源オフ前までの通常時のデータ記憶処理について図5(a)、図6及び図7等を用いて説明する。   Hereinafter, data storage processing performed by writing, copying, and writing back data D between the nonvolatile memory 55 and the RAM 54 in the printer 11 will be described with reference to FIGS. 7 and 8 are sequence diagrams showing the flow of processing of the writing task unit 91, the writing back task unit 92, and the printing system task units 81-89. Here, FIG. 7 is a sequence diagram showing a flow of data storage processing at the normal time, and FIG. 8 is a sequence diagram showing a flow of data storage processing at the time of power-off. First, a normal data storage process from power-on to power-off will be described with reference to FIG. 5A, FIG. 6, FIG.

図7に示すように、電源オン時には、ROM53のプログラムデータ等がRAM54のプログラムデータ記憶部130に書き込まれ、CPU51がそのうちブートプログラム等を実行することによりリアルタイムOS71が起動される。このとき、リアルタイムOS71は、図5(a)に示す優先順位管理テーブル97を設定する。通常時に、タスク管理部74が参照する優先順位管理テーブル97は、書込みタスクが印刷系タスクよりも高い優先順位であり、かつ書戻しタスクが印刷系タスクよりも低い優先順位に設定されている。このリアルタイムOS71の起動後、最初に書込みタスク部91が起動され、書込みタスク部91は、不揮発性メモリー55のデータDを、RAM54の第1記憶部131に書き込む書込み処理を行う(図6、図7中の(1))(書込み段階)。   As shown in FIG. 7, when the power is turned on, the program data of the ROM 53 is written into the program data storage unit 130 of the RAM 54, and the real time OS 71 is started when the CPU 51 executes the boot program. At this time, the real-time OS 71 sets the priority management table 97 shown in FIG. In the normal time, the priority management table 97 referred to by the task management unit 74 is such that the writing task has a higher priority than the printing task, and the writing back task has a lower priority than the printing task. After the activation of the real-time OS 71, the write task unit 91 is first activated, and the write task unit 91 performs a write process for writing the data D of the nonvolatile memory 55 into the first storage unit 131 of the RAM 54 (FIGS. 6 and 6). 7 (1)) (writing stage).

書込みタスク部91は、この電源オン時に限り、書込み処理に続けてコピー処理も行う(図6中の(2)、図7中の最初の(2))(コピー段階)。すなわち、書込みタスク部91は、第1記憶部131のデータDを第2記憶部132にコピーする。この電源オン時には、プリンター11はメカニカル機構44の初期化処理を行う。この初期化処理の前又は後にプリンター11が待機状態になると、各タスク部81〜92の中で一番優先順位の低い書戻しタスク部92が起動される。そして、書戻しタスク部92は、第2記憶部132のデータDを不揮発性メモリー55に書き戻す(図6、図7中の(3))(書戻し段階)。書戻しタスク部92は、データDを全て書戻すと、書戻し完了通知を書込みタスク部91へ送る。書込みタスク部91は、書戻し完了通知を受け付けると起動し、第1記憶部131のデータDを第2記憶部132へコピーするコピー処理を行う(図6中の(2)、図7中の2回目以降の(2))。   Only when the power is turned on, the write task unit 91 performs a copy process after the write process ((2) in FIG. 6, first (2) in FIG. 7) (copy stage). That is, the write task unit 91 copies the data D in the first storage unit 131 to the second storage unit 132. When the power is turned on, the printer 11 performs initialization processing of the mechanical mechanism 44. When the printer 11 enters a standby state before or after the initialization process, the write-back task unit 92 having the lowest priority among the task units 81 to 92 is activated. Then, the write-back task unit 92 writes the data D in the second storage unit 132 back to the nonvolatile memory 55 ((3) in FIGS. 6 and 7) (write-back stage). When all the data D is written back, the write-back task unit 92 sends a write-back completion notification to the write task unit 91. The write task unit 91 is activated upon receiving a write-back completion notification, and performs a copy process for copying the data D in the first storage unit 131 to the second storage unit 132 ((2) in FIG. 6 and FIG. 7). (2) after the second time).

こうしてプリンター11が待機状態にある間は、書込みタスク部91による第1記憶部131のデータDの第2記憶部132へのコピー(図6中の(2))と、書戻しタスク部92による第2記憶部132のデータDの不揮発性メモリー55への書戻し(図6中の(3))とが繰り返し行われる。   In this way, while the printer 11 is in the standby state, the writing task unit 91 copies the data D of the first storage unit 131 to the second storage unit 132 ((2) in FIG. 6), and the write-back task unit 92 The data D in the second storage unit 132 is repeatedly written back to the nonvolatile memory 55 ((3) in FIG. 6).

例えばプリンター11の電源オン後、ユーザーが画像生成装置110で印刷実行の指示操作を行うと、ホスト装置120からプリンター11へ印刷データPDが送られてくる。プリンター11へ送られてきた印刷データPDは、コントローラー40内のリアルタイムOS71によって起動された通信部82が受信する。以下、リアルタイムOS71は、印刷系タスク部81〜89のうち、記録処理系のデータの流れ、コマンド処理系のコマンドの流れに従って起動させるべき一つのタスク部を選択的に切り替えることにより、印刷系タスク部81〜89に、記録系処理及びコマンド処理(搬送系・キャリッジ駆動系処理)を含む印刷系処理をマルチタスク処理で実施させる。なお、印刷系タスク部81〜89が印刷系処理を行う段階が、印刷処理段階に相当する。そして、印刷系タスク部81〜89が、印刷処理段階の処理を行った結果として実施される印刷動作により更新される印刷関連情報を、印刷系タスク部81〜89のうち少なくとも一部のタスク部が取得する段階が、印刷制御段階に相当する。   For example, after the printer 11 is turned on, when the user performs a print execution instruction operation on the image generation apparatus 110, print data PD is sent from the host apparatus 120 to the printer 11. The print data PD sent to the printer 11 is received by the communication unit 82 activated by the real-time OS 71 in the controller 40. Hereinafter, the real-time OS 71 selectively switches one task unit to be activated in accordance with the flow of data of the recording processing system and the command flow of the command processing system among the printing system task units 81 to 89, thereby The units 81 to 89 are caused to perform printing system processing including recording system processing and command processing (conveyance system / carriage driving system processing) by multitask processing. The stage where the printing system task units 81 to 89 perform the printing system process corresponds to the printing process stage. Then, the print-related task units 81 to 89 update the print-related information updated by the printing operation performed as a result of performing the process of the print processing stage, at least a part of the task units of the print-related task units 81 to 89. The step acquired by corresponds to the print control step.

記録系処理では、通信部82が受信した印刷データPDの画像処理部83による解凍処理、印刷画像データ(プレーンデータ)からヘッド制御データを生成する画像処理、ヘッド制御データをヘッド制御部88がHCU45を介して記録ヘッド29へ転送する転送処理などが行われる。搬送系・CR駆動系のコマンド処理では、コマンド解析部84による印刷言語記述コマンドの解析(コマンド解析)、印刷タスク部85によるコマンド処理、メカ制御部86によるコマンドのキュー管理及びメカシーケンスに従ったコマンドの出力タイミング制御、メカ通信部87によるコマンドのメカコントローラー43への送信が行われる。このように搬送系及びキャリッジ駆動系のコマンドに従ったメカニカル機構44のメカシーケンス制御と、記録ヘッド29のインク噴射制御とが、適切なタイミングで行われることで、プリンター11は印刷データPDに基づく画像をシート13に印刷する印刷動作を行う。   In the recording system processing, the print data PD received by the communication unit 82 is decompressed by the image processing unit 83, the image processing for generating head control data from the print image data (plane data), and the head control unit 88 outputs the head control data to the HCU 45. For example, a transfer process for transferring to the recording head 29 is performed. In the command processing of the transport system / CR driving system, the command analysis unit 84 analyzes the print language description command (command analysis), the command processing by the print task unit 85, the command queue management by the mechanical control unit 86, and the mechanical sequence. Command output timing control and transmission of commands to the mechanical controller 43 by the mechanical communication unit 87 are performed. As described above, the mechanical sequence control of the mechanical mechanism 44 according to the commands of the transport system and the carriage drive system and the ink ejection control of the recording head 29 are performed at appropriate timing, so that the printer 11 is based on the print data PD. A printing operation for printing an image on the sheet 13 is performed.

この印刷動作では、キャリッジ起動コマンドに基づき第1CRモーター62が駆動されてキャリッジ27が主走査方向Xへ移動し、その移動途中で記録ヘッド29内のヘッド駆動回路がヘッド制御データに基づいて噴射駆動素子を駆動してノズルからインク滴を噴射させることにより1パス分の印刷が行われる。そして、キャリッジ27が1パス分の移動を終える度に第1CRモーター62が駆動されてキャリッジ27が副走査方向に移動し、これを複数パス繰り返すことで1頁分の印刷が行われる。1頁分の印刷を終えると、メカコントローラー43はコントローラー40からの吸着解除コマンドに基づいて吸引装置30の吸引を開放した後、搬送コマンドに基づいて搬送モーター61を駆動してシート13を所定の搬送ピッチだけ搬送させる。また、印刷中の所定時期には、キャリッジ27をフラッシング位置に移動させ、記録ヘッド29のノズルからキャップ33(廃液受容器)に向けて、印刷とは関係のないインク滴を噴射することで、ノズルの目詰まりを予防又は解消するフラッシング(空吐出)が行われる。また、前回のクリーニング実施時期からの経過時間が一定時間を経過したとき、又は電源オン時にその経過時間が一定時間を超えていたときには、メンテナンス装置32を駆動して、記録ヘッド29のノズルからインクを強制的に排出させるクリーニングが行われる。このクリーニングは、昇降装置34の駆動によってキャップ33を記録ヘッド29のノズル形成面に当接させたキャッピング状態下で、不図示の吸引ポンプを駆動させてキャップ33内に負圧を導入することにより行われる。なお、フラッシング動作やクリーニング動作も、その一部は、印刷系タスク部81〜89の一部が起動されることにより行われる。   In this printing operation, the first CR motor 62 is driven based on the carriage activation command to move the carriage 27 in the main scanning direction X, and the head driving circuit in the recording head 29 is ejected based on the head control data during the movement. Printing for one pass is performed by driving the element and ejecting ink droplets from the nozzles. Each time the carriage 27 finishes moving for one pass, the first CR motor 62 is driven to move the carriage 27 in the sub-scanning direction. By repeating this for a plurality of passes, printing for one page is performed. When printing for one page is completed, the mechanical controller 43 releases the suction of the suction device 30 based on the suction release command from the controller 40, and then drives the transport motor 61 based on the transport command to move the sheet 13 to a predetermined level. Transport only the transport pitch. At a predetermined time during printing, the carriage 27 is moved to the flushing position, and ink droplets unrelated to printing are ejected from the nozzles of the recording head 29 toward the cap 33 (waste liquid receiver). Flushing (empty discharge) is performed to prevent or eliminate nozzle clogging. Further, when the elapsed time from the previous cleaning execution time has passed a certain time, or when the elapsed time has exceeded a certain time when the power is turned on, the maintenance device 32 is driven and ink is discharged from the nozzles of the recording head 29. Cleaning for forcibly discharging is performed. This cleaning is performed by driving a suction pump (not shown) and introducing a negative pressure into the cap 33 in a capping state in which the cap 33 is brought into contact with the nozzle formation surface of the recording head 29 by driving the lifting device 34. Done. Note that a part of the flushing operation and the cleaning operation are also performed when a part of the printing system task units 81 to 89 is activated.

インク管理部89は、印刷動作、フラッシング動作、クリーニング動作などのインクの消費を伴う所定動作が行われるときには、例えばその動作の途中(例えば動作の切れ目)又は動作の直後など予め設定された所定時期に、演算部95にインク消費量及びインク残量の演算を行わせる。例えばインク残量は、今回算出したインク消費量を前回のインク残量から減算して求められる。インク管理部89は、RAM54の第1記憶部131のデータDのうち前回のインク消費量及びインク残量等のデータを、今回のインク消費量及びインク残量等のデータに書き替える。   When a predetermined operation involving consumption of ink such as a printing operation, a flushing operation, or a cleaning operation is performed, the ink management unit 89 is set at a predetermined time, for example, in the middle of the operation (for example, an operation break) or immediately after the operation. In addition, the calculation unit 95 calculates the ink consumption amount and the remaining ink amount. For example, the remaining ink amount is obtained by subtracting the ink consumption calculated this time from the previous ink remaining amount. The ink management unit 89 rewrites the data such as the previous ink consumption amount and the remaining ink amount in the data D of the first storage unit 131 of the RAM 54 to the data such as the current ink consumption amount and the remaining ink amount.

また、インク管理部89は、電源オン時やインクカートリッジ交換時などの所定時期に、記憶素子47にアクセスし、インクカートリッジICの装着状態(装着外れ、装着間違い(色間違い)の有無など)、使用期限、インクエンド(インク切れ)などを検出する。例えば記憶素子47にアクセスできなければ装着外れであると検出される。また、記憶素子47には、インク色、使用期限、インク残量等のインクに関する各種情報が記憶されている。インク管理部89は、記憶素子47から読み出したインク色とそのときアクセスした装着位置に装着されるべきインクカートリッジのインク色とが対応していなければ、装着間違い(色間違い)であると検出する。また、インク管理部89は、記憶素子47から読み出した使用日限情報とリアルタイムクロック(図示せず)の時刻情報とを基にインクカートリッジ使用期限残り時間を演算する。インク管理部89は、このインクカートリッジ使用期限残り時間が「0」未満の値であると、使用日限エラーであると検出する。さらにインク管理部89は、記憶素子47から読み出したインク残量が、予め決められたインクエンド情報の値以下になっていると、インク切れ(インクエンド)であると検出する。なお、記憶素子47のインク残量は、初期には満充填(フル)のインク残量が設定され、少なくとも電源オフの度に第1記憶部131のインク残量等が書き込まれることで更新される。   Further, the ink management unit 89 accesses the storage element 47 at a predetermined time such as when the power is turned on or when the ink cartridge is replaced, and the ink cartridge IC is mounted (whether it is unmounted, whether there is a mounting error (color error), etc.), The expiration date, ink end (out of ink), etc. are detected. For example, if the storage element 47 cannot be accessed, it is detected that the storage element 47 is not attached. In addition, the storage element 47 stores various types of information relating to ink such as ink color, expiration date, and ink remaining amount. If the ink color read from the storage element 47 does not correspond to the ink color of the ink cartridge to be mounted at the mounting position accessed at that time, the ink management unit 89 detects a mounting error (color error). . Further, the ink management unit 89 calculates the remaining ink cartridge expiration date based on the usage date information read from the storage element 47 and the time information of the real time clock (not shown). The ink management unit 89 detects that the ink cartridge expiration date is less than “0” as a usage date limit error. Further, the ink management unit 89 detects that the ink has run out (ink end) when the ink remaining amount read from the storage element 47 is equal to or less than a predetermined value of ink end information. The ink remaining amount of the storage element 47 is updated by initially setting a full ink remaining amount and writing the ink remaining amount of the first storage unit 131 at least every time the power is turned off. The

インク管理部89は、RAM54の第1記憶部131にアクセスして、インク関連情報(インク消費量、インク残量、インク切れ情報、使用期限残り時間、装着外れ、装着間違い、使用日限エラー情報など)を、第1記憶部131の所定記憶領域にアクセスして更新する。   The ink management unit 89 accesses the first storage unit 131 of the RAM 54 to provide ink-related information (ink consumption, remaining ink amount, out-of-ink information, remaining usage time, unloading, mounting error, and usage date error information. Etc.) is updated by accessing a predetermined storage area of the first storage unit 131.

また、ジョブ制御部93は、ホスト装置120から指示された印刷ジョブに関するジョブ情報を取得する。ジョブ制御部93は、メカコントローラー43から取得した搬送系の稼働情報を基にジョブ毎の印刷長又は印刷枚数を求める。さらにジョブ制御部93は、その印刷長又は印刷枚数を基に課金情報を算出する。そして、ジョブ制御部93は、課金情報を含むこれらのジョブ情報を、第1記憶部131の所定記憶領域にアクセスして更新する。   In addition, the job control unit 93 acquires job information related to a print job instructed from the host device 120. The job control unit 93 obtains the print length or the number of prints for each job based on the operation information of the transport system acquired from the mechanical controller 43. Further, the job control unit 93 calculates charging information based on the print length or the number of prints. Then, the job control unit 93 accesses the predetermined storage area of the first storage unit 131 to update the job information including the billing information.

また、メカコントローラー43には、搬送系のエンコーダー66出力パルス数を計数してシート13の搬送量に相当する計数値を計数する不図示のカウンターが設けられ、印刷中におけるそのカウンターの計数値の変化量を基に、印刷されたシート13の長さである印刷長又は印刷枚数の情報が取得される。また、メカコントローラー43は、搬送系、キャリッジ駆動系及びクリーニング系などに関する種々のメカパラメーター情報を取得する。メカパラメーター情報には、例えば搬送状態(位置・速度等)、キャリッジ駆動状態(位置・速度等)、クリーニング状態などのステータス情報の他、搬送系、キャリッジ駆動系、クリーニング系の各種モーター等の駆動時間や駆動回転数などの稼働履歴情報が含まれる。この種のメカパラメーター情報はメカコントローラー43からコントローラー40へ定期的に送信される。このメカパラメーター情報はコントローラー40内のデバイス制御部94が受信する。また、デバイス制御部94は、リアルタイムクロックの時刻情報を基に、プリンター11の稼働時間を取得する。そして、デバイス制御部94は、メカコントローラー43から取得した情報にこの稼働時間等を加えたメカパラメーター情報を、RAM54の第1記憶部131にアクセスして書き替える。   The mechanical controller 43 is provided with a counter (not shown) that counts the number of pulses output from the encoder 66 of the transport system and counts the count value corresponding to the transport amount of the sheet 13. Based on the amount of change, information on the print length or the number of printed sheets, which is the length of the printed sheet 13, is acquired. Further, the mechanical controller 43 acquires various mechanical parameter information related to the transport system, carriage drive system, cleaning system, and the like. Mechanical parameter information includes, for example, status information such as transport status (position / speed, etc.), carriage drive status (position / speed, etc.), and cleaning status, as well as driving of various motors in the transport system, carriage drive system, and cleaning system. Operation history information such as time and drive speed is included. This type of mechanical parameter information is periodically transmitted from the mechanical controller 43 to the controller 40. This mechanical parameter information is received by the device controller 94 in the controller 40. In addition, the device control unit 94 acquires the operating time of the printer 11 based on the time information of the real time clock. Then, the device control unit 94 accesses the first storage unit 131 of the RAM 54 and rewrites the mechanical parameter information obtained by adding the operation time and the like to the information acquired from the mechanical controller 43.

また、プリンター11は、種々の調整値(補正値)を取得するための調整機能を備える。例えば、ある調整機能はその測定部を動作させて実測値を計測し、初期設定値と実測値との差分を基に、初期設定値を調整(補正)するための調整値(補正値)を取得する。この種の調整値には、主走査方向Xにおけるフラッシング開始位置・終了位置、キャップ位置、印刷時の噴射開始位置を決める基準位置、搬送基準位置、シート温度に応じた伸びを考慮して搬送量を補正するための調整値(補正値)などがある。ここで、シート温度は、温度センサー67により検出され、メカコントローラー43からコントローラー40へ送信される。印刷タスク部85は、検出されたシート温度に応じた搬送調整値を演算する。   The printer 11 also includes an adjustment function for acquiring various adjustment values (correction values). For example, an adjustment function operates the measurement unit to measure an actual measurement value, and based on the difference between the initial setting value and the actual measurement value, an adjustment value (correction value) for adjusting (correcting) the initial setting value is obtained. get. This type of adjustment value takes into consideration the flushing start / end positions in the main scanning direction X, the cap position, the reference position for determining the ejection start position during printing, the conveyance reference position, and the amount of conveyance in consideration of the elongation corresponding to the sheet temperature. There is an adjustment value (correction value) for correcting. Here, the sheet temperature is detected by the temperature sensor 67 and transmitted from the mechanical controller 43 to the controller 40. The print task unit 85 calculates a conveyance adjustment value corresponding to the detected sheet temperature.

また、他の調整機能は、テストパターンを印刷し、そのテストパターンの中から最適な印刷結果であるとユーザーが判断して入力した1つのテストパターンに対応する番号を基に、その番号に対応する噴射タイミング調整値を取得する。この種の調整値には、一方向印刷時における記録ヘッド29の主走査方向Xの噴射タイミングを調整するUni-d調整値、双方向印刷におけるキャリッジ27の往動時と復動時の噴射タイミングを調整するBi-d調整値がある。このUni-d調整値又はBi-d調整値を用いて、シート厚(例えば紙厚)に応じた噴射タイミングを演算できるようになっている。この種の調整情報は、ユーザーの操作によりプリンター11の調整機能が動作したとき、又はユーザーの操作で最適なテストパターンなど最適な指標に対応する番号等が入力されたときに更新される。この更新された調整情報は、印刷タスク部85がRAM54の第1記憶部131にアクセスすることで更新される。これらの調整情報データは、プリンター11の出荷検査段階、プリンター11をユーザーが初めて使用する際の最初の起動時、ユーザーが調整機構を動作させて行う調整作業時、故障修理のメンテナンス時などに設定され、一度設定されると、しばらくは更新されることのない種類のデータである。このようにデータDには、プリンター11の稼働中に比較的頻繁に更新されるインク関連情報、ジョブ情報、メカパラメーター情報及びヘッド情報等を含む稼働情報データD1と、プリンター11の稼働中もほとんど更新されることのない(更新頻度の低い)調整情報や解析用のエラー情報等の固定データD2とがある。   In addition, other adjustment functions can print test patterns and respond to the numbers based on the number corresponding to one test pattern entered by the user, judging that the print result is optimal from the test pattern. The injection timing adjustment value to be acquired is acquired. This type of adjustment value includes a Uni-d adjustment value for adjusting the ejection timing in the main scanning direction X of the recording head 29 during unidirectional printing, and the ejection timing during forward and backward movement of the carriage 27 in bidirectional printing. There is a Bi-d adjustment value for adjusting. Using this Uni-d adjustment value or Bi-d adjustment value, the ejection timing according to the sheet thickness (for example, paper thickness) can be calculated. This type of adjustment information is updated when the adjustment function of the printer 11 is operated by a user operation or when a number corresponding to an optimal index such as an optimal test pattern is input by the user operation. The updated adjustment information is updated when the print task unit 85 accesses the first storage unit 131 of the RAM 54. These adjustment information data are set at the shipping inspection stage of the printer 11, at the first start-up when the user uses the printer 11 for the first time, at the adjustment work performed by the user operating the adjustment mechanism, at the time of maintenance for failure repair, etc. Once set, the data is not updated for a while. As described above, the data D includes operation information data D1 including ink-related information, job information, mechanical parameter information, head information, and the like that are updated relatively frequently during the operation of the printer 11, and almost during the operation of the printer 11. There is fixed data D2 such as adjustment information that is not updated (low update frequency) and error information for analysis.

また、緊急時タスク部90は、各種の検出機能によって検出された緊急情報を第1記憶部131の所定記憶領域に書き込むことで更新する。
緊急タスク部90は、印刷動作上のエラーが発生すると、そのエラー内容の解析が可能な程度の情報を含むエラー情報を、RAM54の第1記憶部131に書き込む。本実施形態では、ホスト装置120はインターネットを介してユーザーサポート用のサーバー(図示せず)に接続されており、エラー情報はホスト装置120からサーバーに送信されるようになっている。このサーバーは、エラー情報を解析してエラーの原因をつきとめたり、プリンター11をエラーから回復させる方法を探し出したりする処理を行う。
The emergency task unit 90 updates the emergency information detected by various detection functions by writing the emergency information in a predetermined storage area of the first storage unit 131.
When an error in the printing operation occurs, the emergency task unit 90 writes error information including information to the extent that the error content can be analyzed in the first storage unit 131 of the RAM 54. In this embodiment, the host device 120 is connected to a user support server (not shown) via the Internet, and error information is transmitted from the host device 120 to the server. This server performs a process of analyzing error information to find out the cause of the error and searching for a method for recovering the printer 11 from the error.

こうして印刷系タスク部81〜89が起動される印刷処理時には、適宜のタイミングで、第1記憶部131のデータDが更新される(データ更新段階)。なお、本実施形態では、インク関連情報、ジョブ情報、メカパラメーター情報及びヘッド情報が、印刷動作によって更新される印刷関連情報に相当する。また、調整情報及びエラー情報は、印刷動作によって更新される訳ではないが、不揮発性メモリー55(第1の記憶手段)に書き込まれるデータの一部を構成する。   Thus, during the printing process in which the printing task units 81 to 89 are activated, the data D in the first storage unit 131 is updated at an appropriate timing (data update stage). In this embodiment, ink-related information, job information, mechanical parameter information, and head information correspond to printing-related information that is updated by a printing operation. The adjustment information and error information are not updated by the printing operation, but constitute part of the data written in the nonvolatile memory 55 (first storage means).

本実施形態では、ホスト装置120のホスト制御部125は、定期的又は不定期にコントローラー40へデータDの送信を要求する。コントローラー40はその要求に応答する形で、印刷動作やクリーニング動作等の空いた時期や電源オフ時の終了処理の際に、RAM54の第1記憶部131又は第2記憶部132のデータDをホスト制御部125へ送信する。ホスト制御部125は、受信したデータDをホスト記憶部120Mに保存する。よって、ホスト装置120のホスト記憶部120Mにも、書戻し頻度に比べ低い頻度ではあるもののデータDが定期又は不定期に更新される。また、データDの一部又は全部がホスト装置120からインターネットを経由してプリンターメーカーのサーバーに送られ、プリンター11の稼働状況の解析などに用いられるようになっている。   In the present embodiment, the host control unit 125 of the host device 120 requests the controller 40 to transmit data D regularly or irregularly. In response to the request, the controller 40 stores the data D in the first storage unit 131 or the second storage unit 132 of the RAM 54 at the time when the printing operation, the cleaning operation, etc. are available or when the power is turned off. It transmits to the control part 125. The host control unit 125 stores the received data D in the host storage unit 120M. Therefore, the data D is updated regularly or irregularly in the host storage unit 120M of the host device 120, although the frequency is lower than the write-back frequency. Also, part or all of the data D is sent from the host device 120 to the server of the printer manufacturer via the Internet and used for analyzing the operating status of the printer 11 and the like.

印刷処理や印刷動作が行われているときは、優先順位の一番低い書戻しタスク部92が起動されることはない。このため、書込みタスク部91が書戻し完了通知を受け付けることがないので、書込みタスク部91によるデータDのコピー処理は行われない。   When print processing or printing operation is being performed, the write-back task unit 92 with the lowest priority is not activated. For this reason, since the write task unit 91 does not accept the write-back completion notification, the copy process of the data D by the write task unit 91 is not performed.

印刷動作もクリーニング動作も行われていない待機状態になると、書戻しタスク部92が起動される。そして、書戻しタスク部92は、第2記憶部132のデータDを不揮発性メモリー55へ書き戻す(図7中の(3))。このときのデータDは、最後に書き戻しタスク部92がコピーしたものなので、印刷動作前の旧いデータである。しかし、書込みタスク部91から書戻し完了通知を受け付けると、書込みタスク部91は、第1記憶部131の最新のデータDを第2記憶部132へコピーする(図7中の(2))。このコピー処理後、再び起動された書戻しタスク部92が第2記憶部132の最新のデータDを不揮発性メモリー55へ書き戻す。こうしてプリンター11が待機状態になる度にデータDの書戻しが行われる。   In a standby state in which neither a printing operation nor a cleaning operation is performed, the write-back task unit 92 is activated. Then, the write-back task unit 92 writes the data D in the second storage unit 132 back to the nonvolatile memory 55 ((3) in FIG. 7). The data D at this time is the old data before the printing operation because it was last copied by the write-back task unit 92. However, when a write back completion notification is received from the write task unit 91, the write task unit 91 copies the latest data D in the first storage unit 131 to the second storage unit 132 ((2) in FIG. 7). After this copy processing, the rewritten task unit 92 that is activated again writes the latest data D in the second storage unit 132 back to the nonvolatile memory 55. In this way, data D is written back every time the printer 11 enters the standby state.

ここで、書込みタスク部91は、印刷系タスク部81〜89よりも優先順位が高いので、コピー処理の途中に印刷系タスク部81〜89の割込みが入りコピー元データが書き替えられる事態は発生しない。また、第2記憶部132が、印刷系タスク部81〜89及び緊急タスク部90による書込みアクセスが禁止されているので、書戻しタスク部92による書戻し途中で書戻し元データが印刷系タスク部81〜89により書き替えられる事態が回避される。さらに、書込みタスク部91の起動条件は書戻しタスク部92がデータDを書戻し終わったときの書戻し完了通知を受け付けたときであるので、書戻しタスク部92による書戻し途中で、コピー処理が割り込んで書戻し元データを書き替えてしまう事態を回避できる。この結果、書戻しタスク部92により、RAM54から不揮発性メモリー55へ正しいデータDを書き戻すことができる。   Here, since the writing task unit 91 has a higher priority than the printing system task units 81 to 89, an interruption of the printing system task units 81 to 89 occurs during the copy process, and the copy source data is rewritten. do not do. In addition, since the second storage unit 132 is prohibited from being accessed by the print task units 81 to 89 and the emergency task unit 90, the write-back source data is printed during the write-back by the write-back task unit 92. The situation of being rewritten by 81 to 89 is avoided. Further, since the activation condition of the write task unit 91 is when the write back task unit 92 receives a write back completion notification when the data D has been written back, a copy process is performed during the write back by the write back task unit 92. It is possible to avoid the situation where the data is interrupted and the original data is rewritten. As a result, the write-back task unit 92 can write back the correct data D from the RAM 54 to the nonvolatile memory 55.

次に、電源遮断(電源オフ)時におけるデータ記憶処理について、図5及び図8等を参照しつつ説明する。なお、電源遮断(電源オフ)には、ユーザーが電源スイッチ65をオフ操作したときの電源遮断(正常電源オフ)と、電源プラグ抜けや電源故障などの不意に発生する電源遮断(異常電源オフ)とがある。なお、本実施形態では、無停電電源48が設けられており、停電時にも電力が供給されるので、電源プラグ抜けや電源故障などが発生した場合に、異常電源オフが発生することになる。電源遮断時のデータ記憶処理において、正常電源オフと異常電源オフとの違いは、図8に示す終了処理(図8中の(15))の有無である。図8の例は、正常電源オフ時におけるデータ記憶処理を示すが、図8において終了処理を廃止したものが異常電源オフ時におけるデータ記憶処理になる。   Next, data storage processing at the time of power shutdown (power off) will be described with reference to FIGS. In addition, power off (power off) includes power off when the user turns off the power switch 65 (normal power off), and unexpected power off (abnormal power off) such as power plug disconnection or power failure. There is. In the present embodiment, the uninterruptible power supply 48 is provided, and power is supplied even at the time of a power failure. Therefore, when a power plug is disconnected or a power failure occurs, an abnormal power off occurs. In the data storage process at the time of power-off, the difference between normal power-off and abnormal power-off is the presence / absence of end processing ((15) in FIG. 8) shown in FIG. The example of FIG. 8 shows the data storage process when the normal power is turned off, but the data storage process when the end process is abolished in FIG. 8 is the data storage process when the abnormal power is turned off.

ユーザーが電源スイッチ65を操作した際の正常電源オフ(正常電源遮断)は、オフ信号がコントローラー40内に入力されることにより検出される。一方、電源プラグ抜けや電源故障などが原因で発生した異常電源オフ(異常電源遮断)は、コントローラー40内の緊急タスク部90の電源遮断検出機能により検出される。   Normal power-off (normal power-off) when the user operates the power switch 65 is detected by inputting an off signal into the controller 40. On the other hand, an abnormal power off (abnormal power interruption) caused by a power plug disconnection or power failure is detected by the power interruption detection function of the emergency task unit 90 in the controller 40.

図8に示すように、正常又は異常の電源オフ(電源遮断)が検出されると、緊急タスク部90が起動される。すなわち、リアルタイムOS71は、起動要求を受け付けているタスク部のうち一番優先順位の高い緊急タスク部90を起動させる。例えば電源遮断が印刷動作中に発生する場合もあり得るが、印刷系タスク部81〜89より優先順位が高いため、緊急タスク部90が起動される。起動された緊急タスク部90は、まずリアルタイムOS71に優先順位変更要求を行う(図8中の(11))。この優先順位変更要求はリアルタイムOS71内の優先順位変更部73が受け付け、優先順位変更要求を受け付けた優先順位変更部73は、タスク管理部74によって参照される優先順位管理テーブル97を、図5(a)に示す通常時のタスク優先順から図5(b)に示す電源オフ時のタスク優先順に変更するタスク優先順位変更処理を行う(図8中の(12))。優先順位変更部73は、例えば優先順位管理テーブル97のタスクの順番を並び替える処理を行う。このタスク優先順位変更処理は、複数用意された優先順位管理テーブル97のうち参照すべきテーブルを図5(b)に示すものに切り替える処理としてもよい。   As shown in FIG. 8, when a normal or abnormal power-off (power-off) is detected, the emergency task unit 90 is activated. That is, the real-time OS 71 activates the emergency task unit 90 having the highest priority among the task units that have accepted the activation request. For example, the power shutdown may occur during the printing operation. However, since the priority is higher than the printing task units 81 to 89, the emergency task unit 90 is activated. The activated emergency task unit 90 first makes a priority change request to the real-time OS 71 ((11) in FIG. 8). This priority change request is received by the priority change unit 73 in the real-time OS 71, and the priority change unit 73 that has received the priority change request stores the priority management table 97 referred to by the task management unit 74 in FIG. Task priority order changing processing for changing from the normal task priority order shown in a) to the task priority order in the power-off state shown in FIG. 5B is performed ((12) in FIG. 8). The priority changing unit 73 performs a process of rearranging the order of tasks in the priority management table 97, for example. This task priority order changing process may be a process of switching the table to be referred to among the plurality of prepared priority order management tables 97 to the one shown in FIG.

このタスク優先順位変更処理の結果、書込みタスク部91及び書戻しタスク部92の優先順位の関係を保持したまま、両タスク部91,92の優先順位が、印刷系タスク部81〜89よりも高くなる。つまり、書戻しタスク部92が、書込みタスク部91よりも低く、かつ印刷系タスク部81〜89よりも高い優先順位に変更される。   As a result of the task priority order changing process, the priority order of both task parts 91 and 92 is higher than that of the printing system task parts 81 to 89 while maintaining the priority order relationship between the writing task part 91 and the writing back task part 92. Become. That is, the write-back task unit 92 is changed to a priority lower than the write task unit 91 and higher than the print system task units 81 to 89.

このため、電源遮断(電源オフ)時には、仮にそのとき印刷動作中であっても、書戻しタスク部92が起動され、データDの書戻し処理が行われる。また、図8の例のように、この電源オフ(電源遮断)の際に、仮に書込みタスク部91がコピー処理中であった場合は、より優先順位の高い書込みタスク部91のコピー処理を終えた後に、次に優先順位の高い書戻しタスク部92が起動されて書戻し処理を行う(図8中の(13),(14))。この結果、書込みタスク部91によるコピー途中の電源遮断時に書戻しタスク部92が割り込んで、コピー途中のデータDを書き戻す事態が回避される。このため、電源遮断時において、書込みタスク部91によるコピーが完了した正しいデータDを不揮発性メモリー55に書き戻すことができる。   For this reason, when the power is shut off (power is turned off), even if the printing operation is being performed at that time, the write-back task unit 92 is activated, and the data D is written back. Also, as shown in the example of FIG. 8, if the writing task unit 91 is in the process of copying when the power is turned off (power is cut off), the copying process of the writing task unit 91 having a higher priority is finished. After that, the write-back task unit 92 with the next highest priority is activated to perform the write-back process ((13) and (14) in FIG. 8). As a result, a situation in which the write-back task unit 92 interrupts when the power is interrupted during copying by the writing task unit 91 and the data D being copied is written back is avoided. Therefore, correct data D that has been copied by the write task unit 91 can be written back to the nonvolatile memory 55 when the power is shut off.

正常電源オフ時の場合、書戻し処理を終えた書戻しタスク部92から書戻し完了通知を受け付けた緊急タスク部90が起動し、プリンター11の終了処理を行う。この終了処理は、電源オフ時にプリンター11を終了時にあるべき状態にする処理である。例えばキャリッジ27がホームポジションになければ、ホームポジションに移動させて記録ヘッド29をキャッピングする。その他、各種の動作部を初期位置に戻す処理などの終了動作を行う。緊急タスク部90は、終了処理を終わると、電源を遮断する。なお、正常電源オフ時は、電源遮断までの電力供給時間に余裕があるので、終了処理を先に行ってから、書戻しタスク部92によるデータDの書戻し処理を行ってもよい。   In the case of normal power-off, the emergency task unit 90 that has received the write-back completion notification from the write-back task unit 92 that has finished the write-back process is activated and performs the termination process of the printer 11. This termination process is a process for bringing the printer 11 into a desired state when the power is turned off. For example, if the carriage 27 is not at the home position, the recording head 29 is capped by moving to the home position. In addition, an end operation such as processing for returning various operation units to the initial position is performed. The emergency task unit 90 shuts off the power supply after completing the termination process. Note that when the power is normally off, there is a sufficient power supply time until the power is shut off, and therefore the write-back task unit 92 may perform the data D write-back process after the end process is performed first.

以上詳述したように、本実施形態によれば、以下に示す効果を得ることができる。
(1)印刷系タスク部より優先順位の高い書込みタスク部91が、第1記憶部131のデータDを、印刷系タスク部による書込みが禁止された第2記憶部132にコピーし、書戻しタスク部92が第2記憶部132のデータDを不揮発性メモリー55に書き戻すので、不揮発性メモリー55に正確なデータDを書き戻すことができる。例えば書戻し途中に優先順位の高いタスクが起動されても、第2記憶部132のデータDは書き替えられることはないので、その後、書戻しタスク部が起動し、中断した続きからデータの書戻し処理を再開した場合に、前回と今回で同じデータを書き戻すことができる。よって、印刷系タスク部の割り込みによる中断によって複数回に分けて断続的な書戻し処理を行っても、不揮発性メモリー55に正しいデータDを書き戻すことができる。
As described above in detail, according to the present embodiment, the following effects can be obtained.
(1) The writing task unit 91 having a higher priority than the printing system task unit copies the data D in the first storage unit 131 to the second storage unit 132 where writing by the printing system task unit is prohibited, and the write back task. Since the unit 92 writes the data D in the second storage unit 132 back to the nonvolatile memory 55, the accurate data D can be written back to the nonvolatile memory 55. For example, even if a task with a high priority is activated during the write-back, the data D in the second storage unit 132 is not rewritten, and then the write-back task unit is activated and the data write starts from the interrupted continuation. When the return process is resumed, the same data can be written back in the previous time and this time. Therefore, correct data D can be written back to the non-volatile memory 55 even if intermittent write-back processing is performed in a plurality of times due to interruption by interruption of the printing system task unit.

(2)書込みタスク部91の優先順位を印刷系タスク部よりも高くしているので、第1記憶部131から第2記憶部132へのデータDのコピーを、印刷系タスク部に優先して行うことができる。このため、書込みタスク部91によるコピーが印刷系タスク部の起動により中断されたり、コピー途中でコピー元のデータDが書き替えられてしまったりする事態を回避できる。よって、第1記憶部131のデータを第2記憶部132に正しくコピーすることができる。   (2) Since the priority of the write task unit 91 is higher than that of the print task unit, the copy of the data D from the first storage unit 131 to the second storage unit 132 is given priority over the print task unit. It can be carried out. For this reason, it is possible to avoid a situation in which copying by the writing task unit 91 is interrupted by the activation of the printing task unit, or the copy source data D is rewritten during copying. Therefore, the data in the first storage unit 131 can be correctly copied to the second storage unit 132.

(3)書戻しタスク部92がデータDを全て書き戻した時点に、書戻しタスク部92から通知される書戻し完了通知を受け付けたことをトリガーにして、データDのコピーを開始する。このため、書戻し途中にその書戻し元データが書き替えられてしまう事態を回避できる。よって、正しいデータDを不揮発性メモリー55に書き込むことができる。   (3) At the time when the write-back task unit 92 has written back all the data D, the copy of the data D is started with the reception of the write-back completion notification notified from the write-back task unit 92 as a trigger. For this reason, it is possible to avoid a situation in which the write-back source data is rewritten during the write-back. Therefore, correct data D can be written in the nonvolatile memory 55.

(4)書戻しタスク部92の優先順位を、印刷系タスク部81〜89よりも低く設定した。このため、印刷画像データ及びヘッド制御データなどの噴射系データ生成処理と、記録ヘッド29への噴射系データ転送処理が、データ書戻し処理に優先して行われる。このため、例えば噴射系データが間に合わず、ノズルからインクを噴射できなくなる噴射不良(ドット抜け)や、ヘッド制御データが準備されるまでキャリッジ27の起動が待たされるキャリッジの起動タイミングの遅延発生頻度をなるべく低減することができる。よって、噴射不良による印刷不良を防止しつつ、キャリッジ27の起動タイミングの遅延発生頻度を低減して印刷スループットの低下を抑制することができる。   (4) The priority of the write-back task unit 92 is set lower than that of the print task units 81-89. For this reason, ejection system data generation processing such as print image data and head control data and ejection system data transfer processing to the recording head 29 are performed with priority over the data write-back processing. For this reason, for example, an ejection failure (dot missing) in which ink cannot be ejected from the nozzles because the ejection system data is not in time, or the occurrence frequency of the delay of the carriage activation timing at which the carriage 27 is awaited until the head control data is prepared. It can be reduced as much as possible. Therefore, it is possible to prevent a printing failure due to an ejection failure and reduce the frequency of delay in the start timing of the carriage 27 to suppress a decrease in printing throughput.

また、印刷動作(記録系動作及び搬送系動作)やクリーニング動作などの所定動作が行われていないプリンター11の待機状態のときに、データDの書戻し処理を行う。よって、印刷系処理が優先的に実施され、書戻し処理の割り込みによる印刷スループットの低下を抑制できる。   In addition, when the printer 11 is in a standby state in which a predetermined operation such as a printing operation (recording system operation and conveyance system operation) or a cleaning operation is not performed, the data D is written back. Therefore, the printing system process is preferentially performed, and it is possible to suppress a decrease in printing throughput due to the interruption of the writing back process.

(4)緊急タスク部90は、電源オフ時にタスク優先順位の変更をリアルタイムOS71に要求し、優先順位管理テーブル97を電源オフ時のタスク優先順位(図5)に更新する。この優先順位の変更によって、書込みタスクと書戻しタスクとの優先順位の関係を保ちつつ、両タスクの優先順位を印刷系タスクよりも高くする。このため、電源オフ時にも、書戻しタスク部92の起動が可能となり、なるべく最新のデータDを不揮発性メモリー55に書き戻すことができる。また、書込みタスク部91の優先順位を書戻しタスク部92より高く設定したので、例えば電源遮断時にコピー途中であった場合でも、そのコピーを全て終えてからそのデータDの書き戻しを開始できる。例えば、書戻しタスク部92を書込みタスク部91よりも高い優先順位とすると、電源遮断時にコピー途中であった場合、そのコピー途中のデータDを書き戻すことになり、データDの信頼性が損なわれる。これに対し、本実施形態では、電源遮断時にも、コピーをし終わった正しいデータDを不揮発性メモリー55に書き戻すことができる。   (4) The emergency task unit 90 requests the real-time OS 71 to change the task priority when the power is turned off, and updates the priority management table 97 to the task priority when the power is turned off (FIG. 5). By changing the priority, the priority of both tasks is made higher than that of the printing task while maintaining the priority relationship between the writing task and the writing-back task. Therefore, even when the power is turned off, the write-back task unit 92 can be started, and the latest data D can be written back to the nonvolatile memory 55 as much as possible. In addition, since the priority of the write task unit 91 is set higher than that of the write back task unit 92, for example, even when copying is in progress at the time of power-off, writing back of the data D can be started after all the copying is completed. For example, if the write-back task unit 92 has a higher priority than the write task unit 91, if copying is in progress at the time of power-off, the data D being copied is written back, and the reliability of the data D is impaired. It is. On the other hand, in the present embodiment, the correct data D that has been copied can be written back to the nonvolatile memory 55 even when the power is shut off.

(第2実施形態)
次に第2実施形態を図9に基づいて説明する。この第2実施形態では、タスク優先順位が前記第1実施形態と異なり、その他の構成は前記第1実施形態と同様である。図9は、通常時のデータ記憶処理を示すシーケンス図である。図9の例は、通常時に設定されるタスク優先順位が、第1実施形態と異なる。書戻しタスク部92の優先順位は、印刷系タスク部81〜89のうち記録系タスク部81〜83,88よりも低く、印刷系タスク部のうちその他のタスク部84〜87よりも高く設定されている。つまり、書戻しタスク部92は、印刷系タスク部のうちコマンド処理系のタスク部84〜87(搬送系・キャリッジ駆動系のタスク部を含む)よりも高い優先順位に設定されている。コマンド処理系のタスク部84〜87は、搬送制御用のコマンド及びキャリッジ駆動制御用のコマンドを含む各種コマンドの処理(コマンド生成処理、コマンド送受信処理など)を行う。なお、本実施形態では、記録系タスク部81〜83,88により、記録処理手段の一例が構成される。また、搬送制御用のコマンドを処理するコマンド処理系のタスク部84〜87により、搬送制御手段の一例が構成される。
(Second Embodiment)
Next, a second embodiment will be described with reference to FIG. In the second embodiment, the task priority is different from that of the first embodiment, and other configurations are the same as those of the first embodiment. FIG. 9 is a sequence diagram showing normal data storage processing. The example of FIG. 9 is different from the first embodiment in the task priority order set at the normal time. The priority order of the write-back task unit 92 is set lower than the recording system task units 81 to 83 and 88 among the printing system task units 81 to 89 and higher than the other task units 84 to 87 among the printing system task units. ing. That is, the write-back task unit 92 is set to a higher priority than the command processing task units 84 to 87 (including the transport system and carriage drive system task units) among the printing system task units. The command processing system task units 84 to 87 perform various command processing (command generation processing, command transmission / reception processing, etc.) including commands for transport control and commands for carriage drive control. In the present embodiment, the recording system task units 81 to 83, 88 constitute an example of a recording processing unit. Also, an example of a transport control means is configured by command processing system task units 84 to 87 that process commands for transport control.

このため、図9に示すように、記録系タスク部81〜83,88による印刷画像データ及びヘッド制御データなどの噴射系データ生成処理と、記録ヘッド29の噴射制御とを含む記録系処理が、書戻しタスク部92による書戻し処理よりも優先して行われる(記録系処理段階)。そして、記録系タスク部81〜83,88による記録系処理が実施されていないときに、書戻しタスク部92は起動し、データの書戻し処理を行う(図9中の(3))。書戻しタスク部92から書戻し完了通知を受け付けた書込みタスク部91は、第1記憶部131のデータDを第2記憶部132にコピーする(図9中の(2))。このデータDのコピーは、記録系タスク部による記録系処理に優先して実施される。   For this reason, as shown in FIG. 9, recording system processing including ejection system data generation processing such as print image data and head control data by the recording system task units 81 to 83 and 88 and ejection control of the recording head 29 is performed. This is prioritized over the write-back processing by the write-back task unit 92 (recording system processing stage). Then, when the recording system processing by the recording system task units 81 to 83, 88 is not performed, the write-back task unit 92 is activated and performs data write-back processing ((3) in FIG. 9). The write task unit 91 that has received the write-back completion notification from the write-back task unit 92 copies the data D in the first storage unit 131 to the second storage unit 132 ((2) in FIG. 9). The copying of the data D is performed with priority over the recording system processing by the recording system task unit.

第2実施形態の構成によれば、書戻しタスク部92による書戻し処理よりも、記録系タスク部81〜83,88による記録系処理が優先して実施されるので、記録系処理中に書戻しタスク部92による書戻し処理の割り込みが発生せず、記録系処理の遅延が発生し難い。例えば噴射系データの生成が間に合わない場合、画像バッファー59A中の噴射系データ(ヘッド制御データ)が更新されない。この場合、前回(例えば前回パス)の噴射系データを使用して間違ったドットを形成してしまったり、画像バッファー59A中の噴射系データ格納エリアが空になっていてヌルデータを基に噴射制御を行って噴射ミス(ドット抜け)が発生したりする不都合がある。しかし、この第2実施形態によれば、前記第1実施形態と同様に、記録系タスク部81〜83,88の優先順位が書戻しタスク部92の優先順位より高く、記録系処理が円滑に進められるので、この種の原因による印刷不良を回避し易い。さらにはヘッド制御データが準備されるまでキャリッジ27の起動が待たされることに起因するキャリッジ27の起動タイミングの遅延発生頻度を低減することができる。   According to the configuration of the second embodiment, the recording system processing by the recording system task units 81 to 83 and 88 is prioritized over the writing back processing by the writing back task unit 92. The interruption of the write back process by the return task unit 92 does not occur, and the delay of the recording system process hardly occurs. For example, if the ejection system data cannot be generated in time, the ejection system data (head control data) in the image buffer 59A is not updated. In this case, an incorrect dot is formed using the previous (for example, previous pass) ejection system data, or the ejection system data storage area in the image buffer 59A is empty, and ejection control is performed based on null data. There is an inconvenience that an injection error (dot missing) occurs. However, according to the second embodiment, as in the first embodiment, the priority order of the recording system task units 81 to 83, 88 is higher than the priority order of the write-back task unit 92, and the recording system processing is smooth. Since it is advanced, it is easy to avoid printing defects due to this kind of cause. Furthermore, it is possible to reduce the frequency of delay in the start timing of the carriage 27 caused by waiting for the start of the carriage 27 until the head control data is prepared.

また、書戻しタスク部92の優先順位が、印刷系タスク部のうち記録系タスク部81〜83,88を除く他のタスク部84〜87よりも高いので、印刷動作中における記録系処理の合間に、搬送系やキャリッジ駆動系の処理動作に優先して、データDの書戻し処理を行うことができる。このため、前記実施形態の構成に比べ、データDの不揮発性メモリー55への書戻し頻度を一層高めることができる。この結果、例えば電源オフ時のデータDの書戻しを失敗したとしても、不揮発性メモリー55になるべく最新に近いデータDが保存されることになる。この結果、電源オン時における不揮発性メモリー55のデータDの信頼性を一層高めることができる。よって、噴射不良による印刷不良を効果的に防止しつつ、印刷スループットの低下の抑制を図りつつ、データDの書戻し頻度の向上による不揮発性メモリー55に保存されたデータDの信頼性を高めることができる。   In addition, since the priority order of the write-back task unit 92 is higher than the other task units 84 to 87 excluding the recording system task units 81 to 83 and 88 among the printing system task units, the interval between the recording system processes during the printing operation. In addition, the data D write-back process can be performed in preference to the processing operation of the transport system or the carriage drive system. For this reason, compared with the structure of the said embodiment, the write-back frequency of the data D to the non-volatile memory 55 can be raised further. As a result, even if the write-back of the data D when the power is turned off fails, for example, the data D that is as recent as possible is stored in the nonvolatile memory 55. As a result, the reliability of the data D in the nonvolatile memory 55 when the power is turned on can be further enhanced. Therefore, the reliability of the data D stored in the non-volatile memory 55 is improved by improving the frequency of writing back the data D while effectively preventing the printing failure due to the ejection failure and suppressing the decrease in the printing throughput. Can do.

なお、上記実施形態は以下のような形態に変更することもできる。
・書戻しタスク部92は、プリンター11の待機中は書戻し処理を繰り返し実行する構成としたが、プリンター11の待機中に所定時間間隔毎に書戻し処理を実行する構成としてもよい。また、第1記憶部131(ミラー記憶領域)のデータ更新の有無を監視する監視部(監視手段)を設け、監視部から更新された旨の通知を受け付けたときに書戻しタスク部92は起動し、第2記憶部132のデータを不揮発性メモリー55へ書き戻す書戻し処理を行う構成としてもよい。
In addition, the said embodiment can also be changed into the following forms.
The write-back task unit 92 is configured to repeatedly execute the write-back process while the printer 11 is on standby, but may be configured to execute the write-back process at predetermined time intervals while the printer 11 is on standby. In addition, a monitoring unit (monitoring unit) for monitoring the presence or absence of data update in the first storage unit 131 (mirror storage area) is provided, and the write-back task unit 92 is activated when a notification indicating that the data has been updated is received from the monitoring unit. In addition, a configuration may be adopted in which a write-back process for writing back the data in the second storage unit 132 to the nonvolatile memory 55 is performed.

・書込みタスク部91が、データの書込み機能とコピー機能とを兼ねる構成に替え、不揮発性メモリー55のデータDを第1記憶部131に書き込む書込みタスク部(書込み手段)と、第1記憶部131のデータDを第2記憶部132にコピーするコピータスク部(コピー手段)とを別々に設けてもよい。この場合、書込みタスク部とコピータスク部との優先順位を異ならせてもよい。   The writing task unit 91 is replaced with a configuration that serves as both a data writing function and a copying function, and a writing task unit (writing unit) that writes the data D of the nonvolatile memory 55 to the first storage unit 131 and the first storage unit 131 A copy task unit (copying unit) for copying the data D to the second storage unit 132 may be provided separately. In this case, the priority order of the write task unit and the copy task unit may be different.

・書戻しタスク部の優先順位は適宜変更してもよい。例えば書戻しタスクの優先順位を、記録系タスク部に属する一部のタスク部よりも低く、かつ記録系タスク部に属する他の一部のタスク部よりも高くしてもよい。このように書戻しタスク部は、記録系タスク部に属する全てのタスク部よりも優先順位が低いことには限定されず、記録系タスク部が複数のタスクから構成される場合は、記録系タスク部に属する少なくとも1つのタスク部よりも優先順位が低ければ足りる。この場合、その優先順位の高い1つのタスク部が書戻しタスク部より優先的に起動することで、記録系処理の遅延を回避し易くなる。また、書戻しタスクの優先順位を、キャリッジ駆動系と搬送駆動系タスクとの間に設定してもよい。   -The priority order of the write-back task part may be changed as appropriate. For example, the priority order of the write-back task may be lower than some task parts belonging to the recording system task part and higher than some other task parts belonging to the recording system task part. Thus, the write-back task unit is not limited to a lower priority than all the task units belonging to the recording system task unit. If the recording system task unit is composed of a plurality of tasks, the recording system task unit It is sufficient that the priority order is lower than at least one task part belonging to the part. In this case, it becomes easy to avoid a delay in the recording system processing by starting one task unit having a higher priority with priority over the write-back task unit. The priority order of the write-back task may be set between the carriage drive system and the transport drive system task.

・コピー手段は、印刷制御手段が複数のタスク部から構成される場合、その全てのタスク部よりも優先順位が高い必要はなく、そのうち第1記憶部に書込みを行う全てのタスク部よりも優先順位が高ければ足りる。この構成によっても、コピー手段によるコピー途中に第1記憶部のコピー元データが印刷制御手段を構成するタスク部によって書き替えられることは回避できる。例えば、書込みタスク部91(コピー手段)の優先順位を、印刷系タスク部に属する複数のタスク部のうち、第1記憶部に書込みアクセスする一部のタスク部より高く設定とする。この構成であっても、コピー途中にコピー元データが書き替えられる事態を回避できる。   -When the printing control unit is composed of a plurality of task units, the copy unit does not need to have a higher priority than all the task units, and has priority over all the task units that write to the first storage unit. A higher ranking is sufficient. Also with this configuration, it is possible to avoid that the copy source data in the first storage unit is rewritten by the task unit constituting the print control unit during copying by the copy unit. For example, the priority of the writing task unit 91 (copying unit) is set higher than some task units that write-access the first storage unit among a plurality of task units belonging to the printing system task unit. Even with this configuration, it is possible to avoid a situation in which the copy source data is rewritten during copying.

・書込みタスク部91(コピー手段)は、書戻し完了通知をトリガーとしてコピーを開始する構成に限定されない。例えば書戻し手段(書戻しタスク部92)が起動されると、まず書込みタスク部91(コピー手段)にコピー要求を送り、書込みタスク部91が第1記憶部131のデータDを第2記憶部132にコピーを行う。書込みタスク部91がコピーを終えてプリンター11が待機状態になると、書戻しタスク部92が再び起動されてこの再起動のときに書戻しタスク部92は第2記憶部132のデータDを不揮発性メモリー55に書戻す。この構成によれば、最新のデータをコピーした直後に書戻しを行うことができる。前記実施形態の方法では、印刷が終わって待機状態になった最初は第1記憶部131のデータDが印刷開始前にコピーされた旧いデータになるので、最初の書戻しで旧いデータの書き戻しを行う。これに対してこの変形例の方法であれば、最初の書戻しで最新データを書き戻すことができる。   The writing task unit 91 (copying unit) is not limited to a configuration that starts copying with a write-back completion notification as a trigger. For example, when the write-back unit (write-back task unit 92) is activated, first, a copy request is sent to the write task unit 91 (copy unit), and the write task unit 91 transfers the data D in the first storage unit 131 to the second storage unit. Copy to 132. When the writing task unit 91 finishes copying and the printer 11 is in a standby state, the writing back task unit 92 is activated again, and at the time of the restarting, the writing back task unit 92 stores the data D in the second storage unit 132 in a nonvolatile manner. Write back to memory 55. According to this configuration, the write-back can be performed immediately after the latest data is copied. In the method of the above embodiment, since the data D in the first storage unit 131 is the old data copied before the start of printing at the beginning of printing and in the standby state, the old data is written back by the first writing back. I do. On the other hand, with the method of this modification, the latest data can be written back by the first writing back.

・OSはリアルタイムOSに限定されない。その他のOSを採用してもよい。要するに、複数のタスクのうち優先度の高いタスクにCPUの実行権を割り当てる機能を有するOSであればよい。   -OS is not limited to real-time OS. Other OSs may be employed. In short, any OS may be used as long as it has a function of assigning the CPU execution right to a task having a higher priority among a plurality of tasks.

・電源オフ時にタスク優先順位を変更しない構成も採用できる。例えば電源オフ時に優先的に起動される緊急タスク部が書戻し処理を行ってもよい。
・前記実施形態において、第2の記憶手段を不揮発性メモリーとしてもよい。例えばプリンター稼働中(電源オン中)には、プリンター本体側の不揮発性メモリー(第2の記録手段)に更新データを逐次書込み、この不揮発性メモリーのデータをインクカートリッジに実装された不揮発性の記憶素子47(第1の記憶手段)に書き戻す構成も採用できる。例えば電源オン時には記憶素子47からインク残量等のインク関連情報を含むデータDを本体側の不揮発性メモリーに書き込む構成とする。
-A configuration that does not change the task priority when the power is turned off can also be adopted. For example, an emergency task unit that is activated preferentially when the power is turned off may perform the write-back process.
In the embodiment, the second storage unit may be a nonvolatile memory. For example, while the printer is operating (power is on), update data is sequentially written to the non-volatile memory (second recording means) on the printer body, and the non-volatile memory mounted on the ink cartridge is stored in the non-volatile memory data. A configuration of writing back to the element 47 (first storage means) can also be adopted. For example, when the power is turned on, data D including ink-related information such as the ink remaining amount is written from the storage element 47 to the nonvolatile memory on the main body side.

・制御装置Cを、コントローラー40とメカコントローラー43とを一体とした構成としてもよい。この場合、コントローラーには、搬送制御タスク部やキャリッジ制御タスク部などのメカ駆動制御系のタスク部が追加される。この搬送制御タスク部は、搬送制御手段の一例を構成する。   The control device C may be configured such that the controller 40 and the mechanical controller 43 are integrated. In this case, a task unit of a mechanical drive control system such as a transport control task unit and a carriage control task unit is added to the controller. This conveyance control task part constitutes an example of a conveyance control means.

・印刷媒体は、紙又は樹脂などからなる長尺状のシートに限定されず、単票紙や単票状の樹脂フィルムでもよい。また、金属製フィルム、布、フィルム基板、樹脂基板、半導体ウェハなどでもよい。また、CD、DVDなどの光ディスクや磁気ディスクなどでもよい。さらに、印刷媒体はシート状に限定されず、所定の立体形状の表面に印刷できる機構を有する印刷装置の場合、そのような所定の立体形状を有する物体も含む。   The printing medium is not limited to a long sheet made of paper or resin, but may be a cut paper or a cut resin film. Further, it may be a metal film, cloth, film substrate, resin substrate, semiconductor wafer or the like. Further, it may be an optical disk such as a CD or a DVD or a magnetic disk. Furthermore, the printing medium is not limited to a sheet shape, and in the case of a printing apparatus having a mechanism capable of printing on a surface having a predetermined three-dimensional shape, an object having such a predetermined three-dimensional shape is included.

・印刷装置は、ラテラル式のプリンター11に限定されず、シリアルプリンター、ラインプリンター、ページプリンターでもよい。さらにインクジェット式に限定されず、ドットインパクト式プリンター、レーザープリンターなどでもよい。   The printing apparatus is not limited to the lateral type printer 11 and may be a serial printer, a line printer, or a page printer. Furthermore, it is not limited to an inkjet type, A dot impact type printer, a laser printer, etc. may be sufficient.

・前記実施形態では、印刷装置として、インクジェット式のプリンター11が採用されているが、インク以外の他の流体を噴射したり吐出したりする流体噴射装置を採用してもよい。また、微小量の液滴を吐出させる液体噴射ヘッド等を備える各種の液体噴射装置に流用可能である。この場合、液滴とは、上記液体噴射装置から吐出される液体の状態を言い、粒状、涙状、糸状に尾を引くものも含むものとする。また、ここでいう液体とは、液体噴射装置が噴射させることができるような材料であればよい。例えば、物質が液相であるときの状態のものであればよく、粘性の高い又は低い液状体、ゾル、ゲル水、その他の無機溶剤、有機溶剤、溶液、液状樹脂、液状金属(金属融液)のような流状体、また物質の一状態としての液体のみならず、顔料や金属粒子などの固形物からなる機能材料の粒子が溶媒に溶解、分散または混合されたものなどを含む。また、液体の代表的な例としては上記実施形態で説明したようなインクや液晶等が挙げられる。ここで、インクとは一般的な水性インクおよび油性インク並びにジェルインク、ホットメルトインク等の各種液体組成物を包含するものとする。液体噴射装置の具体例としては、例えば液晶ディスプレイ、EL(エレクトロルミネッセンス)ディスプレイ、面発光ディスプレイ、カラーフィルタの製造などに用いられる電極材や色材などの材料を分散または溶解のかたちで含む液体を噴射する液体噴射装置が挙げられる。さらに、バイオチップ製造に用いられる生体有機物を噴射する液体噴射装置、精密ピペットとして用いられ試料となる液体を噴射する液体噴射装置、捺染装置やマイクロディスペンサ等であってもよい。さらに、時計やカメラ等の精密機械にピンポイントで潤滑油を噴射する液体噴射装置、光通信素子等に用いられる微小半球レンズ(光学レンズ)などを形成するために紫外線硬化樹脂等の透明樹脂液を基板上に噴射する液体噴射装置、基板などをエッチングするために酸又はアルカリ等のエッチング液を噴射する液体噴射装置を採用してもよい。そして、これらのうちいずれか一種の液体噴射装置に本発明を適用することができる。また、流体は、トナーなどの粉粒体でもよい。なお、本明細書でいう流体には、気体のみからなるものは含まないものとする。   In the embodiment, the ink jet printer 11 is employed as the printing apparatus, but a fluid ejecting apparatus that ejects or ejects fluid other than ink may be employed. Further, the present invention can be used for various liquid ejecting apparatuses including a liquid ejecting head that ejects a minute amount of liquid droplets. In this case, the droplet refers to the state of the liquid ejected from the liquid ejecting apparatus, and includes liquid droplets having a granular shape, a tear shape, and a thread shape. The liquid here may be any material that can be ejected by the liquid ejecting apparatus. For example, it may be in a state in which the substance is in a liquid phase, such as a liquid with high or low viscosity, sol, gel water, other inorganic solvents, organic solvents, solutions, liquid resins, liquid metals (metal melts ) And liquids as one state of the substance, as well as those obtained by dissolving, dispersing or mixing particles of a functional material made of solid materials such as pigments and metal particles in a solvent. Further, representative examples of the liquid include ink and liquid crystal as described in the above embodiment. Here, the ink includes general water-based inks and oil-based inks, and various liquid compositions such as gel inks and hot-melt inks. As a specific example of the liquid ejecting apparatus, for example, a liquid containing a material such as an electrode material or a coloring material used for manufacturing a liquid crystal display, an EL (electroluminescence) display, a surface emitting display, a color filter, or the like in a dispersed or dissolved state. A liquid ejecting apparatus for ejecting may be used. Further, it may be a liquid ejecting apparatus that ejects a bio-organic matter used for biochip production, a liquid ejecting apparatus that ejects a liquid that is used as a precision pipette and serves as a sample, a printing apparatus, a microdispenser, or the like. In addition, transparent resin liquids such as UV curable resin to form liquid injection devices that pinpoint lubricant oil onto precision machines such as watches and cameras, and micro hemispherical lenses (optical lenses) used in optical communication elements. A liquid ejecting apparatus that ejects a liquid onto the substrate or a liquid ejecting apparatus that ejects an etching solution such as an acid or an alkali to etch the substrate may be employed. The present invention can be applied to any one of these liquid ejecting apparatuses. Further, the fluid may be a granular material such as toner. In addition, the fluid referred to in this specification does not include a fluid consisting only of a gas.

前記実施形態及び変形例から把握できる技術的思想を以下に記載する。
(1)前記印刷手段は、前記印刷媒体に記録を行う記録手段と前記印刷媒体を搬送する搬送手段とを含み、前記印刷制御手段は、前記記録手段に記録動作を行わせる前記記録処理手段と前記印刷手段に前記印刷媒体の搬送動作を行わせる搬送系制御を行う搬送制御手段とを備え、前記書戻し手段の起動優先順位は前記印刷制御手段よりも低く設定されていることを特徴とする請求項1に記載の印刷装置におけるデータ記憶処理装置。この技術的思想の一態様によれば、書戻し手段は印刷制御手段よりも起動優先順位が低く設定されているので、印刷制御手段の処理の途中で書戻し手段が割り込むことがない。このため、印刷制御手段による処理が優先され、記録系処理や搬送系制御を含む印刷処理が優先的に行われるので、印刷スループットの低下を一層回避し易い。
The technical idea that can be grasped from the embodiment and the modifications will be described below.
(1) The printing unit includes a recording unit that records on the printing medium and a conveying unit that conveys the printing medium, and the printing control unit causes the recording unit to perform a recording operation; A transport control unit that performs transport system control for causing the printing unit to perform a transport operation of the printing medium, and the activation priority of the write-back unit is set lower than that of the print control unit. The data storage processing apparatus in the printing apparatus according to claim 1. According to one aspect of this technical idea, the write-back means is set to have a lower activation priority than the print control means, so that the write-back means does not interrupt during the process of the print control means. For this reason, priority is given to processing by the printing control means, and printing processing including recording system processing and transport system control is preferentially performed, so it is easier to avoid a decrease in printing throughput.

(2)前記書戻し手段は前記書戻しを終えると、前記コピー手段に書戻し完了通知を行う構成であり、前記コピー手段は、前記書戻し完了通知を受け付けると、前記コピーを行うことを特徴とする請求項4に記載の印刷装置におけるデータ記憶処理装置。この技術的思想の一態様によれば、コピー手段は書戻し完了通知を受け付けるとコピーを行うので、書戻し中における書戻し元のデータの書き替えを回避し、正しいデータを第1の記憶手段に書き戻すことができる。   (2) The write-back unit is configured to notify the copy unit of a write-back completion upon completion of the write-back, and the copy unit performs the copy upon receiving the write-back completion notification. A data storage processing apparatus in a printing apparatus according to claim 4. According to one aspect of this technical idea, the copy means performs copying upon receipt of the write-back completion notification, so that rewriting of the write-back source data during the write-back is avoided, and correct data is stored in the first storage means. Can be written back to.

(3)電源遮断時に起動されて電源遮断処理を行う緊急処理手段(90)を更に備え、前記緊急処理手段は、前記印刷制御手段、前記書込み手段、前記コピー手段及び前記書戻し手段よりも起動優先順位が高く設定され、前記緊急処理手段は、電源遮断時に起動されたときには、前記制御手段に対して優先順位変更要求を行い、前記制御手段は、前記優先順位変更要求を受け付けると、前記優先順位変更手段に起動優先順位を変更させることを特徴とする請求項5に記載の印刷装置におけるデータ記憶処理装置。この技術的思想の一態様によれば、電源遮断時に最優先で起動される緊急処理手段からの優先順位変更要求を受け付けると、制御手段は優先順位変更手段に起動優先順位の変更を行わせるので、電源遮断時であっても起動優先順位の設定変更を行うことができる。   (3) An emergency processing means (90) that is activated when the power is shut off and performs a power shut-off process is further provided, and the emergency processing means is activated more than the print control means, the writing means, the copying means, and the writing back means. When the priority is set high, and the emergency processing means is activated when the power is shut off, the emergency processing means issues a priority change request to the control means. 6. The data storage processing apparatus in a printing apparatus according to claim 5, wherein the priority changing means is made to change the activation priority. According to one aspect of this technical idea, when receiving a priority order change request from the emergency processing means that is activated with the highest priority when the power is shut down, the control means causes the priority order changing means to change the activation priority order. Even when the power is shut off, the setting of the boot priority can be changed.

11…印刷装置の一例であるプリンター、13…印刷媒体の一例であるシート、27…キャリッジ、29…印刷手段の構成要素の一例であるとともに記録手段の一例である記録ヘッド、40…コントローラー、43…メカコントローラー、44…印刷手段の構成要素の一例である印刷用のメカニカル機構、45…ヘッド制御ユニット(HCU)、46…通信回路、47…記憶素子、50…リニアエンコーダー、51…CPU、52…ASIC、53…ROM、54…第2の記憶手段の一例であるRAM、55…第1の記憶手段の一例である不揮発性メモリー、59A…画像バッファー、61…印刷手段及び搬送手段の構成要素の一例である搬送モーター、62…印刷手段の構成要素の一例である第1CRモーター、63…印刷手段の構成要素の一例である第2CRモーター、65…電源スイッチ、71…制御手段の一例であるリアルタイムOS、72…制御手段の一例を構成するスケジューラー、73…優先順位変更手段の一例である優先順位変更部、74…タスク管理部、75…ディスパッチ部、81…主制御部、82…通信部、83…画像処理部、84…コマンド解析部、85…印刷タスク部、86…メカ制御部、87…メカ通信部、88…ヘッド制御部、89…インク管理部、90…緊急タスク部、91…書込みタスク部、92…書戻しタスク部、93…ジョブ制御部、94…デバイス制御部、95…演算部、97…優先順位管理テーブル、100…印刷システム、110…画像生成装置、120…ホスト装置、120M…ホスト記憶部、122…プリンタードライバー、125…ホスト制御部、131…第1記憶部、132…第2記憶部、C…制御装置、U2…シリアル通信ポート、IC1〜IC8…印刷材収容体の一例であるインクカートリッジ、PD…印刷データ、D…データ(印刷関連情報を含む)。   DESCRIPTION OF SYMBOLS 11 ... Printer which is an example of printing apparatus, 13 ... Sheet which is an example of printing medium, 27 ... Carriage, 29 ... Recording head which is an example of the component of a printing means and is an example of a recording means, 40 ... Controller, 43 DESCRIPTION OF SYMBOLS ... Mechanical controller, 44 ... Mechanical mechanism for printing which is an example of components of printing means, 45 ... Head control unit (HCU), 46 ... Communication circuit, 47 ... Memory element, 50 ... Linear encoder, 51 ... CPU, 52 ... ASIC, 53... ROM, 54... RAM as an example of second storage means, 55... Nonvolatile memory as an example of first storage means, 59 A... Image buffer, 61. The first CR motor, which is an example of the constituent elements of the printing means, and 62 ... the constituent elements of the printing means. Second CR motor as an example, 65... Power switch, 71... Real-time OS as an example of control means, 72... Scheduler constituting an example of control means, 73 ... Priority change unit as an example of priority change means, 74 ... Task management part, 75 ... Dispatch part, 81 ... Main control part, 82 ... Communication part, 83 ... Image processing part, 84 ... Command analysis part, 85 ... Print task part, 86 ... Mechanical control part, 87 ... Mechanical communication part , 88... Head control unit, 89... Ink management unit, 90... Emergency task unit, 91 .. write task unit, 92 .. write back task unit, 93 .. job control unit, 94. ... Priority management table, 100 ... Print system, 110 ... Image generation device, 120 ... Host device, 120M ... Host storage unit, 122 ... Printer driver, 1 DESCRIPTION OF SYMBOLS 5 ... Host control part 131 ... 1st memory | storage part 132 ... 2nd memory | storage part C ... Control apparatus, U2 ... Serial communication port, IC1-IC8 ... Ink cartridge which is an example of a printing material container, PD ... Print data , D... Data (including printing related information).

Claims (7)

印刷手段に印刷媒体への記録動作を行わせる記録系処理を行う記録処理手段を含むとともに前記印刷手段による印刷動作によって更新される印刷関連情報を取得する印刷制御手段と、
前記印刷関連情報を含むデータが記憶される不揮発性の第1の記憶手段と、
前記第1の記憶手段のデータが書き込まれるとともに当該データの更新のために前記印刷制御手段による書込みアクセスが許可された第1記憶部と前記印刷制御手段による書込みアクセスが禁止された第2記憶部とを有する揮発性又は不揮発性の第2の記憶手段と、
前記第1の記憶手段のデータを第1記憶部に書き込む書込み手段と、
前記第1記憶部の前記データを前記第2記憶部にコピーするコピー手段と、
前記第2記憶部のデータを前記第1の記憶手段に書き戻す書戻し手段と、
前記印刷制御手段、前記書込み手段、前記コピー手段及び前記書戻し手段を、設定された起動優先順位に従って選択的に起動させる制御手段と、を備え、
前記コピー手段が前記印刷制御手段及び前記書戻し手段よりも起動優先順位が高く設定され、かつ前記書戻し手段が前記印刷制御手段のうち少なくとも記録系処理手段よりも起動優先順位が低く設定されていることを特徴とする印刷装置におけるデータ記憶処理装置。
A print control unit that includes a recording processing unit that performs a recording system process that causes the printing unit to perform a recording operation on a print medium, and that acquires print-related information updated by the printing operation by the printing unit;
Non-volatile first storage means for storing data including the print-related information;
A first storage unit in which data in the first storage unit is written and write access by the print control unit is permitted to update the data, and a second storage unit in which write access by the print control unit is prohibited A volatile or non-volatile second storage means comprising:
Writing means for writing data of the first storage means into the first storage unit;
Copy means for copying the data in the first storage unit to the second storage unit;
Write-back means for writing back the data in the second storage section to the first storage means;
Control means for selectively starting the printing control means, the writing means, the copying means, and the writing back means according to a set starting priority order,
The copy means is set to have a higher activation priority than the print control means and the write-back means, and the write-back means is set to have a lower activation priority than at least the recording system processing means of the print control means. A data storage processing apparatus in a printing apparatus.
前記印刷手段は、前記印刷媒体に記録を行う記録手段と前記印刷媒体を搬送する搬送手段とを含み、
前記印刷制御手段は、前記記録手段の記録動作に用いられる記録データを生成するための画像処理を含む記録系処理を行う前記記録処理手段と、前記印刷手段に前記印刷媒体の搬送動作を行わせる搬送系制御を行う搬送制御手段とを備え、
前記書戻し手段の起動優先順位は、前記搬送制御手段よりも高くかつ前記記録処理手段よりも低く設定されていることを特徴とする請求項1に記載の印刷装置におけるデータ記憶処理装置。
The printing means includes a recording means for recording on the printing medium and a conveying means for conveying the printing medium,
The print control unit performs a recording system process including an image process for generating recording data used for a recording operation of the recording unit, and causes the printing unit to perform a transport operation of the print medium. A transport control means for performing transport system control,
2. The data storage processing apparatus in a printing apparatus according to claim 1, wherein the activation priority of the writing-back means is set higher than the transport control means and lower than the recording processing means.
前記書戻し手段は、印刷装置の待機中に起動される起動優先順位に設定されていることを特徴とする請求項1に記載の印刷装置におけるデータ記憶処理装置。   2. The data storage processing apparatus in a printing apparatus according to claim 1, wherein the writing-back means is set to an activation priority that is activated while the printing apparatus is on standby. 前記コピー手段は、前記書戻し手段による前記データの書戻しが開始されると当該データの書戻しが完了するまで前記コピーを行わないように構成されていることを特徴とする請求項1乃至3のうちいずれか一項に記載の印刷装置におけるデータ記憶処理装置。   4. The copy unit according to claim 1, wherein when the data write-back by the write-back unit is started, the copy is not performed until the data write-back is completed. The data storage processing apparatus in the printing apparatus as described in any one of these. 印刷装置の電源遮断時に、前記書戻し手段が前記コピー手段より起動優先順位が低いという関係は保持しつつ、前記書戻し手段を前記印刷制御手段より高い起動優先順位に変更する優先順位変更手段を更に備えたことを特徴とする請求項1乃至4のうちいずれか一項に記載の印刷装置におけるデータ記憶処理装置。   Priority order changing means for changing the writing back means to a higher starting priority than the printing control means while maintaining the relationship that the writing back means has a lower starting priority than the copying means when the printing apparatus is powered off; The data storage processing device in a printing apparatus according to any one of claims 1 to 4, further comprising: 印刷手段と、前記印刷手段を制御する制御装置とを備えた印刷装置であって、
前記制御装置は、請求項1乃至5のいずれか一項に記載の前記データ記憶処理装置を備えたことを特徴とする印刷装置。
A printing apparatus comprising: a printing unit; and a control device that controls the printing unit,
A printing apparatus comprising the data storage processing apparatus according to claim 1.
印刷装置には、印刷関連情報を含むデータが記憶される不揮発性の第1の記憶手段と、前記第1の記憶手段のデータが書き込まれるとともに当該データの更新のために印刷制御手段による書込みアクセスが許可された第1記憶部と、前記印刷制御手段による書込みアクセスが禁止された第2記憶部とを有する揮発性又は不揮発性の第2の記憶手段とが備えられ、
前記第1の記憶手段のデータを前記第2の記憶手段の第1記憶部に書き込む書込み段階と、
印刷手段に印刷媒体への記録動作を行わせるための記録系処理を行う記録系処理段階を備える印刷処理段階を含むとともに前記印刷手段による印刷動作によって更新される印刷関連情報を取得する印刷制御段階と、
前記印刷制御段階で取得した印刷関連情報を前記第1記憶部に書き込むデータ更新段階と、
前記第1記憶部のデータを前記第2記憶部にコピーするコピー段階と、
前記第2記憶部のデータを前記第1の記憶手段に書き戻す書戻し段階と、を備え、
前記コピー段階が前記データ更新段階よりも実行優先順位が高く設定され、前記書戻し段階は前記印刷制御段階のうち少なくとも前記記録系処理段階よりも実行優先順位が低く設定されていることを特徴とする印刷装置におけるデータ記憶処理方法。
Non-volatile first storage means for storing data including printing-related information, and data in the first storage means are written in the printing apparatus, and write access by the print control means for updating the data A volatile or non-volatile second storage unit having a first storage unit that is permitted and a second storage unit in which write access by the print control unit is prohibited,
A writing step of writing data of the first storage means into the first storage unit of the second storage means;
A print control stage including a print processing stage including a recording system processing stage for performing a recording system process for causing the printing means to perform a recording operation on a print medium, and acquiring print-related information updated by the printing operation by the printing means When,
A data update step of writing the print-related information acquired in the print control step into the first storage unit;
A copying step of copying data in the first storage unit to the second storage unit;
A write back step of writing back the data in the second storage unit to the first storage means,
The copy stage is set to have a higher execution priority than the data update stage, and the write-back stage is set to have a lower execution priority than at least the recording system processing stage in the print control stage. Data storage processing method in a printing apparatus.
JP2010186917A 2010-08-24 2010-08-24 Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method Withdrawn JP2012045715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010186917A JP2012045715A (en) 2010-08-24 2010-08-24 Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010186917A JP2012045715A (en) 2010-08-24 2010-08-24 Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method

Publications (1)

Publication Number Publication Date
JP2012045715A true JP2012045715A (en) 2012-03-08

Family

ID=45901187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010186917A Withdrawn JP2012045715A (en) 2010-08-24 2010-08-24 Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method

Country Status (1)

Country Link
JP (1) JP2012045715A (en)

Similar Documents

Publication Publication Date Title
JP5609436B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
JP4985797B2 (en) Identification of printing recording material container
JP5651958B2 (en) Printing control apparatus, printing control system, printing apparatus, and printing control method
JP5609392B2 (en) Printing control apparatus, printing apparatus, and printing control method in printing apparatus
JP5593931B2 (en) Printing control apparatus, printing apparatus, and information providing method in printing apparatus
JP5728855B2 (en) Data storage processing apparatus, printing apparatus and data storage processing method in printing apparatus
JP5593924B2 (en) Printing control apparatus, printing apparatus, and printing control method in printing apparatus
JP4245411B2 (en) Image forming apparatus
US8801143B2 (en) Image forming apparatus, recording head maintenance operation control method, and computer-readable recording medium having a recording head maintenance operation control program
JP2008195012A (en) Fluid injection apparatus and fluid supply method in fluid injection apparatus
JP5762102B2 (en) Inkjet recording device
US8792112B2 (en) Printing apparatus and error processing method thereof
JP2009187423A (en) Data management device and data management method in electronic equipment
JP2012045715A (en) Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2004358963A (en) Power management controlling method and recording apparatus
JP2012045873A (en) Data storage processing apparatus in printing apparatus, printing apparatus, and data storage processing method
JP2004237450A (en) Ink jet recorder and its controlling method
JP2005035103A (en) Liquid injection method, liquid injection system and liquid injection execution program
JP2007160602A (en) Image forming apparatus
JP2005041085A (en) Image formation device, ink refilling mechanism part, driving control program, and recording medium with program stored therein
JP4190319B2 (en) Image forming apparatus
JP5332579B2 (en) Image forming apparatus and head unit control method for image forming apparatus
JP2009000975A (en) Image formation device and method of forming image
JP2004330517A (en) Image formation device
JP2004330503A (en) Image formation device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20131105