JP2008055805A - Recording device and recording method - Google Patents

Recording device and recording method Download PDF

Info

Publication number
JP2008055805A
JP2008055805A JP2006236903A JP2006236903A JP2008055805A JP 2008055805 A JP2008055805 A JP 2008055805A JP 2006236903 A JP2006236903 A JP 2006236903A JP 2006236903 A JP2006236903 A JP 2006236903A JP 2008055805 A JP2008055805 A JP 2008055805A
Authority
JP
Japan
Prior art keywords
recording
paper
medium
unit
printing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2006236903A
Other languages
Japanese (ja)
Inventor
Jun Fukazawa
純 深澤
Hiroshi Katayama
博 片山
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 JP2006236903A priority Critical patent/JP2008055805A/en
Publication of JP2008055805A publication Critical patent/JP2008055805A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a recording device which can perform recording on a medium even at the time of a shorter actual feeding error length than a set length of the medium, and can avoid a disable due to the recording extended from the medium and to provide a recording method. <P>SOLUTION: When the end of the sheet is detected at the time of a sheet feeding operation (S2), counting of a sheet length counter starts (S3), and the sheet is conveyed to a printing starting position (S4). When the rear end of the sheet is detected on the way of conveying to the starting of the printing (S5), it is determined whether the sheet feeding counting value does not reach the sheet rear end detecting position (S6). If it does not reach the sheet rear end detecting position, "1" is set to a sheet feeding error flag (S7). At this sheet feeding error time, after the sheet is fed to the printing starting position, whether it is ready to print or not is determined (S9). If determined to be ready to print, after it is fed to the printing starting position, the printing action is performed (S10), while if not determined to be ready to print, a sheet discharging operation is performed (S13). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、媒体の搬送を行うとともに搬送中の媒体に画像等の記録を行う記録装置及び記録方法に関する。   The present invention relates to a recording apparatus and a recording method for conveying a medium and recording an image or the like on a medium being conveyed.

従来、記録装置の1種であるプリンタには、自動給紙装置(以下、ASF(Auto Sheet Feeder )という)を備えるものがある(例えば特許文献1等)。ASFにセットされた用紙は、印刷を開始する際にASFが駆動されて給紙され、印刷開始位置に自動的に頭出しされる。この印刷開始位置は、パーソナルコンピュータ(PC)等のホストコンピュータのモニタに表示された印刷条件設定画面にてユーザが入力装置を操作して設定した用紙サイズ等の印刷条件に基づいて、そのときの用紙サイズに応じた位置に決められる。用紙が給紙されるときは、用紙搬送経路上におけるASFの給紙ローラと紙送りローラとの間に配置された紙検出センサが用紙の先端を検知した位置を基準に頭出しが行われる構成であった。   2. Description of the Related Art Conventionally, some printers that are one type of recording apparatus include an automatic sheet feeder (hereinafter referred to as ASF (Auto Sheet Feeder)) (for example, Patent Document 1). The paper set in the ASF is fed by driving the ASF when printing is started, and is automatically cued to the print start position. This print start position is determined based on the print conditions such as the paper size set by the user operating the input device on the print condition setting screen displayed on the monitor of the host computer such as a personal computer (PC). The position is determined according to the paper size. When paper is fed, the cueing is performed based on the position at which the paper detection sensor disposed between the ASF paper feed roller and the paper feed roller on the paper transport path detects the leading edge of the paper. Met.

また、近年、縁なし印刷が可能な印刷装置も提供されている(例えば特許文献2等)。縁なし印刷の場合、用紙の周縁部にも印刷が施されるように、用紙よりも広い印刷領域が設定され、用紙の外側に所定量だけはみ出た領域にもインクが噴射(吐出)される。このため、用紙の外側にはみ出た領域に噴射されたインク滴がプラテンにおける用紙支持部分に付着することがない構造のプラテンが使用される。この種の印刷装置で用いられるプラテンは、噴射されたインクを吸収するフエルト等のインク吸収材を配置してなる液廃棄部と、液廃棄部の上面より少し隆起して用紙の下面を案内支持する例えばプラスチック製の凸部とを有している。
特開2003−291436号公報 特開2006−198806号公報
In recent years, printing apparatuses capable of borderless printing have also been provided (for example, Patent Document 2). In the case of borderless printing, a printing area wider than the paper is set so that printing is performed also on the peripheral edge of the paper, and ink is ejected (discharged) to an area that protrudes a predetermined amount outside the paper. . For this reason, a platen having a structure in which ink droplets ejected to an area protruding from the outside of the paper does not adhere to the paper support portion of the platen is used. The platen used in this type of printing device has a liquid waste part that is arranged with an ink absorbing material such as felt that absorbs the ejected ink, and a slightly raised surface from the upper surface of the liquid waste part to guide and support the lower surface of the paper. For example, it has a convex part made of plastic.
JP 2003-291436 A JP 2006-198806 A

ところで、例えばユーザが間違えて、設定サイズ(例えばA4サイズ)よりも搬送方向に短い用紙(例えばA5サイズ)をセットした場合、用紙が記録開始位置に頭出しされたとき、用紙の後端が記録ヘッドのノズルを既に通過してしまう場合があるが、印刷開始位置によっては、頭出しされた用紙に印刷が可能な場合もある。しかし、従来は、用紙サイズが異なる場合は、印刷を行わない構成となっていたので、印刷可能な場合も印刷が施されることはなかった。しかし、印刷できるのであれば、その用紙に画像の一部でもよいので印刷を施したいという要望があった。なお、印刷する場合でも、プラテン(特に凸部)にインクが付着すると、後続の用紙にプラテンのインクが付いて用紙の裏面が汚れるなどの問題があるので、プラテンにインクが付着しないよう印刷を施す必要がある。   By the way, for example, when the user makes a mistake and sets a sheet (for example, A5 size) shorter in the transport direction than the set size (for example, A4 size), when the sheet is cued to the recording start position, the trailing edge of the sheet is recorded. In some cases, the nozzle has already passed through the nozzle of the head, but depending on the print start position, printing may be possible on the headed paper. However, conventionally, when the paper size is different, the configuration is such that printing is not performed, and therefore printing is not performed even when printing is possible. However, if printing is possible, a part of the image may be printed on the paper, and there is a demand for printing. Even when printing, if ink adheres to the platen (especially the convex part), there is a problem that the ink on the platen adheres to the following paper and the back side of the paper becomes dirty. It is necessary to apply.

本発明は、上記問題点を解決するためになされたものであって、その目的は、実際の媒体の長さが設定より短い場合でも、媒体に記録を施すことができ、しかも媒体からはみ出た記録による不具合を回避できる記録装置及び記録方法を提供することにある。   The present invention has been made in order to solve the above-described problems, and the object thereof is to allow recording on a medium even when the actual length of the medium is shorter than a set value, and to protrude from the medium. An object of the present invention is to provide a recording apparatus and a recording method capable of avoiding problems caused by recording.

本発明は、媒体を搬送する搬送手段と、該搬送手段により搬送された媒体に記録を施す記録手段とを備えた記録装置において、媒体の少なくとも後端を検知する検出手段と、前記媒体を前記記録手段による記録開始位置まで搬送する途中で前記検出手段により媒体の後端を検知した場合に、該媒体に対する前記記録開始位置からの記録が可能であるか否かを判断する判断手段と、前記判断手段により前記記録開始位置からの記録が可能と判断された場合は媒体に該記録開始位置から記録を施し、一方、前記記録開始位置からの記録が不可能と判断された場合は媒体に記録を施さないように前記記録手段及び前記搬送手段を制御する制御手段とを備えたことを要旨とする。   The present invention provides a recording apparatus comprising a conveying unit that conveys a medium, and a recording unit that records on the medium conveyed by the conveying unit, and a detecting unit that detects at least a rear end of the medium; Determining means for determining whether recording from the recording start position on the medium is possible when the detection means detects the trailing edge of the medium in the middle of conveyance to the recording start position by the recording means; When it is determined by the determination means that recording from the recording start position is possible, recording is performed on the medium from the recording start position. On the other hand, when recording from the recording start position is determined to be impossible, recording is performed on the medium. And a control means for controlling the recording means and the conveying means.

これによれば、記録手段による記録開始位置まで媒体を搬送する途中で検出手段により媒体の後端を検知した場合、判断手段によって、媒体に対する記録開始位置からの記録が可能であるか否かが判断される。記録開始位置からの記録が可能と判断された場合は媒体に記録開始位置から記録が施される。一方、記録開始位置からの記録が不可能と判断された場合は、媒体に記録は施されない。よって、例えば実際の媒体が設定上の媒体サイズより短い場合でも、設定上の媒体サイズから決まる記録開始位置まで搬送された媒体に記録を施すことが可能になる。しかも媒体に記録を施せない場合は記録が施されないので、媒体から外側にはみ出た部分に施された記録に起因する例えばプラテン等の部材の汚染を回避できる。この場合、プラテン等の部材がインク等で汚染されないので、後続の媒体がプラテン等の部材に付着したインク等で汚れる心配がない。   According to this, when the trailing end of the medium is detected by the detecting unit while the medium is being transported to the recording start position by the recording unit, the determination unit determines whether recording from the recording start position to the medium is possible. To be judged. When it is determined that recording from the recording start position is possible, recording is performed on the medium from the recording start position. On the other hand, if it is determined that recording from the recording start position is impossible, recording is not performed on the medium. Therefore, for example, even when the actual medium is shorter than the set medium size, recording can be performed on the medium conveyed to the recording start position determined from the set medium size. In addition, since recording is not performed when recording cannot be performed on the medium, contamination of a member such as a platen caused by recording performed on a portion protruding outward from the medium can be avoided. In this case, since the member such as the platen is not contaminated with the ink or the like, there is no fear that the subsequent medium is stained with the ink or the like attached to the member such as the platen.

また、本発明の記録装置においては、記録手段と媒体搬送経路を挟んで対向する位置にプラテンを更に備え、前記制御手段は、前記記録手段を制御し、前記媒体の外側へはみ出た記録が前記プラテンの記録禁止領域に施されない範囲で該媒体に記録を施すことが好ましい。なお、プラテンの記録禁止領域とは、その領域に記録が施されると後続の媒体にその記録されたインク等が付着して媒体を汚すことになるプラテン上の部分を指す。   In the recording apparatus of the present invention, a platen is further provided at a position opposed to the recording means across the medium conveyance path, and the control means controls the recording means so that the recording that protrudes outside the medium is It is preferable to record on the medium as long as it is not applied to the recording prohibited area of the platen. The recording prohibited area of the platen refers to a portion on the platen where the recorded ink or the like adheres to a subsequent medium and the medium is soiled when recording is performed on the area.

これによれば、記録手段による記録は、媒体の外側にはみ出る場合でも、プラテンの記録禁止領域に施されない範囲で媒体に施される。よって、プラテンに記録されたインク等が後続の媒体を汚すことを回避できる。   According to this, the recording by the recording means is performed on the medium as long as it does not extend to the recording prohibited area of the platen even when it protrudes outside the medium. Therefore, it is possible to avoid the ink recorded on the platen from soiling the subsequent medium.

本発明の記録装置においては、前記判断手段は、前記検出手段による媒体の後端検知位置から前記記録手段による媒体後端側の記録限界位置までの媒体の搬送距離に相当する第一距離と、前記後端検知位置から前記記録開始位置までの第二距離とに基づいて、前記判断を行うことが好ましい。   In the recording apparatus of the present invention, the determination unit includes a first distance corresponding to a conveyance distance of the medium from the medium rear end detection position by the detection unit to a recording limit position on the medium rear end side by the recording unit, Preferably, the determination is made based on a second distance from the trailing edge detection position to the recording start position.

これによれば、判断手段によって、第一距離(オーバーライド長)と、後端検知位置から記録開始位置までの第二距離とに基づいて、記録開始位置からの記録が可能であるか否かが判断される。   According to this, based on the first distance (override length) and the second distance from the trailing edge detection position to the recording start position, the determination unit determines whether recording from the recording start position is possible. To be judged.

本発明の記録装置においては、前記制御手段は、前記記録手段による記録の元になる記録データのうち、前記プラテンの記録禁止領域に記録される部分のデータをマスクすることが好ましい。   In the recording apparatus according to the aspect of the invention, it is preferable that the control unit masks a portion of data recorded in the recording prohibited area of the platen among the recording data to be recorded by the recording unit.

これによれば、記録データのうちプラテンの記録禁止領域に記録される部分のデータがマスクされる。よって、プラテンの記録禁止領域への記録を避けつつ、媒体のより広い範囲に渡り完全な(画素欠陥等のない)記録が可能になる。   According to this, the data of the portion recorded in the recording prohibited area of the platen in the recording data is masked. Therefore, it is possible to perform complete recording (without pixel defects or the like) over a wider range of the medium while avoiding recording in the recording prohibited area of the platen.

さらに本発明の記録装置においては、前記検出手段により前記媒体の先端が検知された位置から、前記搬送手段による該媒体の搬送量に応じた計測値を計測する計測手段を更に備えることが好ましい。なお、計測値は搬送量そのものでもよいし、搬送量を所定値だけオフセットさせた値でもよい。   Furthermore, it is preferable that the recording apparatus of the present invention further includes a measurement unit that measures a measurement value corresponding to the amount of the medium transported by the transport unit from the position where the leading end of the medium is detected by the detection unit. The measurement value may be the carry amount itself or a value obtained by offsetting the carry amount by a predetermined value.

これによれば、計測手段は、検出手段による媒体の先端検知位置から、搬送手段による媒体の搬送量に応じた計測値を計測する。例えば検出手段による媒体の後端検知時における計測手段の計測値から、媒体の搬送方向長さ(媒体長)を取得できる。また、媒体の設定長の情報を取得できる場合は、計測手段の計測値と設定長さ情報とを用いて、媒体の重送などの判定も可能になる。   According to this, the measuring means measures a measurement value corresponding to the amount of medium transported by the transporting means from the leading edge detection position of the medium by the detecting means. For example, the length in the conveyance direction of the medium (medium length) can be acquired from the measurement value of the measurement means when the trailing edge of the medium is detected by the detection means. In addition, when information on the set length of the medium can be acquired, it is possible to determine the double feed of the medium using the measurement value of the measuring unit and the set length information.

本発明の記録装置においては、媒体の設定長を取得する媒体長取得手段と、
前記検出手段により媒体の後端を検知した時の前記計測手段の計測値と、前記設定長とに基づいて、前記設定長より短い媒体が給送された給送エラーであるか否かを判定する給送判定手段とを備え、前記判断手段による前記判断は、前記給送エラーと判定された場合に行われることが好ましい。
In the recording apparatus of the present invention, medium length acquisition means for acquiring the set length of the medium,
Based on the measured value of the measuring means when the trailing edge of the medium is detected by the detecting means and the set length, it is determined whether or not there is a feeding error in which a medium shorter than the set length is fed. It is preferable that the determination by the determination unit is performed when it is determined that the feeding error has occurred.

これによれば、検出手段により媒体の後端を検知した時の計測手段の計測値と、設定長とに基づいて、設定長より短い媒体が給送された給送エラーであるか否かが判定される。そして、給送エラーと判定された場合に限り、記録開始位置からの記録が可能であるか否かが判断される。よって、給送された媒体が設定長より短かった場合でも、その媒体に記録を施すことが可能になる。   According to this, based on the measured value of the measuring unit when the trailing end of the medium is detected by the detecting unit and the set length, it is determined whether there is a feeding error in which a medium shorter than the set length is fed. Determined. Only when it is determined that there is a feeding error, it is determined whether or not recording from the recording start position is possible. Therefore, even when the fed medium is shorter than the set length, recording can be performed on the medium.

本発明の記録装置においては、媒体の設定長さを取得する媒体長取得手段と、前記計測手段の計測値により規定される前記搬送量が前記設定長さより許容範囲を超えて長いと判断された場合は重送エラーと判定する重送判定手段とを更に備えることが好ましい。   In the recording apparatus of the present invention, it is determined that the medium length acquisition unit that acquires the set length of the medium and the transport amount defined by the measurement value of the measurement unit is longer than the set length beyond the allowable range. In this case, it is preferable to further include a double feed determining means for determining a double feed error.

これによれば、媒体長取得手段により媒体の設定長さが取得される。計測手段の計測値により規定される搬送量が設定長さより許容範囲を超えて長いと判断された場合は重送エラーと判定される。よって、後続の媒体が一部重なって給送された重送の発生を知ることができる。   According to this, the set length of the medium is acquired by the medium length acquisition means. When it is determined that the transport amount defined by the measurement value of the measuring unit is longer than the set length beyond the allowable range, it is determined as a double feed error. Therefore, it is possible to know the occurrence of double feeding in which subsequent media are partially overlapped.

また、本発明は、媒体を搬送する搬送手段と、該搬送手段により搬送された媒体に記録を施す記録手段とを備えた記録装置における記録方法であって、媒体の少なくとも後端を検出手段により検知する検出ステップと、前記記録手段による記録開始位置まで媒体を搬送する途中で前記検出手段により媒体の後端を検知した場合に、該媒体に対する記録開始位置からの記録が可能であるか否かを判断する判断ステップと、前記記録開始位置からの記録が可能と判断された場合は媒体に該記録開始位置から記録を施し、一方、記録開始位置からの記録が不可能と判断された場合は媒体に記録を施さない制御ステップとを備えたことを要旨とする。これによれば、上記の記録装置の発明と同様の効果が得られる。   The present invention also relates to a recording method in a recording apparatus comprising a conveying means for conveying a medium and a recording means for recording on the medium conveyed by the conveying means, wherein at least the rear end of the medium is detected by a detecting means. A detection step for detecting, and whether or not recording from the recording start position to the medium is possible when the trailing end of the medium is detected by the detecting means in the middle of conveying the medium to the recording start position by the recording means And when determining that recording from the recording start position is possible, recording is performed on the medium from the recording start position, while when recording from the recording start position is determined to be impossible And a control step of not recording on the medium. According to this, the same effect as the invention of the above recording apparatus can be obtained.

以下、本発明をプリンタに具体化した一実施形態を図1〜図9に従って説明する。図1は、本実施形態におけるプリンタの斜視図である。
記録装置としてのプリンタ11は、例えばインクジェット式プリンタである。プリンタ11には、本体12の背面側に媒体としての用紙Pを給紙する給送手段としての自動給紙装置(Auto Sheet Feeder;以下、ASF13という)が装備されている。ASF13には、給紙トレイ14、ホッパー15、エッジガイド16及び用紙サポート14aを備えた用紙ガイド17が取着されている。ASF13は用紙ガイド17にセットされた用紙を1枚ずつ本体12内に給紙する給紙駆動機構を備える。
Hereinafter, an embodiment in which the present invention is embodied in a printer will be described with reference to FIGS. FIG. 1 is a perspective view of a printer according to the present embodiment.
The printer 11 as a recording apparatus is, for example, an ink jet printer. The printer 11 is equipped with an automatic sheet feeder (hereinafter referred to as ASF 13) as a feeding means for feeding paper P as a medium on the back side of the main body 12. A paper guide 17 including a paper feed tray 14, a hopper 15, an edge guide 16 and a paper support 14a is attached to the ASF 13. The ASF 13 includes a paper feed drive mechanism that feeds the paper set in the paper guide 17 into the main body 12 one by one.

また、本体12内には主走査方向(図1におけるX方向)に往復動するキャリッジ18が設けられ、キャリッジ18の下部に記録ヘッド19が備えられている。キャリッジ18を主走査方向Xに移動させる過程で記録ヘッド19から用紙Pにインクを噴射する印刷動作と、用紙Pを副走査方向Yに所定の搬送量で搬送する紙送り動作とを交互に繰り返すことによって、用紙Pへの印刷が行われる。印刷された用紙Pは本体12の前側下部に開口する排紙口12Aから排出される。なお、キャリッジ18及び記録ヘッド19により記録手段が構成される。   A carriage 18 that reciprocates in the main scanning direction (X direction in FIG. 1) is provided in the main body 12, and a recording head 19 is provided below the carriage 18. In the process of moving the carriage 18 in the main scanning direction X, a printing operation for ejecting ink from the recording head 19 onto the paper P and a paper feeding operation for transporting the paper P in the sub-scanning direction Y by a predetermined transport amount are alternately repeated. As a result, printing on the paper P is performed. The printed paper P is discharged from a paper discharge port 12 </ b> A that opens at the lower front side of the main body 12. The carriage 18 and the recording head 19 constitute a recording unit.

図2は自動給紙装置及び搬送装置の模式側面図を示す。図2に示すように、本体背面部に斜状に配置された給紙トレイ14の上面側にはホッパー15が上端部の軸15aを中心として所定角度の範囲を傾動可能な状態に支持されている。ホッパー15は給紙トレイ14との間に介装された圧縮バネ21によって、給紙トレイ14から離間する方向(図2における左上方向)に付勢されている。   FIG. 2 is a schematic side view of the automatic paper feeder and the transport device. As shown in FIG. 2, a hopper 15 is supported on the upper surface side of the sheet feed tray 14 disposed obliquely on the back surface of the main body so as to be tiltable within a predetermined angle range about the shaft 15a at the upper end. Yes. The hopper 15 is urged in a direction away from the paper feed tray 14 (upper left direction in FIG. 2) by a compression spring 21 interposed between the paper feed tray 14.

ホッパー15の下端付近には、円柱状の給紙ローラ22が回転軸23を中心に回転可能な状態に配置されている。ホッパー15は、図2に示す給紙位置と給紙ローラ22から離間した退避位置(図示せず)との間を傾動可能に構成されている。   Near the lower end of the hopper 15, a cylindrical sheet feeding roller 22 is disposed so as to be rotatable about a rotation shaft 23. The hopper 15 is configured to be tiltable between a paper feed position shown in FIG. 2 and a retracted position (not shown) spaced from the paper feed roller 22.

給紙トレイ14の下流側(図2における左側)端部上面には案内部14bが設けられている。また、案内部14bの上端近傍位置には給紙ローラ22と対向する位置にリタードローラ24が配置されている。リタードローラ24は、トルクリミッター等のトルク制限機構によって一定の回転負荷が付与された状態で従動回転可能かつ給紙ローラ22に対し接近・離間可能に設けられている。ホッパー15及びリタードローラ24は連動して移動するように構成されている。   A guide portion 14b is provided on the upper surface of the downstream end (left side in FIG. 2) of the paper feed tray 14. A retard roller 24 is disposed at a position facing the paper feed roller 22 in the vicinity of the upper end of the guide portion 14b. The retard roller 24 is provided such that it can be driven and rotated with respect to the paper feed roller 22 in a state where a constant rotational load is applied by a torque limiting mechanism such as a torque limiter. The hopper 15 and the retard roller 24 are configured to move in conjunction with each other.

ASF13より用紙搬送方向下流側位置には、インクカートリッジ26を搭載したキャリッジ18がガイド軸27に沿って主走査方向X(図2の紙面直交方向)に移動可能に設けられている。記録ヘッド19の下方には、記録ヘッド19と用紙Pとの間隔を規定するプラテン28が配置されている。プラテン28を副走査方向(同図左右方向)に挟んだその両側には紙送りローラ29と排紙ローラ30とがそれぞれ配置されている。   At a position downstream of the ASF 13 in the paper conveyance direction, a carriage 18 on which the ink cartridge 26 is mounted is provided so as to be movable along the guide shaft 27 in the main scanning direction X (the direction perpendicular to the plane of FIG. 2). A platen 28 that defines the distance between the recording head 19 and the paper P is disposed below the recording head 19. On both sides of the platen 28 sandwiched in the sub-scanning direction (the left-right direction in the figure), a paper feed roller 29 and a paper discharge roller 30 are respectively disposed.

紙送りローラ29は搬送駆動ローラ29aと搬送従動ローラ29bとの一対からなり、排紙ローラ30は排紙駆動ローラ30aと排紙従動ローラ30bとの一対からなる。本実施形態では、搬送駆動ローラ29aと排紙駆動ローラ30aは、同一の駆動源であるPFモータ58(紙送りモータ)(図3参照)によって駆動され、それぞれ協働して用紙Pの紙送り・排紙等を行う。給紙ローラ22は、ASFモータ56により駆動され、紙送りローラ29と協働して用紙Pの給紙・紙送り等を行う。   The paper feed roller 29 includes a pair of a transport driving roller 29a and a transport driven roller 29b, and the paper discharge roller 30 includes a pair of a paper discharge drive roller 30a and a paper discharge driven roller 30b. In the present embodiment, the conveyance drive roller 29a and the paper discharge drive roller 30a are driven by a PF motor 58 (paper feed motor) (see FIG. 3), which is the same drive source, and cooperate with each other to feed the paper P.・ Discharge paper. The paper feed roller 22 is driven by the ASF motor 56 and cooperates with the paper feed roller 29 to feed and feed the paper P.

給紙ローラ22と紙送りローラ29との間には、その下端が用紙搬送経路に達する長さで延出するレバー31と、レバー31の上端部を検知対象とする光学式のセンサ部32とからなる紙検出センサ33が設けられている。紙検出センサ33は、レバー31の下端側に用紙P1が無い状態ではレバー31がバネの付勢力で図2に二点鎖線で示す原位置に復帰してオフしており、給紙の途中で用紙P1がレバー31の下端を押してこれを図2に実線で示すように回動させるとオンする。詳しくは、センサ部32は発光器と受光器とを備え、発光器からの投光を遮っていたレバー31が用紙P1に押されて回動し、その投光が受光器により受光されることで紙検出センサ33がオンする構成である。   Between the paper feed roller 22 and the paper feed roller 29, there is a lever 31 whose lower end extends to reach the paper transport path, and an optical sensor unit 32 whose detection target is the upper end of the lever 31. A paper detection sensor 33 is provided. In the state where the paper P1 is not on the lower end side of the lever 31, the paper detection sensor 33 returns to the original position indicated by the two-dot chain line in FIG. The sheet P1 is turned on when the lower end of the lever 31 is pushed and rotated as shown by a solid line in FIG. Specifically, the sensor unit 32 includes a light emitter and a light receiver, and the lever 31 that has blocked the light emitted from the light emitter is pushed by the paper P1 to rotate, and the light is received by the light receiver. In this configuration, the paper detection sensor 33 is turned on.

リタードローラ24は、図2に示すように給紙ローラ22の外周面に当接する給紙位置と、給紙ローラ22の外周面から離間する退避位置(図示せず)との間を上下動可能に構成されている。図2に示す印刷時には、リタードローラ24が上動して給紙ローラ22との間に用紙をニップ可能な位置に配置され、これに伴いホッパー15が圧縮バネ21の付勢方向へ傾動して、ホッパー15上に積重された用紙Pが給紙ローラ22に押し付けられる。ホッパー15が上動することで給紙ローラ22に付勢された用紙Pは、そのうち最上位の1枚が給紙ローラ22の回転によって給紙ローラ22とリタードローラ24との間に挟持されつつ給紙される。この給紙過程においてリタードローラ24の回転抵抗と、給紙ローラ22の周面の摩擦抵抗と、用紙Pの表面の摩擦抵抗とのバランスによって、給紙ローラ22に付勢された用紙Pは、そのうち最上位の1枚の用紙P1のみが、他の用紙から分離されて給紙される。   As shown in FIG. 2, the retard roller 24 can move up and down between a paper feed position that contacts the outer peripheral surface of the paper feed roller 22 and a retreat position (not shown) that is separated from the outer peripheral surface of the paper feed roller 22. It is configured. At the time of printing shown in FIG. 2, the retard roller 24 moves upward and is disposed at a position where the paper can be nipped between the paper feed roller 22 and the hopper 15 tilts in the biasing direction of the compression spring 21 accordingly. The paper P stacked on the hopper 15 is pressed against the paper feed roller 22. The uppermost sheet P of the paper P urged by the paper feed roller 22 as the hopper 15 moves upward is sandwiched between the paper feed roller 22 and the retard roller 24 by the rotation of the paper feed roller 22. Paper is fed. In this paper feeding process, the paper P biased to the paper feeding roller 22 by the balance between the rotational resistance of the retard roller 24, the frictional resistance of the peripheral surface of the paper feeding roller 22, and the frictional resistance of the surface of the paper P is Of these, only the topmost sheet P1 is separated from other sheets and fed.

リタードローラ24およびホッパー15は、用紙の頭出しが終わった時に次に給紙すべき次頁がない場合に退避位置へ復帰する。よって、給紙すべき次頁の用紙があるうちは、ホッパー15及びリタードローラ24は図2に示す給紙位置に配置される。これにより用紙は僅かな紙間隔を開けただけで連続的に給紙される。詳しくは、ホッパー15及びリタードローラ24を給紙位置のまま保持し、先行用紙の後端及び後続用紙の先端が給紙ローラ22のニップ点を通過した時点で給紙ローラ22の回転を一旦停止させ、先行用紙と後続用紙間の間隔が確保されるのを待ってから、給紙ローラ22の回転を再開し、後続用紙の給紙を開始する。この制御により、先行用紙P1と後続用紙P2間に紙検出センサ33のレバー31により検知されうるだけの間隔が確保される。   The retard roller 24 and the hopper 15 return to the retracted position when there is no next page to be fed next when the cueing of the paper is finished. Therefore, while there is a next page of paper to be fed, the hopper 15 and the retard roller 24 are arranged at the paper feed position shown in FIG. As a result, the paper is continuously fed with a slight paper gap. Specifically, the hopper 15 and the retard roller 24 are held at the paper feed position, and the rotation of the paper feed roller 22 is temporarily stopped when the trailing edge of the preceding paper and the leading edge of the succeeding paper pass the nip point of the paper feeding roller 22. After waiting for the interval between the preceding sheet and the succeeding sheet to be secured, the rotation of the sheet feeding roller 22 is resumed and the feeding of the succeeding sheet is started. By this control, an interval that can be detected by the lever 31 of the paper detection sensor 33 is secured between the preceding paper P1 and the succeeding paper P2.

給紙された用紙P1は、先端部分が紙送りローラ29間を通ってキャリッジ18とプラテン28間の印刷開始位置に頭出しされる。記録ヘッド19の下面にはインクを噴射する多数のノズル(ノズル群)が開口しており、ノズル群のうち搬送方向最上流に位置するノズル(最上流ノズルと称す)の位置がヘッド基準位置(図2における「▼」の位置)となっている。   The leading end of the fed paper P1 passes between the paper feed rollers 29 and is cued to the printing start position between the carriage 18 and the platen 28. A large number of nozzles (nozzle groups) for ejecting ink are opened on the lower surface of the recording head 19, and the position of the nozzle (referred to as the most upstream nozzle) in the transport direction in the nozzle group is the head reference position ( The position of “▼” in FIG.

頭出し位置(印刷開始位置)は、余白(トップマージン)や縁なし印刷などのレイアウト条件に応じて決まり、給紙の際はその頭出し位置に応じた搬送距離が指示される。用紙P1の給紙終了後(頭出し終了後)、記録ヘッド19の印刷動作と紙送り動作とが交互に実施されて、印刷は進められる。   The cueing position (printing start position) is determined according to layout conditions such as margin (top margin) and borderless printing, and a conveyance distance corresponding to the cueing position is instructed when paper is fed. After the paper P1 is fed (after the cueing is finished), the printing operation of the recording head 19 and the paper feeding operation are alternately performed, and the printing proceeds.

図4は、プラテンと記録ヘッドと用紙とを示す平面図である。同図に示すように、プラテン28は一方向に長い略四角板状であり、記録ヘッド19と用紙搬送経路を挟んで対向する位置に、その長手方向を主走査方向(図4における左右方向)に一致させた状態で配置されている。プラテン28は、略四角板状の基材28aと、基材28aの上面側の凹部28dにフエルト等の液吸収材が収容されてなる液廃棄部28bと、液廃棄部28bの内側に島状に点在する平面視で略四角状をなす複数の凸部28cとを有している。凸部28cは、凹部28dの底面から突出する状態で基材28aと一体に形成され、基材28aと同じ材質であるプラスチックからなる。複数の凸部28cは、液廃棄部28bの上面よりも若干上方へ突出して位置し、プラテン28の上面を通過する用紙Pは凸部28cに支持される。このため、用紙Pは液廃棄部28bと接触することはない。   FIG. 4 is a plan view showing the platen, recording head, and paper. As shown in the figure, the platen 28 has a substantially rectangular plate shape that is long in one direction, and the longitudinal direction of the platen 28 is opposed to the recording head 19 across the paper conveyance path (the left-right direction in FIG. 4). It is arranged in a state that matches. The platen 28 includes a substantially square plate-shaped base material 28a, a liquid disposal part 28b in which a liquid absorbing material such as felt is accommodated in a recess 28d on the upper surface side of the base material 28a, and an island shape inside the liquid disposal part 28b. And a plurality of convex portions 28c having a substantially square shape in plan view. The convex portion 28c is formed integrally with the base material 28a so as to protrude from the bottom surface of the concave portion 28d, and is made of plastic which is the same material as the base material 28a. The plurality of convex portions 28c are positioned so as to protrude slightly above the upper surface of the liquid discarding portion 28b, and the paper P passing through the upper surface of the platen 28 is supported by the convex portions 28c. For this reason, the paper P does not come into contact with the liquid disposal unit 28b.

縁なし印刷が行われるときは、図4に示すように用紙Pよりも外側に所定量だけ広い印刷領域APが設定され、記録ヘッド19のノズル19aから印刷領域APにインク滴が吐出されることで、余白なく用紙全面に印刷が施される。このとき用紙の外側にはみ出て吐出されたインク滴は液廃棄部28bに当たるため、液廃棄部28bのフエルトに吸収されて回収される。また、凸部28cは、プラテン28の長手方向において、プリンタ11での使用が想定されるどの用紙サイズの用紙が搬送されても、印刷領域APのうち用紙の幅方向外側にはみ出す部分に凸部28cが位置しないように、プラテン28上の凸部28cの位置が設定されている。そして、印刷領域APのうち用紙の幅方向外側にはみ出す位置には図示しない打ち捨て孔が形成されており、印刷領域APのうち用紙の幅方向外側に吐出されたインク滴は、この打ち捨て孔内に廃棄される構成となっている。但し、図4は模式図であるため、凸部28cの数、プラテン長手方向における凸部28cの幅・間隔等は正確なものではない。   When borderless printing is performed, as shown in FIG. 4, a print area AP wider than the paper P by a predetermined amount is set, and ink droplets are ejected from the nozzles 19a of the recording head 19 to the print area AP. Thus, printing is performed on the entire sheet without margins. At this time, the ink droplets that have been ejected from the outside of the paper impinge on the liquid discarding unit 28b, and therefore are absorbed and collected by the felt of the liquid discarding unit 28b. Further, the convex portion 28c is a convex portion at a portion of the printing area AP that protrudes outward in the width direction of the paper, regardless of the paper size of the paper that is assumed to be used in the printer 11 in the longitudinal direction of the platen 28. The position of the convex portion 28c on the platen 28 is set so that the 28c is not positioned. A discard hole (not shown) is formed in the print area AP at a position protruding outside the paper in the width direction, and ink droplets ejected outside the print area AP in the paper width direction are in the discard hole. It is configured to be discarded. However, since FIG. 4 is a schematic diagram, the number of the convex portions 28c, the width / interval of the convex portions 28c in the platen longitudinal direction, and the like are not accurate.

また、吐出されたインク滴が凸部28cに付着すると、次頁(後続)の用紙がプラテン28上に搬送されてきたときに凸部28cのインクで裏面が汚れるので、凸部28cはインクの吐出が禁止された記録禁止領域に設定されている。このため、本実施形態は、設定用紙サイズより短い用紙長の用紙が給紙された給紙エラーのときでも、頭出し位置まで給紙された用紙への印刷が可能であれば、その用紙に印刷を施す構成であるが、記録禁止領域である凸部28cへのインク滴の吐出は行わない。ここで、記録ヘッド19のノズル19aは、用紙搬送方向(図4では上下方向)に複数形成されてノズル列(ノズル群)を形成しており、ノズル列の搬送方向長さの範囲に渡り、インクの吐出が可能となっている。   Further, when the ejected ink droplets adhere to the convex portion 28c, the back surface is stained with the ink of the convex portion 28c when the paper of the next page (following) is conveyed onto the platen 28. It is set in a recording prohibited area where ejection is prohibited. For this reason, in the present embodiment, even when a paper having a paper length shorter than the set paper size is fed, if printing on the paper fed up to the cue position is possible, the paper is printed on the paper. Although it is configured to perform printing, ink droplets are not ejected to the convex portion 28c, which is a recording prohibited area. Here, a plurality of nozzles 19a of the recording head 19 are formed in the paper transport direction (vertical direction in FIG. 4) to form a nozzle row (nozzle group). Ink can be ejected.

次に、自動給紙装置を備えるプリンタの電気的構成を図3に基づいて説明する。
図3に示すように、プリンタ11は各種制御を司る制御部40を備えている。制御部40はホストコンピュータ35(PC)と通信可能に接続されるインタフェイス41を備えている。インタフェイス41に接続されたバス42には、CPU43、ASIC44(Application Specific IC(特定用途向けIC))、ROM45、RAM46及び不揮発性メモリ47等が接続されている。ROM45には、図8にフローチャートで示される後端印刷制御処理ルーチンをはじめとする各種プログラムが記憶されている。CPU43は、ROM45に記憶されたプログラムを実行することで、給紙制御、紙送り制御、印刷制御、排紙制御などを行う。このうちCPU43が給紙処理時に後端印刷制御処理ルーチンのプログラムを実行することにより、給紙エラー判定及び給紙エラー発生時に用紙への印刷が可能かどうかの判定を行い、印刷可能と判定されれば印刷を実行する処理を行う。また、ROM45には、ASFモータ56とPFモータ58を速度制御する各速度制御データをはじめとする各種データが記憶されている。
Next, the electrical configuration of a printer including an automatic paper feeder will be described with reference to FIG.
As shown in FIG. 3, the printer 11 includes a control unit 40 that performs various controls. The control unit 40 includes an interface 41 that is communicably connected to a host computer 35 (PC). A CPU 43, an ASIC 44 (Application Specific IC), a ROM 45, a RAM 46, a nonvolatile memory 47, and the like are connected to the bus 42 connected to the interface 41. The ROM 45 stores various programs including a trailing edge printing control processing routine shown in the flowchart of FIG. The CPU 43 executes a program stored in the ROM 45 to perform paper feed control, paper feed control, print control, paper discharge control, and the like. Among these, the CPU 43 executes a program of the trailing edge print control processing routine at the time of paper feed processing, thereby judging paper feed error and whether or not printing on paper is possible when a paper feed error occurs, and it is judged that printing is possible. If so, a process for executing printing is performed. The ROM 45 stores various data including speed control data for controlling the speed of the ASF motor 56 and the PF motor 58.

ホストコンピュータ35はプリンタドライバ(図示せず)を備え、ユーザの入力指示に基づき表示装置35aに表示させた印刷設定画面で、ユーザが入力装置35bを操作して設定した、用紙サイズ、用紙種類、レイアウトなどの各種印刷パラメータを取得する。プリンタドライバは、入力装置35bから印刷実行の指示を受け付けると所定の処理を行って印刷データを生成する。詳しくはプリンタドライバは、公知の解像度変換処理、色変換処理、ハーフトーン処理、スタライズ処理(マイクロウィーブ処理)等を順次行う。そして、得られた印刷画像データのヘッダにコマンドを付して印刷データを生成する。このヘッダにはコマンドの他、用紙サイズを始めとする印刷パラメータや、コマンドで指示すべき内容を示す用紙搬送時の目標速度・搬送距離(紙送り量等)のパラメータが含まれる。   The host computer 35 is provided with a printer driver (not shown), and is a print setting screen displayed on the display device 35a based on a user input instruction. The user operates the input device 35b to set the paper size, paper type, Get various print parameters such as layout. When receiving a print execution instruction from the input device 35b, the printer driver performs predetermined processing to generate print data. Specifically, the printer driver sequentially performs known resolution conversion processing, color conversion processing, halftone processing, staring processing (microweave processing), and the like. Then, a command is attached to the header of the obtained print image data to generate print data. In addition to the command, this header includes printing parameters such as the paper size, and parameters of the target speed and transport distance (paper feed amount, etc.) at the time of paper transport indicating the contents to be specified by the command.

CPU43は、ホストコンピュータ35のプリンタドライバからインタフェイス41及びバス42を通じて印刷データを入力し、ホストコンピュータ35から最初に受信した印刷データ中のヘッダから用紙長Psizeを取得する。また、CPU43は、印刷データのヘッダに含まれるコマンドを解釈して給紙・紙送り・排紙などの各種コマンドと、指示の具体的な内容が数値等で示された例えば給紙・紙送り・排紙時における用紙の搬送距離などのパラメータを取得する。   The CPU 43 inputs print data from the printer driver of the host computer 35 through the interface 41 and the bus 42, and acquires the paper length Psize from the header in the print data first received from the host computer 35. Also, the CPU 43 interprets commands included in the header of the print data, for example, various commands such as paper feed / paper feed / discharge, and specific contents of the instructions are indicated by numerical values, for example, paper feed / paper feed.・ Acquire parameters such as paper transport distance when paper is ejected.

ASIC44は、CPU43から印刷データのうち印刷画像データを受け取り、この印刷画像データに画像処理等を施し、記録ヘッド19のノズルからインク滴を吐出する吐出信号の生成に用いられる所定階調値のビットマップデータに変換する。ASIC44は、変換したビットマップデータをヘッドドライバ48に送る。ヘッドドライバ48はビットマップデータに基づき記録ヘッド19を制御してノズルからインク滴を吐出させる。   The ASIC 44 receives print image data out of the print data from the CPU 43, performs image processing on the print image data, and the bits of a predetermined gradation value used for generating an ejection signal for ejecting ink droplets from the nozzles of the recording head 19. Convert to map data. The ASIC 44 sends the converted bitmap data to the head driver 48. The head driver 48 controls the recording head 19 based on the bitmap data to eject ink droplets from the nozzles.

また、CPU43には、モータドライバ49,50,51,52が接続されている。CPU43は、各モータドライバ49〜52を介してキャリッジモータ55、ASFモータ56、サブモータ57、PFモータ58(紙送りモータ)を駆動制御する。また、PFモータ58の出力軸は輪列(図示せず)を介して搬送駆動ローラ29a及び排紙駆動ローラ30aと動力伝達可能に連結されている。なお、モータドライバ50,52、ASFモータ56、PFモータ58、給紙ローラ22、紙送りローラ29及び排紙ローラ30等により、搬送手段が構成される。   Further, motor drivers 49, 50, 51, 52 are connected to the CPU 43. The CPU 43 drives and controls the carriage motor 55, the ASF motor 56, the sub motor 57, and the PF motor 58 (paper feed motor) via the motor drivers 49 to 52. Further, the output shaft of the PF motor 58 is connected to the transport drive roller 29a and the paper discharge drive roller 30a via a train wheel (not shown) so as to be able to transmit power. The motor drivers 50 and 52, the ASF motor 56, the PF motor 58, the paper feed roller 22, the paper feed roller 29, the paper discharge roller 30, and the like constitute a conveying means.

ここで、ASFモータ56は、給紙ローラ22を回転駆動させる。また、サブモータ57は、リタードローラ24及びホッパー15と動力伝達可能に連結されており、リタードローラ24及びホッパー15とが連動してそれぞれの退避位置と給紙位置間を移動するように駆動させる。   Here, the ASF motor 56 rotates the paper feed roller 22. The sub motor 57 is connected to the retard roller 24 and the hopper 15 so as to be able to transmit power, and is driven so that the retard roller 24 and the hopper 15 move between the retracted position and the paper feeding position in conjunction with each other.

ASFモータ56及びPFモータ58は、各出力軸の回転を検出するロータリエンコーダ(以下、エンコーダ61,62と称す)をそれぞれ備えている。各エンコーダ61,62は、それぞれ対応するモータの回転速度に反比例する周期をもつパルス信号を生成して出力する。CPU43には、紙検出センサ33のオン・オフ信号、及び各エンコーダ61,62からの各パルス信号をそれぞれ入力する。   The ASF motor 56 and the PF motor 58 are each provided with a rotary encoder (hereinafter referred to as encoders 61 and 62) that detects the rotation of each output shaft. Each encoder 61, 62 generates and outputs a pulse signal having a period inversely proportional to the rotational speed of the corresponding motor. An on / off signal of the paper detection sensor 33 and pulse signals from the encoders 61 and 62 are input to the CPU 43, respectively.

また、CPU43は、用紙長カウンタ65、ASFカウンタ66、PFカウンタ67及びオーバーライドカウンタ68を内蔵している。用紙長カウンタ65は紙検出センサ33がオンするとCPU43によりリセットされ、そのリセット後にエンコーダ62から入力されるパルス信号のパルスエッジを計数する。   Further, the CPU 43 includes a paper length counter 65, an ASF counter 66, a PF counter 67 and an override counter 68. The paper length counter 65 is reset by the CPU 43 when the paper detection sensor 33 is turned on, and counts the pulse edges of the pulse signal input from the encoder 62 after the reset.

オーバーライドカウンタ68は、用紙の後端が紙検出センサ33のレバー31を通過して、紙検出センサ33が紙あり検知状態のオンから紙なし検知状態のオフに切り替わると、紙検出センサ33とヘッド基準位置H間の距離に相当するオーバーライド長bがセットされる。そのセットされたオーバーライド長bの値が用紙の搬送とともにデクリメントされ、CPU43は、オーバーライドカウンタ68が「0」になるまで印刷が可能であることを認識する。   When the paper trailing sensor passes through the lever 31 of the paper detection sensor 33 and the paper detection sensor 33 is switched from the on state in which the paper is detected to the off state in which the paper is not detected, the override counter 68 is connected to the paper detection sensor 33 and the head. An override length b corresponding to the distance between the reference positions H is set. The value of the set override length b is decremented with the conveyance of the sheet, and the CPU 43 recognizes that printing is possible until the override counter 68 becomes “0”.

また、ASFカウンタ66は、ASFモータ56の回転を検出するエンコーダ61から入力するパルス信号のパルスエッジを計数する。ASFカウンタ66は、ASFモータ56の駆動が開始されるに先立ってリセットされ、ASFモータ56により回転駆動される給紙ローラ22によって給紙される用紙の給紙量(搬送距離)に相当する計数値を計数する。CPU43は、ASFカウンタ66の計数値から、給紙開始位置を原点とする用紙の搬送位置を把握し、速度制御テーブル(図示せず)を参照して該搬送位置に応じた速度(又は周期)を指令することでASFモータ56を速度制御する。   The ASF counter 66 counts the pulse edges of the pulse signal input from the encoder 61 that detects the rotation of the ASF motor 56. The ASF counter 66 is reset prior to the start of the driving of the ASF motor 56, and is a measure corresponding to the paper feed amount (conveyance distance) of paper fed by the paper feed roller 22 driven to rotate by the ASF motor 56. Count the numbers. The CPU 43 ascertains the paper transport position with the paper feed start position as the origin from the count value of the ASF counter 66, and refers to a speed control table (not shown) to determine the speed (or cycle) corresponding to the transport position. To control the speed of the ASF motor 56.

また、PFカウンタ67は、PFモータ58の回転を検出するエンコーダ62から入力するパルス信号のパルスエッジを計数する。PFカウンタ67は、PFモータ58の駆動が開始されるに先立ってリセットされ、PFモータ58により回転駆動される紙送りローラ29によって搬送される用紙の搬送距離に相当する計数値を計数する。CPU43は、PFカウンタ67の計数値から、紙送り開始位置を原点とする用紙の搬送位置を把握し、速度制御テーブル(図示せず)を参照して該搬送位置に応じた速度(又は周期)を指令することでPFモータ58を速度制御する。   The PF counter 67 counts the pulse edges of the pulse signal input from the encoder 62 that detects the rotation of the PF motor 58. The PF counter 67 is reset before the driving of the PF motor 58 is started, and counts a count value corresponding to the transport distance of the paper transported by the paper feed roller 29 that is rotationally driven by the PF motor 58. The CPU 43 ascertains the paper transport position with the paper feed start position as the origin from the count value of the PF counter 67, and refers to a speed control table (not shown) to determine the speed (or cycle) corresponding to the transport position. To control the speed of the PF motor 58.

図5は、用紙長カウンタ65及びオーバーライドカウンタ68の計数処理について説明する用紙搬送過程の模式側面図である。図5(a)は、用紙P1の先端が紙検出センサ33により検知されたときの状態を示す。用紙長カウンタ65は紙検出センサ33がオンするとリセットされ、リセット後にエンコーダ62から入力されるパルス信号のパルスエッジの計数を開始する。   FIG. 5 is a schematic side view of the paper transport process for explaining the counting process of the paper length counter 65 and the override counter 68. FIG. FIG. 5A shows a state when the leading edge of the paper P <b> 1 is detected by the paper detection sensor 33. The paper length counter 65 is reset when the paper detection sensor 33 is turned on, and starts counting the pulse edges of the pulse signal input from the encoder 62 after the reset.

図5(b)は、用紙が印刷開始位置に頭出しされたときの状態を示す。用紙長カウンタ65の計数値が、給紙コマンドで指示された印刷開始位置の値に達したところで、各モータ56,58の駆動が停止されて用紙P1は頭出しされる。この頭出し位置で最初の印刷が行われた後、用紙長カウンタ65の計数値が、用紙P1の先端がヘッド基準位置H(最上流ノズル)に一致したときの位置を原点「0」とする搬送量に相当する値に更新される。すなわち、用紙長カウンタ65の計数値から、図5(b)に示す距離Lshに相当する値を差し引いた値Nhに更新される。よって、用紙長カウンタ65は、用紙P1の先端からヘッド基準位置Hまでの距離に相当する計数値Nxを計数する。   FIG. 5B shows a state when the paper is cued to the print start position. When the count value of the paper length counter 65 reaches the value of the print start position designated by the paper feed command, the driving of the motors 56 and 58 is stopped and the paper P1 is cued. After the first printing is performed at this cueing position, the position when the count value of the sheet length counter 65 coincides with the head reference position H (the most upstream nozzle) is the origin “0”. It is updated to a value corresponding to the carry amount. That is, the value is updated to a value Nh obtained by subtracting a value corresponding to the distance Lsh shown in FIG. Therefore, the sheet length counter 65 counts a count value Nx corresponding to the distance from the leading end of the sheet P1 to the head reference position H.

図5(c)は、用紙の後端が紙検出センサ33のレバー31を通過して、紙検出センサ33がオンからオフに切り替わって、紙なし検知状態になった状態を示す。このときユーザが用紙ガイド17にセットした用紙のサイズが、プリンタドライバに設定された設定用紙サイズと同じで正しければ、このときの用紙長カウンタ65の計数値Nrsが、印刷データから取得した用紙長Psizeから、距離Lshを差し引いた値(Psize−Lsh)と一致するはずである。よって、計数値Nrsと値(Psize−Lsh)との差をとって、Psize−Lsh−Nrsの値が所定許容値α(例えば1〜5mmの範囲内の値)以上であった場合、設定用紙サイズよりも短い用紙がセットされたものとして、給紙エラーと判定する。但し、本実施形態では、このような給紙エラー時であっても、設定用紙サイズから決まる印刷開始位置に用紙が頭出しされたときに、用紙の後端が記録ヘッド19の例えば最下流ノズルを通過していなければ当該用紙への記録が可能であるので、この場合には用紙への記録を行う。   FIG. 5C shows a state where the trailing edge of the paper has passed through the lever 31 of the paper detection sensor 33 and the paper detection sensor 33 has been switched from on to off, thereby causing a paper out detection state. At this time, if the size of the paper set by the user on the paper guide 17 is the same as the set paper size set in the printer driver, the count value Nrs of the paper length counter 65 at this time is the paper length acquired from the print data. It should match the value obtained by subtracting the distance Lsh from Psize (Psize−Lsh). Therefore, when the difference between the count value Nrs and the value (Psize−Lsh) is taken and the value of Psize−Lsh−Nrs is equal to or larger than a predetermined allowable value α (for example, a value within a range of 1 to 5 mm), the setting paper A paper feed error is determined as a paper shorter than the size is set. However, in this embodiment, even when such a paper feed error occurs, when the paper is cued to the print start position determined from the set paper size, the rear end of the paper is, for example, the most downstream nozzle of the recording head 19. If it does not pass, recording on the paper is possible. In this case, recording on the paper is performed.

また、オーバーライドカウンタ68には、図5(c)に示すように紙検出センサ33がオンからオフに切り替わると、オーバーライド長bがセットされ、そのセットされた値は、その後の用紙搬送とともにデクリメントされる。そして、オーバーライドカウンタ68の計数値が「0」になると、CPU43は印刷が不能な印刷限界位置まで用紙が搬送されたと認識する。なお、本実施形態では、紙検出センサ33が用紙P1の先端を検知したときと、用紙P1の後端を検知したときは、共に用紙の搬送動作が一旦停止される。これは、カウンタにセットした値と用紙の位置とを精度良く一致させるためである。   Further, when the paper detection sensor 33 is switched from on to off as shown in FIG. 5C, the override length b is set in the override counter 68, and the set value is decremented with the subsequent paper conveyance. The When the count value of the override counter 68 becomes “0”, the CPU 43 recognizes that the sheet has been transported to a print limit position where printing is impossible. In the present embodiment, the paper transport operation is temporarily stopped both when the paper detection sensor 33 detects the leading edge of the paper P1 and when the paper detection sensor 33 detects the trailing edge of the paper P1. This is to make the value set in the counter coincide with the paper position with high accuracy.

図6は、用紙の模式平面図を示す。図6(a)は給紙エラーで印刷不可の場合、同図(b)は給紙エラーで印刷可能の場合を示す。図6では同図(a)中に矢印で示す上方向が排紙方向(搬送方向)である。また、この図は、用紙Pと共に移動する視点から記録ヘッドを見た図となっており、用紙Pに対して記録ヘッド19が相対移動するように描かれている。なお、図6において記録ヘッド19(19A〜19E)中に描かれている太線はノズル列を示す。さらに図6において、実線の用紙Pが実際に給紙された用紙を示し、二点鎖線で示された用紙Psがプリンタドライバから取得した設定用紙サイズのものを示す。   FIG. 6 is a schematic plan view of the paper. FIG. 6A shows a case where printing is not possible due to a paper feed error, and FIG. 6B shows a case where printing is possible due to a paper feed error. In FIG. 6, the upward direction indicated by the arrow in FIG. 6A is the paper discharge direction (conveyance direction). Further, this figure is a view of the recording head viewed from the viewpoint of moving together with the paper P, and is depicted such that the recording head 19 moves relative to the paper P. In FIG. 6, thick lines drawn in the recording head 19 (19A to 19E) indicate nozzle rows. Further, in FIG. 6, a solid line paper P indicates a sheet actually fed, and a sheet Ps indicated by a two-dot chain line indicates a sheet having a set sheet size acquired from the printer driver.

ここで、図6(a),(b)において、二点鎖線で示す印刷領域APは、設定用紙Psの用紙サイズに対応して設定されたものであり、距離「S」は、この印刷領域APの印刷開始位置に記録ヘッド19Dが位置するまで用紙を搬送する搬送距離である。この搬送距離Sは印刷データのヘッダから給紙コマンドのパラメータとして取得される。図6に示す記録ヘッド19Aは、用紙の先端がヘッド基準位置H(最上流ノズル)に達した搬送量が「0」の原点に位置する状態を示す。用紙Pの原点からの搬送量は、用紙長カウンタ65に計数され、CPU43は用紙長カウンタ65の計数値から、用紙Pの搬送方向(副走査方向Y)における位置を把握できる。   Here, in FIGS. 6A and 6B, the print area AP indicated by the two-dot chain line is set corresponding to the paper size of the set paper Ps, and the distance “S” is the print area. This is the transport distance for transporting the paper until the recording head 19D is positioned at the AP print start position. This transport distance S is acquired as a parameter of the paper feed command from the header of the print data. The recording head 19A shown in FIG. 6 shows a state in which the leading end of the paper reaches the head reference position H (the most upstream nozzle) and is located at the origin where the transport amount is “0”. The conveyance amount from the origin of the paper P is counted by the paper length counter 65, and the CPU 43 can grasp the position of the paper P in the conveyance direction (sub-scanning direction Y) from the count value of the paper length counter 65.

また、図6において、記録ヘッド19Bは用紙の後端が紙検出センサ33に検知されたときの位置を示し、この位置までの搬送距離が「Nrs」である。用紙の後端が紙検出センサ33に検知された時点で給紙動作は一旦停止され、用紙位置を管理するカウンタが、用紙長カウンタ65からオーバーライドカウンタ68に切り換えられる。そして、印刷開始位置までの残りの搬送距離a(=S−Nrs)が設定される。   In FIG. 6, the recording head 19 </ b> B indicates the position when the trailing edge of the sheet is detected by the sheet detection sensor 33, and the transport distance to this position is “Nrs”. When the trailing edge of the sheet is detected by the sheet detection sensor 33, the sheet feeding operation is temporarily stopped, and the counter for managing the sheet position is switched from the sheet length counter 65 to the override counter 68. Then, the remaining transport distance a (= S−Nrs) to the printing start position is set.

また、このとき、用紙長カウンタ65の計数値Nrsと設定用紙長Psizeとを用いて、Psize−Lsh−Nrs≧αを満たすか否かを判断することで、給紙エラーであるか否かを判断する。図6(a),(b)に示す給紙エラーの例では、いずれもPsize−Nrs−Lsh≧αの条件を満たすことになる。   Further, at this time, by using the count value Nrs of the sheet length counter 65 and the set sheet length Psize, it is determined whether or not Psize−Lsh−Nrs ≧ α is satisfied. to decide. In the example of the paper feed error shown in FIGS. 6A and 6B, both satisfy the condition of Psize−Nrs−Lsh ≧ α.

さらに給紙エラーと判定すると、印刷開始位置まで搬送した場合に用紙への印刷が可能であるか否かを判断する。この判断は、残りの搬送距離aと、オーバーライド長bと、ノズル長Lnzlとを用いて、条件「a−Lnzl<b」が成立するか否かを判断することで行われる。この条件「a−Lnzl<b」が不成立の場合は印刷不可能と判断し(図6(a)の例)、この条件「a−Lnzl<b」が成立した場合は印刷可能と判断する(図6(b)の例)。ここで、オーバーライド長bは、記録ヘッド19Bの位置から用紙の後端がヘッド基準位置Hに達したときの記録ヘッド19Cの位置までの距離に相当する。また、ノズル長Lnzlは、ノズル列が用紙後端まで完全に印刷でき、かつ凸部28cにインクを吐出しない位置に配置された図6(b)に示す記録ヘッド19Eの位置において、ノズル列のうち用紙後端からはみ出した部分の長さに相当する。本実施形態ではノズル長Lnzlは、ノズル列の全長に設定されている。なお、図4は模式図であり、ノズル列が用紙後端からその全長だけはみ出した図中の二点鎖線で示す用紙Piの位置でも、実際は凸部28cにインクが当たらないように記録ヘッド19と凸部28cの位置関係は設定されている。もちろん、ノズル長Lnzlの値は、凸部28cと記録ヘッド19との位置関係に応じて、凸部28cにインクが当たらない値に設定できる。例えばノズル長Lnzlをノズル列の全長より短い値又は零に設定することもできる。   If it is further determined that there is a paper feed error, it is determined whether or not printing on the paper is possible when transported to the print start position. This determination is made by determining whether the condition “a−Lnzl <b” is satisfied using the remaining transport distance a, the override length b, and the nozzle length Lnzl. If this condition “a−Lnzl <b” is not satisfied, it is determined that printing is impossible (example in FIG. 6A), and if this condition “a−Lnzl <b” is satisfied, it is determined that printing is possible ( Example of FIG. 6B). Here, the override length b corresponds to the distance from the position of the recording head 19B to the position of the recording head 19C when the trailing edge of the paper reaches the head reference position H. Further, the nozzle length Lnzl is set so that the nozzle row can be printed completely up to the rear end of the paper, and the nozzle row Lnzl is positioned at the position of the recording head 19E shown in FIG. This corresponds to the length of the portion protruding from the rear edge of the paper. In the present embodiment, the nozzle length Lnzl is set to the entire length of the nozzle row. Note that FIG. 4 is a schematic diagram, and the recording head 19 actually prevents ink from hitting the convex portion 28c even at the position of the paper Pi indicated by the two-dot chain line in the figure in which the nozzle row protrudes from the rear end of the paper by the entire length. And the positional relationship between the convex portions 28c are set. Of course, the value of the nozzle length Lnzl can be set to a value at which the ink does not strike the convex portion 28c according to the positional relationship between the convex portion 28c and the recording head 19. For example, the nozzle length Lnzl can be set to a value shorter than the total length of the nozzle row or zero.

次にCPU43が実行する後端印刷制御処理ルーチンを、図8に従って説明する。CPU43は、ホストコンピュータ35から最初に受信した印刷データから、設定用紙長Psizeのデータと、給紙コマンドと、用紙を印刷開始位置まで搬送するのに必要な搬送距離S(パラメータ)とを取得する。なお、受信した印刷データから設定用紙長Psizeを取得する処理を実行するCPU43により、媒体長取得手段が構成される。   Next, the trailing edge printing control processing routine executed by the CPU 43 will be described with reference to FIG. The CPU 43 acquires data of the set paper length Psize, a paper feed command, and a transport distance S (parameter) necessary for transporting the paper to the print start position from the print data first received from the host computer 35. . The CPU 43 that executes a process of acquiring the set paper length Psize from the received print data constitutes a medium length acquisition unit.

まずステップS1では、給紙動作を開始する。
ステップS2では、用紙先端を検知したか否かを判断する。すなわち、図5(a)に示すように紙検出センサ33が用紙の先端を検知した場合はステップS3に進み、用紙の先端を検知していない場合は検知するまで給紙動作を継続する。
First, in step S1, a paper feeding operation is started.
In step S2, it is determined whether the leading edge of the sheet has been detected. That is, as shown in FIG. 5A, when the paper detection sensor 33 detects the leading edge of the paper, the process proceeds to step S3, and when the leading edge of the paper is not detected, the paper feeding operation is continued until it is detected.

ステップS3では、用紙長カウンタ65の計数を開始する。すなわち、用紙長カウンタ65をリセットして零から計数を開始する。
ステップS4では、印刷開始位置まで用紙を搬送する。つまり、用紙長カウンタ65の計数値が印刷開始位置に相当する値に達するまで用紙の搬送動作を行う。
In step S3, the paper length counter 65 starts counting. That is, the paper length counter 65 is reset and counting starts from zero.
In step S4, the paper is conveyed to the print start position. That is, the sheet transport operation is performed until the count value of the sheet length counter 65 reaches a value corresponding to the print start position.

次のステップS5では、用紙後端を検知したか否かを判断する。例えば図6に示すように、給紙された実際の用紙Pの用紙長が、設定用紙長Psizeよりも短い場合は、印刷開始位置にもよるが、給紙動作の途中で用紙の後端が紙検出センサ33により検知される機会が高くなる。用紙後端を検知した場合はステップS6に進み、用紙後端を検知していない場合はステップS8に進む。   In the next step S5, it is determined whether or not the trailing edge of the sheet has been detected. For example, as shown in FIG. 6, when the actual length of the fed paper P is shorter than the set paper length Psize, depending on the print start position, the trailing edge of the paper is moved during the paper feeding operation. The chance of being detected by the paper detection sensor 33 is increased. If the trailing edge of the sheet is detected, the process proceeds to step S6. If the trailing edge of the sheet is not detected, the process proceeds to step S8.

ステップS6では、用紙長カウンタ65の計数値Nxが設定用紙長に対応する値に達していないか否かを判断する。CPU43は印刷データのヘッダから設定用紙長Psizeを取得する。この設定用紙長Psizeはカウンタ計数値換算値で与えられ、設定用紙長Psizeから「Lsh」を差し引くことにより、用紙長が設定用紙長と同じ正しいものであれば後端検知時に用紙長カウンタ65がとるべき計数値(=Psize−Lsh)が求まる(図7(a)参照)。この値(Psize−Lsh)が設定用紙用に対応する値に相当する。本実施形態では、値(Psize−Lsh)から用紙長カウンタ65の後端検知時の計数値Nx(=Nrs)を差し引いて求めた判定値J(=Psize−Lsh−Nrs)が、所定許容値α(例えば1〜5mmの範囲内の所定値)以上の値であった(J≧α)場合に、設定用紙長Psizeよりも短い用紙長の用紙が給紙された給紙エラーと判定する。J≧αを満たす給紙エラーの場合はステップS7に進み、J≧αを満たさない給紙成功の場合はステップS8に進む。なお、ステップS6の処理を実行するCPU43により、給送判定手段が構成される。   In step S6, it is determined whether or not the count value Nx of the sheet length counter 65 has reached a value corresponding to the set sheet length. The CPU 43 acquires the set paper length Psize from the print data header. The set sheet length Psize is given as a counter count value conversion value. If the sheet length is correct and the same as the set sheet length by subtracting “Lsh” from the set sheet length Psize, the sheet length counter 65 is detected when the trailing edge is detected. A count value (= Psize−Lsh) to be taken is obtained (see FIG. 7A). This value (Psize−Lsh) corresponds to a value corresponding to the setting paper. In this embodiment, the determination value J (= Psize−Lsh−Nrs) obtained by subtracting the count value Nx (= Nrs) at the time of detecting the trailing edge of the sheet length counter 65 from the value (Psize−Lsh) is a predetermined allowable value. If the value is equal to or greater than α (for example, a predetermined value in the range of 1 to 5 mm) (J ≧ α), it is determined that a paper feed error has occurred when a paper having a paper length shorter than the set paper length Psize is fed. If the paper feed error satisfies J ≧ α, the process proceeds to step S7. If the paper feed succeeds without satisfying J ≧ α, the process proceeds to step S8. The CPU 43 that executes the process of step S6 constitutes a feeding determination unit.

ステップS7では、給紙エラーフラグに「1」を立てる。ここで、給紙エラーフラグとは、設定用紙長Psizeより短い用紙が給紙された給紙エラーの発生を覚えておくためのフラグである。本実施形態では、給紙エラーであっても、用紙からインクがはみ出して吐出させてプラテン28の凸部28cをインクで汚さない限りにおいて、用紙上に印刷を実施するようにしている。このような通常印刷ではなく、設定より短い用紙長の用紙上に印刷を施す特殊印刷である旨を給紙エラーフラグによって覚えておく。   In step S7, “1” is set in the paper feed error flag. Here, the paper feed error flag is a flag for remembering the occurrence of a paper feed error when paper shorter than the set paper length Psize is fed. In the present embodiment, even if a paper feed error occurs, printing is performed on the paper as long as the ink protrudes from the paper and is discharged and the convex portion 28c of the platen 28 is not stained with ink. It is remembered by the paper feed error flag that this is not normal printing but special printing in which printing is performed on a paper having a shorter paper length than the setting.

ステップS8では、給紙エラーフラグが「1」であるか否かを判断する。給紙エラーフラグが「1」であればステップS9に進み、「1」でなければ(つまり「0」であれば)ステップS10に進む。   In step S8, it is determined whether or not the paper feed error flag is “1”. If the paper feed error flag is “1”, the process proceeds to step S9, and if it is not “1” (that is, “0”), the process proceeds to step S10.

ステップS9では、用紙を印刷開始位置に頭出しした場合に印刷可能であるか否かを判断する。用紙後端検知時にステップS7から本処理に移行した場合は、a−Lnzl≧bが成立するか否かを判断する。そして、a−Lnzl≧bが成立して印刷可能であればステップS10に進み、a−Lnzl≧bが不成立で印刷が不可能であればステップS13に進む。一方、頭出しされて印刷開始後にステップS8から本処理に移行した場合は、オーバーライドカウンタ68の計数値Nbが「−Lnzl」以上であるか否かを判断する。Nb≧−Lnzlが成立して印刷可能であればステップS10に進み、Nb<−Lnzlが不成立で印刷不可能であればステップS13に進む。但し、Lnzlは、0<Lnzl≦ノズル列全長であり、本実施形態ではLnzl=ノズル列全長である。   In step S9, it is determined whether printing is possible when the paper is cued to the print start position. If the process shifts from step S7 to the present process when the trailing edge of the sheet is detected, it is determined whether or not a−Lnzl ≧ b is satisfied. If a-Lnzl ≧ b is established and printing is possible, the process proceeds to step S10. If a-Lnzl ≧ b is not established and printing is impossible, the process proceeds to step S13. On the other hand, when the process is started from step S8 after cueing and printing is started, it is determined whether or not the count value Nb of the override counter 68 is equal to or larger than “−Lnzl”. If Nb ≧ −Lnzl is established and printing is possible, the process proceeds to step S10. If Nb <−Lnzl is not established and printing is impossible, the process proceeds to step S13. However, Lnzl is 0 <Lnzl ≦ nozzle row total length, and in this embodiment, Lnzl = nozzle row total length.

ステップS10では、印刷動作を行う。
ステップS11では、印刷完了したか否かを判断する。印刷完了でなければステップS12に進み、印刷完了であればステップS13に進む。
In step S10, a printing operation is performed.
In step S11, it is determined whether printing is completed. If printing is not completed, the process proceeds to step S12. If printing is completed, the process proceeds to step S13.

ステップS12では、紙送り動作を行う。そして、紙送り動作後はステップS5に戻る。つまり、ステップS11で印刷完了するか、ステップS9で印刷可能でないと判断されるまで、ステップS5〜S10,S12の各処理のうち判断結果に応じた処理を実行する。   In step S12, a paper feeding operation is performed. After the paper feeding operation, the process returns to step S5. That is, the process according to the determination result is executed among the processes in steps S5 to S10 and S12 until the printing is completed in step S11 or the printing is not possible in step S9.

そして、ステップS13では、排紙動作を行う。
例えば用紙サイズを間違えていなければ、通常は、印刷動作(S10)と紙送り動作(S12)とを交互に繰り返して用紙への印刷が進められる。このとき給紙途中又は紙送り時に用紙の後端が紙検出センサ33に検知されても、ステップS6の判断でa−Lnzl≧bが不成立なので、給紙エラーフラグは「0」のままであり、印刷完了まで印刷が進められる。
In step S13, a paper discharge operation is performed.
For example, if the paper size is not wrong, the printing operation (S10) and the paper feeding operation (S12) are normally repeated alternately to advance printing on the paper. At this time, even if the trailing edge of the paper is detected by the paper detection sensor 33 during paper feeding or paper feeding, the paper feed error flag remains “0” because a−Lnzl ≧ b is not satisfied in step S6. Printing proceeds until printing is completed.

一方、用紙の後端検知時に給紙エラーと判定され(S6)、さらに頭出しした場合に用紙に印刷可能(a−Lnzl≧bが成立)と判断された場合(S7)は、その後、印刷開始位置に頭出しされて印刷動作を終えると(S10)、用紙は紙送りされる(S12)。そして、次の印刷動作に先立ち、給紙エラーフラグが「1」であることから(S8)、Nb<−Lnzlが成立するか否かを判断し(S9)、Nb<−Lnzlが成立すれば印刷可能であるので、印刷動作が行われる(S10)。こうして印刷と紙送りが交互に繰り返されるに連れて、オーバーライドカウンタ68の計数値Nbは徐々にデクリメントされ、印刷完了と判定されるか(S11でYES)、Nb<−Lnzlが不成立になると(S9でNO)、用紙は排紙される(S13)。   On the other hand, if it is determined that a paper feed error has occurred when the trailing edge of the paper is detected (S6), and it is determined that printing is possible on the paper (a-Lnzl ≧ b is established) when cueing further (S7), then printing is performed. When the printing operation is finished after the head is cued (S10), the paper is fed (S12). Prior to the next printing operation, since the paper feed error flag is “1” (S8), it is determined whether Nb <−Lnzl is satisfied (S9), and if Nb <−Lnzl is satisfied. Since printing is possible, a printing operation is performed (S10). As the printing and paper feeding are alternately repeated in this way, the count value Nb of the override counter 68 is gradually decremented and it is determined that the printing is completed (YES in S11), or if Nb <−Lnzl is not established (S9). NO), the paper is discharged (S13).

