JP2013067092A - Printer and printing method - Google Patents

Printer and printing method Download PDF

Info

Publication number
JP2013067092A
JP2013067092A JP2011207844A JP2011207844A JP2013067092A JP 2013067092 A JP2013067092 A JP 2013067092A JP 2011207844 A JP2011207844 A JP 2011207844A JP 2011207844 A JP2011207844 A JP 2011207844A JP 2013067092 A JP2013067092 A JP 2013067092A
Authority
JP
Japan
Prior art keywords
correction value
timing
correction
ink
transport
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
JP2011207844A
Other languages
Japanese (ja)
Inventor
Toru Miyamoto
徹 宮本
Kimitaka Kamijo
公高 上條
Masahiro Murata
昌弘 村田
Naoki Maruyama
直樹 丸山
Go Tsuchiya
剛 土屋
Masahiko Yoshida
昌彦 吉田
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 JP2011207844A priority Critical patent/JP2013067092A/en
Publication of JP2013067092A publication Critical patent/JP2013067092A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Ink Jet (AREA)

Abstract

PROBLEM TO BE SOLVED: To correct the ejection timing of ink droplets while appropriately maintaining ejection intervals of the ink droplets when printing an image by a line printer.SOLUTION: The printer includes: (A) a conveying unit to convey the medium in a conveying direction by rotating a conveying roller; (B) a head unit including a plurality of nozzles arranged in a crossing direction crossing the conveying direction, and to eject the ink from the nozzles to print the image on the medium; (C) a storage unit to store a plurality of correction values associated with each of circumferential positions of the conveying roller; (D) a control unit to control operations of the conveying unit and the head unit, and to eject the ink from the nozzles at timing corresponding to the correction value. The plurality of correction values include areas in each of which the variation of the correction value with reference to the circumferential position is kept fixed in the case of making the timing earlier than the latest timing, and in other cases, the correction value with reference to the circumferential position is represented by a periodic function.

Description

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

媒体(例えば紙や布など)を搬送方向に搬送するとともにヘッドからインク滴を吐出することで媒体に印刷を行う印刷装置として、インクジェットプリンターが知られている。このような印刷装置では、媒体を搬送する際に搬送誤差が生じると、媒体上の正しい位置に画像等を印刷することができなくなる。特に、インクジェットプリンターでは、媒体上の正しい位置にインク滴が着弾しなくなると、印刷された画像に白スジや黒スジが生じ、画質が劣化するおそれがある。   2. Description of the Related Art An ink jet printer is known as a printing apparatus that prints on a medium by transporting a medium (for example, paper or cloth) in the transport direction and ejecting ink droplets from a head. In such a printing apparatus, if a conveyance error occurs when the medium is conveyed, an image or the like cannot be printed at a correct position on the medium. In particular, in an ink jet printer, if ink droplets do not land at the correct position on the medium, white stripes or black stripes may occur in the printed image, and the image quality may deteriorate.

そこで、媒体の搬送量を補正する方法が提案されている。例えば特許文献1では、テストパターンを印刷し、このテストパターンを読み取り、読取結果に基づいて補正値を算出し、画像を印刷する際に補正値に基づいて搬送量を補正することが提案されている。   Therefore, a method for correcting the transport amount of the medium has been proposed. For example, Patent Document 1 proposes that a test pattern is printed, the test pattern is read, a correction value is calculated based on the read result, and the carry amount is corrected based on the correction value when an image is printed. Yes.

特開平5−96796号公報JP-A-5-96796

しかし、搬送される媒体に対して固定されたヘッドからインクを吐出する所謂ラインプリンタータイプの印刷装置では、媒体の搬送量が一定の状態で画像の印刷を行うため、搬送量を補正することは難しい。   However, in a so-called line printer type printing apparatus that discharges ink from a head fixed to a medium to be conveyed, an image is printed with a constant medium conveyance amount. difficult.

そこで、インクの吐出タイミングを変更することによって、画質の劣化を抑制する方法が考えられる。その際、吐出タイミングを補正した結果、適正なインク滴の吐出間隔を保てなくならないように注意する必要がある。例えば、あるノズルからインク滴を吐出する動作が終了しないうちに次の吐出タイミングが来てしまうと、正確な吐出動作が行えなくなる場合がある。したがって、インク滴の吐出間隔を適正に保ちつつ吐出タイミングの補正を行う必要がある。   Accordingly, a method for suppressing the deterioration of image quality by changing the ink ejection timing is conceivable. At this time, it is necessary to pay attention so that an appropriate ink droplet ejection interval cannot be maintained as a result of correcting the ejection timing. For example, if the next ejection timing comes before the operation of ejecting ink droplets from a certain nozzle is completed, an accurate ejection operation may not be performed. Therefore, it is necessary to correct the ejection timing while keeping the ink droplet ejection interval appropriate.

本発明では、ラインプリンターで画像を印刷する際に、インク滴の吐出間隔を適正に保ちつつ吐出タイミングを補正することを目的としている。   An object of the present invention is to correct ejection timing while maintaining an appropriate ejection interval between ink droplets when printing an image with a line printer.

上記目的を達成するための主たる発明は、(A)搬送ローラーを回転させることによって搬送方向に媒体を搬送する搬送部と、(B)前記搬送方向と交差する交差方向に並ぶ複数のノズルを有し、該ノズルからインクを吐出することによって前記媒体に画像を印刷するヘッド部と、(C)前記搬送ローラーの周方向の位置毎にそれぞれ対応付けられた複数の補正値を記憶した記憶部と、(D)前記搬送部及び前記ヘッド部の動作を制御する制御部であって、前記補正値に応じたタイミングで前記ノズルから前記インクを吐出させる制御部と、を備える印刷装置であって、前記複数の補正値は、直前の前記タイミングと比べて前記タイミングを早める場合には、前記周方向の位置に対する前記補正値の変化量が一定になる領域を有し、それ以外の場合には、前記周方向の位置に対する前記補正値が周期関数で表される、ことを特徴とする印刷装置である。   A main invention for achieving the above object includes (A) a transport unit that transports a medium in a transport direction by rotating a transport roller, and (B) a plurality of nozzles arranged in an intersecting direction that intersects the transport direction. A head unit that prints an image on the medium by ejecting ink from the nozzle; and (C) a storage unit that stores a plurality of correction values respectively associated with the circumferential positions of the transport roller; (D) a control unit that controls operations of the transport unit and the head unit, and a control unit that discharges the ink from the nozzles at a timing according to the correction value, The plurality of correction values have a region where the amount of change in the correction value with respect to the position in the circumferential direction is constant when the timing is advanced compared to the previous timing. In this case, the correction value for the circumferential position is expressed by a periodic function, it is a printing apparatus according to claim.

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

プリンター1の全体構成を示すブロック図である。1 is a block diagram illustrating an overall configuration of a printer. プリンター1の印刷領域周辺の概略を示す図である。FIG. 2 is a diagram illustrating an outline around a printing area of the printer. ヘッド41の下面における複数の短尺ヘッドの配列を説明する図である。FIG. 4 is a diagram illustrating an arrangement of a plurality of short heads on the lower surface of the head 41. 図4A及び図4Bは、偏芯が生じている搬送ローラーによって搬送される媒体に対するインク滴の着弾の様子について説明する図である。FIG. 4A and FIG. 4B are diagrams for explaining how ink droplets land on a medium conveyed by a conveyance roller in which eccentricity occurs. 搬送ローラーの周方向の位置毎に設定される補正値について説明する図である。It is a figure explaining the correction value set for every position of the peripheral direction of a conveyance roller. PTSタイミング補正の概念について説明する図である。It is a figure explaining the concept of PTS timing correction. 図7A〜図7Cは、に補正値の大きさと駆動信号COMとの関係について説明する図である。7A to 7C are diagrams for explaining the relationship between the magnitude of the correction value and the drive signal COM. 実施形態で用いられる補正値の一例を表す図である。It is a figure showing an example of the correction value used by embodiment. 補正値を算出する為の全体フローを表す図である。It is a figure showing the whole flow for calculating a correction value. 実施形態で印刷されるテストパターンの一例を示す図である。It is a figure which shows an example of the test pattern printed by embodiment. 基準パターンとテストパターンを読み取る際の、スキャナーへのセット位置について説明する図である。It is a figure explaining the setting position to a scanner at the time of reading a reference pattern and a test pattern. 罫線の重心位置を算出するためのフローを表す図である。It is a figure showing the flow for calculating the gravity center position of a ruled line. 基準パターンについて罫線位置を認識する方法を説明する図である。It is a figure explaining the method of recognizing a ruled line position about a standard pattern. 基準パターンの罫線の傾き量を算出する方法を説明する図である。It is a figure explaining the method of calculating the inclination amount of the ruled line of a reference pattern. テストパターンについて傾き量を算出する方法について説明する図である。It is a figure explaining the method of calculating the inclination amount about a test pattern. 余白量Xについての説明図である。It is explanatory drawing about the margin amount X. FIG. ラスター毎の濃度分布の一例を表す図である。It is a figure showing an example of the density distribution for every raster. 濃度重心位置の算出方法を説明する図である。It is a figure explaining the calculation method of a density gravity center position. 仮想基準パターンの算出方法について説明する図である。It is a figure explaining the calculation method of a virtual reference pattern. 仮想基準パターンの濃度重心位置と、テストパターンの濃度重心位置との関係の一例を表す図である。It is a figure showing an example of the relationship between the density gravity center position of a virtual reference pattern, and the density gravity center position of a test pattern. 仮想基準パターンの濃度重心位置に対するテストパターンの濃度重心位置の比率について説明する図である。It is a figure explaining the ratio of the density centroid position of a test pattern with respect to the density centroid position of a virtual reference pattern. テストパターンの濃度重心位置の実測値を算出する方法を説明する図である。It is a figure explaining the method of calculating the actual value of the density | concentration gravity center position of a test pattern. 補正値算出の概要を説明する図である。It is a figure explaining the outline | summary of correction value calculation. 補正値を算出するためのフローを表す図である。It is a figure showing the flow for calculating a correction value. インク滴の着弾位置のずれと補正すべき時間との関係を表す図である。It is a figure showing the relationship between the shift | offset | difference of the landing position of an ink droplet, and the time which should be corrected. 補正量を算出するために用いられる罫線の例を示す図である。It is a figure which shows the example of the ruled line used in order to calculate the corrected amount. 補正値の段差の例を示す図である。It is a figure which shows the example of the level | step difference of a correction value. 段差補正の方法について補正値の変化量毎に場合分けして説明する図である。It is a figure explaining according to the case for every variation | change_quantity of a correction value about the method of level | step difference correction. 搬送速度を変更した場合の波形衝突マージンの変化の様子を表す図である。It is a figure showing the mode of a change of the waveform collision margin at the time of changing a conveyance speed.

本明細書及び添付図面の記載により、少なくとも、以下の事項が明らかとなる。
(A)搬送ローラーを回転させることによって搬送方向に媒体を搬送する搬送部と、(B)前記搬送方向と交差する交差方向に並ぶ複数のノズルを有し、該ノズルからインクを吐出することによって前記媒体に画像を印刷するヘッド部と、(C)前記搬送ローラーの周方向の位置毎にそれぞれ対応付けられた複数の補正値を記憶した記憶部と、(D)前記搬送部及び前記ヘッド部の動作を制御する制御部であって、前記補正値に応じたタイミングで前記ノズルから前記インクを吐出させる制御部と、を備える印刷装置であって、前記複数の補正値は、直前の前記タイミングと比べて前記タイミングを早める場合には、前記周方向の位置に対する前記補正値の変化量が一定になる領域を有し、それ以外の場合には、前記周方向の位置に対する前記補正値が周期関数で表される、ことを特徴とする印刷装置。
このような印刷装置によれば、インク滴の吐出間隔を適正に保ちつつ吐出タイミングを補正することができるので、搬送ローラーの偏芯とうによって搬送誤差が生じる場合であっても高画質な画像を印刷することができる。
At least the following matters will become clear from the description of the present specification and the accompanying drawings.
(A) a transport unit that transports a medium in the transport direction by rotating a transport roller; and (B) a plurality of nozzles arranged in an intersecting direction that intersects the transport direction, and ejecting ink from the nozzles A head unit that prints an image on the medium; (C) a storage unit that stores a plurality of correction values associated with each circumferential position of the transport roller; and (D) the transport unit and the head unit. And a control unit that discharges the ink from the nozzles at a timing corresponding to the correction value, wherein the plurality of correction values are the immediately preceding timings. When the timing is advanced compared to the above, there is a region in which the amount of change in the correction value with respect to the circumferential position is constant. Printing apparatus correction value is represented by a periodic function, and wherein the.
According to such a printing apparatus, it is possible to correct the ejection timing while keeping the ink droplet ejection interval properly, so that even when a conveyance error occurs due to the eccentricity of the conveyance roller, a high-quality image can be obtained. Can be printed.

かかる印刷装置であって、前記補正値は、前記搬送方向に搬送される前記媒体に対して前記ノズルから前記インクを吐出することによって前記交差方向に沿ったラインが前記搬送方向に複数並んで形成されるテストパターンについて、該テストパターンを読み取った画像データから、複数の前記ラインの間の前記搬送方向の間隔を測定した結果に基づいて算出され、前記タイミングで、前記ノズルからインクが吐出された後、次のインクが吐出されるまでの時間間隔が所定の閾値よりも短くなる場合には、前記時間間隔が前記閾値以上となるように前記補正値が修正されることが望ましい。
このような印刷装置によれば、波形衝突を回避しつつ、インク吐出タイミングを適切に調整することができる。
In this printing apparatus, the correction value is formed such that a plurality of lines along the intersecting direction are arranged in the transport direction by ejecting the ink from the nozzles to the medium transported in the transport direction. The test pattern is calculated from the image data obtained by reading the test pattern, based on the measurement result of the interval in the transport direction between the plurality of lines, and ink is ejected from the nozzle at the timing. Thereafter, when the time interval until the next ink is ejected becomes shorter than a predetermined threshold value, the correction value is preferably corrected so that the time interval becomes equal to or greater than the threshold value.
According to such a printing apparatus, it is possible to appropriately adjust the ink discharge timing while avoiding the waveform collision.

かかる印刷装置であって、前記媒体を搬送する速度が速いほど、前記閾値が大きくなることが望ましい。
このような印刷装置によれば、搬送速度に応じて波形衝突回避のための許容範囲を最適化することができる。
In this printing apparatus, it is desirable that the threshold value increases as the speed of transporting the medium increases.
According to such a printing apparatus, an allowable range for avoiding waveform collision can be optimized according to the conveyance speed.

かかる印刷装置であって、前記ラインの間の前記搬送方向の間隔を測定する際に、前記搬送ローラーが1回転した時に生じる搬送誤差によるずれ量を修正し、修正後の前記ラインの間の前記搬送方向の間隔を測定した結果に基づいて前記補正値が算出されることが望ましい。
このような印刷装置によれば、DC成分を除去することで、搬送ローラーの回転基準位置の前後において補正値の大きさに極端な差が生じることを抑制しやすくなる。
In this printing apparatus, when measuring the distance in the transport direction between the lines, the amount of shift due to a transport error that occurs when the transport roller makes one rotation is corrected, and the correction between the corrected lines is performed. It is desirable that the correction value is calculated based on the result of measuring the interval in the transport direction.
According to such a printing apparatus, by removing the DC component, it is easy to suppress an extreme difference in the magnitude of the correction value before and after the rotation reference position of the transport roller.

かかる印刷装置であって、前記搬送ローラーの周方向の先端部の位置における補正値と、前記周方向の終端部の位置における補正値との差が小さくなるように、前記先端部の位置における補正値と前記終端部の位置における補正値の差に応じて算出される比率を用いて前記補正値が補正されることが望ましい。
このような印刷装置によれば、現在の周回の終端から次の周回の先端に移行する際に補正値に段差が生じることを抑制することができる。
In such a printing apparatus, the correction at the position of the front end portion is reduced so that the difference between the correction value at the position of the front end portion in the circumferential direction of the transport roller and the correction value at the position of the end portion in the circumferential direction becomes small. It is desirable that the correction value is corrected using a ratio calculated according to the difference between the value and the correction value at the position of the end portion.
According to such a printing apparatus, it is possible to suppress the occurrence of a step in the correction value when shifting from the end of the current turn to the tip of the next turn.

かかる印刷装置であって、前記周方向の先端部の位置における補正値の傾き、及び、前記周方向の終端部の位置における補正値の傾きに応じて、前記先端部の位置における補正値と前記終端部の位置における補正値の差が算出されることが望ましい。
このような印刷装置によれば、補正値の傾きの条件に応じて正確に段差補正を行うことができる。
In this printing apparatus, the correction value at the position of the front end portion according to the inclination of the correction value at the position of the front end portion in the circumferential direction and the inclination of the correction value at the position of the end portion in the circumferential direction It is desirable to calculate a difference in correction value at the position of the end portion.
According to such a printing apparatus, the level difference can be accurately corrected according to the inclination condition of the correction value.

かかる印刷装置であって、前記搬送ローラーが一回転する周期毎に、前記補正値が前記周方向の位置毎にそれぞれ対応付けて算出され、前記搬送ローラーの周期毎に算出される補正値のうち、前記搬送ローラーの第1周期目以外の各周期について算出される補正値を平均した補正値を用いて、前記ノズルからインクを吐出するタイミングが補正されることが望ましい。
このような印刷装置によれば、搬送ローラー1周期分についての補正値を正確に算出することができる。
In this printing apparatus, the correction value is calculated in association with each position in the circumferential direction for each period in which the conveyance roller makes one rotation, and among the correction values calculated for each period of the conveyance roller The timing for ejecting ink from the nozzles is preferably corrected using a correction value obtained by averaging correction values calculated for each period other than the first period of the transport roller.
According to such a printing apparatus, the correction value for one cycle of the transport roller can be accurately calculated.

また、搬送ローラーを回転させることによって搬送方向に媒体を搬送することと、前記搬送ローラーの周方向の位置毎にそれぞれ対応付けられた複数の補正値に応じたタイミングで、前記搬送方向と交差する交差方向に並ぶ複数のノズルからインクを吐出することと、を有する印刷方法であって、前記補正値は、直前の前記タイミングと比べて前記タイミングを早める場合には、前記周方向の位置に対する前記補正値の変化量が一定になる領域を有し、それ以外の場合には、前記周方向の位置に対する前記補正値が周期関数で表される、ことを特徴とする印刷方法が明らかとなる。   In addition, the medium is conveyed in the conveyance direction by rotating the conveyance roller, and intersects the conveyance direction at a timing corresponding to a plurality of correction values respectively associated with the circumferential positions of the conveyance roller. Discharging the ink from a plurality of nozzles arranged in an intersecting direction, wherein the correction value is set to the position in the circumferential direction when the timing is advanced compared to the immediately preceding timing. The printing method is characterized in that there is a region where the amount of change in the correction value is constant, and in other cases, the correction value for the position in the circumferential direction is represented by a periodic function.

===基本的な構成===
画像を印刷するための印刷装置について、基本的な構成を説明する。本実施形態の「印刷装置」は、媒体に対してのインク液滴(インク滴)を吐出することで画像等を印刷するインクジェットプリンターである。
=== Basic configuration ===
A basic configuration of a printing apparatus for printing an image will be described. The “printing apparatus” of the present embodiment is an ink jet printer that prints an image or the like by ejecting ink droplets (ink droplets) onto a medium.

<プリンター1の構成>
インクジェットプリンターの一例としてプリンター1について説明する。図1は、プリンター1の全体構成を示すブロック図である。図2は、プリンター1の印刷領域周辺の概略を示す図である。
プリンター1は、搬送ユニット20と、ヘッドユニット40と、検出器群50と、コントローラー60と、を有する。また、プリンター1はコンピューター110と通信可能に接続されている。プリンター1とコンピューター110とをあわせて印刷装置(印刷システム)と考えることもできる。
<Configuration of Printer 1>
The printer 1 will be described as an example of an ink jet printer. FIG. 1 is a block diagram illustrating the overall configuration of the printer 1. FIG. 2 is a diagram showing an outline around the print area of the printer 1.
The printer 1 includes a transport unit 20, a head unit 40, a detector group 50, and a controller 60. The printer 1 is communicably connected to the computer 110. The printer 1 and the computer 110 can also be considered as a printing apparatus (printing system).

コンピューター110にはプリンタードライバーがインストールされている。プリンタードライバーは、表示装置にユーザーインターフェースを表示させ、アプリケーションプログラムから出力された画像データを印刷データに変換させるためのプログラムである。このプリンタードライバーは、フレキシブルディスクFDやCD−ROMなどの印刷媒体(コンピューターが読み取り可能な印刷媒体)に印刷されている。また、プリンタードライバーはインターネットを介してコンピューター110にダウンロードすることも可能である。なお、このプログラムは、各種の機能を実現するためのコードから構成されている。コンピューター110はプリンター1に画像を印刷させるため、印刷させる画像に応じた印刷データをプリンター1に出力する。
また、コンピューター110には後述する補正値を算出するための補正値算出プログラムがインストールされている。
A printer driver is installed in the computer 110. The printer driver is a program for causing a display device to display a user interface and converting image data output from an application program into print data. This printer driver is printed on a print medium (a computer-readable print medium) such as a flexible disk FD or a CD-ROM. Also, the printer driver can be downloaded to the computer 110 via the Internet. In addition, this program is comprised from the code | cord | chord for implement | achieving various functions. The computer 110 outputs print data corresponding to the image to be printed to the printer 1 in order to cause the printer 1 to print an image.
The computer 110 is installed with a correction value calculation program for calculating a correction value, which will be described later.

搬送ユニット20は、媒体(例えば紙Sなど)を所定の方向(以下、搬送方向という)に搬送させるための搬送部である。この搬送ユニット20は、搬送ローラー22及び排出ローラー23と、ベルト24とを有する(図2)。搬送ローラー23にはギア輪列を介して搬送モーター(以下、PFモーターともいう)が接続されている。PFモーターが回転すると、搬送ローラー22が回転し、ベルト24及び排出ローラー23が回転する。なお、PFモーター(搬送ローラー22)の回転量は後述するロータリーエンコーダー51によって監視される。
画像を印刷する際には、給紙ローラー(不図示)によってプリンター1の内部に給紙された媒体が、ベルト24によって印刷可能な領域(ヘッド部40と対向する領域)まで搬送される。印刷可能な領域を通過して画像が印刷された紙Sは、ベルト24によって外部へ排紙される。なお、搬送中の紙Sはベルト24に静電吸着又はバキューム吸着されている。
The transport unit 20 is a transport unit for transporting a medium (such as paper S) in a predetermined direction (hereinafter referred to as a transport direction). This conveyance unit 20 has the conveyance roller 22, the discharge roller 23, and the belt 24 (FIG. 2). A transport motor (hereinafter also referred to as PF motor) is connected to the transport roller 23 via a gear train. When the PF motor rotates, the transport roller 22 rotates, and the belt 24 and the discharge roller 23 rotate. The rotation amount of the PF motor (conveying roller 22) is monitored by a rotary encoder 51 described later.
When printing an image, a medium fed into the printer 1 by a paper feed roller (not shown) is conveyed to a printable area (an area facing the head unit 40) by the belt 24. The paper S on which an image is printed after passing through the printable area is discharged to the outside by the belt 24. The paper S being conveyed is electrostatically attracted or vacuum attracted to the belt 24.

ヘッドユニット40は、媒体に対してインクを吐出するためのものである。ヘッドユニット40は、搬送中の媒体に対して各色インクを吐出することによってドットを形成し、媒体上に画像を印刷する。本実施形態のプリンター1はラインプリンターであり、ヘッドユニット40は搬送ユニット20のベルト24の上方に設けられ、各ヘッドは媒体幅分のドットを一度に形成することができる。
なお、ヘッドユニット40を構成するヘッドの配置については、後で説明する。
The head unit 40 is for ejecting ink to the medium. The head unit 40 forms dots by ejecting each color ink onto the medium being transported, and prints an image on the medium. The printer 1 of the present embodiment is a line printer, the head unit 40 is provided above the belt 24 of the transport unit 20, and each head can form dots for the medium width at a time.
The arrangement of the heads constituting the head unit 40 will be described later.

検出器群50は、ロータリーエンコーダー51と、原点センサー52とを有する。ロータリーエンコーダー51はPFモーターの回転軸上に設けられ、PFモーター回転量を検出することができる。これにより、媒体搬送動作中の搬送ローラー22の回転量を検出する。ロータリーエンコーダー51は円盤状のスケールとセンサー部(共に不図示)からなり、円盤状スケールには、その周方向に沿って一定の間隔毎にスリットが設けられる。また、周方向の所定の位置に、搬送ローラー22の回転量を検出する際の基準位置(ホームポジション)を規定するマークが付されている。なお、ロータリーエンコーダー51は搬送ローラー22の回転軸に設けられ、搬送ローラー22の回転量を直接検出するのであってもよい。 The detector group 50 includes a rotary encoder 51 and an origin sensor 52. The rotary encoder 51 is provided on the rotating shaft of the PF motor, and can detect the amount of rotation of the PF motor. Thereby, the rotation amount of the transport roller 22 during the medium transport operation is detected. The rotary encoder 51 includes a disk-shaped scale and a sensor unit (both not shown), and the disk-shaped scale is provided with slits at regular intervals along the circumferential direction. In addition, a mark that defines a reference position (home position) for detecting the rotation amount of the transport roller 22 is attached to a predetermined position in the circumferential direction. The rotary encoder 51 may be provided on the rotation shaft of the transport roller 22 and directly detect the rotation amount of the transport roller 22.

原点センサー52は、円盤状スケール上において上述のマークが付された位置を検出する。原点センサー52によって検出された当該マークの位置が、搬送ローラー22の回転量を検出する際の基準位置(ホームポジション、以下、HPともいう)となる。   The origin sensor 52 detects the position where the above-mentioned mark is given on the disk scale. The position of the mark detected by the origin sensor 52 becomes a reference position (home position, hereinafter also referred to as HP) when detecting the rotation amount of the transport roller 22.

コントローラー60は、プリンターの制御を行うための制御ユニット(制御部)であり、コンピューター110から受信した印刷データ、及び、検出器群50によって検出された各種検出結果に基づいて各ユニットを制御して、媒体に画像を印刷する。コントローラー60は、CPU61と、メモリー62と、COM生成部63とを有する。   The controller 60 is a control unit (control unit) for controlling the printer, and controls each unit based on print data received from the computer 110 and various detection results detected by the detector group 50. Print an image on the medium. The controller 60 includes a CPU 61, a memory 62, and a COM generation unit 63.

CPU61は、プリンター1の全体の制御を行うための演算処理装置である。メモリー62は、CPU61のプログラムを格納する領域や作業領域等を確保し、また、後述する補正値を記憶するための記憶部である。メモリー62は、RAM、EEPROM等の記憶素子によって構成される。メモリー62に格納されているプログラムに従って、CPU61が搬送ユニット20やヘッドユニット40の動作を制御する。   The CPU 61 is an arithmetic processing device for performing overall control of the printer 1. The memory 62 is a storage unit for securing an area for storing the program of the CPU 61, a work area, and the like, and storing correction values to be described later. The memory 62 is configured by a storage element such as a RAM or an EEPROM. The CPU 61 controls the operations of the transport unit 20 and the head unit 40 in accordance with a program stored in the memory 62.

COM生成部63は、ヘッドユニット40に備えられるノズルから所定量のインクを吐出させるため信号COMを生成し、ヘッド部40に印加する。COMは電圧波形信号であり、COMが印加されることによってノズル内に備えられた圧電素子(不図示)が伸縮し、ノズル内からインクを押し出すことによってインクを吐出する。そして、当該電圧波形の形状(例えば電圧の大きさ)を変更することによって圧電素子の伸縮量を制御し、吐出されるインクの量を調整することができる。   The COM generator 63 generates a signal COM for ejecting a predetermined amount of ink from the nozzles provided in the head unit 40 and applies the signal COM to the head unit 40. COM is a voltage waveform signal. When COM is applied, a piezoelectric element (not shown) provided in the nozzle expands and contracts, and ink is ejected by pushing ink out of the nozzle. The amount of ink ejected can be adjusted by controlling the amount of expansion and contraction of the piezoelectric element by changing the shape of the voltage waveform (for example, the magnitude of the voltage).

<ヘッドユニット40の構成>
本実施形態で、ヘッドユニット40は、搬送方向の上流側から順にブラック(K)インクを吐出するヘッド41、シアン(C)インクを吐出するヘッド42、マゼンタ(M)インクを吐出するヘッド43、イエロー(Y)インクを吐出するヘッド44の4つのヘッドが並んでいる(図2参照)。ヘッド41〜44は同一の構造を有し、それぞれ複数の短尺ヘッドによって構成されている。
<Configuration of head unit 40>
In the present embodiment, the head unit 40 includes a head 41 that ejects black (K) ink, a head 42 that ejects cyan (C) ink, a head 43 that ejects magenta (M) ink in order from the upstream side in the transport direction, Four heads 44 for discharging yellow (Y) ink are arranged side by side (see FIG. 2). The heads 41 to 44 have the same structure and are each composed of a plurality of short heads.

図3は、ヘッド41の下面における複数の短尺ヘッドの配列を説明する図である。なお、図3はヘッド41を上面から仮想的に見た図である。図に示すように、ヘッド41は、搬送方向と交差する方向である交差方向(以下、紙幅方向とも呼ぶ)に所定間隔で並ぶ複数の短尺ヘッド41A及び41Bを有する。短尺ヘッド41A及び41Bはそれぞれ千鳥列状に配置され、短尺ヘッド41Aと短尺ヘッド41Aとの紙幅方向の間の位置に短尺ヘッド41Bが配置される。そして、各短尺ヘッドには、複数のノズルが直列に連なるノズル列が形成されている。該ノズル列では紙幅方向に沿って一定のピッチ(例えば360dpi)で所定数(例えば180個)ずつノズルが並んでいる。これらのノズルからインクを吐出することにより、紙幅方向分のドットを一度に形成することができる。   FIG. 3 is a diagram illustrating the arrangement of a plurality of short heads on the lower surface of the head 41. FIG. 3 is a view of the head 41 viewed virtually from above. As shown in the figure, the head 41 has a plurality of short heads 41A and 41B arranged at predetermined intervals in an intersecting direction (hereinafter also referred to as a paper width direction) that is a direction intersecting the transport direction. The short heads 41A and 41B are each arranged in a staggered pattern, and the short head 41B is arranged at a position between the short head 41A and the short head 41A in the paper width direction. In each short head, a nozzle row in which a plurality of nozzles are connected in series is formed. In the nozzle row, a predetermined number (for example, 180) of nozzles are arranged at a constant pitch (for example, 360 dpi) along the paper width direction. By ejecting ink from these nozzles, dots for the paper width direction can be formed at a time.

なお、図2の例ではヘッド部40が4つのヘッド(ヘッド41〜44)によって構成されているが、KCMY以外の色のインク(例えばクリアーやホワイト)を用いて印刷を行なう場合には、ヘッドの数が5つ以上であってもよい。また、どのヘッドがどの色のインクを吐出するかについては図2の例に限られない。例えば、ヘッド41がイエロー(Y)インクを吐出してもよい。また、一つのヘッドから2色以上のインクを吐出することも可能である。   In the example of FIG. 2, the head unit 40 is composed of four heads (heads 41 to 44). However, when printing is performed using ink of a color other than KCMY (for example, clear or white), the head The number of may be five or more. Further, which head ejects which color of ink is not limited to the example of FIG. For example, the head 41 may eject yellow (Y) ink. It is also possible to eject ink of two or more colors from one head.

<搬送ローラーの偏芯による着弾位置ずれについて>
プリンター1のように、搬送ローラーを回転させることによって媒体の搬送を行なうプリンターにおいて、搬送ローラーの回転中心の軸がずれている場合、すなわち、搬送ローラーに偏芯が生じている場合に生じるインク滴の着弾位置ずれについて説明する。
図4A及び図4Bは、偏芯が生じている搬送ローラーによって搬送される媒体に対するインク滴の着弾の様子について説明する図である。図4A及び図4Bで、搬送ローラーは一定速度で回転しているものとする。
<About landing position deviation due to eccentricity of transport roller>
In a printer that transports a medium by rotating a transport roller, such as the printer 1, ink droplets that are generated when the center of rotation of the transport roller is deviated, that is, when the transport roller is eccentric. Will be described.
FIG. 4A and FIG. 4B are diagrams for explaining how ink droplets land on a medium conveyed by a conveyance roller in which eccentricity occurs. 4A and 4B, it is assumed that the transport roller is rotating at a constant speed.

偏芯の生じていない搬送ローラーにて一定の速度で搬送される媒体に対して、等間隔でインク滴が吐出される場合、該インク滴の搬送方向における着弾位置の間隔は理論的には全て等間隔となるはずである。
しかし、搬送ローラーに偏芯が生じていると、図4Aのようにインク滴が等間隔でヘッドから吐出された場合であっても、インク滴の搬送方向の着弾位置は不均等になる。搬送ローラーの偏芯によって媒体の搬送速度が一定ではなくなるためである。言い換えると、搬送ローラーが1回転する間に媒体の搬送量が多い部分と少ない部分とが生じるため、等間隔で吐出されるインク滴は媒体の搬送量が多い部分では搬送方向の着弾間隔が広くなり、搬送量が少ない部分では搬送方向の着弾間隔が狭くなる。このように、インク滴の着弾位置にずれが生じると、印刷される画像の画質が悪化する要因となる。
特に、プリンター1のように千鳥状にヘッドが配列されている(図3参照)印刷装置を用いて、媒体幅方向に罫線を印刷する場合、搬送方向のインク滴着弾位置にずれが生じると、印刷される罫線には段差が生じるおそれがある。すなわち、罫線を1本の線として印刷することができなくなり、画像の劣化が目立ちやすくなる。
When ink droplets are ejected at regular intervals on a medium that is transported at a constant speed by a transport roller that is not decentered, the intervals between the landing positions in the transport direction of the ink droplets are theoretically all. Should be evenly spaced.
However, if the transport roller is eccentric, the landing positions in the transport direction of the ink droplets are uneven even when the ink droplets are ejected from the head at regular intervals as shown in FIG. 4A. This is because the conveyance speed of the medium is not constant due to the eccentricity of the conveyance roller. In other words, a portion where the amount of transport of the medium is large and a portion where the amount of transport of the medium is small during one rotation of the transport roller, so that ink droplets ejected at equal intervals have a wide landing interval in the transport direction in a portion where the amount of transport of the medium is large. Thus, the landing interval in the transport direction is narrowed at the portion where the transport amount is small. As described above, when the landing positions of the ink droplets are deviated, the image quality of the printed image is deteriorated.
In particular, when a ruled line is printed in the medium width direction using a printing apparatus in which the heads are arranged in a staggered manner as in the printer 1 (see FIG. 3), if the ink droplet landing position in the transport direction is displaced, There may be a step in the printed ruled line. That is, the ruled line cannot be printed as a single line, and the deterioration of the image is easily noticeable.

このようなインク滴の着弾位置ずれを抑制する方法として、ヘッドからインク滴を吐出するタイミング(以下、PTSタイミングともいう)を調整する方法がある。例えば、図4Bのように、搬送ローラーが1回転する間において媒体の搬送量が多い部分ではインク滴の吐出間隔を長くする。逆に、搬送ローラーが1回転する間において媒体の搬送量が少ない部分ではインク滴の吐出間隔を短くする。これにより、媒体上に着弾するインク滴の搬送方向の間隔を均等にすることができる。   As a method of suppressing such landing position deviation of ink droplets, there is a method of adjusting the timing of ejecting ink droplets from the head (hereinafter also referred to as PTS timing). For example, as shown in FIG. 4B, the ink droplet ejection interval is increased in a portion where the transport amount of the medium is large during one rotation of the transport roller. On the contrary, the ink droplet ejection interval is shortened in a portion where the conveyance amount of the medium is small during one rotation of the conveyance roller. Thereby, the intervals in the transport direction of the ink droplets that land on the medium can be made uniform.

そこで、本実施形態では、PTSタイミングを補正する補正値を、搬送ローラーの周方向の位置毎に設定する。当該補正値に基づいてPTSタイミングを調整しながらインクを吐出することにより、インク滴の搬送方向の着弾位置ずれを抑制することができる。   Therefore, in this embodiment, a correction value for correcting the PTS timing is set for each position in the circumferential direction of the transport roller. By ejecting ink while adjusting the PTS timing based on the correction value, it is possible to suppress landing position deviation in the ink droplet transport direction.

図5に、搬送ローラーの周方向の位置毎に設定される補正値について説明する図を示す。まず、搬送ローラーのホームポジション(HP)として検出された位置から、搬送ローラーを1回転させて再びHPが検出されるまでの搬送ローラーの周方向を複数の区間に分割する。図4で説明したように、搬送ローラーに偏芯が生じている場合、搬送ローラーの周方向の位置によって単位時間当たりの媒体の搬送量が変化するために、インク滴の着弾位置ずれが発生する。そこで、搬送ローラーの周方向に分割された各間について補正値を設定し、当該区間によって媒体が搬送されるときにはその区間について設定された補正値を適用することにより、PTSタイミングを調整する。
図5の場合では、搬送ローラーの1周が#1〜#720の720個の区間に分割される。そして、#1の区間に対する補正値c1、#2の区間に対する補正値c2等、720個の補正値が搬送ローラーの周方向位置毎に設定される。つまり、搬送ローラー1回転(1周期)分の補正値が設定される。そして、搬送ローラーの#1の区間によって媒体が搬送されている間に吐出されるインクは、補正値c1によってPTSタイミングを調整される。
FIG. 5 illustrates a correction value set for each circumferential position of the transport roller. First, the circumferential direction of the transport roller from the position detected as the home position (HP) of the transport roller to the rotation of the transport roller until HP is detected again is divided into a plurality of sections. As described with reference to FIG. 4, when the transport roller is eccentric, the transport amount of the medium per unit time varies depending on the position of the transport roller in the circumferential direction. . Therefore, the correction value is set for each of the sections divided in the circumferential direction of the transport roller, and when the medium is transported by the section, the correction value set for the section is applied to adjust the PTS timing.
In the case of FIG. 5, one round of the transport roller is divided into 720 sections # 1 to # 720. Then, 720 correction values such as the correction value c1 for the # 1 section and the correction value c2 for the # 2 section are set for each circumferential position of the transport roller. That is, a correction value for one rotation (one cycle) of the transport roller is set. Then, the PTS timing of the ink ejected while the medium is being conveyed by the # 1 section of the conveying roller is adjusted by the correction value c1.

<吐出タイミングの補正について>
次に、補正値を用いて、実際にインクを吐出するタイミング(PTSタイミング)を補正する方法について説明する。
<Discharge timing correction>
Next, a method for correcting the actual ink ejection timing (PTS timing) using the correction value will be described.

図6に、PTSタイミング補正の概念について説明する図を示す。図6の上側で横方向に並んでいる線はPTS信号を表している。PTS信号はヘッドからインクを吐出させるタイミングを指示する信号であり、通常は均等な間隔で並んでいる。プリンター1で画像を印刷する際にPTSタイミングの補正を行わない場合には、このPTS信号を受信してから所定の時間を経過した後、ヘッドからインクが吐出されるように制御が行なわれる。例えば、所定の時間を基準ディレイ値(t)とすると、あるPTS信号を受信した後(t)の後にインクが吐出される。この場合、PTS信号が均等であるため、実際にインクが吐出される間隔も均等となる。したがって、上述のように搬送ローラーに偏芯が生じていると、インク滴の着弾位置ずれを引き起こす。
そこで、基準ディレイ値(t)に、上述の補正値によって規定される補正量(c)を加えることによって実際にインクが吐出されるタイミングを調整する。具体的には、PTS信号を受信した後(t)+(c)の後にインクが吐出されるようにする。つまり、補正量(c)が正(+)の値であれば、補正なしの場合よりも遅れてインクが吐出される。逆に、補正量(c)が負(−)の値であれば、補正なしの場合よりも早くインクが吐出される。以上のように補正値を用いることにより、PTSタイミングが補正される。
FIG. 6 is a diagram for explaining the concept of PTS timing correction. The line arranged in the horizontal direction on the upper side of FIG. 6 represents the PTS signal. The PTS signal is a signal for instructing the timing for ejecting ink from the head, and is usually arranged at equal intervals. When the printer 1 does not correct the PTS timing when printing an image, control is performed so that ink is ejected from the head after a predetermined time has elapsed after receiving this PTS signal. For example, if a predetermined time is the reference delay value (t), ink is ejected after receiving a PTS signal (t). In this case, since the PTS signal is uniform, the interval at which ink is actually ejected is also uniform. Therefore, if the transport roller is eccentric as described above, the landing position of the ink droplet is shifted.
Therefore, the timing at which ink is actually ejected is adjusted by adding the correction amount (c) defined by the above correction value to the reference delay value (t). Specifically, the ink is ejected after (t) + (c) after receiving the PTS signal. That is, if the correction amount (c) is a positive (+) value, ink is ejected later than in the case of no correction. On the contrary, if the correction amount (c) is a negative (−) value, ink is ejected earlier than the case without correction. As described above, the PTS timing is corrected by using the correction value.

続いて、PTSタイミングを補正する際の補正量(補正値の大きさ)について留意するべき点について説明する。図7A〜図7Cに補正値の大きさと駆動信号COMとの関係について説明する図を示す。それぞれの図で、縦線A及びBの間の区間に形成されている台形波は、搬送方向に並ぶ画素毎に吐出される駆動信号COMの単位を示している。なお、「画素」とは画像を構成する最小単位であり、この画素が2次元的に配置されることによって画像が構成される。   Subsequently, points to be noted about the correction amount (correction value magnitude) when correcting the PTS timing will be described. 7A to 7C are diagrams for explaining the relationship between the magnitude of the correction value and the drive signal COM. In each figure, the trapezoidal wave formed in the section between the vertical lines A and B indicates the unit of the drive signal COM ejected for each pixel arranged in the transport direction. The “pixel” is a minimum unit that constitutes an image, and an image is configured by arranging the pixels two-dimensionally.

図7Aは、ある画素P(x)と次の画素P(x+1)とで、同じ補正値を用いてPTSタイミングが調整される場合の駆動信号COMの例について示している。まず、画素P(x)に対してAのタイミングで駆動信号COMが印加開始され、インクが吐出される。このとき、補正値C(x)によってPTSタイミングが調整される。続いて次の画素P(x+1)に対して、Bのタイミングで駆動信号COMが印加開始され、次のインクが吐出される。このとき、補正値C(x)と等しい補正値C(x+1)によってPTSタイミングが調整される。図7Aの場合、Aのタイミングで印加を開始された駆動信号COMは図7AのCのタイミングで印加を終了している。すなわち、次の駆動信号を印加する時点(タイミングB)において、前の駆動信号の印加が完了(タイミングC)している。これは、前のインク吐出が終了してから次のインク吐出が開始されるまでの間にマージン時間(Tm)が存在することを意味する。このマージン時間(図7AにおいてTm)を「波形衝突マージン」と定義する。   FIG. 7A shows an example of the drive signal COM when the PTS timing is adjusted using the same correction value in a certain pixel P (x) and the next pixel P (x + 1). First, the drive signal COM starts to be applied to the pixel P (x) at timing A, and ink is ejected. At this time, the PTS timing is adjusted by the correction value C (x). Subsequently, the drive signal COM starts to be applied to the next pixel P (x + 1) at the timing B, and the next ink is ejected. At this time, the PTS timing is adjusted by a correction value C (x + 1) equal to the correction value C (x). In the case of FIG. 7A, the drive signal COM started to be applied at the timing A is finished to be applied at the timing C in FIG. 7A. That is, at the time of applying the next drive signal (timing B), the application of the previous drive signal is completed (timing C). This means that there is a margin time (Tm) between the end of the previous ink discharge and the start of the next ink discharge. This margin time (Tm in FIG. 7A) is defined as a “waveform collision margin”.

次に、図7Bは、ある画素P(x)でのPTSタイミングに対して、次の画素P(x+1)でのPTSタイミングが遅れる場合の駆動信号COMの例について示している。まず、画素P(x)に対してAのタイミングで駆動信号COMが印加開始され、インクが吐出される。このとき、補正値C(x)によってPTSタイミングが調整される。そして次の画素P(x+1)に対しては、Bのタイミングよりも所定の時間だけ遅らせたDのタイミングで次の駆動信号COMが印加開始される。このとき、補正値C(x)よりも大きい補正値c(x+1)によってPTSタイミングが調整される。図7Bの場合、次の駆動信号を印加する時点(タイミングD)において、前の駆動信号の印加が完了(タイミングC)しているため、波形衝突マージン(Tm)は図7Aの場合よりも大きくなる。十分な波形衝突マージンが確保されているため、画素P(X)及び次の画素P(x+1)にはそれぞれインク滴が正確に吐出される。   Next, FIG. 7B shows an example of the drive signal COM when the PTS timing at the next pixel P (x + 1) is delayed with respect to the PTS timing at a certain pixel P (x). First, the drive signal COM starts to be applied to the pixel P (x) at timing A, and ink is ejected. At this time, the PTS timing is adjusted by the correction value C (x). Then, the next drive signal COM is started to be applied to the next pixel P (x + 1) at a timing D delayed by a predetermined time from the timing B. At this time, the PTS timing is adjusted by a correction value c (x + 1) larger than the correction value C (x). In the case of FIG. 7B, at the time of applying the next drive signal (timing D), the application of the previous drive signal is completed (timing C), so the waveform collision margin (Tm) is larger than in the case of FIG. 7A. Become. Since a sufficient waveform collision margin is secured, ink droplets are accurately ejected to the pixel P (X) and the next pixel P (x + 1), respectively.

次に、図7Cは、ある画素P(X)でのPTSタイミングに対して、次の画素P(x+1)でのPTSタイミングを早める場合の駆動信号COMの例について示している。まず、画素P(x)に対してAのタイミングで駆動信号COMが印加開始され、インクが吐出される。このとき、補正値C(x)によってPTSタイミングが調整される。そして次の画素P(x+1)に対しては、Bのタイミングよりも所定の時間だけ早めたEのタイミングで次の駆動信号COMが印加開始される。このとき、補正値C(x1)よりも小さい補正値c(x+1)によってPTSタイミングが調整される。図7Cの場合、次の駆動信号を印加する時点(タイミングE)において、前の駆動信号の印加が完了(タイミングC)していないため、画素P(x)における駆動信号COMと、次の画素P(x+1)における駆動信号COMとが干渉するおそれがある。すなわち、十分な大きさの形衝突マージン(Tm)を確保することができなくなり、前の画素に対するインクの吐出が終了する前に次の画素に対するインクの吐出が始まり、インクドットを正確に形成することができなくなる場合がある。以下、この現象を「波形衝突」と呼ぶ
このように、直前のPTSタイミングに対して次のPTSタイミングを早める場合には、補正量の限界が存在する。上述の例で言えば、直前の画素P(x)に対する補正値C(x)と次の画素P(x+1)に対する補正値C(x+1)との間で、C(x)−C(x+1)>(Tm)の関係となると波形衝突が生じる。したがって、PTSタイミングを早める場合には、波形衝突マージン(Tm)を確保できるように補正を行わなければ、印刷される画像が劣化するおそれがある。
Next, FIG. 7C shows an example of the drive signal COM when the PTS timing at the next pixel P (x + 1) is advanced with respect to the PTS timing at a certain pixel P (X). First, the drive signal COM starts to be applied to the pixel P (x) at timing A, and ink is ejected. At this time, the PTS timing is adjusted by the correction value C (x). Then, the next drive signal COM starts to be applied to the next pixel P (x + 1) at the timing E which is earlier than the timing B by a predetermined time. At this time, the PTS timing is adjusted by a correction value c (x + 1) smaller than the correction value C (x1). In the case of FIG. 7C, since application of the previous drive signal is not completed (timing C) at the time of applying the next drive signal (timing E), the drive signal COM in the pixel P (x) and the next pixel There is a possibility of interference with the drive signal COM at P (x + 1). That is, a sufficiently large shape collision margin (Tm) cannot be secured, and ink ejection to the next pixel starts before ink ejection to the previous pixel is completed, so that ink dots are accurately formed. May not be possible. Hereinafter, this phenomenon is referred to as “waveform collision”. Thus, when the next PTS timing is advanced with respect to the immediately preceding PTS timing, there is a limit of the correction amount. In the above example, C (x) −C (x + 1) between the correction value C (x) for the immediately preceding pixel P (x) and the correction value C (x + 1) for the next pixel P (x + 1). When the relationship is> (Tm), a waveform collision occurs. Therefore, when the PTS timing is advanced, an image to be printed may be deteriorated unless correction is performed so as to ensure a waveform collision margin (Tm).

<本実施形態の概要>
本実施形態では、搬送ローラーの周方向の位置毎にそれぞれ対応付けられる補正値を設定する。そしてインクを吐出するタイミング(PTSタイミング)を当該補正値に応じて修正する。補正値に応じたタイミングでインクを吐出することにより、搬送ローラーの偏芯等に起因して生じるインクドットの着弾位置ずれを抑制し、高画質な画像を印刷する。
<Outline of this embodiment>
In the present embodiment, correction values associated with the respective circumferential positions of the transport roller are set. Then, the ink ejection timing (PTS timing) is corrected according to the correction value. By ejecting ink at a timing according to the correction value, the landing position deviation of the ink dots caused by the eccentricity of the transport roller is suppressed, and a high-quality image is printed.

ここで、PTSタイミングを補正するための補正値について簡単に説明しておく。図8は、本実施形態で用いられる補正値の一例を表す図である。図の縦軸は補正値の大きさを表し、横軸はPTS番号(搬送ローラーの周方向位置に対応するPTSの番号)を表している。本実施形態で用いられる補正値は、基本的に図8の破線で描かれるような周期関数(例えば、サインカーブ等)で表される。つまり、搬送ローラーが1周する間に補正量が負方向と正方向とに変動し、1周期が終了するときに補正量がゼロに戻る。   Here, the correction value for correcting the PTS timing will be briefly described. FIG. 8 is a diagram illustrating an example of correction values used in the present embodiment. The vertical axis in the figure represents the magnitude of the correction value, and the horizontal axis represents the PTS number (PTS number corresponding to the circumferential position of the transport roller). The correction value used in the present embodiment is basically represented by a periodic function (for example, a sine curve) as depicted by a broken line in FIG. That is, the correction amount fluctuates in the negative direction and the positive direction while the transport roller makes one round, and the correction amount returns to zero when one cycle is completed.

ただし、上述のように、直前のPTSタイミングに対して次のPTSタイミングを早める場合において、補正値が所定の大きさを超えると波形衝突マージンを確保できなくなり、印刷される画像の画質が悪化する場合がある。そこで、ある位置(周方向位置)において補正されるPTSタイミングが、直前において補正されるPTSタイミングよりも早くなる場合には、補正値の変化量が所定の閾値以下とならないようにする。その結果、補正値は図8の実線部のように一定の変化量を有する直線状の部分を有する。   However, as described above, when the next PTS timing is advanced with respect to the immediately preceding PTS timing, if the correction value exceeds a predetermined size, the waveform collision margin cannot be secured, and the quality of the printed image deteriorates. There is a case. Therefore, when the PTS timing corrected at a certain position (circumferential position) is earlier than the PTS timing corrected immediately before, the change amount of the correction value is prevented from being equal to or less than a predetermined threshold value. As a result, the correction value has a linear portion having a certain amount of change as shown by the solid line portion in FIG.

===補正値算出処理===
補正値を算出する為の具体的な処理について説明する。図9に、補正値を算出する為の全体フローを表す図を示す。補正値の算出は、補正値算出プログラムにしたがってコンピューター110によってS101〜S108の各工程を順次実行することによって行われる。なお、これらの工程は、プリンター1の製造段階(検査工程)において行なわれる。以下、各工程について説明する。
=== Correction Value Calculation Processing ===
A specific process for calculating the correction value will be described. FIG. 9 is a diagram showing an overall flow for calculating the correction value. The correction value is calculated by sequentially executing steps S101 to S108 by the computer 110 according to the correction value calculation program. Note that these processes are performed in the manufacturing stage (inspection process) of the printer 1. Hereinafter, each step will be described.

S101:テストパターンの印刷
はじめに、プリンター1を用いてテストパターンを印刷する。テストパターンは搬送ローラー22を用いた媒体搬送時に生じる搬送量の誤差を検出するためのパターンである。図10に、本実施形態で印刷されるテストパターンの一例を示す。テストパターンには、縦罫線、横罫線、スキャン用目印、固体識別ID等が印刷される。また、実際にテストパターンとして使用されるのは、図の破線で示される「用紙切り取り位置」よりも左側の領域であり、右側の領域は印刷終了後に切り取られる。
S101: Print Test Pattern First, the printer 1 is used to print a test pattern. The test pattern is a pattern for detecting an error in the conveyance amount that occurs when the medium is conveyed using the conveyance roller 22. FIG. 10 shows an example of a test pattern printed in the present embodiment. On the test pattern, vertical ruled lines, horizontal ruled lines, scanning marks, solid identification IDs, and the like are printed. Also, what is actually used as a test pattern is an area on the left side of the “paper cut position” indicated by a broken line in the figure, and the right area is cut off after the printing is completed.

縦罫線は、搬送方向に沿って引かれる直線で、後述する傾き検出処理(S401)を行なう際に用いられる。本実施形態では、図10のように、テストパターンの幅方向の両端側に1本ずつ印刷される。
横罫線は、テストパターンの幅方向に沿って引かれる直線が搬送方向に複数並んでおり、搬送ローラーの周方向位置毎の搬送量誤差を検出する際に用いられる。本実施形態では、搬送ローラーの回転基準位置であるホームポジション(HP)から横罫線の印刷を開始し、媒体を搬送しながら連続的に横罫線を印刷する。そして、搬送ローラーが3周回転するまで横罫線の印刷を続ける。言い換えると、搬送ローラーの3周期分の横罫線が印刷される。なお、詳細は後述するが、実際には3周期分の横罫線に加えて3本の横罫線が印刷される(図26参照)。
The vertical ruled line is a straight line drawn along the transport direction, and is used when performing an inclination detection process (S401) described later. In the present embodiment, as shown in FIG. 10, one print is printed on each end in the width direction of the test pattern.
The horizontal ruled line has a plurality of straight lines drawn along the width direction of the test pattern in the transport direction, and is used when detecting a transport amount error for each circumferential position of the transport roller. In this embodiment, printing of horizontal ruled lines is started from the home position (HP) that is the rotation reference position of the conveyance roller, and the horizontal ruled lines are continuously printed while conveying the medium. Then, the printing of the horizontal ruled lines is continued until the transport roller rotates three times. In other words, horizontal ruled lines for three cycles of the transport roller are printed. Although details will be described later, in practice, three horizontal ruled lines are printed in addition to the horizontal ruled lines for three cycles (see FIG. 26).

スキャン用目印は、テストパターンをスキャナー等にセットして読み取る(スキャンする)際に、セット方向の誤りを防止し、また、該テストパターンをスキャナーの原点に合わせてセットするための基準となるマークである。図10の例では、切り取り後のテストパターンの四隅の位置にそれぞれ三角形のマークを印刷している。4つのマークのうち、原点となる位置のマークを黒塗り等着色することにより、スキャナーにセットする際の基準位置を明確にしている。
固体識別IDには、搬送速度や印刷解像度等の各種印刷条件が表示される。
The scanning mark is a mark that serves as a reference for setting the test pattern according to the origin of the scanner to prevent errors in the setting direction when the test pattern is set and read (scanned) on a scanner or the like. It is. In the example of FIG. 10, triangular marks are printed at the four corner positions of the cut test pattern. Of the four marks, the mark at the origin position is colored with black or the like to clarify the reference position when setting the scanner.
In the solid identification ID, various printing conditions such as a conveyance speed and a printing resolution are displayed.

テストパターンを印刷する際には、まず、プリンター1に媒体(用紙)をセットした後、原点センサー52によって搬送ローラーのHP位置が検出されるまで該媒体を搬送させる。すなわち、HPの位置までは、罫線の印刷を行わずに媒体を空送する。そして、HPが検出された位置からテストパターンの印刷が開始される。続いて、次のHPが検出された位置から横罫線の印刷が開始される。(実際には、次のHPよりも1本分前から横罫線の印刷が開始される。)3周期分の横罫線の印刷が完了し、固体識別ID及び搬送方向下流側のスキャン用目印が印刷されると、テストパターンの印刷を終了する。印刷終了後は、オートカッターなどによって図10の用紙切り取り位置で切断され、スキャナーにセットされる。なお、テストパターンをスキャナーにセットする際には搬送方向の最下流側をスキャナーの読み取り面の上側に合わせることにより、切り取りによるがたつきや位置のばらつきの影響が出ないようにする。   When printing a test pattern, first, a medium (paper) is set in the printer 1, and then the medium is conveyed until the HP position of the conveying roller is detected by the origin sensor 52. That is, the medium is idled without printing ruled lines up to the HP position. Then, printing of the test pattern is started from the position where HP is detected. Subsequently, printing of horizontal ruled lines is started from the position where the next HP is detected. (Actually, printing of horizontal ruled lines starts one line before the next HP.) Printing of horizontal ruled lines for three cycles is completed, and the solid identification ID and the scanning mark downstream in the transport direction are displayed. When printing is completed, the test pattern printing is terminated. After the printing is completed, the paper is cut at the paper cutting position shown in FIG. When the test pattern is set on the scanner, the most downstream side in the transport direction is aligned with the upper side of the reading surface of the scanner so as not to be affected by shakiness or position variation due to cutting.

S102:基準パターンとテストパターンの読み取り
続いて、印刷されたテストパターン及び基準パターンをスキャナーによって読み取る。基準パターンについては後述する。また、スキャナーについては公知であるため説明を省略する。スキャナーの読み取り解像度は、例えば720dpi(主走査方向)×720dpi(副走査方向)とする。
S102: Reading Reference Pattern and Test Pattern Subsequently, the printed test pattern and reference pattern are read by the scanner. The reference pattern will be described later. Further, since the scanner is publicly known, description thereof is omitted. The reading resolution of the scanner is, for example, 720 dpi (main scanning direction) × 720 dpi (sub-scanning direction).

図11に、基準パターンとテストパターンを読み取る際の、スキャナーへのセット位置について説明する図を示す。図では、スキャナーの読み取り面(ガラス面)側からセット後のテストパターン及び基準パターンを見たときの様子を表している。図11において、右側上端部が用紙セット基準位置、すなわちスキャナーの原点である。また、スキャナーの主走査方向をX軸、副走査方向をY軸とする。   FIG. 11 is a diagram for explaining the setting position on the scanner when reading the reference pattern and the test pattern. The figure shows a state when the test pattern and the reference pattern after setting are viewed from the reading surface (glass surface) side of the scanner. In FIG. 11, the upper right corner is the paper set reference position, that is, the origin of the scanner. The main scanning direction of the scanner is the X axis, and the sub scanning direction is the Y axis.

まず、スキャナーの読み取り面の左側(図11において右側)に基準パターン1をセットし、右側(図11において左側)に基準パターン2をセットする。つまり、スキャナー読み取り面の主走査方向(X軸方向)の両端部にそれぞれ基準パターンをセットする。基準パターン1及び2は同一のパターンであり、副走査方向(Y軸方向)に多数のラインが等間隔で並んで形成されている。このラインは、テストパターンの横罫線に該当し、罫線間隔は、例えば180dpi間隔とする。ライン間隔(罫線間隔)を高精度に保つため、基準パターンはPETフィルム等にレーザー加工を行うことによって形成される。
基準パターン1及び2をセットする際には、スキャナーの読み取り面(ガラス面)外枠との間隔がそれぞれ1mm以内になるようにセットする。また、スキャナーの読み取り面外枠上部に対する基準パターン1及び2の設置角度が1度以内になるようにする。
First, the reference pattern 1 is set on the left side (right side in FIG. 11) of the scanner reading surface, and the reference pattern 2 is set on the right side (left side in FIG. 11). That is, the reference patterns are set on both ends of the scanner reading surface in the main scanning direction (X-axis direction). The reference patterns 1 and 2 are the same pattern, and a large number of lines are formed at equal intervals in the sub-scanning direction (Y-axis direction). This line corresponds to the horizontal ruled line of the test pattern, and the ruled line interval is, for example, 180 dpi. In order to keep the line interval (ruled line interval) with high accuracy, the reference pattern is formed by performing laser processing on a PET film or the like.
When the reference patterns 1 and 2 are set, the reference patterns 1 and 2 are set so that the distance from the outer frame of the reading surface (glass surface) of the scanner is within 1 mm. In addition, the installation angle of the reference patterns 1 and 2 with respect to the upper reading frame outer frame of the scanner is set to be within 1 degree.

次に、切断後のテストパターンを基準パターン1に隣接させてセットする。つまり、基準パターン1及び2のX軸方向の間の位置にテストパターンがセットされる。このとき、スキャン用目印のうち着色されたマークが用紙セット基準位置に向くようにセットすることで(図11参照)、テストパターンのセット方向を間違えないようにする。また、基準パターン1とテストパターンとの間隔が1mm以内になるようにセットする。テストパターンの上端は、スキャナーの読み取り面外枠上部に隣接するようにし、その間隔が1mm以内になるようにセットする。また、スキャナーの読み取り面外枠上部に対するテストパターンの設置角度が1度以内になるようにする。   Next, the cut test pattern is set adjacent to the reference pattern 1. That is, the test pattern is set at a position between the reference patterns 1 and 2 in the X-axis direction. At this time, by setting the colored mark of the scanning mark so as to face the paper setting reference position (see FIG. 11), the setting direction of the test pattern is not mistaken. The interval between the reference pattern 1 and the test pattern is set to be within 1 mm. The upper end of the test pattern is set to be adjacent to the upper part of the outer frame of the reading surface of the scanner, and is set so that the interval is within 1 mm. In addition, the installation angle of the test pattern with respect to the upper reading frame of the scanner is set to be within 1 degree.

テストパターン及び基準パターンがスキャナー読み取り面の適正な位置にセットされた後、スキャナーによって、テストパターンと基準パターンとを読み取る。なお、読取結果におけるテストパターンの画像は実際のテストパターンと比べて歪んだ画像になる。同様に、基準パターンの画像も実際の基準パターンと比べて歪んだ画像になる。また、読取結果におけるテストパターンの画像は、読み取り位置の誤差の影響だけではなく、プリンター1の搬送誤差の影響も受けている。一方、基準パターンはプリンター1の搬送誤差とは何も関わりなく等間隔にて形成されているので、基準パターンの画像は、スキャナーの読み取り位置の誤差の影響を受けているが、プリンター1の搬送誤差の影響は受けていない。   After the test pattern and the reference pattern are set at appropriate positions on the scanner reading surface, the test pattern and the reference pattern are read by the scanner. Note that the image of the test pattern in the read result is a distorted image compared to the actual test pattern. Similarly, the image of the reference pattern is also distorted compared to the actual reference pattern. Further, the test pattern image in the reading result is affected not only by the influence of the reading position error but also by the conveyance error of the printer 1. On the other hand, since the reference pattern is formed at equal intervals regardless of the transport error of the printer 1, the image of the reference pattern is affected by the error of the reading position of the scanner. It is not affected by the error.

S103:読み取り画像の分割
補正値を算出するためには、テストパターンの横罫線の位置を検出する必要がある。しかし上述のような誤差が含まれている状態では正確な罫線位置を検出することができない。したがって、基準パターンの画像に基づいて、テストパターンの画像における読み取り位置の誤差の影響をキャンセルさせる必要がある。そこで、テストパターンと基準パターンとを分けてそれぞれ別々に傾き等を補正することで、読み取り位置による誤差を解消する。傾き補正(S402)の詳細については後述する。
コンピューター110は、S102において読み取られた画像をテストパターンの画像と基準パターン1の画像と基準パターン2の画像とにそれぞれ分割する。これにより、3種類のパターン画像が得られる。
S103: Division of read image In order to calculate the correction value, it is necessary to detect the position of the horizontal ruled line of the test pattern. However, an accurate ruled line position cannot be detected in a state where the above error is included. Therefore, it is necessary to cancel the influence of the reading position error in the test pattern image based on the reference pattern image. Therefore, the error due to the reading position is eliminated by dividing the test pattern and the reference pattern and correcting the inclination or the like separately. Details of the inclination correction (S402) will be described later.
The computer 110 divides the image read in S102 into a test pattern image, a reference pattern 1 image, and a reference pattern 2 image. Thereby, three types of pattern images are obtained.

S104:罫線の重心位置の算出
テストパターンに印刷された罫線(図10の横罫線)の間隔を検出するために、各罫線のY軸方向(副走査方向)における位置を各罫線の階調(濃度)の重心位置として算出する。図12に罫線の重心位置を算出するためのフローを示す。重臣位置の算出は、コンピューター110によってS401〜S408の処理を実行することによって行われる。
S104: Calculation of centroid position of ruled line In order to detect the interval between ruled lines (horizontal ruled lines in FIG. 10) printed on the test pattern, the position of each ruled line in the Y-axis direction (sub-scanning direction) is determined by the gradation of each ruled line ( The density is calculated as the center of gravity position. FIG. 12 shows a flow for calculating the barycentric position of the ruled line. The calculation of the position of the vassal is performed by executing the processes of S401 to S408 by the computer 110.

はじめに、基準パターン1,2及びテストパターンのそれぞれの画像について傾き量の検出を行う(S401)。傾き量の検出は、基準パターンについては横罫線を用いて、テストパターンについては縦罫線を用いて行われる。   First, the amount of inclination is detected for each of the reference patterns 1 and 2 and the test pattern (S401). The inclination amount is detected using a horizontal ruled line for the reference pattern and a vertical ruled line for the test pattern.

図13は、基準パターンについて罫線位置を認識する方法について説明する図である。図14は、基準パターンの罫線の傾き量を算出する方法について説明する図である。基準パターンの傾き量の検出は、横罫線(Y軸方向に並ぶ罫線)の位置を認識することによって行われる。具体的には、図13に示されるように基準パターンから一本の横罫線(図13において横罫線P)を抽出して、該抽出された横罫線の中から異なる2箇所(図13においてB点及びC点)の位置を検出、比較することで傾き量を検出する。   FIG. 13 is a diagram illustrating a method for recognizing the ruled line position for the reference pattern. FIG. 14 is a diagram for explaining a method of calculating the inclination amount of the ruled line of the reference pattern. The inclination amount of the reference pattern is detected by recognizing the position of the horizontal ruled line (ruled line aligned in the Y-axis direction). Specifically, as shown in FIG. 13, one horizontal ruled line (horizontal ruled line P in FIG. 13) is extracted from the reference pattern, and two different locations (B in FIG. 13) are extracted from the extracted horizontal ruled lines. The amount of inclination is detected by detecting and comparing the positions of point and point C).

まず、Y軸方向の位置KYからHY1までの領域でX軸方向に並ぶ画素列(以下、ラスターともいう)について、X軸方向のKX1からHXまでの範囲で1ラスター毎に平均の濃度を算出する。そして、算出された各ラスターの平均濃度のうち、最高濃度のラスターを抽出し、当該抽出されたラスターを中心に罫線濃度重心算出範囲を設定する。図13の場合、横罫線Pに関して、最高濃度となる点Aを含むラスターを中心として破線P1から破線P2の範囲が罫線濃度重心算出範囲として設定される。   First, the average density is calculated for each raster in the range from KX1 to HX in the X-axis direction for pixel rows arranged in the X-axis direction in the region from the position KY to HY1 in the Y-axis direction (hereinafter also referred to as a raster). To do. Then, the raster having the highest density is extracted from the calculated average density of each raster, and the ruled line density centroid calculation range is set around the extracted raster. In the case of FIG. 13, with respect to the horizontal ruled line P, a range from the broken line P1 to the broken line P2 centering on the raster including the point A having the highest density is set as the ruled line density centroid calculation range.

続いて、設定された罫線濃度重心算出範囲内においてX軸方向のKX2からHXの範囲で平均濃度が最高となるラスターを抽出する。図13では、点Bを含むラスターが抽出される。このラスターを中心にKX2からHXの範囲における第1重心算出範囲を設定する。図13では、点Bを含む斜線部の範囲が第1重心算出範囲として設定される。同様にして、X軸方向のKX3からHXの範囲について第2重心算出範囲を設定する。図13では、点Cを含む斜線部の範囲が第2重心算出範囲として設定される。   Subsequently, the raster having the highest average density in the range from KX2 to HX in the X-axis direction within the set ruled line density centroid calculation range is extracted. In FIG. 13, the raster including the point B is extracted. A first center-of-gravity calculation range in the range from KX2 to HX is set around this raster. In FIG. 13, the shaded area including the point B is set as the first centroid calculation range. Similarly, a second center-of-gravity calculation range is set for a range from KX3 to HX in the X-axis direction. In FIG. 13, the shaded area including the point C is set as the second centroid calculation range.

第1重心算出範囲及び第2重心算出範囲におけるY軸方向の濃度分布は、図14に示されるようにそれぞれ階調値のピークを有する分布となる。この分布を用いてそれぞれの罫線の濃度重心位置(図13でKY2及びKY3)を算出する。なお、図14の分布から濃度重心位置を算出する具体的方法は後で説明する。   The density distribution in the Y-axis direction in the first centroid calculation range and the second centroid calculation range is a distribution having a gradation value peak as shown in FIG. Using this distribution, the density barycentric position (KY2 and KY3 in FIG. 13) of each ruled line is calculated. A specific method for calculating the density centroid position from the distribution of FIG. 14 will be described later.

2点の濃度測定位置(B及びC)のX軸方向の座標KX2及びKX3と、算出された濃度重心位置(Y軸方向の座標)KY2及びKY3を用いると、横罫線Pの傾きθは次式で表すことができる。
θ=tan−1((KY3−KY2)/(KX3−KX2))
Using the coordinates KX2 and KX3 in the X-axis direction of the two density measurement positions (B and C) and the calculated density centroid positions (coordinates in the Y-axis direction) KY2 and KY3, the inclination θ of the horizontal ruled line P is It can be expressed by a formula.
θ = tan −1 ((KY3-KY2) / (KX3-KX2))

次に、テストパターンの傾き検出について説明する。図15は、テストパターンについて傾き量を算出する方法について説明する図である。上述のように、テストパターンでは、印刷時における搬送方向(図15でY軸方向に相当)に沿って引かれた縦罫線を用いて傾き量を算出する。図15のように、テストパターンのY軸方向の範囲M1〜M2の位置に、高さがH、幅がWの重心算出範囲を4つ設定する(図15において点線で囲まれた四角形の領域LU,RU,LL,RL)。これらの重心算出範囲についてそれぞれ1ラスターあたりの平均濃度を求め、その中の最高濃度を示すラスターでのX軸方向の濃度重心位置を抽出する。図15では、LUにおいてXLUの位置が抽出される。同様に、RUにおいてXRU、LLにおいてXLL、RLにおいてXRLの位置が算出される(図15参照)。これにより、テストパターンの両側の縦罫線の傾き量θt1及びθt2が次の式で表される。
θtl=tan−1((XLL−XLU)/(M2−M1))
θt2=tan−1((XRL−XRU)/(M2−M1))
Next, the inclination detection of the test pattern will be described. FIG. 15 is a diagram for explaining a method of calculating an inclination amount for a test pattern. As described above, in the test pattern, the amount of inclination is calculated using the vertical ruled line drawn along the transport direction during printing (corresponding to the Y-axis direction in FIG. 15). As shown in FIG. 15, four center-of-gravity calculation ranges having a height of H and a width of W are set at positions in the ranges M1 to M2 in the Y-axis direction of the test pattern (a rectangular region surrounded by a dotted line in FIG. 15). LU, RU, LL, RL). For each of these centroid calculation ranges, the average density per raster is obtained, and the density centroid position in the X-axis direction in the raster indicating the highest density is extracted. In FIG. 15, the XLU position is extracted from the LU. Similarly, the position of XRU in RU, XLL in LL, and XRL in RL are calculated (see FIG. 15). Thereby, the inclination amounts θt1 and θt2 of the vertical ruled lines on both sides of the test pattern are expressed by the following equations.
θtl = tan −1 ((XLL−XLU) / (M2−M1))
θt2 = tan −1 ((XRL−XRU) / (M2−M1))

両側の罫線の傾き量θt1及びθt2を平均することで、テストパターンの傾き量θtが次式により求められる。
θt=(θtl+θt2)/2
By averaging the inclination amounts θt1 and θt2 of the ruled lines on both sides, the inclination amount θt of the test pattern is obtained by the following equation.
θt = (θtl + θt2) / 2

このようにして、基準パターンの傾きθ及びテストパターンの傾きθtが検出された後、傾きの補正が行われる(S402)。テストパターンの画像は、テストパターンの画像の傾き結果θtに基づいて回転補正される。同様に、基準パターンの画像は、基準パターンの画像の傾き結果θに基づいて回転補正される。
画像の回転処理のアルゴリズムには、バイリニア法が用いられる。このアルゴリズムは良く知られているので、説明は省略する。
In this way, after the inclination θ of the reference pattern and the inclination θt of the test pattern are detected, the inclination is corrected (S402). The test pattern image is rotationally corrected based on the inclination result θt of the test pattern image. Similarly, the reference pattern image is rotationally corrected based on the inclination result θ of the reference pattern image.
A bilinear method is used as an algorithm for image rotation processing. Since this algorithm is well known, its description is omitted.

次に、コンピューター110は、余白分のオフセット値を算出する(S403)。図16は、余白量Xについての説明図である。図中の実線の四角形(外側の四角形)は、S402の回転補正後の画像を示している。図中の点線の四角形(内側の斜めの四角形)は、回転補正前の画像を示している。回転補正後の画像を長方形状にするため、S402の回転補正処理が行われる際に、回転後の画像の四隅に直角三角形状の余白が付加される。   Next, the computer 110 calculates an offset value for the margin (S403). FIG. 16 is an explanatory diagram of the margin amount X. The solid line rectangle (outer rectangle) in the figure indicates the image after the rotation correction in S402. A dotted-line rectangle (inner oblique rectangle) in the figure indicates an image before rotation correction. In order to make the image after rotation correction into a rectangular shape, right-angled triangular margins are added to the four corners of the image after rotation when the rotation correction processing in S402 is performed.

仮に基準パターンの傾きとテストパターンの傾きとが異なると、付加される余白量が異なることになり、回転補正(S402)の前後において、基準パターンに対するテストパターンのラインの位置が相対的にずれることになる。そこで、コンピューター110は、次式により余白量Xを求める。
X=(wcosθ−W´/2)×tanθ
算出された余白量Xを、以下の処理において算出される罫線濃度重心位置から差し引くことによって、基準パターンに対するテストパターンのラインの位置のずれを防止する。
If the inclination of the reference pattern and the inclination of the test pattern are different, the amount of added margin is different, and the position of the test pattern line relative to the reference pattern is relatively shifted before and after the rotation correction (S402). become. Therefore, the computer 110 obtains the margin amount X by the following equation.
X = (w cos θ−W ′ / 2) × tan θ
By subtracting the calculated margin amount X from the ruled line density barycentric position calculated in the following processing, a shift in the position of the test pattern line with respect to the reference pattern is prevented.

次に、濃度重心位置の算出について説明する。なお、濃度重心位置の算出方法は、テストパターン、基準パターンとも共通である。濃度重心位置を算出するために、まず、ラスター毎の濃度の平均値が算出される(S404)。ラスター毎の濃度の平均値は、そのラスター(画素列)を構成する範囲の画素の濃度の合計値を、そのラスターを構成する範囲の画素の数で割った値で表される。   Next, calculation of the density centroid position will be described. The method for calculating the density centroid position is the same for both the test pattern and the reference pattern. In order to calculate the density centroid position, first, an average value of density for each raster is calculated (S404). The average density value for each raster is represented by a value obtained by dividing the total density value of the pixels in the range constituting the raster (pixel column) by the number of pixels in the range constituting the raster.

ラスター毎の平均濃度が算出された後、当該ラスターの中から最高濃度ラスターが特定される(S405)。図17は、ラスター毎の濃度分布の一例を表す図である。右側の図はある罫線付近の領域を拡大した図であり、左側の図はその領域における濃度分布を表す図である。本実施形態では、罫線の濃度と印刷媒体の濃度とを区別するための濃度閾値を設け、当該閾値と算出された平均濃度との比較を行う。図17の濃度分布のうち斜線部で表される範囲において、ラスターの平均濃度が閾値よりも大きくなる。この閾値を超えたラスターのうち、最も濃度が高いラスター(濃度分布のピークを示す位置のラスター)が最高濃度ラスターとして特定される。   After the average density for each raster is calculated, the highest density raster is identified from the rasters (S405). FIG. 17 is a diagram illustrating an example of the density distribution for each raster. The diagram on the right side is an enlarged view of a region near a ruled line, and the diagram on the left side is a diagram showing the density distribution in that region. In this embodiment, a density threshold value for distinguishing between the density of the ruled line and the density of the printing medium is provided, and the threshold value is compared with the calculated average density. In the density distribution of FIG. 17, the average raster density is larger than the threshold value in the range indicated by the hatched portion. Among the rasters exceeding this threshold, the raster with the highest density (the raster at the position showing the peak of the density distribution) is identified as the highest density raster.

次に、S405で特定された最高濃度ラスターを中心に、濃度重心位置を算出するための演算範囲を特定する(S406)。図18は濃度重心位置の算出方法を説明する図である。図18において、最高濃度ラスターをY_peakとすると、例えば、ラスター(Y_peak−N)からラスター(Y_peak+N)までの範囲が演算範囲として特定される。   Next, the calculation range for calculating the density centroid position is specified around the highest density raster specified in S405 (S406). FIG. 18 is a diagram for explaining a method of calculating the density centroid position. In FIG. 18, when the maximum density raster is Y_peak, for example, a range from the raster (Y_peak-N) to the raster (Y_peak + N) is specified as the calculation range.

続いて、特定された演算範囲内における最小濃度値G_minを算出する。図18では点Mにおいて最小濃度値G_min(図の点線)となる。また、特定された範囲内における合計濃度値G_sumを算出する。ラスターY1〜Y2までの合計濃度をSUM(G(Y1),G(Y2))で表すとすると、G_sumは次式で表される。
G_sum=SUM(G(Y_peak−N)−G_min,G(Y_peak+N)−G_min)
また、あるラスターのY_peakからの距離と、そのラスターにおける濃度との積分値G_areaが次式により表される。
G_area=SUM((G(Y_peak−N)−G_min)×(−N),
(G(Y_peak+N)−G_min)×N)
ここで、平面における重心の位置は(断面積×図心位置までの距離)の合計÷全断面積によって算出される。したがって、図18の濃度分布の重心位置Y_centerが次式により算出される(S407)。
Y_center=Y_peak+G_area/G_sum
Subsequently, the minimum density value G_min within the specified calculation range is calculated. In FIG. 18, at the point M, the minimum density value G_min (dotted line in the figure) is obtained. Further, a total density value G_sum within the specified range is calculated. If the total density of the rasters Y1 to Y2 is represented by SUM (G (Y1), G (Y2)), G_sum is represented by the following equation.
G_sum = SUM (G (Y_peak-N) -G_min, G (Y_peak + N) -G_min)
Further, an integrated value G_area of the distance from a certain raster Y_peak and the density in the raster is expressed by the following equation.
G_area = SUM ((G (Y_peak−N) −G_min) × (−N),
(G (Y_peak + N) -G_min) × N)
Here, the position of the center of gravity on the plane is calculated by the sum of (cross-sectional area × distance to the centroid position) ÷ total cross-sectional area. Therefore, the gravity center position Y_center of the density distribution of FIG. 18 is calculated by the following equation (S407).
Y_center = Y_peak + G_area / G_sum

なお、テストパターンの罫線を読み取る際に、外乱(振動)によって読み取った画像の罫線濃度が低くなることや、罫線が二重に読み込まれてしまうことにより、罫線の重心位置が不正確に算出されてしまうおそれがある。このような問題が発生することを防止するために、基準パターン及びテストパターンについてそれぞれ罫線間の距離の判定を行なう(S408)。具体的には、プリンターでの紙送り誤差やスキャナーでの読み取り誤差について、想定される罫線間の距離の誤差を閾値として設定しておく。そして、実際に検出された罫線間の距離が該閾値を超える場合にはエラーを表示して、再度罫線位置の算出処理(S104)をやり直す等の処理を行う。これにより、罫線の重心位置をより正確に算出することができる。   When reading the ruled line of the test pattern, the density of the ruled line's center of gravity is calculated inaccurately because the ruled line density of the scanned image decreases due to disturbance (vibration) or the ruled line is read twice. There is a risk that. In order to prevent such a problem from occurring, the distance between the ruled lines is determined for each of the reference pattern and the test pattern (S408). More specifically, an error in the distance between ruled lines is set as a threshold for a paper feeding error in a printer and a reading error in a scanner. If the distance between the ruled lines actually detected exceeds the threshold, an error is displayed, and the ruled line position calculation process (S104) is performed again. Thereby, the barycentric position of the ruled line can be calculated more accurately.

S105:仮想基準パターンの仮想罫線の重心位置を算出
算出された罫線の重心位置に基づいてテストパターンの罫線間隔(横罫線の位置)を正確に検出するため、テストパターンの罫線読み取り位置(主走査方向の位置)における仮想基準パターンを設定する(S105)。テストパターン及び仮想基準パターンの罫線をX軸方向(主走査方向)の同じ位置にて比較することで、基準パターン1及び基準パターン2の読み取り時に生じうる位置ずれの影響をキャンセルできる。
S105: Calculate the centroid position of the virtual ruled line of the virtual reference pattern Based on the calculated centroid position of the ruled line, the test pattern ruled line reading position (main scanning) is used to accurately detect the rule pattern spacing (horizontal ruled line position) of the test pattern. A virtual reference pattern at the position of the direction is set (S105). By comparing the ruled lines of the test pattern and the virtual reference pattern at the same position in the X-axis direction (main scanning direction), it is possible to cancel the influence of misalignment that may occur when the reference pattern 1 and the reference pattern 2 are read.

図19は、仮想基準パターンの算出方法について説明する図である。仮想基準パターンの横罫線の位置は、S104で算出された基準パターン1の罫線濃度重心位置及び基準パターン2の罫線濃度重心位置を用いて算出される。   FIG. 19 is a diagram illustrating a method for calculating a virtual reference pattern. The position of the horizontal ruled line of the virtual reference pattern is calculated using the ruled line density centroid position of the reference pattern 1 and the ruled line density centroid position of the reference pattern 2 calculated in S104.

まず、基準パターン1と基準パターン2との間において、テストパターンのX軸方向の読み取り位置と、各基準パターンのX軸方向の読み取り位置との比率Tを求める。図19のように、用紙セット基準位置から基準パターン1のX軸方向の中心位置までの距離をLrとする。同様に、用紙セット基準位置から基準パターン2のX軸方向の中心位置までの距離をLlとし、用紙セット基準位置からテストパターンのX軸方向の中心位置までの距離をLpとする。このとき、X軸方向の読み取り位置の比率Tは次の式によって表される。
T=(Lp−Lr)/(Ll−Lr)
First, between the reference pattern 1 and the reference pattern 2, a ratio T between the reading position of the test pattern in the X-axis direction and the reading position of each reference pattern in the X-axis direction is obtained. As shown in FIG. 19, the distance from the paper set reference position to the center position of the reference pattern 1 in the X-axis direction is Lr. Similarly, the distance from the paper setting reference position to the center position in the X-axis direction of the reference pattern 2 is L1, and the distance from the paper setting reference position to the center position in the X-axis direction of the test pattern is Lp. At this time, the ratio T of the reading position in the X-axis direction is expressed by the following equation.
T = (Lp−Lr) / (L1−Lr)

仮想基準パターンの第n番目の罫線位置(濃度重心位置)K(n)は、基準パターン1の第n番目の罫線位置(濃度重心位置)K1(n)及び基準パターン2の第n番目の罫線位置(濃度重心位置)K2(n)と、比率Tと、を用いて次式によって算出される。
K(n)=(K2(n)―K1(n))×T+K1(n)
The nth ruled line position (density centroid position) K (n) of the virtual reference pattern is the nth ruled line position (density centroid position) K1 (n) of the reference pattern 1 and the nth ruled line of the reference pattern 2. The position (density gravity center position) K2 (n) and the ratio T are used to calculate the following equation.
K (n) = (K2 (n) −K1 (n)) × T + K1 (n)

S106:テストパターンの罫線位置を算出
S105において算出された仮想基準パターンの濃度重心位置Kを基準として、テストパターンの罫線位置を算出する。図20は、仮想基準パターンの濃度重心位置と、テストパターンの濃度重心位置との関係の一例を表す図である。図21は、仮想基準パターンの濃度重心位置に対するテストパターンの濃度重心位置の比率について説明する図である。図22は、テストパターンの濃度重心位置の実測値を算出する方法を説明する図である。
S106: Calculate the ruled line position of the test pattern The ruled line position of the test pattern is calculated based on the density centroid position K of the virtual reference pattern calculated in S105. FIG. 20 is a diagram illustrating an example of the relationship between the density centroid position of the virtual reference pattern and the density centroid position of the test pattern. FIG. 21 is a diagram for explaining the ratio of the density centroid position of the test pattern to the density centroid position of the virtual reference pattern. FIG. 22 is a diagram for explaining a method of calculating the actual measurement value of the density centroid position of the test pattern.

図20はテストパターンに印刷される横罫線群の一部、及び、それに対応する位置の仮想基準パターンの罫線群を拡大し、それぞれの位置関係がわかりやすいように表示している。コンピューター110は、テストパターンの罫線の濃度重心位置が、仮想基準パターンのどの罫線とどの罫線との間に位置しているかを検索する。例えば、図20の場合、テストパターンの一番上の罫線の濃度重心位置(373.7686667)は、仮想基準パターンの2番目の罫線の濃度重心位置(309.61325)と、3番目の罫線の濃度重心位置(469.430413)との間に位置していることがわかる。   FIG. 20 is an enlarged view of a part of the horizontal ruled line group printed on the test pattern and the ruled line group of the virtual reference pattern at the corresponding position, so that the positional relationship between the groups can be easily understood. The computer 110 searches for which ruled line of the virtual reference pattern the density barycentric position of the ruled line of the test pattern is located. For example, in the case of FIG. 20, the density centroid position (373.7686667) of the top ruled line of the test pattern is the density centroid position (309.61325) of the second ruled line of the virtual reference pattern and the density centroid position of the third ruled line ( 469.430413).

テストパターンの罫線と、仮想基準パターンの罫線との位置関係が明らかにされた後、仮想基準パターンの2つの罫線間におけるテストパターンの罫線の位置が特定される。図21のように、テストパターンの第m番目の罫線の濃度重心位置をS(m)として、S(m)が仮想基準パターンの第n−1番目の罫線の濃度重心位置K(n−1)と第n番目の罫線の濃度重心位置をK(n)との間に挟まれた位置にあるものとする。また、K(n)とK(n−1)との間の距離をLとして、S(m)とK(n−1)との間の距離をL(m)とする。このとき、間隔Lに対する間隔L(m)の比率Hは次の式で表される。
H=L(m)/L=(S(m)−K(n−1))/(K(n)−K(n−1))
After the positional relationship between the ruled line of the test pattern and the ruled line of the virtual reference pattern is clarified, the position of the ruled line of the test pattern between the two ruled lines of the virtual reference pattern is specified. As shown in FIG. 21, the density centroid position of the mth ruled line of the test pattern is S (m), and S (m) is the density centroid position K (n−1) of the n−1th ruled line of the virtual reference pattern. ) And the density barycentric position of the nth ruled line are located between K (n). Also, let L be the distance between K (n) and K (n-1), and let L (m) be the distance between S (m) and K (n-1). At this time, the ratio H of the interval L (m) to the interval L is expressed by the following equation.
H = L (m) / L = (S (m) -K (n-1)) / (K (n) -K (n-1))

上述の例(図20参照)であれば、H=((373.7686667)−(309.61325))/((469.430413)−(309.61325))≒0.4と算出される。   In the above example (see FIG. 20), H = ((373.7686667) − (309.61325)) / ((469.430413) − (309.61325)) ≈0.4.

ところで、実際の基準パターンは等間隔であるので、基準パターンの1番目のラインの絶対位置をゼロとすれば、基準パターンの任意の罫線の位置を算出することができる。例えば、図22のように、基準パターンの第n−1番目の罫線の位置の実測値がJ(n−1)で表され、基準パターンの第n番目の罫線の位置の実測値がJ(n)で表されるとする。
テストパターンの第m番目の罫線位置Sr(m)は以下の式によって算出される。
Sr(m)=(J(n)−J(n−1))×H+J(n−1)
By the way, since the actual reference pattern is equally spaced, the position of an arbitrary ruled line of the reference pattern can be calculated if the absolute position of the first line of the reference pattern is zero. For example, as shown in FIG. 22, the measured value of the position of the (n−1) th ruled line of the reference pattern is represented by J (n−1), and the measured value of the position of the nth ruled line of the reference pattern is J (n). n).
The mth ruled line position Sr (m) of the test pattern is calculated by the following equation.
Sr (m) = (J (n) −J (n−1)) × H + J (n−1)

この動作を、第1番目の罫線から最終番目の罫線まで繰り返すことにより、テストパターンの全ての罫線位置が算出される。   By repeating this operation from the first ruled line to the last ruled line, all ruled line positions of the test pattern are calculated.

S107:補正値算出
S106で算出されたテストパターンの罫線位置に基づいて、搬送ローラーの周方向位置毎に補正値が算出される。はじめに、補正値算出の概要について説明する。図23に、補正値算出の概要を説明する図を示す。
S107: Calculation of correction value Based on the ruled line position of the test pattern calculated in S106, a correction value is calculated for each circumferential position of the transport roller. First, an outline of correction value calculation will be described. FIG. 23 is a diagram for explaining an outline of correction value calculation.

プリンター1を用いて搬送される媒体に対して所定のPTSタイミングで連続的にインクを吐出した場合、理想的なインク滴の着弾位置は図23の(a)のように、全て等間隔となる。ここで、理想的とは、媒体の搬送誤差や、吐出されたインクの飛翔経路のズレ等が発生していない状態を言う。   When ink is continuously ejected to a medium transported using the printer 1 at a predetermined PTS timing, the ideal ink droplet landing positions are all equally spaced as shown in FIG. . Here, “ideal” means a state in which there is no occurrence of a medium transport error or a deviation in the flight path of the ejected ink.

しかし、実際には上述のような搬送ローラーの偏芯等による搬送誤差が生じるため、図23の(b)に示されるようにインク滴の着弾位置には間隔が広くなる部分や狭くなる部分が発生する。すなわち、着弾位置は等間隔とはならない。このような状態のプリンターを用いてテストパターンを印刷すると、(c)のような位置に罫線が印刷される。このとき、テストパターン上で罫線の位置を認識しやすいように、罫線は数ドットおきに印刷される。例えば、(c)の太実線で表されるものが実際に印刷される罫線とする。   However, in reality, there is a transport error due to the eccentricity of the transport roller as described above. Therefore, as shown in FIG. Occur. That is, the landing positions are not evenly spaced. When the test pattern is printed using the printer in such a state, a ruled line is printed at a position as shown in (c). At this time, the ruled lines are printed every several dots so that the positions of the ruled lines can be easily recognized on the test pattern. For example, a line represented by a thick solid line in (c) is a ruled line that is actually printed.

