[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JP2015009479A - Print control apparatus, print control method and program - Google Patents

Print control apparatus, print control method and program Download PDF

Info

Publication number
JP2015009479A
JP2015009479A JP2013137054A JP2013137054A JP2015009479A JP 2015009479 A JP2015009479 A JP 2015009479A JP 2013137054 A JP2013137054 A JP 2013137054A JP 2013137054 A JP2013137054 A JP 2013137054A JP 2015009479 A JP2015009479 A JP 2015009479A
Authority
JP
Japan
Prior art keywords
size
paper
print
printing
print medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013137054A
Other languages
Japanese (ja)
Inventor
平井 佳行
Yoshiyuki Hirai
佳行 平井
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2013137054A priority Critical patent/JP2015009479A/en
Publication of JP2015009479A publication Critical patent/JP2015009479A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Record Information Processing For Printing (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a print control apparatus, a print control method and a program capable of performing appropriate determination with respect to a candidate for a size obtained by detecting the size of a print medium by a sensor.SOLUTION: A print control apparatus determines whether or not a difference between a size of a print medium based on detection by a sensor and a size of a print medium set as print setting is equal to or less than a predetermined difference and, in a case where the size of the print medium set as print setting is a user definition size defined by a user, performs determination so that the predetermined difference becomes larger in comparison with a case where the size of the print medium is a fixed size.

Description

本発明は、印刷対象のデータに基づく画像を印刷させる印刷制御装置、印刷制御方法、およびプログラムに関するものである。   The present invention relates to a print control apparatus, a print control method, and a program for printing an image based on data to be printed.

従来、印刷装置において、印刷設定として設定されている用紙サイズと、印刷装置が備えるセンサにより検出された用紙サイズとを比較することにより、印刷を実行するか、または印刷をキャンセルするか判定する技術がある。特許文献1では、予め指定された用紙サイズとセンサにより検出された用紙サイズが一致すると判断した場合に印刷を実行、不一致と判断した場合に印刷をキャンセルする技術が開示されている。   2. Description of the Related Art Conventionally, in a printing apparatus, a technique for determining whether to execute printing or cancel printing by comparing a paper size set as a print setting with a paper size detected by a sensor included in the printing apparatus. There is. Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for executing printing when it is determined that the paper size designated in advance matches the paper size detected by the sensor, and canceling printing when it is determined that they do not match.

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

しかしながら、印刷設定として設定されている設定用紙サイズが、印刷装置100にセットされている印刷用紙に合わせて設定されていたとしても、その設定用紙サイズと印刷用紙の本来のサイズとの間に誤差がある場合がある。   However, even if the set paper size set as the print setting is set according to the print paper set in the printing apparatus 100, there is an error between the set paper size and the original size of the print paper. There may be.

例えば、定型サイズ(A4サイズ、レターサイズ、L判サイズ、4x6サイズ)とは異なる非定形サイズが印刷設定に設定されていた場合に、設定用紙サイズと印刷用紙の本来のサイズとの間に誤差が生じることがある。例えばユーザ自らがこのような非定形の印刷用紙の幅と長さを測定して、その測定されたサイズが設定用紙サイズとして設定される。この場合、印刷用紙の幅と長さに測定誤差がある可能性があるため、設定用紙サイズと印刷用紙の本来のサイズとの間に誤差が生じることがある。この場合、印刷装置にセットされている印刷用紙に対応する設定用紙サイズが設定されていたとしても、そもそも両者のサイズに誤差があるため、特許文献1に開示の方法により印刷がキャンセルされてしまうことがある。   For example, when a non-standard size different from the standard size (A4 size, letter size, L size, 4x6 size) is set in the print settings, there is an error between the set paper size and the original size of the print paper. May occur. For example, the user himself measures the width and length of such a non-standard printing paper, and the measured size is set as the set paper size. In this case, since there may be a measurement error in the width and length of the printing paper, an error may occur between the set paper size and the original size of the printing paper. In this case, even if the setting paper size corresponding to the printing paper set in the printing apparatus is set, there is an error in both sizes in the first place, so printing is canceled by the method disclosed in Patent Document 1. Sometimes.

本発明は上記の問題点を解決するためになされたものであり、印刷媒体のサイズをセンサが検出することにより得られたサイズの候補に対して適切な判定を行うことができる印刷制御装置、印刷制御方法、およびプログラムを提供することを目的とする。   The present invention has been made to solve the above-described problems, and a print control apparatus that can appropriately determine a size candidate obtained by a sensor detecting the size of a print medium, An object of the present invention is to provide a printing control method and program.

上記課題を解決するために本発明の印刷制御装置は、印刷媒体のサイズをセンサが検出することにより得られた当該印刷媒体のサイズの候補を取得する取得手段と、前記取得手段により取得された候補に対応する第1のサイズと、印刷対象のデータに対する印刷設定として設定されている印刷媒体の第2のサイズとの差が所定の差以下であるか判定する判定手段と、前記差が前記所定の差以下であると前記判定手段により判定された場合、当該第1のサイズと当該第2のサイズの少なくとも一方に基づく大きさの前記印刷対象のデータに基づく画像を印刷手段に印刷させ、当該差が当該所定の差より大きいと前記判定手段により判定された場合、前記印刷媒体に対して当該印刷対象のデータに基づく画像が印刷されないように制御する印刷制御手段と、を有し、前記判定手段は、前記第2のサイズがユーザにより定義されたユーザ定義サイズである場合に当該第2のサイズが定型サイズである場合に比べて前記所定の差が大きくなるように、前記判定を行うことを特徴とする。   In order to solve the above-described problem, the print control apparatus of the present invention acquires the print medium size candidate obtained by the sensor detecting the size of the print medium, and the acquisition unit acquires the print medium size candidate. Determining means for determining whether a difference between the first size corresponding to the candidate and the second size of the print medium set as the print setting for the print target data is equal to or less than a predetermined difference; When the determination unit determines that the difference is equal to or less than a predetermined difference, the printing unit prints an image based on the data to be printed having a size based on at least one of the first size and the second size; When the determination unit determines that the difference is larger than the predetermined difference, a print control is performed so that an image based on the data to be printed is not printed on the print medium. And when the second size is a user-defined size defined by a user, the predetermined difference is larger than when the second size is a standard size. Thus, the determination is performed.

本発明によれば、センサによる検出に基づく印刷媒体のサイズと、印刷設定として設定されている印刷媒体のサイズとの差が所定の差以下であるか判定される。そして、印刷設定として設定されている印刷媒体のサイズがユーザにより定義されたユーザ定義サイズである場合に、定型サイズである場合に比べて上記所定の差が大きくなるように判定が行われる。そのため、印刷媒体のサイズをセンサが検出することにより得られたサイズの候補に対して適切な判定を行うことができる。   According to the present invention, it is determined whether the difference between the size of the print medium based on the detection by the sensor and the size of the print medium set as the print setting is equal to or smaller than a predetermined difference. Then, when the size of the print medium set as the print setting is a user-defined size defined by the user, the determination is performed so that the predetermined difference is larger than that in the case of the standard size. Therefore, it is possible to make an appropriate determination with respect to a size candidate obtained by the sensor detecting the size of the print medium.

本発明の実施形態である印刷装置100における印刷機構部分の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a printing mechanism portion in the printing apparatus 100 according to the embodiment of the present invention. 印刷装置のプラテン111および印字ヘッド112部分を排紙トレイ117側からみた構成図である。FIG. 2 is a configuration diagram of a platen 111 and a print head 112 portion of the printing apparatus as viewed from a paper discharge tray 117 side. 印刷装置100の制御系の構成を示すブロック図である。2 is a block diagram illustrating a configuration of a control system of the printing apparatus 100. FIG. 用紙サイズの情報を示す図である。It is a figure which shows the information of paper size. 本発明の実施形態における、印刷実行時のCPU201の処理内容を示すフローチャートである。4 is a flowchart illustrating processing contents of a CPU 201 during execution of printing in the embodiment of the present invention. 設定用紙サイズと検出用紙サイズの一致/不一致を判定する処理の内容を示すフローチャートである。6 is a flowchart showing the contents of processing for determining whether the set paper size matches the detected paper size.

以下、本発明の実施形態の一例について詳細に説明する。   Hereinafter, an example of an embodiment of the present invention will be described in detail.

図1は、本実施形態における印刷装置100が備える印刷機構を示す図である。給紙トレイ101には印刷用紙が格納されている。給紙ローラ103は、給紙トレイ101に格納されている印刷用紙を搬送ローラ105、106に給紙する。印刷用紙104は、給紙ローラ103により給紙され、搬送ローラ105、106により搬送されている印刷用紙である。図1のように、印刷用紙104は、搬送ローラ105、106により部材107、108による搬送路を通り、搬送ローラ109、110へ搬送される。搬送ローラ109、110は、印刷用紙104をプラテン111に搬送する。   FIG. 1 is a diagram illustrating a printing mechanism provided in the printing apparatus 100 according to the present embodiment. Printing paper is stored in the paper feed tray 101. The paper feed roller 103 feeds printing paper stored in the paper feed tray 101 to the transport rollers 105 and 106. The printing paper 104 is a printing paper that is fed by the paper feed roller 103 and conveyed by the conveyance rollers 105 and 106. As shown in FIG. 1, the printing paper 104 is transported to the transport rollers 109 and 110 by the transport rollers 105 and 106 through the transport path by the members 107 and 108. Conveying rollers 109 and 110 convey the printing paper 104 to the platen 111.

またプラテン111の上部には印刷ヘッド112を搭載したキャリッジ113が設けられている。キャリッジ113は、ガイドレール114に沿って図1に示すA方向(図1中手前から奥に向かう方向)、B方向(図1中奥から手前に向かう方向)に往復走査する。印刷装置100は、キャリッジ113をA方向、B方向に走査させながら、印刷ヘッド112に駆動パルスを印加することにより印刷ヘッド112からインク等の記録剤を吐出させる。このように印刷ヘッド112から印刷用紙104に記録剤が吐出されることで、印刷用紙104に印刷対象の画像が印刷される。画像が印刷された印刷用紙104はさらに搬送ローラ109、110により、排紙ローラ115、116に搬送される。排紙ローラ115、116は印刷用紙104を、排紙トレイ117に排紙する。   A carriage 113 on which the print head 112 is mounted is provided on the platen 111. The carriage 113 performs reciprocating scanning along the guide rail 114 in the A direction (direction from the front to the back in FIG. 1) and the B direction (direction from the back to the front in FIG. 1) shown in FIG. The printing apparatus 100 ejects a recording agent such as ink from the print head 112 by applying a driving pulse to the print head 112 while scanning the carriage 113 in the A direction and the B direction. As described above, the recording agent is ejected from the print head 112 onto the printing paper 104, whereby an image to be printed is printed on the printing paper 104. The printing paper 104 on which the image is printed is further transported to the paper discharge rollers 115 and 116 by the transport rollers 109 and 110. The paper discharge rollers 115 and 116 discharge the printing paper 104 to a paper discharge tray 117.

またキャリッジ113には、反射型の光学センサである用紙センサ118が設けられている。印刷装置100は、この用紙センサ118が受光した光の強さを示す出力レベル(出力電圧)を取得し、その出力レベルが印刷用紙からの反射光に対応するレベルであるか判定することにより、当該受光された位置に印刷用紙が存在するか検出することができる。また上記のように、用紙センサ118はキャリッジ113に設けられており、印刷ヘッド112とともに走査される。そして印刷装置100は、用紙センサ118の走査が行われる範囲について印刷用紙104が存在するか検出することで、当該走査の範囲における印刷用紙の端部を判定することができる。そして当該印刷用紙の左右の端部間の距離に基づいて、当該印刷用紙の幅を検出することができる。この検出処理の詳細について図2を用いて説明する。用紙センサ118(キャリッジ113)の走査位置は後述するエンコーダ224によって検出される。   The carriage 113 is provided with a paper sensor 118 that is a reflective optical sensor. The printing apparatus 100 acquires an output level (output voltage) indicating the intensity of light received by the paper sensor 118, and determines whether the output level is a level corresponding to reflected light from the printing paper. It is possible to detect whether a print sheet is present at the received position. As described above, the paper sensor 118 is provided on the carriage 113 and is scanned together with the print head 112. Then, the printing apparatus 100 can determine the end of the printing paper in the scanning range by detecting whether the printing paper 104 exists in the scanning range of the paper sensor 118. Based on the distance between the left and right edges of the printing paper, the width of the printing paper can be detected. Details of this detection processing will be described with reference to FIG. The scanning position of the paper sensor 118 (carriage 113) is detected by an encoder 224 described later.

印刷装置100は、上記の給紙トレイ101、プラテン111、印刷ヘッド112、キャリッジ113、ガイドレール114、排紙トレイ117、また上記の各種のローラを印刷機構として備える。   The printing apparatus 100 includes the paper feed tray 101, the platen 111, the print head 112, the carriage 113, the guide rail 114, the paper discharge tray 117, and the various rollers described above as a printing mechanism.

図2は、用紙センサ118による用紙幅の検出を説明するための図である。   FIG. 2 is a diagram for explaining detection of the paper width by the paper sensor 118.

上記のように、印刷装置100はキャリッジ113をガイドレール114に沿って矢印A方向、B方向に往復移動させながら印刷ヘッド112に記録剤を吐出させることにより、印刷用紙104上に画像を印刷する。またキャリッジ113の移動範囲(用紙センサの位置x)においてプラテン111から外れた位置には、印刷ヘッド112のキャッピングを行うためにヘッド回復機構119が設けられている。用紙センサの位置xは、後述するエンコーダ224により検出されたキャリッジ113の位置により特定される。   As described above, the printing apparatus 100 prints an image on the printing paper 104 by discharging the recording agent to the print head 112 while reciprocating the carriage 113 along the guide rail 114 in the directions of the arrows A and B. . In addition, a head recovery mechanism 119 is provided at a position outside the platen 111 in the movement range of the carriage 113 (paper sensor position x) to perform capping of the print head 112. The position x of the paper sensor is specified by the position of the carriage 113 detected by an encoder 224 described later.

また用紙センサ118はプラテン111上を走査しながら光を受光し、受光された光の出力レベルを検出する。図2に示すグラフは、キャリッジ113の移動範囲において用紙センサ118が検出した出力レベルを示す。なお本実施形態においては、印刷用紙は白色等の明るい色であり、プラテン111は黒色等の暗い色である。よって印刷用紙がプラテン111に存在する位置については高い出力レベル(印刷用紙からの強い反射光)が取得され、印刷用紙が存在しない位置については低い出力レベル(プラテン111からの弱い反射光)が検出される。   The paper sensor 118 receives light while scanning the platen 111, and detects the output level of the received light. The graph shown in FIG. 2 shows the output level detected by the paper sensor 118 in the movement range of the carriage 113. In this embodiment, the printing paper is a bright color such as white, and the platen 111 is a dark color such as black. Therefore, a high output level (strong reflected light from the printing paper) is acquired for the position where the printing paper exists on the platen 111, and a low output level (weak reflected light from the platen 111) is detected for the position where the printing paper does not exist. Is done.

用紙センサ118は、キャリッジ113がヘッド回復機構119の位置にいるときにプラテン111における位置Eの反射光を受光する。そして、キャリッジ113がA方向に向かって移動すると、印刷用紙104の端部に対応する位置で出力レベルが上がる。そして、印刷用紙104の端部から反対側の端部までは、およそ一定の出力レベルが取得され、端部において出力レベルが下がる。   The sheet sensor 118 receives the reflected light at the position E on the platen 111 when the carriage 113 is at the position of the head recovery mechanism 119. When the carriage 113 moves in the direction A, the output level increases at a position corresponding to the end of the printing paper 104. An approximately constant output level is acquired from the end of the printing paper 104 to the opposite end, and the output level decreases at the end.

本実施形態においては、用紙センサ118の出力レベルが所定の閾値Vthを超える場合に、当該出力レベルが検出された位置に印刷用紙104が存在するものと判定する。具体的には、図2における位置G、位置Fが印刷用紙104の端の位置であり、位置G〜位置Fまでの範囲を、印刷用紙104が存在する範囲とする。そして、位置G〜位置Fの距離を、印刷用紙104の用紙幅として検出する。   In the present embodiment, when the output level of the paper sensor 118 exceeds a predetermined threshold value Vth, it is determined that the print paper 104 is present at the position where the output level is detected. Specifically, the positions G and F in FIG. 2 are the positions of the edges of the printing paper 104, and the range from the position G to the position F is the range where the printing paper 104 exists. Then, the distance between the position G and the position F is detected as the sheet width of the printing sheet 104.

なお本実施形態において印刷装置100は、印刷用紙の中心がプラテン111の中央位置Cとなるように、印刷用紙104を中央寄せで搬送する。このとき仮に印刷用紙104が大きく、図2において印刷用紙104の右端が位置Eよりも右側であった場合、印刷用紙104の右端の位置を検出できないことがある。   Note that in the present embodiment, the printing apparatus 100 conveys the printing paper 104 at the center so that the center of the printing paper is at the center position C of the platen 111. At this time, if the printing paper 104 is large and the right edge of the printing paper 104 in FIG. 2 is on the right side of the position E, the right edge of the printing paper 104 may not be detected.

そこで本実施形態において印刷装置100は、印刷用紙104の右端の位置が位置Eよりも右にある場合、中央位置Cと印刷用紙104の左端の位置Gとの距離により、印刷用紙104の用紙幅を判定する。具体的には、まず位置Eにおける出力レベルがVthを超える場合、印刷用紙104の右端の位置が位置Eもしくは位置Eよりも右側であると判定される。このように判定された場合、中央位置Cと位置Gの距離を2倍した長さが、印刷用紙104の用紙幅として検出される。即ち、印刷装置100は印刷用紙104の中心が中央位置Cとなるように印刷用紙104を搬送するため、中央位置Cと印刷用紙104の左端の位置Gとの距離が用紙幅の半分の長さとなる。よって印刷装置100は、中央位置Cと位置Gとの距離を2倍した長さを用紙幅として検出することができる。なお、キャリッジの走査範囲における中央位置Cを示す値が印刷装置100内のメモリに予め記憶されており、印刷装置100はこの値を参照することで、中央位置Cと位置Gとの距離を求めることができる。   Therefore, in the present embodiment, when the right end position of the printing paper 104 is to the right of the position E, the printing apparatus 100 determines the paper width of the printing paper 104 based on the distance between the center position C and the left end position G of the printing paper 104. Determine. Specifically, when the output level at the position E exceeds Vth, it is determined that the right end position of the printing paper 104 is the position E or the right side of the position E. When determined in this way, a length obtained by doubling the distance between the center position C and the position G is detected as the sheet width of the printing sheet 104. That is, since the printing apparatus 100 transports the printing paper 104 so that the center of the printing paper 104 is at the central position C, the distance between the central position C and the leftmost position G of the printing paper 104 is half the paper width. Become. Therefore, the printing apparatus 100 can detect a length obtained by doubling the distance between the center position C and the position G as the sheet width. A value indicating the center position C in the scanning range of the carriage is stored in advance in a memory in the printing apparatus 100, and the printing apparatus 100 obtains the distance between the center position C and the position G by referring to this value. be able to.

なお、上記の閾値Vthは固定の値でなくてもよく、例えば位置Eにおける出力レベルに応じて閾値を変更する場合であってもよい。また印刷媒体の表面の特性による反射光の強さに応じて閾値Vthを決定してもよい。具体的には、印刷に用いられる用紙の種別(普通紙、光沢紙等)に応じて、閾値Vthを変更する。さらに、印刷用紙の有無を検出する方法として、上記のように出力レベルが閾値を超えるか判定する方法でなく、位置Eにおける出力レベルと他の位置における出力レベルの比較結果から印刷用紙の有無を検出してもよい。例えば、位置Eの出力レベルにより位置Eにおいて印刷用紙が存在しないと判定した場合に、その出力レベルから所定値以上大きな出力レベルの位置に印刷用紙が存在すると判定してもよい。   The threshold value Vth does not have to be a fixed value. For example, the threshold value Vth may be changed according to the output level at the position E. Further, the threshold value Vth may be determined according to the intensity of reflected light according to the characteristics of the surface of the print medium. Specifically, the threshold value Vth is changed according to the type of paper used for printing (plain paper, glossy paper, etc.). Further, as a method for detecting the presence / absence of printing paper, it is not a method for determining whether the output level exceeds the threshold as described above, but the presence / absence of printing paper is determined from the comparison result of the output level at position E and the output level at other positions. It may be detected. For example, when it is determined that there is no print paper at position E based on the output level at position E, it may be determined that there is print paper at a position of an output level that is greater than the output level by a predetermined value or more.

また、図2の方法では、キャリッジ113に用紙センサ118を設け、用紙センサ118が移動しながら検出を行う例について説明したが、これに限らない。例えばプラテン111上にキャリッジ113とは個別に用紙センサが設けられる場合であってもよい。この場合、印刷用紙の搬送路の幅に対応する数の用紙センサを並べて配置し、各用紙センサが印刷用紙の存在を検出したか判定することにより、印刷用紙の幅を判定することができる。   In the method of FIG. 2, the paper sensor 118 is provided on the carriage 113 and the detection is performed while the paper sensor 118 is moving. However, the method is not limited thereto. For example, a sheet sensor may be provided on the platen 111 separately from the carriage 113. In this case, it is possible to determine the width of the printing paper by arranging a number of paper sensors corresponding to the width of the conveyance path of the printing paper and determining whether each paper sensor detects the presence of the printing paper.

次に、印刷装置100の構成を説明する。図3は、印刷装置100の構成を示すブロック図である。   Next, the configuration of the printing apparatus 100 will be described. FIG. 3 is a block diagram illustrating a configuration of the printing apparatus 100.

CPU201は、印刷装置100を制御するプロセッサである。CPU201は内部バス202を介して、ROMやハードディスク等のプログラムメモリ203とRAM等のデータメモリ204と接続されている。プログラムメモリ203には、印刷装置100を制御するためのプログラムが格納されている。CPU201は、プログラムメモリ203に格納されているプログラムをデータメモリ204に読み出し、データメモリ204に割り当てられているワークメモリ205上で実行することにより、印刷装置100を制御することができる。またデータメモリ204には、画像メモリ206も割り当てられており、印刷装置100において印刷される画像データなどの各種のデータがCPU201により画像メモリ206に展開される。   The CPU 201 is a processor that controls the printing apparatus 100. The CPU 201 is connected to a program memory 203 such as a ROM or a hard disk and a data memory 204 such as a RAM via an internal bus 202. A program memory 203 stores a program for controlling the printing apparatus 100. The CPU 201 can control the printing apparatus 100 by reading a program stored in the program memory 203 to the data memory 204 and executing it on the work memory 205 assigned to the data memory 204. An image memory 206 is also allocated to the data memory 204, and various data such as image data to be printed by the printing apparatus 100 is expanded in the image memory 206 by the CPU 201.

インタフェース制御部207は、CPU201の制御によりインタフェースを介してスマートフォン等のスマートデバイス208と通信を行う。例えば、スマートデバイス208から印刷対象のジョブを受信し、また印刷装置100のステータス情報をスマートデバイス208へ通知することができる。なお、インタフェース制御部207は、USB(Universal Serial Bus)ケーブル等の有線のインタフェースを介して通信を行ってもよいし、または赤外線通信や無線LAN等の無線インタフェースを介して通信を行ってもよい。なお、スマートデバイスとは、例えばスマートフォン、タブレットであり、また携帯電話など各種のデバイスを含む。   The interface control unit 207 communicates with a smart device 208 such as a smartphone via an interface under the control of the CPU 201. For example, a job to be printed can be received from the smart device 208 and status information of the printing apparatus 100 can be notified to the smart device 208. The interface control unit 207 may perform communication via a wired interface such as a USB (Universal Serial Bus) cable, or may perform communication via a wireless interface such as infrared communication or a wireless LAN. . The smart device is, for example, a smartphone or a tablet, and includes various devices such as a mobile phone.

また通信相手は、スマートデバイス208に限らずパーソナルコンピュータであってもよい。その他、ネットワークを介して接続されたサーバであってもよいし、電話回線を介して接続されたファクシミリ装置や、デジタルテレビ等の装置であってもよい。また、印刷ジョブに印刷対象のデータが含まれている場合に限らず、印刷ジョブに含まれているアドレス情報に従って印刷装置100がサーバ等の外部装置から印刷対象のデータを取得する場合であってもよい。   The communication partner is not limited to the smart device 208 but may be a personal computer. In addition, it may be a server connected via a network, a facsimile machine connected via a telephone line, or a device such as a digital television. The present invention is not limited to the case where print target data is included in the print job, but is a case where the printing apparatus 100 acquires print target data from an external device such as a server according to the address information included in the print job. Also good.

モータ制御部209はCPU201による制御により、印刷装置100の印刷機構を駆動するための各種モータを制御する。搬送モータ210は、モータ制御部209の制御に従って、図1で示した給紙ローラ103、搬送ローラ105、106、109、110、排紙ローラ115、116を駆動する。キャリッジモータ211(CRモータ)は、モータ制御部209の制御に従ってキャリッジ113を駆動し、キャリッジ113を往復移動させる。また回復モータ212は、モータ制御部209の制御に従ってヘッド回復機構119を駆動する。   A motor control unit 209 controls various motors for driving the printing mechanism of the printing apparatus 100 under the control of the CPU 201. The transport motor 210 drives the paper feed roller 103, the transport rollers 105, 106, 109, and 110 and the paper discharge rollers 115 and 116 shown in FIG. 1 according to the control of the motor control unit 209. The carriage motor 211 (CR motor) drives the carriage 113 according to the control of the motor control unit 209, and reciprocates the carriage 113. The recovery motor 212 drives the head recovery mechanism 119 according to the control of the motor control unit 209.

ヘッド制御部213は、CPU201の制御に従って印刷ヘッド112を制御し、印刷ヘッド112にインク等の記録剤を吐出させる。CPU201は印刷ヘッド112と搬送モータ210を共に駆動させることで、印刷ヘッド112を走査させながら印刷用紙に画像を印刷させる。即ち、印刷装置100内のCPU201が印刷制御装置として動作し、印刷機構としての各種のモータ、印刷ヘッド112を制御して、当該印刷機構に画像を印刷させる。   The head controller 213 controls the print head 112 according to the control of the CPU 201 and causes the print head 112 to eject a recording agent such as ink. The CPU 201 drives the print head 112 and the conveyance motor 210 together to print an image on the printing paper while scanning the print head 112. That is, the CPU 201 in the printing apparatus 100 operates as a print control apparatus, controls various motors as a printing mechanism, and the print head 112, and causes the printing mechanism to print an image.

センサ制御部214は、CPU201の制御に従って、用紙センサ118に含まれるセンサ光源215を発光させ、また用紙センサ118が備える光学センサ216に反射光を受光させる。またセンサ制御部214は、光学センサ216が受光した光の強さを示す出力レベルを取得する。CPU201は、センサ制御部214が取得した出力レベルを取得することで、図2で示した用紙幅の判定を行うことができる。なお、CPU201は後述する処理により、上記のように判定された用紙幅に応じて、用紙長も含めた用紙サイズを判定する。   The sensor control unit 214 causes the sensor light source 215 included in the paper sensor 118 to emit light according to the control of the CPU 201 and causes the optical sensor 216 included in the paper sensor 118 to receive reflected light. The sensor control unit 214 acquires an output level indicating the intensity of light received by the optical sensor 216. The CPU 201 can determine the paper width shown in FIG. 2 by acquiring the output level acquired by the sensor control unit 214. Note that the CPU 201 determines the paper size including the paper length according to the paper width determined as described above by the processing described later.

パネル制御部217は、CPU201の制御に従って、操作パネル218を制御する。なお、操作パネル218は、キーやタッチパネルなどユーザが操作を行う操作デバイスと、画像等の各種の情報を表示できる表示パネルを含む。例えばユーザが操作パネル218の操作デバイスを操作すると、ユーザの指示がパネル制御部217に入力され、その指示がさらにCPU201に入力される。またパネル制御部217がCPU201の指示に応じて、画像メモリ206に展開されている画像を操作パネルの表示パネルに表示する。   The panel control unit 217 controls the operation panel 218 according to the control of the CPU 201. The operation panel 218 includes an operation device that is operated by a user such as a key and a touch panel, and a display panel that can display various types of information such as images. For example, when the user operates the operation device of the operation panel 218, a user instruction is input to the panel control unit 217, and the instruction is further input to the CPU 201. Further, the panel control unit 217 displays the image developed in the image memory 206 on the display panel of the operation panel in response to an instruction from the CPU 201.

スキャナ制御部219は、CPU201の制御に従って、スキャナ220を制御し、スキャナ220の原稿台に載置されている原稿をスキャナ220に読み取らせ、その読取画像を入力する。またスキャナ制御部219を画像メモリ206に格納する。メモリカード制御部221は、CPU201の制御により、メモリカードスロット222に装着されたメモリカード223に対して各種のデータの書き込み、読み出しを行う。   The scanner control unit 219 controls the scanner 220 according to the control of the CPU 201, causes the scanner 220 to read a document placed on the document table of the scanner 220, and inputs the read image. Further, the scanner control unit 219 is stored in the image memory 206. The memory card control unit 221 writes and reads various data to and from the memory card 223 mounted in the memory card slot 222 under the control of the CPU 201.

エンコーダ224は、ガイドレール114に沿ってキャリッジ113が走査するときのキャリッジ113の位置を特定する。CPU201は、エンコーダ224により特定されたキャリッジ113の位置と、キャリッジ113における用紙センサ118の取り付け位置により、図2に示した用紙センサの位置xを特定する。   The encoder 224 specifies the position of the carriage 113 when the carriage 113 scans along the guide rail 114. The CPU 201 specifies the position x of the paper sensor shown in FIG. 2 based on the position of the carriage 113 specified by the encoder 224 and the attachment position of the paper sensor 118 on the carriage 113.

本実施形態においてCPU201は、上記のように用紙センサ118により判定された用紙幅に応じて、用紙長も含めた用紙サイズを判定する。なお、本実施形態の印刷装置100は、用紙センサ118が印刷ヘッド112とともにキャリッジ113に設けられている。そして、キャリッジ113を移動させるための各種のモータやガイドレール114、キャリッジ113の位置を特定するためのエンコーダ224等の部材は、印刷ヘッド112による印刷と用紙センサ118による用紙幅の検出の両方に共通して用いられる。そのため、印刷のための部材とは別に、用紙幅の検出のために上記の部材を設けなくてもよく、印刷装置100が大型化してしまうことを防ぐことができる。   In the present embodiment, the CPU 201 determines the sheet size including the sheet length according to the sheet width determined by the sheet sensor 118 as described above. In the printing apparatus 100 according to the present embodiment, the paper sensor 118 is provided on the carriage 113 together with the print head 112. Various motors for moving the carriage 113, members such as the guide rail 114, and an encoder 224 for specifying the position of the carriage 113 are used for both printing by the print head 112 and detection of the sheet width by the sheet sensor 118. Used in common. For this reason, it is not necessary to provide the above-mentioned member for detecting the paper width separately from the member for printing, and it is possible to prevent the printing apparatus 100 from becoming large.

図4は、印刷装置100がサポートする用紙サイズの情報を管理する用紙サイズテーブル300の内容を示す図である。この用紙サイズテーブル300は、プログラムメモリ203に格納されており、CPU201は、プログラムメモリ203からデータメモリ204に用紙サイズテーブルを読み出すことで用紙サイズテーブルを参照することができる。   FIG. 4 is a diagram showing the contents of a paper size table 300 that manages information on paper sizes supported by the printing apparatus 100. The paper size table 300 is stored in the program memory 203, and the CPU 201 can refer to the paper size table by reading the paper size table from the program memory 203 to the data memory 204.

CPU201は、用紙センサ118により検出された印刷用紙の幅と、用紙サイズテーブル300を参照することにより、印刷装置100にセットされている印刷用紙のサイズを特定する。詳細については後述する。   The CPU 201 identifies the size of the printing paper set in the printing apparatus 100 by referring to the width of the printing paper detected by the paper sensor 118 and the paper size table 300. Details will be described later.

用紙サイズテーブル300には、印刷装置100がサポートする用紙毎の、分類情報301、名称情報302、用紙幅情報303、用紙長情報304、用紙幅の検出許容範囲305、用紙長の検出許容範囲306が格納されている。分類情報301は、「定型サイズ」または「ユーザ定義サイズ」の分類を表している。本実施形態では、ISOやJISなどの工業規格によって規定されている用紙サイズを「定型サイズ」と分類し、それ以外を「ユーザ定義サイズ」と分類する。なお、工業規格によって規定されていなくても印刷装置が予め定めている用紙サイズのことを「定型サイズ」と分類してもかまわない。名称情報302は、用紙サイズの名称を表している。「L判」「4x6」「A4」「レター」などの「定型サイズ」に分類される用紙サイズは、あらかじめ名称が印刷装置によって決められている。ユーザはこの名称を選択することで、用紙の実際の大きさ(用紙幅長)を知らなくても、希望する用紙サイズへの印刷を行うことができる。   The paper size table 300 includes classification information 301, name information 302, paper width information 303, paper length information 304, paper width detection allowable range 305, and paper length detection allowable range 306 for each paper supported by the printing apparatus 100. Is stored. The classification information 301 represents a classification of “standard size” or “user-defined size”. In the present embodiment, the paper size defined by an industrial standard such as ISO or JIS is classified as “standard size”, and the other is classified as “user-defined size”. Note that the paper size predetermined by the printing apparatus may be classified as “standard size” even if it is not defined by the industry standard. The name information 302 represents the name of the paper size. Names of paper sizes classified as “standard size” such as “L size”, “4 × 6”, “A4”, and “letter” are determined in advance by the printing apparatus. By selecting this name, the user can print on the desired paper size without knowing the actual size (paper width length) of the paper.

一方で、「自作レター」のように、「ユーザ定義サイズ」に分類される用紙サイズは、代表的な通称が存在しないため、ユーザが自ら名称を決める。用紙幅情報303および用紙長情報304は、名称302に対応した用紙のサイズを表している。分類情報301で「ユーザ定義サイズ」に分類されている用紙は、あらかじめ用紙幅長が規定されていないため、ユーザが値を入力し、印刷装置100のデータメモリ204に記録する。   On the other hand, since there is no typical common name for paper sizes classified as “user-defined size” such as “self-made letter”, the user decides the name himself. The sheet width information 303 and the sheet length information 304 represent the sheet size corresponding to the name 302. For paper classified as “user-defined size” in the classification information 301, the paper width length is not defined in advance, so the user inputs a value and records it in the data memory 204 of the printing apparatus 100.

本実施形態においてCPU201は、用紙センサ118により検出された用紙幅と図4に示した用紙サイズテーブル300を参照して、印刷装置100にセットされている印刷用紙のサイズを判定する。具体的には、CPU201は用紙サイズテーブルにおいて、用紙センサ118により検出された用紙幅の所定範囲内にある用紙幅303に対応する名称情報302を、印刷装置100において搬送されている印刷用紙104のサイズの名称として特定する。   In this embodiment, the CPU 201 refers to the paper width detected by the paper sensor 118 and the paper size table 300 shown in FIG. 4 to determine the size of the printing paper set in the printing apparatus 100. Specifically, the CPU 201 stores name information 302 corresponding to the paper width 303 within a predetermined range of the paper width detected by the paper sensor 118 in the paper size table of the printing paper 104 being conveyed in the printing apparatus 100. Specify the size name.

このように所定の範囲を設ける理由は、例えば印刷用紙の状態や印刷装置100が置かれている環境によって印刷用紙からの反射光の強さが異なるために、用紙センサ118の検出結果と実際の用紙幅の間に誤差が生じる場合があるからである。   The reason for providing the predetermined range in this way is that, for example, the intensity of reflected light from the printing paper varies depending on the state of the printing paper and the environment in which the printing apparatus 100 is placed. This is because an error may occur between the sheet widths.

そこで本実施形態では、上記所定の範囲として、用紙幅の検出許容範囲305、用紙長の検出許容範囲306を用紙サイズテーブル上で定めている。これは、検出された用紙サイズと、あらかじめ登録されている用紙サイズと同一とみなせるかを判定する場合の許容誤差を表している。なお、上記許容誤差はセットされた印刷用紙の裁断誤差、用紙センサ118の検知誤差、用紙搬送時の斜行精度などを考慮して定めている。   Therefore, in the present embodiment, the paper width detection allowable range 305 and the paper length detection allowable range 306 are defined on the paper size table as the predetermined ranges. This represents an allowable error in determining whether the detected paper size can be regarded as the same as a pre-registered paper size. The allowable error is determined in consideration of the cutting error of the set printing paper, the detection error of the paper sensor 118, the skew feeding accuracy during paper conveyance, and the like.

例えば上記所定の範囲を上下2mmとして、用紙センサ118により用紙幅として100.0mmが検出された場合、98.0mm〜102.0mmに含まれる用紙幅303に対応する用紙サイズを、印刷用紙のサイズの候補として特定する。図4の用紙サイズテーブルに示されているように、この場合、用紙幅303(101.6mm)に対応する4×6判が候補として特定される。なお、用紙幅の検出許容範囲305、用紙長の検出許容範囲306の数値は、あらかじめ印刷装置に静的に定められてもよいし、用紙の分類やサイズに従って任意の規則に基づいて動的に定められてもよい。   For example, when the predetermined range is 2 mm above and below, and 100.0 mm is detected as the paper width by the paper sensor 118, the paper size corresponding to the paper width 303 included in 98.0 mm to 102.0 mm is set to the size of the printing paper. Identify as a candidate. As shown in the paper size table of FIG. 4, in this case, a 4 × 6 size corresponding to the paper width 303 (101.6 mm) is specified as a candidate. Note that the numerical values of the paper width detection allowable range 305 and the paper length detection allowable range 306 may be statically determined in advance in the printing apparatus, or dynamically based on arbitrary rules according to the paper classification and size. It may be determined.

また図4に示すように、「定型サイズ」と比較すると、「ユーザ定義サイズ」の検出許容範囲が広く設定されている。これは「定型サイズ」に比べ、「ユーザ定義サイズ」に該当する用紙幅303、用紙長304と実際の用紙幅、用紙長との誤差が大きくなる可能性が高いからである。例えば、印刷用紙をユーザが自ら裁断して用紙を作成するケースがある。この場合、規格に基づいて用紙サイズが定められている市販の「定型サイズ」と比較すると、用紙の裁断誤差が大きくなる場合があり、用紙サイズテーブル300に登録されている用紙幅303、用紙長304との誤差が大きくなることがある。また用紙サイズテーブル300に登録されている用紙幅303はユーザが自ら登録する。その際に、例えば印刷を行う印刷用紙の幅、長さをユーザ自ら計測し、そのように計測した結果を、操作パネル218を用いて用紙幅303、用紙長304の値として登録することがある。この場合の測定誤差や値の入力ミスにより、用紙幅303と、実際の用紙幅との間に誤差が生じることがある。   As shown in FIG. 4, the detection allowable range of “user-defined size” is set wider than “standard size”. This is because there is a high possibility that an error between the sheet width 303 and the sheet length 304 corresponding to the “user-defined size” and the actual sheet width and sheet length is larger than the “standard size”. For example, there is a case where the user cuts the printing paper by himself and creates the paper. In this case, compared with a commercially available “standard size” in which the paper size is determined based on the standard, the paper cutting error may increase, and the paper width 303 and the paper length registered in the paper size table 300 may be increased. The error from 304 may increase. The user registers the sheet width 303 registered in the sheet size table 300 by himself / herself. At that time, for example, the width and length of the printing paper on which printing is performed may be measured by the user, and the measurement result may be registered as values of the paper width 303 and the paper length 304 using the operation panel 218. . In this case, an error may occur between the sheet width 303 and the actual sheet width due to a measurement error or a value input error.

よって、本実施形態では、L判、4x6、A4、レターなどの「定型サイズ」の許容誤差を±2mmとし、自作レターである「ユーザ定義サイズ」の許容誤差を「定型サイズ」の場合より広い±4mmとすることで許容誤差を大きく定めている。   Therefore, in this embodiment, the tolerance of “standard size” such as L size, 4 × 6, A4, and letter is set to ± 2 mm, and the tolerance of “user-defined size” that is a self-made letter is wider than that of “standard size”. The tolerance is set large by setting the value to ± 4 mm.

なお、図2を用いて説明したように、本実施形態においては印刷用紙104が大きい場合に印刷用紙104の片端が用紙センサ118により検出されないことがあり、このとき中央位置Cと位置Gとの距離に基づく計算により用紙幅が判定される。この場合、例えば印刷用紙104の特性等により、印刷用紙104の中心が中央位置Cから外れて搬送されてしまうことがある。よって、印刷用紙104の片端が検出されなかった場合には、上記所定の範囲を±10mmなど比較的広く設定するようにしてもよい。   As described with reference to FIG. 2, in this embodiment, when the printing paper 104 is large, one end of the printing paper 104 may not be detected by the paper sensor 118. At this time, the center position C and the position G are not detected. The paper width is determined by calculation based on the distance. In this case, the center of the printing paper 104 may be deviated from the central position C due to the characteristics of the printing paper 104, for example. Therefore, when one end of the printing paper 104 is not detected, the predetermined range may be set relatively wide such as ± 10 mm.

また上記の例では、用紙センサ118の検出結果である用紙幅を中心に、所定の範囲内(例えば±2mm)に含まれる用紙サイズを特定していた。しかしこれに限らず、検出結果よりも所定幅(例えば+2mm)大きい範囲に含まれる用紙サイズを特定してもよいし、逆に所定幅小さな範囲に含まれる用紙サイズを特定してもよい。また印刷用紙の種別(普通紙、光沢紙等)によって上記所定の範囲を変更するようにしてもよい。例えば印刷用紙が光沢紙の場合、普通紙の場合に比べて反射光が強い。このとき、本来は印刷用紙の位置ではない位置において用紙センサ118が取得した出力レベルが上記閾値Vthを越えてしまい、当該位置に印刷用紙があるものと判定してしまう可能性がある。よって、例えば印刷用紙の種別が普通紙の場合には±2mmの範囲を設定し、光沢紙の場合には、―6mmの範囲を設定するようにしてもよい。その他、用紙センサ118の特定等、種々の条件に応じて上記所定の範囲を設定してよい。   In the above example, the paper size included in a predetermined range (for example, ± 2 mm) is specified around the paper width as the detection result of the paper sensor 118. However, the present invention is not limited to this, and a paper size included in a range larger than the detection result by a predetermined width (for example, +2 mm) may be specified. Conversely, a paper size included in a range smaller than the predetermined width may be specified. The predetermined range may be changed depending on the type of printing paper (plain paper, glossy paper, etc.). For example, when the printing paper is glossy paper, the reflected light is stronger than that of plain paper. At this time, the output level acquired by the paper sensor 118 at a position that is not originally the position of the printing paper may exceed the threshold value Vth, and it may be determined that there is printing paper at that position. Therefore, for example, when the type of printing paper is plain paper, a range of ± 2 mm may be set, and when glossy paper is used, a range of −6 mm may be set. In addition, the predetermined range may be set according to various conditions such as the specification of the paper sensor 118.

本実施形態においてCPU201は、スマートデバイス208などの外部装置から受信した印刷ジョブにおいて印刷設定として設定されている印刷用紙のサイズ(設定用紙サイズ)と、用紙センサ118により検出された用紙幅に基づくサイズを比較する。そして、設定用紙サイズに対応する大きさの印刷用紙が印刷装置100にセットされているか判定する。   In the present embodiment, the CPU 201 determines the size based on the print paper size (set paper size) set as the print setting in the print job received from the external device such as the smart device 208 and the paper width detected by the paper sensor 118. Compare Then, it is determined whether a printing paper having a size corresponding to the set paper size is set in the printing apparatus 100.

そして、印刷設定として設定されている設定用紙サイズに対応する大きさの印刷用紙が印刷装置100にセットされていると判定された場合、設定用紙サイズに対応する大きさの、前記印刷対象のデータに基づく画像が印刷される。一方、設定用紙サイズに対応する大きさの印刷用紙が印刷装置100にセットされていると判定されなかった場合、当該受信された印刷ジョブにより当該印刷用紙に印刷が実行されないように制御される。   If it is determined that the printing paper having a size corresponding to the set paper size set as the print setting is set in the printing apparatus 100, the print target data having a size corresponding to the set paper size is set. An image based on is printed. On the other hand, when it is not determined that a printing paper having a size corresponding to the set paper size is set in the printing apparatus 100, the received printing job is controlled so that printing is not performed on the printing paper.

また設定用紙サイズは、印刷ジョブ内の印刷設定情報において、用紙名称として記述されている。そしてCPU201は、設定用紙サイズの用紙名称と、上記のように用紙センサ118による検出結果により特定された用紙名称301が一致するか否かにより、設定用紙サイズに対応する大きさの印刷用紙が印刷装置100にセットされているか判定する。   The set paper size is described as a paper name in the print setting information in the print job. Then, the CPU 201 prints a print sheet having a size corresponding to the set sheet size based on whether or not the sheet name of the set sheet size matches the sheet name 301 specified by the detection result by the sheet sensor 118 as described above. It is determined whether the device 100 is set.

なお本実施形態では、不図示のセンサにより、印刷装置100にセットされている印刷用紙の長さについても印刷用紙の幅と同様に検出されるものとする。   In the present embodiment, it is assumed that the length of the printing paper set in the printing apparatus 100 is detected by a sensor (not shown) in the same manner as the width of the printing paper.

図4の例に従うと、印刷設定において設定されている設定用紙サイズが「L判」の場合に、印刷装置100が検出した用紙サイズの用紙幅は、検出許容範囲305と検出許容範囲306がそれぞれ±2mmである。よってセンサにより検出された結果、用紙幅87mm〜91mmかつ用紙長125mm〜129mmであれば、指定された用紙サイズと検出された用紙サイズが同一とみなせると判断する。   According to the example of FIG. 4, when the set paper size set in the print settings is “L”, the paper width of the paper size detected by the printing apparatus 100 includes the detection allowable range 305 and the detection allowable range 306, respectively. ± 2 mm. Therefore, if the sheet width is 87 mm to 91 mm and the sheet length is 125 mm to 129 mm as a result of detection by the sensor, it is determined that the designated sheet size and the detected sheet size can be regarded as the same.

また、設定用紙サイズが「自作レター」の場合に、印刷装置100が検出した用紙サイズの用紙幅は、検出許容範囲305と検出許容範囲306がそれぞれ±4mmである。よってセンサにより検出された結果、用紙幅216.0mm〜224.0mmかつ用紙長280.0mm〜288.0mmであれば、印刷設定において指定された用紙サイズと検出された用紙サイズが同一とみなせると判断する。   When the set paper size is “self-made letter”, the paper width of the paper size detected by the printing apparatus 100 is ± 4 mm in the detection allowable range 305 and the detection allowable range 306, respectively. Therefore, as a result of detection by the sensor, if the paper width is 216.0 mm to 224.0 mm and the paper length is 280.0 mm to 288.0 mm, the paper size specified in the print settings can be regarded as the same as the detected paper size. to decide.

なお、上記の例では設定用紙サイズとして印刷用紙の名称が設定されている例を示したが、これに限らず、印刷用紙の幅、長さが値(例えばミリメートル)で印刷設定情報に記述されていてもよい。例えば、ユーザ定義用紙の場合、印刷ジョブを送信する装置において、ユーザが印刷用紙の幅、長さの値を入力し、その入力された値が印刷対象のデータとして印刷装置100に送信されてもよい。   In the above example, the name of the print paper is set as the set paper size. However, the present invention is not limited to this, and the width and length of the print paper are described in the print setting information as values (for example, millimeters). It may be. For example, in the case of user-defined paper, even if the user inputs values for the width and length of the printing paper in the device that transmits the print job, the input values are transmitted to the printing device 100 as data to be printed. Good.

図5は、本実施形態における、印刷実行時のCPU201の処理内容を示すフローチャートである。なお、図5のフローチャートにおける処理を実現するためのプログラムがプログラムメモリ203に格納されている。そして、CPU201がこのプログラムをワークメモリ205に読み出してワークメモリ205上でプログラムを実行することで、図5に示すフローチャートの処理が実現される。   FIG. 5 is a flowchart showing the processing contents of the CPU 201 when printing is executed in the present embodiment. Note that a program for realizing the processing in the flowchart of FIG. 5 is stored in the program memory 203. Then, the CPU 201 reads out this program to the work memory 205 and executes the program on the work memory 205, thereby realizing the processing of the flowchart shown in FIG.

S1001においてCPU201は、スマートデバイス208などのホスト装置から印刷ジョブデータを受信してデータメモリ204の所定の領域に格納する。このように受信された印刷ジョブデータはCPU201により順次コマンド解析され、各コマンドに応じた処理が行われる。   In step S <b> 1001, the CPU 201 receives print job data from a host device such as the smart device 208 and stores it in a predetermined area of the data memory 204. The print job data received in this way is sequentially analyzed by the CPU 201 and processing corresponding to each command is performed.

S1002でCPU201は、印刷ジョブデータのコマンド群のなかから印刷ジョブに設定された用紙サイズ(設定用紙サイズ)を取得してワークメモリ205の所定の領域に設定用紙サイズとして記憶する。   In step S <b> 1002, the CPU 201 acquires the paper size (set paper size) set for the print job from the command group of the print job data, and stores the paper size in the predetermined area of the work memory 205 as the set paper size.

次にCPU201はS1003へ進み、印刷機構を制御して給紙動作を行う。これにより給紙トレイ101に積載された記録用紙102のうち、一番上の一枚の記録用紙104が給紙ローラ103によりピックアップされ、プラテン111の位置に記録用紙104の先端が位置するところまで搬送される。   In step S1003, the CPU 201 controls the printing mechanism to perform a paper feeding operation. As a result, among the recording sheets 102 stacked on the sheet feeding tray 101, the uppermost recording sheet 104 is picked up by the sheet feeding roller 103 until the leading edge of the recording sheet 104 is positioned at the position of the platen 111. Be transported.

S1004においてCPU201は、キャリッジ113および用紙センサ118を制御して用紙サイズ検出を実行し、検出された用紙サイズを示す情報をワークメモリ205の所定の領域に検出用紙サイズとして記憶する。この検出用紙サイズは、用紙サイズの幅、長さの値(例えばミリメートル単位)として記憶される。   In step S <b> 1004, the CPU 201 controls the carriage 113 and the paper sensor 118 to execute paper size detection, and stores information indicating the detected paper size as a detected paper size in a predetermined area of the work memory 205. This detected paper size is stored as a value of the paper size width and length (for example, in millimeters).

次にS1005においてCPU201は、S1004で記憶した検出用紙サイズを基に、図4で説明した用紙サイズテーブル300を参照し、設定用紙サイズと検出用紙サイズが同一とみなせるか否かを判定する。この判定処理の詳細については図6を用いて後述する。   In step S <b> 1005, the CPU 201 refers to the paper size table 300 described in FIG. 4 based on the detected paper size stored in step S <b> 1004 and determines whether the set paper size and the detected paper size can be regarded as the same. Details of this determination processing will be described later with reference to FIG.

S1005において設定用紙サイズと検出用紙サイズが同一とみなせると判定された場合、S1006へ進む。S1006においてCPU201は、S1002において取得された用紙サイズにあわせて印刷を実行する。具体的には、CPU201が、S1001で受信された印刷ジョブに対応する印刷対象のデータを、設定用紙サイズの用紙幅、用紙長に応じた大きさで画像メモリ206に画像として展開する。そして、このように展開された画像を印刷機構に、S1002において給紙、搬送された印刷用紙に印刷させる。そして、印刷が実行された印刷用紙を、排紙ローラ115、116により排紙トレイ117に排紙させる。   If it is determined in S1005 that the set paper size and the detected paper size can be regarded as the same, the process proceeds to S1006. In step S1006, the CPU 201 executes printing in accordance with the paper size acquired in step S1002. Specifically, the CPU 201 develops the print target data corresponding to the print job received in step S1001 as an image in the image memory 206 with a size corresponding to the paper width and paper length of the set paper size. Then, the image developed in this way is printed by the printing mechanism on the printing paper fed and transported in S1002. Then, the printing paper on which printing has been executed is discharged onto the discharge tray 117 by the discharge rollers 115 and 116.

S1005において設定用紙サイズと検出用紙サイズが同一とみなせると判定された場合、S1007へ進む。S1007においてCPU201は、印刷をキャンセルし、位置ずれがあったことをエラーとしてユーザに通知する。S1007においては、S1003において用紙センサ118により印刷用紙の幅を検出するために、印刷に使用される印刷用紙が図1における用紙センサ118の下の位置まで搬送されている。S1007においてCPU201は、当該印刷(S1001で受信された印刷ジョブに基づく印刷)をキャンセルするために、印刷ヘッド112による印刷を行わずに、搬送モータ210を制御して当該印刷用紙を排紙トレイ117に排紙する。   If it is determined in S1005 that the set paper size and the detected paper size can be regarded as the same, the process proceeds to S1007. In step S <b> 1007, the CPU 201 cancels printing and notifies the user that there has been a positional deviation as an error. In S1007, in order to detect the width of the printing paper by the paper sensor 118 in S1003, the printing paper used for printing is conveyed to a position below the paper sensor 118 in FIG. In step S <b> 1007, the CPU 201 controls the transport motor 210 without printing by the print head 112 to cancel the printing (printing based on the print job received in step S <b> 1001) and discharges the printing paper to the discharge tray 117. Paper is discharged.

またS1007においてCPU201は、当該印刷がキャンセルされたことをエラーとしてユーザに通知する。例えば、パネル制御部217を制御して、位置ずれが起きたことを示す表示を操作パネル218に表示させる。またエラー通知の方法は表示に限らず、例えば不図示のスピーカーから警告音や警告の内容を知らせる音声を出力するようにしてもよい。   In step S1007, the CPU 201 notifies the user that the printing has been canceled as an error. For example, the panel control unit 217 is controlled to display on the operation panel 218 a display indicating that a positional deviation has occurred. Further, the error notification method is not limited to display. For example, a warning sound or a sound notifying the content of the warning may be output from a speaker (not shown).

図6は、図5のS1005における設定用紙サイズと検出用紙サイズを同一とみなせるか否かを判定する処理の内容を詳細に示すフローチャートである。   FIG. 6 is a flowchart showing in detail the contents of processing for determining whether or not the set paper size and the detected paper size can be regarded as the same in S1005 of FIG.

まずS2001において、設定用紙サイズが定型サイズであるかユーザ定義サイズであるか判定される。具体的には、図4の用紙サイズテーブル300を参照して、設定用紙サイズとして設定されている用紙サイズの名称に一致する用紙名称302を特定し、特定された用紙名称302に対応する用紙サイズの分類301の内容を取得することで判定する。   First, in S2001, it is determined whether the set paper size is a standard size or a user-defined size. Specifically, referring to the paper size table 300 in FIG. 4, the paper name 302 that matches the name of the paper size set as the set paper size is specified, and the paper size corresponding to the specified paper name 302 It is determined by acquiring the contents of the classification 301 of the above.

S2001において設定用紙サイズが定型サイズであると判定された場合は、S2002において、定型サイズ用の閾値(例えば±2mm)で、設定用紙サイズと検出用紙サイズを比較する。   If it is determined in S2001 that the set paper size is the standard size, in S2002, the set paper size and the detected paper size are compared with a standard size threshold (for example, ± 2 mm).

具体的には本実施形態では下記の式で比較する。   Specifically, in the present embodiment, comparison is made using the following formula.

設定用紙サイズ幅(303)をTx、設定用紙サイズ長(304)をTy、用紙幅の検出許容範囲(305)をUx、用紙長の検出許容範囲(306)をUy、検出用紙サイズの幅をX、検出用紙サイズの長さをYとする。このとき、
|(Tx−X)|≦|Ux|
かつ
|(Ty−Y)|≦|Uy|
が成り立つか判定される。
The set paper size width (303) is Tx, the set paper size length (304) is Ty, the paper width detection allowable range (305) is Ux, the paper length detection allowable range (306) is Uy, and the detected paper size width is Let X be the length of the detected paper size. At this time,
| (Tx−X) | ≦ | Ux |
And | (Ty−Y) | ≦ | Uy |
It is determined whether or not

図4の用紙サイズテーブル300における検出閾値の用紙幅305と用紙長306によれば、定型サイズ時の閾値は±2mmとなっている。従って、例えば設定用紙サイズがL判であった場合、検出用紙サイズの幅が87〜91mm、高さが125〜129mmであれば上記の条件を満たす。   According to the paper width 305 and the paper length 306 of the detection threshold values in the paper size table 300 of FIG. 4, the threshold value at the standard size is ± 2 mm. Therefore, for example, when the set paper size is L, the above condition is satisfied if the width of the detected paper size is 87 to 91 mm and the height is 125 to 129 mm.

S2001において設定用紙サイズがユーザ定義サイズと判定された場合は、S2003に進む。S2003では、S1004において検出された検出用紙サイズに対して、ユーザ定義サイズ用の閾値で比較を行う。この比較では、S2002と同様に、上記2つの式が成り立つか否かを条件に判定される。   If it is determined in step S2001 that the set paper size is a user-defined size, the process advances to step S2003. In S2003, the detected paper size detected in S1004 is compared with a threshold value for user-defined size. In this comparison, as in S2002, it is determined whether or not the above two expressions hold.

ただし、図4の用紙サイズテーブル300における検出閾値の用紙幅305と用紙長306によれば、ユーザ定義サイズ時の閾値は±4mmとなっている。本実施形態ではユーザ定義サイズのときは、ユーザが用意した用紙サイズの実際のサイズと、ユーザが入力した設定サイズに誤差があることを考慮して、許容範囲が定型サイズのときの±2mmよりも広い±4mmに設定されている。従って、例えば設定用紙サイズが「自作レター」であった場合、検出用紙サイズの幅が220〜228mm、高さが280〜288mmであれば、上記の条件を満たす。   However, according to the detection threshold paper width 305 and paper length 306 in the paper size table 300 of FIG. 4, the threshold value at the user-defined size is ± 4 mm. In this embodiment, when the size is user-defined, considering that there is an error between the actual size of the paper size prepared by the user and the set size input by the user, from ± 2 mm when the allowable range is the standard size Is set to a wide ± 4 mm. Therefore, for example, when the set paper size is “original letter”, the above condition is satisfied if the width of the detected paper size is 220 to 228 mm and the height is 280 to 288 mm.

S2004では、S2002またはS2003における処理において上記の条件を満たすかと判定されたか否かにより、設定用紙サイズと検出用紙サイズが同一であるか判定される。具体的には、上記条件を満たす場合、S2005において、設定用紙サイズと検出用紙サイズが同一と見なすことを示す情報をワークメモリ205に記憶させる。一方、上記条件を満たさない場合、S2006において、設定用紙サイズと検出用紙サイズが同一と見なさないことを示す情報をワークメモリ205に記憶させる。   In S2004, it is determined whether the set paper size and the detected paper size are the same depending on whether it is determined in the processing in S2002 or S2003 that the above condition is satisfied. Specifically, if the above condition is satisfied, information indicating that the set paper size is the same as the detected paper size is stored in the work memory 205 in S2005. On the other hand, if the above condition is not satisfied, information indicating that the set paper size and the detected paper size are not considered to be the same is stored in the work memory 205 in S2006.

図5のS1005ではCPU201が、S2005またはS2006において記憶された情報を参照することで、設定用紙サイズと検出用紙サイズが同一であるか判定する。   In S1005 of FIG. 5, the CPU 201 refers to the information stored in S2005 or S2006 to determine whether the set paper size and the detected paper size are the same.

以上のように、本実施形態では、設定用紙サイズと検出用紙サイズが同一であるかを判定するための設定用紙サイズと検出用紙サイズの誤差の許容範囲を、定型サイズよりもユーザ定義サイズの方が広くなるように設定する。例えば印刷用紙をユーザが自ら裁断して用紙を作成する場合の裁断誤差や、ユーザが計測した印刷用紙の幅、長さが用紙幅303、用紙長304の値として登録された場合の測定誤差が大きくなることがある。本実施形態では、上記のようにユーザ定義サイズの検出許容範囲を広く(基準を緩く)設定するため、仮にこのような誤差が起きた場合でも、設定用紙サイズが検出用紙サイズに対応するものであるとして適切に特定することができる。   As described above, in the present embodiment, the allowable range of the error between the set paper size and the detected paper size for determining whether the set paper size and the detected paper size are the same is set to the user-defined size rather than the standard size. Set to be wide. For example, the cutting error when the user cuts the printing paper by himself to create the paper, and the measurement error when the width and length of the printing paper measured by the user are registered as the values of the paper width 303 and the paper length 304 are included. May grow. In the present embodiment, as described above, the user-defined size detection allowable range is set to be wide (relative to the standard), so even if such an error occurs, the set paper size corresponds to the detected paper size. It can be properly identified as being.

例えば設定用紙サイズが図4に示す「自作レター」の用紙幅について、ユーザは220mmであると認識して用紙サイズテーブル300において登録したが、裁断誤差で実際の「自作レター」の用紙幅が216mmであったとする。このとき検出用紙サイズが216.0mmであり、「定型サイズ」の検出許容範囲±2mmではあった場合、検出用紙サイズと設定用紙サイズが同一と見なせないと判定され、印刷がキャンセルされてしまう。   For example, the user recognizes that the paper width of the “original letter” shown in FIG. 4 is 220 mm and registers it in the paper size table 300, but the actual paper width of the “original letter” is 216 mm due to a cutting error. Suppose that At this time, if the detected paper size is 216.0 mm and the “standard size” detection allowable range is ± 2 mm, it is determined that the detected paper size cannot be regarded as the same as the set paper size, and printing is canceled. .

本実施形態では、ユーザ定義サイズに対して検出許容範囲が±4mmに設定されているため、上記の場合でも、検出用紙サイズと設定用紙サイズが同一と見なされ、印刷が実行される。   In this embodiment, since the allowable detection range is set to ± 4 mm with respect to the user-defined size, even in the above case, the detected paper size and the set paper size are regarded as the same, and printing is executed.

なお、以上の実施形態において、図5のS1006では、設定用紙サイズ(即ち図4の用紙サイズテーブル300における用紙幅302、用紙長303)に応じた大きさの画像を印刷した。しかし、上記のようにユーザ定義サイズの場合、実際の印刷用紙のサイズと、図4の用紙サイズテーブル300における用紙幅302、用紙長303の誤差がある場合がある。そこで、設定用紙サイズがユーザ定義サイズの場合には、S1006において、センサにより検出された検出用紙サイズ(用紙幅、用紙長)に応じて印刷対象の画像の大きさを決めてもよい。さらに、例えば検出用紙サイズと設定用紙サイズの中間値を取るなど、両者を組み合わせて印刷対象の画像の大きさを決めてもよい。   In the above embodiment, in S1006 of FIG. 5, an image having a size corresponding to the set paper size (that is, the paper width 302 and the paper length 303 in the paper size table 300 of FIG. 4) is printed. However, in the case of the user-defined size as described above, there may be an error between the actual print paper size and the paper width 302 and paper length 303 in the paper size table 300 of FIG. Therefore, if the set paper size is a user-defined size, the size of the image to be printed may be determined in S1006 according to the detected paper size (paper width, paper length) detected by the sensor. Furthermore, the size of the image to be printed may be determined by combining both, for example, taking an intermediate value between the detected paper size and the set paper size.

また、上記の実施形態では、印刷設定としてユーザ定義サイズの名称が設定され、その名称が印刷装置100において登録されている例を示した。しかしこれに限らず、印刷設定として用紙サイズが数値で記述され、その数値が印刷ジョブとともに印刷装置100に送信されてもよい。この場合、印刷装置100は、図4に示したようにユーザ定義用紙が登録されていなくても、その数値を設定用紙サイズとして取得することができる。またこの場合、その数値に対する検出許容範囲内に検出用紙サイズが含まれているか否かが、図5のS2004における、設定用紙サイズと検出用紙サイズが同一であるか否の判定の基準となる。上記の数値は、例えば印刷ジョブを送信するデバイスが備える表示画面においてユーザが指定することにより決定される。   In the above-described embodiment, an example in which a user-defined size name is set as the print setting and the name is registered in the printing apparatus 100 has been described. However, the present invention is not limited thereto, and the paper size may be described as a numerical value as a print setting, and the numerical value may be transmitted to the printing apparatus 100 together with the print job. In this case, the printing apparatus 100 can acquire the numerical value as the set paper size even when the user-defined paper is not registered as shown in FIG. In this case, whether or not the detected paper size is included within the detection allowable range for the numerical value is a criterion for determining whether or not the set paper size and the detected paper size are the same in S2004 of FIG. The above numerical values are determined, for example, by a user specifying on a display screen provided in a device that transmits a print job.

なお、上記の実施形態においては、インタフェースを介して接続されたスマートデバイス208からの印刷ジョブの場合を説明したが、電話回線やネットワーク回線により接続された、遠隔地からの印刷であってもよい。印刷ジョブを発行する装置はスマートデバイス208として説明したが、スマートデバイス208の代わりに、ホストコンピュータ、デジタルテレビ等の装置であってもよい。また、ユーザが操作する装置から直接印刷ジョブを受け取る形態であっても、プリントサーバーやクラウドサービス等の中間装置を通して印刷ジョブを受け取る形態であってもよい。   In the above-described embodiment, the case of a print job from the smart device 208 connected via the interface has been described. However, printing from a remote place connected via a telephone line or a network line may be used. . Although the device that issues a print job has been described as the smart device 208, a device such as a host computer or a digital TV may be used instead of the smart device 208. Further, the print job may be received directly from a device operated by the user, or the print job may be received through an intermediate device such as a print server or a cloud service.

また、以上の実施形態では、印刷装置100の外部装置から受信された印刷ジョブに基づく印刷について説明したが、印刷装置100においてコピー機能が実行されたときに、用紙センサ118の検出結果に基づいて印刷用紙のサイズを特定する場合であってもよい。また、例えばメモリカードスロット222に装着されたメモリカード223に記憶されている画像を、ユーザが操作パネル218において設定した印刷設定に従って印刷するときに、上記の印刷用紙サイズの判定処理を実行してもよい。また、このように印刷装置100においてユーザが指定した印刷設定に従って印刷を行う場合、メモリカード223のような外部メモリに限らず、印刷装置100が備える内部メモリに記憶されている画像を印刷する場合であってもよい。また、印刷装置100とネットワークを介して接続されたサーバ等の外部装置に格納されている画像を印刷する場合であってもよい。   In the above embodiment, printing based on a print job received from an external device of the printing apparatus 100 has been described. However, when a copy function is executed in the printing apparatus 100, based on the detection result of the paper sensor 118. It may be a case where the size of the printing paper is specified. For example, when the image stored in the memory card 223 inserted in the memory card slot 222 is printed according to the print settings set by the user on the operation panel 218, the above-described print paper size determination process is executed. Also good. In addition, when printing is performed according to print settings designated by the user in the printing apparatus 100 as described above, not only an external memory such as the memory card 223 but also an image stored in the internal memory of the printing apparatus 100 is printed. It may be. Alternatively, an image stored in an external device such as a server connected to the printing apparatus 100 via a network may be printed.

さらに、以上の実施形態では印刷装置100の用紙センサ118が用紙の幅、長さを検出する例を示したが、これに限らず、センサにより用紙の幅、長さのいずれか一方が検出される場合であってもよい。   In the above embodiment, the paper sensor 118 of the printing apparatus 100 detects the paper width and length. However, the present invention is not limited to this, and either the paper width or the length is detected by the sensor. It may be the case.

また、以上の実施形態では、図5、図6で示した用紙サイズの判定処理を印刷装置100が備えるCPU201が印刷制御装置として実行する例を示した。しかしこれに限らず、印刷装置100に接続され当該印刷装置に印刷を実行させるホストコンピュータやサーバ等の情報処理装置が本実施形態の印刷制御装置として動作することで、本実施形態の処理が実行される場合であってもよい。   In the above embodiment, the example in which the CPU 201 included in the printing apparatus 100 executes the paper size determination process illustrated in FIGS. 5 and 6 as the print control apparatus has been described. However, the present invention is not limited to this, and an information processing apparatus such as a host computer or server that is connected to the printing apparatus 100 and causes the printing apparatus to execute printing operates as the print control apparatus of the present embodiment, so that the processing of the present embodiment is executed. It may be the case.

具体的には、ホストコンピュータやサーバ、スマートデバイスが印刷装置100に印刷ジョブを送信するときに、図5におけるS1004〜S1007の処理を実行する。即ち、これらの装置が印刷装置100に印刷ジョブを送信するときに、印刷装置100の用紙センサ118により検出された印刷用紙の幅、長さを検出用紙サイズとして取得する。そして、その検出用紙サイズと印刷設定における設定用紙サイズを比較し、両者が同一とみなせるか判定する。   Specifically, when the host computer, server, or smart device transmits a print job to the printing apparatus 100, the processing of S1004 to S1007 in FIG. That is, when these apparatuses transmit a print job to the printing apparatus 100, the width and length of the printing sheet detected by the sheet sensor 118 of the printing apparatus 100 are acquired as the detected sheet size. Then, the detected paper size is compared with the set paper size in the print setting, and it is determined whether or not both can be regarded as the same.

両者が同一と見なせると判定された場合、ホストコンピュータやサーバ、スマートデバイスが備えるメモリ上において、上記決定された用紙サイズに対応する大きさの印刷対象の画像を展開する。そして展開された画像を印刷装置100に印刷ジョブとして送信して印刷装置100に印刷を実行させる。具体的には、印刷装置100のCPU201の制御により、ホストコンピュータやサーバ、スマートデバイスから受信した画像を印刷装置100内の印刷機構が印刷用紙に印刷する。   If it is determined that both can be regarded as the same, an image to be printed having a size corresponding to the determined paper size is developed on a memory included in the host computer, server, or smart device. Then, the developed image is transmitted as a print job to the printing apparatus 100 to cause the printing apparatus 100 to execute printing. Specifically, under the control of the CPU 201 of the printing apparatus 100, the printing mechanism in the printing apparatus 100 prints an image received from the host computer, server, or smart device on printing paper.

なお両者が同一と見なせると判定されなかった場合、S1007において、ホストコンピュータやサーバ、スマートデバイスが印刷ジョブの送信をキャンセルし、エラーを発行する。具体的には、印刷がキャンセルされたことを示す表示や、また印刷装置100にセットされている印刷用紙のサイズと設定用紙サイズの両方または一方をユーザに確認させるための表示を行う。ホストコンピュータにおいてエラーを表示する場合、ホストコンピュータが備える表示装置、またはホストコンピュータに接続されている外部の表示装置に表示を行う。またサーバにおいてS1007における印刷のキャンセルとエラー表示を行う場合、サーバに対して印刷ジョブを送信したクライアント装置にエラー表示の内容を通知し、クライアント装置の内部または外部の表示装置にエラー表示が行われる。   If it is not determined that the two can be regarded as the same, the host computer, the server, and the smart device cancel transmission of the print job and issue an error in S1007. Specifically, a display indicating that the printing has been canceled and a display for allowing the user to confirm both or one of the size of the print paper set in the printing apparatus 100 and the set paper size are performed. When an error is displayed on the host computer, the error is displayed on a display device included in the host computer or an external display device connected to the host computer. When the server cancels printing and displays an error in step S1007, the client device that transmitted the print job to the server is notified of the details of the error display, and the error is displayed on a display device inside or outside the client device. .

またホストコンピュータやサーバ、スマートデバイスにおいて本実施形態の処理を行う場合の別の例として、用紙センサ118による検出結果による用紙サイズの決定をホストコンピュータやサーバ、スマートデバイスにおいて行う。そして、印刷対象の画像の作成については印刷装置100のCPU201により実行される場合でもよい。この場合、例えばホストコンピュータやサーバ、スマートデバイスにおいて決定された用紙サイズが印刷設定の用紙サイズとして印刷対象のデータとともに印刷装置100に送信される。そして、印刷装置100のCPU201が、上記のように受信した印刷対象のデータに基づく画像を、上記のように受信した印刷設定としての用紙サイズに応じて変倍し、印刷機構に印刷を実行させる。なお、印刷装置100と、ホストコンピュータ、サーバ、スマートデバイス等の装置とにおける処理の分担については、他にも種々の構成を本実施形態に適用することができる。   As another example when the processing of this embodiment is performed in the host computer, server, or smart device, the determination of the paper size based on the detection result by the paper sensor 118 is performed in the host computer, server, or smart device. The creation of the image to be printed may be executed by the CPU 201 of the printing apparatus 100. In this case, for example, the paper size determined in the host computer, server, or smart device is transmitted to the printing apparatus 100 together with the data to be printed as the paper size of the print setting. Then, the CPU 201 of the printing apparatus 100 scales the image based on the print target data received as described above according to the paper size as the print setting received as described above, and causes the printing mechanism to execute printing. . Note that various other configurations can be applied to the present embodiment regarding the sharing of processing between the printing apparatus 100 and apparatuses such as a host computer, a server, and a smart device.

また以上の実施形態では、印刷装置により画像が印刷される印刷媒体の例として印刷用紙を例に説明したが、これに限らず、OHPシートであってもよい。また印刷用紙のような矩形の印刷媒体に限らず、CDやDVD等の円盤状の記録メディアであってもよい。   In the above embodiment, the printing paper has been described as an example of a printing medium on which an image is printed by the printing apparatus. However, the present invention is not limited to this, and an OHP sheet may be used. Further, the recording medium is not limited to a rectangular printing medium such as printing paper, and may be a disc-shaped recording medium such as a CD or a DVD.

なお、本実施形態の機能は以下の構成によっても実現することができる。つまり、本実施形態の処理を行うためのプログラムコードをシステムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)がプログラムコードを実行することによっても達成される。この場合、記憶媒体から読み出されたプログラムコード自体が上述した実施形態の機能を実現することとなり、またそのプログラムコードを記憶した記憶媒体も本実施形態の機能を実現することになる。   Note that the functions of this embodiment can also be realized by the following configuration. That is, it is also achieved by supplying a program code for performing the processing of the present embodiment to a system or apparatus, and a computer (or CPU or MPU) of the system or apparatus executing the program code. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code also realizes the function of the present embodiment.

また、本実施形態の機能を実現するためのプログラムコードを、1つのコンピュータ(CPU、MPU)で実行する場合であってもよいし、複数のコンピュータが協働することによって実行する場合であってもよい。さらに、プログラムコードをコンピュータが実行する場合であってもよいし、プログラムコードの機能を実現するための回路等のハードウェアを設けてもよい。またはプログラムコードの一部をハードウェアで実現し、残りの部分をコンピュータが実行する場合であってもよい。   Further, the program code for realizing the function of the present embodiment may be executed by one computer (CPU, MPU), or may be executed by a plurality of computers cooperating. Also good. Further, the program code may be executed by a computer, or hardware such as a circuit for realizing the function of the program code may be provided. Alternatively, a part of the program code may be realized by hardware and the remaining part may be executed by a computer.

100 印刷装置
201 CPU
203 プログラムメモリ
204 データメモリ
205 ワークメモリ
100 Printing apparatus 201 CPU
203 Program memory 204 Data memory 205 Work memory

Claims (7)

印刷媒体のサイズをセンサが検出することにより得られた当該印刷媒体のサイズの候補を取得する取得手段と、
前記取得手段により取得された候補に対応する第1のサイズと、印刷対象のデータに対する印刷設定として設定されている印刷媒体の第2のサイズとの差が所定の差以下であるか判定する判定手段と、
前記差が前記所定の差以下であると前記判定手段により判定された場合、当該第1のサイズと当該第2のサイズの少なくとも一方に基づく大きさの前記印刷対象のデータに基づく画像を印刷手段に印刷させ、当該差が当該所定の差より大きいと前記判定手段により判定された場合、前記印刷媒体に対して当該印刷対象のデータに基づく画像が印刷されないように制御する印刷制御手段と、を有し、
前記判定手段は、前記第2のサイズがユーザにより定義されたユーザ定義サイズである場合に当該第2のサイズが定型サイズである場合に比べて前記所定の差が大きくなるように、前記判定を行うことを特徴とする印刷制御装置。
An acquisition means for acquiring a candidate for the size of the print medium obtained by the sensor detecting the size of the print medium;
Determining whether the difference between the first size corresponding to the candidate acquired by the acquisition means and the second size of the print medium set as the print setting for the print target data is equal to or smaller than a predetermined difference Means,
When the determination unit determines that the difference is equal to or less than the predetermined difference, an image based on the print target data having a size based on at least one of the first size and the second size is printed. Printing control means for controlling so that an image based on the data to be printed is not printed on the print medium when the determination means determines that the difference is greater than the predetermined difference. Have
The determination means performs the determination so that the predetermined difference is larger when the second size is a user-defined size defined by a user than when the second size is a standard size. A printing control apparatus characterized in that:
前記印刷制御手段は、前記第2のサイズが前記定型サイズである場合、当該第2のサイズに対応する大きさの画像を前記印刷手段に印刷させ、前記第2のサイズが前記ユーザ定義サイズである場合、前記第1のサイズに対応する大きさの画像を印刷させることを特徴とする請求項1に記載の印刷制御装置。   When the second size is the standard size, the print control unit causes the printing unit to print an image having a size corresponding to the second size, and the second size is the user-defined size. The print control apparatus according to claim 1, wherein an image having a size corresponding to the first size is printed in some cases. 前記印刷媒体に対して前記画像が印刷されないように前記印刷制御装置により制御が行われる場合、当該制御の実行をユーザに通知する通知手段を有することを特徴とする請求項1または2に記載の印刷制御装置。   The apparatus according to claim 1, further comprising a notification unit configured to notify a user of execution of the control when the print control apparatus performs control so that the image is not printed on the print medium. Print control device. 前記印刷手段は、印刷媒体を印刷ヘッドに対応する位置に搬送して当該搬送された印刷媒体に対して印刷ヘッドにより印刷を実行し、前記センサは当該印刷ヘッドに対応する位置に設けられ、印刷媒体が搬送されたときに当該印刷媒体のサイズを検出することを特徴とする請求項1乃至3のいずれか1項に記載の印刷制御装置。   The printing unit conveys the print medium to a position corresponding to the print head, and executes printing on the conveyed print medium by the print head, and the sensor is provided at a position corresponding to the print head. The print control apparatus according to claim 1, wherein the size of the print medium is detected when the medium is conveyed. 前記センサは印刷媒体の幅を検出し、前記取得手段は、当該検出された当該印刷媒体の幅に基づく当該印刷媒体のサイズの候補を取得することを特徴とする請求項1乃至4のいずれか1項に記載の印刷制御装置。   5. The sensor according to claim 1, wherein the sensor detects a width of the print medium, and the acquisition unit acquires a candidate for the size of the print medium based on the detected width of the print medium. The printing control apparatus according to item 1. 印刷媒体のサイズをセンサが検出することにより得られた当該印刷媒体のサイズの候補を取得する取得工程と、
前記取得工程において取得された候補に対応する第1のサイズと、印刷対象のデータに対する印刷設定として設定されている印刷媒体の第2のサイズとの差が所定の差以下であるか判定する判定工程と、
前記差が前記所定の差以下であると前記判定工程において判定された場合、当該第1のサイズと当該第2のサイズの少なくとも一方に基づく大きさの前記印刷対象のデータに基づく画像を印刷手段に印刷させ、当該差が当該所定の差より大きいと前記判定工程において判定された場合、前記印刷媒体に対して当該印刷対象のデータに基づく画像が印刷されないように制御する印刷制御工程と、を有し、
前記判定工程では、前記第2のサイズがユーザにより定義されたユーザ定義サイズである場合に当該第2のサイズが定型サイズである場合に比べて前記所定の差が大きくなるように、前記判定が行われることを特徴とする印刷制御装置。
An acquisition step of acquiring candidates for the size of the print medium obtained by the sensor detecting the size of the print medium;
Determining whether the difference between the first size corresponding to the candidate acquired in the acquisition step and the second size of the print medium set as the print setting for the print target data is equal to or less than a predetermined difference Process,
When it is determined in the determination step that the difference is equal to or less than the predetermined difference, an image based on the print target data having a size based on at least one of the first size and the second size is printed. A printing control step for controlling the printing medium so that an image based on the data to be printed is not printed on the printing medium when it is determined in the determination step that the difference is larger than the predetermined difference. Have
In the determination step, when the second size is a user-defined size defined by a user, the determination is performed so that the predetermined difference is larger than when the second size is a standard size. A printing control apparatus characterized by being performed.
請求項6に記載の印刷制御方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the printing control method according to claim 6.
JP2013137054A 2013-06-28 2013-06-28 Print control apparatus, print control method and program Pending JP2015009479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013137054A JP2015009479A (en) 2013-06-28 2013-06-28 Print control apparatus, print control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013137054A JP2015009479A (en) 2013-06-28 2013-06-28 Print control apparatus, print control method and program

Publications (1)

Publication Number Publication Date
JP2015009479A true JP2015009479A (en) 2015-01-19

Family

ID=52303090

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013137054A Pending JP2015009479A (en) 2013-06-28 2013-06-28 Print control apparatus, print control method and program

Country Status (1)

Country Link
JP (1) JP2015009479A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017085526A (en) * 2015-10-30 2017-05-18 京セラドキュメントソリューションズ株式会社 Image reading device and image forming apparatus
JP2021138004A (en) * 2020-03-03 2021-09-16 キヤノン株式会社 Recording apparatus and method for determining width of recording medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017085526A (en) * 2015-10-30 2017-05-18 京セラドキュメントソリューションズ株式会社 Image reading device and image forming apparatus
JP2021138004A (en) * 2020-03-03 2021-09-16 キヤノン株式会社 Recording apparatus and method for determining width of recording medium
JP7483411B2 (en) 2020-03-03 2024-05-15 キヤノン株式会社 Recording device and method for determining width of recording medium

Similar Documents

Publication Publication Date Title
US10988335B2 (en) Transporting apparatus, program, and control method of transporting apparatus
JP6238598B2 (en) Print control apparatus, print control method, and program
US9239977B2 (en) Print control apparatus causing a print unit to print an image
US9211731B2 (en) Print control device, print control method, and storage medium
JP2013233772A (en) Inspection system, print device, control method thereof, and program
JP6242094B2 (en) Print control apparatus, print control method, and program
US20150269461A1 (en) Printing apparatus, printing control apparatus, printing system, control method of printing apparatus, and storage medium
US9128651B2 (en) Printing apparatus, method of controlling printing apparatus, and storage medium
US10694049B2 (en) Management system specifying a support candidate among persons capable of handling errors occurring in electronic devices
US9132668B2 (en) Print control apparatus, print control method, and program
JP2015009479A (en) Print control apparatus, print control method and program
JP6128994B2 (en) Print control apparatus, print control method, and program
US9527317B2 (en) Image forming apparatus
JP6128995B2 (en) Print control apparatus, print control method, and program
JP6676674B2 (en) PRINTING DEVICE, PRINTING DEVICE CONTROL METHOD, AND PROGRAM
US11991320B2 (en) Image forming device, information processing device, display system, and display method
JP2020098978A (en) Imaging apparatus, imaging system, and program
JP2016196354A (en) Image forming apparatus and control method thereof, and program
JP2007228041A (en) Original carrying apparatus, image processing apparatus, and image processing system
JP2011211526A (en) Original reader, image forming apparatus