また、本実施形態では、CPU43が別のプログラムを実行することにより、用紙長カウンタ65の計数値Nxを用いて重送エラーの判定も行っている。図7は、用紙の重送エラー判定を説明する用紙の模式平面図である。図7(a)に示すように、正しく給紙された場合は、用紙長カウンタ65の計数値Nxは、プリンタドライバから通知される設定用紙長Psizeから、最上流ノズル(ヘッド基準位置H)と紙検出センサ33間の距離に相当する値Lshを差し引いた値(Psize−Lsh)と等しくなる。また、図7(b)に示すように、用紙が重なって給紙された場合は、用紙長カウンタ65の計数値Nxは、前記の値(Psize−Lsh)よりも長くなる。このため、本実施形態では、用紙長カウンタ65の計数値Nxから値(Psize−Lsh)を差し引いた判定値K(=Nx−Psize+Lsh)が所定許容値β(1〜5mmの範囲内の所定値)以上の値であるか否かを判断し、K≧βが成立した場合は、重送エラーと判定している。なお、この重送判定のプログラムを実行するCPU43により、重送判定手段が構成される。   In the present embodiment, the CPU 43 also executes another program to determine the double feed error using the count value Nx of the paper length counter 65. FIG. 7 is a schematic plan view of a sheet for explaining determination of sheet double feed error. As shown in FIG. 7A, when the paper is correctly fed, the count value Nx of the paper length counter 65 is set to the most upstream nozzle (head reference position H) from the set paper length Psize notified from the printer driver. This is equal to a value (Psize−Lsh) obtained by subtracting a value Lsh corresponding to the distance between the paper detection sensors 33. Further, as shown in FIG. 7B, when the sheets are overlapped and fed, the count value Nx of the sheet length counter 65 becomes longer than the value (Psize−Lsh). Therefore, in this embodiment, the determination value K (= Nx−Psize + Lsh) obtained by subtracting the value (Psize−Lsh) from the count value Nx of the sheet length counter 65 is a predetermined allowable value β (a predetermined value within a range of 1 to 5 mm). ) It is determined whether or not the value is equal to or greater than the above value. If K ≧ β is satisfied, it is determined that a double feed error has occurred. It should be noted that the CPU 43 that executes this double feed determination program constitutes a double feed determination means.

