JP4577037B2 - Printing apparatus, medium detection method, and printing system - Google Patents

Printing apparatus, medium detection method, and printing system Download PDF

Info

Publication number
JP4577037B2
JP4577037B2 JP2005038398A JP2005038398A JP4577037B2 JP 4577037 B2 JP4577037 B2 JP 4577037B2 JP 2005038398 A JP2005038398 A JP 2005038398A JP 2005038398 A JP2005038398 A JP 2005038398A JP 4577037 B2 JP4577037 B2 JP 4577037B2
Authority
JP
Japan
Prior art keywords
printing
optical sensor
medium
unit
support
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005038398A
Other languages
Japanese (ja)
Other versions
JP2005313603A (en
Inventor
人志 五十嵐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005038398A priority Critical patent/JP4577037B2/en
Priority to US11/094,846 priority patent/US20050225626A1/en
Publication of JP2005313603A publication Critical patent/JP2005313603A/en
Priority to US12/409,046 priority patent/US20090184992A1/en
Application granted granted Critical
Publication of JP4577037B2 publication Critical patent/JP4577037B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、媒体に対して印刷を行う印刷装置、媒体検出方法、プログラムおよび印刷システムに関する。   The present invention relates to a printing apparatus that prints on a medium, a medium detection method, a program, and a printing system.

紙や布、フィルムなどの各種媒体にドットを形成して画像を印刷する印刷装置として、インクジェットプリンタが知られている。このインクジェットプリンタは、シアン(C)やマゼンダ(M)、イエロ(Y)、ブラック(K)といった各色のインクを媒体に向けて吐出して、吐出したインクにより媒体上にドットを形成して印刷を行う。   Inkjet printers are known as printing apparatuses that print dots by forming dots on various media such as paper, cloth, and film. This ink jet printer ejects ink of each color such as cyan (C), magenta (M), yellow (Y), and black (K) toward the medium, and forms dots on the medium by the ejected ink for printing. I do.

一方、最近、このようなインクジェットプリンタにあっては、「縁無し印刷」と呼ばれる印刷が行えるようになっている(特許文献1、2、3参照)。この「縁無し印刷」とは、媒体の縁部に対してインクを打ち込む印刷方法のことであり、媒体には余白が生じないないように印刷が施される。媒体の縁部に向けて吐出されたインクは、媒体から外れる場合がある。このため、このようなプリンタにあっては、媒体から外れたインクを回収するためのインク回収部が設けられている。このインク回収部には、スポンジ等の吸収部材が設けられ、回収されたインクは、吸収部材に吸収されて保持されるようになっている。
特開平8−213484号公報 特開昭61−263685号公報 特開平9−165328号公報
On the other hand, recently, such an ink jet printer can perform printing called “marginless printing” (see Patent Documents 1, 2, and 3). The “marginless printing” is a printing method in which ink is applied to the edge of the medium, and printing is performed so that no margin is generated on the medium. The ink ejected toward the edge of the medium may be detached from the medium. For this reason, such a printer is provided with an ink recovery unit for recovering ink that has been removed from the medium. The ink collecting unit is provided with an absorbing member such as a sponge, and the collected ink is absorbed and held by the absorbing member.
JP-A-8-213484 Japanese Patent Laid-Open No. 61-26385 JP-A-9-165328

しかしながら、このような印刷装置にあっては、ノズルから吐出したインクによってプリンタ内部に、インクが霧状化したミストが発生し、このミストによって、印刷される媒体を支持するプラテンが汚れるといった問題が発生していた。特に、「縁無し印刷」を行った場合には、媒体から外れたインクによってミストが発生し易く、プラテンの汚れ方も顕著であった。
プラテンが汚れてしまうと、印刷を行う際に、プラテン上の媒体をセンサ等により的確に検知することができず、これによって、媒体の幅や端部を正確に検出することができず、媒体から大きく外れた位置にインクを吐出してしまったり、サイズエラーが生じるなどの不具合が発生することがある。
本発明は、このような事情に鑑みたものであって、その目的は、ミスト等によりプラテンに汚れが発生しても、媒体の検出を的確に行えるようにすることにある。
However, in such a printing apparatus, a mist in which the ink is atomized is generated inside the printer due to the ink ejected from the nozzle, and the platen that supports the medium to be printed is stained by the mist. It has occurred. In particular, when “marginless printing” is performed, mist is likely to be generated by the ink that has been removed from the medium, and the platen stains are also noticeable.
If the platen becomes dirty, the medium on the platen cannot be accurately detected by a sensor or the like when printing is performed, so that the width and edges of the medium cannot be accurately detected. In some cases, the ink may be ejected to a position greatly deviated from the position or a size error may occur.
The present invention has been made in view of such circumstances, and an object of the present invention is to accurately detect a medium even when a platen is contaminated by mist or the like.

前記目的を達成するための主たる発明は、
媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、
所定のしきい値とを比較して、前記媒体を検出する印刷装置において、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする印刷装置である。
The main invention for achieving the object is as follows:
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
A value obtained by sampling the signal generated by the optical sensor at a predetermined period when the optical sensor is moved relative to the support portion during printing;
In a printing apparatus that detects the medium by comparing with a predetermined threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. Then, the printing apparatus is characterized in that the predetermined threshold value is changed based on the value obtained by the sampling.

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

===開示の概要===
本明細書及び添付図面の記載により、少なくとも以下の事項が明らかとなる。
=== Summary of disclosure ===
At least the following matters will become apparent from the description of the present specification and the accompanying drawings.

媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、所定のしきい値とを比較して、前記媒体を検出する印刷装置において、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期とは異なる周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする印刷装置。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
When printing, when the optical sensor moves relative to the support portion, a value obtained by sampling the signal generated by the optical sensor at a predetermined period, and a predetermined value In a printing apparatus that detects the medium by comparing with a threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period different from the predetermined period. The printing apparatus is characterized in that the predetermined threshold value is changed based on the value obtained by the sampling.

このような印刷装置にあっては、支持部の状態を調査する際に、光学センサが前記支持部に対して相対的に移動したときに、光学センサにより生成された信号をサンプリングして、このサンプリングにより得られた値に基づき、所定のしきい値を変更するから、媒体の誤検出を防止することができる。また、支持部の状態を調査する際に行うサンプリングの周期が、印刷を行う際に行うサンプリングの周期と異なることで、支持部の調査を効率的に実行することができる。   In such a printing apparatus, when investigating the state of the support portion, when the optical sensor moves relative to the support portion, the signal generated by the optical sensor is sampled. Since the predetermined threshold value is changed based on the value obtained by sampling, erroneous detection of the medium can be prevented. Further, since the sampling cycle performed when investigating the state of the support portion is different from the sampling cycle performed when printing is performed, the support portion survey can be efficiently executed.

かかる印刷装置にあっては、前記支持部の状態を調査する際に実行される前記サンプリングの周期が、前記印刷を行う際に実行される前記サンプリングの周期よりも短くても良い。このように支持部の状態を調査する際に行うサンプリングの周期が、印刷を行う際に行うサンプリングの周期よりも短いことで、支持部の調査を効率的に実施することができる。   In such a printing apparatus, the sampling cycle executed when investigating the state of the support portion may be shorter than the sampling cycle executed when the printing is performed. As described above, since the sampling cycle performed when investigating the state of the support portion is shorter than the sampling cycle performed when printing is performed, the support portion can be efficiently investigated.

また、かかる印刷装置にあっては、前記支持部の状態を調査する際に実行される前記サンプリングと、前記印刷を行う際に実行される前記サンプリングとが、同一のコントローラにより行われても良い。このように2つのサンプリングが同一のコントローラにより行われる場合に、支持部の調査を効率的に実施することができる。   In such a printing apparatus, the sampling executed when investigating the state of the support portion and the sampling executed when performing the printing may be performed by the same controller. . As described above, when the two samplings are performed by the same controller, the support portion can be efficiently investigated.

また、かかる印刷装置にあっては、前記印刷を行う際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度と、前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度とが異なっても良い。このようにそれぞれ移動速度が異なることで、支持部の調査を効率的に実施することができる。   Further, in such a printing apparatus, when the printing is performed, the optical sensor is moved relative to the support part, and the optical sensor is used to investigate the state of the support part. The moving speed when moving relative to the support portion may be different. As described above, since the moving speeds are different from each other, the support portion can be efficiently investigated.

また、かかる印刷装置にあっては、前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度が、前記印刷を行う際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度よりも速くても良い。このように支持部の状態を調査する際の光学センサの移動速度が、印刷を行う際の光学センサの移動速度よりも速いことで、支持部の調査を効率的に実施することができる。   Further, in such a printing apparatus, when the optical sensor moves relative to the support portion when investigating the state of the support portion, the optical sensor moves when the printing is performed. May be faster than the moving speed when moving relative to the support. As described above, since the movement speed of the optical sensor when investigating the state of the support section is faster than the movement speed of the optical sensor when printing, the investigation of the support section can be performed efficiently.

また、かかる印刷装置にあっては、前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記支持部の全体にわたっていても良い。このように光学センサの移動範囲が支持部全体にわたっていることで、より適切な調査を実施することができる。   In the printing apparatus, the range in which the optical sensor moves relative to the support portion when changing the predetermined threshold may extend over the entire support portion. As described above, since the movement range of the optical sensor extends over the entire support portion, a more appropriate investigation can be performed.

また、かかる印刷装置にあっては、前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記媒体を検出する際に前記光学センサが前記支持部に対して相対的に移動する範囲と等しくても良い。このように光学センサの移動範囲が等しければ、より適切な調査を実施することができる。   Further, in such a printing apparatus, the range in which the optical sensor moves relative to the support portion when the predetermined threshold value is changed is such that the optical sensor detects the medium. It may be equal to the range of movement relative to the support part. Thus, if the movement range of the optical sensor is equal, a more appropriate investigation can be performed.

また、かかる印刷装置にあっては、前記光学センサから出力された前記信号から最小値または最大値を取得し、その最小値または最大値に基づき、前記所定のしきい値を変更しても良い。このように最小値または最大値を取得すれば、所定のしきい値をより適な値に変更することができる。   In such a printing apparatus, the minimum value or the maximum value may be acquired from the signal output from the optical sensor, and the predetermined threshold value may be changed based on the minimum value or the maximum value. . If the minimum value or the maximum value is acquired in this way, the predetermined threshold value can be changed to a more appropriate value.

また、かかる印刷装置にあっては、前記最小値または前記最大値が所定の基準値に到達しないときには、前記所定のしきい値の変更は行わなくても良い。このように最小値または最大値が所定の基準値に到達しないときには、所定のしきい値の変更を行わないことで、しきい値の変更を適切に行うことができる。   In such a printing apparatus, when the minimum value or the maximum value does not reach a predetermined reference value, the predetermined threshold value need not be changed. As described above, when the minimum value or the maximum value does not reach the predetermined reference value, the threshold value can be appropriately changed by not changing the predetermined threshold value.

また、かかる印刷装置にあっては、前記印刷部により前記媒体に対して印刷が行われていないときに前記支持部の状態が調査されても良い。このようなタイミングで調査を行えば、調査をスムーズに実施することができる。   Further, in such a printing apparatus, the state of the support unit may be investigated when the printing unit is not printing on the medium. If the survey is conducted at such timing, the survey can be carried out smoothly.

また、かかる印刷装置にあっては、前記印刷装置の電源がオンされた際に前記支持部の状態が調査されても良い。このようなタイミングで調査を行えば、調査をスムーズに実施することができる。   In such a printing apparatus, the state of the support portion may be investigated when the power of the printing apparatus is turned on. If the survey is conducted at such timing, the survey can be carried out smoothly.

また、かかる印刷装置にあっては、前記インク吐出部から媒体の縁に向けてインクを吐出して印刷をする縁無し印刷の実行履歴が記憶されたメモリを備え、前記縁無し印刷を実行するときに、前記メモリに記憶された前記実行履歴をチェックして前記縁無し印刷が実行されたことがなかった場合には、前記発光部から前記支持部材に向けて光を発して、前記支持部材によって反射された光を前記受光部により受けた際に前記光学センサから出力された前記信号に基づき、前記所定のしきい値を変更しても良い。このように縁無し印刷の実行がされたことがなかった場合に、所定のしきい値の変更を行えば、より適切な所定のしきい値を取得することができる。   In addition, such a printing apparatus includes a memory in which an execution history of borderless printing in which ink is ejected from the ink ejection unit toward the edge of the medium is stored, and the borderless printing is performed. When the execution history stored in the memory is checked and the marginless printing has never been executed, the support member emits light from the light emitting unit toward the support member. The predetermined threshold value may be changed based on the signal output from the optical sensor when the light reflected by the light receiving unit is received by the light receiving unit. If the borderless printing has not been executed in this way, the predetermined threshold value can be obtained by changing the predetermined threshold value.

また、かかる印刷装置にあっては、前記印刷部が、前記媒体に向けてインクを吐出して印刷を行っても良い。このようにインクを吐出して印刷を行うような印刷装置において、好適に適用することができる。   In the printing apparatus, the printing unit may perform printing by ejecting ink toward the medium. Thus, the present invention can be suitably applied to a printing apparatus that performs printing by discharging ink.

媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、所定のしきい値とを比較して、前記媒体を検出する印刷装置において、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更し、
前記支持部の状態を調査する際に実行される前記サンプリングと、前記印刷を行う際に実行される前記サンプリングとが、同一のコントローラにより行われ、
前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度が、前記印刷を行う際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度よりも速く、
前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記支持部の全体にわたり、
前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記媒体を検出する際に前記光学センサが前記支持部に対して相対的に移動する範囲と等しく、
前記光学センサから出力された前記信号から最小値または最大値を取得し、その最小値または最大値に基づき、前記所定のしきい値を変更し、
前記最小値または前記最大値が所定の基準値に到達しないときには、前記所定のしきい値の変更は行わず、
前記印刷部により前記媒体に対して印刷が行われていないときと、前記印刷装置の電源がオンされた際に、前記支持部の状態が調査され、
前記インク吐出部から媒体の縁に向けてインクを吐出して印刷をする縁無し印刷の実行履歴が記憶されたメモリを備え、
前記縁無し印刷を実行するときに、前記メモリに記憶された前記実行履歴をチェックして前記縁無し印刷が実行されたことがなかった場合には、前記発光部から前記支持部材に向けて光を発して、前記支持部材によって反射された光を前記受光部により受けた際に前記光学センサから出力された前記信号に基づき、前記所定のしきい値を変更し、
前記印刷部が、前記媒体に向けてインクを吐出して印刷を行うことを特徴とする印刷装置。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
When printing, when the optical sensor moves relative to the support portion, a value obtained by sampling the signal generated by the optical sensor at a predetermined period, and a predetermined value In a printing apparatus that detects the medium by comparing with a threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. Then, based on the value obtained by this sampling, the predetermined threshold value is changed,
The sampling executed when investigating the state of the support part and the sampling executed when performing the printing are performed by the same controller,
The movement speed when the optical sensor moves relative to the support portion when investigating the state of the support portion is such that the optical sensor is relative to the support portion when performing the printing. Faster than moving speed when moving,
The range in which the optical sensor moves relative to the support when changing the predetermined threshold is over the entire support.
The range in which the optical sensor moves relative to the support portion when changing the predetermined threshold is such that the optical sensor moves relative to the support portion when detecting the medium. Equal to the range to
Obtaining a minimum or maximum value from the signal output from the optical sensor, and changing the predetermined threshold based on the minimum or maximum value;
When the minimum value or the maximum value does not reach a predetermined reference value, the predetermined threshold value is not changed,
When the printing unit is not printing on the medium and when the printing apparatus is turned on, the state of the support unit is investigated,
A memory in which an execution history of borderless printing in which ink is ejected from the ink ejection unit toward the edge of the medium for printing is stored;
When the borderless printing is performed, if the execution history stored in the memory is checked and the borderless printing has not been performed, light is emitted from the light emitting unit toward the support member. Based on the signal output from the optical sensor when the light receiving unit receives the light reflected by the support member, the predetermined threshold is changed,
The printing apparatus, wherein the printing unit performs printing by ejecting ink toward the medium.

媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備えた印刷装置において、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、所定のしきい値とを比較して、前記媒体を検出する媒体検出方法であって、
前記支持部の状態を調査するために、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期とは異なる周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする媒体検出方法。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. A printing apparatus including an optical sensor that generates a signal according to
When printing, when the optical sensor moves relative to the support portion, a value obtained by sampling the signal generated by the optical sensor at a predetermined period, and a predetermined value A medium detection method for detecting the medium by comparing with a threshold,
In order to investigate the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period different from the predetermined period. Then, the predetermined threshold value is changed based on the value obtained by the sampling.

媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、所定のしきい値とを比較して、前記媒体を検出する印刷装置において実行されるプログラムであって、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期とは異なる周期でサンプリングをするステップと、
前記サンプリングにより得られた値に基づき、前記所定のしきい値を変更するステップとを実行することを特徴とするプログラム。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
When printing, when the optical sensor moves relative to the support portion, a value obtained by sampling the signal generated by the optical sensor at a predetermined period, and a predetermined value A program that is executed in a printing apparatus that detects the medium by comparing with a threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period different from the predetermined period. And steps to
And a step of changing the predetermined threshold based on the value obtained by the sampling.

コンピュータ本体と、このコンピュータ本体に接続可能な印刷装置とを具備した印刷システムにおいて、
前記印刷装置は、媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、所定のしきい値とを比較して、前記媒体を検出する印刷装置であって、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期とは異なる周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする印刷システム。
In a printing system comprising a computer main body and a printing device connectable to the computer main body,
The printing apparatus includes a printing unit that performs printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
When printing, when the optical sensor moves relative to the support portion, a value obtained by sampling the signal generated by the optical sensor at a predetermined period, and a predetermined value A printing device that detects the medium by comparing with a threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period different from the predetermined period. The printing system is characterized in that the predetermined threshold value is changed based on the value obtained by the sampling.

===印刷装置の概要===
本発明に係る印刷装置の実施の形態について、インクジェットプリンタを例にとり説明する。
=== Overview of Printing Apparatus ===
An embodiment of a printing apparatus according to the present invention will be described by taking an inkjet printer as an example.

図1〜図4は、そのインクジェットプリンタ1を示したものである。図1は、そのインクジェットプリンタ1の外観を示す。図2は、そのインクジェットプリンタ1の内部構成を示す。図3は、そのインクジェットプリンタ1の搬送部を示す。図4は、そのインクジェットプリンタ1のシステム構成を示すブロック構成図である。   1 to 4 show the ink jet printer 1. FIG. 1 shows the appearance of the inkjet printer 1. FIG. 2 shows the internal configuration of the inkjet printer 1. FIG. 3 shows the transport section of the inkjet printer 1. FIG. 4 is a block diagram showing the system configuration of the inkjet printer 1.

このインクジェットプリンタ1は、図1に示すように、背面から供給された印刷用紙等の媒体を前面から排出する構造を備えており、その前面部には操作パネル2および排紙部3が設けられ、その背面部には給紙部4が設けられている。操作パネル2には、各種操作ボタン5および表示ランプ6が設けられている。また、排紙部3には、不使用時に排紙口を塞ぐ排紙トレー7が設けられている。給紙部4には、カット紙(図示しない)を保持する給紙トレー8が設けられている。なお、インクジェットプリンタ1は、カット紙など単票状の印刷紙のみならず、ロール紙などの連続した媒体にも印刷できるような給紙構造を備えていても良い。   As shown in FIG. 1, the inkjet printer 1 has a structure for discharging a medium such as printing paper supplied from the back side from the front side, and an operation panel 2 and a paper discharge unit 3 are provided on the front side. The paper feeding unit 4 is provided on the back side. Various operation buttons 5 and display lamps 6 are provided on the operation panel 2. Further, the paper discharge unit 3 is provided with a paper discharge tray 7 that closes the paper discharge port when not in use. The paper feed unit 4 is provided with a paper feed tray 8 that holds cut paper (not shown). Note that the inkjet printer 1 may include a paper feed structure that can print not only on single-sheet-like printing paper such as cut paper but also on continuous media such as roll paper.

このインクジェットプリンタ1の内部には、図2に示すように、キャリッジ41が設けられている。このキャリッジ41は、所定の方向(図中横方向)に沿って相対的に移動可能に設けられたものである。キャリッジ41の周辺には、キャリッジモータ(以下、CRモータともいう)42と、プーリ44と、タイミングベルト45と、ガイドレール46と、が設けられている。キャリッジモータ42は、DCモータなどにより構成され、キャリッジ41を前記所定の方向に沿って相対的に移動させるための駆動源として機能する。また、タイミングベルト45は、プーリ44を介してキャリッジモータ42に接続されるとともに、その一部がキャリッジ41に接続され、キャリッジモータ42の回転駆動によってキャリッジ41を前記所定の方向に沿って相対的に移動させる。ガイドレール46は、キャリッジ41を前記所定の方向に沿って案内する。   Inside the ink jet printer 1, a carriage 41 is provided as shown in FIG. The carriage 41 is provided so as to be relatively movable along a predetermined direction (lateral direction in the figure). Around the carriage 41, a carriage motor (hereinafter also referred to as a CR motor) 42, a pulley 44, a timing belt 45, and a guide rail 46 are provided. The carriage motor 42 is constituted by a DC motor or the like, and functions as a drive source for relatively moving the carriage 41 along the predetermined direction. The timing belt 45 is connected to the carriage motor 42 via the pulley 44, and a part of the timing belt 45 is connected to the carriage 41. The carriage 41 is relatively driven along the predetermined direction by the rotation of the carriage motor 42. Move to. The guide rail 46 guides the carriage 41 along the predetermined direction.

この他に、キャリッジ41の周辺には、キャリッジ41の位置を検出するリニア式エンコーダ51と、媒体Sをキャリッジ41の移動方向と交差する方向に沿って搬送するための搬送ローラ17Aと、この搬送ローラ17Aを回転駆動させる紙搬送モータ15とが設けられている。   In addition, around the carriage 41, a linear encoder 51 that detects the position of the carriage 41, a conveyance roller 17 </ b> A for conveying the medium S along a direction that intersects the moving direction of the carriage 41, and this conveyance A paper conveyance motor 15 that rotates the roller 17A is provided.

一方、キャリッジ41には、各種インクを収容したインクカートリッジ48と、媒体Sに対して印刷を行うヘッド21とが設けられている。インクカートリッジ48は、例えば、イエロ(Y)やマゼンダ(M)、シアン(C)、ブラック(K)などの各色のインクを収容しており、キャリッジ41に設けられたカートリッジ装着部に着脱可能に装着されている。また、ヘッド21は、本実施形態では、媒体Sに対してインクを吐出して印刷を施す。このためにヘッド21には、インクを吐出するための多数のノズルが設けられている。このヘッド21のインクの吐出機構については、後で詳しく説明する。   On the other hand, the carriage 41 is provided with an ink cartridge 48 that stores various inks, and a head 21 that performs printing on the medium S. The ink cartridge 48 contains, for example, each color ink such as yellow (Y), magenta (M), cyan (C), black (K), and is detachable from a cartridge mounting portion provided on the carriage 41. It is installed. In the present embodiment, the head 21 performs printing by ejecting ink onto the medium S. For this purpose, the head 21 is provided with a number of nozzles for ejecting ink. The ink ejection mechanism of the head 21 will be described in detail later.

この他に、このインクジェットプリンタ1の内部には、ヘッド21のノズルの目詰まりを解消するためのクリーニングユニット30が設けられている。このクリーニングユニット30は、ポンプ装置31と、キャッピング装置35とを有する。ポンプ装置31は、ヘッド21のノズルの目詰まりを解消するために、ノズルからインクを吸い出す装置であり、ポンプモータ(図示外)により作動する。一方、キャッピング装置35は、ヘッド21のノズルの目詰まりを防止するため、印刷を行わないとき(待機時など)に、ヘッド21のノズルを封止する。   In addition, a cleaning unit 30 for eliminating clogging of the nozzles of the head 21 is provided inside the ink jet printer 1. The cleaning unit 30 includes a pump device 31 and a capping device 35. The pump device 31 is a device that sucks out ink from the nozzles in order to eliminate clogging of the nozzles of the head 21, and is operated by a pump motor (not shown). On the other hand, the capping device 35 seals the nozzles of the head 21 when printing is not performed (for example, during standby) in order to prevent clogging of the nozzles of the head 21.

次にこのインクジェットプリンタ1の搬送部の構成について説明する。この搬送部は、図3に示すように、紙挿入口11A及びロール紙挿入口11Bと、給紙モータ(不図示)と、給紙ローラ13と、プラテン14と、紙搬送モータ(以下、PFモータともいう)15と、搬送ローラ17Aと排紙ローラ17Bと、フリーローラ18Aとフリーローラ18Bとを有する。プラテン14は、本実施形態では、本発明の支持部に相当する。   Next, the configuration of the transport unit of the inkjet printer 1 will be described. As shown in FIG. 3, the transport unit includes a paper insertion port 11A and a roll paper insertion port 11B, a paper feed motor (not shown), a paper feed roller 13, a platen 14, and a paper transport motor (hereinafter referred to as PF). (Also referred to as a motor) 15, a transport roller 17A, a paper discharge roller 17B, a free roller 18A, and a free roller 18B. In the present embodiment, the platen 14 corresponds to the support portion of the present invention.

紙挿入口11Aは、媒体である媒体Sを挿入するところである。給紙モータ(図示外)は、紙挿入口11Aに挿入された媒体Sをインクジェットプリンタ1内に搬送するモータであり、パルスモータ等で構成される。給紙ローラ13は、紙挿入口11Aに挿入された媒体Sを図中矢印A方向(ロール紙の場合は矢印B方向)にインクジェットプリンタ1の内部に自動的に搬送するローラであり、給紙モータによって駆動される。給紙ローラ13は、略D形の横断面形状を有している。給紙ローラ13の円周部分の周囲長さは、搬送ローラ17Aまでの搬送距離よりも長く設定されているので、この円周部分を用いて媒体Sを搬送ローラ17Aまで搬送することができる。なお、給紙ローラ13の回転駆動力と分離パッド(図示外)の摩擦抵抗とによって、複数の媒体Sが一度に給紙されることを防いでいる。   The paper insertion slot 11A is where the medium S, which is a medium, is inserted. The paper feed motor (not shown) is a motor that transports the medium S inserted into the paper insertion slot 11A into the ink jet printer 1, and is configured by a pulse motor or the like. The paper feed roller 13 is a roller that automatically conveys the medium S inserted into the paper insertion slot 11A into the ink jet printer 1 in the direction of arrow A in the figure (the direction of arrow B in the case of roll paper). It is driven by a motor. The paper feed roller 13 has a substantially D-shaped cross section. Since the circumferential length of the circumferential portion of the paper feed roller 13 is set longer than the conveyance distance to the conveyance roller 17A, the medium S can be conveyed to the conveyance roller 17A using this circumferential portion. The rotational driving force of the paper feed roller 13 and the frictional resistance of the separation pad (not shown) prevent a plurality of media S from being fed at a time.

プラテン14は、印刷中の媒体Sを支持する支持手段である。紙搬送モータ15は、媒体Sである例えば紙を紙搬送方向に送り出すモータであり、DCモータで構成される。搬送ローラ17Aは、給紙ローラ13によってインクジェットプリンタ1内に搬送された媒体Sを印刷可能な領域まで送り出すローラであり、紙搬送モータ15によって駆動される。フリーローラ18Aは、搬送ローラ17Aと対向する位置に設けられ、媒体Sを搬送ローラ17Aとの間に挟むことによって媒体Sを搬送ローラ17Aに向かって押さえる。   The platen 14 is a support unit that supports the medium S during printing. The paper transport motor 15 is a motor that feeds, for example, paper as the medium S in the paper transport direction, and is configured by a DC motor. The transport roller 17 </ b> A is a roller that feeds the medium S transported into the inkjet printer 1 by the paper feed roller 13 to a printable region, and is driven by the paper transport motor 15. The free roller 18A is provided at a position facing the transport roller 17A, and presses the medium S toward the transport roller 17A by sandwiching the medium S with the transport roller 17A.

排紙ローラ17Bは、印刷が終了した媒体Sをインクジェットプリンタ1の外部に排出するローラである。排紙ローラ17Bは、不図示の歯車により、紙搬送モータ15によって駆動される。フリーローラ18Bは、排紙ローラ17Bと対向する位置に設けられ、媒体Sを排紙ローラ17Bとの間に挟むことによって媒体Sを排紙ローラ17Bに向かって押さえる。   The paper discharge roller 17B is a roller that discharges the medium S on which printing has been completed to the outside of the inkjet printer 1. The paper discharge roller 17B is driven by the paper transport motor 15 by a gear (not shown). The free roller 18B is provided at a position facing the paper discharge roller 17B, and presses the medium S toward the paper discharge roller 17B by sandwiching the medium S between the paper discharge roller 17B.

<システム構成>
次にこのインクジェットプリンタ1のシステム構成について説明する。このインクジェットプリンタ1は、図4に示すように、バッファメモリ122と、イメージバッファ124と、システムコントローラ126と、メインメモリ127と、EEPROM129とを備えている。バッファメモリ122は、ホストコンピュータ140から送信された印刷データ等の各種データを受信して一時的に記憶する。また、イメージバッファ124は、受信した印刷データをバッファメモリ122より取得して格納する。また、メインメモリ127は、ROMやRAMをはじめ、フラッシュメモリなどにより構成される。なお、システムコントローラ126は、本発明のコントローラに相当する。
<System configuration>
Next, the system configuration of the inkjet printer 1 will be described. As shown in FIG. 4, the inkjet printer 1 includes a buffer memory 122, an image buffer 124, a system controller 126, a main memory 127, and an EEPROM 129. The buffer memory 122 receives and temporarily stores various data such as print data transmitted from the host computer 140. The image buffer 124 acquires the received print data from the buffer memory 122 and stores it. The main memory 127 includes a ROM, a RAM, a flash memory, and the like. The system controller 126 corresponds to the controller of the present invention.

一方、システムコントローラ126は、メインメモリ127から制御用プログラムを読み出して、当該制御用プログラムに従ってインクジェットプリンタ1全体の制御を行う。本実施形態のシステムコントローラ126は、キャリッジモータ制御部128と、搬送制御部130と、ヘッド駆動部132と、ロータリ式エンコーダ134と、リニア式エンコーダ51とを備えている。キャリッジモータ制御部128は、キャリッジモータ42の回転方向や回転数、トルクなどを駆動制御する。また、ヘッド駆動部132は、ヘッド21の駆動制御を行う。搬送制御部130は、搬送ローラ17Aを回転駆動する紙搬送モータ15など、搬送系に配置された各種駆動モータを制御する。   On the other hand, the system controller 126 reads a control program from the main memory 127 and controls the entire inkjet printer 1 according to the control program. The system controller 126 of this embodiment includes a carriage motor control unit 128, a conveyance control unit 130, a head drive unit 132, a rotary encoder 134, and a linear encoder 51. The carriage motor control unit 128 drives and controls the rotation direction, rotation speed, torque, and the like of the carriage motor 42. Further, the head drive unit 132 performs drive control of the head 21. The conveyance control unit 130 controls various drive motors arranged in the conveyance system such as the paper conveyance motor 15 that rotationally drives the conveyance roller 17A.

ホストコンピュータ140から送られてきた印刷データは、一旦、バッファメモリ122に蓄えられる。ここで蓄えられた印刷データは、その中から必要な情報がシステムコントローラ126により読み出される。システムコントローラ126は、その読み出した情報に基づき、リニア式エンコーダ51やロータリ式エンコーダ134からの出力を参照しながら、制御用プログラムに従って、キャリッジモータ制御部128や搬送制御部130、ヘッド駆動部132を各々制御する。   The print data sent from the host computer 140 is temporarily stored in the buffer memory 122. Necessary information is read from the print data stored here by the system controller 126. Based on the read information, the system controller 126 refers to the output from the linear encoder 51 and the rotary encoder 134 and controls the carriage motor control unit 128, the conveyance control unit 130, and the head drive unit 132 according to the control program. Control each one.

イメージバッファ124には、バッファメモリ122に受信された複数の色成分の印刷データが格納される。ヘッド駆動部132は、システムコントローラ126からの制御信号に従って、イメージバッファ124から各色成分の印刷データを取得し、この印刷データに基づきヘッド21に設けられた各色のノズルを駆動制御する。   The image buffer 124 stores print data of a plurality of color components received by the buffer memory 122. The head drive unit 132 acquires print data of each color component from the image buffer 124 according to a control signal from the system controller 126, and drives and controls the nozzles of each color provided in the head 21 based on this print data.

なお、本実施形態に係るインクジェットプリンタ1にあっては、これらの他に、反射型光学センサ502と、反射型光学センサ制御部508とを備えている。これら反射型光学センサ502および反射型光学センサ制御部508については、後で詳しく説明する。   In addition to the above, the inkjet printer 1 according to the present embodiment includes a reflective optical sensor 502 and a reflective optical sensor control unit 508. The reflective optical sensor 502 and the reflective optical sensor control unit 508 will be described in detail later.

<ヘッド>
図5は、ヘッド21の下面部に設けられたインクのノズルの配列を示した図である。ヘッド21の下面部には、同図に示すように、イエロ(Y)、マゼンタ(M)、シアン(C)、ブラック(K)の各色ごとにそれぞれ複数のノズル♯1〜♯180からなるノズル列211が設けられている。なお、これらイエロ(Y)、マゼンタ(M)、シアン(C)及びブラック(K)の各色のノズル列211の各ノズル♯1〜♯180は、本発明の印刷部に相当する。
<Head>
FIG. 5 is a diagram showing the arrangement of the ink nozzles provided on the lower surface of the head 21. On the lower surface of the head 21, as shown in the figure, nozzles comprising a plurality of nozzles # 1 to # 180 for each color of yellow (Y), magenta (M), cyan (C), and black (K). A column 211 is provided. The nozzles # 1 to # 180 of the nozzle row 211 of each color of yellow (Y), magenta (M), cyan (C), and black (K) correspond to the printing unit of the present invention.

各ノズル列211の各ノズル♯1〜♯180は、媒体Sの搬送方向に沿って直線状に配列されている。各ノズル列211は、ヘッド21の移動方向(走査方向)に沿って相互に間隔をあけて平行に配置されている。各ノズル♯1〜♯180には、インク滴を吐出するための駆動素子としてピエゾ素子(図示外)が設けられている。   The nozzles # 1 to # 180 of each nozzle row 211 are arranged in a straight line along the transport direction of the medium S. Each nozzle row 211 is arranged in parallel with a space between each other along the moving direction (scanning direction) of the head 21. Each nozzle # 1 to # 180 is provided with a piezo element (not shown) as a drive element for ejecting ink droplets.

ピエゾ素子は、その両端に設けられた電極間に所定時間幅の電圧を印加すると、電圧の印加時間に応じて伸張し、インクの流路の側壁を変形させる。これによって、インクの流路の体積がピエゾ素子の伸縮に応じて収縮し、この収縮分に相当するインクが、インク滴となって各色の各ノズル♯1〜♯180から吐出される。   When a voltage having a predetermined time width is applied between the electrodes provided at both ends of the piezoelectric element, the piezoelectric element expands according to the voltage application time and deforms the side wall of the ink flow path. As a result, the volume of the ink flow path contracts according to the expansion and contraction of the piezo element, and the ink corresponding to the contraction is ejected from the nozzles # 1 to # 180 of each color as ink droplets.

===リニア式エンコーダ===
次にリニア式エンコーダ51について詳しく説明する。図6は、キャリッジ41に設けられたリニア式エンコーダ51の構成を模式的に示したものである。
=== Linear encoder ===
Next, the linear encoder 51 will be described in detail. FIG. 6 schematically shows the configuration of the linear encoder 51 provided on the carriage 41.

このリニア式エンコーダ51は、発光ダイオード452と、コリメータレンズ454と、検出処理部456とを備えている。検出処理部456は、複数(例えば4個)のフォトダイオード458と、信号処理回路460と、例えば2個のコンパレータ462A、462Bとを有している。   The linear encoder 51 includes a light emitting diode 452, a collimator lens 454, and a detection processing unit 456. The detection processing unit 456 includes a plurality of (for example, four) photodiodes 458, a signal processing circuit 460, and, for example, two comparators 462A and 462B.

発光ダイオード452の両端に抵抗を介して電圧Vccが印加されると、発光ダイオード452から光が発せられる。この光はコリメータレンズ454により平行光に集光されてリニア式エンコーダ符号板464を通過する。リニア式エンコーダ符号板464には、所定の間隔(例えば1/180インチ(1インチ=2.54cm))毎にスリットが設けられている。   When the voltage Vcc is applied to both ends of the light emitting diode 452 via a resistor, light is emitted from the light emitting diode 452. This light is condensed into parallel light by the collimator lens 454 and passes through the linear encoder code plate 464. The linear encoder code plate 464 is provided with slits at predetermined intervals (for example, 1/180 inch (1 inch = 2.54 cm)).

リニア式エンコーダ符号板464を通過した平行光は、図示しない固定スリットを通って各フォトダイオード458に入射し、電気信号に変換される。4個のフォトダイオード458から出力される電気信号は信号処理回路460において信号処理され、信号処理回路460から出力される信号はコンパレータ462A、462Bにおいて比較され、比較結果がパルスとして出力される。コンパレータ462A、462Bから出力されるパルスENC−A、ENC−Bがリニア式エンコーダ51の出力となる。   The parallel light that has passed through the linear encoder code plate 464 enters each photodiode 458 through a fixed slit (not shown) and is converted into an electrical signal. The electric signals output from the four photodiodes 458 are subjected to signal processing in the signal processing circuit 460, the signals output from the signal processing circuit 460 are compared in the comparators 462A and 462B, and the comparison result is output as a pulse. Pulses ENC-A and ENC-B output from the comparators 462A and 462B are output from the linear encoder 51.

図7A及び図7Bは、キャリッジモータ42の正転時及び逆転時におけるリニア式エンコーダ51の2つの出力信号の波形を示したタイミングチャートである。図7A及び図7Bに示すように、キャリッジモータ42の正転時及び逆転時のいずれの場合も、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。キャリッジモータ42が正転しているとき、即ち、キャリッジ41がガイドレール46に沿って移動しているときは、図7Aに示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が進み、キャリッジモータ42が逆転しているときは、図7Bに示すように、パルスENC−AはパルスENC−Bよりも90度だけ位相が遅れる。そして、パルスENC−A及びパルスENC−Bの1周期Tは、キャリッジ41がリニア式エンコーダ符号板464のスリット間隔を移動する時間に等しい。   7A and 7B are timing charts showing waveforms of two output signals of the linear encoder 51 when the carriage motor 42 is rotating forward and when it is rotating backward. As shown in FIGS. 7A and 7B, the phase of the pulse ENC-A and the pulse ENC-B differ by 90 degrees in both cases of the forward rotation and the reverse rotation of the carriage motor 42. When the carriage motor 42 is rotating forward, that is, when the carriage 41 is moving along the guide rail 46, the pulse ENC-A is 90 degrees more than the pulse ENC-B, as shown in FIG. 7A. When the phase advances and the carriage motor 42 reverses, the phase of the pulse ENC-A is delayed by 90 degrees from the pulse ENC-B, as shown in FIG. 7B. One cycle T of the pulse ENC-A and the pulse ENC-B is equal to the time during which the carriage 41 moves through the slit interval of the linear encoder code plate 464.

そして、リニア式エンコーダ51の出力パルスENC−A、ENC−Bの各々の立ち上がりエッジ、立ち上がりエッジが検出され、検出されたエッジの個数が計数され、この計数値に基づいてキャリッジモータ42の回転位置が演算される。この計数はキャリッジモータ42が正転しているときは1個のエッジが検出されると「+1」を加算し、逆転しているときは、1個のエッジが検出されると「−1」を加算する。パルスENC−A及びENC−Bの各々の周期は、リニア式エンコーダ符号板464の、あるスリットがリニア式エンコーダ51を通過してから次のスリットがリニア式エンコーダ51を通過するまでの時間に等しく、かつ、パルスENC−AとパルスENC−Bとは位相が90度だけ異なっている。このため、上記計数のカウント値「1」はリニア式エンコーダ符号板464のスリット間隔の1/4に対応する。これにより上記計数値にスリット間隔の1/4を乗算すれば、その乗算値に基づいて、計数値が「0」に対応する回転位置からのキャリッジモータ42の移動量を求めることができる。このときリニア式エンコーダ51の解像度はリニア式エンコーダ符号板464のスリットの間隔の1/4となる。   Then, the rising edge and rising edge of each of the output pulses ENC-A and ENC-B of the linear encoder 51 are detected, the number of detected edges is counted, and the rotational position of the carriage motor 42 is based on the counted value. Is calculated. This count is incremented by "+1" when one edge is detected when the carriage motor 42 is rotating forward, and is "-1" when one edge is detected when rotating reversely. Is added. The period of each of the pulses ENC-A and ENC-B is equal to the time from when one slit passes through the linear encoder 51 until the next slit passes through the linear encoder 51 of the linear encoder code plate 464. In addition, the pulse ENC-A and the pulse ENC-B are different in phase by 90 degrees. For this reason, the count value “1” of the count corresponds to ¼ of the slit interval of the linear encoder code plate 464. Thus, if the count value is multiplied by ¼ of the slit interval, the amount of movement of the carriage motor 42 from the rotational position corresponding to the count value “0” can be obtained based on the multiplication value. At this time, the resolution of the linear encoder 51 is ¼ of the slit interval of the linear encoder code plate 464.

===印刷動作===
次に前述したインクジェットプリンタ1の印刷動作について説明する。ここでは、「双方向印刷」を例にして説明する。図8は、インクジェットプリンタ1の印刷動作の処理手順の一例を示したフローチャートである。以下で説明される各処理は、システムコントローラ126が、メインメモリ127又はEEPROM129に格納されたプログラムを読み出して、当該プログラムに従って、各ユニットを制御することにより実行される。
=== Printing operation ===
Next, the printing operation of the above-described ink jet printer 1 will be described. Here, “bidirectional printing” will be described as an example. FIG. 8 is a flowchart showing an example of the processing procedure of the printing operation of the inkjet printer 1. Each process described below is executed by the system controller 126 reading a program stored in the main memory 127 or the EEPROM 129 and controlling each unit according to the program.

システムコントローラ126は、ホストコンピュータ140から印刷データを受信すると、その印刷データに基づき印刷を実行すべく、まず、給紙処理を行う(S102)。給紙処理は、印刷しようとする媒体Sをインクジェットプリンタ1内に供給し、印刷開始位置(頭出し位置とも言う)まで搬送する処理である。システムコントローラ126は、給紙ローラ13を回転させて、印刷しようとする媒体Sを搬送ローラ17Aまで送る。システムコントローラ126は、搬送ローラ17Aを回転させて、給紙ローラ13から送られてきた媒体Sを印刷開始位置に位置決めする。   Upon receiving print data from the host computer 140, the system controller 126 first performs a paper feed process to execute printing based on the print data (S102). The paper feed process is a process of supplying the medium S to be printed into the ink jet printer 1 and transporting it to a print start position (also referred to as a cue position). The system controller 126 rotates the paper feed roller 13 to send the medium S to be printed to the transport roller 17A. The system controller 126 rotates the transport roller 17A to position the medium S sent from the paper feed roller 13 at the print start position.

次に、システムコントローラ126は、キャリッジ41を媒体Sに対して相対的に移動させて媒体Sに対して印刷を施す印刷処理を実行する。ここでは、まず、キャリッジ41をガイドレール46に沿って一の方向に向かって移動させながら、ヘッド21からインクを吐出する往路印刷を実行する(S104)。システムコントローラ126は、キャリッジモータ42を駆動してキャリッジ41を移動させるとともに、印刷データに基づきヘッド21を駆動してインクを吐出する。ヘッド21から吐出されたインクは、媒体Sに到達してドットとして形成される。   Next, the system controller 126 executes a printing process for printing the medium S by moving the carriage 41 relative to the medium S. Here, first, forward printing is performed to eject ink from the head 21 while moving the carriage 41 in one direction along the guide rail 46 (S104). The system controller 126 drives the carriage motor 42 to move the carriage 41 and drives the head 21 based on the print data to eject ink. The ink ejected from the head 21 reaches the medium S and is formed as dots.

このようにして印刷を行った後、次に、媒体Sを所定量だけ搬送する搬送処理を実行する(S106)。この搬送処理では、システムコントローラ126は、紙搬送モータ15を駆動して搬送ローラ17Aを回転させて、媒体Sをヘッド21に対して相対的に搬送方向に所定量だけ搬送する。この搬送処理により、ヘッド21は、先ほどの印刷した領域とは異なる領域に印刷をすることが可能になる。   After printing is performed in this way, next, a carrying process for carrying the medium S by a predetermined amount is executed (S106). In this transport process, the system controller 126 drives the paper transport motor 15 to rotate the transport roller 17A and transports the medium S by a predetermined amount relative to the head 21 in the transport direction. By this carrying process, the head 21 can print in an area different from the previously printed area.

このようにして搬送処理を行った後、排紙すべきか否か排紙判断を実行する(S108)。ここで、印刷中の媒体Sに印刷すべき他のデータがなければ、排紙処理を実行する(S116)。一方、印刷中の媒体Sに印刷すべき他のデータがあれば、排紙処理は行わずに、復路印刷を実行する(S110)。この復路印刷は、キャリッジ41をガイドレール46に沿って先ほどの往路印刷とは反対の方向に移動させて印刷を行う。ここでも、システムコントローラ126は、キャリッジモータ42を先ほどとは逆に回転駆動させてキャリッジ41を移動させるとともに、印刷データに基づきヘッド21を駆動してインクを吐出し、印刷を施す。   After carrying out the carrying process in this way, it is determined whether or not to discharge paper (S108). If there is no other data to be printed on the medium S being printed, a paper discharge process is executed (S116). On the other hand, if there is other data to be printed on the medium S being printed, the return pass printing is executed without performing the paper discharge process (S110). In this backward printing, printing is performed by moving the carriage 41 along the guide rail 46 in the direction opposite to the previous forward printing. Again, the system controller 126 drives the carriage motor 42 to rotate in the opposite direction to move the carriage 41 and drives the head 21 based on the print data to eject ink and perform printing.

復路印刷を実行した後、搬送処理を実行し(S112)、その後、排紙判断を行う(S114)。ここで、印刷中の媒体Sに印刷すべき他のデータがあれば、排紙処理は行わずに、ステップS104に戻って、再度往路印刷を実行する(S104)。一方、印刷中の媒体Sに印刷すべき他のデータがなければ、排紙処理を実行する(S116)。   After performing the return pass printing, a carrying process is executed (S112), and then a paper discharge determination is made (S114). Here, if there is other data to be printed on the medium S being printed, the paper discharge process is not performed, the process returns to step S104, and the forward printing is executed again (S104). On the other hand, if there is no other data to be printed on the medium S being printed, a paper discharge process is executed (S116).

排紙処理を行った後、次に、印刷終了か否かを判断する印刷終了判断を実行する(S118)。ここでは、次にホストコンピュータ140から印刷データに基づき、次に印刷すべき媒体Sがないかどうかチェックする。ここで、次に印刷すべき媒体Sがある場合には、ステップS102に戻り、再び給紙処理を実行して、印刷を開始する。一方、次に印刷すべき媒体Sがない場合には、印刷処理を終了する。   After the paper discharge process is performed, next, a print end determination is performed to determine whether or not to end printing (S118). Here, based on the print data from the host computer 140, it is checked whether there is a medium S to be printed next. If there is a medium S to be printed next, the process returns to step S102, the paper feed process is executed again, and printing is started. On the other hand, if there is no medium S to be printed next, the printing process is terminated.

===縁無し印刷===
本実施形態に係るインクジェットプリンタ1にあっては、「縁無し印刷」を実行することができる。
=== Borderless printing ===
In the inkjet printer 1 according to the present embodiment, “marginless printing” can be executed.

<縁無し印刷の概要>
図9および図10は、本実施形態に係るインクジェットプリンタ1で実行される「縁無し印刷」の概要を説明するものである。図9は、「縁無し印刷」ではなく、通常印刷を行ったときの用紙(媒体)Sと、印刷領域Pとの関係を説明したものである。図10は、「縁無し印刷」を行ったときの媒体Sと、印刷領域Pとの関係を説明したものである。
<Outline of borderless printing>
FIG. 9 and FIG. 10 explain the outline of “marginless printing” executed by the inkjet printer 1 according to the present embodiment. FIG. 9 illustrates the relationship between the print area P and the paper (medium) S when normal printing is performed, not “marginless printing”. FIG. 10 illustrates the relationship between the medium S and the printing area P when “marginless printing” is performed.

通常印刷の場合には、図9に示すように、印刷領域Pは用紙Sに収まるように、用紙Sよりも小さなサイズに設定される。用紙Sの周縁部には、その左右両側部および上下両側部に沿って余白部WHが形成される。このように印刷領域Pが用紙Sに収める処理は、ホストコンピュータ140に搭載されたプリンタドライバにより行われる。プリンタドライバは、ホストコンピュータ140で実行されるアプリケーションプログラムから与えられた画像データに基づき、印刷領域Pが用紙Sに収まるように印刷データを生成する。ここで、プリンタドライバは、印刷領域Pを用紙S内に納めることができないような画像データを処理する場合には、画像データにより表される画像の一部を印刷対象から除外したり、またその画像を縮小処理するなどして用紙Sに収まるようにすることもある。こうしてプリンタドライバにより作成された印刷データは、ホストコンピュータ140から当該インクジェットプリンタ1に向けて送信される。インクジェットプリンタ1は、ホストコンピュータ140から送られてきた印刷データに基づき印刷処理を実行することで、通常印刷が実施される。   In the case of normal printing, the print area P is set to a size smaller than the paper S so as to fit on the paper S as shown in FIG. A margin portion WH is formed along the left and right sides and the top and bottom sides of the periphery of the paper S. The process of storing the print area P on the paper S in this way is performed by a printer driver installed in the host computer 140. The printer driver generates print data such that the print area P fits on the paper S based on image data given from an application program executed by the host computer 140. Here, when processing image data that cannot fit the print area P in the paper S, the printer driver excludes a part of the image represented by the image data from the print target, or The image may be reduced so that it fits on the paper S. The print data thus created by the printer driver is transmitted from the host computer 140 to the inkjet printer 1. The inkjet printer 1 performs normal printing by executing print processing based on print data sent from the host computer 140.

一方、「縁無し印刷」の場合には、図10に示すように、印刷領域Pは、媒体Sからはみ出すように、媒体Sよりも大きなサイズになるように設定される。媒体Sの周縁部には、図9で説明した通常印刷の場合と異なり、余白部WHは形成されない。なお、ここでは、媒体S全体が印刷領域Pに覆われてしまって、媒体Sの周縁部には、余白部WHが一切形成されていないが、「縁無し印刷」にあっては、必ずしも図10に示すように、媒体Sの周縁部に一切余白部が形成されない場合に限らず、媒体Sの左側縁部や右側縁部、上側縁部、下側縁部など、媒体Sの周縁部の一部に余白部が形成される場合も含む。つまり、印刷領域Pが少しでも媒体Sからはみ出すように設定がされる場合には、「縁無し印刷」に該当する。   On the other hand, in the case of “borderless printing”, the print area P is set to be larger than the medium S so as to protrude from the medium S as shown in FIG. Unlike the case of the normal printing described with reference to FIG. 9, the margin portion WH is not formed on the peripheral edge of the medium S. Here, the entire medium S is covered with the printing region P, and no margin portion WH is formed at the peripheral edge of the medium S. As shown in FIG. 10, the margins of the medium S such as the left edge, the right edge, the upper edge, and the lower edge of the medium S are not limited to the case where no margin is formed at the periphery of the medium S. This includes the case where a margin is formed in part. That is, when the setting is made so that the print region P protrudes from the medium S even a little, it corresponds to “marginless printing”.

このように印刷領域Pが媒体Sからはみ出させる処理は、通常印刷の場合と同様、プリンタドライバなどにより行う。プリンタドライバは、アプリケーションプログラムから与えられた画像データに基づき、印刷領域Pが媒体Sからはみ出すような印刷データを生成する。ここで、プリンタドライバは、印刷領域Pが媒体Sよりも小さくなるような画像データを処理する場合には、印刷領域Pが媒体S全体をカバーするように印刷領域Pを拡大したりする。こうして作成された印刷データは、ホストコンピュータ140から当該インクジェットプリンタ1に向けて送信される。インクジェットプリンタ1は、ホストコンピュータ140から送られてきた印刷データに基づき印刷処理を実行することで、「縁無し印刷」が実行される。これによって、縁の無い見栄えに優れた印刷が実現できる。   The process for causing the print area P to protrude from the medium S in this way is performed by a printer driver or the like as in the case of normal printing. The printer driver generates print data such that the print area P protrudes from the medium S based on the image data given from the application program. Here, when processing image data such that the print area P is smaller than the medium S, the printer driver enlarges the print area P so that the print area P covers the entire medium S. The print data created in this way is transmitted from the host computer 140 toward the inkjet printer 1. The inkjet printer 1 executes “printing without borders” by executing a printing process based on the print data sent from the host computer 140. As a result, it is possible to realize printing that is excellent in appearance without borders.

このような「縁無し印刷」が実行された場合には、各ノズル列211の各ノズル♯1〜♯180から吐出されたインクは、媒体Sから外れることがある。インクが媒体Sから外れると、プラテン14などを汚すなどの悪影響を及ぼす虞がある。そこで、このような「縁無し印刷」を実行する印刷装置にあっては、媒体Sから外れたインクを回収するためのインク回収部を備えている。   When such “marginless printing” is executed, the ink ejected from the nozzles # 1 to # 180 of each nozzle row 211 may be detached from the medium S. If the ink is detached from the medium S, there is a possibility of adverse effects such as staining the platen 14 or the like. Therefore, a printing apparatus that performs such “marginless printing” includes an ink collection unit that collects ink that has been removed from the medium S.

<インク回収部>
図11および図12は、本実施形態に係るインク回収部352が設けられたプラテン14の様子を示したものである。図11は、プラテン14全体の様子を示した平面図であり、図12は、プラテン14の様子を部分的に示した斜視図である。
<Ink recovery unit>
11 and 12 show the state of the platen 14 provided with the ink recovery unit 352 according to the present embodiment. FIG. 11 is a plan view showing the entire state of the platen 14, and FIG. 12 is a perspective view partially showing the state of the platen 14.

このインク回収部352は、図11に示すように、プラテン14上にキャリッジ41の移動方向に沿って横長の長方形状に形成された溝部354からなる。この溝部354の横幅寸法(キャリッジ41の移動方向の寸法)Lは、インクジェットプリンタ1が印刷可能な媒体Sの最大サイズに対応して設定されている。つまり、印刷可能な媒体Sの最大サイズが「A4」サイズであれば、この溝部354の横幅寸法Lは、その「A4」サイズの媒体の横幅寸法に対応した寸法、即ち「A4」サイズの媒体の横幅寸法よりも若干長くした寸法などに設定される。また、この溝部354の縦幅寸法(媒体の搬送方向の寸法)Mは、ヘッド21に設けられたノズル列211の長さ寸法に対応して、当該長さ寸法よりも若干大きくなるように設定される。これにより、印刷可能な全てのサイズの媒体に対して、「縁無し印刷」を実行できるようになっている。   As shown in FIG. 11, the ink collection unit 352 includes a groove 354 formed in a horizontally long rectangular shape on the platen 14 along the movement direction of the carriage 41. The lateral width dimension (dimension in the moving direction of the carriage 41) L of the groove 354 is set corresponding to the maximum size of the medium S that can be printed by the inkjet printer 1. That is, if the maximum size of the printable medium S is “A4” size, the lateral width dimension L of the groove 354 is a dimension corresponding to the lateral width dimension of the “A4” size medium, that is, “A4” size medium. It is set to a dimension that is slightly longer than the horizontal width dimension. Further, the vertical dimension (dimension in the medium transport direction) M of the groove 354 is set to be slightly larger than the length dimension corresponding to the length dimension of the nozzle row 211 provided in the head 21. Is done. As a result, “borderless printing” can be executed for all printable sizes of media.

この溝部354は、図12に示すように断面凹形状に成形されている。この溝部354の内側には、打ち捨てられたインクを吸収するための吸収材356が配置されている。この吸収材356は、スポンジなどのインクを吸収可能な素材により形成され、インクを吸収して保持することができるようになっている。これによって、打ち捨てられたインクが飛散しないように防止することができる。   The groove 354 is formed in a concave cross section as shown in FIG. An absorbent material 356 for absorbing the discarded ink is disposed inside the groove 354. The absorbent material 356 is formed of a material that can absorb ink, such as sponge, and can absorb and hold ink. As a result, the discarded ink can be prevented from scattering.

またさらに、溝部354の内側には、複数の突起部362と、複数の長方形状の突出部364とが設けられている。これら突起部362と、長方形状の突出部364とは、キャリッジ41の移動方向、即ち溝部354の長さ方向に沿って相互に間隔をあけて並んで設けられている。また、長方形状の突出部364の上面部には、複数のリブ366が一体的に設けられている。これら複数のリブ366は、キャリッジ41の移動方向に沿って相互に間隔をあけて並んで形成されている。これら突起部362および突出部364は、溝部354の上方に載置された、印刷される媒体Sを下側から支持するために設けられたものである。突起部362の上端部および突出部364のリブ366が媒体Sの下面と接触して媒体Sを支持する。   Furthermore, a plurality of protrusions 362 and a plurality of rectangular protrusions 364 are provided inside the groove 354. The protrusions 362 and the rectangular protrusions 364 are provided side by side along the moving direction of the carriage 41, that is, along the length direction of the groove 354. In addition, a plurality of ribs 366 are integrally provided on the upper surface of the rectangular protrusion 364. The plurality of ribs 366 are formed side by side along the moving direction of the carriage 41 at intervals. The protrusions 362 and the protrusions 364 are provided to support the medium S to be printed, which is placed above the groove 354 from below. The upper end of the protrusion 362 and the rib 366 of the protrusion 364 come into contact with the lower surface of the medium S to support the medium S.

また、溝部354の周縁部にも、媒体Sを下側から支持するためのリブ368が形成されている。溝部354の周縁部のリブ368は、溝部354の上縁部および下縁部にそれぞれキャリッジ41の移動方向に沿って相互に間隔をあけて並んで配置されている。このように突起部362やリブ366、368が適当な間隔をあけて配置されていることによって、印刷される媒体Sを下側に均一に支持することができる。これにより、印刷時に媒体Sに撓みが発生するのを防止することができる。   In addition, ribs 368 for supporting the medium S from below are also formed at the peripheral edge of the groove 354. The ribs 368 at the peripheral edge of the groove portion 354 are arranged on the upper edge portion and the lower edge portion of the groove portion 354 so as to be spaced apart from each other along the movement direction of the carriage 41. As described above, the protrusions 362 and the ribs 366 and 368 are arranged at appropriate intervals, so that the medium S to be printed can be uniformly supported on the lower side. Thereby, it is possible to prevent the medium S from being bent during printing.

<実際の縁無し印刷>
図13は、実際に「縁無し印刷」が行われるときの印刷の様子を説明したものであり、図11に示すA−A’線の矢視断面図を示したものである。プラテン14上には、同図に示すように、溝部354として、2つの溝部354a、354bがプラテン14上方に配置されたヘッド21に対向して設けられている。一方の溝部354aは、媒体Sの搬送方向の上流側に設けられたものであり、ヘッド21のノズル列211のノズル♯1〜♯180のうち、ノズル♯178〜♯180と対向するように形成されている。他方の溝部354bは、媒体Sの搬送方向の下流側に設けられたものであり、ヘッド21のノズル列211のノズル♯1〜♯180のうち、ノズル♯1〜♯3と対向するように形成されている。これによって、ヘッド21のノズル♯1〜♯3、♯178〜♯180から吐出されたインクは、媒体Sから外れたときに、溝部354a、354b内に直接打ち込まれる。溝部354a、354b内に打ち込まれたインクは、各溝部354a、354b内の吸収材356にそれぞれ吸収されて回収される。
<Actual borderless printing>
FIG. 13 illustrates the state of printing when “marginless printing” is actually performed, and shows a cross-sectional view taken along the line AA ′ shown in FIG. 11. On the platen 14, as shown in the figure, as the groove portion 354, two groove portions 354 a and 354 b are provided facing the head 21 disposed above the platen 14. One groove portion 354 a is provided on the upstream side in the transport direction of the medium S, and is formed so as to face the nozzles # 178 to # 180 among the nozzles # 1 to # 180 of the nozzle row 211 of the head 21. Has been. The other groove portion 354b is provided on the downstream side in the transport direction of the medium S, and is formed so as to face the nozzles # 1 to # 3 among the nozzles # 1 to # 180 of the nozzle row 211 of the head 21. Has been. As a result, the ink ejected from the nozzles # 1 to # 3 and # 178 to # 180 of the head 21 is directly driven into the grooves 354a and 354b when the ink is removed from the medium S. The ink that has been driven into the grooves 354a and 354b is absorbed and collected by the absorbent material 356 in each of the grooves 354a and 354b.

媒体Sの搬送方向の先端部に対して印刷を行う場合には、搬送方向の下流側に設けられたノズル♯1〜♯3を用いて、これらノズル♯1〜♯3からインクを吐出して、媒体Sの先端部に印刷を施すようになっている。この場合、ノズル♯1〜♯3から吐出されて媒体Sから外れたインクは、搬送方向の下流側の溝部354bに回収される。   When printing is performed on the leading edge of the medium S in the transport direction, nozzles # 1 to # 3 provided on the downstream side in the transport direction are used to eject ink from these nozzles # 1 to # 3. In addition, printing is performed on the leading end of the medium S. In this case, the ink ejected from the nozzles # 1 to # 3 and removed from the medium S is collected in the groove portion 354b on the downstream side in the transport direction.

また、媒体Sの後端部に対して印刷を行う場合には、搬送方向の上流側に設けられたノズル♯178〜♯180を用いて、これらノズル♯178〜♯180からインクを吐出して、媒体Sの後端部に印刷を施すようになっている。この場合、ノズル♯178〜♯180から吐出されて媒体Sから外れたインクは、搬送方向の上流側の溝部354aに回収される。   Further, when printing is performed on the rear end portion of the medium S, ink is ejected from the nozzles # 178 to # 180 using the nozzles # 178 to # 180 provided on the upstream side in the transport direction. The rear end of the medium S is printed. In this case, the ink ejected from the nozzles # 178 to # 180 and removed from the medium S is collected in the groove portion 354a on the upstream side in the transport direction.

なお、通常印刷時においては、媒体Sの先端部や後端部は余白部WHとして形成されるため、これら先端部や後端部に対して印刷を施す必要がなく、搬送方向の上流側の溝部354aまたは下流側の溝部354bに対してインクを打ち捨てる必要がないので、前述したようなノズルの使用制限はなく、全てのノズル♯1〜♯180を用いて媒体Sに対して印刷を実行することができる。   During normal printing, the leading edge and the trailing edge of the medium S are formed as margins WH, so there is no need to print the leading edge and trailing edge, and the upstream side in the transport direction is not necessary. Since there is no need to discard ink in the groove 354a or the downstream groove 354b, there is no restriction on the use of nozzles as described above, and printing is performed on the medium S using all the nozzles # 1 to # 180. can do.

<縁無し印刷の他例>
前述した実施の形態では、印刷領域Pが媒体Sからはみ出るように設定されていたが、「縁無し印刷」にあっては、必ずしも、このように印刷領域Pが媒体Sからはみ出る設定する必要はない。図14は、印刷領域Pが媒体Sからはみ出るように設定するのではなく、媒体Sにちょうどぴったり収まるように設定した場合の「縁無し印刷」の例を説明したものである。同図に示すように、印刷領域Pが媒体Sからはみ出さなくても、印刷領域Pを媒体Sのサイズにぴったりはまるように設定することによって、余白部のない「縁無し印刷」を実行することができる。
<Other examples of borderless printing>
In the embodiment described above, the print area P is set so as to protrude from the medium S. However, in the “marginless printing”, it is not always necessary to set the print area P to protrude from the medium S in this way. Absent. FIG. 14 illustrates an example of “marginless printing” when the print area P is not set so as to protrude from the medium S but is set so as to fit exactly on the medium S. As shown in the figure, even if the print area P does not protrude from the medium S, “marginless printing” without margins is performed by setting the print area P to fit the size of the medium S. be able to.

なお、この場合でも、必ずしも図14に示すように、媒体Sの周縁部に一切余白部が形成されない場合に限らず、媒体Sの左側縁部や右側縁部、上側縁部、下側縁部など、媒体Sの周縁部の一部に余白部が形成される場合も含む。つまり、印刷領域Pが少しでも媒体Sのサイズにぴったりはまるように設定されている場合には、「縁無し印刷」に該当する。   Even in this case, as shown in FIG. 14, the margin is not necessarily formed at the periphery of the medium S, and the left edge, the right edge, the upper edge, and the lower edge of the medium S are not necessarily provided. For example, a case where a margin part is formed at a part of the peripheral edge of the medium S is also included. That is, if the print area P is set to fit the size of the medium S even a little, it corresponds to “marginless printing”.

また、このような場合にあっても、インクが媒体Sの縁部ぎりぎりの位置に打ち込まれるから、媒体Sの位置ズレ等により媒体Sからインクが外れることがある。このため、このような印刷領域Pが媒体Sにちょうどぴったり収まるように設定した場合であっても、媒体Sから外れたインクを回収する必要がある。このため、前述したようなインク回収部352が必要となる。   Even in such a case, the ink may be ejected from the medium S due to misalignment of the medium S or the like because the ink is driven to the edge of the medium S. For this reason, even when such a print region P is set so as to fit exactly on the medium S, it is necessary to collect ink that has been removed from the medium S. For this reason, the ink recovery unit 352 as described above is required.

===媒体の検出===
本実施形態に係るインクジェットプリンタ1にあっては、媒体Sに対して印刷を施す際に、その媒体Sについて位置を検出するようになっている。本実施形態のインクジェットプリンタ1では、媒体の位置を検出するために、反射型光学センサ502を備えている。なお、この反射型光学センサ502は、本発明の光学センサに相当する。
=== Detection of medium ===
In the inkjet printer 1 according to the present embodiment, when printing is performed on the medium S, the position of the medium S is detected. The inkjet printer 1 according to the present embodiment includes a reflective optical sensor 502 in order to detect the position of the medium. The reflective optical sensor 502 corresponds to the optical sensor of the present invention.

<反射型光学センサ>
図15は、その反射型光学センサ502を示したものである。この反射型光学センサ502は、同図に示すように、キャリッジ41に一体的に設けられたものであり、図5に示すように、ヘッド21の下面部にノズル列211とともに配置されている。この反射型光学センサ502は、発光部504と受光部506とを有し、媒体Sとの間に間隔Dをあけて配置されている。間隔Dは、例えば5mmなどに設定される。発光部504および受光部506は、それぞれ媒体Sに対して対向して配置されている。発光部504は、例えば、発光ダイオードなどにより構成され、媒体Sに向けて光を発する。受光部506は、例えば、フォトダイオードなどにより構成され、発光部504から発光されて媒体Sによって反射された光を受光する。
<Reflective optical sensor>
FIG. 15 shows the reflective optical sensor 502. The reflection type optical sensor 502 is provided integrally with the carriage 41 as shown in the figure, and is arranged together with the nozzle row 211 on the lower surface of the head 21, as shown in FIG. The reflective optical sensor 502 includes a light emitting unit 504 and a light receiving unit 506, and is disposed with a space D between the medium S. The interval D is set to 5 mm, for example. The light emitting unit 504 and the light receiving unit 506 are disposed to face the medium S, respectively. The light emitting unit 504 is configured by a light emitting diode, for example, and emits light toward the medium S. The light receiving unit 506 is configured by, for example, a photodiode and receives light emitted from the light emitting unit 504 and reflected by the medium S.

受光部506が受光する光の成分には、発光部504により発光されて媒体Sによって反射された光の正反射成分が含まれている。受光部506は、そのような正反射成分が受光できる位置に配置されている。
受光部506は、受光した光の強さに応じた信号を生成する。受光部506により生成された信号は、反射型光学センサ502から検知結果として外部へと出力される。反射型光学センサ502から出力された信号は、図4に示すように、反射型光学センサ制御部508に入力される。
The light component received by the light receiving unit 506 includes a regular reflection component of light emitted from the light emitting unit 504 and reflected by the medium S. The light receiving unit 506 is disposed at a position where such a regular reflection component can be received.
The light receiving unit 506 generates a signal corresponding to the intensity of the received light. The signal generated by the light receiving unit 506 is output to the outside as a detection result from the reflective optical sensor 502. The signal output from the reflective optical sensor 502 is input to the reflective optical sensor control unit 508 as shown in FIG.

<反射型光学センサ制御部>
反射型光学センサ制御部508は、システムコントローラ126からの命令に従って反射型光学センサ502を制御する機能を有している。つまり、反射型光学センサ制御部508は、システムコントローラ126からの命令によって、反射型光学センサ502の発光部504を発光させたり、その発光を停止させたり、また反射型光学センサ502の受光部506の受光感度等を調節したりするようになっている。
<Reflective optical sensor controller>
The reflection type optical sensor control unit 508 has a function of controlling the reflection type optical sensor 502 in accordance with a command from the system controller 126. That is, the reflective optical sensor control unit 508 causes the light emitting unit 504 of the reflective optical sensor 502 to emit light, stops the light emission, or receives the light receiving unit 506 of the reflective optical sensor 502 according to a command from the system controller 126. It adjusts the light receiving sensitivity and so on.

このほかに、本実施形態の反射型光学センサ制御部508にあっては、A/D変換部510を備え、このA/D変換部510により、反射型光学センサ502の受光部506から出力された信号をアナログ信号からデジタル信号へと変換する機能も有している。具体的には、反射型光学センサ制御部508は、反射型光学センサ502から出力された信号をA/D変換してデジタル信号に変換してデジタルデータとしてシステムコントローラ126に向けて出力するようになっている。   In addition, the reflection type optical sensor control unit 508 of this embodiment includes an A / D conversion unit 510, and the A / D conversion unit 510 outputs the light from the light receiving unit 506 of the reflection type optical sensor 502. It also has a function of converting the converted signal from an analog signal to a digital signal. Specifically, the reflection-type optical sensor control unit 508 performs A / D conversion on the signal output from the reflection-type optical sensor 502, converts the signal into a digital signal, and outputs the digital signal to the system controller 126. It has become.

<システムコントローラ>
システムコントローラ126は、反射型光学センサ制御部508から、反射型光学センサ502の受光部506の検知結果をデジタルデータとして取得する。そして、システムコントローラ126は、その取得したデジタルデータと、リニア式エンコーダ51から取得したキャリッジ41の位置情報とに基づき、印刷しようとしている媒体Sの位置を検出する。
<System controller>
The system controller 126 acquires the detection result of the light receiving unit 506 of the reflective optical sensor 502 as digital data from the reflective optical sensor control unit 508. The system controller 126 detects the position of the medium S to be printed based on the acquired digital data and the position information of the carriage 41 acquired from the linear encoder 51.

<実際の検出処理>
次に実際の処理例について説明する。図16は、媒体Sの位置を検出するときの動作を説明したものである。媒体Sの位置を検出する場合には、図16Aに示すようにキャリッジ41が、同図の矢印A方向に沿って、媒体Sに向かって移動する。このとき、反射型光学センサ502の発光部504からプラテン14に向けて光が発せられ、プラテン14によって反射された光が反射型光学センサ502の受光部506に受光される。次に、図16Bに示すように、キャリッジ41に設けられた反射型光学センサ502が、媒体Sの一方の端部の上方に差し掛かると、反射型光学センサ502の発光部504から発せられた光は、媒体Sにより反射され、その反射された光は、反射型光学センサ502の受光部506により受光される。
<Actual detection process>
Next, an actual processing example will be described. FIG. 16 illustrates the operation when the position of the medium S is detected. When detecting the position of the medium S, the carriage 41 moves toward the medium S along the direction of arrow A in FIG. 16A. At this time, light is emitted from the light emitting unit 504 of the reflective optical sensor 502 toward the platen 14, and the light reflected by the platen 14 is received by the light receiving unit 506 of the reflective optical sensor 502. Next, as shown in FIG. 16B, when the reflective optical sensor 502 provided on the carriage 41 reaches above one end of the medium S, the light is emitted from the light emitting unit 504 of the reflective optical sensor 502. The light is reflected by the medium S, and the reflected light is received by the light receiving unit 506 of the reflective optical sensor 502.

媒体Sによって反射された光が受光部506により受光されると、反射型光学センサ502から出力される信号のレベルが大きく変化することから、媒体Sの一方の端部の位置を検出することができる。またさらに、図16Cに示すように、キャリッジ41が矢印A方向に沿って移動して、キャリッジ41に設けられた反射型光学センサ502が、媒体Sの他方の端部の上方に差し掛かると、反射型光学センサ502の発光部504から発せられた光はプラテン14により反射されて、その反射された光が反射型光学センサ502の受光部506に受光される。このとき、反射型光学センサ502から出力される信号のレベルが、再度大きく変化することから、媒体Sの他方の端部の位置を検出することができる。その後、図16Dに示すように、さらにキャリッジ41が所定の位置まで移動すると、媒体Sの検出処理が終了する。   When the light reflected by the medium S is received by the light receiving unit 506, the level of the signal output from the reflective optical sensor 502 changes greatly, so that the position of one end of the medium S can be detected. it can. Furthermore, as shown in FIG. 16C, when the carriage 41 moves along the direction of the arrow A and the reflective optical sensor 502 provided on the carriage 41 reaches above the other end of the medium S, The light emitted from the light emitting unit 504 of the reflective optical sensor 502 is reflected by the platen 14, and the reflected light is received by the light receiving unit 506 of the reflective optical sensor 502. At this time, since the level of the signal output from the reflective optical sensor 502 changes greatly again, the position of the other end of the medium S can be detected. Thereafter, as shown in FIG. 16D, when the carriage 41 further moves to a predetermined position, the medium S detection process ends.

図17は、反射型光学センサ502から出力される信号のレベルと、媒体Sとの関係を簡単に説明したものである。キャリッジ41が移動して、反射型光学センサ502が媒体Sの一方の端部に差し掛かると、反射型光学センサ502から出力される信号のレベルが、同図に示すように、高いレベルVaから低いレベルVbへと大きく変化する。反射型光学センサ502が媒体Sの上方に位置している間は、低いレベルVbの信号が反射型光学センサ502から出力される。反射型光学センサ502が媒体Sの他方の端部に差し掛かると、反射型光学センサ502から出力される信号のレベルは、同図に示すにように、低いレベルVbから再び高いレベルVaへと変化する。   FIG. 17 briefly illustrates the relationship between the level of the signal output from the reflective optical sensor 502 and the medium S. When the carriage 41 moves and the reflective optical sensor 502 reaches one end of the medium S, the level of the signal output from the reflective optical sensor 502 is changed from a high level Va as shown in FIG. It greatly changes to a low level Vb. While the reflective optical sensor 502 is positioned above the medium S, a low level Vb signal is output from the reflective optical sensor 502. When the reflective optical sensor 502 reaches the other end of the medium S, the level of the signal output from the reflective optical sensor 502 is changed from a low level Vb to a high level Va again as shown in FIG. Change.

システムコントローラ126は、反射型光学センサ制御部508を通じて、反射型光学センサ502から出力される信号のレベルに応じたデジタルデータを逐次取得する。そして、システムコントローラ126は、反射型光学センサ502から取得したデジタルデータを、図17に示すような、所定のしきい値V0と逐次比較して、反射型光学センサ502から出力された信号のレベルがその所定のしきい値V0を超えないかどうかどうかをチェックする。ここで、所定のしきい値V0は、高いレベルVaと低いレベルVbとの間の適当な値に設定されたものである。反射型光学センサ502から出力された信号のレベルがその所定のしきい値V0を超えた場合には、反射型光学センサ502により媒体Sの一方の端部が検出されたと判断して、リニア式エンコーダ51からの出力情報に基づき、媒体Sの端部の位置を特定してその位置をメインメモリ127等に記憶する。   The system controller 126 sequentially acquires digital data corresponding to the level of the signal output from the reflective optical sensor 502 through the reflective optical sensor control unit 508. Then, the system controller 126 sequentially compares the digital data acquired from the reflective optical sensor 502 with a predetermined threshold value V0 as shown in FIG. 17, and the level of the signal output from the reflective optical sensor 502 Is checked to see if it does not exceed its predetermined threshold value V0. Here, the predetermined threshold value V0 is set to an appropriate value between the high level Va and the low level Vb. When the level of the signal output from the reflective optical sensor 502 exceeds the predetermined threshold value V0, it is determined that one end of the medium S has been detected by the reflective optical sensor 502, and the linear type is detected. Based on the output information from the encoder 51, the position of the end of the medium S is specified and the position is stored in the main memory 127 or the like.

さらに、システムコントローラ126は、反射型光学センサ502から取得したデジタルデータを逐次所定のしきい値V0と比較して、反射型光学センサ502からの信号のレベルがその所定のしきい値V0を再度超えないかどうかをチェックする。反射型光学センサ502から出力された信号のレベルが、再度、その所定のしきい値V0を超えた場合には、反射型光学センサ502により媒体Sの他方の端部が検出されたと判断して、リニア式エンコーダ51からの出力情報に基づき、媒体Sの端部の位置を特定して、その位置をメインメモリ127等に記憶する。これによって、媒体Sの両端部の位置が特定され、媒体Sの位置を検出することができる他、媒体Sの幅寸法も検出することができ、この幅寸法から媒体Sのサイズなども特定することができる。   Further, the system controller 126 sequentially compares the digital data acquired from the reflective optical sensor 502 with a predetermined threshold value V0, and the level of the signal from the reflective optical sensor 502 again reaches the predetermined threshold value V0. Check if it does not exceed. When the level of the signal output from the reflective optical sensor 502 again exceeds the predetermined threshold value V0, it is determined that the other end of the medium S has been detected by the reflective optical sensor 502. Based on the output information from the linear encoder 51, the position of the end of the medium S is specified, and the position is stored in the main memory 127 or the like. As a result, the positions of both ends of the medium S are specified, the position of the medium S can be detected, and the width dimension of the medium S can also be detected. The size of the medium S is also specified from the width dimension. be able to.

===プラテン14の調査===
本実施形態に係るインクジェットプリンタ1にあっては、プラテン14の状態を調査する。ここで実行されるプラテン14の調査処理について以下に詳しく説明する。
=== Survey of Platen 14 ===
In the inkjet printer 1 according to the present embodiment, the state of the platen 14 is investigated. The investigation process of the platen 14 executed here will be described in detail below.

<調査理由>
プラテン14の状態を調査するのは、次の理由からである。つまり、本実施形態に係るインクジェットプリンタ1のように、媒体Sに対してインクを吐出して印刷をするような印刷装置の場合、吐出されたインクが霧状化してミストが発生し、プラテン14およびその周辺部が汚れるといった不具合が生じる。特に、「縁無し印刷」が実行された場合には、ノズル♯1〜♯180から吐出されたインクが媒体Sに到達せず、媒体Sから外れることから、ミストが発生し易く、プラテン14の汚れも大きい。
<Reason for investigation>
The state of the platen 14 is investigated for the following reason. That is, in the case of a printing apparatus that performs printing by ejecting ink onto the medium S as in the ink jet printer 1 according to the present embodiment, the ejected ink is atomized to generate mist, and the platen 14 In addition, there is a problem that the peripheral portion becomes dirty. In particular, when “marginless printing” is performed, the ink ejected from the nozzles # 1 to # 180 does not reach the medium S and is detached from the medium S, so that mist is likely to occur. Dirt is also big.

図18は、プラテン14が汚れたときの状態を説明したものである。図18Aのプラテン14の汚れ具合の一例を示した平面図であり、図18Bは、その汚れ具合を横から見た断面図である。ノズル♯1〜♯180から吐出された霧状化したインクは、図18Aに示すように、溝部354の周縁部や溝部354内の長方形状の突出部364の上面部などに付着して玉状の汚れDTが形成される。この玉状の汚れDTは、霧状化したインクが降り積もって、結晶のように徐々成長して生成されたもので、図18Bに示すように、溝部354の周縁部の上面や溝部354内の長方形状の突出部364の上面に、山のように盛られて形成される。   FIG. 18 illustrates a state when the platen 14 is soiled. FIG. 18B is a plan view showing an example of the degree of contamination of the platen 14 in FIG. 18A, and FIG. 18B is a cross-sectional view of the degree of contamination seen from the side. As shown in FIG. 18A, the atomized ink ejected from the nozzles # 1 to # 180 adheres to the periphery of the groove 354, the upper surface of the rectangular protrusion 364 in the groove 354, and the like. Dirt DT is formed. The ball-shaped stain DT is generated by the mist-like ink piled up and gradually growing like a crystal. As shown in FIG. 18B, the upper surface of the peripheral portion of the groove portion 354 and the inside of the groove portion 354 are formed. On the upper surface of the rectangular protrusion 364, it is piled up like a mountain.

なお、霧状化されたインクが、溝部354内、即ち吸収材356上に到達した場合には、吸収材356に吸収され、また、突起部362やリブ366、368に付着した場合には、印刷される媒体Sに付着して除去される。   When the atomized ink reaches the inside of the groove portion 354, that is, on the absorbent material 356, it is absorbed by the absorbent material 356, and when adhering to the protruding portion 362 or the ribs 366, 368, It adheres to the medium S to be printed and is removed.

このようにプラテン14が汚れていた場合、反射型光学センサ502により媒体Sを検出したときに、プラテン14上の汚れDTを媒体Sと誤検出してしまうことがある。図19は、プラテン14が汚れていた場合に、反射型光学センサ502から出力される信号の一例を示したものである。プラテン14が汚れていた場合には、同図に示すように、反射型光学センサ502から出力される信号に、媒体Sを検出したことを示す矩形状のパルスWaの他に、汚れDTを検出したことにより生じる急峻なパルスWbが含まれる。この急峻なパルスWbは、媒体Sを検出する上で基準となる所定のしきい値V0を超えてしまう場合がある。所定のしきい値V0を超えるようなパルスWbが発生した場合、プラテン14上の汚れDTを媒体Sの一部であると判断してしまい、媒体Sの位置を誤検出してしまう場合があった。   When the platen 14 is dirty as described above, the stain DT on the platen 14 may be erroneously detected as the medium S when the medium S is detected by the reflective optical sensor 502. FIG. 19 shows an example of a signal output from the reflective optical sensor 502 when the platen 14 is dirty. When the platen 14 is dirty, as shown in the figure, the signal output from the reflective optical sensor 502 detects the dirt DT in addition to the rectangular pulse Wa indicating that the medium S has been detected. A steep pulse Wb generated by the above is included. This steep pulse Wb may exceed a predetermined threshold value V0 that serves as a reference in detecting the medium S. When the pulse Wb that exceeds the predetermined threshold value V0 is generated, the dirt DT on the platen 14 is determined to be a part of the medium S, and the position of the medium S may be erroneously detected. It was.

<調査方法>
そこで、本実施形態に係るインクジェットプリンタ1では、このようなプラテン14の汚れDTによる媒体Sの誤検出を解消するために、適宜なタイミングでプラテン14の状態を調査して、その調査結果に基づき、所定のしきい値V0を適宜変更するようになっている。以下に所定のしきい値V0を変更する処理について詳しく説明する。
<Investigation method>
Therefore, in the inkjet printer 1 according to the present embodiment, in order to eliminate such erroneous detection of the medium S due to the dirt DT of the platen 14, the state of the platen 14 is investigated at an appropriate timing, and based on the investigation result. The predetermined threshold value V0 is changed as appropriate. Hereinafter, the process of changing the predetermined threshold value V0 will be described in detail.

図20及び図21は、プラテン14を調査するときの様子を説明したものである。図20は、プラテン14の調査状況を説明する平面図である。図21は、プラテン14の調査状況を説明する側面図である。   20 and 21 illustrate the state when the platen 14 is investigated. FIG. 20 is a plan view for explaining the investigation status of the platen 14. FIG. 21 is a side view for explaining the investigation status of the platen 14.

プラテン14の調査は、反射型光学センサ502により、プラテン14上に媒体Sがないときに行う。プラテン14の調査を行う場合には、図20に示すように、反射型光学センサ502が設けられたキャリッジ41が、図中矢印Bの方向に沿ってプラテン14の上方を移動する。このとき、反射型光学センサ502の発光部504からは、図21に示すように、プラテン14に向けて光が発せられる。ここでは、発せられた光がプラテン14上の溝部354(吸収材356)とその縁部に跨がる形で照射されている。発光部504から発せられた光は、プラテン14上の溝部354やその縁部などによって反射されて、その反射された光は、反射型光学センサ502の受光部506により受光される。発光部504からの発光と、受光部506による受光とは、キャリッジ41がプラテン14上を移動している間、継続的に行われる。   The investigation of the platen 14 is performed when the medium S is not on the platen 14 by the reflective optical sensor 502. When examining the platen 14, as shown in FIG. 20, the carriage 41 provided with the reflective optical sensor 502 moves above the platen 14 along the direction of the arrow B in the figure. At this time, light is emitted from the light emitting unit 504 of the reflective optical sensor 502 toward the platen 14 as shown in FIG. Here, the emitted light is irradiated in a form straddling the groove 354 (absorbent material 356) on the platen 14 and its edge. The light emitted from the light emitting unit 504 is reflected by the groove 354 on the platen 14 or the edge thereof, and the reflected light is received by the light receiving unit 506 of the reflective optical sensor 502. Light emission from the light emitting unit 504 and light reception by the light receiving unit 506 are continuously performed while the carriage 41 moves on the platen 14.

反射型光学センサ502は、受光部506が受けた光の強さに応じた信号を生成して、反射型光学センサ制御部508へと出力する(図4参照)。反射型光学センサ制御部508は、反射型光学センサ502からの信号をA/D変換部510によりアナログ信号からデジタル信号に変換してデジタルデータとしてシステムコントローラ126に向けて出力する。システムコントローラ126は、反射型光学センサ502からデジタルデータを取得して、図20に示す有効範囲SAに対応するデータを調査結果として取得する。そして、システムコントローラ126は、この調査結果に基づき、媒体Sの検出の基準となる所定のしきい値V0を変更する必要があるかないかの判断や、変更する場合、しきい値V0をどのような値に変更するのかの判断を行う。   The reflective optical sensor 502 generates a signal corresponding to the intensity of light received by the light receiving unit 506 and outputs the signal to the reflective optical sensor control unit 508 (see FIG. 4). The reflection-type optical sensor control unit 508 converts the signal from the reflection-type optical sensor 502 from an analog signal to a digital signal by the A / D conversion unit 510 and outputs the converted signal to the system controller 126 as digital data. The system controller 126 acquires digital data from the reflective optical sensor 502, and acquires data corresponding to the effective range SA shown in FIG. Then, the system controller 126 determines whether or not it is necessary to change the predetermined threshold value V0 that is a reference for detecting the medium S based on the investigation result, and how to change the threshold value V0 when changing the threshold value. Judge whether to change to the correct value.

<しきい値の変更>
図22は、反射型光学センサ502によりプラテン14上を調査したときの反射型光学センサ502から出力された信号の一例を示したものである。プラテン14上に汚れDTがあった場合には、同図に示すように、反射型光学センサ502から出力される信号に、急峻なパルスWbが生じる。なお、同図に示される反射型光学センサから出力される信号に含まれるパルスWcは、プラテン14の溝部354の周縁部のリブ368から反射された光を受光部で受光することにより生じたものである。
<Change threshold>
FIG. 22 shows an example of a signal output from the reflective optical sensor 502 when the platen 14 is examined by the reflective optical sensor 502. When there is dirt DT on the platen 14, a steep pulse Wb is generated in the signal output from the reflective optical sensor 502, as shown in FIG. Note that the pulse Wc included in the signal output from the reflective optical sensor shown in the figure is generated by receiving the light reflected from the rib 368 at the peripheral edge of the groove portion 354 of the platen 14 by the light receiving portion. It is.

システムコントローラ126は、このような反射型光学センサ502から出力された信号から最小値Vcを取得して、プラテン14に汚れDTがあった場合に生じる急峻なパルスWbの大きさを調べる。そして、システムコントローラ126は、取得した最小値Vcが所定の基準値Vkを超えるか否かをチェックする。取得した最小値Vcが所定の基準値Vkを超える場合には、システムコントローラ126は、今まで媒体Sの検出基準となっていたしきい値V0を変更する必要があると判断して、取得した最小値Vcと、媒体検出時に媒体Sの検出により得られる信号レベルVbとの間に、新たなしきい値Vnを設定する。ここで設定される新たなしきい値Vnは、取得した最小値Vcと、媒体検出時に媒体Sから得られる信号レベルVbとの間のちょうど中央に設定されてもよく、また、信号レベルVbか最小値Vcのどちらか一方に偏るように設定されても良い。また、ここで設定された新たなしきい値Vnは、システムコントローラ126によりメインメモリ127などに記憶される。   The system controller 126 obtains the minimum value Vc from the signal output from the reflection type optical sensor 502, and examines the magnitude of the steep pulse Wb generated when the platen 14 is contaminated DT. Then, the system controller 126 checks whether or not the acquired minimum value Vc exceeds a predetermined reference value Vk. When the acquired minimum value Vc exceeds the predetermined reference value Vk, the system controller 126 determines that it is necessary to change the threshold value V0 that has been the detection reference of the medium S so far, and acquires the acquired minimum value Vc. A new threshold value Vn is set between the value Vc and the signal level Vb obtained by detecting the medium S when the medium is detected. The new threshold value Vn set here may be set at the exact center between the acquired minimum value Vc and the signal level Vb obtained from the medium S when the medium is detected. It may be set so as to be biased to either one of the values Vc. Further, the new threshold value Vn set here is stored in the main memory 127 or the like by the system controller 126.

次に媒体Sの検出処理を実行する際には、新たに設定されたしきい値Vnをもって媒体Sの検出を行うことができる。このことから、プラテン14上に汚れDTなどがあったとしても、この汚れDTなどを媒体Sとして誤検出してしまうのを防止することができる。これによって、所定のしきい値V0を固定値として設定する従来に比べて、媒体Sを高精度に検出することができる。   Next, when the medium S detection process is executed, the medium S can be detected with the newly set threshold value Vn. For this reason, even if there is dirt DT or the like on the platen 14, it is possible to prevent the dirt DT or the like from being erroneously detected as the medium S. As a result, the medium S can be detected with higher accuracy than in the prior art in which the predetermined threshold value V0 is set as a fixed value.

なお、ここで、媒体Sの検出時に媒体Sの検出により得られる信号レベルVbについては、「普通紙」などのある特定の種類の媒体から得られる信号レベルであってもよく、また、複数種類の媒体からの平均値や、しきい値V0に最も近い媒体から得られる値(ここでは最大値)であっても良い。   Here, the signal level Vb obtained by detecting the medium S at the time of detecting the medium S may be a signal level obtained from a specific type of medium such as “plain paper” or a plurality of types. Or a value obtained from the medium closest to the threshold value V0 (here, the maximum value).

<調査処理手順>
図23は、プラテン14上を調査するときの処理手順の一例を示したフローチャートである。プラテン14の調査を行う場合、システムコントローラ126は、まず、キャリッジモータ制御部128を通じてキャリッジモータ42を駆動して、キャリッジ41の移動を開始する(S202)。これにより、キャリッジ41は、例えば、図20に示すように矢印Bに向かって移動を開始する。なお、反射型光学センサ502の発光部504からは、キャリッジ41の移動開始から光が発せられる。
<Investigation procedure>
FIG. 23 is a flowchart showing an example of a processing procedure for investigating the platen 14. When the platen 14 is investigated, the system controller 126 first drives the carriage motor 42 through the carriage motor control unit 128 to start moving the carriage 41 (S202). Thereby, the carriage 41 starts to move in the direction of the arrow B as shown in FIG. Light is emitted from the light emitting unit 504 of the reflective optical sensor 502 from the start of movement of the carriage 41.

システムコントローラ126は、キャリッジ41の移動開始とともに、キャリッジ41に設けられた反射型光学センサ502の現在位置が所定の有効範囲SA内にあるか否かを、リニア式エンコーダ51から取得したキャリッジ41の現在位置に基づき逐次チェックする(S204)。そして、反射型光学センサ502が所定の有効範囲SA内に入った場合には、システムコントローラ126は、反射型光学センサ502から出力された信号のデータを反射型光学センサ制御部508から取得し(S206)、そのデータが最小値であるか否かをチェックする(S208)。反射型光学センサ制御部508から取得したデータが最小値であれば、システムコントローラ126は、その最小値をメインメモリ127等に記憶する。   The system controller 126 acquires, from the linear encoder 51, whether or not the current position of the reflective optical sensor 502 provided on the carriage 41 is within the predetermined effective range SA when the carriage 41 starts moving. Sequential checking is performed based on the current position (S204). When the reflective optical sensor 502 falls within the predetermined effective range SA, the system controller 126 acquires the data of the signal output from the reflective optical sensor 502 from the reflective optical sensor control unit 508 ( In S206, it is checked whether or not the data is the minimum value (S208). If the data acquired from the reflective optical sensor control unit 508 is the minimum value, the system controller 126 stores the minimum value in the main memory 127 or the like.

次に、システムコントローラ126は、リニア式エンコーダ51から取得したキャリッジ41の現在位置に基づき、反射型光学センサ502の現在位置が所定の有効範囲SAから外れた否かをチェックする(S210)。ここで、反射型光学センサ502の現在位置が、まだ、所定の有効範囲SA内にある場合には、システムコントローラ126は、再度、ステップS206へと戻って、再度、反射型光学センサ制御部508からデータを取得して、そのデータが最小値であるか否かをチェックする(S208)。これらデータの取得(S206)と、最小値か否かのチェック(S208)は、反射型光学センサ502の現在位置が所定の有効範囲SAから外れるまで、システムコントローラ126により継続的に実行される。   Next, based on the current position of the carriage 41 acquired from the linear encoder 51, the system controller 126 checks whether or not the current position of the reflective optical sensor 502 is out of the predetermined effective range SA (S210). If the current position of the reflective optical sensor 502 is still within the predetermined effective range SA, the system controller 126 returns to step S206 again, and again reflects the reflective optical sensor control unit 508. The data is acquired from, and it is checked whether or not the data is the minimum value (S208). The acquisition of these data (S206) and the check (S208) of whether or not it is the minimum value are continuously executed by the system controller 126 until the current position of the reflective optical sensor 502 is out of the predetermined effective range SA.

ここで、ステップS210において、反射型光学センサ502の現在位置が所定の有効範囲SAから外れていた場合には、システムコントローラ126は、キャリッジ41を所定の位置で停止させる。これにより、プラテン14の調査処理が終了する。   Here, in step S210, when the current position of the reflective optical sensor 502 is out of the predetermined effective range SA, the system controller 126 stops the carriage 41 at the predetermined position. Thereby, the investigation process of the platen 14 is completed.

<しきい値変更手順>
次にこのようにしてプラテン14を調査して得られた最小値Vcに基づき、所定のしきい値V0を変更するときの処理の手順について説明する。
<Threshold change procedure>
Next, the procedure for changing the predetermined threshold value V0 based on the minimum value Vc obtained by examining the platen 14 in this manner will be described.

図24は、所定のしきい値V0を変更する際に行う処理の流れを示したフローチャートである。システムコントローラ126は、プラテン14の調査の結果から最小値Vcを取得した後(S302)、その取得した最小値Vcと所定の基準値Vkとを比較する(S304)。そして、その取得した最小値Vcが所定の基準値Vkを下回るか否かをチェックする(S306)。そして、取得した最小値Vcが所定の基準値Vkを下回らない場合には、システムコントローラ126は、しきい値V0を変更する必要がないと判断して、直ちに処理を終了する。一方、取得した最小値Vcが所定の基準値Vkを下回っている場合には、システムコントローラ126は、しきい値V0を変更する必要があると判断して、取得した最小値Vcと、媒体検出時に媒体Sの検出により得られる信号レベルVb(図22参照)との間に設定されるような、新たなしきい値Vnを算出する(S308)。
そして、システムコントローラ126は、算出した新たなしきい値Vnを元のしきい値V0に置き換えてメインメモリ127等に記憶して、次回の媒体検出時からこの新たなしきい値Vnが使用されるようにする(S310)。
FIG. 24 is a flowchart showing a flow of processing performed when the predetermined threshold value V0 is changed. The system controller 126 acquires the minimum value Vc from the result of the investigation of the platen 14 (S302), and then compares the acquired minimum value Vc with a predetermined reference value Vk (S304). Then, it is checked whether or not the acquired minimum value Vc is below a predetermined reference value Vk (S306). If the acquired minimum value Vc does not fall below the predetermined reference value Vk, the system controller 126 determines that there is no need to change the threshold value V0, and immediately ends the process. On the other hand, if the acquired minimum value Vc is below the predetermined reference value Vk, the system controller 126 determines that the threshold value V0 needs to be changed, and acquires the acquired minimum value Vc and the medium detection. A new threshold value Vn that is sometimes set between the signal level Vb (see FIG. 22) obtained by detection of the medium S is calculated (S308).
Then, the system controller 126 replaces the calculated new threshold value Vn with the original threshold value V0 and stores it in the main memory 127 or the like so that the new threshold value Vn is used from the next medium detection time. (S310).

なお、前述した実施の形態では、最小値Vcに基づき所定のしきい値V0を変更したが、本発明にあっては、反射型光学センサから出力される信号のレベルがプラスマイナス逆である場合には、当該信号から最大値を取得して当該最大値に基づき所定のしきい値V0を変更するようにしても構わない。   In the embodiment described above, the predetermined threshold value V0 is changed based on the minimum value Vc. However, in the present invention, the level of the signal output from the reflective optical sensor is reversed in the plus and minus directions. Alternatively, the maximum value may be acquired from the signal and the predetermined threshold value V0 may be changed based on the maximum value.

===サンプリング周期===
本実施形態に係るインクジェットプリンタ1では、印刷を行う際に媒体Sを検出するときにA/D変換部510が行うサンプリングの周期と、プラテン14を調査するときにA/D変換部510が行うサンプリングの周期とが異なっている。具体的には、プラテン14を調査するときにA/D変換部510が行うサンプリングの周期が、印刷を行う際に媒体Sを検出するときにA/D変換部510が行うサンプリングの周期よりも短く設定されている。
=== Sampling period ===
In the inkjet printer 1 according to the present embodiment, the A / D conversion unit 510 performs the sampling cycle performed by the A / D conversion unit 510 when the medium S is detected during printing and the platen 14 is investigated. The sampling cycle is different. Specifically, the sampling cycle performed by the A / D conversion unit 510 when investigating the platen 14 is greater than the sampling cycle performed by the A / D conversion unit 510 when detecting the medium S during printing. It is set short.

図25は、A/D変換部510が行うサンプリングの周期をそれぞれ示したものである。図25Aは、印刷を行う際に媒体Sを検出するときにA/D変換部510が行うサンプリングの周期を示し、図25Bは、プラテン14を調査するときにA/D変換部510が行うサンプリングの周期を示したものである。   FIG. 25 shows the sampling periods performed by the A / D converter 510. FIG. 25A shows a sampling cycle performed by the A / D converter 510 when the medium S is detected during printing, and FIG. 25B shows sampling performed by the A / D converter 510 when examining the platen 14. It shows the period of.

印刷を行う際に媒体Sを検出するときには、図25Aに示すように、A/D変換部510は、周期Ts1にて反射型光学センサ502から出力された信号のサンプリングを実行する。一方、プラテン14を調査するときには、 図25Bに示すように、A/D変換部510は、周期Ts1よりみ短い周期Ts2にて、反射型光学センサ502から出力された信号のサンプリングを実行する。なお、図25Aおよび図25Bの中の「▽」の印は、サンプリングが行われる位置を示している。   When detecting the medium S during printing, as shown in FIG. 25A, the A / D converter 510 samples the signal output from the reflective optical sensor 502 at the cycle Ts1. On the other hand, when investigating the platen 14, as shown in FIG. 25B, the A / D conversion unit 510 performs sampling of the signal output from the reflective optical sensor 502 at a cycle Ts2 shorter than the cycle Ts1. In FIG. 25A and FIG. 25B, a mark “▽” indicates a position where sampling is performed.

このように印刷を行う際に媒体Sを検出するときにA/D変換部510が行うサンプリングの周期と、プラテン14の調査を行うときにA/D変換部510が行うサンプリングの周期とを異ならせることができる理由は、次の通りである。すなわち、印刷を行う際に媒体Sを検出する場合には、ホストコンピュータ140から送られてきた印刷データをシステムコントローラ126が順次処理する必要があることから、システムコントローラ126の処理負荷が大幅に増大することになる。このため、システムコントローラ126は、反射型光学センサ制御部508を通じて送られてくる反射型光学センサ502からの信号のデータの処理に大きな能力を当てることができない。したがって、非常に限られた能力で、反射型光学センサ制御部508を通じて送られてくる反射型光学センサ502からの信号のデータを処理しなければならない。このようなことから、印刷を行う際に媒体Sを検出するときにA/D変換部510により行われるサンプリングの周期を短く設定するのは、非常に困難である。   In this way, the sampling cycle performed by the A / D conversion unit 510 when detecting the medium S during printing is different from the sampling cycle performed by the A / D conversion unit 510 when investigating the platen 14. The reason why this can be done is as follows. That is, when the medium S is detected when printing is performed, the print data sent from the host computer 140 needs to be sequentially processed by the system controller 126, so the processing load on the system controller 126 is greatly increased. Will do. For this reason, the system controller 126 cannot apply a great capability to the processing of signal data from the reflective optical sensor 502 sent through the reflective optical sensor control unit 508. Therefore, the signal data from the reflective optical sensor 502 sent through the reflective optical sensor control unit 508 must be processed with very limited capability. For this reason, it is very difficult to set the sampling cycle performed by the A / D conversion unit 510 short when the medium S is detected during printing.

これに対して、プラテン14の調査を行うときには、システムコントローラ126は、ホストコンピュータ140からの印刷データを処理するわけではないため、A/D変換部510から送られてきたデータをスムーズに処理することができる。このようなことから、プラテン14の調査を行うときには、A/D変換部510が行うサンプリングの周期を短くすることができる。   On the other hand, when the platen 14 is examined, the system controller 126 does not process the print data from the host computer 140, and therefore smoothly processes the data sent from the A / D conversion unit 510. be able to. For this reason, when investigating the platen 14, the sampling period performed by the A / D converter 510 can be shortened.

なお、A/D変換部510により行われるサンプリングの周期は、システムコントローラ126からの命令によって反射型光学センサ制御部508が変更する。   Note that the sampling period performed by the A / D conversion unit 510 is changed by the reflective optical sensor control unit 508 according to a command from the system controller 126.

このようにプラテン14を調査するときにA/D変換部510が行うサンプリングの周期が、印刷を行う際に媒体Sを検出するときにA/D変換部510が行うサンプリングの周期よりも短く設定されることによって、次のようなメリットがある。   Thus, the sampling cycle performed by the A / D conversion unit 510 when investigating the platen 14 is set to be shorter than the sampling cycle performed by the A / D conversion unit 510 when the medium S is detected during printing. By doing so, there are the following merits.

(A)プラテン14の調査時間を短縮することができる。
プラテン14の調査を行うときには、A/D変換部510が行うサンプリングの周期を短く設定することができることから、キャリッジ41の移動速度、即ち反射型光学センサ502の移動速度をアップすることによって、プラテン14の調査に要する時間を大幅に短縮することができる。すなわち、印刷を行う際に媒体Sを検出するときとサンプリング数が同一であっても、プラテン14を調査する場合の方が、処理時間が短くて済む。
(A) The investigation time of the platen 14 can be shortened.
When investigating the platen 14, the sampling period performed by the A / D conversion unit 510 can be set short. Therefore, by increasing the moving speed of the carriage 41, that is, the moving speed of the reflective optical sensor 502, The time required for 14 surveys can be greatly reduced. That is, even when the number of samplings is the same as when the medium S is detected during printing, the processing time is shorter when the platen 14 is examined.

(B)プラテン14の調査を高精度に実施することができる。
プラテン14の調査を行うときには、A/D変換部510が行うサンプリングの周期を短く設定することができることから、キャリッジ41の移動速度、即ち反射型光学センサ502の移動速度が変わらなければ、プラテン14の調査をより高精度に実施することができる。すなわち、プラテン14上のサンプリング間隔が狭まることから、プラテン14の状態をより詳しく調べることができる。これによって、プラテン14上に発生した小さな汚れDTについても検出することができる。
(B) The platen 14 can be investigated with high accuracy.
When the platen 14 is investigated, the sampling period performed by the A / D conversion unit 510 can be set short. Therefore, if the moving speed of the carriage 41, that is, the moving speed of the reflective optical sensor 502 does not change, the platen 14 is changed. Can be conducted with higher accuracy. That is, since the sampling interval on the platen 14 is narrowed, the state of the platen 14 can be examined in more detail. Thereby, it is possible to detect even a small dirt DT generated on the platen 14.

図26Aは、A/D変換部510が行うサンプリングの周期を短く設定してプラテン14の状態を詳しく調べたときに得られたサンプリング結果を説明したものである。A/D変換部510により短い周期でサンプリングを行った場合には、同図に示すように、プラテン14上に発生した小さな汚れDTについても、振幅が大きく急峻なパルスWdとして検出することができる。これにより、このような急峻なパルスWdに基づき、前述したように媒体Sの有無の判断基準となる所定のしきい値V0を変更することができる。このようなことから、プラテン14上に発生した小さな汚れDT等についても早期に発見して、その汚れDTに応じて所定のしきい値V0を早期に対応させることができ、プラテン14の汚れDTによって媒体Sの誤検出が生じるのを事前に防止することができる。   FIG. 26A illustrates a sampling result obtained when the state of the platen 14 is examined in detail by setting the sampling period performed by the A / D conversion unit 510 short. When sampling is performed with a short period by the A / D conversion unit 510, as shown in the figure, even a small dirt DT generated on the platen 14 can be detected as a steep pulse Wd having a large amplitude. . Thereby, based on such a steep pulse Wd, it is possible to change the predetermined threshold value V0 which is a criterion for determining the presence or absence of the medium S as described above. For this reason, the small dirt DT and the like generated on the platen 14 can be found early, and the predetermined threshold value V0 can be dealt with early according to the dirt DT. Therefore, it is possible to prevent erroneous detection of the medium S in advance.

一方、印刷を行う際に媒体Sを検出するときには、プラテン14の調査を行うときよりも長い周期でA/D変換部510によりサンプリングが実施されるため、プラテン14の調査を行う場合よりもサンプリング間隔が広くなり、プラテン14の状態が詳しく検知されない。このため、プラテン14上に発生した小さな汚れDTについても、プラテン14の調査を行った場合のように検出されることはない。   On the other hand, when the medium S is detected during printing, sampling is performed by the A / D conversion unit 510 at a longer period than when the platen 14 is investigated, and therefore sampling is performed more than when the platen 14 is examined. The interval becomes wide and the state of the platen 14 is not detected in detail. For this reason, even the small dirt DT generated on the platen 14 is not detected as in the case where the platen 14 is investigated.

図26Bは、印刷を行う際に媒体を検出するときに、長い周期でサンプリングを実施した場合のサンプリング結果を説明したものである。印刷を行う際に媒体Sを検出するときに、プラテン14の調査を行うときよりも長い周期でサンプリングを行った場合、同図に示すように、プラテン14上に小さな汚れDTは、プラテン14の調査時のように大きな振幅のパルスWd(図26A参照)としてではなく、それよりも振幅の小さいパルスWeとして検出される。したがって、媒体Sか否かの判断にあっては、このような振幅の小さいパルスWeを媒体Sとして判断されることはない。   FIG. 26B illustrates a sampling result when sampling is performed with a long period when a medium is detected during printing. When the medium S is detected during printing, if sampling is performed with a longer period than when the platen 14 is examined, as shown in the figure, small dirt DT on the platen 14 It is not detected as a pulse Wd having a large amplitude as in the investigation (see FIG. 26A), but as a pulse We having a smaller amplitude. Therefore, in determining whether or not the medium S, the pulse We having such a small amplitude is not determined as the medium S.

これらのことから、プラテン14の調査を行うときに、印刷を行う際に媒体Sを検出するときよりも短い周期でサンプリングをすることによって、印刷を行う際に媒体Sを検出するときには検出することができないような小さな汚れDTについても、プラテン14の調査を行うときに事前に検出することができる。しかも、その小さな汚れDTに対応して、所定のしきい値V0を早期に変更しておけば、印刷を行う際に媒体Sを検出するときに、その小さな汚れDTを媒体Sと誤検出してしまうのをより一層防止することができる。   For these reasons, when the platen 14 is investigated, the sampling is performed at a shorter cycle than when the medium S is detected when performing printing, and detection is performed when the medium S is detected when performing printing. Even small dirt DT that cannot be detected can be detected in advance when the platen 14 is investigated. Moreover, if the predetermined threshold value V0 is changed at an early stage corresponding to the small stain DT, the small stain DT is erroneously detected as the medium S when the medium S is detected during printing. Can be further prevented.

以上本実施形態に係るインクジェットプリンタ1にあっては、プラテン14を調査するときに実施するサンプリングの周期が、印刷を行う際に媒体Sを検出するときに実施するサンプリングの周期よりも短く設定されていることで、プラテン14の調査に要する時間の短縮を図ることができる。また、プラテン14の調査を高精度に実施してプラテン14上の小さな汚れDT等を事前に精度良く発見して、当該小さな汚れDTに対応して所定のしきい値V0を早期に変更することができ、したがって、印刷を行う際に媒体Sを検出するときの媒体Sの誤検出を十分に防止することが可能となる。   As described above, in the inkjet printer 1 according to the present embodiment, the sampling cycle performed when the platen 14 is examined is set to be shorter than the sampling cycle performed when the medium S is detected during printing. As a result, it is possible to shorten the time required to investigate the platen 14. Further, the platen 14 is surveyed with high accuracy, and small stains DT and the like on the platen 14 are accurately detected in advance, and the predetermined threshold value V0 is changed early corresponding to the small stains DT. Accordingly, it is possible to sufficiently prevent erroneous detection of the medium S when the medium S is detected during printing.

===調査タイミング===
プラテン14の調査を行うタイミングとしては、次の(A)〜(E)などがある。
=== Investigation timing ===
There are the following timings (A) to (E) as the timing at which the platen 14 is investigated.

(A)電源オン時
インクジェットプリンタ1の電源スイッチがオンされた際に、イニシャライズ処理の1つとして、プラテン14の状態を調査して、所定のしきい値V0の再設定の必要があるかどうかチェックする。
(A) When the power is turned on When the power switch of the ink jet printer 1 is turned on, it is necessary to investigate the state of the platen 14 and reset the predetermined threshold value V0 as one of the initialization processes. To check.

(B)印刷ジョブ前
ホストコンピュータ140から送信された印刷データをインクジェットプリンタ1が受信したときに、その印刷データに基づき印刷処理を実行する前に、プラテン14の状態を調査して、所定のしきい値V0の再設定の必要があるかどうかチェックする。
(B) Before Print Job When print data transmitted from the host computer 140 is received by the inkjet printer 1, the state of the platen 14 is checked and a predetermined process is performed before executing print processing based on the print data. Check whether the threshold value V0 needs to be reset.

(C)印刷ジョブ間
ホストコンピュータ140から送られてきた印刷データに基づき印刷処理を実行した後、次の印刷データがホストコンピュータ140から送られてきてその印刷データに基づき印刷処理を実行する前に、プラテン14の状態を調査して、所定のしきい値V0の再設定の必要があるかどうかチェックする。
(C) Between print jobs After executing print processing based on the print data sent from the host computer 140, before the next print data is sent from the host computer 140 and executed based on the print data. Then, the state of the platen 14 is examined to check whether it is necessary to reset the predetermined threshold value V0.

(D)毎ページ
媒体Sを給紙部4から給紙する際、その都度、プラテン14の状態を調査して、所定のしきい値V0の再設定の必要があるかどうかチェックする。
(D) Every page When the medium S is fed from the paper feed unit 4, the state of the platen 14 is checked each time to check whether or not the predetermined threshold value V0 needs to be reset.

(E)縁無し印刷初回実行時
「縁無し印刷」がそのインクジェットプリンタ1にて初めて実行される際に、プラテン14の状態を調査して、所定のしきい値V0を適宜設定する。そのインクジェットプリンタ1にて「縁無し印刷」が初めて実行されるのか否かの判定は、例えば、メインメモリ127等といった、インクジェットプリンタ1に搭載された適宜な記憶部に記憶された情報に基づき行う。つまり、例えば、メインメモリ127等の適宜な記憶部には、そのインクジェットプリンタ1にて「縁無し印刷」が今までに実行されたか否かに関する実行履歴情報が記憶されている。このインクジェットプリンタ1が製品として出荷される際には、「縁無し印刷」が未実行であるとの情報が実行履歴情報としてメインメモリ127等に記憶されている。「縁無し印刷」が実行された場合には、この実行履歴情報がシステムコントローラ126により変更される。
(E) First execution of borderless printing When “marginless printing” is executed for the first time in the inkjet printer 1, the state of the platen 14 is examined, and a predetermined threshold value V0 is appropriately set. The determination whether or not “marginless printing” is executed for the first time in the inkjet printer 1 is performed based on information stored in an appropriate storage unit mounted on the inkjet printer 1 such as the main memory 127, for example. . That is, for example, in an appropriate storage unit such as the main memory 127, execution history information regarding whether or not “marginless printing” has been executed so far in the inkjet printer 1 is stored. When the inkjet printer 1 is shipped as a product, information that “marginless printing” has not been executed is stored in the main memory 127 or the like as execution history information. When “marginless printing” is executed, the execution history information is changed by the system controller 126.

システムコントローラ126は、「縁無し印刷」が実行される際、メモリメモリ127等に記憶された実行履歴情報をチェックする。そして、システムコントローラ126は、「縁無し印刷」が初めて実行されるのか否かを判定する。ここで、「縁無し印刷」が初めて実行されると判定した場合には、システムコントローラ126は、反射型光学センサ502の発光部504から光を発して、プラテン14の状態を調査する。そして、その調査結果に基づき、所定のしきい値V0を適宜設定する。   The system controller 126 checks execution history information stored in the memory memory 127 or the like when “marginless printing” is executed. Then, the system controller 126 determines whether or not “marginless printing” is executed for the first time. When it is determined that “marginless printing” is executed for the first time, the system controller 126 emits light from the light emitting unit 504 of the reflective optical sensor 502 and examines the state of the platen 14. Then, based on the investigation result, a predetermined threshold value V0 is set as appropriate.

なお、本発明においては、必ずしもこれら(A)〜(E)のタイミングで実行される必要はなく、これら(A)〜(E)以外の他のタイミングでプラテン14の調査が実行されても良い。   In the present invention, the platen 14 need not be executed at the timings (A) to (E), and the platen 14 may be investigated at other timings other than the timings (A) to (E). .

===印刷システム等の構成===
次に、本発明に係る印刷システムの一例として、印刷装置としてインクジェットプリンタを備えた印刷システムを例にして説明する。
=== Configuration of Printing System etc. ===
Next, as an example of a printing system according to the present invention, a printing system including an inkjet printer as a printing apparatus will be described as an example.

図27は、印刷システムの外観構成を示した説明図である。印刷システム1000は、コンピュータ本体1102と、表示装置1104と、インクジェットプリンタ1などの印刷装置1106と、入力装置1108と、読取装置1110とを備えている。コンピュータ本体1102は、本実施形態ではミニタワー型の筐体に収納されているが、これに限られるものではない。表示装置1104は、CRT(Cathode Ray Tube:陰極線管)やプラズマディスプレイや液晶表示装置等が用いられるのが一般的であるが、これに限られるものではない。印刷装置1106は、上記に説明されたプリンタが用いられている。入力装置1108は、本実施形態ではキーボード1108Aとマウス1108Bが用いられているが、これに限られるものではない。読取装置1110は、本実施形態ではフレキシブルディスクドライブ装置1110AとCD−ROMドライブ装置1110Bが用いられているが、これに限られるものではなく、例えばMO(Magnet Optical)ディスクドライブ装置やDVD(Digital Versatile Disk)等の他のものであっても良い。   FIG. 27 is an explanatory diagram showing an external configuration of the printing system. The printing system 1000 includes a computer main body 1102, a display device 1104, a printing device 1106 such as the inkjet printer 1, an input device 1108, and a reading device 1110. In this embodiment, the computer main body 1102 is housed in a mini-tower type housing, but is not limited thereto. The display device 1104 is generally a CRT (Cathode Ray Tube), a plasma display, a liquid crystal display device, or the like, but is not limited thereto. The printer described above is used as the printing apparatus 1106. In this embodiment, the input device 1108 is a keyboard 1108A and a mouse 1108B, but is not limited thereto. In this embodiment, the reading device 1110 uses a flexible disk drive device 1110A and a CD-ROM drive device 1110B. However, the reading device 1110 is not limited to this. For example, an MO (Magnet Optical) disk drive device or a DVD (Digital Versatile) is used. Disk) etc. may be used.

図28は、図27に示した印刷システムの構成を示すブロック図である。コンピュータ本体1102が収納された筐体内にRAM等の内部メモリ1202と、ハードディスクドライブユニット1204等の外部メモリがさらに設けられている。   FIG. 28 is a block diagram showing the configuration of the printing system shown in FIG. An internal memory 1202 such as a RAM and an external memory such as a hard disk drive unit 1204 are further provided in a housing in which the computer main body 1102 is housed.

上述したインクジェットプリンタ1の動作を制御するコンピュータプログラムは、例えばインターネット等の通信回線を経由して、印刷装置1106に接続されたコンピュータ1000等にダウンロードさせることができるほか、コンピュータによる読み取り可能な記録媒体Sに記録して配布等することもできる。記録媒体としては、例えば、フレキシブルディスクFD、CD−ROM、DVD−ROM、光磁気ディスクMO、ハードディスク、メモリ等の各種記録媒体を用いることができる。なお、このような記憶媒体に記憶された情報は、各種の読取装置1110によって、読み取り可能である。   The computer program for controlling the operation of the inkjet printer 1 described above can be downloaded to a computer 1000 or the like connected to the printing apparatus 1106 via a communication line such as the Internet, for example, and can be read by a computer. It can be recorded in S and distributed. As the recording medium, for example, various recording media such as a flexible disk FD, a CD-ROM, a DVD-ROM, a magneto-optical disk MO, a hard disk, and a memory can be used. Note that information stored in such a storage medium can be read by various reading devices 1110.

なお、以上の説明においては、印刷装置1106が、コンピュータ本体1102、表示装置1104、入力装置1108、及び、読取装置1110と接続されて印刷システムを構成した例について説明したが、これに限られるものではない。例えば、印刷システムが、コンピュータ本体1102と印刷装置1106から構成されても良く、印刷システムが表示装置1104、入力装置1108及び読取装置1110のいずれかを備えていなくても良い。また、例えば、印刷装置1106が、コンピュータ本体1102、表示装置1104、入力装置1108、及び、読取装置1110のそれぞれの機能又は機構の一部を持っていても良い。一例として、印刷装置1106が、画像処理を行う画像処理部、各種の表示を行う表示部、及び、デジタルカメラ等により撮影された画像データを記録した記録メディアを着脱するための記録メディア着脱部等を有する構成としても良い。   In the above description, an example in which the printing apparatus 1106 is connected to the computer main body 1102, the display apparatus 1104, the input apparatus 1108, and the reading apparatus 1110 to configure the printing system has been described, but the present invention is not limited thereto. is not. For example, the printing system may be configured by the computer main body 1102 and the printing device 1106, and the printing system may not include any of the display device 1104, the input device 1108, and the reading device 1110. For example, the printing apparatus 1106 may have a part of the functions or mechanisms of the computer main body 1102, the display apparatus 1104, the input apparatus 1108, and the reading apparatus 1110. As an example, the printing apparatus 1106 includes an image processing unit that performs image processing, a display unit that performs various displays, and a recording medium attachment / detachment unit for attaching / detaching a recording medium that records image data captured by a digital camera or the like. It is good also as a structure which has.

このようにして実現された印刷システムは、システム全体として従来システムよりも優れたシステムとなる。   The printing system realized in this way is a system superior to the conventional system as a whole system.

===その他の実施の形態===
以上、一実施形態に基づき、本発明に係るプリンタ等の印刷装置について説明したが、上記の実施の形態は、本発明の理解を容易にするためのものであり、本発明を限定して解釈するためのものではない。本発明は、その趣旨を逸脱することなく、変更または改良され得るとともに、本発明には、その等価物が含まれることは言うまでもない。特に、以下に述べる実施形態であっても、本発明に係る印刷装置に含まれるものである。
=== Other Embodiments ===
As described above, the printing apparatus such as a printer according to the present invention has been described based on one embodiment. However, the above-described embodiment is for facilitating the understanding of the present invention, and the present invention is limited and interpreted. Not meant to be The present invention can be changed or improved without departing from the gist thereof, and needless to say, the present invention includes equivalents thereof. In particular, even the embodiments described below are included in the printing apparatus according to the present invention.

また、本実施形態において、ハードウェアによって実現されていた構成の一部又は全部をソフトウェアによって置き換えてもよく、逆に、ソフトウェアによって実現されていた構成の一部をハードウェアによって置き換えてもよい。   In the present embodiment, part or all of the configuration realized by hardware may be replaced by software, and conversely, part of the configuration realized by software may be replaced by hardware.

また、印刷装置側にて行っていた処理の一部をホスト側にて行ってよく、また印刷装置とホストの間に専用の処理装置を介設して、この処理装置にて処理の一部を行わせるようにしてもよい。   In addition, a part of processing performed on the printing apparatus side may be performed on the host side, and a dedicated processing apparatus is provided between the printing apparatus and the host, and a part of processing is performed on this processing apparatus. May be performed.

<印刷部について>
前述した実施の形態では、本発明の印刷部として、図5に示すようなヘッド21に設けられたインクを吐出するノズル♯1〜♯180が例にして説明したが、本発明の印刷部は、このようなインクを吐出するノズル♯1〜♯180に限らず、他の形態のインク吐出部を備えた印刷部であってもよく、また、インクを吐出する以外に他の方式により媒体に対して印刷を行う印刷部であっても構わない。例えば、ドットインパクト方式により媒体に対して印刷を行ったり、またレーザービーム方式により媒体に対して印刷を行ったり、また熱転写方式や昇華型方式など、あらゆる方式により媒体に対して印刷を行う印刷部であれば、本発明の印刷部に該当する。
<About the printing section>
In the embodiment described above, nozzles # 1 to # 180 for ejecting ink provided in the head 21 as shown in FIG. 5 have been described as examples of the printing unit of the present invention. The printing unit is not limited to the nozzles # 1 to # 180 for discharging such ink, and may be a printing unit having an ink discharging unit of another form. It may be a printing unit that performs printing. For example, a printing unit that prints on a medium by a dot impact method, prints on a medium by a laser beam method, or prints on a medium by any method such as a thermal transfer method or a sublimation method. If so, it corresponds to the printing section of the present invention.

<支持部について>
前述した実施の形態では、本発明の支持部として、図11〜図13に示すようなプラテン14を例にして説明したが、本発明の支持部にあっては、このようなプラテン14に限らず、印刷が行われる媒体Sを支持する部分であれば、どのような部分であっても、本発明の支持部に含まれる。
<About support part>
In the above-described embodiment, the platen 14 as shown in FIGS. 11 to 13 has been described as an example of the support part of the present invention. However, the support part of the present invention is not limited to such a platen 14. First, any portion that supports the medium S on which printing is performed is included in the support portion of the present invention.

<光学センサについて>
前述した実施の形態では、本発明の光学センサとして、前述したような反射型光学センサ502を例にして説明していたが、本発明の光学センサにあっては、このような反射型光学センサに限らず、媒体Sに向けて光を発して、媒体Sによって反射された光を検知するセンサであれば、どのようなセンサであっても構わない。
<About optical sensors>
In the embodiment described above, the reflection type optical sensor 502 as described above has been described as an example of the optical sensor of the present invention. However, in the optical sensor of the present invention, such a reflection type optical sensor is used. Any sensor that emits light toward the medium S and detects the light reflected by the medium S may be used.

また、前述した実施の形態では、本発明の光学センサとして、キャリッジ41に設置され、媒体Sまたはプラテン(支持部)14に対して相対的に移動可能に設けられた反射型光学センサ502を例にして説明したが、本発明の光学センサにあっては、必ずしも媒体Sまたはプラテン(支持部)14に対して相対的に移動可能に設けられる必要はなく、また必ずしもキャリッジ41に設置される必要もない。   Further, in the above-described embodiment, as the optical sensor of the present invention, the reflection type optical sensor 502 installed on the carriage 41 and provided so as to be movable relative to the medium S or the platen (supporting portion) 14 is taken as an example. As described above, in the optical sensor of the present invention, it is not always necessary to be provided so as to be relatively movable with respect to the medium S or the platen (supporting portion) 14, and it is not necessarily provided on the carriage 41. Nor.

<光学センサで生成された信号>
前述した実施の形態では、本発明の光学センサとして反射型光学センサ502で生成された信号がアナログ信号であったが、本発明において光学センサで生成される信号はアナログ信号ではなく、デジタル信号などであっても構わない。
<Signal generated by optical sensor>
In the above-described embodiment, the signal generated by the reflective optical sensor 502 as the optical sensor of the present invention is an analog signal. However, in the present invention, the signal generated by the optical sensor is not an analog signal but a digital signal or the like. It does not matter.

<媒体の検出について>
前述した実施の形態では、本発明の光学センサとして反射型光学センサ502がキャリッジ41に設けられ、キャリッジ41の移動により、媒体Sの端部位置や幅寸法、サイズなどを検出することができたが、本発明の光学センサによる媒体の検出にあっては、必ずしもこのような検出が行える必要はなく、例えば、媒体の有無を検出するなど、媒体の検出が行えれば、どのような形で媒体の検出を行っても構わない。
<About media detection>
In the embodiment described above, the reflection type optical sensor 502 is provided on the carriage 41 as the optical sensor of the present invention, and the end position, width dimension, size, etc. of the medium S can be detected by the movement of the carriage 41. However, in the detection of the medium by the optical sensor of the present invention, it is not always necessary to be able to perform such detection. For example, if the medium can be detected, for example, by detecting the presence or absence of the medium, in any form. The medium may be detected.

<サンプリングについて>
前述した実施の形態では、印刷を行う際に媒体を検出するために実施するサンプリングと、プラテンを調査するときに実施するサンプリングとが、同一のコントローラ(システムコントローラ126)により実行されていたが、本発明にあってはこのような場合に限らず、それぞれ別のコントローラによりサンプリングが実行されても良い。
<About sampling>
In the above-described embodiment, the sampling performed to detect the medium when performing printing and the sampling performed when examining the platen are performed by the same controller (system controller 126). The present invention is not limited to such a case, and sampling may be executed by different controllers.

<移動範囲について>
前述した実施の形態では、所定のしきい値を変更する際に、本発明の光学センサ(反射型光学センサ502)が本発明の支持部(プラテン14)に対して移動する範囲が、支持部全体にわたっていたが、本発明にあってはこのように光学センサの移動範囲が必ずしも支持部全体にわたっている必要はなく、支持部の一部のみであっても良い。
<About moving range>
In the embodiment described above, the range in which the optical sensor (reflection optical sensor 502) of the present invention moves relative to the support portion (platen 14) of the present invention when the predetermined threshold value is changed is the support portion. However, in the present invention, the movement range of the optical sensor is not necessarily limited to the entire support portion, and may be only a part of the support portion.

<印刷装置について>
前述した実施の形態では、本発明に係る印刷装置として、インクジェットプリンタを例にして説明したが、本発明に係る印刷装置にあっては、このような印刷装置に限らず、例えば、ドットインパクト式プリンタやレーザービーム式プリンタなど、媒体に対して印刷を行う装置であれば、どのような形態の装置であっても構わない。
<About printing devices>
In the above-described embodiment, the ink jet printer has been described as an example of the printing apparatus according to the present invention. However, the printing apparatus according to the present invention is not limited to such a printing apparatus. Any type of apparatus may be used as long as it is an apparatus that prints on a medium, such as a printer or a laser beam printer.

<媒体について>
媒体については、普通紙やマット紙、カット紙、光沢紙、ロール紙、用紙、写真用紙、ロールタイプ写真用紙等をはじめ、これらの他に、OHPフィルムや光沢フィルム等のフィルム材や布材、金属板材などであっても構わない。すなわち、インクの吐出対象となり得るものであれば、どのような媒体であっても構わない。
<About media>
For media, including plain paper, matte paper, cut paper, glossy paper, roll paper, paper, photo paper, roll-type photo paper, etc., in addition to these, film materials and cloth materials such as OHP film and gloss film, It may be a metal plate material or the like. That is, any medium can be used as long as it can be an ink ejection target.

<印刷システムについて>
前述した実施の形態では、本発明に係る印刷システムとして、コンピュータ本体にインクジェットプリンタを接続した構成について説明したが、本発明に係る印刷システムにあっては、コンピュータ本体に接続される印刷装置は、このようなインクジェットプリンタに限らず、他のタイプの印刷装置であっても良い。例えば、ドットインパクト式プリンタやレーザービーム式プリンタなど、媒体に対して印刷を行う装置であれば、どのような形態の装置であっても構わない。
<About the printing system>
In the above-described embodiment, the configuration in which the inkjet printer is connected to the computer main body has been described as the printing system according to the present invention. However, in the printing system according to the present invention, the printing apparatus connected to the computer main body includes: In addition to such an ink jet printer, other types of printing apparatuses may be used. For example, any type of apparatus may be used as long as it is an apparatus that performs printing on a medium, such as a dot impact printer or a laser beam printer.

また、前述した実施の形態では、印刷システムとして、コンピュータ本体1102の他に、表示装置1104と、入力装置1108と、読取装置1110とを備えた構成について説明したが、本発明に係る印刷システムにあっては、必ずしもこのような構成を備える必要はなく、印刷装置の他に、コンピュータ本体1102を備えていれば良い。   Further, in the above-described embodiment, the configuration including the display device 1104, the input device 1108, and the reading device 1110 in addition to the computer main body 1102 has been described as the printing system. In this case, it is not always necessary to provide such a configuration, and it is sufficient if the computer main body 1102 is provided in addition to the printing apparatus.

本発明に係る印刷装置の一実施形態の斜視図。1 is a perspective view of an embodiment of a printing apparatus according to the present invention. 印刷装置の内部構成を説明した斜視図。FIG. 3 is a perspective view illustrating an internal configuration of the printing apparatus. 印刷装置の搬送部を示す断面図。Sectional drawing which shows the conveyance part of a printing apparatus. 印刷装置のシステム構成を示すブロック構成図。1 is a block configuration diagram showing a system configuration of a printing apparatus. 印刷装置のインク吐出部の一例を示す平面図。FIG. 3 is a plan view illustrating an example of an ink discharge unit of a printing apparatus. リニア式エンコーダの構成を模式的に示した説明図。Explanatory drawing which showed the structure of the linear encoder typically. 図7Aは、正転時のリニア式エンコーダの出力波形を示したタイミングチャートであり、図7Bは、逆転時のリニア式エンコーダの出力波形を示したタイミングチャートである。FIG. 7A is a timing chart showing the output waveform of the linear encoder during forward rotation, and FIG. 7B is a timing chart showing the output waveform of the linear encoder during reverse rotation. 印刷処理の一例を説明するフローチャート。6 is a flowchart for explaining an example of printing processing. 通常印刷時の印刷領域Pと媒体Sとの関係を説明した説明図。FIG. 3 is an explanatory diagram illustrating a relationship between a printing area P and a medium S during normal printing. 縁無し印刷時の印刷領域Pと媒体Sとの関係を説明した説明図。FIG. 5 is an explanatory diagram illustrating a relationship between a printing area P and a medium S during borderless printing. 本発明のインク回収部の一実施形態を示した平面図。The top view which showed one Embodiment of the ink collection | recovery part of this invention. 本発明のインク回収部の一実施形態を示した斜視図。The perspective view which showed one Embodiment of the ink collection | recovery part of this invention. 本発明のインク回収部の一実施形態を示した断面図。FIG. 3 is a cross-sectional view illustrating an embodiment of an ink recovery unit of the present invention. 縁無し印刷の他例を説明した説明図。Explanatory drawing explaining the other example of borderless printing. 本発明の光学センサの一実施形態を説明する説明図。Explanatory drawing explaining one Embodiment of the optical sensor of this invention. 媒体検出処理の一例を説明した説明図。Explanatory drawing explaining an example of medium detection processing. 本発明の光学センサから出力される信号を説明する説明図。Explanatory drawing explaining the signal output from the optical sensor of this invention. プラテンに汚れが生じた場合の一例を示す説明図。Explanatory drawing which shows an example when dirt arises in a platen. プラテンの汚れにより生じる不具合を説明する説明図。Explanatory drawing explaining the malfunction which arises by the stain | pollution | contamination of a platen. プラテンの調査方法を説明するための平面図。The top view for demonstrating the inspection method of a platen. プラテンの調査方法を説明するための側面図。The side view for demonstrating the inspection method of a platen. 調査時にセンサから出力される信号の一例を示した説明図。Explanatory drawing which showed an example of the signal output from a sensor at the time of investigation. プラテンの調査手順の一例を示したフローチャート。The flowchart which showed an example of the investigation procedure of a platen. しきい値の再設定を行う場合の手順の一例を示したフローチャート。The flowchart which showed an example of the procedure in the case of resetting a threshold value. 図25Aは、媒体を検出するときのサンプリング周期を示した図であり、図25Bは、プラテンを調査するときのサンプリング周期を示した図である。FIG. 25A is a diagram illustrating a sampling cycle when detecting a medium, and FIG. 25B is a diagram illustrating a sampling cycle when investigating a platen. 図26Aは、短いサンプリング周期でプラテンの調査を行ったときのサンプリング結果を説明したものであり、図26Bは、長いサンプリング周期で媒体の検出を行ったときのサンプリング結果を説明したものである。FIG. 26A explains the sampling result when the platen is examined with a short sampling period, and FIG. 26B explains the sampling result when the medium is detected with a long sampling period. 本発明に係る印刷システムの一実施形態を説明する斜視図。1 is a perspective view for explaining an embodiment of a printing system according to the present invention. 図27の印刷システムの構成を示すブロック構成図。The block block diagram which shows the structure of the printing system of FIG.

符号の説明Explanation of symbols

1 インクジェットプリンタ、2 操作パネル、3 排紙部、4 給紙部、
5 操作ボタン、6 表示ランプ、7 排紙トレー、8 給紙トレー、
11A 紙挿入口、11B ロール紙挿入口、13 給紙ローラ、14 プラテン、
15 紙搬送モータ、17A 搬送ローラ、17B 排紙ローラ、
18A フリーローラ、18B フリーローラ、21 ヘッド、
30 クリーニングユニット、31 ポンプ装置、35 キャッピング装置、
41 キャリッジ、42 キャリッジモータ、44 プーリ、45 タイミングベルト、
46 ガイドレール、48 インクカートリッジ、51 リニア式エンコーダ、
122 バッファメモリ、124 イメージバッファ、126 システムコントローラ、
127 メインメモリ、128 キャリッジモータ制御部、129 EEPROM、
130 搬送制御部、132 ヘッド駆動部、134 ロータリ式エンコーダ、
140 ホストコンピュータ、211 ノズル列、
352 インク回収部、354 溝部、354a 溝部、354b 溝部、
356 吸収材、362 突起部、364 突出部、366 リブ、368 リブ、
452 発光ダイオード、454 コリメータレンズ、456 検出処理部、
458 フォトダイオード、460 信号処理回路、462A コンパレータ、
462B コンパレータ、464 リニア式エンコーダ符号板、
502 反射型光学センサ、504 発光部、506 受光部、
508 反射型光学センサ制御部、510 A/D変換部、
1102 コンピュータ本体、1104 表示装置、1106 印刷装置、
1108 入力装置、1108A キーボード、1108B マウス、
1110 読取装置、1110A フレキシブルディスクドライブ装置、
1110B CD−ROMドライブ装置、1204 ハードディスクドライブユニット、
S 媒体
1 Inkjet printer, 2 operation panel, 3 paper discharge unit, 4 paper supply unit,
5 operation buttons, 6 indicator lamps, 7 paper discharge tray, 8 paper feed tray,
11A paper insertion slot, 11B roll paper insertion slot, 13 paper feed roller, 14 platen,
15 paper transport motor, 17A transport roller, 17B paper discharge roller,
18A free roller, 18B free roller, 21 heads,
30 cleaning unit, 31 pump device, 35 capping device,
41 Carriage, 42 Carriage motor, 44 Pulley, 45 Timing belt,
46 guide rail, 48 ink cartridge, 51 linear encoder,
122 buffer memory, 124 image buffer, 126 system controller,
127 main memory, 128 carriage motor control unit, 129 EEPROM,
130 transport control unit, 132 head drive unit, 134 rotary encoder,
140 host computer, 211 nozzle array,
352 Ink recovery part, 354 groove part, 354a groove part, 354b groove part,
356 Absorber, 362 Projection, 364 Projection, 366 Rib, 368 Rib,
452 Light emitting diode, 454 collimator lens, 456 detection processing unit,
458 photodiode, 460 signal processing circuit, 462A comparator,
462B comparator, 464 linear encoder code plate,
502 reflective optical sensor, 504 light emitting unit, 506 light receiving unit,
508 reflective optical sensor control unit, 510 A / D conversion unit,
1102 Computer main body 1104 Display device 1106 Printing device
1108 input device, 1108A keyboard, 1108B mouse,
1110 reading device, 1110A flexible disk drive device,
1110B CD-ROM drive device, 1204 hard disk drive unit,
S Medium

Claims (15)

媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、
所定のしきい値とを比較して、前記媒体を検出する印刷装置において、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする印刷装置。
A printing section for printing on the medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
A value obtained by sampling the signal generated by the optical sensor at a predetermined period when the optical sensor is moved relative to the support portion during printing;
In a printing apparatus that detects the medium by comparing with a predetermined threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. Then, the printing apparatus is characterized in that the predetermined threshold value is changed based on the value obtained by the sampling.
前記支持部の状態を調査する際に実行される前記サンプリングと、前記印刷を行う際に実行される前記サンプリングとが、同一のコントローラにより行われることを特徴とする請求項1に記載の印刷装置。   The printing apparatus according to claim 1, wherein the sampling executed when investigating the state of the support portion and the sampling executed when performing the printing are performed by the same controller. . 前記印刷を行う際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度と、前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度とが異なることを特徴とする請求項1又は2のいずれか1項に記載の印刷装置。   When the printing is performed, the optical sensor moves relative to the support part, and the optical sensor moves relative to the support part when investigating the state of the support part. The printing apparatus according to claim 1, wherein the moving speed when moving is different. 前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度が、前記印刷を行う際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度よりも速いことを特徴とする請求項3に記載の印刷装置。   The movement speed when the optical sensor moves relative to the support portion when investigating the state of the support portion is such that the optical sensor is relative to the support portion when performing the printing. The printing apparatus according to claim 3, wherein the printing apparatus is faster than a moving speed when moving. 前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記支持部の全体にわたっていることを特徴する請求項1〜4のいずれか1項に記載の印刷装置。   The range in which the optical sensor moves relative to the support portion when changing the predetermined threshold value extends over the entire support portion. A printing apparatus according to 1. 前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記媒体を検出する際に前記光学センサが前記支持部に対して相対的に移動する範囲と等しいことを特徴する請求項1〜5のいずれか1項に記載の印刷装置。   The range in which the optical sensor moves relative to the support portion when changing the predetermined threshold is such that the optical sensor moves relative to the support portion when detecting the medium. The printing apparatus according to claim 1, wherein the printing apparatus is equal to a range to be printed. 前記光学センサから出力された前記信号から最小値または最大値を取得し、その最小値または最大値に基づき、前記所定のしきい値を変更することを特徴とする請求項1〜6のいずれか1項に記載の印刷装置。   The minimum value or the maximum value is obtained from the signal output from the optical sensor, and the predetermined threshold value is changed based on the minimum value or the maximum value. The printing apparatus according to item 1. 前記最小値または前記最大値が所定の基準値に到達しないときには、前記所定のしきい値の変更は行わないことを特徴とする請求項7に記載の印刷装置。   The printing apparatus according to claim 7, wherein the predetermined threshold value is not changed when the minimum value or the maximum value does not reach a predetermined reference value. 前記印刷部により前記媒体に対して印刷が行われていないときに前記支持部の状態が調査されることを特徴とする請求項1〜8のいずれか1項に記載の印刷装置。   The printing apparatus according to claim 1, wherein the state of the support unit is examined when printing is not performed on the medium by the printing unit. 前記印刷装置の電源がオンされた際に前記支持部の状態が調査されることを特徴とする請求項1〜9のいずれか1項に記載の印刷装置。   The printing apparatus according to claim 1, wherein when the power of the printing apparatus is turned on, the state of the support portion is investigated. 前記インク吐出部から媒体の縁に向けてインクを吐出して印刷をする縁無し印刷の実行履歴が記憶されたメモリを備え、
前記縁無し印刷を実行するときに、前記メモリに記憶された前記実行履歴をチェックして前記縁無し印刷が実行されたことがなかった場合には、前記発光部から前記支持部材に向けて光を発して、前記支持部材によって反射された光を前記受光部により受けた際に前記光学センサから出力された前記信号に基づき、前記所定のしきい値を変更すること特徴とする請求項1〜10のいずれか1項に記載の印刷装置。
A memory in which an execution history of borderless printing in which ink is ejected from the ink ejection unit toward the edge of the medium for printing is stored;
When executing the borderless printing, if the execution history stored in the memory is checked and the borderless printing has not been executed, light is emitted from the light emitting unit toward the support member. The predetermined threshold is changed based on the signal output from the optical sensor when the light reflected by the support member is received by the light receiving unit. The printing apparatus according to any one of 10.
前記印刷部が、前記媒体に向けてインクを吐出して印刷を行うことを特徴とする請求項1〜11のいずれか1項に記載の印刷装置。   The printing apparatus according to claim 1, wherein the printing unit performs printing by discharging ink toward the medium. 媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、
所定のしきい値とを比較して、前記媒体を検出する印刷装置において、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更し、
前記支持部の状態を調査する際に実行される前記サンプリングと、前記印刷を行う際に実行される前記サンプリングとが、同一のコントローラにより行われ、
前記支持部の状態を調査する際に前記光学センサが前記支持部に対して相対的に移動するときの移動速度が、前記印刷を行う際に前記光学センサが前記支持部に対して相対的に
移動するときの移動速度よりも速く、
前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記支持部の全体にわたり、
前記所定のしきい値を変更する際に前記光学センサが前記支持部に対して相対的に移動する範囲が、前記媒体を検出する際に前記光学センサが前記支持部に対して相対的に移動
する範囲と等しく、
前記光学センサから出力された前記信号から最小値または最大値を取得し、その最小値または最大値に基づき、前記所定のしきい値を変更し、
前記最小値または前記最大値が所定の基準値に到達しないときには、前記所定のしきい値の変更は行わず、
前記印刷部により前記媒体に対して印刷が行われていないときと、前記印刷装置の電源がオンされた際に、前記支持部の状態が調査され、
前記インク吐出部から媒体の縁に向けてインクを吐出して印刷をする縁無し印刷の実行履歴が記憶されたメモリを備え、
前記縁無し印刷を実行するときに、前記メモリに記憶された前記実行履歴をチェックして前記縁無し印刷が実行されたことがなかった場合には、前記発光部から前記支持部材に向けて光を発して、前記支持部材によって反射された光を前記受光部により受けた際に前記光学センサから出力された前記信号に基づき、前記所定のしきい値を変更し、
前記印刷部が、前記媒体に向けてインクを吐出して印刷を行うことを特徴とする印刷装置。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
A value obtained by sampling the signal generated by the optical sensor at a predetermined period when the optical sensor is moved relative to the support portion during printing;
In a printing apparatus that detects the medium by comparing with a predetermined threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. Then, based on the value obtained by this sampling, the predetermined threshold value is changed,
The sampling executed when investigating the state of the support part and the sampling executed when performing the printing are performed by the same controller,
The movement speed when the optical sensor moves relative to the support portion when investigating the state of the support portion is such that the optical sensor is relative to the support portion when performing the printing. Faster than moving speed when moving,
The range in which the optical sensor moves relative to the support when changing the predetermined threshold is over the entire support.
The range in which the optical sensor moves relative to the support portion when changing the predetermined threshold is such that the optical sensor moves relative to the support portion when detecting the medium. Equal to the range to
Obtaining a minimum or maximum value from the signal output from the optical sensor, and changing the predetermined threshold based on the minimum or maximum value;
When the minimum value or the maximum value does not reach a predetermined reference value, the predetermined threshold value is not changed,
When the printing unit is not printing on the medium and when the printing apparatus is turned on, the state of the support unit is investigated,
A memory in which an execution history of borderless printing in which ink is ejected from the ink ejection unit toward the edge of the medium for printing is stored;
When executing the borderless printing, if the execution history stored in the memory is checked and the borderless printing has not been executed, light is emitted from the light emitting unit toward the support member. Based on the signal output from the optical sensor when the light receiving unit receives the light reflected by the support member, the predetermined threshold is changed,
The printing apparatus, wherein the printing unit performs printing by ejecting ink toward the medium.
媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生成する光学センサとを備えた印刷装置において、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、
所定のしきい値とを比較して、前記媒体を検出する媒体検出方法であって、
前記支持部の状態を調査するために、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする媒体検出方法。
A printing section for printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. A printing apparatus including an optical sensor that generates a signal according to
A value obtained by sampling the signal generated by the optical sensor at a predetermined period when the optical sensor is moved relative to the support portion during printing;
A medium detection method for detecting the medium by comparing with a predetermined threshold,
In order to investigate the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. Then, the predetermined threshold value is changed based on the value obtained by the sampling.
コンピュータ本体と、このコンピュータ本体に接続可能な印刷装置とを具備した印刷システムにおいて、
前記印刷装置は、媒体に対して印刷を行う印刷部と、
印刷部により印刷が行われる媒体を支持する支持部と、
前記支持部に対向してかつ前記支持部に対して相対的に移動可能に設けられ、光を発する発光部と、光を受ける受光部とを有し、前記受光部が受けた光の強さに応じた信号を生
成する光学センサとを備え、
印刷を行う際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を所定の周期でサンプリングをして得られた値と、
所定のしきい値とを比較して、前記媒体を検出する印刷装置であって、
前記支持部の状態を調査する際に、前記光学センサが前記支持部に対して相対的に移動したときに、前記光学センサにより生成された前記信号を前記所定の周期よりも短い周期でサンプリングをして、このサンプリングにより得られた値に基づき、前記所定のしきい値を変更することを特徴とする印刷システム。
In a printing system comprising a computer main body and a printing device connectable to the computer main body,
The printing apparatus includes a printing unit that performs printing on a medium;
A support unit for supporting a medium on which printing is performed by the printing unit;
An intensity of light received by the light receiving unit, the light receiving unit configured to be opposed to the support unit and movable relative to the support unit, and having a light emitting unit that emits light and a light receiving unit that receives light. And an optical sensor that generates a signal according to
A value obtained by sampling the signal generated by the optical sensor at a predetermined period when the optical sensor is moved relative to the support portion during printing;
A printing apparatus that detects the medium by comparing with a predetermined threshold value,
When investigating the state of the support part, when the optical sensor moves relative to the support part, the signal generated by the optical sensor is sampled at a period shorter than the predetermined period. The printing system is characterized in that the predetermined threshold value is changed based on the value obtained by the sampling.
JP2005038398A 2004-03-31 2005-02-15 Printing apparatus, medium detection method, and printing system Expired - Fee Related JP4577037B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2005038398A JP4577037B2 (en) 2004-03-31 2005-02-15 Printing apparatus, medium detection method, and printing system
US11/094,846 US20050225626A1 (en) 2004-03-31 2005-03-31 Printing method, medium detection method, computer-readable storage medium, and printing apparatus
US12/409,046 US20090184992A1 (en) 2004-03-31 2009-03-23 Printing method, medium detection method, computer-readable storage medium, and printing apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004105571 2004-03-31
JP2005038398A JP4577037B2 (en) 2004-03-31 2005-02-15 Printing apparatus, medium detection method, and printing system

Publications (2)

Publication Number Publication Date
JP2005313603A JP2005313603A (en) 2005-11-10
JP4577037B2 true JP4577037B2 (en) 2010-11-10

Family

ID=35441510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005038398A Expired - Fee Related JP4577037B2 (en) 2004-03-31 2005-02-15 Printing apparatus, medium detection method, and printing system

Country Status (1)

Country Link
JP (1) JP4577037B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4245024B2 (en) 2006-09-12 2009-03-25 セイコーエプソン株式会社 Printing apparatus and light emission intensity adjustment method
CN101274553B (en) 2007-03-30 2010-06-23 兄弟工业株式会社 Image recording device and image recording method
JP6575210B2 (en) * 2014-11-10 2019-09-18 株式会社リコー Image forming apparatus, image forming apparatus control method, and control program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004011262A1 (en) * 2002-07-25 2004-02-05 Seiko Epson Corporation Liquid-discharging device and printing system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004011262A1 (en) * 2002-07-25 2004-02-05 Seiko Epson Corporation Liquid-discharging device and printing system

Also Published As

Publication number Publication date
JP2005313603A (en) 2005-11-10

Similar Documents

Publication Publication Date Title
JP4998533B2 (en) Printing device
US7246898B2 (en) Recording method, recording apparatus and computer-readable storage medium
WO2003076190A1 (en) Printer, printing method, program, storage medium and computer system
US20090184992A1 (en) Printing method, medium detection method, computer-readable storage medium, and printing apparatus
JP4577037B2 (en) Printing apparatus, medium detection method, and printing system
US7455380B2 (en) Printing apparatus, media detection apparatus, media detection method, measurement method, computer-readable storage medium, and printing system
JP4496985B2 (en) Printing apparatus, medium detection method, program, and printing system
JP4433853B2 (en) Medium determining apparatus, medium determining method, printing apparatus, program, and printing system
JP4407397B2 (en) Printing apparatus and printing method
JP3931688B2 (en) Printing apparatus, printing method, program, and computer system
US20040145617A1 (en) Recording method, recording apparatus, computer-readable storage medium, and computer system
JP3951858B2 (en) Recording apparatus, printing apparatus, recording method, program, and computer system
JP2007276135A (en) Printer and printing method
JP4483812B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP2005231243A (en) Printer controller, method of controlling printer, and printer
JP2002254780A (en) Printer control device and printer control method
JP3882713B2 (en) Recording apparatus, printing apparatus, printing method, program, and computer system
JP2006347028A (en) Method for adjusting liquid attaining position, liquid detecting apparatus, liquid delivering apparatus and program
JP2004009686A (en) Printing device, program, and computer system
JP2003341023A (en) Printer, printing method, computer program, and computer system
JP2005041080A (en) Printing device, program and computer system
JP2005028715A (en) Printer, printing method, program, and computer system
JP4586665B2 (en) Printing apparatus, stick-slip handling method, program, and printing system
JP2001186785A (en) Device and method for controlling motor and/or storage medium with recorded control program of motor
JP4635771B2 (en) Printing apparatus, stick-slip handling method, program, and printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070702

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100216

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100511

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100617

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100727

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100809

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

Free format text: PAYMENT UNTIL: 20130903

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4577037

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees