Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5929033B2 - Printing apparatus, control method and control program in printing apparatus - Google Patents
[go: Go Back, main page]

JP5929033B2 - Printing apparatus, control method and control program in printing apparatus - Google Patents

Printing apparatus, control method and control program in printing apparatus Download PDF

Info

Publication number
JP5929033B2
JP5929033B2 JP2011172638A JP2011172638A JP5929033B2 JP 5929033 B2 JP5929033 B2 JP 5929033B2 JP 2011172638 A JP2011172638 A JP 2011172638A JP 2011172638 A JP2011172638 A JP 2011172638A JP 5929033 B2 JP5929033 B2 JP 5929033B2
Authority
JP
Japan
Prior art keywords
recording medium
image
unit
horizontal length
recording
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.)
Active
Application number
JP2011172638A
Other languages
Japanese (ja)
Other versions
JP2012071583A (en
Inventor
克己 山田
山田  克己
哲史 吉野
哲史 吉野
徳則 赤羽
徳則 赤羽
智之 平野
智之 平野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2011172638A priority Critical patent/JP5929033B2/en
Publication of JP2012071583A publication Critical patent/JP2012071583A/en
Application granted granted Critical
Publication of JP5929033B2 publication Critical patent/JP5929033B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Description

本発明は、印刷装置、印刷装置における制御方法および制御プログラムに関する。   The present invention relates to a printing apparatus, a control method in the printing apparatus, and a control program.

パーソナルコンピューターには、文章や画像や表を作成するためのアプリケーションソフトウェアや、作成された文章や画像や表を印刷用画像データに変換するためのプリンタードライバーがインストールされている。印刷装置の一例であるインクジェット式プリンターは、プリンタードライバーによって変換された印刷用画像データを、パーソナルコンピューターから受信し、用紙などの記録媒体に画像を記録する。
使用者によってインクジェット式プリンターにセットされた用紙のサイズが、印刷用画像データのサイズより小さいと、印刷用画像データの一部のみが用紙に記録される。反対に、使用者によってインクジェット式プリンターにセットされた用紙のサイズが、印刷用画像データのサイズより大幅に大きいと、印刷用画像データが記録された範囲の外側には空白部分が形成されてしまう。
そのため、そのようにして記録された用紙は不要となるので、用紙や記録するためのインクが無駄になってしまう。
The personal computer is installed with application software for creating text, images, and tables, and a printer driver for converting the created text, images, and tables into print image data. An inkjet printer, which is an example of a printing apparatus, receives image data for printing converted by a printer driver from a personal computer, and records an image on a recording medium such as paper.
If the size of the paper set by the user in the ink jet printer is smaller than the size of the printing image data, only a part of the printing image data is recorded on the paper. On the other hand, if the size of the paper set by the user in the ink jet printer is significantly larger than the size of the printing image data, a blank portion is formed outside the area where the printing image data is recorded. .
Therefore, the paper recorded in that way is not necessary, and the paper and ink for recording are wasted.

そこで、例えば、特許文献1では、プリンタードライバーが、印刷装置から用紙サイズなどの印刷設定情報を取得し、原稿データに設定された用紙サイズなどの印刷設定値と異なるときは、原稿データを加工する方法が提案されている。   Therefore, for example, in Patent Document 1, the printer driver acquires print setting information such as the paper size from the printing apparatus, and processes the original data when the print setting value differs from the print setting value such as the paper size set in the original data. A method has been proposed.

特開2010−67106号公報JP 2010-67106 A

しかしながら、特許文献1の方法では、原稿データが加工されているので、使用者が意図したサイズの画像が用紙に形成されない。また、使用者が、印刷装置における印刷設定情報と異なるサイズの用紙を印刷装置にセットしたときには、印刷用画像データの一部のみが用紙に記録されたり、印刷用画像データが記録された範囲の外側には空白部分が形成されてしまったりする。そのため、そのようにして記録された用紙は不要となるので、用紙や記録するためのインクが無駄になってしまうという課題がある。   However, in the method of Patent Document 1, since the document data is processed, an image having a size intended by the user is not formed on the sheet. In addition, when the user sets paper of a size different from the print setting information in the printing apparatus, only a part of the print image data is recorded on the paper, or within the range where the print image data is recorded. A blank part may be formed on the outside. For this reason, since the paper recorded in such a manner is not necessary, there is a problem that the paper and ink for recording are wasted.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態または適用例として実現することが可能である。   SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.

[適用例1]記録媒体を搬送方向に搬送する搬送部と、前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出部と、前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得部と、前記用紙サイズ算出部によって算出された前記記録媒体の横の長さと前記画像サイズ取得部によって取得された前記画像サイズの横の長さとを比較し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御部と、を備えたことを特徴とする印刷装置。   [Application Example 1] A transport unit that transports a recording medium in a transport direction, an image recording unit that records an image on the recording medium transported by the transport unit, and a movement in a direction orthogonal to the transport direction, A both-end detection sensor that detects both ends of the recording medium in the lateral direction, a movement amount detection unit that detects a movement amount that the both-end detection sensor moves between the both ends, and a horizontal length of the recording medium based on the movement amount A paper size calculation unit for calculating the height, an image size acquisition unit for acquiring a horizontal length of the image size of the image to be recorded on the recording medium, and a horizontal size of the recording medium calculated by the paper size calculation unit When the length and the horizontal length of the image size acquired by the image size acquisition unit are compared, and the horizontal length of the recording medium is approximate to the horizontal length of the image size, the image When the recording unit records an image on the recording medium, the recording unit ejects the recording medium, and the horizontal length of the recording medium and the horizontal length of the image size are not approximate, A printing apparatus comprising: a recording / conveying control unit that discharges the recording medium by the conveying unit without recording an image on the recording medium by an image recording unit.

この構成によれば、用紙サイズ算出部によって算出された記録媒体の横の長さと画像サイズ取得部によって取得された画像サイズの横の長さとを比較し、記録媒体の横の長さと画像サイズの横の長さとが近似していない場合には、搬送部と画像記録部とによる記録媒体への画像の記録を行わず、搬送部により記録媒体を排紙する記録搬送制御部を備える。これにより、画像データの横の長さと、記録媒体の横の長さとが近似していないときには、記録媒体に画像が記録されない。そのため、記録媒体の横方向において、画像データの一部のみが記録されたり、画像データが記録された範囲の外側に空白部分が形成されてしまったりすることを抑制できる。従って、記録媒体や記録するためのインクが無駄になってしまうことを抑制できる。   According to this configuration, the horizontal length of the recording medium calculated by the paper size calculation unit is compared with the horizontal length of the image size acquired by the image size acquisition unit, and the horizontal length of the recording medium and the image size are calculated. When the horizontal length is not approximate, a recording / conveying control unit that discharges the recording medium by the conveying unit without recording an image on the recording medium by the conveying unit and the image recording unit is provided. Thus, when the horizontal length of the image data is not approximate to the horizontal length of the recording medium, no image is recorded on the recording medium. Therefore, it is possible to prevent only a part of the image data from being recorded in the horizontal direction of the recording medium or a blank part from being formed outside the area where the image data is recorded. Accordingly, it is possible to prevent the recording medium and the ink for recording from being wasted.

[適用例2]文字や画像を表示する表示部を備え、前記記録搬送制御部は、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似していないとき、前記表示部に前記記録媒体の横の長さと前記画像サイズの横の長さとが異なることを示す警告を表示することを特徴とする上記印刷装置。   Application Example 2 A display unit for displaying characters and images is provided, and the recording / conveying control unit is arranged on the display unit when a horizontal length of the recording medium is not approximate to a horizontal length of the image size. The printing apparatus according to claim 1, wherein a warning indicating that a horizontal length of the recording medium is different from a horizontal length of the image size is displayed.

この構成によれば、使用者に記録媒体の横の長さと画像サイズの横の長さとが異なることを通知することができる。   According to this configuration, the user can be notified that the horizontal length of the recording medium is different from the horizontal length of the image size.

[適用例3]前記両端検知センサーは、前記記録媒体の前記搬送方向における、下流側の上端と上流側の下端とを検知し、前記用紙サイズ算出部は、前記搬送部による前記上端と前記下端間の搬送量に基づいて前記記録媒体の縦の長さを算出し、前記画像サイズ取得部は、前記画像サイズの縦の長さを取得し、前記記録搬送制御部は、前記用紙サイズ算出部によって算出された前記記録媒体の縦の長さと、前記画像サイズ取得部によって取得された前記画像サイズの縦の長さとを比較し、前記記録媒体の縦の長さと前記画像サイズの縦の長さとが近似していないとき、前記表示部に前記記録媒体の縦の長さと前記画像サイズの縦の長さとが異なることを示す警告を表示することを特徴とする上記印刷装置。   Application Example 3 The both-end detection sensor detects the upper end on the downstream side and the lower end on the upstream side in the transport direction of the recording medium, and the paper size calculation unit is configured to detect the upper end and the lower end of the transport unit. A vertical length of the recording medium is calculated based on a conveyance amount therebetween, the image size acquisition unit acquires a vertical length of the image size, and the recording and conveyance control unit includes the paper size calculation unit. Is compared with the vertical length of the image size acquired by the image size acquisition unit, and the vertical length of the recording medium is compared with the vertical length of the image size. The printing apparatus displays a warning indicating that the vertical length of the recording medium and the vertical length of the image size are different from each other when is not approximated.

この構成によれば、記録搬送制御部は、用紙サイズ算出部によって算出された記録媒体の縦の長さと、画像サイズ取得部によって取得された画像サイズの縦の長さとを比較し、記録媒体の縦の長さと画像サイズの縦の長さとが近似していないとき、表示部に記録媒体の縦の長さと画像サイズの縦の長さとが異なることを示す警告を表示する。これにより、画像データの縦の長さと、記録媒体の縦の長さとが近似していないことを、使用者に通知することができる。   According to this configuration, the recording / conveying control unit compares the vertical length of the recording medium calculated by the paper size calculating unit with the vertical length of the image size acquired by the image size acquiring unit. When the vertical length and the vertical length of the image size are not approximated, a warning indicating that the vertical length of the recording medium is different from the vertical length of the image size is displayed on the display unit. Accordingly, it is possible to notify the user that the vertical length of the image data is not approximate to the vertical length of the recording medium.

また、両端検知センサーは、記録媒体が傾斜した姿勢にあるとき、記録媒体の上端または下端における搬送方向と直交する方向における2箇所の位置を検知し、記録媒体の傾斜角度を検出することができる。そのため、記録媒体が傾斜した姿勢にあるときでも記録媒体の横の長さと縦の長さを算出することができる。   In addition, when the recording medium is in an inclined posture, the both-end detection sensor can detect two positions in the direction orthogonal to the conveying direction at the upper end or the lower end of the recording medium and detect the inclination angle of the recording medium. . Therefore, the horizontal length and the vertical length of the recording medium can be calculated even when the recording medium is tilted.

[適用例4]前記記録媒体の前記搬送方向における、下流側の上端と上流側の下端を検知する上下端検知センサーを備え、前記用紙サイズ算出部は、前記搬送部による前記上端と前記下端間の搬送量に基づいて前記記録媒体の縦の長さを算出し、前記画像サイズ取得部は、前記画像サイズの縦の長さを取得し、前記記録搬送制御部は、前記用紙サイズ算出部によって算出された前記記録媒体の縦の長さと、前記画像サイズ取得部によって取得された前記画像サイズの縦の長さとを比較し、前記記録媒体の縦の長さと前記画像サイズの縦の長さとが近似していないとき、前記表示部に前記記録媒体の縦の長さと前記画像サイズの縦の長さとが異なることを示す警告を表示することを特徴とする上記印刷装置。   Application Example 4 An upper and lower end detection sensor that detects an upper end on the downstream side and a lower end on the upstream side in the conveyance direction of the recording medium is provided, and the paper size calculation unit is configured to provide a gap between the upper end and the lower end by the conveyance unit. The vertical length of the recording medium is calculated based on the transport amount of the recording medium, the image size acquisition unit acquires the vertical length of the image size, and the recording transport control unit is The calculated vertical length of the recording medium is compared with the vertical length of the image size acquired by the image size acquisition unit, and the vertical length of the recording medium is compared with the vertical length of the image size. When not approximate, the printing apparatus displays a warning indicating that the vertical length of the recording medium is different from the vertical length of the image size on the display unit.

この構成によれば、記録搬送制御部は、用紙サイズ算出部によって算出された記録媒体の縦の長さと、画像サイズ取得部によって取得された画像サイズの縦の長さとを比較し、記録媒体の縦の長さと画像サイズの縦の長さとが近似していないとき、表示部に記録媒体の縦の長さと画像サイズの縦の長さとが異なることを示す警告を表示する。これにより、画像データの縦の長さと、記録媒体の縦の長さとが近似していないことを、使用者に通知することができる。   According to this configuration, the recording / conveying control unit compares the vertical length of the recording medium calculated by the paper size calculating unit with the vertical length of the image size acquired by the image size acquiring unit. When the vertical length and the vertical length of the image size are not approximated, a warning indicating that the vertical length of the recording medium is different from the vertical length of the image size is displayed on the display unit. Accordingly, it is possible to notify the user that the vertical length of the image data is not approximate to the vertical length of the recording medium.

また、上下端検知センサーは、搬送方向において固定されている。そのため、搬送方向における上端位置と下端位置の検出精度が高いので、記録媒体の縦の長さの検出精度が高くなる。   Further, the upper and lower end detection sensors are fixed in the transport direction. For this reason, since the detection accuracy of the upper end position and the lower end position in the transport direction is high, the detection accuracy of the vertical length of the recording medium is increased.

[適用例5]前記警告と共に表示される複数の動作指示の中から1つが選択される選択部を備え、前記記録搬送制御部は、前記選択部で選択された前記動作指示に基づいて、前記記録媒体に対する搬送および記録を制御することを特徴とする上記印刷装置。   Application Example 5 The image processing apparatus includes a selection unit that selects one of a plurality of operation instructions displayed together with the warning, and the recording and conveyance control unit is configured to perform the operation based on the operation instruction selected by the selection unit. The printing apparatus according to claim 1, wherein the printing apparatus controls conveyance and recording on a recording medium.

この構成によれば、複数の動作指示の中から選択された動作指示に基づいて記録媒体の搬送や記録を制御できる。   According to this configuration, conveyance and recording of the recording medium can be controlled based on an operation instruction selected from a plurality of operation instructions.

[適用例6]前記動作指示は、前記記録媒体に前記画像を記録する、前記記録媒体を交換した後、交換した前記記録媒体に前記画像を記録する、または前記記録媒体に前記画像を記録しない、の何れかであることを特徴とする上記印刷装置。   Application Example 6 The operation instruction records the image on the recording medium, replaces the recording medium, records the image on the replaced recording medium, or does not record the image on the recording medium. Any one of the above-mentioned printing apparatuses.

この構成によれば、選択候補として多様な動作指示の中から選択できる。   According to this configuration, it is possible to select from various operation instructions as selection candidates.

[適用例7]1つのジョブにおいて、前記動作指示として「前記記録媒体に前記画像を記録する」が選択された場合、前記記録搬送制御部は、前記ジョブによる前記画像の記録が終了するまで前記警告を表示しないことを特徴とする上記印刷装置。   Application Example 7 In one job, when “record the image on the recording medium” is selected as the operation instruction, the recording and conveyance control unit performs the recording until the recording of the image by the job is completed. The above-described printing apparatus, wherein no warning is displayed.

この構成によれば、1つのジョブが終了するまで警告が表示されないため、ジョブ単位で迅速に記録処理できる。   According to this configuration, since a warning is not displayed until one job is completed, a recording process can be quickly performed for each job.

[適用例8]前記記録搬送制御部は、記録する前記記録媒体の属性が変更される、連続して記録する最初の記録媒体である、または1つのジョブにおいて記録する記録媒体が変更される、の何れかの場合、前記記録媒体の横の長さと、前記画像サイズの横の長さと、を比較することを特徴とする上記印刷装置。   Application Example 8 The recording / conveying control unit is configured such that the attribute of the recording medium to be recorded is changed, the first recording medium to be continuously recorded, or the recording medium to be recorded in one job is changed. In any of the above cases, the printing apparatus compares the horizontal length of the recording medium with the horizontal length of the image size.

この構成によれば、記録媒体の横の長さと画像サイズの横の長さとの比較を限定して行うため、スループットの向上を図れる。   According to this configuration, since the comparison between the horizontal length of the recording medium and the horizontal length of the image size is limited, the throughput can be improved.

[適用例9]記録媒体を搬送方向に搬送する搬送部と、前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、を備えた印刷装置の制御方法であって、前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出工程と、前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得工程と、前記用紙サイズ算出工程によって算出された前記記録媒体の横の長さと前記画像サイズ取得工程によって取得された前記画像サイズの横の長さとを比較し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御工程と、を含むことを特徴とする印刷装置の制御方法。   [Application Example 9] A transport unit that transports a recording medium in a transport direction, an image recording unit that records an image on the recording medium transported by the transport unit, and a moving unit in a direction orthogonal to the transport direction, A control method for a printing apparatus, comprising: a both-end detection sensor that detects both ends in a lateral direction of a recording medium; and a movement amount detection unit that detects a movement amount that the both-end detection sensor has moved between the both ends. A paper size calculating step of calculating a horizontal length of the recording medium based on a movement amount; an image size acquiring step of acquiring a horizontal length of an image size of the image to be recorded on the recording medium; and the paper size The horizontal length of the recording medium calculated by the calculating step is compared with the horizontal length of the image size acquired by the image size acquiring step, and the horizontal length of the recording medium and the image size are calculated. If the horizontal length of the recording medium is approximate, the image recording unit records an image on the recording medium, the recording unit ejects the recording medium, and the horizontal length of the recording medium is When the horizontal length of the image size is not approximate, a recording / conveying control step of discharging the recording medium by the conveying unit without recording the image on the recording medium by the image recording unit; A control method for a printing apparatus, comprising:

この構成によれば、用紙サイズ算出工程によって算出された記録媒体の横の長さと画像サイズ取得工程によって取得された画像サイズの横の長さとを比較し、記録媒体の横の長さと画像サイズの横の長さとが近似していないとき、搬送部と画像記録部とによる記録媒体への画像の記録を実行させずに、搬送部を用いて記録媒体を排紙する記録搬送制御工程を備える。これにより、画像データの横の長さと、記録媒体の横の長さとが近似していないときには、記録媒体に画像が記録されない。そのため、記録媒体の横方向において、画像データの一部のみが記録されたり、画像データが記録された範囲の外側に空白部分が形成されてしまったりすることを抑制できる。従って、記録媒体や記録するためのインクが無駄になってしまうことを抑制できる。   According to this configuration, the horizontal length of the recording medium calculated by the paper size calculation step is compared with the horizontal length of the image size acquired by the image size acquisition step, and the horizontal length of the recording medium and the image size are calculated. When the horizontal length is not approximate, a recording / conveying control step of discharging the recording medium using the conveying unit without performing image recording on the recording medium by the conveying unit and the image recording unit is provided. Thus, when the horizontal length of the image data is not approximate to the horizontal length of the recording medium, no image is recorded on the recording medium. Therefore, it is possible to prevent only a part of the image data from being recorded in the horizontal direction of the recording medium or a blank part from being formed outside the area where the image data is recorded. Accordingly, it is possible to prevent the recording medium and the ink for recording from being wasted.

[適用例10]記録媒体を搬送方向に搬送する搬送部と、前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、を備えた印刷装置において実行される制御プログラムであって、前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出機能と、前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得機能と、前記用紙サイズ算出機能によって算出された前記記録媒体の横の長さと前記画像サイズ取得機能によって取得された前記画像サイズの横の長さとを比較し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御機能と、をコンピューターで実現させることを特徴とする制御プログラム。   [Application Example 10] A transport unit that transports a recording medium in a transport direction, an image recording unit that records an image on the recording medium transported by the transport unit, A control program that is executed in a printing apparatus that includes a both-end detection sensor that detects both ends in the horizontal direction of a recording medium, and a movement amount detection unit that detects a movement amount that the both-end detection sensor moves between the both ends. A paper size calculation function for calculating a horizontal length of the recording medium based on the movement amount; an image size acquisition function for acquiring a horizontal length of the image size of the image to be recorded on the recording medium; Comparing the horizontal length of the recording medium calculated by the paper size calculating function with the horizontal length of the image size acquired by the image size acquiring function; When the horizontal length of the image is close to the horizontal length of the image size, the image recording unit records an image on the recording medium, the transport unit discharges the recording medium, and the recording When the horizontal length of the medium does not approximate the horizontal length of the image size, the image recording unit does not record the image on the recording medium, and the recording unit discharges the recording medium. A control program for realizing a recording / conveying control function by a computer.

この構成によれば、用紙サイズ算出機能によって算出された記録媒体の横の長さと画像サイズ取得機能によって取得された画像サイズの横の長さとを比較し、記録媒体の横の長さと画像サイズの横の長さとが近似していないとき、搬送部と画像記録部とによる記録媒体への画像の記録を実行させずに、搬送部を用いて記録媒体を排紙する記録搬送制御機能を備える。これにより、画像データの横の長さと、記録媒体の横の長さとが近似していないときには、記録媒体に画像が記録されない。そのため、記録媒体の横方向において、画像データの一部のみが記録されたり、画像データが記録された範囲の外側に空白部分が形成されてしまったりすることを抑制できる。従って、記録媒体や記録するためのインクが無駄になってしまうことを抑制できる。   According to this configuration, the horizontal length of the recording medium calculated by the paper size calculation function is compared with the horizontal length of the image size acquired by the image size acquisition function, and the horizontal length of the recording medium and the image size are calculated. When the horizontal length is not approximate, a recording / conveying control function for discharging the recording medium using the conveying unit without causing the conveying unit and the image recording unit to record an image on the recording medium is provided. Thus, when the horizontal length of the image data is not approximate to the horizontal length of the recording medium, no image is recorded on the recording medium. Therefore, it is possible to prevent only a part of the image data from being recorded in the horizontal direction of the recording medium or a blank part from being formed outside the area where the image data is recorded. Accordingly, it is possible to prevent the recording medium and the ink for recording from being wasted.

印刷装置の概略構成を示した図。1 is a diagram illustrating a schematic configuration of a printing apparatus. 印刷装置の電気的な構成を示すブロック図。FIG. 3 is a block diagram illustrating an electrical configuration of the printing apparatus. 用紙の両端の検知位置を示す図。The figure which shows the detection position of the both ends of a paper. 制御プログラムのフローチャート。The flowchart of a control program. 第2実施形態における印刷装置の電気的な構成を示すブロック図。FIG. 9 is a block diagram illustrating an electrical configuration of a printing apparatus according to a second embodiment. 表示部に表示されたメッセージの内容を示す図。The figure which shows the content of the message displayed on the display part. 第2実施形態における制御プログラムのフローチャート。The flowchart of the control program in 2nd Embodiment. 両端検知センサーを用いて、傾斜した用紙の横の長さと縦の長さを検出する方法を説明するための図。The figure for demonstrating the method to detect the horizontal length and vertical length of the inclined paper using a both-ends detection sensor. 第3実施形態における制御プログラムのフローチャート。The flowchart of the control program in 3rd Embodiment. 搬送処理のフローチャート。The flowchart of a conveyance process. 表示部に表示されたメッセージの内容を示す図。The figure which shows the content of the message displayed on the display part. 第4実施形態における印刷装置の電気的な構成を示すブロック図。FIG. 10 is a block diagram illustrating an electrical configuration of a printing apparatus according to a fourth embodiment. 用紙の上端と下端の検知位置を示す図。The figure which shows the detection position of the upper end of a paper, and a lower end. 第5実施形態における印刷装置の電気的な構成を示すブロック図。FIG. 10 is a block diagram illustrating an electrical configuration of a printing apparatus according to a fifth embodiment. ユーザーインターフェイス画面を示す図。The figure which shows a user interface screen. 第5実施形態における制御プログラムのフローチャート。The flowchart of the control program in 5th Embodiment.

(第1実施形態)
以下、第1実施形態について図面を参照しつつ説明する。図1は第1実施形態における印刷装置としてのインクジェット式プリンター(以降はプリンターと称する)1の概略構成を示した図である。
(First embodiment)
The first embodiment will be described below with reference to the drawings. FIG. 1 is a diagram illustrating a schematic configuration of an ink jet printer (hereinafter referred to as a printer) 1 as a printing apparatus according to the first embodiment.

紙送りモーター11によって回転駆動される駆動ローラー(不図示)と回転自由な従動ローラー(不図示)に挟まれながら、記録媒体としての用紙Pが搬送方向D2に搬送される。   The paper P as a recording medium is conveyed in the conveyance direction D2 while being sandwiched between a driving roller (not shown) rotated by the paper feed motor 11 and a freely driven roller (not shown).

キャリッジ8は、キャリッジモーター2とプーリー3,4に張設された駆動ベルト5に固定されている。キャリッジモーター2の駆動により、駆動ベルト5が回転し、キャリッジ8が、フレーム6に固定されたガイド軸7に沿って搬送方向と直交する方向D1に移動する。   The carriage 8 is fixed to a drive belt 5 stretched between the carriage motor 2 and the pulleys 3 and 4. By driving the carriage motor 2, the drive belt 5 rotates, and the carriage 8 moves along a guide shaft 7 fixed to the frame 6 in a direction D <b> 1 orthogonal to the transport direction.

インクカートリッジ9,10が、キャリッジ8に着脱可能に搭載される。インクカートリッジ9にはブラックインクが収容され、インクカートリッジ10にはイエロー、マゼンタ、シアンのカラーインクが収容される。   Ink cartridges 9 and 10 are detachably mounted on the carriage 8. The ink cartridge 9 contains black ink, and the ink cartridge 10 contains yellow, magenta, and cyan color inks.

キャリッジ8の用紙P側には、液体噴射ヘッド(不図示)が備えられる。液体噴射ヘッドには、インクカートリッジ9,10からインクが供給され、液体噴射ヘッドに設けられた複数のノズル(不図示)から液滴が鉛直方向D3に噴射される。   A liquid ejecting head (not shown) is provided on the paper P side of the carriage 8. Ink is supplied from the ink cartridges 9 and 10 to the liquid ejecting head, and droplets are ejected in the vertical direction D3 from a plurality of nozzles (not shown) provided in the liquid ejecting head.

搬送方向と直交する方向D1に往復移動する液体噴射ヘッドと、プラテン12の間を、搬送方向D2に通過する用紙Pに、液体噴射ヘッドからインクが鉛直方向D3に吐出され、文字や画像が用紙Pに形成される。   Ink is ejected from the liquid ejecting head in the vertical direction D3 between the liquid ejecting head that reciprocates in the direction D1 orthogonal to the transporting direction and the platen 12 in the transporting direction D2, and characters and images are printed on the paper. P is formed.

プリンター1には、フレームに固定されたリニアスケール14と、キャリッジ8のリニアスケール14側に固定された検出器(不図示)とを含んで構成されるリニアエンコダーが備えられる。   The printer 1 includes a linear encoder configured to include a linear scale 14 fixed to the frame and a detector (not shown) fixed to the carriage 8 on the linear scale 14 side.

リニアスケール14には、鉛直方向D3に伸びる複数の直線が縞状に等間隔で描かれている。検出器は、縞状の複数の直線を光学的に検知し、パルスとして検出する。リニアエンコダーは、キャリッジ8の移動量をパルス数として出力することができる。   On the linear scale 14, a plurality of straight lines extending in the vertical direction D3 are drawn in stripes at equal intervals. The detector optically detects a plurality of striped straight lines and detects them as pulses. The linear encoder can output the amount of movement of the carriage 8 as the number of pulses.

キャリッジ8の用紙P側には、発光ダイオードなどの発光部とフォトトランジスターなどの受光部を含んで構成される両端検知センサー13が備えられる。キャリッジ8の搬送方向と直交する方向D1への移動に伴って、両端検知センサー13は、搬送方向と直交する方向D1に移動する。   On the paper P side of the carriage 8, a both-end detection sensor 13 including a light emitting unit such as a light emitting diode and a light receiving unit such as a phototransistor is provided. With the movement of the carriage 8 in the direction D1 orthogonal to the conveyance direction, the both end detection sensor 13 moves in the direction D1 orthogonal to the conveyance direction.

図2は、プリンター1の電気的な構成を示すブロック図である。プリンター1には、制御部20のインターフェイス(I/F)24を介して、画像処理装置としてのコンピューター50が接続される。   FIG. 2 is a block diagram illustrating an electrical configuration of the printer 1. A computer 50 as an image processing apparatus is connected to the printer 1 via an interface (I / F) 24 of the control unit 20.

コンピューター50には、プリンタードライバーである画像処理プログラム51がインストールされている。プリンタードライバーは、アプリケーション・プログラムによって作成された文字や画像のデータを、プリンター1で印刷可能な印刷用画像データに変換する。なお、本実施形態においては画像処理装置をプリンター1とは別のコンピューター50として示しているが、画像処理装置自体はプリンター1に一体として組み込まれていたとしても構わない。   An image processing program 51 that is a printer driver is installed in the computer 50. The printer driver converts character and image data created by the application program into print image data that can be printed by the printer 1. In the present embodiment, the image processing apparatus is shown as a computer 50 different from the printer 1, but the image processing apparatus itself may be integrated into the printer 1.

画像記録部30は、液体噴射ヘッド、液体噴射ヘッドを駆動するための駆動回路(不図示)、キャリッジモーター2を含んで構成される。搬送部31は、紙送りモーター11を含んで構成される。移動量検出部32は、リニアエンコダーによって構成される。   The image recording unit 30 includes a liquid ejecting head, a drive circuit (not shown) for driving the liquid ejecting head, and the carriage motor 2. The transport unit 31 includes the paper feed motor 11. The movement amount detection unit 32 is configured by a linear encoder.

制御部20には、CPU21、RAM22、ROM23が備えられる。CPU21は、制御プログラムをROM23からRAM22に読み出して実行する。制御部20は、画像記録部30、搬送部31、両端検知センサー13、移動量検出部32を制御する。   The control unit 20 includes a CPU 21, a RAM 22, and a ROM 23. The CPU 21 reads the control program from the ROM 23 to the RAM 22 and executes it. The control unit 20 controls the image recording unit 30, the conveyance unit 31, the both end detection sensor 13, and the movement amount detection unit 32.

コンピューター50からは、プリンタードライバーによって変換された印刷用画像データが制御部20に入力される。制御部20は、キャリッジモーター2、紙送りモーター11の駆動制御と、液体噴射ヘッドの液滴吐出制御とを行うことにより、コンピューター50から入力された文字データや画像データを用紙Pに画像として記録する。   From the computer 50, print image data converted by the printer driver is input to the control unit 20. The control unit 20 records character data and image data input from the computer 50 as an image on the paper P by performing drive control of the carriage motor 2 and the paper feed motor 11 and droplet discharge control of the liquid ejecting head. To do.

図3は、用紙Pの両端の検知位置を示す図である。破線Wは、キャリッジ8に備えられた両端検知センサー13の受光部が搬送方向と直交する方向D1に移動する動線を示す。搬送部31によって用紙Pが給紙されると、受光部が動線W上を移動することにより、両端検知センサー13は、用紙Pの両端e1,e2における検知位置q1,q2を検知する。   FIG. 3 is a diagram showing detection positions at both ends of the paper P. As shown in FIG. A broken line W indicates a flow line in which the light receiving portion of the both end detection sensor 13 provided in the carriage 8 moves in a direction D1 orthogonal to the transport direction. When the paper P is fed by the transport unit 31, the both-end detection sensor 13 detects the detection positions q1 and q2 at both ends e1 and e2 of the paper P as the light receiving unit moves on the flow line W.

移動量検出部32は、両端検知センサー13が検知位置q1,q2をそれぞれの時点で検知し、両端検知センサー13が検知位置q1,q2間を移動した移動量をパルス数として検出する。   In the movement amount detection unit 32, the both-end detection sensor 13 detects the detection positions q1 and q2 at each time point, and the movement amount that the both-end detection sensor 13 has moved between the detection positions q1 and q2 is detected as the number of pulses.

用紙サイズ算出部25は、移動量検出部32から取得したパルス数に基づいて、検知位置q1,q2の搬送方向と直交する方向D1における長さを算出する。具体的には、取得したパルス数と、リニアスケール14に描かれた目盛間隔との乗算によって両端e1,e2における搬送方向と直交する方向D1の長さを算出する。従って、用紙サイズ算出部25は、用紙Pの搬送方向と直交する方向D1の長さ、すなわち図3の用紙Pの横の長さAを算出することになる。   The paper size calculation unit 25 calculates the length of the detection positions q1 and q2 in the direction D1 orthogonal to the transport direction based on the number of pulses acquired from the movement amount detection unit 32. Specifically, the length of the direction D1 orthogonal to the conveyance direction at both ends e1 and e2 is calculated by multiplying the acquired number of pulses by the scale interval drawn on the linear scale 14. Therefore, the paper size calculation unit 25 calculates the length in the direction D1 orthogonal to the conveyance direction of the paper P, that is, the horizontal length A of the paper P in FIG.

コンピューター50のプリンタードライバーは、印刷用画像データの横の長さである画像サイズをプリンター1の制御部20に対して出力する。   The printer driver of the computer 50 outputs the image size, which is the horizontal length of the print image data, to the control unit 20 of the printer 1.

画像サイズ取得部26は、プリンタードライバーから送付された画像サイズを取得する。   The image size acquisition unit 26 acquires the image size sent from the printer driver.

記録搬送制御部27は、用紙サイズ算出部25によって算出された用紙Pの横の長さAと画像サイズ取得部26によって取得された画像サイズの横の長さとを比較する。   The recording / conveying control unit 27 compares the horizontal length A of the paper P calculated by the paper size calculation unit 25 with the horizontal length of the image size acquired by the image size acquisition unit 26.

記録搬送制御部27は、用紙Pの横の長さと画像サイズの横の長さとが近似しているとき、搬送部31と画像記録部30による用紙Pへの画像の記録を実行する。   When the horizontal length of the paper P and the horizontal length of the image size are close to each other, the recording / conveying control unit 27 performs image recording on the paper P by the conveying unit 31 and the image recording unit 30.

記録搬送制御部27は、用紙Pの横の長さと画像サイズの横の長さとが近似していないとき、搬送部31と画像記録部30による用紙Pへの画像の記録を実行させずに、搬送部31を用いて用紙Pを排紙する。   When the horizontal length of the paper P and the horizontal length of the image size are not approximate, the recording / conveying control unit 27 does not execute the image recording on the paper P by the conveying unit 31 and the image recording unit 30. The paper P is discharged using the transport unit 31.

用紙サイズ算出部25、画像サイズ取得部26、記録搬送制御部27は、制御プログラムから構成され、CPU21が制御プログラムをROM23からRAM22に読み出して実行することによって機能する。   The paper size calculation unit 25, the image size acquisition unit 26, and the recording / conveyance control unit 27 are configured by a control program, and function when the CPU 21 reads the control program from the ROM 23 to the RAM 22 and executes it.

次に、本実施形態における制御プログラムの処理方法について説明する。図4は、本実施形態における制御プログラムのフローチャートである。   Next, a control program processing method in this embodiment will be described. FIG. 4 is a flowchart of the control program in this embodiment.

ステップS100では、制御部20は、搬送部31を用いて用紙Pを給紙する。ステップS110では、制御部20は、両端検知センサー13を用いて用紙Pの両端e1,e2における検知位置q1,q2を検知する。   In step S <b> 100, the control unit 20 feeds the paper P using the transport unit 31. In step S <b> 110, the control unit 20 detects the detection positions q <b> 1 and q <b> 2 at both ends e <b> 1 and e <b> 2 of the paper P using the both-end detection sensor 13.

ステップS120では、用紙サイズ算出部25は、移動量検出部32から検知位置q1,q2間を両端検知センサー13が移動した移動量をパルス数として取得し、取得したパルス数に基づいて、図3の用紙Pの横の長さAを算出する。   In step S120, the paper size calculation unit 25 acquires, as the number of pulses, the movement amount that the both-end detection sensor 13 has moved between the detection positions q1 and q2 from the movement amount detection unit 32, and based on the acquired pulse number, FIG. The horizontal length A of the paper P is calculated.

ステップS130では、画像サイズ取得部26は、プリンタードライバーによって送信された画像サイズの横の長さを取得する。   In step S130, the image size acquisition unit 26 acquires the horizontal length of the image size transmitted by the printer driver.

ステップS140では、記録搬送制御部27は、ステップS120で算出された用紙Pの横の長さAは、ステップS130で取得された画像サイズの横の長さと近似しているか否かを判定する。   In step S140, the recording / conveying control unit 27 determines whether the horizontal length A of the paper P calculated in step S120 is approximate to the horizontal length of the image size acquired in step S130.

近似しているか否かを判定する方法としては、用紙Pの横の長さAと画像サイズの横の長さとの差が、所定の差以内であれば近似していると判定し、所定の差を超えたときは近似していないとして判定する。所定の差は、両端検知センサーの読み取り精度や位置精度、用紙Pの形成精度などにより設定されるもので、例えば4mmとする。なお、ここで述べている近似には、用紙Pの横の長さAと画像サイズの横の長さとが一致している場合も当然ながら含まれている。   As a method for determining whether or not they are approximated, it is determined that the difference between the horizontal length A of the paper P and the horizontal length of the image size is within a predetermined difference. When the difference is exceeded, it is determined as not being approximated. The predetermined difference is set according to the reading accuracy and position accuracy of the both-end detection sensor, the formation accuracy of the paper P, and the like, for example, 4 mm. It should be noted that the approximation described here includes a case where the horizontal length A of the paper P and the horizontal length of the image size coincide with each other.

用紙Pの横の長さAと画像サイズの横の長さとが近似しているときは(Yes)、ステップS150に進む。用紙Pの横の長さAと画像サイズの横の長さとが近似していないときは(No)、ステップS160に進む。   When the horizontal length A of the paper P is approximate to the horizontal length of the image size (Yes), the process proceeds to step S150. When the horizontal length A of the paper P is not approximate to the horizontal length of the image size (No), the process proceeds to step S160.

ステップS150では、記録搬送制御部27は、搬送部31と画像記録部30とを用いて用紙Pに画像を記録する。   In step S <b> 150, the recording / conveying control unit 27 records an image on the paper P using the conveying unit 31 and the image recording unit 30.

ステップS160では、記録搬送制御部27は、搬送部31を用いて、用紙Pを排紙する。   In step S <b> 160, the recording / conveying control unit 27 discharges the paper P using the conveying unit 31.

以上、説明した本実施形態におけるプリンター1には、記録媒体としての用紙Pを搬送方向D2に搬送する搬送部31と、搬送部31によって搬送される用紙Pに画像を記録する画像記録部30と、搬送方向と直交する方向D1に移動しながら用紙Pの搬送方向と直交する方向D1すなわち用紙Pの横方向における両端e1,e2の検知位置q1,q2を検知する両端検知センサー13と、両端検知センサー13が検知位置q1,q2間を移動した移動量を検出する移動量検出部32と、移動量に基づいて用紙Pの横の長さAを算出する用紙サイズ算出部25と、プリンタードライバーによって送信された、用紙Pに記録する画像の画像サイズの横の長さを取得する画像サイズ取得部26と、用紙サイズ算出部25によって算出された用紙Pの横の長さAと画像サイズ取得部26によって取得された画像サイズの横の長さとを比較し、用紙Pの横の長さと画像サイズの横の長さとが近似する場合には、画像記録部30による用紙Pへの画像の記録を行い、搬送部31により用紙Pを排紙し、用紙Pの横の長さと画像サイズの横の長さとが近似しない場合には、画像記録部30による用紙Pへの画像の記録を行わず、搬送部31により用紙Pを排紙する記録搬送制御部27と、を備える。   As described above, the printer 1 according to the present embodiment includes the transport unit 31 that transports the paper P as a recording medium in the transport direction D2, and the image recording unit 30 that records an image on the paper P transported by the transport unit 31. Both-end detection sensor 13 that detects detection positions q1 and q2 of both ends e1 and e2 in the direction D1 orthogonal to the conveyance direction of the paper P, that is, the lateral direction of the paper P while moving in the direction D1 orthogonal to the conveyance direction, and both-end detection A movement amount detection unit 32 that detects a movement amount that the sensor 13 has moved between the detection positions q1 and q2, a paper size calculation unit 25 that calculates a lateral length A of the paper P based on the movement amount, and a printer driver. The transmitted image size acquisition unit 26 for acquiring the horizontal length of the image size of the image to be recorded on the paper P, and the paper P calculated by the paper size calculation unit 25 When the horizontal length A is compared with the horizontal length of the image size acquired by the image size acquisition unit 26 and the horizontal length of the paper P and the horizontal length of the image size are approximated, the image recording unit 30, the image is recorded on the paper P, and the paper P is discharged by the transport unit 31. When the horizontal length of the paper P and the horizontal length of the image size are not approximate, the paper by the image recording unit 30 is recorded. And a recording / conveying control unit 27 for discharging the paper P by the conveying unit 31 without recording an image on P.

この構成によれば、画像データの横の長さと、用紙Pの横の長さAとが近似していないときには、用紙Pに画像が記録されない。そのため、用紙Pの横方向において、画像データの一部のみが記録されたり、画像データが記録された範囲の外側に空白部分が形成されてしまったりすることを抑制できる。従って、用紙Pや記録するためのインクが無駄になってしまうことを抑制できる。   According to this configuration, when the horizontal length of the image data is not approximate to the horizontal length A of the paper P, no image is recorded on the paper P. Therefore, in the horizontal direction of the paper P, only a part of the image data can be recorded, or a blank portion can be prevented from being formed outside the area where the image data is recorded. Accordingly, it is possible to prevent the paper P and the ink for recording from being wasted.

また、用紙Pを搬送方向D2に搬送する搬送部31と、搬送部31によって搬送される用紙Pに画像を記録する画像記録部30と、用紙Pの横方向における両端e1,e2の検知位置q1,q2を検知する両端検知センサー13と、両端検知センサー13が検知位置q1,q2間を移動した移動量を検出する移動量検出部32とを備えたプリンター1の制御方法であって、移動量に基づいて用紙Pの横の長さAを算出する用紙サイズ算出工程と、プリンタードライバーによって送信された、用紙Pに記録する画像の横の長さを取得する画像サイズ取得工程と、用紙サイズ算出工程によって算出された用紙Pの横の長さAと画像サイズ取得部26によって取得された画像サイズの横の長さとを比較し、用紙Pの横の長さと画像サイズの横の長さとが近似する場合には、画像記録部30による用紙Pへの画像の記録を行い、搬送部31により用紙Pを排紙し、用紙Pの横の長さと画像サイズの横の長さとが近似しない場合には、画像記録部30による用紙Pへの画像の記録を行わず、搬送部31により用紙Pを排紙する記録搬送制御工程と、を含む。   In addition, a transport unit 31 that transports the paper P in the transport direction D2, an image recording unit 30 that records an image on the paper P transported by the transport unit 31, and detection positions q1 of both ends e1 and e2 of the paper P in the lateral direction. , Q2 and a movement amount detection unit 32 for detecting a movement amount by which the both ends detection sensor 13 moves between the detection positions q1 and q2. A paper size calculation step for calculating the horizontal length A of the paper P based on the image, an image size acquisition step for acquiring the horizontal length of the image to be recorded on the paper P transmitted by the printer driver, and a paper size calculation The horizontal length A of the paper P calculated by the process and the horizontal length of the image size acquired by the image size acquisition unit 26 are compared, and the horizontal length of the paper P and the horizontal length of the image size are compared. Is approximated, the image recording unit 30 records an image on the paper P, the paper P is discharged by the transport unit 31, and the horizontal length of the paper P does not approximate the horizontal length of the image size. In this case, the image recording unit 30 does not record the image on the paper P, and the transport unit 31 discharges the paper P.

また、用紙Pを搬送方向D2に搬送する搬送部31と、搬送部31によって搬送される用紙Pに画像を記録する画像記録部30と、用紙Pの横方向における両端e1,e2の検知位置q1,q2を検知する両端検知センサー13と、両端検知センサー13が検知位置q1,q2間を移動した移動量を検出する移動量検出部32とを備えたプリンター1において実行される制御プログラムであって、移動量に基づいて用紙Pの横の長さAを算出する用紙サイズ算出機能と、プリンタードライバーによって送信された、用紙Pに記録する画像の横の長さを取得する画像サイズ取得機能と、用紙サイズ算出機能によって算出された用紙Pの横の長さAと画像サイズ取得機能によって取得された画像サイズの横の長さとを比較し、用紙Pの横の長さと画像サイズの横の長さとが近似する場合には、画像記録部30による用紙Pへの画像の記録を行い、搬送部31により用紙Pを排紙し、用紙Pの横の長さと画像サイズの横の長さとが近似しない場合には、画像記録部30による用紙Pへの画像の記録を行わず、搬送部31により用紙Pを排紙する記録搬送制御機能と、をコンピューターで実現させる。   In addition, a transport unit 31 that transports the paper P in the transport direction D2, an image recording unit 30 that records an image on the paper P transported by the transport unit 31, and detection positions q1 of both ends e1 and e2 of the paper P in the lateral direction. , Q2 and a movement amount detection unit 32 that detects a movement amount by which the both end detection sensor 13 has moved between the detection positions q1 and q2. A paper size calculation function for calculating the horizontal length A of the paper P based on the amount of movement, an image size acquisition function for acquiring the horizontal length of the image to be recorded on the paper P transmitted by the printer driver, The horizontal length A of the paper P calculated by the paper size calculation function is compared with the horizontal length of the image size acquired by the image size acquisition function. When the horizontal length of the image size is approximate, the image recording unit 30 records an image on the paper P, the paper P is discharged by the transport unit 31, and the horizontal length of the paper P and the image size are set. When the horizontal length is not approximate, the recording / conveying control function for discharging the paper P by the transport unit 31 without recording the image on the paper P by the image recording unit 30 is realized by a computer.

(第2実施形態)
第2実施形態では、プリンタードライバーから送信された印刷用画像データの画像サイズと、印刷装置に給紙された用紙Pの用紙サイズとが異なるとき、使用者に通知する場合について説明する。尚、以下の説明では、既に説明した部分と同じ部分については、同一符号を付してその説明を省略する。
(Second Embodiment)
In the second embodiment, a case will be described in which the user is notified when the image size of the print image data transmitted from the printer driver is different from the paper size of the paper P fed to the printing apparatus. In the following description, the same parts as those already described are denoted by the same reference numerals and description thereof is omitted.

図5は、本実施形態におけるプリンター1aの電気的な構成を示すブロック図である。図5は、図2を用いて説明した第1実施形態におけるプリンター1の電気的な構成を示すブロック図に、表示部33を追加したものである。本実施形態におけるプリンター1aの他の構成は、第1実施形態におけるプリンター1の構成と同じである。   FIG. 5 is a block diagram showing an electrical configuration of the printer 1a in the present embodiment. FIG. 5 is obtained by adding a display unit 33 to the block diagram showing the electrical configuration of the printer 1 in the first embodiment described with reference to FIG. Other configurations of the printer 1a in the present embodiment are the same as the configurations of the printer 1 in the first embodiment.

プリンター1aには、液晶パネルなどによって構成され、制御部20に電気的に接続された表示部33が備えられる。   The printer 1 a includes a display unit 33 that is configured by a liquid crystal panel or the like and is electrically connected to the control unit 20.

記録搬送制御部27は、図3の用紙Pの横の長さAと画像サイズの横の長さとが近似していないとき、画像記録部30による用紙Pへの画像の記録を実行させずに、搬送部31を用いて用紙Pを排紙するとともに、表示部33に用紙Pの横の長さAと画像サイズの横の長さとが異なることを示すメッセージを警告として表示する。   When the horizontal length A of the paper P in FIG. 3 is not approximate to the horizontal length of the image size, the recording / conveying control unit 27 does not execute the image recording on the paper P by the image recording unit 30. The paper P is discharged using the transport unit 31 and a message indicating that the horizontal length A of the paper P is different from the horizontal length of the image size is displayed on the display unit 33 as a warning.

図6は、表示部33に表示されたメッセージの内容を示す図である。例えば、図6に示すように、「プリンターにセットされている用紙の横の長さは、プリンタードライバーで設定した用紙サイズではありません。」というメッセージを表示する。   FIG. 6 is a diagram showing the content of the message displayed on the display unit 33. For example, as shown in FIG. 6, a message “The horizontal length of the paper set in the printer is not the paper size set by the printer driver” is displayed.

次に、本実施形態における制御プログラムの処理方法について説明する。図7は、本実施形態における制御プログラムのフローチャートである。図7は、図4を用いて説明した第1実施形態におけるフローチャートに、ステップS145を追加したものである。   Next, a control program processing method in this embodiment will be described. FIG. 7 is a flowchart of the control program in this embodiment. FIG. 7 is obtained by adding step S145 to the flowchart in the first embodiment described with reference to FIG.

ステップS100からステップS130までの処理方法は、図4の第1実施形態におけるフローチャートを用いて説明した処理方法と同じである。ステップS140において、用紙Pの横の長さAと画像サイズの横の長さとが近似しているときは(Yes)、ステップS150に進む。用紙Pの横の長さAと画像サイズの横の長さとが近似していないときは(No)、ステップS145に進む。   The processing method from step S100 to step S130 is the same as the processing method described using the flowchart in the first embodiment of FIG. In step S140, when the horizontal length A of the paper P is approximate to the horizontal length of the image size (Yes), the process proceeds to step S150. When the horizontal length A of the paper P is not approximate to the horizontal length of the image size (No), the process proceeds to step S145.

ステップS145では、表示部33に、例えば図6に示すように、用紙Pの横の長さAと画像サイズの横の長さとが異なることを示すメッセージを警告として表示し、ステップS160に進む。ステップS150、ステップS160における処理方法は、図4の第1実施形態におけるフローチャートにおけるステップS150、ステップS160の処理方法と同じである。   In step S145, for example, as shown in FIG. 6, a message indicating that the horizontal length A of the paper P is different from the horizontal length of the image size is displayed as a warning on the display unit 33, and the process proceeds to step S160. The processing method in step S150 and step S160 is the same as the processing method in step S150 and step S160 in the flowchart in the first embodiment of FIG.

以上、説明した本実施形態のプリンター1aは、文字や画像を表示する表示部33を備え、記録搬送制御部27は、用紙Pの横の長さAと、プリンタードライバーによって送信された画像サイズの横の長さとが近似していないとき、表示部33に、用紙Pの横の長さAと画像サイズの横の長さとが異なることを示すメッセージを警告として表示する。   As described above, the printer 1a of the present embodiment includes the display unit 33 that displays characters and images, and the recording / conveying control unit 27 has the horizontal length A of the paper P and the image size transmitted by the printer driver. When the horizontal length is not approximated, a message indicating that the horizontal length A of the paper P is different from the horizontal length of the image size is displayed on the display unit 33 as a warning.

この構成によれば、使用者に、プリンター1aに給紙された用紙Pの横の長さAと画像サイズの横の長さとが異なることを通知することができる。   According to this configuration, the user can be notified that the horizontal length A of the paper P fed to the printer 1a is different from the horizontal length of the image size.

本実施形態では、表示部33に警告としてメッセージを表示したが、イラストなどの画像を表示部33に表示して警告してもよい。   In the present embodiment, a message is displayed as a warning on the display unit 33, but an image such as an illustration may be displayed on the display unit 33 for warning.

(第3実施形態)
第3実施形態では、傾斜した用紙Pの横の長さと縦の長さを検出する場合について説明する。本実施形態のプリンターにおける電気的な構成は、図5の第2実施形態のプリンター1aの電気的な構成と同じである。
(Third embodiment)
In the third embodiment, a case where the horizontal length and the vertical length of the inclined paper P are detected will be described. The electrical configuration of the printer of this embodiment is the same as the electrical configuration of the printer 1a of the second embodiment shown in FIG.

図8は、両端検知センサー13を用いて、傾斜した用紙Pの横の長さと縦の長さを検出する方法を説明するための図である。まず、用紙Pの傾斜角度を算出する方法について説明する。   FIG. 8 is a diagram for explaining a method of detecting the horizontal length and the vertical length of the inclined paper P using the both-end detection sensor 13. First, a method for calculating the inclination angle of the paper P will be described.

破線r1,r2は、両端検知センサー13が搬送方向と直交する方向D1に移動する動線を示す。動線r2は、用紙Pが搬送方向D2において動線r1の位置から搬送量Lだけ搬送された位置である。   Broken lines r1 and r2 indicate flow lines in which the both end detection sensor 13 moves in a direction D1 orthogonal to the transport direction. The flow line r2 is a position where the paper P is transported by a transport amount L from the position of the flow line r1 in the transport direction D2.

一点鎖線t1は、搬送方向D2において動線r1と動線r2との中間の位置を示す。従って、搬送方向D2において動線r1から中間の位置t1との距離は、搬送量Lの2分の1である。   An alternate long and short dash line t1 indicates an intermediate position between the flow line r1 and the flow line r2 in the transport direction D2. Accordingly, the distance from the flow line r1 to the intermediate position t1 in the transport direction D2 is one half of the transport amount L.

同様に、破線r3,r4は、両端検知センサー13が搬送方向と直交する方向D1に移動する動線を示す。動線r4は、用紙Pが搬送方向D2において動線r3の位置から搬送量Lだけ搬送された位置である。   Similarly, broken lines r3 and r4 indicate flow lines in which the both-end detection sensor 13 moves in a direction D1 orthogonal to the transport direction. The flow line r4 is a position where the paper P is transported by the transport amount L from the position of the flow line r3 in the transport direction D2.

一点鎖線t2は、搬送方向D2において動線r3と動線r4との中間の位置を示す。従って、搬送方向D2において動線r3から中間の位置t2との距離は、搬送量Lの2分の1である。   A one-dot chain line t2 indicates an intermediate position between the flow line r3 and the flow line r4 in the transport direction D2. Accordingly, the distance from the flow line r3 to the intermediate position t2 in the transport direction D2 is one half of the transport amount L.

図8に示すように、用紙Pの搬送方向D2における下流側となる上端e3は、動線r1,r2に対して傾斜角度θで傾斜している。従って、用紙Pの搬送方向D2における上流側となる下端e4も、動線r3,r4に対して傾斜角度θで傾斜している。   As shown in FIG. 8, the upper end e3 on the downstream side in the transport direction D2 of the paper P is inclined at an inclination angle θ with respect to the flow lines r1 and r2. Accordingly, the lower end e4 on the upstream side in the conveyance direction D2 of the paper P is also inclined at an inclination angle θ with respect to the flow lines r3 and r4.

両端検知センサー13が、動線r1の位置にあるとき、両端検知センサー13は、動線r1上を移動し、上端e3における検知位置k1を検知する。両端検知センサー13が、動線r2の位置にあるとき、両端検知センサー13は、動線r2上を移動し、上端e3における検知位置k2を検知する。   When the both ends detection sensor 13 is at the position of the flow line r1, the both ends detection sensor 13 moves on the flow line r1 and detects the detection position k1 at the upper end e3. When the both end detection sensor 13 is at the position of the flow line r2, the both end detection sensor 13 moves on the flow line r2, and detects the detection position k2 at the upper end e3.

搬送方向と直交する方向D1における検知位置k1と検知位置k2間の距離をMとすると、図8に示すように、傾斜角度θ、検知位置k1と検知位置k2間の距離M、搬送量Lとの関係は次式で表される。
tanθ=L/M ・・・ 式(1)
Assuming that the distance between the detection position k1 and the detection position k2 in the direction D1 perpendicular to the conveyance direction is M, as shown in FIG. 8, the inclination angle θ, the distance M between the detection position k1 and the detection position k2, and the conveyance amount L Is expressed by the following equation.
tan θ = L / M (1)

両端検知センサー13が、動線r3の位置にあるとき、両端検知センサー13は、動線r3上を移動し、下端e4における検知位置k3を検知する。両端検知センサー13が、動線r4の位置にあるとき、両端検知センサー13は、動線r4上を移動し、下端e4における検知位置k4を検知する。   When the both end detection sensor 13 is at the position of the flow line r3, the both end detection sensor 13 moves on the flow line r3 and detects the detection position k3 at the lower end e4. When the both end detection sensor 13 is at the position of the flow line r4, the both end detection sensor 13 moves on the flow line r4 and detects the detection position k4 at the lower end e4.

用紙Pの下端e4においても、同様に、搬送方向と直交する方向D1における検知位置k3,k4間の距離Mと、破線r3から破線r4までの搬送量Lに基づいて傾斜角度θを算出することができる。   Similarly, at the lower end e4 of the paper P, the inclination angle θ is calculated based on the distance M between the detection positions k3 and k4 in the direction D1 orthogonal to the transport direction and the transport amount L from the broken line r3 to the broken line r4. Can do.

次に、用紙Pの縦の長さを算出する方法について説明する。上端e3と一点鎖線t1との交点を上端位置s1とし、下端e4と一点鎖線t2との交点を下端位置s2とする。   Next, a method for calculating the vertical length of the paper P will be described. The intersection between the upper end e3 and the one-dot chain line t1 is defined as the upper end position s1, and the intersection between the lower end e4 and the one-dot chain line t2 is defined as the lower end position s2.

上端位置s1から一点鎖線t2への垂線との交点をvとすると、上端位置s1から交点vまでの距離Cは、用紙Pを一点鎖線t1の位置から一点鎖線t2の位置まで搬送したときの搬送量となる。   Assuming that the intersection point between the upper end position s1 and the perpendicular to the alternate long and short dash line t2 is v, the distance C from the upper end position s1 to the intersection point v is the conveyance when the sheet P is conveyed from the position of the alternate long and short dash line t1 to the position of the alternate long and short dash line t2. Amount.

上端位置s1から交点vまでの直線と、上端位置s1から下端位置s2までの直線とが交わる角度はθである。従って、上端位置s1から交点vまでの距離C、上端位置s1から下端位置s2までの距離すなわち用紙Pの縦の長さB、傾斜角度θの関係は、次式で表される。
C=B・cosθ ・・・ 式(2)
従って、用紙Pの縦の長さBは、次式から算出される。
B=C/cosθ ・・・ 式(3)
The angle at which the straight line from the upper end position s1 to the intersection point v and the straight line from the upper end position s1 to the lower end position s2 intersect is θ. Therefore, the relationship between the distance C from the upper end position s1 to the intersection point v, the distance from the upper end position s1 to the lower end position s2, that is, the vertical length B of the paper P, and the inclination angle θ is expressed by the following equation.
C = B · cos θ (2)
Accordingly, the vertical length B of the paper P is calculated from the following equation.
B = C / cos θ (3)

傾斜角度θは、式(1)に示すように、距離M、搬送量Lから設定されるので、図2の用紙サイズ算出部25は、用紙Pの縦の長さBを、式(3)によって算出することができる。   Since the inclination angle θ is set from the distance M and the carry amount L as shown in the equation (1), the paper size calculation unit 25 in FIG. 2 sets the vertical length B of the paper P to the equation (3). Can be calculated.

次に、傾斜した用紙Pの横の長さを算出する方法について説明する。   Next, a method for calculating the horizontal length of the inclined paper P will be described.

破線wは、上端e3に近い位置において、両端検知センサー13の受光部が搬送方向と直交する方向D1に移動するときの動線を示す。両端検知センサー13は、動線w上を移動し、両端e1,e2における検知位置q1,q2をそれぞれ検知する。   A broken line w indicates a flow line when the light receiving unit of the both-end detection sensor 13 moves in a direction D1 orthogonal to the transport direction at a position close to the upper end e3. The both ends detection sensor 13 moves on the flow line w, and detects the detection positions q1 and q2 at both ends e1 and e2.

図2の用紙サイズ算出部25は、移動量検出部32から検知位置q1,q2間の移動量を取得し、搬送方向と直交する方向D1における検知位置q1,q2間の距離Nを算出する。   2 obtains the movement amount between the detection positions q1 and q2 from the movement amount detection unit 32, and calculates the distance N between the detection positions q1 and q2 in the direction D1 orthogonal to the transport direction.

用紙Pは傾斜角度θで傾斜しているので、用紙サイズ算出部25は、用紙Pの横の長さAを、検知位置q1,q2間の距離Nと傾斜角度θに基づいて次式から算出する。
A=N・cosθ ・・・ 式(4)
Since the paper P is inclined at the inclination angle θ, the paper size calculation unit 25 calculates the lateral length A of the paper P from the following equation based on the distance N between the detection positions q1 and q2 and the inclination angle θ. To do.
A = N · cos θ (4)

次に、本実施形態における制御プログラムの制御方法について説明する。図9は、本実施形態における制御プログラムのフローチャートである。ステップS200では、制御部20は、搬送部31を用いて、用紙Pを給紙する。   Next, a control program control method according to the present embodiment will be described. FIG. 9 is a flowchart of the control program in the present embodiment. In step S <b> 200, the control unit 20 feeds the paper P using the transport unit 31.

ステップS210では、図8を参照して説明した方法により、両端検知センサーを用いて用紙Pの上端e3における上端位置s1を検出する。   In step S210, the upper end position s1 at the upper end e3 of the paper P is detected using the both end detection sensor by the method described with reference to FIG.

ステップS220では、図8を参照して説明した方法により、制御部20は、両端検知センサーを用いて用紙Pの両端e1,e2における検知位置q1,q2を検出する。   In step S220, the control unit 20 detects the detection positions q1 and q2 at both ends e1 and e2 of the paper P using the both-end detection sensor by the method described with reference to FIG.

ステップS230では、用紙サイズ算出部25は、移動量検出部32から検知位置q1,q2間の距離Nを取得し、用紙Pの横の長さAを式(4)から算出する。   In step S230, the paper size calculation unit 25 acquires the distance N between the detection positions q1 and q2 from the movement amount detection unit 32, and calculates the lateral length A of the paper P from Expression (4).

ステップS240では、画像サイズ取得部26は、プリンタードライバーによって送信された画像サイズの横の長さと縦の長さを取得する。   In step S240, the image size acquisition unit 26 acquires the horizontal length and the vertical length of the image size transmitted by the printer driver.

ステップS250では、記録搬送制御部27は、ステップS230で算出された用紙Pの横の長さAがステップS240で取得された画像サイズの横の長さと近似しているか否かを判定する。   In step S250, the recording / conveying control unit 27 determines whether or not the horizontal length A of the paper P calculated in step S230 is approximate to the horizontal length of the image size acquired in step S240.

用紙Pの横の長さAと画像サイズの横の長さとが近似しているときは(Yes)、ステップS270に進む。用紙Pの横の長さAと画像サイズの横の長さとが近似していないときは(No)、ステップS260に進む。   When the horizontal length A of the paper P and the horizontal length of the image size are approximate (Yes), the process proceeds to step S270. When the horizontal length A of the paper P is not approximate to the horizontal length of the image size (No), the process proceeds to step S260.

ステップS270では、記録搬送制御部27は、搬送部31と画像記録部30とを用いて用紙Pに画像を記録し、ステップS330に進む。   In step S270, the recording / conveying control unit 27 records an image on the paper P using the conveying unit 31 and the image recording unit 30, and the process proceeds to step S330.

ステップS260では、第2実施形態で説明したように、表示部33に、用紙Pの横の長さAと画像サイズの横の長さとが異なることを示す図6のメッセージを警告として表示し、ステップS280に進む。   In step S260, as described in the second embodiment, the message shown in FIG. 6 indicating that the horizontal length A of the paper P is different from the horizontal length of the image size is displayed on the display unit 33 as a warning. Proceed to step S280.

ステップS280では、制御部20は搬送処理を行う。図10は、搬送処理のフローチャートである。ステップS500では、制御部20は、前回検出した用紙Pの搬送方向と直交する方向D1の距離である前回検出距離を初期化する。ステップS510では、制御部20は、搬送部31を用いて所定の搬送量だけ用紙Pを搬送方向D2に搬送する。   In step S280, the control unit 20 performs a conveyance process. FIG. 10 is a flowchart of the conveyance process. In step S500, the control unit 20 initializes a previous detection distance that is a distance in a direction D1 orthogonal to the transport direction of the paper P detected last time. In step S510, the control unit 20 uses the transport unit 31 to transport the paper P in the transport direction D2 by a predetermined transport amount.

ステップS520では、制御部20は両端検知センサー13を用いて両端e1,e2を検知する。ステップS530では、制御部20は、用紙Pの搬送方向と直交する方向D1における両端e1,e2間の移動量を移動量検出部32から取得し、両端e1,e2間の距離を最新検出距離として算出する。   In step S520, the control unit 20 detects both ends e1, e2 using the both ends detection sensor 13. In step S530, the control unit 20 acquires the movement amount between both ends e1 and e2 in the direction D1 orthogonal to the transport direction of the paper P from the movement amount detection unit 32, and sets the distance between both ends e1 and e2 as the latest detection distance. calculate.

ステップS540では、ステップS530で算出した両端e1,e2の最新検出距離と、RAM22に記憶されている前回検出距離と比較する。最新検出距離と前回検出距離との差が所定の範囲にあるとき(Yes)、ステップS550に進む。最新検出距離と前回検出距離との差が所定の範囲を超えるとき(No)、両端検知センサー13が下端4eの位置に到達したと判定し、図9のステップS290に戻る。最新検出距離と前回検出距離との差は、用紙の傾斜角度や用紙Pの形成精度に基づいて設定するもので、例えば、3mmとする。   In step S540, the latest detection distance of both ends e1, e2 calculated in step S530 is compared with the previous detection distance stored in the RAM 22. When the difference between the latest detection distance and the previous detection distance is within a predetermined range (Yes), the process proceeds to step S550. When the difference between the latest detection distance and the previous detection distance exceeds a predetermined range (No), it is determined that the both-end detection sensor 13 has reached the position of the lower end 4e, and the process returns to step S290 in FIG. The difference between the latest detection distance and the previous detection distance is set based on the inclination angle of the paper and the formation accuracy of the paper P, and is set to 3 mm, for example.

ステップS550では、ステップS530で算出した最新検出距離を前回検出距離として図2、図5の制御部20のRAM22に記憶し、ステップS510に戻る。   In step S550, the latest detection distance calculated in step S530 is stored in the RAM 22 of the control unit 20 in FIGS. 2 and 5 as the previous detection distance, and the process returns to step S510.

ステップS290では、図8を参照して説明した方法により、両端検知センサー13を用いて用紙Pの下端e4における下端位置s2を検出する。   In step S290, the lower end position s2 of the lower end e4 of the paper P is detected using the both end detection sensor 13 by the method described with reference to FIG.

ステップS300では、図8を参照して説明した方法により、用紙サイズ算出部25は、用紙Pの縦の長さBを算出する。   In step S300, the paper size calculation unit 25 calculates the vertical length B of the paper P by the method described with reference to FIG.

ステップS310では、記録搬送制御部27は、算出された用紙Pの縦の長さBは、ステップS240で取得された画像サイズの縦の長さと近似しているか否かを判定する。   In step S310, the recording / conveying control unit 27 determines whether or not the calculated vertical length B of the paper P is approximate to the vertical length of the image size acquired in step S240.

用紙Pの縦の長さBと画像サイズの縦の長さとが近似しているときは(Yes)、ステップS330に進む。用紙Pの縦の長さBと画像サイズの縦の長さとが近似していないときは(No)、ステップS320に進む。   When the vertical length B of the paper P is close to the vertical length of the image size (Yes), the process proceeds to step S330. When the vertical length B of the paper P is not approximate to the vertical length of the image size (No), the process proceeds to step S320.

ステップS320では、表示部33に、用紙Pの横の長さAと画像サイズの横の長さおよび縦の長さとが異なることを示すメッセージを警告として表示し、ステップS330に進む。   In step S320, a message indicating that the horizontal length A of the paper P is different from the horizontal length and the vertical length of the image size is displayed as a warning on the display unit 33, and the process proceeds to step S330.

図11は、表示部33に表示されたメッセージの内容を示す図である。例えば、図11に示すように、「プリンターにセットされた用紙の横の長さと縦の長さは、プリンタードライバーで設定した用紙サイズではありません。」というメッセージを表示する。ステップS330では、記録搬送制御部27は、搬送部31を用いて、用紙Pを排紙する。   FIG. 11 is a diagram showing the content of the message displayed on the display unit 33. For example, as shown in FIG. 11, a message “The horizontal and vertical lengths of the paper set in the printer are not the paper size set by the printer driver” is displayed. In step S <b> 330, the recording / conveying control unit 27 discharges the paper P using the conveying unit 31.

以上、説明したように、本実施形態におけるプリンターにおける両端検知センサー13は、用紙Pの搬送方向D2における、下流側の上端e3と上流側の下端e4とを検知し、用紙サイズ算出部25は、搬送部31による上端e3と下端e4間の搬送量に基づいて用紙Pの縦の長さを算出し、画像サイズ取得部26は、プリンタードライバーによって送信された、用紙Pに記録する画像の画像サイズの縦の長さを取得し、記録搬送制御部27は、用紙サイズ算出部25によって算出された用紙Pの縦の長さBと、画像サイズ取得部26によって取得された画像サイズの縦の長さとを比較し、用紙Pの縦の長さBと画像サイズの縦の長さとが近似していないとき、表示部33に用紙Pの縦の長さBと画像サイズの縦の長さとが異なることを示す警告を表示する。   As described above, the both-end detection sensor 13 in the printer according to this embodiment detects the upper end e3 on the downstream side and the lower end e4 on the upstream side in the transport direction D2 of the paper P, and the paper size calculation unit 25 The vertical length of the paper P is calculated based on the transport amount between the upper end e3 and the lower end e4 by the transport unit 31, and the image size acquisition unit 26 transmits the image size of the image to be recorded on the paper P transmitted by the printer driver. The recording and transport control unit 27 obtains the vertical length B of the paper P calculated by the paper size calculation unit 25 and the vertical length of the image size acquired by the image size acquisition unit 26. When the vertical length B of the paper P and the vertical length of the image size are not approximated, the vertical length B of the paper P and the vertical length of the image size are different on the display unit 33. Indicate that To display the tell.

この構成によれば、画像データの縦の長さと、用紙Pの縦の長さBとが近似していないときには、画像データの縦の長さと、用紙Pの縦の長さBとが近似していないことを、使用者に通知することができる。   According to this configuration, when the vertical length of the image data and the vertical length B of the paper P are not approximated, the vertical length of the image data and the vertical length B of the paper P are approximated. The user can be notified that it has not.

また、両端検知センサー13は、搬送方向D2に対して用紙Pが傾斜した姿勢にあるとき、用紙Pの上端e3または下端e4における搬送方向と直交する方向D1における2箇所の位置を検知し、用紙Pの傾斜角度θを検出することができる。そのため、用紙Pが傾斜した姿勢にあるときでも用紙Pの横の長さAと縦の長さBを算出することができる。   In addition, the both-end detection sensor 13 detects two positions in the direction D1 perpendicular to the transport direction at the upper end e3 or the lower end e4 of the paper P when the paper P is in an inclined posture with respect to the transport direction D2. The inclination angle θ of P can be detected. Therefore, even when the paper P is in an inclined posture, the horizontal length A and the vertical length B of the paper P can be calculated.

(第4実施形態)
第3実施形態では、両端検知センサー13を用いて、用紙Pの縦の長さを検出する場合について説明したが、第4実施形態では、上下端検知センサー34を用いて用紙Pの縦の長さを検出する場合について説明する。
(Fourth embodiment)
In the third embodiment, the case where the vertical length of the paper P is detected using the both-end detection sensor 13 has been described. In the fourth embodiment, the vertical length of the paper P is detected using the upper and lower end detection sensor 34. A case of detecting the error will be described.

図12は、本実施形態におけるプリンター1bの電気的な構成を示すブロック図である。図12は、図5を用いて説明した第2実施形態におけるプリンター1aの電気的な構成を示すブロック図に、上下端検知センサー34を追加したものである。本実施形態におけるプリンター1bの他の構成は、第2実施形態におけるプリンター1aの構成と同じである。   FIG. 12 is a block diagram showing an electrical configuration of the printer 1b in the present embodiment. FIG. 12 is obtained by adding upper and lower end detection sensors 34 to the block diagram showing the electrical configuration of the printer 1a in the second embodiment described with reference to FIG. Other configurations of the printer 1b in the present embodiment are the same as the configurations of the printer 1a in the second embodiment.

上下端検知センサー34は、発光ダイオードなどの発光部とフォトトランジスターなどの受光部を含んで構成される。上下端検知センサー34は、キャリッジ8の搬送方向D2における上流側に位置し、フレーム6に対して固定された位置に備えられる。   The upper and lower end detection sensor 34 includes a light emitting unit such as a light emitting diode and a light receiving unit such as a phototransistor. The upper and lower end detection sensors 34 are located on the upstream side in the conveyance direction D2 of the carriage 8 and are provided at positions fixed to the frame 6.

図13は、用紙Pの上端と下端の検知位置を示す図である。図13の破線Zは、用紙Pの搬送方向D2への搬送に伴って、上下端検知センサー34の受光部が、用紙Pに対して相対的に移動する動線を示す。上下端検知センサー34は、用紙Pの給紙に伴い、上端e3における検知位置u1を検知する。さらに、用紙Pが搬送されると、上下端検知センサー34は、下端e4における検知位置u2を検知する。   FIG. 13 is a diagram illustrating detection positions of the upper end and the lower end of the paper P. A broken line Z in FIG. 13 indicates a flow line in which the light receiving unit of the upper and lower end detection sensor 34 moves relative to the paper P as the paper P is transported in the transport direction D2. The upper and lower end detection sensor 34 detects the detection position u1 at the upper end e3 as the paper P is fed. Further, when the paper P is conveyed, the upper and lower end detection sensor 34 detects the detection position u2 at the lower end e4.

図12の用紙サイズ算出部25は、用紙Pを検知位置u1から検知位置u2まで搬送した搬送量に基づいて、搬送方向D2における検知位置u1から検知位置u2までの距離、すなわち用紙Pにおける縦の長さBを算出する。   The paper size calculation unit 25 in FIG. 12 determines the distance from the detection position u1 to the detection position u2 in the transport direction D2, that is, the vertical length of the paper P, based on the transport amount by which the paper P is transported from the detection position u1 to the detection position u2. The length B is calculated.

本実施形態の制御プログラムの処理方法について、第3実施形態で用いた図9のフローチャートを参照して説明する。ステップS200では、用紙Pを給紙する。ステップS210では、上述したように、上下端検知センサー34を用いて、図13の用紙Pの上端e3における検知位置u1を検知し、上端位置として検出する。   The processing method of the control program of this embodiment is demonstrated with reference to the flowchart of FIG. 9 used in 3rd Embodiment. In step S200, the paper P is fed. In step S210, as described above, the detection position u1 at the upper end e3 of the paper P in FIG. 13 is detected using the upper and lower end detection sensor 34, and is detected as the upper end position.

ステップS220からステップS280までの処理方法は、図9を用いて第3実施形態で説明した処理方法と同じである。ステップS290では、上述したように、上下端検知センサー34を用いて、図13の用紙Pの下端e4における検知位置u2を検知し、下端位置として検出する。   The processing method from step S220 to step S280 is the same as the processing method described in the third embodiment with reference to FIG. In step S290, as described above, the detection position u2 at the lower end e4 of the paper P in FIG. 13 is detected using the upper and lower end detection sensor 34, and is detected as the lower end position.

ステップS300では、上述したように、用紙サイズ算出部25は、用紙Pを検知位置u1から検知位置u2まで搬送した搬送量に基づいて、搬送方向D2における検知位置u1から検知位置u2までの距離、すなわち用紙Pにおける縦の長さBを算出する。   In step S300, as described above, the paper size calculation unit 25 determines the distance from the detection position u1 to the detection position u2 in the transport direction D2, based on the transport amount by which the paper P is transported from the detection position u1 to the detection position u2. That is, the vertical length B of the paper P is calculated.

ステップS310からステップS330までの処理方法は、第3実施形態で説明した処理方法と同じである。   The processing method from step S310 to step S330 is the same as the processing method described in the third embodiment.

本実施形態のプリンター1bは、搬送方向D2において固定され、用紙Pの搬送方向D2における、下流側の上端e3及び上流側の下端e4を検知する上下端検知センサー34を備え、用紙サイズ算出部25は、搬送部31による上端e3と下端e4間の搬送量に基づいて用紙Pの縦の長さを算出し、画像サイズ取得部26は、プリンタードライバーによって送信された、用紙Pに記録する画像の画像サイズの縦の長さを取得し、記録搬送制御部27は、用紙サイズ算出部25によって算出された用紙Pの縦の長さと画像サイズ取得部26によって取得された画像サイズの縦の長さとを比較し、用紙Pの縦の長さと画像サイズの縦の長さとが近似していないとき、表示部33に用紙Pの縦の長さBと画像サイズの縦の長さとが異なることを示す警告を表示する。   The printer 1b of the present embodiment includes an upper and lower end detection sensor 34 that is fixed in the transport direction D2 and detects a downstream upper end e3 and an upstream lower end e4 in the transport direction D2 of the paper P, and a paper size calculation unit 25. Calculates the vertical length of the paper P based on the transport amount between the upper end e3 and the lower end e4 by the transport unit 31, and the image size acquisition unit 26 transmits the image to be recorded on the paper P transmitted by the printer driver. The vertical length of the image size is acquired, and the recording / conveyance control unit 27 calculates the vertical length of the paper P calculated by the paper size calculation unit 25 and the vertical length of the image size acquired by the image size acquisition unit 26. When the vertical length of the paper P and the vertical length of the image size are not approximated, the display unit 33 shows that the vertical length B of the paper P is different from the vertical length of the image size. Warning to display.

この構成によれば、画像データの縦の長さと、用紙Pの縦の長さBとが近似していないときには、画像データの縦の長さと、用紙Pの縦の長さBとが近似していないことを、使用者に通知することができる。   According to this configuration, when the vertical length of the image data and the vertical length B of the paper P are not approximated, the vertical length of the image data and the vertical length B of the paper P are approximated. The user can be notified that it has not.

また、上下端検知センサー34は、搬送方向D2において固定されている。そのため、搬送方向D2における上端位置と下端位置の検出精度が高いので、用紙Pの縦の長さの検出精度が高くなる。   The upper and lower end detection sensors 34 are fixed in the transport direction D2. Therefore, since the detection accuracy of the upper end position and the lower end position in the transport direction D2 is high, the detection accuracy of the vertical length of the paper P is increased.

(第5実施形態)
第5実施形態では、プリンタードライバーで生成された印刷用画像データの画像サイズと、印刷装置に給紙された用紙Pの用紙サイズと、が異なる場合、使用者に警告を通知すると共に、使用者から警告に対する動作指示を受け付ける様態について説明する。
図14は、第5実施形態におけるプリンター1cの電気的な構成を示すブロック図である。このプリンター1cは、制御部20と電気的に接続された選択部35を更に備える。
第5実施形態では、給紙された用紙Pのサイズが、印刷ジョブの画像サイズと近似していない場合、表示部33は図15に示すようなメッセージと共に、複数の選択可能な選択ボタン37を表示し、選択部35は選択ボタン37の中からユーザーの選択を受け付ける。尚、表示部33と選択部35は、プリンター1cが備えるタッチパネル(不図示)を想定する。
即ち、ユーザーは、タッチパネルに表示されるユーザーインターフェイス(UI)画面36に従い、所望の選択ボタン37を押下し、決定ボタン38を押下することで、選択した選択ボタン37に応じた指示をCPU21に与えることができる。記録搬送制御部27は、この指示に基づいて用紙Pの印刷や搬送に関する動作を制御する。
(Fifth embodiment)
In the fifth embodiment, when the image size of the printing image data generated by the printer driver is different from the paper size of the paper P fed to the printing apparatus, the user is notified of a warning and the user The manner in which the operation instruction for the warning is received will be described.
FIG. 14 is a block diagram illustrating an electrical configuration of a printer 1c according to the fifth embodiment. The printer 1 c further includes a selection unit 35 that is electrically connected to the control unit 20.
In the fifth embodiment, when the size of the fed paper P is not close to the image size of the print job, the display unit 33 displays a plurality of selectable selection buttons 37 together with a message as shown in FIG. The selection unit 35 accepts the user's selection from the selection buttons 37. In addition, the display part 33 and the selection part 35 assume the touch panel (not shown) with which the printer 1c is provided.
That is, the user presses a desired selection button 37 in accordance with a user interface (UI) screen 36 displayed on the touch panel, and presses the decision button 38 to give an instruction corresponding to the selected selection button 37 to the CPU 21. be able to. The recording / conveying control unit 27 controls operations related to printing and conveyance of the paper P based on this instruction.

第5実施形態では、選択ボタン37で選択可能な指示として次の3つを想定する。
1.「現在の用紙に印刷する」・・・印刷する画像サイズに関係なく、給紙した用紙Pに印刷ジョブが描画する画像を拡縮することなく印刷し、印刷した用紙Pを排出する。従って、画像の一部が用紙Pに印刷されないことがある。この決定は1つの印刷ジョブ内において有効になる。従って、1つの印刷ジョブで複数のページを印刷する場合、この選択を最初のページで行うことにより、以降のページではユーザーインターフェイス画面36は表示されない。
2.「プリンターにセットされている用紙を交換して印刷する」・・・ユーザーは、プリンター1cの用紙カセットやトレイにセットされている用紙Pを画像サイズに合った用紙Pに交換する。タッチパネルには、交換の完了を確認するUI画面(不図示)が表示され、ユーザーは、用紙Pの交換が完了した場合、交換の完了を示す操作を行う。この操作を受けて、CPU21は給紙された用紙Pのサイズ確認を再度行う。
3.「印刷を取り消す」・・・CPU21は、用紙サイズを比較した印刷ジョブを破棄し、印刷処理を取り消す。
In the fifth embodiment, the following three instructions are assumed as selectable instructions with the selection button 37.
1. “Print on the current paper”... Prints the image drawn by the print job on the supplied paper P without scaling, and discharges the printed paper P regardless of the image size to be printed. Therefore, a part of the image may not be printed on the paper P. This determination is valid within one print job. Therefore, when printing a plurality of pages in one print job, the user interface screen 36 is not displayed on the subsequent pages by making this selection on the first page.
2. “Replace and print the paper set in the printer”... The user replaces the paper P set in the paper cassette or tray of the printer 1c with a paper P that matches the image size. A UI screen (not shown) for confirming the completion of replacement is displayed on the touch panel. When the replacement of the paper P is completed, the user performs an operation indicating the completion of the replacement. In response to this operation, the CPU 21 confirms the size of the fed paper P again.
3. “Cancel printing”... The CPU 21 cancels the print job comparing the paper sizes and cancels the print processing.

また、第5実施形態では、プリンター1cの印刷処理に係わるスループットを向上させるべく、所定のフラグがONの場合に限り用紙サイズの比較を実行する。所定のフラグは次のような場合に変更される。
1.用紙Pをプリンター1cに再セットした場合・・・用紙カセットをプリンター1cから脱着した場合、トレイにセットする用紙のサイズや種類等の属性を変更した場合、複数のトレイの中から給紙するトレイを変更した場合、または、1つの印刷ジョブで印刷する用紙のサイズ等が変更された場合、用紙サイズの比較を行うフラグをONにする。
2.複数枚を印刷する場合の最初の1枚・・・ユーザーが複数枚印刷を指示した場合、最初の1枚目のみ用紙サイズの比較を行うフラグをONにし、2枚目以降はOFFにする。尚、1つの印刷ジョブの印刷が終了した場合、フラグはONにセットされる。
3.ユーザーインターフェイス画面36で「現在の用紙に印刷する」が選択された場合のように、用紙サイズに関係なく印刷強行する場合、用紙サイズの比較を行うフラグはOFFになる。
In the fifth embodiment, the comparison of the paper sizes is executed only when a predetermined flag is ON in order to improve the throughput related to the printing process of the printer 1c. The predetermined flag is changed in the following cases.
1. When the paper P is re-set in the printer 1c: When the paper cassette is detached from the printer 1c, when the attributes such as the size and type of the paper set in the tray are changed, the tray for feeding paper from a plurality of trays Or the size of the paper to be printed in one print job is changed, the flag for comparing the paper sizes is turned ON.
2. First one when printing a plurality of sheets: When the user instructs printing of a plurality of sheets, the flag for comparing the paper size only for the first first sheet is turned on, and the second and subsequent sheets are turned off. When printing of one print job is completed, the flag is set to ON.
3. When printing is performed regardless of the paper size, such as when “print on current paper” is selected on the user interface screen 36, the flag for comparing the paper sizes is turned OFF.

図16は、第5実施形態における制御プログラムのフローチャートである。
プリンター1cに用紙Pが給紙されたことを受けて、CPU21は所定のフラグに基づいて判定する(ステップS200)。
ここで、所定のフラグがONである場合、即ち、給紙が1枚目であるか、用紙Pを交換したか、または、印刷強行しない場合(ステップS200でYes)、CPU21は非重ね合わせ給紙(単一給紙シーケンス)を行うべく設定する(ステップS220)。
続いて、CPU21は、給紙された用紙Pの用紙サイズを算出し、印刷ジョブが示す画像の画像サイズと比較する(ステップS222)。
ここで、CPU21が用紙Pの用紙サイズと印刷ジョブが示す画像の画像サイズは近似していないと判定した場合(ステップS224でNo)、CPU21は用紙サイズを算出した用紙Pに印刷することなく白紙排出する(ステップS226)。
FIG. 16 is a flowchart of a control program in the fifth embodiment.
In response to the sheet P being fed to the printer 1c, the CPU 21 makes a determination based on a predetermined flag (step S200).
Here, if the predetermined flag is ON, that is, if the paper feed is the first sheet, the paper P has been replaced, or the printing is not forced (Yes in step S200), the CPU 21 performs non-overlapping feeding. It is set to perform paper (single paper feed sequence) (step S220).
Subsequently, the CPU 21 calculates the paper size of the fed paper P and compares it with the image size of the image indicated by the print job (step S222).
Here, when the CPU 21 determines that the paper size of the paper P and the image size of the image indicated by the print job are not approximate (No in step S224), the CPU 21 does not print on the paper P for which the paper size has been calculated. It discharges (step S226).

次に、CPU21は、用紙サイズエラーを表示し(ステップS228)、ユーザーからの指示を受け付ける(ステップS230)。
ここで、ユーザーから印刷を取り消す指示を受けた場合(ステップS232で「印刷取り消し」)、印刷ジョブを破棄し(ステップS236)、一連の処理を終了する。
また、ユーザーから現在の用紙に印刷する指示を受けた場合(ステップS232で「そのまま印刷」)、ステップS200に戻る。
また、ユーザーから用紙Pを交換して印刷する指示を受けた場合(ステップS232で「用紙を交換」)、ユーザーが用紙Pを交換し(ステップS234)、ステップS200に戻る。
尚、ステップS200において、所定のフラグがOFFである場合(ステップS200でNo)、CPU21は重ね合わせ給紙(連続給紙シーケンス)を行うべく設定し(ステップS210)、ステップS215に進む。
Next, the CPU 21 displays a paper size error (step S228) and accepts an instruction from the user (step S230).
Here, when an instruction to cancel printing is received from the user (“print cancel” in step S232), the print job is discarded (step S236), and the series of processing ends.
If the user receives an instruction to print on the current sheet (“print as it is” in step S232), the process returns to step S200.
When the user receives an instruction to replace the paper P and print (“Replace paper” in step S232), the user replaces the paper P (step S234) and returns to step S200.
In step S200, when the predetermined flag is OFF (No in step S200), the CPU 21 sets to perform the overlap feeding (continuous feeding sequence) (step S210), and the process proceeds to step S215.

また、ステップS224において、CPU21が用紙Pの用紙サイズと印刷ジョブが示す画像の画像サイズは近似していると判定した場合(ステップS224でYes)、ステップS215に進む。
ステップS215では、印刷ジョブに基づいて印刷画像を用紙Pに印刷して排出し、一連の処理を終了する。
以上の処理により、給紙された用紙Pのサイズが、印刷ジョブの画像サイズと近似しない場合、ユーザーの指示により、用紙Pに印刷を行ったり、用紙Pを交換したり、印刷を取り止めたりできるため、ユーザーに対して多様な選択肢を提供できる。
また、用紙Pのサイズ確認は選択的に実行するため、全ての用紙Pを比較する場合と比べて、印刷処理のスループットの向上を図れる。
If the CPU 21 determines in step S224 that the paper size of the paper P is similar to the image size of the image indicated by the print job (Yes in step S224), the process proceeds to step S215.
In step S215, the print image is printed on the paper P based on the print job and discharged, and the series of processing ends.
With the above processing, when the size of the fed paper P is not close to the image size of the print job, printing can be performed on the paper P, the paper P can be replaced, or printing can be canceled according to a user instruction. Therefore, various options can be provided to the user.
Further, since the size check of the paper P is selectively performed, the throughput of the printing process can be improved as compared with the case where all the papers P are compared.

尚、第5実施形態において、用紙サイズの比較は、用紙Pの横方向の比較を想定するが、これには限定されず、第3実施形態で述べたように横方向と縦方向の両方で比較しても良い。
また、第5実施形態において、プリンター1cには用紙Pの逆送り機能が具備されていない様態を想定するが、用紙Pの逆送り機能が具備されている様態も想定できる。この場合、ステップS226の白紙排出に替えて、用紙Pをプリンター1cの印刷開始位置まで戻しても良い。
また、ユーザーインターフェイス画面36には、算出した用紙サイズに関する情報を表示しても良い。更に、ユーザーインターフェイス画面36に表示するメッセージは、ユーザーが予め設定可能な様態でも良い。
また、用紙サイズの比較は、複数枚を印刷する最初の1枚には限定されず、複数枚としてユーザーが設定しても良い。
また、プリンター1cにおいて、用紙サイズエラー以外のエラーが発生した場合、用紙サイズの比較処理を実行しても良い。
また、プリンター1cは、プリンタードライバーを具備したコンピューター50と接続された様態には限定されず、プリンタードライバー機能をプリンター1c自身が具備した、所謂、スタンドアローンの様態も想定できる。
In the fifth embodiment, the comparison of the paper sizes assumes a comparison in the horizontal direction of the paper P, but is not limited to this, and as described in the third embodiment, both in the horizontal direction and the vertical direction. You may compare.
Further, in the fifth embodiment, it is assumed that the printer 1c does not have the paper P reverse function, but it is also possible to assume the paper P reverse function. In this case, instead of the blank paper discharge in step S226, the paper P may be returned to the printing start position of the printer 1c.
Further, the user interface screen 36 may display information regarding the calculated paper size. Further, the message displayed on the user interface screen 36 may be in a state that can be set in advance by the user.
Further, the comparison of the paper sizes is not limited to the first one to print a plurality of sheets, and the user may set a plurality of sheets.
Further, when an error other than a paper size error occurs in the printer 1c, a paper size comparison process may be executed.
The printer 1c is not limited to a state connected to the computer 50 having a printer driver, and a so-called stand-alone state in which the printer 1c itself has a printer driver function can be assumed.

1,1a,1b,1c…印刷装置としてのプリンター、e1,e2…両端、e3…上端、e4…下端、25…用紙サイズ算出部、27…記録搬送制御部、30…画像記録部、31…搬送部、32…移動量検出部、33…表示部、34…上下端検知センサー、35…選択部、36…ユーザーインターフェイス画面、37…選択ボタン、38…決定ボタン、50…コンピューター、51…画像処理プログラム、A…用紙の横の長さ、B…用紙の縦の長さ、D1…搬送方向と直交する方向、D2…搬送方向、P…記録媒体としての用紙。   DESCRIPTION OF SYMBOLS 1,1a, 1b, 1c ... Printer as a printing apparatus, e1, e2 ... Both ends, e3 ... Upper end, e4 ... Lower end, 25 ... Paper size calculation part, 27 ... Recording conveyance control part, 30 ... Image recording part, 31 ... Conveying unit, 32 ... movement amount detecting unit, 33 ... display unit, 34 ... upper / lower end detection sensor, 35 ... selecting unit, 36 ... user interface screen, 37 ... selection button, 38 ... decision button, 50 ... computer, 51 ... image Processing program: A: horizontal length of paper, B: vertical length of paper, D1: direction orthogonal to the transport direction, D2: transport direction, P: paper as a recording medium.

Claims (3)

記録媒体を搬送方向に搬送する搬送部と、
前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、
前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、
前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、
前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出部と、
前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得部と、
前記用紙サイズ算出部によって算出された前記記録媒体の横の長さと前記画像サイズ取得部によって取得された前記画像サイズの横の長さとを比較し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御部と、
表示部と、
前記表示部に表示される複数の動作指示の中の1つを受け付ける受付部と、を備え、
前記記録搬送制御部は、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似していないとき、前記受付部で受付けた前記動作指示に基づいて、前記記録媒体に対する搬送および記録を制御し、
前記動作指示として、前記記録媒体を交換せず記録する旨の指示を受付けた場合、ね合せ給紙を行い、
一方、前記動作指示として、前記記録媒体を交換して記録する旨の指示を受付けた場合、1枚目と2枚目との重ね合せ給紙を行わず、該1枚目の記録に先立って前記長さの比較をすること、
を特徴とする印刷装置。
A transport unit for transporting the recording medium in the transport direction;
An image recording unit for recording an image on the recording medium conveyed by the conveyance unit;
While moving in a direction orthogonal to the transport direction, both ends detection sensor that detects both ends in the lateral direction of the recording medium;
A movement amount detection unit for detecting a movement amount by which the both end detection sensor has moved between the both ends;
A paper size calculation unit for calculating a horizontal length of the recording medium based on the movement amount;
An image size acquisition unit for acquiring a horizontal length of an image size of the image to be recorded on the recording medium;
Comparing the horizontal length of the recording medium calculated by the paper size calculation unit with the horizontal length of the image size acquired by the image size acquisition unit;
When the horizontal length of the recording medium is approximate to the horizontal length of the image size, the image recording unit records an image on the recording medium, and the transport unit discharges the recording medium. ,
When the horizontal length of the recording medium does not approximate the horizontal length of the image size, the image recording unit does not record an image on the recording medium, and the recording unit discharges the recording medium. A recording conveyance control unit;
A display unit;
A reception unit that receives one of a plurality of operation instructions displayed on the display unit,
The recording and conveying control unit conveys and records the recording medium based on the operation instruction received by the receiving unit when the horizontal length of the recording medium is not approximate to the horizontal length of the image size. Control
As the operation instruction, when receiving an instruction to record without replacing the recording medium, performing a multiple I combined feed,
On the other hand, when the instruction to replace the recording medium is received as the operation instruction, the first sheet and the second sheet are not overlapped and fed before the first sheet is recorded. Comparing the lengths;
A printing apparatus characterized by the above.
記録媒体を搬送方向に搬送する搬送部と、前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、を備えた印刷装置の制御方法であって、
前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出工程と、
前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得工程と、
前記用紙サイズ算出工程によって算出された前記記録媒体の横の長さと前記画像サイズ取得工程によって取得された前記画像サイズの横の長さとを比較し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御工程と、
複数の動作指示の中の1つをユーザから受け付ける受付工程と、を含み、
前記記録搬送制御工程は、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似していないとき、前記受付工程で受付けた前記動作指示に基づいて、前記記録媒体に対する搬送および記録を制御し、
前記動作指示として、前記記録媒体を交換せず記録する旨の指示を受付けた場合、ね合せ給紙を行い、
一方、前記動作指示として、前記記録媒体を交換して記録する旨の指示を受付けた場合、1枚目と2枚目との重ね合せ給紙を行わず、該1枚目の記録に先立って前記長さの比較をすること、
を特徴とする印刷装置の制御方法。
A transport unit that transports the recording medium in the transport direction, an image recording unit that records an image on the recording medium transported by the transport unit, and a lateral direction of the recording medium while moving in a direction orthogonal to the transport direction A method of controlling a printing apparatus, comprising: a both-end detection sensor that detects both ends of the sensor; and a movement amount detection unit that detects a movement amount of the movement of the both-end detection sensor between the both ends.
A paper size calculating step of calculating a horizontal length of the recording medium based on the movement amount;
An image size acquisition step of acquiring a horizontal length of the image size of the image to be recorded on the recording medium;
Comparing the horizontal length of the recording medium calculated by the paper size calculation step with the horizontal length of the image size acquired by the image size acquisition step;
When the horizontal length of the recording medium is approximate to the horizontal length of the image size, the image recording unit records an image on the recording medium, and the transport unit discharges the recording medium. ,
When the horizontal length of the recording medium does not approximate the horizontal length of the image size, the image recording unit does not record an image on the recording medium, and the recording unit discharges the recording medium. Recording transport control process,
Receiving a user from one of a plurality of operation instructions,
In the recording / conveying control step, when the horizontal length of the recording medium is not approximate to the horizontal length of the image size, the recording / conveying and recording on the recording medium is performed based on the operation instruction received in the receiving step. Control
As the operation instruction, when receiving an instruction to record without replacing the recording medium, performing a multiple I combined feed,
On the other hand, when the instruction to replace the recording medium is received as the operation instruction, the first sheet and the second sheet are not overlapped and fed before the first sheet is recorded. Comparing the lengths;
A control method for a printing apparatus.
記録媒体を搬送方向に搬送する搬送部と、前記搬送部によって搬送される前記記録媒体に画像を記録する画像記録部と、前記搬送方向と直交する方向に移動しながら、前記記録媒体の横方向における両端を検知する両端検知センサーと、前記両端検知センサーが前記両端間を移動した移動量を検出する移動量検出部と、を備えた印刷装置において実行される制御プログラムであって、
前記移動量に基づいて前記記録媒体の横の長さを算出する用紙サイズ算出機能と、
前記記録媒体に記録する前記画像の画像サイズの横の長さを取得する画像サイズ取得機能と、
前記用紙サイズ算出機能によって算出された前記記録媒体の横の長さと前記画像サイズ取得機能によって取得された前記画像サイズの横の長さとを比較し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似する場合には、前記画像記録部による前記記録媒体への画像の記録を行い、前記搬送部により前記記録媒体を排紙し、
前記記録媒体の横の長さと前記画像サイズの横の長さとが近似しない場合には、前記画像記録部による前記記録媒体への画像の記録を行わず、前記搬送部により前記記録媒体を排紙する、記録搬送制御機能と、
複数の動作指示の中の1つをユーザから受け付ける受付工程と、を含み、
前記記録搬送制御工程は、前記記録媒体の横の長さと前記画像サイズの横の長さとが近似していないとき、前記受付工程で受付けた前記動作指示に基づいて、前記記録媒体に対する搬送および記録を制御し、
前記動作指示として、前記記録媒体を交換せず記録する旨の指示を受付けた場合、ね合せ給紙を行い、
一方、前記動作指示として、前記記録媒体を交換して記録する旨の指示を受付けた場合、1枚目と2枚目との重ね合せ給紙を行わず、該1枚目の記録に先立って前記長さの比較をすること、
をコンピューターで実現させることを特徴とする制御プログラム。
A transport unit that transports the recording medium in the transport direction, an image recording unit that records an image on the recording medium transported by the transport unit, and a lateral direction of the recording medium while moving in a direction orthogonal to the transport direction A control program that is executed in a printing apparatus comprising: a both-end detection sensor that detects both ends of the sensor; and a movement amount detection unit that detects a movement amount of the movement of the both-end detection sensor between the both ends.
A paper size calculation function for calculating a horizontal length of the recording medium based on the movement amount;
An image size acquisition function for acquiring a horizontal length of the image size of the image to be recorded on the recording medium;
Comparing the horizontal length of the recording medium calculated by the paper size calculation function and the horizontal length of the image size acquired by the image size acquisition function;
When the horizontal length of the recording medium is approximate to the horizontal length of the image size, the image recording unit records an image on the recording medium, and the transport unit discharges the recording medium. ,
When the horizontal length of the recording medium does not approximate the horizontal length of the image size, the image recording unit does not record an image on the recording medium, and the recording unit discharges the recording medium. Recording transport control function,
Receiving a user from one of a plurality of operation instructions,
In the recording / conveying control step, when the horizontal length of the recording medium is not approximate to the horizontal length of the image size, the recording / conveying and recording on the recording medium is performed based on the operation instruction received in the receiving step. Control
As the operation instruction, when receiving an instruction to record without replacing the recording medium, performing a multiple I combined feed,
On the other hand, when the instruction to replace the recording medium is received as the operation instruction, the first sheet and the second sheet are not overlapped and fed before the first sheet is recorded. Comparing the lengths;
A control program characterized in that it is realized by a computer.
JP2011172638A 2010-08-30 2011-08-08 Printing apparatus, control method and control program in printing apparatus Active JP5929033B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011172638A JP5929033B2 (en) 2010-08-30 2011-08-08 Printing apparatus, control method and control program in printing apparatus

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2010191840 2010-08-30
JP2010191840 2010-08-30
JP2011172638A JP5929033B2 (en) 2010-08-30 2011-08-08 Printing apparatus, control method and control program in printing apparatus

Publications (2)

Publication Number Publication Date
JP2012071583A JP2012071583A (en) 2012-04-12
JP5929033B2 true JP5929033B2 (en) 2016-06-01

Family

ID=46167909

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011172638A Active JP5929033B2 (en) 2010-08-30 2011-08-08 Printing apparatus, control method and control program in printing apparatus

Country Status (1)

Country Link
JP (1) JP5929033B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6439549B2 (en) * 2015-03-31 2018-12-19 ブラザー工業株式会社 Image recording device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002086818A (en) * 2000-09-14 2002-03-26 Ricoh Co Ltd Print medium processing apparatus and image forming apparatus equipped with the same
JP4421248B2 (en) * 2003-09-17 2010-02-24 株式会社リコー Printer
JP2005350229A (en) * 2004-06-11 2005-12-22 Oki Data Corp Printing apparatus and paper feeding method thereof
JP2006110747A (en) * 2004-10-12 2006-04-27 Canon Inc Image forming method and image forming apparatus
JP4416801B2 (en) * 2007-01-29 2010-02-17 キヤノン株式会社 Information processing apparatus and information processing method
JP4989260B2 (en) * 2007-03-12 2012-08-01 株式会社リコー Image forming apparatus

Also Published As

Publication number Publication date
JP2012071583A (en) 2012-04-12

Similar Documents

Publication Publication Date Title
US8061798B2 (en) Liquid ejecting apparatus and printing system
JP5533037B2 (en) Image forming apparatus
US9108410B2 (en) Printing apparatus and control method
JP2008229922A (en) Image forming apparatus, linear encoder contamination detection method, and linear encoder contamination detection image forming method
JP2010240885A (en) Discharge failure detection method and discharge failure detection device
JP2009184144A (en) Fluid ejection apparatus and control method thereof
US7537302B2 (en) Liquid ejecting apparatus, computer system, and liquid ejecting method
US8662614B2 (en) Liquid ejection apparatus
JP2018051822A (en) Printing device
JP4419645B2 (en) Printing device
JP5929033B2 (en) Printing apparatus, control method and control program in printing apparatus
JP2006213042A (en) Image forming apparatus
JP2004345198A (en) Liquid ejection device, liquid ejection method, and liquid ejection system
US8845055B2 (en) Control apparatus for a liquid ejecting head, liquid ejecting apparatus, and control method for a liquid ejecting head
JP5621346B2 (en) Printing apparatus and printing method
JP4449394B2 (en) Printing apparatus, printing method, and printing system
JP6375664B2 (en) Image forming apparatus
JP2004255806A (en) Printing apparatus, printing method, and printing system
JP5741135B2 (en) Inkjet recording device
CN114055939A (en) Printing apparatus and printing method
JP5404120B2 (en) Discharge timing correction apparatus and discharge timing correction method
JP2019206125A (en) Image formation apparatus
JP4265235B2 (en) Test pattern, test pattern creation method, recording apparatus and program
JP2024134008A (en) LIQUID DISCHARGE APPARATUS AND LIQUID DISCHARGE METHOD
JP2004249713A (en) Liquid ejection device, method for forming adjustment pattern, computer program, and computer system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140804

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20150106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150529

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150602

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150731

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160105

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160229

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160405

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160418

R150 Certificate of patent or registration of utility model

Ref document number: 5929033

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150