本実施形態では、CPU43がメインプログラムを実行することにより主制御部71を構成し、CPU43が割込み処理でサブルーチンを実行することにより主制御部71の指示に基づきシーケンス制御を実行するシーケンス実行部72を構成する。図9は、主制御部71とシーケンス実行部72との間で行われる指示・応答およびシーケンス実行部72が行う処理等を示すトランザクション図である。図9(a)は給紙エラーで印刷不可の場合、図9(b)は給紙エラーでも印刷可能な場合である。まず図9(a)に従って給紙エラーで印刷不可の場合について説明する。   In the present embodiment, the CPU 43 configures the main control unit 71 by executing the main program, and the CPU 43 executes sequence control based on an instruction from the main control unit 71 by executing a subroutine by interrupt processing. Configure. FIG. 9 is a transaction diagram illustrating an instruction / response performed between the main control unit 71 and the sequence execution unit 72, processing performed by the sequence execution unit 72, and the like. FIG. 9A shows a case where printing is impossible due to a paper feed error, and FIG. 9B shows a case where printing is possible even with a paper feed error. First, a case where printing cannot be performed due to a paper feed error will be described with reference to FIG.

主制御部71は、給紙指示を行う。このときパラメータとして印刷開始位置への距離Sを与える。給紙指示を受け付けたシーケンス実行部72は給紙動作を行う。その給紙途中で紙検出センサ33が用紙の後端(紙なし)を検知すると、その検知された位置で給紙を中断する。そして、シーケンス実行部72は、主制御部71に対して給紙失敗の旨と、パラメータとして給紙中断位置までの搬送距離Nr sを通知する。   The main control unit 71 issues a paper feed instruction. At this time, a distance S to the print start position is given as a parameter. The sequence execution unit 72 that has received the paper feed instruction performs a paper feed operation. When the paper detection sensor 33 detects the trailing edge of the paper (no paper) during the paper feeding, the paper feeding is interrupted at the detected position. Then, the sequence execution unit 72 notifies the main control unit 71 that the paper feed has failed and the conveyance distance Nr s to the paper feed interruption position as a parameter.

次に主制御部71は、シーケンス実行部72に対して紙送りを指示し、そのパラメータとして残りの紙送り距離「S−Nrs」(=a)を与える。紙送り指示を受け付けたシーケンス実行部72は、a−Lnzl≧bが成立するか否かを判断するが、この印刷不可の例では、a−Lnzl≧bが不成立となり印刷不可判定が行われる。そして、印刷不可判定の場合は、排紙を行うとともに、紙送り失敗の旨を主制御部71に通知する。   Next, the main control unit 71 instructs the sequence execution unit 72 to feed paper, and gives the remaining paper feed distance “S−Nrs” (= a) as a parameter. The sequence execution unit 72 that has received the paper feed instruction determines whether or not a−Lnzl ≧ b is satisfied. However, in this non-printable example, a−Lnzl ≧ b is not satisfied and the print disabled determination is performed. If it is determined that printing is not possible, the main control unit 71 is notified that paper discharge has been performed and the paper feed has failed.

次に図9(b)に従って給紙エラーでも印刷可能の場合について説明する。主制御部71は、給紙指示を行う。このときパラメータとして印刷開始位置への距離Sを与える。給紙指示を受け付けたシーケンス実行部72は給紙動作を行う。図9(a)の場合と同様に、給紙途中に紙検出センサ33に用紙の後端(紙なし)が検知されると、給紙を中断し、シーケンス実行部72は、主制御部71に対して給紙失敗の旨と、パラメータとして給紙中断位置までの搬送距離Nrsを通知する。   Next, a case where printing is possible even with a paper feed error will be described with reference to FIG. The main control unit 71 issues a paper feed instruction. At this time, a distance S to the print start position is given as a parameter. The sequence execution unit 72 that has received the paper feed instruction performs a paper feed operation. Similarly to the case of FIG. 9A, when the paper detection sensor 33 detects the trailing edge of the paper (no paper) during paper feeding, the paper feeding is interrupted, and the sequence execution unit 72 causes the main control unit 71 to Is notified of the failure of paper feed and the conveyance distance Nrs to the paper feed interruption position as a parameter.

次に主制御部71は、シーケンス実行部72に対して紙送りを指示し、そのパラメータとして残りの紙送り距離「S−Nrs」(=a)を与える。紙送り指示を受け付けたシーケンス実行部72は、a−Lnzl≧bが成立するか否かを判断し、この印刷可能な例では、a−Lnzl≧bが成立し、印刷可能判定が行われる。そして、印刷可能判定の場合は、シーケンス実行部72は、指示された残りの紙送り距離「S−Nrs」(=a)の紙送りを行う。そして、紙送り完了の旨を主制御部71に送る。次に主制御部71は、印刷指示を行い、シーケンス実行部72は印刷を行うとともに印刷完了の旨を通知する。そして、主制御部71は引き続き紙送り指示を行い、以下、シーケンス実行部72は紙送りと印刷を交互に行う。シーケンス実行部72は、毎回の紙送りに先立ち印刷可能判定(Nb<−Lnzlが成立するか否かの判定)を行い、印刷可能判定の場合はその回の紙送り・印刷を行い、印刷不可判定の場合は排紙を行うとともに紙送り失敗の通知を行う。   Next, the main control unit 71 instructs the sequence execution unit 72 to feed paper, and gives the remaining paper feed distance “S−Nrs” (= a) as a parameter. The sequence execution unit 72 that has received the paper feed instruction determines whether or not a−Lnzl ≧ b is satisfied, and in this printable example, a−Lnzl ≧ b is satisfied and a printable determination is performed. If it is determined that printing is possible, the sequence execution unit 72 feeds the instructed remaining paper feed distance “S−Nrs” (= a). Then, a message to the effect that paper feeding is complete is sent to the main control unit 71. Next, the main control unit 71 issues a print instruction, and the sequence execution unit 72 performs printing and notifies the completion of printing. The main control unit 71 continues to issue a paper feed instruction, and the sequence execution unit 72 performs paper feed and printing alternately thereafter. The sequence execution unit 72 performs a print enable determination (determination of whether or not Nb <−Lnzl is satisfied) prior to each paper feed. If the print enable determination is made, the paper feed / print is performed at that time, and printing is not possible. In the case of determination, the paper is discharged and a paper feed failure is notified.

以上詳述したように、本実施形態によれば、以下の効果を得ることができる。
(1)用紙長カウンタ65により用紙の先端からの搬送距離を管理する。このため、用紙長カウンタ65の計数値Nxを用いて用紙長を管理することができる。すなわち、用紙長カウンタ65の計数値Nxにヘッド基準位置Hと紙検出センサ33間の距離Lshを加算すれば、用紙の先端が紙検出センサ33に検知されてからの用紙の搬送距離(Nh+Lsh)を取得できる。そして、搬送距離(Nh+Lsh)が設定上の用紙長Psizeに達したか否かを判断することが可能になる。
As described above in detail, according to the present embodiment, the following effects can be obtained.
(1) The conveyance distance from the leading edge of the sheet is managed by the sheet length counter 65. Therefore, the paper length can be managed using the count value Nx of the paper length counter 65. That is, if the distance Lsh between the head reference position H and the paper detection sensor 33 is added to the count value Nx of the paper length counter 65, the paper conveyance distance (Nh + Lsh) after the leading edge of the paper is detected by the paper detection sensor 33. Can be obtained. Then, it is possible to determine whether or not the transport distance (Nh + Lsh) has reached the set paper length Psize.

(2)用紙の後端が紙検出センサ33により検知されたときに、値(Psize−Lsh)から用紙長カウンタ65の計数値Nrsを差し引いて求めた判定値J(=Psize−Lsh−Nrs)が、所定許容値α(例えば1〜5mmの範囲内の所定値)以上の値であった場合に、設定用紙長Psizeよりも短い用紙長の用紙がセットされて給紙された給紙エラーと判定する。よって、給紙された用紙が設定用紙サイズより短い給紙エラーを検出できる。   (2) Judgment value J (= Psize−Lsh−Nrs) obtained by subtracting the count value Nrs of the sheet length counter 65 from the value (Psize−Lsh) when the trailing edge of the sheet is detected by the sheet detection sensor 33. Is a value greater than or equal to a predetermined allowable value α (for example, a predetermined value in a range of 1 to 5 mm), and a paper feed error in which a paper having a paper length shorter than the set paper length Psize is set and fed judge. Therefore, it is possible to detect a paper feed error in which the fed paper is shorter than the set paper size.

(3)給紙エラー検出時は、オーバーライド長bと、印刷開始位置までの残りの搬送距離aと、ノズル長Lnzlとの各値を用いて、a−Lnzl>bが成立するか否かを判断することで、給紙エラーの用紙を頭出ししたときに印刷が可能であるか否かを判断する。そして、印刷可能と判断した場合は、給紙エラーの用紙に印刷を行う。よって、ユーザがセットすべき用紙のサイズを間違えたり、プリンタドライバへの用紙サイズの設定を間違えたりして、実際の用紙長が設定用紙長より短くても、その給紙ミスの用紙に可能な限りにおいて印刷を施すことができる。   (3) When a paper feed error is detected, it is determined whether or not a−Lnzl> b is satisfied using the values of the override length b, the remaining transport distance a to the print start position, and the nozzle length Lnzl. By determining, it is determined whether or not printing is possible when a paper with a paper feed error is cued. If it is determined that printing is possible, printing is performed on a paper with a paper feed error. Therefore, even if the paper size to be set by the user is wrong or the paper size setting in the printer driver is wrong, even if the actual paper length is shorter than the set paper length, it is possible to use paper that is misfeeded. As long as printing is possible.

(4)上記の条件a−Lnzl>bにより印刷可能であるか否かを判定するので、頭出し位置で印刷を行っても、プラテン28の凸部28cをインクで汚す心配がない。このため、次頁(後続)の用紙が凸部28cに付着したインクで汚れることを回避できる。   (4) Since it is determined whether or not printing is possible based on the above condition a-Lnzl> b, there is no fear that the convex portion 28c of the platen 28 is stained with ink even when printing is performed at the cueing position. For this reason, it is possible to avoid that the paper on the next page (following) is stained with the ink adhering to the convex portion 28c.