本実施形態では、(c)のようにドット着弾位置がずれた分を、(a)のようにずれのない位置に修正する為の補正値を算出し、インクの吐出タイミングを調整することにより、高画質な画像を印刷する。すなわち、(d)に示されるように、検出された実際の罫線位置と理想的な罫線位置とのずれ量が補正量となる。なお、搬送ローラー1周分の補正量を算出する際に、罫線間の各PTSタイミングの補正量は(e)に示されるように線形補間を行なうことによって算出される。例えば、補正を2PTS単位で行なう場合には、2PTSに対して1つの補正値を有するようにする。   In this embodiment, a correction value for correcting the amount of deviation of the dot landing position as shown in (c) to a position where there is no deviation as shown in (a) is calculated, and the ink ejection timing is adjusted. Print high-quality images. That is, as shown in (d), the amount of correction between the detected actual ruled line position and the ideal ruled line position is the correction amount. When calculating the correction amount for one rotation of the transport roller, the correction amount of each PTS timing between ruled lines is calculated by performing linear interpolation as shown in (e). For example, when correction is performed in units of 2 PTS, one correction value is set for 2 PTS.

続いて、補正値算出の具体的な処理について説明する。図24は、補正値を算出するためのフローを表す図である。補正値算出処理は、コンピューター110によってS701〜S710の処理を実行することによって行なわれる。   Next, specific processing for calculating the correction value will be described. FIG. 24 is a diagram illustrating a flow for calculating a correction value. The correction value calculation process is performed by executing the processes of S701 to S710 by the computer 110.

まず、罫線の上下反転が行なわれる(S701)。S106において算出されたテストパターンの罫線の重心位置は、テストパターンの印刷終端側(印刷時における搬送方向下流側)から算出された位置情報である(図10及び図11参照)。これに対して、本実施形態では搬送ローラーによって搬送される方向に従って補正値を算出する必要がある。そのため、テストパターンの印刷開始側から補正値を算出できるように、図11における罫線の上下を反転させる。全体の罫線の本数をN本、上下反転前の第k番目の罫線位置をLP_org(k)(0≦k≦N)とすると、上下反転後の罫線位置LP(k)は次式によって表される。
LP(k)=LP_org(N−1)−LP_org((N−1)−k)
First, the ruled line is turned upside down (S701). The barycentric position of the ruled line of the test pattern calculated in S106 is position information calculated from the print termination side of the test pattern (downstream in the transport direction during printing) (see FIGS. 10 and 11). On the other hand, in this embodiment, it is necessary to calculate a correction value according to the direction of conveyance by the conveyance roller. For this reason, the ruled lines in FIG. 11 are inverted so that the correction value can be calculated from the print start side of the test pattern. Assuming that the total number of ruled lines is N and the kth ruled line position before flipping up and down is LP_org (k) (0 ≦ k ≦ N), the ruled line position LP (k) after flipping up and down is expressed by the following equation. The
LP (k) = LP_org (N−1) −LP_org ((N−1) −k)

次に、上下を反転することで求められた罫線位置LP(k)と、当該罫線の理想位置との差分を全ての罫線について算出する(S702)。第k番目の罫線の理想位置をIP(k)とすると、第k番目の罫線についての差分ΔLP(k)は次式によって表される。
ΔLP(k)=LP(k)−IP(k)
Next, the difference between the ruled line position LP (k) obtained by reversing the upper and lower sides and the ideal position of the ruled line is calculated for all ruled lines (S702). If the ideal position of the kth ruled line is IP (k), the difference ΔLP (k) for the kth ruled line is expressed by the following equation.
ΔLP (k) = LP (k) −IP (k)

続いて、DC成分の除去を行なう(S703)。ここで、DC成分とは、搬送ローラーが1回転した時に生じる誤差である。例えば、搬送ローラーの製造段階における製造誤差によって、実際に製造された搬送ローラーの周方向の長さが設計値と異なるとする。このような搬送ローラーが1回転した時に実際に搬送される媒体の量は、設計時において予定されていた理論上の搬送量とは異なり、DC成分による誤差が発生する。DC成分の誤差が発生していると、搬送ローラーの回転基準位置(HP)における補正値と、該搬送ローラーが1回転して再びHPの位置になった時の補正値との間にずれが生じるおそれがある。つまり、DC成分の誤差を考慮せずに補正値を設定する場合、HPの前後において補正値の大きさに極端な差を生じるおそれがある。したがって、DC成分を除去することにより、搬送ローラーの周長が設計時における理論値であるものとして補正量を算出する。   Subsequently, the DC component is removed (S703). Here, the DC component is an error that occurs when the transport roller makes one rotation. For example, it is assumed that the circumferential length of the actually manufactured transport roller differs from the design value due to a manufacturing error in the manufacturing stage of the transport roller. The amount of the medium actually transported when such a transport roller makes one rotation is different from the theoretical transport amount planned at the time of design, and an error due to a DC component occurs. If a DC component error has occurred, there is a deviation between the correction value at the rotation reference position (HP) of the transport roller and the correction value when the transport roller makes one rotation and then returns to the HP position. May occur. That is, when the correction value is set without taking the DC component error into consideration, there is a possibility that an extreme difference occurs in the magnitude of the correction value before and after the HP. Therefore, by removing the DC component, the correction amount is calculated assuming that the circumference of the transport roller is a theoretical value at the time of design.

搬送ローラー1周分における罫線の本数をM、テストパターンの周数をJとする(すなわち、罫線の全本数N=M×J)と、搬送ローラーJ周目におけるDC成分の誤差量ΔDC(J)は次式により表される。
ΔDC(J)=ΔLP(J×M)−ΔLP((J−1)×M)
また、1周分のDC成分の平均値ΔDC_AVEは次式により表される。
ΔDC_AVE=AVE(ΔDC(1),ΔDC(2),…,ΔDC(J))
これらの値を用いて、DC成分を除いた後の第k番目の罫線の測定値LPDC(k)が次の式により算出される。
LPDC(k)=LP(k)+k/M×ΔDC_AVE
したがって、DC成分除去後の第k番目の罫線位置と、第k番目の理想値との差分ΔLPDC(k)が次式により表される。
ΔLPDC(k)=LPDC(k)−IP(k)
When the number of ruled lines in one rotation of the transport roller is M and the number of test patterns is J (that is, the total number of ruled lines N = M × J), the DC component error amount ΔDC (J ) Is expressed by the following equation.
ΔDC (J) = ΔLP (J × M) −ΔLP ((J−1) × M)
The average value ΔDC_AVE of the DC component for one round is expressed by the following equation.
ΔDC_AVE = AVE (ΔDC (1), ΔDC (2),..., ΔDC (J))
Using these values, the measured value LP DC (k) of the kth ruled line after removing the DC component is calculated by the following equation.
LP DC (k) = LP (k) + k / M × ΔDC_AVE
Accordingly, the difference ΔLP DC (k) between the kth ruled line position after the DC component removal and the kth ideal value is expressed by the following equation.
ΔLP DC (k) = LP DC (k) −IP (k)

なお、このように補正値を算出する際にDC成分を除去したとしても、実際の印刷時に発生するDC成分による位置ずれは補正されない。その結果、例えば、搬送方向における長さが10mの画像が、実際には10m1cmの画像として印刷される場合がある。しかし、本実施形態のプリンター1のようなラインプリンターを用いて印刷を行う場合、搬送方向と交差する方向にヘッドが移動しながらインクを吐出する所謂シリアルプリンターとは異なり、搬送方向の位置ズレが発生したとしても目立ちにくい。つまり、ラインプリンターにおいてはDC成分による位置ずれ自体は許容される。   Even if the DC component is removed when calculating the correction value in this way, the positional deviation due to the DC component that occurs during actual printing is not corrected. As a result, for example, an image having a length of 10 m in the transport direction may actually be printed as an image of 10 m1 cm. However, when printing is performed using a line printer such as the printer 1 of the present embodiment, the positional deviation in the transport direction is different from a so-called serial printer that ejects ink while the head moves in a direction crossing the transport direction. Even if it occurs, it is inconspicuous. That is, in the line printer, the positional deviation itself due to the DC component is allowed.

次に、罫線の理想位置からのずれ量に基づいて、罫線毎に補正すべき時間を算出する(S704)。図25に、インク滴の着弾位置のずれと補正すべき時間との関係を表す図を示す。図の白塗りで表される丸印は、インク滴が理想的な位置に着弾する場合を表している。インク滴が理想位置に着弾する場合、該インク滴によって形成される罫線の位置も理想的な位置となる。したがって、連続する3つの罫線(例えばk−1、k、k+1番目の罫線)は搬送方向の理想的な位置に形成される。   Next, based on the deviation amount of the ruled line from the ideal position, a time to be corrected for each ruled line is calculated (S704). FIG. 25 shows a relationship between the deviation of the landing position of the ink droplet and the time to be corrected. Circles represented by white in the figure represent cases where ink droplets land at ideal positions. When the ink droplet lands on the ideal position, the position of the ruled line formed by the ink droplet is also an ideal position. Therefore, three consecutive ruled lines (for example, k-1, k, k + 1th ruled lines) are formed at ideal positions in the transport direction.

一方、図の黒塗りで表される丸印は、インク滴が搬送方向の理想着弾位置よりも手前側に着弾する場合を表している。すなわち、インク滴が理想よりも早く着弾する場合を表している。例えば、k番目の罫線の理想着弾位置IP(k)よりもΔLPDC(k)だけ負側(マイナス側)にずれた位置に実際のk番目の罫線が形成される(図25)。すなわち、理想より早く着弾したインク滴によって形成される罫線の着弾位置と理想着弾位置とのずれ量は負となる(ΔLPDC(k)<0)。ここで、罫線間(例えばk+1番目の罫線とk番目の罫線との間)における時間をUnit_timeとすると、図25の3つの黒丸を結ぶ直線の傾きaが次式で表される。
a=(LPDC(k+1)−LPDC(k))/Unit_time
On the other hand, the circles represented by black in the figure represent the case where the ink droplets land on the near side of the ideal landing position in the transport direction. That is, it represents a case where ink droplets land earlier than ideal. For example, the actual kth ruled line is formed at a position shifted by ΔLP DC (k) to the negative side (minus side) from the ideal landing position IP (k) of the kth ruled line (FIG. 25). That is, the amount of deviation between the landing position of the ruled line formed by the ink droplets that landed earlier than ideal and the ideal landing position becomes negative (ΔLP DC (k) <0). Here, if the time between ruled lines (for example, between the (k + 1) th ruled line and the kth ruled line) is Unit_time, the slope a of the straight line connecting the three black circles in FIG. 25 is expressed by the following equation.
a = (LP DC (k + 1) −LP DC (k)) / Unit_time

ずれ量ΔLPDC(k)を理想着弾位置IP(k)まで補正するためには、図25に示されるように傾きaの直線上においてΔT(k)だけインク滴を吐出するタイミングを遅らせる必要がある。したがって、ΔT(k)は次式によって表される。
ΔT(k)=−a×ΔLPDC(k)
In order to correct the deviation amount ΔLP DC (k) to the ideal landing position IP (k), it is necessary to delay the timing of ejecting ink droplets by ΔT (k) on the straight line with the inclination a as shown in FIG. is there. Therefore, ΔT (k) is expressed by the following equation.
ΔT (k) = − a × ΔLP DC (k)

また、図の斜線部で表される丸印は、インク滴が搬送方向の理想着弾位置よりも後ろ側に着弾する場合を表している。すなわち、インク滴が理想よりも遅く着弾する場合を表している。この場合、理想より遅く着弾したインク滴によって形成されるk番目の罫線の着弾位置と理想着弾位置とのずれ量ΔLPDC(k)は正となる(ΔLPDC(k)>0))。ここで、罫線間(例えばk番目の罫線とk−1番目の罫線との間)における時間をUnit_timeとすると、図25の3つの斜線の丸印を結ぶ直線の傾きbが次式で表される。
b=(ΔLPDC(k)−ΔLPDC(k−1))/Unit_time
ずれ量ΔLPDC(k)を理想着弾位置IP(k)まで補正するためには、図25に示されるように傾きbの直線上においてΔT(k)だけインク滴を吐出するタイミングを早める必要がある。したがって、ΔT(k)は次式によって表される。
ΔT(k)=−b×ΔLPDC(k)
Also, the circles represented by the hatched portions in the figure represent the case where the ink droplets land behind the ideal landing position in the transport direction. That is, it represents a case where ink droplets land later than ideal. In this case, the deviation amount ΔLP DC (k) between the landing position of the k-th ruled line formed by the ink droplets landed later than ideal and the ideal landing position is positive (ΔLP DC (k)> 0)). Here, assuming that the time between ruled lines (for example, between the kth ruled line and the k-1th ruled line) is Unit_time, the slope b of the straight line connecting the three hatched circles in FIG. The
b = (ΔLP DC (k) −ΔLP DC (k−1)) / Unit_time
In order to correct the shift amount ΔLP DC (k) to the ideal landing position IP (k), it is necessary to advance the timing of ejecting ink droplets by ΔT (k) on the straight line with the slope b as shown in FIG. is there. Therefore, ΔT (k) is expressed by the following equation.
ΔT (k) = − b × ΔLP DC (k)

なお、図25のようにして補正すべき時間を算出する場合、テストパターンの端部に位置する罫線に対する傾きを算出するために、対象となる罫線以外にプラス3本の罫線が必要である。図26に補正量を算出するために用いられる罫線の例を示す。図のように搬送ローラーの回転基準位置HPから次のHPの1つ前の罫線までを1周期(M本の罫線)として、3周期分の罫線を印刷する場合について考える。まず、1周期目の先頭のHPであるHP1から補正値を算出する際に、HP1の前後の罫線位置を検出する為にHP1の前に1本の罫線が必要である。また、3周期目の終端部の補正値を算出するために、3周期目の終端部のHP(すなわち、4周期目の先頭のHP)HP4を加える。そして、当該HP4から補正値を算出する際に、HP4の前後の罫線位置を検出する為にHP4の後に1本の罫線が必要となる。つまり、合計でM(1周期あたりの罫線本数)×J(周回数)+3本の罫線が印刷される。   When calculating the time to be corrected as shown in FIG. 25, in order to calculate the inclination with respect to the ruled line located at the end of the test pattern, plus three ruled lines are necessary in addition to the target ruled line. FIG. 26 shows an example of ruled lines used for calculating the correction amount. Consider a case in which ruled lines for three periods are printed with one period (M ruled lines) from the rotation reference position HP of the transport roller to the ruled line immediately before the next HP as shown in the figure. First, when calculating a correction value from HP1, which is the first HP in the first cycle, one ruled line is required before HP1 in order to detect the ruled line positions before and after HP1. Further, in order to calculate the correction value of the terminal portion of the third cycle, the HP of the terminal portion of the third cycle (that is, the head HP of the fourth cycle) HP4 is added. When calculating the correction value from the HP 4, one ruled line is required after the HP 4 in order to detect the ruled line positions before and after the HP 4. That is, a total of M (number of ruled lines per cycle) × J (number of laps) +3 ruled lines is printed.

次に、罫線間の補正すべき時間ΔT(k)を用いて、PTS毎の補正するべき時間を仮補正値として算出する(S705)。ここで、PTS毎に時間を補正するとは、罫線と罫線との間に複数のPTSタイミング(液滴の吐出タイミング)がある場合に、そのそれぞれについて吐出タイミングを補正することを意味する。個々のPTSタイミングを調整することで、実際に印刷を行う際のインク滴の着弾位置のずれを抑制する。   Next, using the time ΔT (k) to be corrected between ruled lines, the time to be corrected for each PTS is calculated as a temporary correction value (S705). Here, correcting the time for each PTS means that when there are a plurality of PTS timings (droplet ejection timings) between the ruled lines, the ejection timing is corrected for each of them. By adjusting the individual PTS timing, the deviation of the landing positions of the ink droplets during actual printing is suppressed.

PTS毎に仮補正値を求める方法として、具体的に、第k番目の罫線位置での補正すべき時間と、第k+1番目の罫線位置での補正すべき時間を用いて、当該罫線間でのPTS個数について線形補間を行なうことで、各PTSについて補正するべき時間を算出する。   As a method for obtaining a provisional correction value for each PTS, specifically, using the time to be corrected at the k-th ruled line position and the time to be corrected at the (k + 1) -th ruled line position, By performing linear interpolation on the number of PTSs, the time to be corrected for each PTS is calculated.

ここで、罫線間におけるPTS個数をPとして、補正を適用するPTSの個数をNUM_PTSとする。例えば、2PTS単位で1つの補正量を持つ場合はNUM_PTS=2となる。また、全ての罫線本数をNとして、補正値を適用するPTS番号をx(0≦x≦(N−3)×P/NUM_PTS)とすると、第x番目のPTSの補正すべき時間ΔPTS(x)が次式によって表される。
ΔPTS(x)=(ΔT(k+1)−ΔT(k))×x/P/NUM_PTS
+ΔT(k)
Here, the number of PTSs between ruled lines is P, and the number of PTSs to which correction is applied is NUM_PTS. For example, if there is one correction amount in 2 PTS units, NUM_PTS = 2. Further, assuming that the number of all ruled lines is N and the PTS number to which the correction value is applied is x (0 ≦ x ≦ (N−3) × P / NUM_PTS), the time ΔPTS (x ) Is represented by the following equation.
ΔPTS (x) = (ΔT (k + 1) −ΔT (k)) × x / P / NUM_PTS
+ ΔT (k)

算出された補正時間ΔPTS(x)は、上述の図8において破線で示される補正値に相当し、当該補正値を仮補正値TmpRev(x)としておく。
この仮補正値をそのまま適用しようとすると、上述の図7Cで説明したような波形衝突を生じ、正確なインク吐出を行なうことができなくなる場合がある。そこで、算出された仮補正値について波形衝突のチェックを行い、必要に応じて仮補正値を修正することで波形衝突が生じることを回避する(S706)。
The calculated correction time ΔPTS (x) corresponds to a correction value indicated by a broken line in FIG. 8 described above, and the correction value is set as a temporary correction value TmpRev (x).
If this temporary correction value is applied as it is, a waveform collision as described with reference to FIG. 7C may occur, and accurate ink ejection may not be performed. Therefore, the calculated temporary correction value is checked for waveform collision, and the temporary correction value is corrected as necessary to avoid the occurrence of waveform collision (S706).

波形衝突マージンをMARGINとすると、TmpRev(x)−TmpRev(x−1)≧MARGINとなる場合は波形衝突が発生しない。この場合、仮補正値TmpRev(x)を修正する必要は無い。
一方、TmpRev(x)−TmpRev(x−1)<MARGINとなる場合(上述の説明においてはC(x)−C(x+1)>(Tm)の場合)は波形衝突が発生する。そこで、波形衝突を回避する為に、補正対象となる第x番目の補正値TmpRev(x)を、直前における仮補正値TmpRev(x−1)を用いて次式のように修正する。
TmpRev(x)=TmpRev(x−1)+MARGIN
Assuming that the waveform collision margin is MARGIN, waveform collision does not occur when TmpRev (x) −TmpRev (x−1) ≧ MARGIN. In this case, there is no need to correct the temporary correction value TmpRev (x).
On the other hand, when TmpRev (x) −TmpRev (x−1) <MARGIN (in the above description, C (x) −C (x + 1)> (Tm)), a waveform collision occurs. Therefore, in order to avoid waveform collision, the x-th correction value TmpRev (x) to be corrected is corrected as follows using the temporary correction value TmpRev (x−1) immediately before.
TmpRev (x) = TmpRev (x-1) + MARGIN

これにより、ある位置(周方向位置)において補正されるPTSタイミングが、直前において補正されるPTSタイミングよりも早くなる場合であって、波形衝突が生じやすい条件では、図8のように破線部分(図8の例においてはサインカーブ)で表される仮補正値が、実線で表される直線へと修正される。すなわち、補正値の変化量が一定(MARGINの分)となるように修正される。なお、波形衝突が生じにくい条件においては、仮補正値が修正されないので図8の破線で表される補正値(図8の例においてはサインカーブ)のままである。   As a result, in the case where the PTS timing corrected at a certain position (circumferential position) is earlier than the PTS timing corrected immediately before, and under the condition that waveform collision is likely to occur, the broken line portion ( In the example of FIG. 8, the temporary correction value represented by a sine curve is corrected to a straight line represented by a solid line. That is, the correction value is corrected so that the amount of change is constant (for MARGIN). It should be noted that under the condition that the waveform collision is difficult to occur, the temporary correction value is not corrected, and thus the correction value represented by the broken line in FIG. 8 (sine curve in the example of FIG. 8) remains.

図8で示される補正値は、搬送ローラーの3周分について表しているが、実際に補正を行う際には搬送ローラーの周回数は考慮されない。つまり、図5で説明したように搬送ローラーの周方向位置毎に補正値が設定されるのであり、搬送ローラーの周方向位置が同じであれば1周目でも2周目でも同じ補正値が用いられる。例えば図5の#3の位置に設定される補正値は搬送ローラーの周回数に関わらず同じ補正値が用いられる。そこで、算出された全ての補正値から、搬送ローラーの1周期分の補正値を算出する(S707)。   Although the correction values shown in FIG. 8 are shown for three rotations of the conveyance roller, the number of rotations of the conveyance roller is not taken into account when the correction is actually performed. That is, as described with reference to FIG. 5, the correction value is set for each circumferential position of the transport roller. If the circumferential position of the transport roller is the same, the same correction value is used for the first and second rounds. It is done. For example, the same correction value is used as the correction value set at the position # 3 in FIG. 5 regardless of the number of rotations of the transport roller. Therefore, a correction value for one cycle of the transport roller is calculated from all the calculated correction values (S707).

1周期分の補正値は、各周期について求められた補正値を平均化することによって算出される。その際、第1周期目の補正値を除外して平均値を算出する。例えば、図8に示されるような3周分の補正値が求められる場合には、1周目のデータを除外して、2周目と3周目の補正値を平均化することで、1周期分の補正値を算出する。1周目のデータを除外するのは、S706において補正値が修正される場合を考慮する為である。例えば、1周目の開始時点における補正値は必ずゼロである(図8参照)。一方、補正値の修正が行なわれた場合、2周目の開始時点における補正値と、3周目の開始時点における補正値とは共にゼロよりも大きな値となる(図8の実線部参照)。すなわち、1周目の補正値が、それ以降の補正値と異なる値になる場合がある。そのため、2周目以降(2周目と3周目)の補正値の平均を取ることによって1周期分の補正値を算出する。平均の補正値REV(x)は次式で表される。
REV(x)=(TmpRev(x+M×P/NUM_PTS)+
TmpRev(x+2×M×P/NUM_PTS))/2
The correction value for one period is calculated by averaging the correction values obtained for each period. At that time, the average value is calculated by excluding the correction value in the first period. For example, when correction values for three rounds as shown in FIG. 8 are obtained, the data for the first round are excluded and the correction values for the second and third rounds are averaged to obtain 1 A correction value for the period is calculated. The reason why the first round data is excluded is to consider the case where the correction value is corrected in S706. For example, the correction value at the start of the first round is always zero (see FIG. 8). On the other hand, when the correction value is corrected, the correction value at the start time of the second turn and the correction value at the start time of the third turn are both larger than zero (see the solid line portion in FIG. 8). . That is, the first round correction value may be different from the subsequent correction values. Therefore, a correction value for one cycle is calculated by taking an average of correction values for the second and subsequent rounds (second and third rounds). The average correction value REV (x) is expressed by the following equation.
REV (x) = (TmpRev (x + M × P / NUM_PTS) +
TmpRev (x + 2 × M × P / NUM_PTS)) / 2

ところで、補正値REV(x)を算出する過程においてDC成分の除去が行なわれるが(S703)、このとき搬送ローラー1周分の補正値の先頭の補正値と終端の補正値とに段差が生じる場合がある。図27は補正値の段差の例を示す図である。図27の左側の図では、先端の補正値と終端の補正値との大きさが異なるため、搬送ローラーの回転に応じて当該補正値を繰り返して用いようとすると、現在の周回の終端から次の周回の先端に移行する際に補正値の段差が生じる。そこで、図27の右側の図のように補正値に傾き補正をかけることにより、段差を補正する(S708)。
なお、先頭部と終端部における補正値の段差GapはRev(0)−Rev(M×P−1)で表され、当該Gapの絶対値が上述のMARGINの絶対値よりも大きい場合(|Gap|>|MARGIN|の場合)に段差が発生する。
Incidentally, the DC component is removed in the process of calculating the correction value REV (x) (S703). At this time, a step is generated between the correction value at the beginning and the correction value at the end of the correction value for one rotation of the transport roller. There is a case. FIG. 27 is a diagram illustrating an example of a correction value step. In the left diagram of FIG. 27, the correction value at the front end and the correction value at the end are different, so if the correction value is repeatedly used according to the rotation of the transport roller, the next rotation from the end of the current rotation A step of the correction value is generated when shifting to the tip of the rotation. Accordingly, the step is corrected by applying a tilt correction to the correction value as shown in the right side of FIG. 27 (S708).
Note that the gap Gap of the correction value at the beginning and the end is expressed by Rev (0) −Rev (M × P−1), and the absolute value of the gap is larger than the absolute value of MARGIN (| Gap |> | MARGIN |), a step is generated.

段差の補正は補正値の連続性を考慮して行う必要があるが、補正値の終端部における変化量(傾き)と先頭部における変化量(傾き)との違いによって、段差補正の方法が異なることに留意する。図28は、段差補正の方法について補正値の変化量毎に場合分けして説明する図である。   The level difference must be corrected in consideration of the continuity of the correction value, but the level difference correction method differs depending on the difference (inclination) at the end of the correction value and the amount (inclination) at the beginning. Note that. FIG. 28 is a diagram for explaining the step correction method for each correction value change amount.

まず、終端における補正値の傾きと、先端における補正値の傾きとが異符号である場合について、図28の(1)図は終端の傾きが正、先頭の傾きが負であるときの例を示すが、この場合は、補正すべき狙いの段差(Gap)=実際の段差Gapとなるように補正を行えばよい。傾き補正比率をcとすると、c=(Gap)/(M×P/NUM_PTS)で表されるので、補正値Rev(x)は、補正比率cを用いて次式のように表される。
Rev(x)=c×x+Rev(x)
図28の(2)図は、終端の傾きが負、先頭の傾きが正の場合であるが、この場合も同様に狙いの段差(Gap)=実際の段差Gapとなるように補正を行えばよい。
First, regarding the case where the slope of the correction value at the end and the slope of the correction value at the tip have different signs, FIG. 28 (1) shows an example where the end slope is positive and the top slope is negative. In this case, the correction may be performed so that the target step (Gap) to be corrected = the actual step Gap. Assuming that the inclination correction ratio is c, it is expressed by c = (Gap) / (M × P / NUM_PTS). Therefore, the correction value Rev (x) is expressed by the following expression using the correction ratio c.
Rev (x) = c × x + Rev (x)
FIG. 28 (2) shows a case where the end slope is negative and the head slope is positive. In this case as well, if correction is performed so that the target step (Gap) = actual step Gap. Good.

次に、終端における補正値の傾きと、先端における補正値の傾きとが同符号である場合を考える。終端部の傾きをb1、先頭部の傾きをb2と表すとき、b1及びb2が共に負の場合(図28の(3)及び(4)図の場合)、補正すべき狙いの段差(Gap)は、実際の段差GapからMARGIN分を減算した量となる。
すなわち、(Gap)=Gap−MARGINとなる。この狙いの段差(Gap)に基づいて上述の場合と同様に傾き補正比率をcと補正値Rev(x)が算出される。
Next, consider the case where the slope of the correction value at the end and the slope of the correction value at the tip have the same sign. When the inclination of the end portion is represented by b1 and the inclination of the head portion is represented by b2, if both b1 and b2 are negative (in the cases of (3) and (4) in FIG. 28), the target step (Gap) to be corrected Is an amount obtained by subtracting MARGIN from the actual step Gap.
That is, (Gap) = Gap−MARGIN. Based on the target step (Gap), the inclination correction ratio c and the correction value Rev (x) are calculated in the same manner as described above.

b1及びb2が共に正の場合(図28の(5)及び(6)図の場合)、補正すべき狙いの段差(Gap)は、実際の段差Gapから傾きの平均値を減算した値となる。すなわち、(Gap)=Gap−(b1+b2)/2となる。この狙いの段差(Gap)に基づいて上述の場合と同様に傾き補正比率をcと補正値Rev(x)が算出される。
先端部及び終端部における補正値の傾きをそれぞれ考慮して、補正するべき段差(Gap)を算出することにより、様々な場合に対応して最適に段差を補正することができる。
When both b1 and b2 are positive (in the cases of FIGS. 28 (5) and (6)), the target step (Gap) to be corrected is a value obtained by subtracting the average value of the slope from the actual step Gap. . That is, (Gap) = Gap− (b1 + b2) / 2. Based on the target step (Gap), the inclination correction ratio c and the correction value Rev (x) are calculated in the same manner as described above.
By calculating the step to be corrected (Gap) in consideration of the inclination of the correction value at the front end and the end, it is possible to optimally correct the step corresponding to various cases.

傾き補正が完了した後、補正値の中心がゼロになるようにするため、補正値のオフセットを行い、併せて四捨五入する(S709)。
最後に、波形衝突についての再確認を行なう。S708において段差補正を行うことによって、直前の補正値に対する次の補正値が、波形衝突のチェック(S706)を行なった際のMARGINを越えてしまうことが無いように再確認を行ない、波形衝突が生じるのを抑制する。なお、チェックの結果、波形衝突が生じると判定される場合、すなわち、MARGINを超えてしまう場合には、エラーを表示させて印刷を終了する。
After the inclination correction is completed, the correction value is offset and rounded off to make the center of the correction value zero (S709).
Finally, reconfirmation about waveform collision is performed. By performing step difference correction in S708, reconfirmation is performed so that the next correction value with respect to the previous correction value does not exceed MARGIN when the waveform collision check (S706) is performed. Suppresses the occurrence. If it is determined that a waveform collision occurs as a result of the check, that is, if it exceeds MARGIN, an error is displayed and printing is terminated.

S108:メモリーに補正値データテーブルを記憶
S107で算出された補正値は、搬送ローラーの周方向位置と対応させてデータテーブルとしてプリンター1のメモリー62に保存される。印刷を行う際には、当該データテーブルから補正値を参照して適用させることにより、PTSタイミングを調整しながらインクが吐出される。
S108: The correction value data table is stored in the memory. The correction value calculated in S107 is stored in the memory 62 of the printer 1 as a data table in association with the circumferential position of the transport roller. When printing is performed, ink is ejected while adjusting the PTS timing by applying the correction value with reference to the data table.

<まとめ>
本実施形態の印刷装置では、媒体の搬送方向と交差する交差方向(紙幅方向)に並ぶノズル列から、搬送される媒体に対してインク滴を吐出することによって画像等の印刷を行う。印刷の際には、搬送ローラーを回転させることによって媒体が搬送されるが、該搬送ローラーに偏芯が生じていると、搬送ローラーの周方向の位置毎に媒体搬送量に誤差が生じる。このような場合、吐出されたインク滴の着弾位置にずれが生じるため、印刷される画像の画質が劣化する。
<Summary>
In the printing apparatus according to the present embodiment, an image or the like is printed by ejecting ink droplets from a nozzle row arranged in an intersecting direction (paper width direction) intersecting the medium transport direction to the transported medium. During printing, the medium is conveyed by rotating the conveyance roller. If the conveyance roller is eccentric, an error occurs in the medium conveyance amount for each circumferential position of the conveyance roller. In such a case, since the landing positions of the ejected ink droplets are shifted, the image quality of the printed image is deteriorated.

そこで、本実施形態では搬送ローラーの周方向の位置毎に補正値を設定し、複数接待される該補正値を用いてインク滴の吐出タイミングを調整する。このとき、搬送ローラーの周方向の位置毎に設定される補正値は、基本的にサインカーブ等の周期関数によって表される。ただし、インクの吐出タイミングを直前の吐出タイミングと比べて早める場合には、当該補正値の変化量が一部の領域で一定になるようにする。   Therefore, in this embodiment, a correction value is set for each circumferential position of the transport roller, and the ink droplet ejection timing is adjusted using a plurality of correction values that are entertained. At this time, the correction value set for each circumferential position of the transport roller is basically represented by a periodic function such as a sine curve. However, when the ink ejection timing is advanced compared to the immediately preceding ejection timing, the change amount of the correction value is set to be constant in a part of the region.

このような印刷装置によれば、インク滴の吐出タイミングを補正することにより、該インク滴の着弾位置のずれを修正して高画質な画像を印刷することができる。また、直前の吐出タイミングと比べて現在の吐出タイミングを早くしても、吐出動作が干渉することはない。すなわち、適正な吐出間隔を保ちながら正確にインクを吐出することができる。   According to such a printing apparatus, by correcting the ejection timing of the ink droplets, it is possible to correct the deviation of the landing positions of the ink droplets and print a high-quality image. Further, even if the current ejection timing is made earlier than the immediately preceding ejection timing, the ejection operation does not interfere. That is, ink can be accurately discharged while maintaining an appropriate discharge interval.

また、交差方向に沿ったラインが搬送方向に複数並ぶテストパターンを印刷し、スキャナーによって該テストパターンを読み取った画像データから、ラインの間の搬送方向の間隔を検出し、検出された間隔の差に基づいて補正値が算出される。さらに、ノズルからインク滴が吐出されてから次のインクが吐出されるまでの時間の間隔が所定の閾値よりも短くなる場合には、該時間間隔が閾値以上になるように、算出された補正値が修正される。   In addition, a test pattern in which a plurality of lines along the crossing direction are arranged in the transport direction is printed, and the interval in the transport direction between the lines is detected from the image data obtained by reading the test pattern with a scanner. Based on the correction value, a correction value is calculated. Further, when the time interval from the ejection of the ink droplet from the nozzle to the ejection of the next ink is shorter than a predetermined threshold, the calculated correction is made so that the time interval becomes equal to or greater than the threshold. The value is corrected.

実際の印刷に用いられるノズル列によって形成されるテストトパターンを測定した結果に基づいて補正値を算出することにより、吐出タイミングを正確に補正可能な補正値を得ることができる。   By calculating the correction value based on the result of measuring the test pattern formed by the nozzle row used for actual printing, it is possible to obtain a correction value that can accurately correct the ejection timing.

なお、上述の閾値は、媒体の搬送速度が速いほど大きくする。本実施形態では、インクを吐出するために駆動信号COMがヘッドに印加されるが、搬送速度が大きい場合には、駆動信号COMの印加が完了する前に次の駆動信号COMを印加するタイミングが来てしまうおそれがある。この場合、波形衝突が生じ、正確なインク吐出動作が行えなくなる。そこで、搬送速度に応じて閾値を調整することで、波形衝突を回避する為の許容範囲を最適化することができる。   The above-described threshold value is increased as the medium conveyance speed is higher. In the present embodiment, the drive signal COM is applied to the head in order to eject ink. However, when the conveyance speed is high, the timing of applying the next drive signal COM is completed before the application of the drive signal COM is completed. There is a risk of coming. In this case, waveform collision occurs, and accurate ink ejection operation cannot be performed. Therefore, by adjusting the threshold according to the conveyance speed, the allowable range for avoiding waveform collision can be optimized.

また、本実施形態では、前記搬送ローラーが1回転した時に生じる搬送誤差(DC成分)の影響を除去してから、上述のテストパターンのライン間の間隔を測定し、補正値を算出する。これにより、搬送ローラーの回転基準位置の前後において補正値の大きさに極端な差が生じることを抑制し、補正値が連続的に変化するようにする。   Further, in this embodiment, after removing the influence of the transport error (DC component) that occurs when the transport roller makes one rotation, the interval between the lines of the above test pattern is measured, and the correction value is calculated. Thereby, an extreme difference in the magnitude of the correction value before and after the rotation reference position of the transport roller is suppressed, and the correction value is continuously changed.

また、前記搬送ローラーの周方向の先端部の位置における補正値と、前記周方向の終端部の位置における補正値との間に段差が生じている場合は、該補正値に傾き補正を行って段差が小さくなるようにする。具体的には、補正するべき段差に応じて適切な補正比率を算出し、該補正比率に応じて傾き補正を行う。段差を補正することにより、搬送ローラーの1周期の終端から次の周期の先頭に移行する際に、補正値に大きな変動が生じないようにする。   Further, when a step is generated between the correction value at the front end portion in the circumferential direction of the transport roller and the correction value at the end portion in the circumferential direction, an inclination correction is performed on the correction value. Make the step small. Specifically, an appropriate correction ratio is calculated according to the level difference to be corrected, and tilt correction is performed according to the correction ratio. By correcting the level difference, the correction value is prevented from greatly fluctuating when shifting from the end of one cycle of the transport roller to the head of the next cycle.

なお、段差の補正は補正値の連続性を考慮して行う必要があり、先端部と終端部の補正値の傾きが異符号の場合、同符号で共に正の場合、及び、同符号で共に不の場合についてそれぞれ補正すべき段差の大きさを適切に算出し、段差の補正を行う。これにより、補正値の傾きの条件がいかなる場合であっても、正確な傾き補正が行われる。   Note that the level difference must be corrected in consideration of the continuity of the correction values. If the slopes of the correction values at the front end and the end are different signs, both are the same sign and positive, and both are the same sign. In the case of failure, the size of the step to be corrected is calculated appropriately, and the step is corrected. As a result, accurate inclination correction is performed regardless of the condition of the inclination of the correction value.

また、補正値はローラーが1回転する周期毎に算出される。本実施形態では、3周期分の補正値が算出され、そのうち、第1周期目で算出される補正値を除いた第2・第3周期目の補正値を平均することで、搬送ローラー1周期分の補正値が算出される。また、3周期目以降の補正値が算出される場合には、その分も平均化される。1周期目に算出される補正値の先頭は必ずゼロであるため、2周期目以降の補正値と大きくずれる場合がある。そこで、1周期目の補正値を除外して平均化することにより、1周期分の補正値を正確に算出することができる。   Further, the correction value is calculated for each cycle in which the roller rotates once. In the present embodiment, correction values for three periods are calculated, and among them, the correction values for the second and third periods excluding the correction values calculated for the first period are averaged, so that one period of the transport roller A correction value for the minute is calculated. Further, when the correction values for the third and subsequent cycles are calculated, that amount is also averaged. Since the beginning of the correction value calculated in the first period is always zero, there is a case where the correction value in the second period and thereafter is largely deviated. Therefore, by excluding the correction value in the first period and averaging, the correction value for one period can be accurately calculated.

===搬送速度との関係===
上述の実施形態では、波形衝突を回避する為に、波形衝突マージンを考慮して補正値を算出していたが、この波形衝突マージンは印刷時の媒体搬送速度と大きく関係する。
=== Relationship with transport speed ===
In the above-described embodiment, the correction value is calculated in consideration of the waveform collision margin in order to avoid the waveform collision, but this waveform collision margin is largely related to the medium conveyance speed during printing.

図29は、搬送速度を変更した場合の波形衝突マージンの変化の様子を表す図である。図の縦軸は駆動信号COMの電圧を、横軸は時間を表す。また、上側の図は搬送速度が300mm/secの場合を、下側の図は搬送速度が150mm/secの場合を表している。   FIG. 29 is a diagram illustrating a change in the waveform collision margin when the conveyance speed is changed. In the figure, the vertical axis represents the voltage of the drive signal COM, and the horizontal axis represents time. The upper diagram shows the case where the conveyance speed is 300 mm / sec, and the lower diagram shows the case where the conveyance speed is 150 mm / sec.

搬送速度が速い場合(300mm/secの場合)、直前の画素に対する駆動信号COMの印加が終了してから、次の画素に対する駆動信号の印加が開始されるまでの波形衝突マージンはtm(300)となる。これに対して、搬送速度が遅い場合(150mm/secの場合)、直前の画素に対する駆動信号COMの印加が終了してから、次の画素に対する駆動信号の印加が開始されるまでの波形衝突マージンはtm(150)となる。図29に示されるように、同じ駆動信号COMを印加する場合は、媒体の搬送速度が遅いほど波形衝突マージンを大きくとることができる(tm(150)>tm(300))。すなわち、媒体の搬送速度に応じて波形衝突マージンを変えることができるので、補正値の閾値も搬送速度に応じて適宜変更することができる。   When the conveyance speed is high (in the case of 300 mm / sec), the waveform collision margin from the end of the application of the drive signal COM to the previous pixel to the start of the application of the drive signal to the next pixel is tm (300). It becomes. On the other hand, when the conveyance speed is low (150 mm / sec), the waveform collision margin from the end of the application of the drive signal COM to the previous pixel to the start of the application of the drive signal to the next pixel Becomes tm (150). As shown in FIG. 29, when the same drive signal COM is applied, the waveform collision margin can be increased as the medium transport speed is slower (tm (150)> tm (300)). That is, since the waveform collision margin can be changed according to the conveyance speed of the medium, the threshold value of the correction value can be appropriately changed according to the conveyance speed.

例えば、搬送速度が150mm/secの場合は波形衝突マージンに大きな余裕があるので、閾値を低くすることができる。したがって、波形衝突を回避するために補正値を修正する必要性も小さく、図8において破線で示されるような補正値をそのまま用いることが出来る。一方、搬送速度が150mm/secの場合は波形衝突マージンの余裕が小さく、閾値を大きく設定する必要が生じる。したがって、波形衝突を回避するためには補正値を修正しなければならない可能性が高く、図8の実線部分で示されるように補正値を修正して用いる。このように、媒体の搬送速度に応じて衝突マージンの大きさが異なるため、補正値の傾き(図8において実線部分の傾き)も搬送速度に応じて異なるものとなる。   For example, when the conveyance speed is 150 mm / sec, there is a large margin in the waveform collision margin, so the threshold can be lowered. Therefore, it is less necessary to correct the correction value in order to avoid the waveform collision, and the correction value as indicated by the broken line in FIG. 8 can be used as it is. On the other hand, when the conveyance speed is 150 mm / sec, the margin of the waveform collision margin is small, and it is necessary to set a large threshold value. Therefore, there is a high possibility that the correction value must be corrected in order to avoid waveform collision, and the correction value is corrected and used as shown by the solid line portion in FIG. As described above, since the size of the collision margin varies depending on the conveyance speed of the medium, the inclination of the correction value (inclination of the solid line portion in FIG. 8) also varies depending on the conveyance speed.

===その他の実施形態===
一実施形態としてのプリンター等を説明したが、上記の実施形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更、改良され得ると共に、本発明にはその等価物が含まれることは言うまでもない。特に、以下に述べる実施形態であっても、本発明に含まれるものである。
=== Other Embodiments ===
Although a printer or the like as one embodiment has been described, the above embodiment is for facilitating the understanding of the present invention, and is not intended to limit the present invention. The present invention can be changed and improved without departing from the gist thereof, and it is needless to say that the present invention includes equivalents thereof. In particular, the embodiments described below are also included in the present invention.

<使用するインクについて>
前述の実施形態では、CMYKの4色のインクを使用して印刷する例が説明されていたが、これに限られるものではない。例えば、ライトシアン、ライトマゼンタ、ホワイト、クリア等、CMYK以外の色のインクを用いて印刷を行ってもよい。
<Ink used>
In the above-described embodiment, an example of printing using four colors of CMYK inks has been described. However, the present invention is not limited to this. For example, printing may be performed using inks of colors other than CMYK, such as light cyan, light magenta, white, and clear.

<ノズル列の配置について>
ヘッド部のノズル列は搬送方向に沿ってKCMYの順で並んでいたが、これに限られるものではない。例えば、ノズル列の順番が入れ替わっていてもよいし、Kインクのノズル列数が他のインクのノズル列数より多い構成などであってもよい。
<Regarding the arrangement of nozzle rows>
The nozzle rows of the head portion are arranged in the order of KCMY along the transport direction, but the present invention is not limited to this. For example, the order of the nozzle rows may be changed, or the number of nozzle rows for K ink may be greater than the number of nozzle rows for other inks.

<プリンタードライバーについて>
プリンタードライバーの処理はプリンター側で行ってもよい。その場合、プリンターとドライバーをインストールしたコンピューターとで印刷装置が構成される。
<About the printer driver>
The printer driver processing may be performed on the printer side. In this case, a printing apparatus is configured by the printer and the computer on which the driver is installed.

1 プリンター
20 搬送ユニット、22 搬送ローラー、23 排出ローラー、24 ベルト、
40 ヘッドユニット、41〜44 ヘッド、
50 検出器群、51 ロータリーエンコーダー、52 原点センサー
60 コントローラー、61 CPU、62 メモリー、63 COM生成部、
110 コンピューター
1 Printer 20 transport unit, 22 transport roller, 23 discharge roller, 24 belt,
40 head units, 41 to 44 heads,
50 detector groups, 51 rotary encoder, 52 origin sensor 60 controller, 61 CPU, 62 memory, 63 COM generator,
110 computer

Claims (8)

(A)搬送ローラーを回転させることによって搬送方向に媒体を搬送する搬送部と、
(B)前記搬送方向と交差する交差方向に並ぶ複数のノズルを有し、該ノズルからインクを吐出することによって前記媒体に画像を印刷するヘッド部と、
(C)前記搬送ローラーの周方向の位置毎にそれぞれ対応付けられた複数の補正値を記憶した記憶部と、
(D)前記搬送部及び前記ヘッド部の動作を制御する制御部であって、前記補正値に応じたタイミングで前記ノズルから前記インクを吐出させる制御部と、
を備える印刷装置であって、
前記複数の補正値は、
直前の前記タイミングと比べて前記タイミングを早める場合には、前記周方向の位置に対する前記補正値の変化量が一定になる領域を有し、
それ以外の場合には、前記周方向の位置に対する前記補正値が周期関数で表される、
ことを特徴とする印刷装置。
(A) a transport unit that transports the medium in the transport direction by rotating the transport roller;
(B) a head unit that has a plurality of nozzles arranged in an intersecting direction intersecting the transport direction, and prints an image on the medium by ejecting ink from the nozzles;
(C) a storage unit that stores a plurality of correction values associated with each circumferential position of the transport roller;
(D) a control unit that controls the operation of the transport unit and the head unit, the control unit discharging the ink from the nozzle at a timing according to the correction value;
A printing apparatus comprising:
The plurality of correction values are:
When the timing is advanced compared to the immediately preceding timing, the amount of change in the correction value with respect to the circumferential position is constant,
Otherwise, the correction value for the circumferential position is represented by a periodic function.
A printing apparatus characterized by that.
請求項1に記載の印刷装置であって、
前記補正値は、
前記搬送方向に搬送される前記媒体に対して前記ノズルから前記インクを吐出することによって前記交差方向に沿ったラインが前記搬送方向に複数並んで形成されるテストパターンについて、該テストパターンを読み取った画像データから、複数の前記ラインの間の前記搬送方向の間隔を測定した結果に基づいて算出され、
前記タイミングで、前記ノズルからインクが吐出された後、次のインクが吐出されるまでの時間間隔が所定の閾値よりも短くなる場合には、前記時間間隔が前記閾値以上となるように前記補正値が修正される、ことを特徴とする印刷装置。
The printing apparatus according to claim 1,
The correction value is
The test pattern was read for a test pattern in which a plurality of lines along the intersecting direction were formed in the transport direction by ejecting the ink from the nozzles to the medium transported in the transport direction. From the image data, calculated based on the result of measuring the spacing in the transport direction between the plurality of lines,
When the time interval between the time when ink is ejected from the nozzle and the time when the next ink is ejected is shorter than a predetermined threshold at the timing, the correction is performed so that the time interval becomes equal to or greater than the threshold. A printing device, characterized in that the value is modified.
請求項2に記載の印刷装置であって、
前記媒体を搬送する速度が速いほど、
前記閾値が大きくなる、ことを特徴とする印刷装置。
The printing apparatus according to claim 2,
The faster the speed of transporting the medium,
The printing apparatus, wherein the threshold value is increased.
請求項2または3に記載の印刷装置であって、
前記ラインの間の前記搬送方向の間隔を測定する際に、前記搬送ローラーが1回転した時に生じる搬送誤差によるずれ量を修正し、
修正後の前記ラインの間の前記搬送方向の間隔を測定した結果に基づいて前記補正値が算出される、ことを特徴とする印刷装置。
The printing apparatus according to claim 2 or 3,
When measuring the interval in the conveyance direction between the lines, correct the deviation due to the conveyance error that occurs when the conveyance roller makes one rotation,
The printing apparatus, wherein the correction value is calculated based on a result of measuring an interval in the transport direction between the corrected lines.
請求項1〜4のいずれかに記載の印刷装置であって、
前記搬送ローラーの周方向の先端部の位置における補正値と、前記周方向の終端部の位置における補正値との差が小さくなるように、
前記先端部の位置における補正値と前記終端部の位置における補正値の差に応じて算出される比率を用いて前記補正値が補正される、ことを特徴とする印刷装置。
The printing apparatus according to any one of claims 1 to 4,
The difference between the correction value at the front end portion in the circumferential direction of the transport roller and the correction value at the end position in the circumferential direction is reduced.
The printing apparatus, wherein the correction value is corrected using a ratio calculated in accordance with a difference between a correction value at the position of the tip portion and a correction value at the position of the end portion.
請求項5に記載の印刷装置であって、
前記周方向の先端部の位置における補正値の傾き、及び、前記周方向の終端部の位置における補正値の傾きに応じて、前記先端部の位置における補正値と前記終端部の位置における補正値の差が算出される、ことを特徴とする印刷装置。
The printing apparatus according to claim 5,
The correction value at the front end position and the correction value at the end position according to the inclination of the correction value at the front end position in the circumferential direction and the inclination of the correction value at the end position in the circumferential direction. A printing apparatus characterized in that a difference between the two is calculated.
請求項1〜6のいずれかに記載の印刷装置であって、
前記搬送ローラーが一回転する周期毎に、前記補正値が前記周方向の位置毎にそれぞれ対応付けて算出され、
前記搬送ローラーの周期毎に算出される補正値のうち、前記搬送ローラーの第1周期目以外の各周期について算出される補正値を平均した補正値を用いて、前記ノズルからインクを吐出するタイミングが補正される、ことを特徴とする印刷装置。
The printing apparatus according to any one of claims 1 to 6,
For each period in which the transport roller makes one rotation, the correction value is calculated in association with each position in the circumferential direction,
The timing at which ink is ejected from the nozzles using a correction value obtained by averaging correction values calculated for each cycle other than the first cycle of the transport roller among the correction values calculated for each cycle of the transport roller A printing apparatus, wherein: is corrected.
搬送ローラーを回転させることによって搬送方向に媒体を搬送することと、
前記搬送ローラーの周方向の位置毎にそれぞれ対応付けられた複数の補正値に応じたタイミングで、前記搬送方向と交差する交差方向に並ぶ複数のノズルからインクを吐出することと、
を有する印刷方法であって、
前記補正値は、
直前の前記タイミングと比べて前記タイミングを早める場合には、前記周方向の位置に対する前記補正値の変化量が一定になる領域を有し、
それ以外の場合には、前記周方向の位置に対する前記補正値が周期関数で表される、ことを特徴とする印刷方法。
Conveying the medium in the conveying direction by rotating the conveying roller;
Discharging ink from a plurality of nozzles arranged in an intersecting direction intersecting the transport direction at a timing corresponding to a plurality of correction values respectively associated with positions in the circumferential direction of the transport roller;
A printing method comprising:
The correction value is
When the timing is advanced compared to the immediately preceding timing, the amount of change in the correction value with respect to the circumferential position is constant,
In other cases, the correction value for the position in the circumferential direction is expressed by a periodic function.
JP2011207844A 2011-09-22 2011-09-22 Printer and printing method Withdrawn JP2013067092A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011207844A JP2013067092A (en) 2011-09-22 2011-09-22 Printer and printing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011207844A JP2013067092A (en) 2011-09-22 2011-09-22 Printer and printing method

Publications (1)

Publication Number Publication Date
JP2013067092A true JP2013067092A (en) 2013-04-18

Family

ID=48473398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011207844A Withdrawn JP2013067092A (en) 2011-09-22 2011-09-22 Printer and printing method

Country Status (1)

Country Link
JP (1) JP2013067092A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015037845A (en) * 2013-08-19 2015-02-26 株式会社Screenホールディングス Recording device, recording method and recording medium
JP2019177571A (en) * 2018-03-30 2019-10-17 理想科学工業株式会社 Inkjet printing device
CN115519897A (en) * 2021-06-24 2022-12-27 深圳市汉森软件有限公司 Intelligent correction method and device for nozzle posture based on machine vision and printing equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015037845A (en) * 2013-08-19 2015-02-26 株式会社Screenホールディングス Recording device, recording method and recording medium
JP2019177571A (en) * 2018-03-30 2019-10-17 理想科学工業株式会社 Inkjet printing device
JP7093661B2 (en) 2018-03-30 2022-06-30 理想科学工業株式会社 Inkjet printing equipment
CN115519897A (en) * 2021-06-24 2022-12-27 深圳市汉森软件有限公司 Intelligent correction method and device for nozzle posture based on machine vision and printing equipment
CN115519897B (en) * 2021-06-24 2023-11-28 深圳市汉森软件股份有限公司 Intelligent correction method and device for nozzle posture based on machine vision and printing equipment

Similar Documents

Publication Publication Date Title
JP5067017B2 (en) A system, a printer, and a method performed in the printer.
JP6065716B2 (en) Correction value acquisition method and liquid ejection apparatus manufacturing method
JP4432943B2 (en) Line position calculation method and correction value acquisition method
JP3804598B2 (en) Image forming apparatus
US8562101B2 (en) Method and system for correcting media shift during identification of printhead roll
JP6212959B2 (en) Inkjet head tilt inspection method and density unevenness suppression method
JP2009083130A (en) Liquid discharge apparatus and conveying method
JP2013067092A (en) Printer and printing method
US20080079766A1 (en) Correction value determining method, correction value determining apparatus, and storage medium having program stored thereon
JP2008114435A (en) Liquid droplet delivery apparatus, method for controlling liquid droplet delivery apparatus and program for computer
JP5928099B2 (en) Density unevenness suppression method
JP4900042B2 (en) Recording method
JP2014069324A (en) Image forming apparatus
JP2010058442A (en) Image forming system, printing method, and program
JP4967816B2 (en) Conveying method and recording apparatus
JP6151595B2 (en) Ink jet printing apparatus and step difference correction method thereof
JP5915166B2 (en) Printing apparatus and correction method
JP4151953B2 (en) Inkjet recording apparatus and sub-scan feed amount correction method
JP4862326B2 (en) Conveyance error correction confirmation method, printing method, printing system, test sheet manufacturing method, and test sheet
JP4857664B2 (en) Inspection method of conveyance error
JP2011005850A (en) Image recording apparatus, method for calculating amount of shift of recording position, and method for recording measuring pattern
JP2008260169A (en) Recording apparatus and recording controlling method
JP6690370B2 (en) Printer
JP2008120576A (en) Inclination calculating method
JP2020037209A (en) Ink jet recorder, ink jet recording method, and program

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