(5)また、オーバーライドカウンタ68が零になった後、さらに値Lnzlを計数するまで印刷して終了するので、給紙エラー時の用紙に印刷を施してもプラテン28の凸部28cをインクで汚すことを回避でき、次頁の用紙を凸部28cのインクで汚す心配がない。   (5) Further, after the override counter 68 becomes zero, printing is completed until the value Lnzl is further counted, so even if printing is performed on the paper at the time of paper feeding error, the convex portion 28c of the platen 28 is filled with ink. It is possible to avoid smearing, and there is no worry of smearing the paper on the next page with the ink of the convex portion 28c.

(6)さらに用紙長カウンタ65の計数値Nxから値Psize−Lshを差し引いた判定値K(=Nx−Psize+Lsh)が所定許容値β以上の値である場合は、重送エラーと判定する。よって、次頁の用紙が現頁の用紙と重なって給紙される重送エラーを検出できるので、例えばプリンタ11の警告灯を点灯するなどしてユーザに重送エラーの発生を報知できる。このため、例えば次頁の用紙をセットし直すなどし、次頁の用紙を正しく頭出しして正しく印刷を行うことができる。   (6) Further, if the determination value K (= Nx−Psize + Lsh) obtained by subtracting the value Psize−Lsh from the count value Nx of the sheet length counter 65 is a value equal to or greater than the predetermined allowable value β, it is determined that a double feed error has occurred. Therefore, a double feed error in which the next page paper is fed with the current page paper can be detected, so that the user can be notified of the occurrence of the double feed error, for example, by turning on a warning lamp of the printer 11. For this reason, for example, the next page of paper can be reset, and the next page of paper can be properly cued and printed correctly.

(7)用紙が頭出しされて最初の印刷を終了し、最初の紙送りか排紙が行われるときに、用紙長カウンタ65の計数値を、用紙の先端がヘッド基準位置Hに一致したときの位置を原点とする値に更新したので、用紙長カウンタ65の計数値によって、用紙の先端からヘッド基準位置Hまでの距離を管理できる。また、用紙長カウンタ65の計数値を更新しない方法も可能であるが、この場合、使用頻度の高い搬送位置を取得する際に換算がその都度必要になる。しかし、本実施形態では、頭出し後の最初の印刷動作後に更新を行うので、その種の面倒な換算処理を不要にできる。よって、搬送位置を取得して行う処理の遅れを防止でき、例えば紙送りなどの用紙搬送処理の起動遅れを防いで高速な用紙搬送を実現できる。   (7) When the paper is cued and the first printing is completed, and the first paper feed or paper discharge is performed, the count value of the paper length counter 65 is set to match the leading edge of the paper with the head reference position H. Thus, the distance from the leading edge of the paper to the head reference position H can be managed by the count value of the paper length counter 65. In addition, a method in which the count value of the paper length counter 65 is not updated is possible. In this case, however, conversion is necessary each time when a frequently used conveyance position is acquired. However, in this embodiment, since the update is performed after the first printing operation after cueing, such troublesome conversion processing can be eliminated. Therefore, it is possible to prevent a delay in processing performed by acquiring the transport position, and it is possible to realize a high-speed paper transport by preventing a delay in starting a paper transport process such as paper transport.

なお、前記各実施形態に限定されず、以下の形態も採用できる。
(変形例1)前記実施形態では、用紙が印刷開始位置に頭出しされた時点で用紙長カウンタ65の計数値を、用紙の先端がヘッド基準位置Hに一致したときの位置を原点とする値に更新したが、この方法に限定されない。例えば用紙の先端が紙検出センサ33に検知された時点で、用紙長カウンタ65に、用紙長カウンタ65とヘッド基準位置H間の距離に相当する値Lshをマイナス側にオフセットした値「−Lsh」をセットすることで、用紙が印刷開始位置に到達したときの計数値をNhとする処理を採用することもできる。また、用紙の先端がヘッド基準位置Hに一致したときに給紙動作を一旦停止し、この停止時に用紙長カウンタ65のそれまでの計数値を零にする方法も採用できる。
It should be noted that the present invention is not limited to the above embodiments, and the following forms can also be adopted.
(Modification 1) In the above-described embodiment, the count value of the sheet length counter 65 is obtained when the sheet is cued to the print start position, and the position when the leading end of the sheet coincides with the head reference position H is the origin. However, it is not limited to this method. For example, when the leading edge of the paper is detected by the paper detection sensor 33, a value “−Lsh” obtained by offsetting the value Lsh corresponding to the distance between the paper length counter 65 and the head reference position H to the paper length counter 65 to the negative side. By setting, it is also possible to employ a process for setting the count value when the paper reaches the print start position to Nh. Further, it is possible to adopt a method in which the paper feeding operation is temporarily stopped when the leading edge of the paper coincides with the head reference position H, and the count value of the paper length counter 65 is made zero at this time.

(変形例2)前記実施形態では、用紙の後端を紙検出センサ33が検知した時点で給紙動作を一旦停止したが、一旦停止することなく印刷開始位置まで一気に給紙する構成も採用できる。この場合、印刷開始位置まで搬送し終わった時点で、給紙エラー判定、および給紙エラー時の用紙への印刷可能か否かの判定を行えばよい。この場合、紙検出センサ33が用紙の後端を検知した後にその用紙の頭出しを終えた時点、オーバーライドカウンタ68のカウントダウン後の値が正の値になっていれば印刷可能と判断し、零又は負の値になっていれば印刷不能と判断する。   (Modification 2) In the above-described embodiment, the paper feeding operation is temporarily stopped when the paper detection sensor 33 detects the trailing edge of the paper. However, it is also possible to adopt a configuration in which paper is fed all at once to the print start position without being temporarily stopped. . In this case, it is sufficient to determine the paper feed error and whether or not printing on the paper at the time of the paper feed error is possible at the time when the conveyance to the printing start position is completed. In this case, when the paper detection sensor 33 detects the trailing edge of the paper and finishes cueing the paper, if the value after the countdown of the override counter 68 is a positive value, it is determined that printing is possible, and zero Or, if it is a negative value, it is determined that printing is impossible.

(変形例3)前記実施形態では、設定用紙サイズに対応する記録データに基づき記録ヘッドの全ノズルを有効にして吐出されるインクで印刷する構成であったが、プラテン28の記録禁止領域(凸部28c)に打たれるかどうかを判断し、記録禁止領域に打たれるようであれば、そのノズルからの吐出を禁止するように記録データにマスクを施す構成を採用してもよい。この構成によれば、用紙の印刷できる領域にドット抜けのない完全な画像を印刷できる。   (Modification 3) In the above-described embodiment, the printing is performed with ink ejected with all nozzles of the recording head enabled based on the recording data corresponding to the set paper size. It may be determined whether or not it is hit by the portion 28c), and if it is hit by the recording prohibition area, a configuration may be adopted in which the recording data is masked so as to prohibit ejection from the nozzle. According to this configuration, a complete image with no missing dots can be printed in the printable area of the paper.

(変形例4)前記実施形態では、設定用紙サイズに対応する記録データを用いる構成であったが、給紙エラー判定後に、その時の用紙長カウンタ65の計数値から認知しうる実際の用紙サイズに合わせて、その実際の用紙幅を過剰にはみ出た領域へのインク吐出を防ぐべく用紙幅方向に記録データにマスクを施す方法を採用することができる。この場合、用紙の幅方向外側にはみ出て打たれるインクが記録禁止領域(凸部28c)に付着することを回避でき、その後、給紙されるより大きなサイズの用紙が凸部28cのインクで汚れることを回避できる。   (Modification 4) In the above embodiment, the recording data corresponding to the set paper size is used. However, after the paper feed error is determined, the actual paper size is recognized from the count value of the paper length counter 65 at that time. In addition, it is possible to employ a method of masking the recording data in the paper width direction in order to prevent ink ejection to an area where the actual paper width is excessively exceeded. In this case, it is possible to avoid the ink that protrudes from the outside in the width direction of the paper from adhering to the recording prohibited area (the convex portion 28c), and then a larger size paper to be fed is the ink of the convex portion 28c. It can avoid getting dirty.

(変形例5)前記実施形態では、ASFモータ56と、PFモータ58とを別々に設け、給紙ローラ22と紙送りローラ29とを別々の駆動源で駆動させる構成としたが、モータが共有された1つの駆動源としもよい。   (Modification 5) In the above embodiment, the ASF motor 56 and the PF motor 58 are provided separately, and the paper feed roller 22 and the paper feed roller 29 are driven by different drive sources. One drive source may be used.

(変形例6)搬送手段を構成する駆動源である各モータ56,58はDCモータに限定されない、他の電気モータを使用できる。例えばステッピングモータを使用できる。
(変形例7)前記実施形態では、後端印刷制御処理を、CPU43にプログラムを実行させることでソフトウェアにより実現したが、例えば制御回路(カスタムICなど)によりハードウェアで実現してもよく、さらにハードウェアとソフトウェアとの協働により実現することもできる。
(Modification 6) Each of the motors 56 and 58 which are drive sources constituting the conveying means is not limited to a DC motor, and other electric motors can be used. For example, a stepping motor can be used.
(Modification 7) In the above embodiment, the trailing edge printing control processing is realized by software by causing the CPU 43 to execute a program. However, for example, it may be realized by hardware by a control circuit (custom IC or the like). It can also be realized by cooperation between hardware and software.

(変形例8)インクジェット式プリンタに限定されない。ドットインパクト式プリンタなどの他のシリアルプリンタに適用してもよい。さらにページプリンタに適用することもできる。この場合、レーザープリンタに限定されず、最大用紙幅の全域に渡りノズルを有するラインヘッド型の記録ヘッドを有する記録装置に適用することもできる。また、両面印刷装置に適用することもできる。   (Modification 8) The present invention is not limited to the ink jet printer. You may apply to other serial printers, such as a dot impact type printer. Further, it can be applied to a page printer. In this case, the present invention is not limited to a laser printer, and can also be applied to a recording apparatus having a line head type recording head having nozzles over the entire maximum sheet width. It can also be applied to a duplex printing apparatus.

(変形例9)前記実施形態では、記録装置をインクジェット式プリンタに具体化したが、液体としてインク以外の液体を噴射するその他の液体噴射式の記録装置にも適用できる。ここで、「記録」は、印刷による記録に限定されず、例えば回路の配線パターンなどに使用される材料を含む液状体を噴射して媒体としての基板上に配線パターンを描く記録をも含む。例えば、液晶ディスプレイ、EL(エレクトロルミネッセンス)ディスプレイ及び面発光ディスプレイの製造などに用いられる電極材や色材などの材料が分散または溶解された液状体を噴射する液体噴射装置(記録装置)であってもよい。   (Modification 9) In the above embodiment, the recording apparatus is embodied as an ink jet printer. However, the present invention can also be applied to other liquid ejecting recording apparatuses that eject liquid other than ink as liquid. Here, “recording” is not limited to recording by printing, but includes, for example, recording in which a liquid material containing a material used for a circuit wiring pattern is ejected to draw a wiring pattern on a substrate as a medium. For example, a liquid ejecting apparatus (recording apparatus) that ejects a liquid material in which materials such as electrode materials and color materials used for manufacturing liquid crystal displays, EL (electroluminescence) displays, and surface-emitting displays are dispersed or dissolved. Also good.

以下、前記実施形態および各変形例から把握される技術的思想を記載する。
(1)前記搬送手段は、給送手段(13,56)と媒体送り手段(30,58)とを有し、前記検出手段は媒体搬送経路上において前記給送手段と前記媒体搬送手段との間に位置することを特徴とする請求項1乃至7のいずれか一項に記載の記録装置。
Hereinafter, the technical idea grasped | ascertained from the said embodiment and each modification is described.
(1) The transport unit includes a feed unit (13, 56) and a medium feed unit (30, 58), and the detection unit is configured to connect the feed unit and the medium transport unit on a medium transport path. The recording apparatus according to claim 1, wherein the recording apparatus is located in between.

(2)前記記録手段は、搬送方向に所定長さに渡って記録可能な記録部(19a)を有し、前記判断手段は、前記第二距離から前記所定長さ以下の設定値を差し引いた値が、前記第一距離より許容範囲を超えて大きい場合は記録不可能と判断し、前記差し引いた値が前記第一距離より許容範囲を超えて大きくない場合は記録可能と判断することを特徴とする請求項3に記載の記録装置。ここで、記録部は、前記実施形態におけるノズル列に相当する。これによれば、第二距離から所定長さ以下の設定値を差し引いた値が、第一距離より許容範囲を超えて大きい場合は記録不可能と判断される。一方、前記差し引いた値が第一距離より許容範囲を超えて大きくない場合は記録可能と判断される。よって、記録手段において記録可能な所定長さに渡る範囲のうち一部でも、媒体への記録が可能であれば、記録手段におけるその一部によって媒体に記録が施される。   (2) The recording unit includes a recording unit (19a) capable of recording over a predetermined length in the transport direction, and the determination unit subtracts a set value less than the predetermined length from the second distance. When the value is larger than the first distance beyond the allowable range, it is determined that recording is impossible, and when the subtracted value is not larger than the first distance beyond the allowable range, it is determined that recording is possible. The recording apparatus according to claim 3. Here, the recording unit corresponds to the nozzle row in the embodiment. According to this, when the value obtained by subtracting the set value equal to or smaller than the predetermined length from the second distance is larger than the first distance beyond the allowable range, it is determined that recording is impossible. On the other hand, if the subtracted value is not larger than the first distance beyond the allowable range, it is determined that recording is possible. Therefore, even if a part of the range over the predetermined length that can be recorded by the recording unit can be recorded on the medium, recording is performed on the medium by the part of the recording unit.

(3)前記制御手段は、前記判断手段により前記記録開始位置からの記録が不可能と判断された場合は、前記搬送手段を制御して媒体を排出させることを特徴とする請求項1乃至7のいずれか一項に記載の記録装置。   (3) The control means controls the conveying means to discharge the medium when the judgment means judges that recording from the recording start position is impossible. The recording device according to any one of the above.

(4)前記計測手段は、前記記録手段の基準位置に前記媒体の先端が達したときの位置を原点とする搬送量を計測することを特徴とする請求項5乃至7のいずれか一項に記載の記録装置。   (4) The measurement unit according to any one of claims 5 to 7, wherein the measurement unit measures a conveyance amount having a position at a point when the leading edge of the medium reaches a reference position of the recording unit as an origin. The recording device described.

(5)前記計測手段は、前記検出手段が前記媒体の先端を検知した位置からの該媒体の搬送量を計数する計数手段と、前記計数手段(65)の計数値を前記記録手段の基準位置に前記媒体の先端が達した位置からの搬送量に値に更新する更新手段(43)とを有することを特徴とする技術的思想(4)に記載の記録装置。   (5) The measuring means includes a counting means for counting the amount of transport of the medium from the position where the detecting means has detected the leading edge of the medium, and a count value of the counting means (65) as a reference position of the recording means. The recording apparatus according to the technical idea (4), further comprising an update unit (43) for updating the transport amount from a position at which the leading end of the medium has reached to a value.

(6)前記記録手段と媒体搬送経路を挟んで対向する位置にプラテンを更に備え、前記制御ステップでは、前記記録開始位置からの記録が可能と判断された場合、前記媒体からはみ出た記録が前記プラテンの記録禁止領域に施されない限りにおいて該媒体に記録を施すことを特徴とする請求項8に記載の記録方法。   (6) A platen is further provided at a position facing the recording unit across the medium conveyance path, and in the control step, when it is determined that recording from the recording start position is possible, the recording protruding from the medium is 9. The recording method according to claim 8, wherein recording is performed on the medium as long as the recording is not performed on the recording prohibited area of the platen.

一実施形態におけるプリンタの斜視図。1 is a perspective view of a printer according to an embodiment. 自動給紙装置及びキャリッジを示す模式側面図。FIG. 3 is a schematic side view showing an automatic paper feeder and a carriage. プリンタの電気的構成を示すブロック図。FIG. 2 is a block diagram illustrating an electrical configuration of the printer. 用紙とプラテンを示す模式平面図。FIG. 3 is a schematic plan view showing a sheet and a platen. (a)〜(c)給紙処理を説明する模式側面図。(A)-(c) The schematic side view explaining sheet feeding processing. (a),(b)給紙エラー時の処理を説明する模式平面図。(A), (b) The schematic top view explaining the process at the time of a paper feeding error. (a),(b)重送判定を説明する用紙の模式平面図。(A), (b) The schematic plan view of the paper explaining double feed determination. 給紙処理を示すフローチャート。6 is a flowchart illustrating a paper feed process. (a),(b)給紙エラー時の処理を説明するトランザクション図。(A), (b) The transaction figure explaining the processing at the time of paper feed error.

符号の説明Explanation of symbols

11…記録装置としてのプリンタ、13…搬送手段を構成するとともに給送手段としての自動給紙装置(ASF)、18…記録手段を構成するキャリッジ、19…記録手段を構成する記録ヘッド、22…給紙ローラ、24…リタードローラ、28…プラテン、28b…液廃棄部、28c…記録禁止領域としての凸部、29…搬送手段を構成する紙送りローラ、30…排紙ローラ、33…検出手段としての紙検出センサ、35…ホストコンピュータ、40…制御部、43…制御手段、判断手段、給送判定手段、重送判定手段、媒体長取得手段を構成するCPU、45…記憶手段としてのROM、48…ヘッドドライバ、50,52…制御手段を構成するモータドライバ、51…モータドライバ、56…ASFモータ、57…サブモータ、58…PFモータ、61,62…エンコーダ、65…計測手段を構成する用紙長カウンタ、66…ASFカウンタ、67…PFカウンタ、68…オーバーライドカウンタ、71…主制御部、72…シーケンス実行部、P,P1…媒体としての用紙、Nx…計測値としての計数値、H…ヘッド基準位置、a…第二距離としての残りの搬送距離(紙送り距離)、b…第一距離としてのオーバーライド長、Lsh…ヘッド基準位置と紙検出センサ間の距離、Lnzl…ノズル長。   DESCRIPTION OF SYMBOLS 11 ... Printer as recording apparatus, 13 ... Conveying means and automatic paper feeder (ASF) as feeding means, 18 ... Carriage constituting recording means, 19 ... Recording head constituting recording means, 22 ... Paper feeding roller, 24 ... retard roller, 28 ... platen, 28b ... liquid discarding part, 28c ... convex part as recording prohibition area, 29 ... paper feed roller constituting conveying means, 30 ... paper discharge roller, 33 ... detection means As a paper detection sensor, 35... Host computer, 40... Control unit, 43... Control means, determination means, feed determination means, double feed determination means, CPU constituting medium length acquisition means, 45. 48 ... Head driver, 50, 52 ... Motor driver constituting control means, 51 ... Motor driver, 56 ... ASF motor, 57 ... Sub motor, 58 ... F motor, 61, 62 ... encoder, 65 ... paper length counter constituting measuring means, 66 ... ASF counter, 67 ... PF counter, 68 ... override counter, 71 ... main control unit, 72 ... sequence execution unit, P, P1 ... paper as medium, Nx ... count value as measurement value, H ... head reference position, a ... remaining transport distance (paper feed distance) as second distance, b ... override length as first distance, Lsh ... Distance between head reference position and paper detection sensor, Lnzl: Nozzle length.

Claims (8)

媒体を搬送する搬送手段と、該搬送手段により搬送された媒体に記録を施す記録手段とを備えた記録装置において、
媒体の少なくとも後端を検知する検出手段と、
前記媒体を前記記録手段による記録開始位置まで搬送する途中で前記検出手段により媒体の後端を検知した場合に、該媒体に対する前記記録開始位置からの記録が可能であるか否かを判断する判断手段と、
前記判断手段により前記記録開始位置からの記録が可能と判断された場合は媒体に該記録開始位置から記録を施し、一方、前記記録開始位置からの記録が不可能と判断された場合は媒体に記録を施さないように前記記録手段及び前記搬送手段を制御する制御手段と
を備えたことを特徴とする記録装置。
In a recording apparatus comprising a conveying means for conveying a medium, and a recording means for recording on the medium conveyed by the conveying means,
Detection means for detecting at least the trailing edge of the medium;
Judgment whether or not recording from the recording start position to the medium is possible when the trailing end of the medium is detected by the detecting means while the medium is being transported to the recording start position by the recording means Means,
When it is determined by the determination means that recording from the recording start position is possible, recording is performed on the medium from the recording start position. On the other hand, when recording from the recording start position is determined to be impossible, the medium is recorded. A recording apparatus comprising: control means for controlling the recording means and the conveying means so as not to perform recording.
前記記録手段と媒体搬送経路を挟んで対向する位置にプラテンを更に備え、
前記制御手段は、前記記録手段を制御し、前記媒体の外側へはみ出た記録が前記プラテンの記録禁止領域に施されない範囲で該媒体に記録を施すことを特徴とする請求項1に記載の記録装置。
A platen is further provided at a position facing the recording means across the medium conveyance path,
2. The recording according to claim 1, wherein the control unit controls the recording unit to perform recording on the medium in a range in which recording that protrudes outside the medium is not applied to a recording prohibited area of the platen. apparatus.
前記判断手段は、前記検出手段による媒体の後端検知位置から前記記録手段による媒体後端側の記録限界位置までの媒体の搬送距離に相当する第一距離と、前記後端検知位置から前記記録開始位置までの第二距離とに基づいて、前記判断を行うことを特徴とする請求項2に記載の記録装置。   The determination means includes a first distance corresponding to a conveyance distance of the medium from a medium trailing edge detection position by the detection means to a recording limit position on the medium trailing edge side by the recording means, and the recording from the trailing edge detection position. The recording apparatus according to claim 2, wherein the determination is performed based on a second distance to the start position. 前記制御手段は、前記記録手段による記録の元になる記録データのうち、前記プラテンの記録禁止領域に記録される部分のデータをマスクすることを特徴とする請求項2又は3に記載の記録装置。   4. The recording apparatus according to claim 2, wherein the control unit masks a portion of data recorded in a recording prohibited area of the platen from the recording data to be recorded by the recording unit. 5. . 前記検出手段により前記媒体の先端が検知された位置から、前記搬送手段による該媒体の搬送量に応じた計測値を計測する計測手段を更に備えたことを特徴とする請求項1乃至4のいずれか一項に記載の記録装置。   5. The apparatus according to claim 1, further comprising a measurement unit that measures a measurement value corresponding to a conveyance amount of the medium by the conveyance unit from a position where the leading end of the medium is detected by the detection unit. A recording apparatus according to claim 1. 媒体の設定長を取得する媒体長取得手段と、
前記検出手段により媒体の後端を検知した時の前記計測手段の計測値と、前記設定長とに基づいて、前記設定長より短い媒体が給送された給送エラーであるか否かを判定する給送判定手段とを備え、前記判断手段による前記判断は、前記給送エラーと判定された場合に行われることを特徴とする請求項5に記載の記録装置。
Medium length acquisition means for acquiring a set length of the medium;
Based on the measured value of the measuring means when the trailing edge of the medium is detected by the detecting means and the set length, it is determined whether or not there is a feeding error in which a medium shorter than the set length is fed. The recording apparatus according to claim 5, further comprising: a feeding determination unit configured to perform the determination by the determination unit when the feeding error is determined.
媒体の設定長を取得する媒体長取得手段と、
前記計測手段の計測値により規定される前記搬送量が前記設定長より許容範囲を超えて長いと判断された場合は重送エラーと判定する重送判定手段とを更に備えたことを特徴とする請求項5又は6に記載の記録装置。
Medium length acquisition means for acquiring a set length of the medium;
And a double feed determining unit that determines a double feed error when it is determined that the transport amount defined by the measurement value of the measuring unit is longer than an allowable range beyond the set length. The recording apparatus according to claim 5 or 6.
媒体を搬送する搬送手段と、該搬送手段により搬送された媒体に記録を施す記録手段とを備えた記録装置における記録方法であって、
媒体の少なくとも後端を検出手段により検知する検出ステップと、
前記記録手段による記録開始位置まで媒体を搬送する途中で前記検出手段により媒体の後端を検知した場合に、該媒体に対する記録開始位置からの記録が可能であるか否かを判断する判断ステップと、
前記記録開始位置からの記録が可能と判断された場合は媒体に該記録開始位置から記録を施し、一方、記録開始位置からの記録が不可能と判断された場合は媒体に記録を施さない制御ステップと
を備えたことを特徴とする記録方法。
A recording method in a recording apparatus comprising: a conveying unit that conveys a medium; and a recording unit that records on the medium conveyed by the conveying unit,
A detection step of detecting at least the rear end of the medium by a detection means;
A determination step of determining whether or not recording from the recording start position to the medium is possible when the trailing end of the medium is detected by the detection unit while the medium is being transported to the recording start position by the recording unit; ,
When it is determined that recording from the recording start position is possible, recording is performed on the medium from the recording start position. On the other hand, when it is determined that recording from the recording start position is impossible, control is not performed on the medium. And a recording method.
JP2006236903A 2006-08-31 2006-08-31 Recording device and recording method Pending JP2008055805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006236903A JP2008055805A (en) 2006-08-31 2006-08-31 Recording device and recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006236903A JP2008055805A (en) 2006-08-31 2006-08-31 Recording device and recording method

Publications (1)

Publication Number Publication Date
JP2008055805A true JP2008055805A (en) 2008-03-13

Family

ID=39239103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006236903A Pending JP2008055805A (en) 2006-08-31 2006-08-31 Recording device and recording method

Country Status (1)

Country Link
JP (1) JP2008055805A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011110801A (en) * 2009-11-26 2011-06-09 Kyocera Mita Corp Image recorder
CN104512107A (en) * 2013-09-27 2015-04-15 精工爱普生株式会社 Printer and control method of printer
JP2019111755A (en) * 2017-12-25 2019-07-11 セイコーエプソン株式会社 Recording device
JP2020135612A (en) * 2019-02-22 2020-08-31 ブラザー工業株式会社 Printer and module

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011110801A (en) * 2009-11-26 2011-06-09 Kyocera Mita Corp Image recorder
CN104512107A (en) * 2013-09-27 2015-04-15 精工爱普生株式会社 Printer and control method of printer
JP2019111755A (en) * 2017-12-25 2019-07-11 セイコーエプソン株式会社 Recording device
JP7020106B2 (en) 2017-12-25 2022-02-16 セイコーエプソン株式会社 Recording device
JP2020135612A (en) * 2019-02-22 2020-08-31 ブラザー工業株式会社 Printer and module
JP7263830B2 (en) 2019-02-22 2023-04-25 ブラザー工業株式会社 printer and module

Similar Documents

Publication Publication Date Title
US11128773B2 (en) Printing apparatus, method and storage medium for conveying sheets intermittently to printhead while conveyed sheets partially overlap
US8142087B2 (en) Printing device with paper width detector mounted to carriage and method of controlling the printing device
US7830564B2 (en) Method of obtaining correction value of optical sensor and recording apparatus
JP4465999B2 (en) Printing apparatus, ejection inspection method, ejection inspection pattern forming method, program, and printing system
JP4483941B2 (en) Medium feeding method and recording apparatus in recording apparatus
JP4403734B2 (en) Printing apparatus, ejection inspection method, ejection inspection pattern forming method, program, and printing system
US8267401B2 (en) Recording apparatus and transporting control method in recording apparatus
US6352333B2 (en) Method and apparatus for preventing nozzle clogging in ink jet printing apparatus
JP5256963B2 (en) Printing apparatus and printing method
JP2008055805A (en) Recording device and recording method
JP2011121271A (en) Recording method
JP2006341589A (en) Recording control method and recording control program
JP2006305479A (en) Droplet injection apparatus
US7198349B2 (en) Method for testing ejection, printing apparatus, method for forming ejection-test pattern, ejection-test pattern, computer-readable medium, and printing system
JP2006347039A (en) Inkjet printer and apparatus for controlling it
JP5970840B2 (en) Inkjet recording device
JP6894731B2 (en) Inkjet recording device and control method of inkjet recording device
JP2005313602A (en) Printer, medium detection method, program and printing system
JP4396156B2 (en) Printing apparatus, ejection inspection method, ejection inspection pattern forming method, program, and printing system
JP4586476B2 (en) Printer and print control method
JP2007245626A (en) Image forming apparatus
JP2010115783A (en) Image forming apparatus
JP2006076119A (en) Recording device and liquid jetting device
JP4466305B2 (en) Printer
JP2005280284A (en) Recording device and liquid jetting device