[go: up one dir, main page]

JP7404913B2 - Printing device and method of controlling the printing device - Google Patents

Printing device and method of controlling the printing device Download PDF

Info

Publication number
JP7404913B2
JP7404913B2 JP2020021328A JP2020021328A JP7404913B2 JP 7404913 B2 JP7404913 B2 JP 7404913B2 JP 2020021328 A JP2020021328 A JP 2020021328A JP 2020021328 A JP2020021328 A JP 2020021328A JP 7404913 B2 JP7404913 B2 JP 7404913B2
Authority
JP
Japan
Prior art keywords
print medium
printing
conveyance
detection units
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.)
Active
Application number
JP2020021328A
Other languages
Japanese (ja)
Other versions
JP2021127193A (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 JP2020021328A priority Critical patent/JP7404913B2/en
Priority to CN202110180183.XA priority patent/CN113247654B/en
Publication of JP2021127193A publication Critical patent/JP2021127193A/en
Application granted granted Critical
Publication of JP7404913B2 publication Critical patent/JP7404913B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65HHANDLING THIN OR FILAMENTARY MATERIAL, e.g. SHEETS, WEBS, CABLES
    • B65H9/00Registering, e.g. orientating, articles; Devices therefor
    • B65H9/14Retarding or controlling the forward movement of articles as they approach stops
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65HHANDLING THIN OR FILAMENTARY MATERIAL, e.g. SHEETS, WEBS, CABLES
    • B65H5/00Feeding articles separated from piles; Feeding articles to machines
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65HHANDLING THIN OR FILAMENTARY MATERIAL, e.g. SHEETS, WEBS, CABLES
    • B65H2801/00Application field
    • B65H2801/03Image reproduction devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Controlling Sheets Or Webs (AREA)
  • Registering Or Overturning Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)

Description

この発明は、印刷装置、及び印刷装置の制御方法に関する。 The present invention relates to a printing device and a method of controlling the printing device.

銀行の通帳等の印刷媒体への印刷を行う印刷装置についての研究、開発が行われている。 Research and development are being conducted on printing devices that print on print media such as bank passbooks.

これに関し、印刷媒体の向きが搬送方向に対して斜めに傾いていたとしても、印刷媒体の搬送中において、突当部材に搬送媒体を突き当てることによって、搬送媒体の向きを搬送方向と平行となるように矯正する印刷装置が知られている(特許文献1参照)。ここで、印刷媒体の向きは、例えば、印刷媒体が有する辺のうち搬送方向と直交する方向と交わる辺と、搬送方向とが成す鋭角の角度によって表される。印刷媒体の向きが搬送方向と平行である場合、当該角度は、0°である。なお、本明細書では、説明の便宜上、印刷媒体の向きが搬送方向に対して斜めに傾いてしまうこと、すなわち、当該角度が0°よりも大きくなってしまうことを、スキューと称して説明する。 Regarding this, even if the orientation of the print medium is oblique to the transport direction, by abutting the transport medium against the abutting member while the print medium is transporting, the orientation of the transport medium can be made parallel to the transport direction. There is a known printing device that corrects the image so as to make it look like this (see Patent Document 1). Here, the orientation of the print medium is expressed, for example, by an acute angle formed by a side of the print medium that intersects with a direction perpendicular to the transport direction and the transport direction. When the orientation of the print medium is parallel to the transport direction, the angle is 0°. Note that in this specification, for convenience of explanation, a situation in which the orientation of the print medium is tilted obliquely with respect to the transport direction, that is, a situation in which the angle becomes larger than 0° is referred to as skew. .

特開2001-039584号公報Japanese Patent Application Publication No. 2001-039584

しかしながら、特許文献1に記載されたような印刷装置では、突当部材に搬送媒体を突き立てて搬送媒体の向きを矯正したとしても、その後、搬送媒体の搬送の繰り返しにより、搬送媒体の搬送中にスキューが再び生じることがある。このような場合、当該印刷装置では、当該印刷装置により印刷が行われる領域から印刷媒体の少なくとも一部が外れてしまい、印刷媒体への画像の印刷に失敗してしまうことがある。 However, in the printing apparatus described in Patent Document 1, even if the direction of the conveyed medium is corrected by pushing the conveyed medium against the abutting member, the conveyance medium is repeatedly conveyed after that, so that the conveyance medium is not conveyed. skew may occur again. In such a case, in the printing device, at least a portion of the print medium may come off the area where printing is performed by the printing device, and printing of an image on the print medium may fail.

上記課題を解決するために本発明の一態様は、印刷媒体が搬送される搬送路の上流から下流に向かって前記印刷媒体が搬送される第1搬送方向への前記印刷媒体の搬送と、前記搬送路の下流から上流に向かって前記印刷媒体が搬送される第2搬送方向への前記印刷媒体の搬送とを行う搬送部と、前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断位置と、前記搬送路に沿った前記印刷媒体の搬送を遮断しない非遮断位置とのそれぞれに移動可能な遮断部材と、前記搬送路と交わる方向に互いに所定間隔離れて設けられており、前記搬送路に沿って搬送される前記印刷媒体を検出可能な複数の検出部と、制御部と、を備え、前記制御部は、前記複数の前記検出部のうち、前記遮断位置にある前記遮断部材により前記印刷媒体の搬送が遮断された場合において前記印刷媒体を検出した2以上の前記検出部を特定し、前記搬送部により前記印刷媒体を前記第1搬送方向又は前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体の検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の端部の位置を特定し、特定した前記印刷媒体の端部の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、印刷装置である。 In order to solve the above problems, one aspect of the present invention is to transport the print medium in a first transport direction in which the print medium is transported from upstream to downstream of a transport path along which the print medium is transported; a conveyance unit that conveys the print medium in a second conveyance direction in which the print medium is conveyed from downstream to upstream of the conveyance path; and a blocking position that blocks conveyance of the print medium along the conveyance path. and a non-blocking position where the conveyance of the printing medium along the conveyance path is not interrupted. a plurality of detection units capable of detecting the print medium conveyed along the line; identifying two or more of the detection units that have detected the print medium when conveyance of the print medium is interrupted; and conveying the print medium in the first conveyance direction or the second conveyance direction by the conveyance unit; Among the two or more detection units that have been detected, the detection state of the print medium may change at the edge of the print medium among the positions of the print medium, depending on the number of the detection units whose detection state of the print medium has changed during the conveyance of the print medium. The printing apparatus specifies a position and sets a printable range of the print medium based on the specified position of the edge of the print medium.

また、本発明の他の態様は、印刷媒体が搬送される搬送路の上流から下流に向かって前記印刷媒体が搬送される第1搬送方向への前記印刷媒体の搬送と、前記搬送路の下流から上流に向かって前記印刷媒体が搬送される第2搬送方向への前記印刷媒体の搬送とを行う搬送部と、前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断位置と、前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断しない非遮断位置とのそれぞれに移動可能な遮断部材と、前記搬送路と交わる方向に互いに所定間隔離れて設けられており、前記搬送路に沿って搬送される前記印刷媒体を検出可能な複数の検出部と、備える印刷装置の制御方法であって、前記複数の前記検出部のうち、前記遮断位置にある前記遮断部材により前記印刷媒体の搬送が遮断された場合において前記印刷媒体を検出した2以上の前記検出部を特定し、前記搬送部により前記印刷媒体を前記第1搬送方向又は前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体の検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の端部の位置を特定し、特定した前記印刷媒体の端部の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、印刷装置の制御方法である。 Another aspect of the present invention is to transport the print medium in a first transport direction in which the print medium is transported from upstream to downstream of the transport path, and downstream of the transport path. a conveyance unit that conveys the print medium in a second conveyance direction in which the print medium is conveyed upstream from the conveyance path; a blocking position that blocks conveyance of the print medium along the conveyance path; A blocking member movable to a non-blocking position that blocks the conveyance of the print medium along the conveyance path, and a blocking member that is provided at a predetermined distance from each other in a direction intersecting the conveyance path, A method for controlling a printing apparatus comprising: a plurality of detection units capable of detecting the print medium conveyed by the plurality of detection units, the detection unit configured to detect the conveyance of the print medium by the blocking member in the blocking position; identify two or more of the detection units that have detected the print medium when The position of the edge of the print medium among the positions of the print medium is specified according to the number of the detection units whose detection state of the print medium has changed during conveyance of the print medium among the detection units of the print medium. , a control method for a printing device, in which a printable range of the print medium is set based on a specified position of an end of the print medium.

実施形態に係る印刷装置10の外観の一例を示す斜視図である。FIG. 1 is a perspective view showing an example of the appearance of a printing device 10 according to an embodiment. 印刷装置本体11の一例を示す斜視図である。1 is a perspective view showing an example of a printing device main body 11. FIG. 印刷装置本体11の要部構成の一例を示す上面図である。FIG. 2 is a top view showing an example of the configuration of main parts of the printing apparatus main body 11. FIG. 図1に示した印刷装置本体11の側断面図である。2 is a side sectional view of the printing apparatus main body 11 shown in FIG. 1. FIG. 印刷装置10の制御系の一例を示す図である。1 is a diagram illustrating an example of a control system of a printing apparatus 10. FIG. 印刷装置10が印刷媒体100へ画像を印刷する処理の流れの一例を示す図である。3 is a diagram illustrating an example of a process flow in which the printing device 10 prints an image on the print medium 100. FIG. ステップS140において搬送が停止された状態の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。7 is a diagram illustrating an example of the positional relationship between the print medium 100 whose conveyance is stopped in step S140 and the print medium detection unit 42. FIG. スキューが生じている場合において第1搬送方向に搬送中の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。7 is a diagram illustrating an example of the positional relationship between the print medium 100 being conveyed in the first conveyance direction and the print medium detection unit 42 when a skew occurs. FIG. 印刷装置10が印刷媒体100へ画像を印刷する処理の流れの他の例を示す図である。7 is a diagram illustrating another example of the flow of processing in which the printing device 10 prints an image on the print medium 100. FIG. スキューが生じている場合において第2搬送方向に搬送中の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。FIG. 7 is a diagram illustrating an example of the positional relationship between the print medium 100 being conveyed in the second conveyance direction and the print medium detection unit 42 when a skew occurs.

<実施形態>
以下、本発明の実施形態について、図面を参照して説明する。
<Embodiment>
Embodiments of the present invention will be described below with reference to the drawings.

なお、以下では、図中における方向を、三次元座標系TCを用いて説明する。三次元座標系TCは、三次元座標系TCが描かれた各図における方向を示す三次元直交座標系である。そして、以下では、説明の便宜上、三次元座標系TCにおけるX軸を、単にX軸と称して説明する。また、以下では、説明の便宜上、三次元座標系TCにおけるY軸を、単にY軸と称して説明する。また、以下では、説明の便宜上、三次元座標系TCにおけるZ軸を、単にZ軸と称して説明する。 Note that directions in the figures will be explained below using a three-dimensional coordinate system TC. The three-dimensional coordinate system TC is a three-dimensional orthogonal coordinate system that indicates the direction in each drawing in which the three-dimensional coordinate system TC is drawn. In the following, for convenience of explanation, the X-axis in the three-dimensional coordinate system TC will be simply referred to as the X-axis. Furthermore, for convenience of explanation, the Y-axis in the three-dimensional coordinate system TC will be simply referred to as the Y-axis. Further, for convenience of explanation, the Z axis in the three-dimensional coordinate system TC will be simply referred to as the Z axis in the following description.

また、以下では、一例として、Z軸の負方向と重力方向とが一致している場合について説明する。そして、以下では、説明の便宜上、Z軸の正方向を上方向又は単に上と称して説明する。また、以下では、説明の便宜上、Z軸の負方向を下方向又は単に下と称して説明する。また、以下では、説明の便宜上、Y軸の正方向を左方向又は単に左と称して説明する。また、以下では、説明の便宜上、Y軸の負方向を右方向又は単に右と称して説明する。また、以下では、説明の便宜上、X軸の正方向を前方向又は単に前と称して説明する。また、以下では、説明の便宜上、X軸の負方向を後方向又は単に後と称して説明する。 Further, below, as an example, a case will be described in which the negative direction of the Z-axis and the direction of gravity match. In the following, for convenience of explanation, the positive direction of the Z-axis will be referred to as an upward direction or simply an upward direction. Furthermore, for convenience of explanation, the negative direction of the Z-axis will be referred to as a downward direction or simply a downward direction in the following description. Further, for convenience of explanation, the positive direction of the Y-axis will be referred to as the left direction or simply the left in the following description. Furthermore, for convenience of explanation, the negative direction of the Y-axis will be referred to as the right direction or simply the right in the following description. Furthermore, for convenience of explanation, the positive direction of the X-axis will be referred to as the front direction or simply the front. Further, for convenience of explanation, the negative direction of the X-axis will be referred to as the rear direction or simply rear in the following description.

<印刷装置の構成>
以下、図1~図4を参照し、印刷装置10の構成について説明する。図1は、実施形態に係る印刷装置10の外観の一例を示す斜視図である。図2は、印刷装置本体11の一例を示す斜視図である。図3は、印刷装置本体11の要部構成の一例を示す上面図である。図4は、図1に示した印刷装置本体11の側断面図である。
<Printing device configuration>
The configuration of the printing apparatus 10 will be described below with reference to FIGS. 1 to 4. FIG. 1 is a perspective view showing an example of the appearance of a printing apparatus 10 according to an embodiment. FIG. 2 is a perspective view showing an example of the printing apparatus main body 11. As shown in FIG. FIG. 3 is a top view showing an example of the configuration of main parts of the printing apparatus main body 11. As shown in FIG. FIG. 4 is a side sectional view of the printing apparatus main body 11 shown in FIG.

図1~図4に示す印刷装置10は、ドットインパクトプリンターである。印刷装置10は、複数のピンを突出させて印刷媒体100に文字等の画像を印刷するヘッド18を備える。なお、これら複数のピンのそれぞれは、ワイヤーと称される場合がある。 The printing device 10 shown in FIGS. 1 to 4 is a dot impact printer. The printing device 10 includes a head 18 that prints images such as characters on the print medium 100 by protruding a plurality of pins. Note that each of the plurality of pins may be referred to as a wire.

印刷装置10は、ヘッド18が備える複数のピンの一部又は全部を突出させ、突出させた1本以上のピンを、インクリボンを介して印刷媒体100に押し付ける。これにより、印刷装置10は、印刷媒体100上にドットを形成し、印刷媒体100上に文字等の画像を印刷する。 The printing device 10 causes some or all of the plurality of pins included in the head 18 to protrude, and presses one or more of the protruded pins against the print medium 100 via the ink ribbon. Thereby, the printing device 10 forms dots on the print medium 100 and prints images such as characters on the print medium 100.

ここで、印刷媒体100は、例えば、文字等の画像が印刷されるシートである。印刷媒体100は、所定長さに切断されたカットシートであってもよく、複数枚が連接された連続シートであってもよい。カットシートは、例えば、単票紙、単票複写紙等の普通紙であってもよく、通帳、葉書、封筒等であってもよく、所定長さに切断された他のシートであってもよい。連続シートは、例えば、連続紙、連続複写紙等である。以下では、一例として、印刷媒体100が、通帳である場合について説明する。この場合、印刷媒体100は、複数枚の記録用紙が綴じられて構成され、記録用紙の記録面を開いた場合に底面となる面において、磁気ストライプ101が設けられている。 Here, the print medium 100 is, for example, a sheet on which images such as characters are printed. The print medium 100 may be a cut sheet cut to a predetermined length, or may be a continuous sheet in which a plurality of sheets are connected. The cut sheet may be, for example, plain paper such as cut paper or cut copy paper, or may be a bankbook, postcard, envelope, etc., or may be any other sheet cut to a predetermined length. good. The continuous sheet is, for example, continuous paper, continuous copy paper, or the like. Below, as an example, a case where the print medium 100 is a bankbook will be described. In this case, the print medium 100 is configured by binding a plurality of sheets of recording paper, and a magnetic stripe 101 is provided on the recording surface of the recording paper, which becomes the bottom surface when opened.

印刷装置10は、例えば、図1~4において図示しないホストコンピューター200等の情報処理装置から受信した印刷データに基づいて、印刷媒体100に印刷を行う。 The printing device 10 prints on the print medium 100 based on print data received from an information processing device such as a host computer 200 (not shown in FIGS. 1 to 4), for example.

また、印刷装置10は、印刷装置本体11と、印刷装置本体11を覆う外装体である上部カバー12と、上部ハウジング13と、下部ハウジング14を備える。そして、上部ハウジング13及び下部ハウジング14の前面には、手差口15が開口している。 The printing apparatus 10 also includes a printing apparatus main body 11 , an upper cover 12 that is an exterior body covering the printing apparatus main body 11 , an upper housing 13 , and a lower housing 14 . A manual feed port 15 is opened on the front surface of the upper housing 13 and the lower housing 14.

印刷装置本体11は、右サイドフレーム16と左サイドフレーム17とを備えた図示しない本体フレームを有する。また、印刷装置本体11は、ヘッド18とキャリッジ19とを備えた印刷部20を有する。印刷部20は、ヘッド18及びキャリッジ19それぞれの動作により、印刷媒体100への印刷を行う。また、印刷装置本体11は、ヘッド18に対向する位置に設けられるプラテン21を備える。プラテン21は、ヘッド18に近づく方向とヘッド18から遠ざかる方向とのそれぞれに移動可能である。なお、図1~図4に示した例では、プラテン21がヘッド18に近づく方向が上方向と一致しており、プラテン21がヘッド18から遠ざかる方向は、下方向と一致している。 The printing apparatus main body 11 has a main body frame (not shown) including a right side frame 16 and a left side frame 17. Further, the printing apparatus main body 11 includes a printing section 20 including a head 18 and a carriage 19. The printing unit 20 prints on the print medium 100 by operating the head 18 and the carriage 19, respectively. The printing apparatus main body 11 also includes a platen 21 provided at a position facing the head 18. The platen 21 is movable in a direction toward the head 18 and a direction away from the head 18. In the examples shown in FIGS. 1 to 4, the direction in which the platen 21 approaches the head 18 corresponds to the upward direction, and the direction in which the platen 21 moves away from the head 18 corresponds to the downward direction.

また、印刷装置本体11は、第1搬送ローラー22と第2搬送ローラー23とを備えた第1搬送機構部24を有する。また、印刷装置本体11は、第3搬送ローラー25と第4搬送ローラー26とを備えた第2搬送機構部27を有する。また、印刷装置本体11は、第5搬送ローラー28と第6搬送ローラー29とを備えた第3搬送機構部30を有する。これら第1搬送機構部24、第2搬送機構部27、第3搬送機構部30は、印刷装置10の搬送部Hを構成する。 The printing apparatus main body 11 also includes a first conveyance mechanism section 24 that includes a first conveyance roller 22 and a second conveyance roller 23 . The printing apparatus main body 11 also includes a second transport mechanism section 27 that includes a third transport roller 25 and a fourth transport roller 26 . The printing apparatus main body 11 also includes a third transport mechanism section 30 that includes a fifth transport roller 28 and a sixth transport roller 29 . These first transport mechanism section 24, second transport mechanism section 27, and third transport mechanism section 30 constitute a transport section H of the printing apparatus 10.

搬送部Hは、第1搬送機構部24、第2搬送機構部27、第3搬送機構部30それぞれの動作により、第1搬送方向への印刷媒体100の搬送と、第2搬送方向への印刷媒体100の搬送とを行う。 The transport unit H transports the print medium 100 in the first transport direction and prints in the second transport direction by the respective operations of the first transport mechanism unit 24, the second transport mechanism unit 27, and the third transport mechanism unit 30. The medium 100 is transported.

第1搬送方向は、印刷媒体100が搬送される搬送路の上流から下流に向かって印刷媒体100が搬送される方向のことである。換言すると、第1搬送方向は、印刷媒体100が搬送される搬送路において印刷媒体100が搬送される2つの方向のうち、手差口15から印刷部20へと向かう方向のことである。更に換言すると、第1搬送方向は、後述するキャリッジ19の走査方向と直交する2つの方向のうち、手差口15から印刷部20へと向かう方向のことである。そこで、本実施形態では、当該搬送路のある第1部分が、当該搬送路の第1部分と異なる第2部分よりも手差口15に近い場合、当該搬送路において第1部分が第2部分よりも上流であると称し、搬送路において第2部分が第1部分よりも下流であると称して説明する。 The first conveyance direction is a direction in which the print medium 100 is conveyed from upstream to downstream of the conveyance path along which the print medium 100 is conveyed. In other words, the first conveyance direction is the direction from the manual feed port 15 toward the printing unit 20, of the two directions in which the print medium 100 is conveyed on the conveyance path along which the print medium 100 is conveyed. In other words, the first conveyance direction is the direction from the manual feed port 15 toward the printing section 20, of the two directions perpendicular to the scanning direction of the carriage 19, which will be described later. Therefore, in the present embodiment, when a certain first portion of the conveyance path is closer to the manual feed port 15 than a second portion different from the first portion of the conveyance path, the first portion is located at the second portion of the conveyance path. In the following description, the second portion will be referred to as being upstream of the first portion, and the second portion will be referred to as being downstream of the first portion in the conveyance path.

第2搬送方向は、印刷媒体100が搬送される搬送路の下流から上流に向かって印刷媒体100が搬送される方向のことである。換言すると、第2搬送方向は、印刷媒体100が搬送される搬送路において印刷媒体100が搬送される2つの方向のうち、印刷部20から手差口15へと向かう方向のことである。更に換言すると、第2搬送方向は、後述するキャリッジ19の走査方向と直交する2つの方向のうち、印刷部20から手差口15へと向かう方向のことである。 The second conveyance direction is a direction in which the print medium 100 is conveyed from downstream to upstream of the conveyance path along which the print medium 100 is conveyed. In other words, the second conveyance direction is the direction from the printing unit 20 toward the manual feed port 15 out of the two directions in which the print medium 100 is conveyed on the conveyance path along which the print medium 100 is conveyed. In other words, the second conveyance direction is the direction from the printing section 20 toward the manual feed port 15, of the two directions perpendicular to the scanning direction of the carriage 19, which will be described later.

また、印刷媒体100の搬送路は、印刷装置10において第1搬送方向又は第2搬送方向へと印刷媒体100が搬送される経路のことであり、図1~図4に示した例では、手差口15からX軸に沿って前後に印刷媒体100が搬送される経路のことである。このため、印刷媒体100の搬送路は、前方印刷媒体ガイド32上、及び後方印刷媒体ガイド33上に構成されている。以下では、説明の便宜上、印刷媒体100の搬送路を、単に搬送路と称して説明する。 Further, the conveyance path of the print medium 100 is a path along which the print medium 100 is conveyed in the first conveyance direction or the second conveyance direction in the printing apparatus 10, and in the examples shown in FIGS. This is a path along which the printing medium 100 is conveyed back and forth along the X-axis from the spigot 15. For this reason, the conveyance path of the print medium 100 is configured on the front print medium guide 32 and the rear print medium guide 33. In the following, for convenience of explanation, the conveyance path of the print medium 100 will be simply referred to as a conveyance path.

また、印刷装置本体11は、印刷媒体100に設けられた磁気ストライプ101の磁気情報の読み取り及び書き込みを行う磁気情報読書部31を有する。また、印刷装置本体11は、磁気情報読書部31による磁気ストライプ101からの磁気情報の読み書き時において、印刷媒体100の浮き上がりを上から押える押え部Fを有する。 The printing apparatus main body 11 also includes a magnetic information reading section 31 that reads and writes magnetic information from the magnetic stripe 101 provided on the print medium 100. Further, the printing device main body 11 includes a presser portion F that presses the printing medium 100 from rising from above when the magnetic information reading portion 31 reads and writes magnetic information from the magnetic stripe 101 .

なお、印刷装置10は、磁気情報読書部31に代えて、印刷媒体100に設けられた磁気ストライプ101の磁気情報の読み取りを行い、印刷媒体100に設けられた磁気ストライプ101の磁気情報の書き込みを行わない磁気情報読取部を備える構成であってもよい。磁気情報読書部31は、磁気情報読取部の一例である。 Note that the printing device 10 reads magnetic information on the magnetic stripe 101 provided on the print medium 100 instead of the magnetic information reading section 31, and writes magnetic information on the magnetic stripe 101 provided on the print medium 100. The configuration may include a magnetic information reading section that does not perform the magnetic information reading section. The magnetic information reading section 31 is an example of a magnetic information reading section.

また、印刷装置本体11では、前述した本体フレームが備える右サイドフレーム16と左サイドフレーム17との間には、キャリッジ軸CAが架け渡される。また、右サイドフレーム16と左サイドフレーム17との間には、平坦面形状の前方印刷媒体ガイド32と、後方印刷媒体ガイド33とが固定して設けられる。そして、前方印刷媒体ガイド32と後方印刷媒体ガイド33との間には、平面形状のプラテン21が配置される。また、キャリッジ19の走査方向と直交する方向における後方印刷媒体ガイド33の中央付近には、キャリッジ19の走査方向に延伸し、印刷媒体100に含まれる画像を読み取る画像読取部35が配置される。 Further, in the printing apparatus main body 11, a carriage shaft CA is spanned between the right side frame 16 and the left side frame 17 included in the above-described main body frame. Further, a flat front print medium guide 32 and a rear print medium guide 33 are fixedly provided between the right side frame 16 and the left side frame 17. A planar platen 21 is arranged between the front print medium guide 32 and the rear print medium guide 33. Further, near the center of the rear print medium guide 33 in the direction orthogonal to the scanning direction of the carriage 19, an image reading section 35 that extends in the scanning direction of the carriage 19 and reads an image included in the print medium 100 is disposed.

キャリッジ19の走査方向は、キャリッジ軸CAに沿ってキャリッジ19が移動可能な2つの方向の総称である。すなわち、図1~図4に示した例では、キャリッジ19の走査方向は、Y軸の正方向とY軸の負方向とのそれぞれのことである。このため、当該例では、前述した第1搬送方向は、X軸の負方向と一致している。また、当該例では、前述した第2搬送方向は、X軸の正方向と一致している。 The scanning direction of the carriage 19 is a general term for two directions in which the carriage 19 can move along the carriage axis CA. That is, in the examples shown in FIGS. 1 to 4, the scanning directions of the carriage 19 are the positive direction of the Y-axis and the negative direction of the Y-axis. Therefore, in this example, the first conveyance direction described above coincides with the negative direction of the X axis. Furthermore, in this example, the second transport direction described above coincides with the positive direction of the X axis.

ここで、第1搬送機構部24は、プラテン21に対して印刷装置本体11の前方側に配置される。第2搬送機構部27は、プラテン21に対して印刷装置本体11の後方側、且つ、画像読取部35に対して印刷装置本体11の前方側に配置される。第3搬送機構部30は、画像読取部35に対して印刷装置本体11の後方側に配置される。 Here, the first transport mechanism section 24 is arranged on the front side of the printing apparatus main body 11 with respect to the platen 21. The second transport mechanism section 27 is arranged on the rear side of the printing apparatus main body 11 with respect to the platen 21 and on the front side of the printing apparatus main body 11 with respect to the image reading section 35. The third transport mechanism section 30 is arranged on the rear side of the printing apparatus main body 11 with respect to the image reading section 35 .

更に、第1搬送ローラー22と第2搬送ローラー23は、それぞれ上下方向に配置されて対をなす。また、第3搬送ローラー25と第4搬送ローラー26も、それぞれ上下方向に配置されて対をなす。また、第5搬送ローラー28と第6搬送ローラー29も、それぞれ上下方向に配置されて対をなす。このうち、第1搬送ローラー22は、プラテン21及び画像読取部35とともに前方印刷媒体ガイド32の下方に配置される。また、第3搬送ローラー25は、プラテン21及び画像読取部35とともに後方印刷媒体ガイド33の下方に配置される。また、第5搬送ローラー28は、プラテン21及び画像読取部35とともに後方印刷媒体ガイド33の下方に配置される。また、第2搬送ローラー23は、前方印刷媒体ガイド32の上方に配置される。また、第4搬送ローラー26は、後方印刷媒体ガイド33の上方に配置される。また、第6搬送ローラー29は、後方印刷媒体ガイド33の上方に配置される。 Furthermore, the first conveyance roller 22 and the second conveyance roller 23 are arranged in the vertical direction and form a pair. Further, the third conveyance roller 25 and the fourth conveyance roller 26 are also arranged in the vertical direction and form a pair. Furthermore, the fifth conveyance roller 28 and the sixth conveyance roller 29 are also arranged in the vertical direction and form a pair. Among these, the first conveyance roller 22 is arranged below the front print medium guide 32 together with the platen 21 and the image reading section 35 . Further, the third conveyance roller 25 is arranged below the rear print medium guide 33 together with the platen 21 and the image reading section 35 . Further, the fifth conveyance roller 28 is arranged below the rear print medium guide 33 together with the platen 21 and the image reading section 35 . Additionally, the second transport roller 23 is arranged above the front print media guide 32 . Further, the fourth conveyance roller 26 is arranged above the rear print medium guide 33. Further, the sixth conveyance roller 29 is arranged above the rear print medium guide 33.

また、第1搬送ローラー22、第3搬送ローラー25、第5搬送ローラー28のそれぞれは、図1~図4において図示しない搬送モーターM1と、図示しない駆動輪列部とによって回転駆動される駆動ローラーである。また、第2搬送ローラー23、第4搬送ローラー26、第6搬送ローラー29はそれぞれ、第1搬送ローラー22、第3搬送ローラー25、第5搬送ローラー28側に所定の押圧力でばね付勢されている従動ローラーである。これにより、第1搬送ローラー22と第2搬送ローラー23とが互いに反対方向に回転駆動され、第3搬送ローラー25と第4搬送ローラー26とが互いに反対方向に回転駆動され、第5搬送ローラー28と第6搬送ローラー29とが互いに反対方向に回転駆動される。 Further, each of the first conveyance roller 22, the third conveyance roller 25, and the fifth conveyance roller 28 is a drive roller that is rotationally driven by a conveyance motor M1 (not shown) and a drive wheel train section (not shown) in FIGS. 1 to 4. It is. Further, the second conveyance roller 23, the fourth conveyance roller 26, and the sixth conveyance roller 29 are spring-biased with a predetermined pressing force toward the first conveyance roller 22, third conveyance roller 25, and fifth conveyance roller 28, respectively. This is a driven roller. As a result, the first conveyance roller 22 and the second conveyance roller 23 are rotationally driven in mutually opposite directions, the third conveyance roller 25 and the fourth conveyance roller 26 are rotationally driven in mutually opposite directions, and the fifth conveyance roller 28 is rotated in opposite directions. and the sixth conveyance roller 29 are driven to rotate in opposite directions.

そして、印刷媒体100は、第1搬送機構部24と第2搬送機構部27と第3搬送機構部30との動作により、キャリッジ19の走査方向と直交する方向に搬送される。 Then, the print medium 100 is transported in a direction perpendicular to the scanning direction of the carriage 19 by the operations of the first transport mechanism section 24, the second transport mechanism section 27, and the third transport mechanism section 30.

キャリッジ19は、キャリッジ軸CAに摺動自在に挿通される。また、キャリッジ19は、ヘッド18を搭載している。キャリッジ19は、図示しないタイミングベルトに結合される。当該タイミングベルトは、図1~図4において図示しないキャリッジ駆動モーターM2により駆動される図示しないベルト駆動プーリーに架け渡されている。キャリッジ19は、キャリッジ駆動モーターM2の正回転又は逆回転により、キャリッジ軸CAの軸方向及びプラテン21の長手方向と一致する走査方向に、右サイドフレーム16と左サイドフレーム17とによって挟まれる範囲で走行(走査)される。 The carriage 19 is slidably inserted into the carriage shaft CA. Further, the carriage 19 has a head 18 mounted thereon. The carriage 19 is coupled to a timing belt (not shown). The timing belt is stretched around a belt drive pulley (not shown) driven by a carriage drive motor M2 (not shown) in FIGS. 1 to 4. The carriage 19 is rotated in the range sandwiched between the right side frame 16 and the left side frame 17 in the scanning direction that coincides with the axial direction of the carriage axis CA and the longitudinal direction of the platen 21 by the forward or reverse rotation of the carriage drive motor M2. It is run (scanned).

また、キャリッジ19とともに移動するヘッド18が複数のピンを突出させる方向には、図示しないインクリボンが位置する。このインクリボンは、右サイドフレーム16と左サイドフレーム17との間に装着された図示しないリボンカートリッジ内に折り畳まれて収納される。ヘッド18は、キャリッジ19とともに走査方向に走行される間に、ピンを突出させてインクリボンに打ち当てる。これにより、ヘッド18は、インクリボンのインクをプラテン21とヘッド18との間を搬送される印刷媒体100に付着させ、印刷媒体100に文字等の画像を印刷することができる。 Further, an ink ribbon (not shown) is positioned in the direction in which the head 18 moving together with the carriage 19 projects a plurality of pins. This ink ribbon is folded and stored in a ribbon cartridge (not shown) installed between the right side frame 16 and the left side frame 17. While the head 18 is traveling in the scanning direction together with the carriage 19, the head 18 causes a pin to protrude and strike against the ink ribbon. Thereby, the head 18 can attach ink from the ink ribbon to the print medium 100 that is conveyed between the platen 21 and the head 18, and can print images such as characters on the print medium 100.

ここで、図示を省略するが、ヘッド18は、ヘッド本体のフレームに形成されたコアに嵌め込まれる電磁コイルを備える。ヘッド18は、ピンを駆動する際、この電磁コイルに通電し、電磁コイルの磁気力によりピンレバーを介してピンを駆動する。つまり、ヘッド18は、電磁コイルへの通電により、ピンをプラテン21に向けて突出させる。なお、ピンの突出力は、この電磁コイルへの通電幅によって決まる。つまり、ピンの突出力は、電磁コイルへの通電幅を大きくするほど大きくなり、電磁コイルへの通電幅を小さくするほど小さくなる。 Although not shown, the head 18 includes an electromagnetic coil fitted into a core formed in the frame of the head body. When the head 18 drives the pin, it energizes this electromagnetic coil, and uses the magnetic force of the electromagnetic coil to drive the pin via the pin lever. That is, the head 18 causes the pin to protrude toward the platen 21 by energizing the electromagnetic coil. Note that the protrusion force of the pin is determined by the width of current applied to the electromagnetic coil. In other words, the protruding force of the pin increases as the width of energization to the electromagnetic coil increases, and decreases as the width of energization to the electromagnetic coil decreases.

また、印刷装置本体11は、印刷媒体100の搬送経路に進退自在な遮断部材41を有する。図1~図4に示した例では、印刷装置本体11は、Y軸に沿って並ぶ6個の遮断部材41を有する。なお、印刷装置本体11は、1個以上5個以下の遮断部材41を有する構成であってもよく、7個以上の遮断部材41を有する構成であってもよい。各遮断部材41は、搬送路に沿った印刷媒体100の搬送を遮断する遮断位置と、当該搬送を遮断しない非遮断位置とのそれぞれに移動可能である。遮断位置にある各遮断部材41により印刷媒体100の搬送が遮断された場合、印刷媒体100の向きは、第1搬送方向と平行になる。換言すると、当該場合、印刷媒体100の状態は、スキューが生じていない状態になる。ここで、印刷媒体100の向きは、例えば、印刷媒体100が有する辺のうち第1搬送方向と直交する方向と交わる辺と、第1搬送方向とが成す鋭角の角度によって表される。印刷媒体100の向きが第1搬送方向と平行である場合、当該角度は、0°である。 Further, the printing apparatus main body 11 includes a blocking member 41 that can move forward and backward in the conveyance path of the print medium 100. In the example shown in FIGS. 1 to 4, the printing apparatus main body 11 has six blocking members 41 arranged along the Y axis. Note that the printing apparatus main body 11 may have a configuration including one to five blocking members 41, or may have a configuration including seven or more blocking members 41. Each blocking member 41 is movable between a blocking position where the printing medium 100 is blocked from being conveyed along the conveying path and a non-blocking position where the printing medium 100 is not blocked from being conveyed. When conveyance of the print medium 100 is blocked by each blocking member 41 in the blocking position, the orientation of the print medium 100 becomes parallel to the first conveyance direction. In other words, in this case, the print medium 100 is in a state where no skew has occurred. Here, the orientation of the print medium 100 is expressed, for example, by an acute angle formed by a side of the print medium 100 that intersects with a direction perpendicular to the first conveyance direction and the first conveyance direction. When the orientation of the print medium 100 is parallel to the first transport direction, the angle is 0°.

各遮断部材41は、図1~図4において図示しない突当モーターM3を駆動源として、遮断位置と非遮断位置とのそれぞれに移動可能に構成されている。なお、各遮断部材41は、突当モーターM3に代えて、ソレノイド等を駆動源としてもよい。 Each of the blocking members 41 is configured to be movable between a blocking position and a non-blocking position using an abutment motor M3 (not shown in FIGS. 1 to 4) as a driving source. Note that each of the blocking members 41 may be driven by a solenoid or the like instead of the abutting motor M3.

また、印刷装置本体11は、前方印刷媒体ガイド32上を搬送される印刷媒体100を検出する印刷媒体検出部42を備える。印刷媒体検出部42は、前方印刷媒体ガイド32上を搬送される印刷媒体100を検出可能なように、第1搬送方向において第1搬送ローラー22と遮断部材41との間に設けられる。 The printing apparatus main body 11 also includes a print medium detection section 42 that detects the print medium 100 being conveyed on the front print medium guide 32 . The print medium detection unit 42 is provided between the first conveyance roller 22 and the blocking member 41 in the first conveyance direction so as to be able to detect the print medium 100 conveyed on the front print medium guide 32 .

印刷媒体検出部42は、搬送路に沿って搬送される印刷媒体100を検出可能な複数個の検出部43を有する。図1~図4に示した例では、印刷媒体検出部42は、8個の検出部43を有する。これら8個の検出部43は、搬送路と交わる方向、すなわち、第1搬送方向と交わる方向に、互いに所定間隔離れて設けられる。当該例では、これら8個の検出部43は、当該方向に沿って並ぶように、且つ、互いに所定間隔離れて設けられている。なお、これら8個の検出部43は、第1搬送方向と交わる方向に互いに所定間隔離れて設けられていれば、必ずしも当該方向と平行な軸に沿って一直線に並んでいなくてもよい。すなわち、これら8個の検出部43は、例えば、当該軸を挟んで互い違いに並ぶように設けられていてもよい。また、所定間隔は、如何なる間隔であってもよい。また、これら8個の検出部43のうち隣り合う検出部43同士の間隔はそれぞれ、互いに同じであってもよく、互いに異なっていてもよい。 The print medium detection section 42 includes a plurality of detection sections 43 that can detect the print medium 100 conveyed along the conveyance path. In the example shown in FIGS. 1 to 4, the print medium detection section 42 has eight detection sections 43. These eight detection units 43 are provided at a predetermined distance from each other in a direction intersecting the conveyance path, that is, a direction intersecting the first conveyance direction. In the example, these eight detection units 43 are arranged along the direction and spaced apart from each other by a predetermined distance. Note that these eight detection units 43 do not necessarily need to be lined up in a straight line along an axis parallel to the first conveyance direction, as long as they are provided at a predetermined distance from each other in the direction intersecting the first conveyance direction. That is, these eight detection units 43 may be provided, for example, so as to be arranged alternately with the axis in between. Further, the predetermined interval may be any interval. Moreover, the intervals between adjacent detection units 43 among these eight detection units 43 may be the same or different from each other.

検出部43は、例えば、光センサーである。なお、検出部43は、光センサーに代えて、マイクロスイッチ等、搬送路に沿って搬送される印刷媒体100を検出可能な他のセンサー、他のスイッチ等であってもよい。検出部43は、検出した結果を示す情報を、後述する制御部110に出力する。ここで、以下では、説明の便宜上、検出部43の状態のうち検出部43が印刷媒体100を検出している状態と、検出部43の状態のうち検出部43が印刷媒体100を検出していない状態とを総称して、検出状態と称して説明する。すなわち、本実施形態では、検出状態は、検出部43が印刷媒体100を検出している状態と、検出部43が印刷媒体100を検出していない状態とのいずれかの状態を意味する。 The detection unit 43 is, for example, an optical sensor. Note that, instead of the optical sensor, the detection unit 43 may be another sensor such as a microswitch that can detect the print medium 100 being conveyed along the conveyance path, or another switch. The detection unit 43 outputs information indicating the detected result to the control unit 110, which will be described later. Here, for convenience of explanation, the state of the detection unit 43 in which the detection unit 43 is detecting the print medium 100 and the state in which the detection unit 43 is detecting the print medium 100 in the state of the detection unit 43 will be described below. The state in which the detection state is not detected will be collectively referred to as the detection state. That is, in the present embodiment, the detection state means either a state in which the detection unit 43 is detecting the print medium 100 or a state in which the detection unit 43 is not detecting the print medium 100.

また、図1~図4に示した例では、印刷装置10において、磁気情報読書部31、印刷媒体検出部42が有する複数の検出部43、遮断部材41、印刷部20、画像読取部35は、磁気情報読書部31、印刷媒体検出部42が有する複数の検出部43、遮断部材41、印刷部20、画像読取部35の順に第1搬送方向に向かって並んで搬送路に設けられている。これにより、印刷装置10は、印刷媒体100を第1搬送方向と第2搬送方向とのそれぞれへの移動を繰り返すことにより、磁気情報の読み取りと、画像の読み取りと、印刷媒体100への印刷とのうちの少なくとも2つの組み合わせを、ユーザーが印刷媒体100の差し直し等を行うことなく、順に行うことができる。 In the examples shown in FIGS. 1 to 4, in the printing apparatus 10, the magnetic information reading section 31, the plurality of detection sections 43 of the print medium detection section 42, the blocking member 41, the printing section 20, and the image reading section 35 are , the magnetic information reading unit 31, the plurality of detection units 43 included in the print medium detection unit 42, the blocking member 41, the printing unit 20, and the image reading unit 35 are arranged in the conveyance path in this order toward the first conveyance direction. . Thereby, the printing device 10 can read magnetic information, read images, and print on the print medium 100 by repeatedly moving the print medium 100 in the first conveyance direction and the second conveyance direction. At least two of these combinations can be performed in sequence without the user having to re-insert the print medium 100 or the like.

<印刷装置の制御系>
以下、図5を参照し、印刷装置10の制御系について説明する。図5は、印刷装置10の制御系の一例を示す図である。図5に示すように、印刷装置10は、制御部110と、通信部120を備える。
<Printing device control system>
The control system of the printing apparatus 10 will be described below with reference to FIG. FIG. 5 is a diagram showing an example of a control system of the printing apparatus 10. As shown in FIG. 5, the printing device 10 includes a control section 110 and a communication section 120.

制御部110は、印刷装置10の各部を統括的に制御する。制御部110は、CPU111(Central Processing Unit、プロセッサー)と、ROM112(Read Only Memory)と、RAM113(Random Access Memory)を備える。 The control unit 110 centrally controls each unit of the printing apparatus 10 . The control unit 110 includes a CPU 111 (Central Processing Unit), a ROM 112 (Read Only Memory), and a RAM 113 (Random Access Memory).

CPU111は、ROM112に記憶された制御プログラムを読み出し、RAM113を用いて実行する。 The CPU 111 reads a control program stored in the ROM 112 and executes it using the RAM 113.

通信部120は、ホストコンピューター200との間で、各種のコマンド、各種の情報等を送受信する。なお、ホストコンピューター200は、例えば、印刷媒体100が銀行の通帳である場合、顧客の口座番号、顧客の暗証番号、顧客の取引履歴等の通帳に対応付けられた口座に関連する情報を格納するデータベースを保有しており、顧客の口座を管理する。 The communication unit 120 transmits and receives various commands, various information, etc. to and from the host computer 200. Note that, for example, when the print medium 100 is a bank passbook, the host computer 200 stores information related to the account associated with the passbook, such as the customer's account number, the customer's PIN number, and the customer's transaction history. It has a database and manages customer accounts.

<印刷装置が印刷媒体への印刷を行う処理>
以下、図6を参照し、印刷装置10が印刷媒体100への印刷を行う処理について説明する。図6は、印刷装置10が印刷媒体100への印刷を行う処理の流れの一例を示す図である。なお、以下では、一例として、図6に示したステップS110の処理が行われるよりも前のタイミングにおいて、印刷媒体100へ印刷する画像と、印刷装置10に当該画像の印刷を行わせる指示とを含むコマンドを印刷装置10がホストコンピューター200から受け付けている場合について説明する。また、以下では、一例として、当該タイミングにおいて、ユーザーにより印刷媒体100が印刷装置10の手差口15に差し込まれている場合について説明する。また、以下では、一例として、当該タイミングにおいて、遮断部材41が非遮断位置に位置している場合について説明する。
<Processing in which the printing device prints on print media>
Hereinafter, with reference to FIG. 6, a process in which the printing apparatus 10 performs printing on the print medium 100 will be described. FIG. 6 is a diagram illustrating an example of a process flow in which the printing device 10 prints on the print medium 100. In the following, as an example, an image to be printed on the print medium 100 and an instruction to cause the printing device 10 to print the image are given at a timing before the process of step S110 shown in FIG. 6 is performed. A case will be described in which the printing apparatus 10 receives a command including the command from the host computer 200. Furthermore, as an example, a case will be described below in which the print medium 100 is inserted into the manual feed slot 15 of the printing device 10 by the user at the timing. Moreover, below, as an example, a case will be described in which the blocking member 41 is located at the non-blocking position at the timing.

制御部110は、突当モーターM3を制御し、各遮断部材41を非遮断位置から遮断位置へ移動させる(ステップS110)。 The control unit 110 controls the abutting motor M3 to move each blocking member 41 from the non-blocking position to the blocking position (step S110).

次に、制御部110は、搬送モーターM1を制御し、第1搬送機構部24と第2搬送機構部27と第3搬送機構部30を駆動させて、第1搬送方向への印刷媒体100の搬送を開始させる(ステップS120)。 Next, the control unit 110 controls the transport motor M1 to drive the first transport mechanism unit 24, the second transport mechanism unit 27, and the third transport mechanism unit 30 to move the print medium 100 in the first transport direction. Conveyance is started (step S120).

次に、制御部110は、所定の遮断条件が満たされるまで待機する(ステップS130)。遮断条件は、印刷媒体100が遮断部材41によって遮断されるための必要十分条件である。遮断条件は、例えば、ステップS120の処理によって第1搬送方向への印刷媒体100の搬送が開始されてから所定の時間が経過すること、である。なお、遮断条件は、印刷媒体100が遮断部材41によって遮断されるための必要十分条件であれば、他の条件であってもよい。例えば、遮断条件は、遮断部材41に印刷媒体100が遮断されたことを検出するセンサーを備える場合、当該センサーからの出力に基づいて、遮断部材41に印刷媒体100が遮断されたことが検出されたこと、であってもよい。また、所定の時間は、印刷媒体100が遮断部材41によって遮断されるための必要十分な時間であれば、如何なる時間であってもよい。所定の時間は、例えば、印刷装置10が印刷媒体100を搬送する速度に応じて決められる。 Next, the control unit 110 waits until a predetermined cutoff condition is met (step S130). The blocking condition is a necessary and sufficient condition for the printing medium 100 to be blocked by the blocking member 41. The cutoff condition is, for example, that a predetermined period of time has elapsed since conveyance of the print medium 100 in the first conveyance direction was started in the process of step S120. Note that the blocking condition may be any other condition as long as it is a necessary and sufficient condition for the printing medium 100 to be blocked by the blocking member 41. For example, in the case where the blocking member 41 includes a sensor that detects that the print medium 100 is blocked, the blocking condition may be such that the blocking member 41 detects that the printing medium 100 is blocked based on the output from the sensor. It may be something. Further, the predetermined time may be any time as long as it is a necessary and sufficient time for the printing medium 100 to be blocked by the blocking member 41. The predetermined time is determined, for example, depending on the speed at which the printing device 10 transports the print medium 100.

制御部110は、所定の遮断条件が満たされたと判定した場合(ステップS130-YES)、搬送モーターM1を制御し、第1搬送方向への印刷媒体100の搬送を停止させる(ステップS140)。 When the control unit 110 determines that the predetermined cutoff condition is satisfied (step S130-YES), the control unit 110 controls the transport motor M1 to stop transporting the print medium 100 in the first transport direction (step S140).

このように、制御部110は、ステップS120~ステップS140の処理によって、遮断部材41を遮断位置に移動させた後、少なくとも印刷媒体100が遮断部材41に遮断されるまでの期間、搬送部Hにより印刷媒体100を第1搬送方向に搬送する。 In this way, the control unit 110 moves the blocking member 41 to the blocking position through the processing in steps S120 to S140, and then controls the transport unit H to move the blocking member 41 at least until the printing medium 100 is blocked by the blocking member 41. The print medium 100 is conveyed in the first conveyance direction.

ステップS140の処理が行われた後、制御部110は、印刷媒体検出部42の各検出部43から出力される情報に基づいて、8個の検出部43のうち印刷媒体100を検出している検出状態の2個以上の検出部43を、以下において説明するステップS220の処理において使用する対象検出部として特定する(ステップS150)。ここで、図7を参照し、ステップS150の処理について説明する。図7は、ステップS140において搬送が停止された状態の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。なお、図7では、印刷媒体100と印刷媒体検出部42との位置関係を明確に示すため、印刷媒体100は、輪郭を示す実線によって示されている。 After the process of step S140 is performed, the control unit 110 detects the print medium 100 among the eight detection units 43 based on the information output from each detection unit 43 of the print medium detection unit 42. Two or more detection units 43 in the detection state are specified as target detection units to be used in the process of step S220 described below (step S150). Here, with reference to FIG. 7, the process of step S150 will be explained. FIG. 7 is a diagram illustrating an example of the positional relationship between the print medium 100 whose conveyance is stopped in step S140 and the print medium detection unit 42. In addition, in FIG. 7, in order to clearly show the positional relationship between the print medium 100 and the print medium detection unit 42, the print medium 100 is shown by a solid line showing the outline.

図7に示すように、ステップS140において搬送が停止された状態では、印刷媒体100は、遮断部材41に突き当たっている。すなわち、この状態では、印刷媒体100は、遮断部材41によって遮断されている。これにより、印刷媒体100は、遮断部材41により遮断される前にスキューが発生していたとしても、ステップS140において搬送が停止された状態では、スキューが解消されている。すなわち、この状態では、印刷媒体100の向きは、第1搬送方向と平行になっている。そして、印刷媒体100が遮断部材41により遮断されている場合、印刷媒体100は、8個の検出部43のうちの少なくとも一部の真上を覆っている。8個の検出部43のうち印刷媒体100により真上を覆われた2個以上の検出部43は、印刷媒体100を検出していることを示す情報を制御部110に出力する。これにより、制御部110は、ステップS150において、8個の検出部43のうち印刷媒体100を検出している2個以上の検出部43を、対象検出部として特定することができる。図7に示した例では、8個の検出部43のうちの両端の検出部43を結ぶ直線の長さよりも、印刷媒体100のY軸方向における長さの方が長い。このため、当該例では、対象検出部として特定される検出部43は、8個の検出部43の全てである。しかしながら、印刷媒体100の大きさは、図7に示した印刷媒体100の大きさであるとは限らない。このため、制御部110は、印刷媒体100の大きさが図7に示した印刷媒体100の大きさよりも小さい場合、ステップS140において搬送が停止された状態において、8個の検出部43のうち印刷媒体100を検出している2個以上8個未満の検出部43を、対象検出部として特定することもある。 As shown in FIG. 7, when the conveyance is stopped in step S140, the print medium 100 is in contact with the blocking member 41. That is, in this state, the print medium 100 is blocked by the blocking member 41. As a result, even if the print medium 100 is skewed before being blocked by the blocking member 41, the skew is eliminated when the conveyance is stopped in step S140. That is, in this state, the orientation of the print medium 100 is parallel to the first conveyance direction. When the printing medium 100 is blocked by the blocking member 41, the printing medium 100 covers right above at least a portion of the eight detection units 43. Of the eight detection units 43, two or more detection units 43 directly covered by the print medium 100 output information indicating that the print medium 100 is being detected to the control unit 110. Thereby, in step S150, the control unit 110 can identify two or more of the eight detection units 43 that are detecting the print medium 100 as target detection units. In the example shown in FIG. 7, the length of the print medium 100 in the Y-axis direction is longer than the length of the straight line connecting the detection units 43 at both ends of the eight detection units 43. Therefore, in this example, all of the eight detection units 43 are identified as target detection units. However, the size of the print medium 100 is not necessarily the size of the print medium 100 shown in FIG. 7 . Therefore, if the size of the print medium 100 is smaller than the size of the print medium 100 shown in FIG. Two or more and less than eight detection units 43 that are detecting the medium 100 may be specified as target detection units.

ステップS150の処理が行われた後、制御部110は、突当モーターM3を制御し、各遮断部材41を遮断位置から非遮断位置へ移動させる(ステップS160)。 After the process of step S150 is performed, the control unit 110 controls the abutment motor M3 to move each blocking member 41 from the blocking position to the non-blocking position (step S160).

次に、制御部110は、画像の印刷以外の動作を行うか否かを判定する(ステップS170)。例えば、制御部110は、事前に受け付けたコマンドに含まれる未実行の指示の中に、印刷装置10に画像の印刷以外の動作を行わせる指示が含まれている場合、当該動作を行うと判定する。一方、制御部110は、事前に受け付けたコマンドに含まれる未実行の指示の中に、印刷装置10に当該動作を行わせる指示が含まれていない場合、当該動作を行わないと判定する。 Next, the control unit 110 determines whether to perform an operation other than printing the image (step S170). For example, if the unexecuted instructions included in the command received in advance include an instruction to cause the printing device 10 to perform an operation other than printing an image, the control unit 110 determines to perform the operation. do. On the other hand, if the unexecuted instructions included in the command received in advance do not include an instruction to cause the printing device 10 to perform the operation, the control unit 110 determines that the operation will not be performed.

制御部110は、画像の印刷以外の動作を行うと判定した場合(ステップS170-YES)、第2搬送方向へ印刷媒体100を所定の距離搬送させる(ステップS180)。所定の距離は、印刷媒体100の前端の位置を、所定の第1位置に一致させるのに要する距離である。なお、この時点では、制御部110は、印刷媒体100の前端の位置を特定しているわけではない。この時点では、ステップS140において搬送が停止されてから印刷媒体100が動いていないため、制御部110は、印刷媒体100を第2搬送方向へ所定の距離搬送させることにより、印刷媒体100の前端の位置を、所定の第1位置に一致させることができる。このような事情から、ステップS170~ステップS190の繰り返し処理によってスキューが発生すると、ステップS180の処理によって搬送された印刷媒体100の前端は、所定の第1位置と精度よく一致しない。ここで、印刷媒体100の前端は、印刷媒体100が有する端部のうち第1搬送方向側の端部のことである。 When the control unit 110 determines to perform an operation other than printing an image (step S170-YES), the control unit 110 causes the print medium 100 to be conveyed a predetermined distance in the second conveyance direction (step S180). The predetermined distance is the distance required to align the front end of the print medium 100 with the predetermined first position. Note that, at this point, the control unit 110 has not specified the position of the front end of the print medium 100. At this point, since the print medium 100 has not moved since the conveyance was stopped in step S140, the control unit 110 moves the front end of the print medium 100 by conveying the print medium 100 a predetermined distance in the second conveyance direction. The position may correspond to a predetermined first position. Under these circumstances, if skew occurs due to the repeated processing of steps S170 to S190, the front end of the print medium 100 conveyed by the processing of step S180 will not accurately match the predetermined first position. Here, the front end of the print medium 100 refers to the end of the print medium 100 on the first transport direction side.

次に、制御部110は、画像の印刷以外の動作を印刷装置10に行わせる(ステップS190)。具体的には、制御部110は、ステップS190において、事前に受け付けたコマンドに含まれる未実行の指示、且つ、印刷装置10に画像の印刷以外の動作を行わせる指示のうちのいずれか1つの指示が示す動作を印刷装置10に行わせる処理を行う。当該指示が示す動作は、例えば、磁気情報読書部31による磁気ストライプ101からの磁気情報の読み取り、画像読取部35による印刷媒体100からの画像の読み取り等であるが、これらに限られるわけではない。なお、制御部110は、磁気情報の読み取りを2回以上行う場合、例えば、磁気情報の読み取りを示す2つ以上の指示のそれぞれを、異なる指示として認識する。また、画像の読み取りを2回以上行う場合、例えば、画像の読み取りを示す2つ以上の指示のそれぞれを、異なる指示として認識する。ステップS190の処理が行われた後、制御部110は、ステップS170に遷移し、画像の印刷以外の動作を行うか否かを再び判定する。なお、ステップS170~ステップS190の処理が複数回繰り返される場合、その複数回のうちの一部の回において、ステップS180が省略される構成であってもよい。 Next, the control unit 110 causes the printing device 10 to perform operations other than printing the image (step S190). Specifically, in step S190, the control unit 110 selects one of the unexecuted instructions included in the command received in advance and the instruction to cause the printing device 10 to perform an operation other than printing an image. A process for causing the printing device 10 to perform the operation indicated by the instruction is performed. The operation indicated by the instruction is, for example, reading magnetic information from the magnetic stripe 101 by the magnetic information reading section 31, reading an image from the print medium 100 by the image reading section 35, etc., but is not limited to these. . Note that when reading magnetic information more than once, the control unit 110 recognizes each of two or more instructions indicating reading of magnetic information as different instructions, for example. Further, when reading an image twice or more, for example, each of two or more instructions indicating image reading is recognized as a different instruction. After the process of step S190 is performed, the control unit 110 moves to step S170, and again determines whether or not to perform an operation other than printing the image. Note that when the processing from step S170 to step S190 is repeated multiple times, step S180 may be omitted in some of the multiple times.

一方、制御部110は、画像の印刷以外の動作を行わないと判定した場合(ステップS170-NO)、第2搬送方向へ印刷媒体100を所定の距離搬送させる(ステップS200)。前述した通り、この時点でも、制御部110は、印刷媒体100の前端の位置を特定しているわけではない。この時点では、ステップS140において搬送が停止されてから印刷媒体100が動いていなければ、制御部110は、印刷媒体100を第2搬送方向へ所定の距離搬送させることにより、印刷媒体100の前端の位置を、所定の第1位置に一致させることができる。しかしながら、ステップS170~ステップS190の繰り返し処理によってスキューが発生すると、ステップS200の処理によって搬送された印刷媒体100の前端は、所定の第1位置と精度よく一致しない。この場合、印刷装置10は、制御部110が印刷媒体100の前端の位置又は印刷媒体100の後端の位置を特定しなければ、印刷しようとしている画像の印刷媒体100への印刷に失敗する場合がある。これは、当該場合、スキューによって印刷媒体100の向きが第1搬送方向と非平行になっており、印刷しようとしている画像の一部を印刷部20が、第1搬送方向へ搬送される印刷媒体100の外側に印刷してしまうことがあるである。このような問題を解決するため、制御部110は、ステップS210~ステップS240の処理を行う。 On the other hand, if the control unit 110 determines that no operation other than printing the image is to be performed (step S170-NO), the control unit 110 transports the print medium 100 a predetermined distance in the second transport direction (step S200). As described above, at this point, the control unit 110 has not yet specified the position of the front end of the print medium 100. At this point, if the print medium 100 has not moved since the conveyance was stopped in step S140, the control unit 110 moves the front end of the print medium 100 by conveying the print medium 100 a predetermined distance in the second conveyance direction. The position may correspond to a predetermined first position. However, if skew occurs due to the repeated processing of steps S170 to S190, the front end of the print medium 100 conveyed by the processing of step S200 will not accurately match the predetermined first position. In this case, if the control unit 110 does not identify the position of the front edge of the print medium 100 or the position of the rear edge of the print medium 100, the printing apparatus 10 will fail to print the image to be printed on the print medium 100. There is. This is because in this case, the orientation of the print medium 100 is non-parallel to the first conveyance direction due to the skew, and the printing unit 20 prints a part of the image to be printed on the print medium conveyed in the first conveyance direction. It is possible to print outside the 100. In order to solve this problem, the control unit 110 performs steps S210 to S240.

ステップS200の処理が行われた後、制御部110は、搬送モーターM1を制御し、第1搬送機構部24と第2搬送機構部27と第3搬送機構部30を駆動させて、第1搬送方向への印刷媒体100の搬送を開始させる。また、制御部110は、キャリッジ駆動モーターM2を制御し、キャリッジ19をキャリッジ軸CAに沿って移動させながら、ヘッド18による印刷媒体100への画像の印刷を開始させる(ステップS210)。 After the process of step S200 is performed, the control unit 110 controls the transport motor M1 to drive the first transport mechanism unit 24, the second transport mechanism unit 27, and the third transport mechanism unit 30, so that the first transport Conveyance of the print medium 100 in the direction is started. Further, the control unit 110 controls the carriage drive motor M2 and causes the head 18 to start printing an image on the print medium 100 while moving the carriage 19 along the carriage axis CA (step S210).

次に、制御部110は、ステップS210の処理によって開始された印刷媒体100の搬送中に、状態変化検出部の個数が所定の閾値以上となるまで待機する(ステップS220)。状態変化検出部は、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した対象検出部のことである。すなわち、制御部110は、ステップS220において、2個以上の対象検出部のうち、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した1個以上の対象検出部を、状態変化検出部として特定する。制御部110は、このような状態変化検出部の特定を、ステップS210において開始した印刷媒体100の搬送が行われている間、繰り返し行う。なお、制御部110は、所定時間が経過しても状態変化検出部の個数が所定の閾値以上とならない場合、印刷媒体100の搬送において紙ジャム等の搬送不良が発生している虞があるため、例えば、印刷媒体100の搬送を停止して、印刷装置10の図示しない表示部でエラーを報知する。 Next, the control unit 110 waits until the number of state change detection units becomes equal to or greater than a predetermined threshold during the conveyance of the print medium 100 started by the process in step S210 (step S220). The state change detection unit is a target detection unit whose detection state changes from a state in which it is detecting the print medium 100 to a state in which it is not detecting the print medium 100 while the print medium 100 is being transported. That is, in step S220, the control unit 110 changes the detection state of the print medium 100 from a state in which the print medium 100 is detected to a state in which the print medium 100 is not detected among the two or more target detection units. One or more target detection units that have changed during transportation are identified as state change detection units. The control unit 110 repeatedly performs such identification of the state change detection unit while the printing medium 100 is being transported, which started in step S210. Note that if the number of state change detection units does not exceed a predetermined threshold even after a predetermined period of time has elapsed, the control unit 110 determines that if the number of state change detection units does not exceed a predetermined threshold, there is a possibility that a conveyance failure such as a paper jam has occurred in the conveyance of the print medium 100. For example, the conveyance of the print medium 100 is stopped and an error is notified on a display section (not shown) of the printing apparatus 10.

ここで、図8は、スキューが発生している場合において第1搬送方向に搬送中の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。なお、図8では、印刷媒体100と印刷媒体検出部42との位置関係を明確に示すため、印刷媒体100は、輪郭を示す実線によって示されている。ステップS170~ステップS190の処理によってスキューが生じていた場合、第1搬送方向に搬送中の印刷媒体100の向きは、第1搬送方向と非平行になっている。このため、当該場合、第1搬送方向に搬送中の印刷媒体100が有する辺のうち第2搬送方向側の辺は、図8に示すように、第1搬送方向と直交する方向と非平行になっている。当該辺が当該方向と非平行になっているため、第1搬送方向への印刷媒体100の搬送により8個の対象検出部は時間の経過とともに次第に1個ずつ、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が変化していく。図8に示した例では、8個の対象検出部は、第1搬送方向への印刷媒体100の搬送により、印刷装置10の右側の検出部43から印刷装置10の左側の検出部43に向かって順に1個ずつ、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が変化していく。 Here, FIG. 8 is a diagram illustrating an example of the positional relationship between the print medium 100 being conveyed in the first conveyance direction and the print medium detection unit 42 when skew occurs. Note that in FIG. 8, the print medium 100 is indicated by a solid line indicating its outline in order to clearly show the positional relationship between the print medium 100 and the print medium detection unit 42. If skew has occurred as a result of the processing in steps S170 to S190, the orientation of the print medium 100 being transported in the first transport direction is non-parallel to the first transport direction. Therefore, in this case, among the sides of the print medium 100 being transported in the first transport direction, the side on the second transport direction side is non-parallel to the direction orthogonal to the first transport direction, as shown in FIG. It has become. Since the relevant side is non-parallel to the relevant direction, the eight object detection units gradually detect the print medium 100 one by one as time passes as the print medium 100 is transported in the first transport direction. The detection state changes from this state to a state where the print medium 100 is not detected. In the example shown in FIG. 8, the eight target detection units move from the detection unit 43 on the right side of the printing device 10 to the detection unit 43 on the left side of the printing device 10 by conveying the print medium 100 in the first conveyance direction. The detection state changes one by one from a state in which the print medium 100 is detected to a state in which the print medium 100 is not detected.

そこで、制御部110は、状態変化検出部として特定された対象検出部の個数が所定の閾値以上となった場合、印刷媒体100の後端の位置を特定する。具体的には、例えば、制御部110は、当該場合、印刷媒体検出部42に対応付けられた所定の第2位置と、印刷媒体100の後端の位置とが一致していると判定し、所定の第2位置を印刷媒体100の後端の位置として特定する。印刷媒体100の後端は、印刷媒体100が有する端部のうち第2搬送方向側の端部のことである。所定の第2位置は、例えば、第1搬送方向における位置のうち8個の検出部43のいずれかが位置する位置、第1搬送方向における位置のうち左右両端の遮断部材41を結ぶ直線と第1搬送方向とが交わる位置等であるが、印刷媒体検出部42に対応付けられた他の位置であってもよい。また、所定の第2位置は、印刷媒体検出部42に対応付けられた位置に代えて、印刷装置10が有する部材のうちの他の部材に対応付けられた位置であってもよい。 Therefore, the control unit 110 specifies the position of the trailing edge of the print medium 100 when the number of target detection units specified as state change detection units exceeds a predetermined threshold. Specifically, for example, in this case, the control unit 110 determines that the predetermined second position associated with the print medium detection unit 42 matches the position of the rear end of the print medium 100, A predetermined second position is specified as the position of the trailing edge of the print medium 100. The rear end of the print medium 100 is the end on the second transport direction side among the ends of the print medium 100. The predetermined second position is, for example, a position in the first conveyance direction where one of the eight detection units 43 is located, a straight line connecting the blocking members 41 at both left and right ends among the positions in the first conveyance direction, and a second position in the first conveyance direction. Although this is a position intersecting with the first transport direction, it may be any other position associated with the print medium detection unit 42. Further, the predetermined second position may be a position associated with another member of the members included in the printing device 10 instead of a position associated with the print medium detection unit 42.

なお、所定の閾値は、2個以上の個数、且つ、対象検出部の個数未満の個数であれば如何なる個数であってもよく、例えば、対象検出部の半分の個数より多い個数、又は、対象検出部の半分の個数である。この一例において、対象検出部の個数は、8個である。この場合、所定の閾値は、例えば、4個である。 Note that the predetermined threshold value may be any number as long as it is two or more and less than the number of target detection units, for example, a number greater than half the number of target detection units, or a number of target detection units. This is half the number of detection units. In this example, the number of target detection units is eight. In this case, the predetermined threshold is, for example, four.

このように、印刷装置10は、ステップS220の処理により、第1搬送方向へ搬送中の印刷媒体100の後端の位置を特定することができる。 In this way, the printing apparatus 10 can specify the position of the trailing edge of the print medium 100 being transported in the first transport direction through the process of step S220.

制御部110は、状態変化検出部の個数が所定の閾値以上であると判定した場合(ステップS220-YES)、前述した通り、印刷媒体100の後端の位置を特定する。そして、制御部110は、特定した当該位置に基づいて、印刷媒体100の印刷可能範囲を設定する(ステップS230)。具体的には、制御部110は、特定した当該位置からヘッド18までの第1搬送方向における距離を算出する。制御部110は、算出した当該距離に基づいて、ヘッド18により印刷を続けながら印刷媒体100を搬送させることが可能な残りの距離を算出する。そして、制御部110は、算出した当該距離を印刷可能範囲として設定し、当該距離搬送されるまで継続する。 When the control unit 110 determines that the number of state change detection units is equal to or greater than the predetermined threshold (step S220-YES), the control unit 110 specifies the position of the trailing edge of the print medium 100, as described above. Then, the control unit 110 sets the printable range of the print medium 100 based on the specified position (step S230). Specifically, the control unit 110 calculates the distance from the specified position to the head 18 in the first transport direction. Based on the calculated distance, the control unit 110 calculates the remaining distance over which the print medium 100 can be transported while the head 18 continues printing. Then, the control unit 110 sets the calculated distance as the printable range, and continues until the paper is conveyed the distance.

次に、制御部110は、印刷媒体100への画像の印刷を終了するか否かを判定する(ステップS240)。具体的には、制御部110は、印刷媒体100が、印刷可能範囲として設定した距離以上の距離を搬送されたと判定した場合、印刷媒体100への画像の印刷を終了すると判定する。一方、制御部110は、印刷媒体100が、印刷可能範囲として設定した距離以上の距離を搬送されていないと判定した場合、印刷媒体100への画像の印刷を終了しないと判定する。 Next, the control unit 110 determines whether to finish printing the image on the print medium 100 (step S240). Specifically, if the control unit 110 determines that the print medium 100 has been conveyed a distance greater than or equal to the distance set as the printable range, the control unit 110 determines to end printing the image on the print medium 100. On the other hand, if the control unit 110 determines that the print medium 100 has not been conveyed a distance greater than or equal to the distance set as the printable range, the control unit 110 determines that printing of the image on the print medium 100 is not to be completed.

制御部110は、印刷媒体100への画像の印刷を終了しないと判定した場合(ステップS240-NO)、ステップS240に遷移し、印刷媒体100の搬送及び印刷媒体100への画像の印刷を継続しながら、印刷媒体100への画像の印刷を終了するか否かを再び判定する。 When the control unit 110 determines that the printing of the image on the print medium 100 is not to be finished (step S240 - NO), the control unit 110 moves to step S240 and continues conveying the print medium 100 and printing the image on the print medium 100. At the same time, it is determined again whether or not to finish printing the image on the print medium 100.

一方、制御部110は、印刷媒体100への画像の印刷を終了すると判定した場合(ステップS240-YES)、印刷媒体100へのヘッド18による画像の印刷を終了するとともに、印刷媒体100を第2搬送方向へ搬送して印刷媒体100を排紙する(ステップS250)。 On the other hand, if the control unit 110 determines to finish printing the image on the print medium 100 (step S240-YES), it finishes printing the image on the print medium 100 by the head 18, and also prints the print medium 100 on the second print medium 100. The print medium 100 is conveyed in the conveyance direction and discharged (step S250).

次に、制御部110は、ステップS210において開始した印刷において印刷媒体100に印刷する予定であった画像の全てを印刷し終えたか否かを判定する(ステップS260)。例えば、制御部110は、ある画像を、ステップS210において印刷媒体100の1ページ目への印刷を開始していた場合、且つ、当該画像の一部を印刷媒体100の1ページ目に印刷しきれなかった場合、印刷媒体100の2ページ目に残りの画像を印刷することになる。このような場合、制御部110は、ステップS210において開始した印刷において印刷媒体100に印刷する予定であった画像の全てを印刷し終えていないと判定する。一方、例えば、制御部110は、ある画像を、ステップS210において印刷媒体100の1ページ目への印刷を開始していた場合、且つ、当該画像の全てを印刷媒体100の1ページ目に印刷しきれた場合、印刷媒体100の2ページ目に画像を印刷する必要がない。このような場合、制御部110は、ステップS210において開始した印刷において印刷媒体100に印刷する予定であった画像の全てを印刷し終えたと判定する。 Next, the control unit 110 determines whether all images scheduled to be printed on the print medium 100 have been printed in the printing started in step S210 (step S260). For example, if the control unit 110 has started printing a certain image on the first page of the print medium 100 in step S210, and if a part of the image has not been completely printed on the first page of the print medium 100, the control unit 110 may If not, the remaining image will be printed on the second page of the print medium 100. In such a case, the control unit 110 determines that all of the images that were scheduled to be printed on the print medium 100 have not been printed in the printing started in step S210. On the other hand, for example, if the control unit 110 has started printing a certain image on the first page of the print medium 100 in step S210, the control unit 110 prints the entire image on the first page of the print medium 100. In this case, there is no need to print the image on the second page of the print medium 100. In such a case, the control unit 110 determines that all images scheduled to be printed on the print medium 100 have been printed in the printing started in step S210.

制御部110は、ステップS210において開始した印刷において印刷媒体100に印刷する予定であった画像の全てを印刷し終えたと判定した場合(ステップS260-YES)、処理を終了する。 If the control unit 110 determines that all images scheduled to be printed on the print medium 100 have been printed in the printing started in step S210 (step S260-YES), the process ends.

一方、制御部110は、ステップS210において開始した印刷において印刷媒体100に印刷する予定であった画像の全てを印刷し終えていないと判定した場合(ステップS260-NO)、手差口15に印刷媒体100が差し直されるまで待機する(ステップS270)。すなわち、制御部110は、ステップS270において、印刷されずに残っている画像を印刷するページがユーザーにより開かれた後の印刷媒体100が、ユーザーにより手差口15に差し直されるまで待機する。 On the other hand, if the control unit 110 determines that all the images scheduled to be printed on the print medium 100 have not been printed in the printing started in step S210 (step S260-NO), the control unit 110 prints the images in the manual feed slot 15. The process waits until the medium 100 is reinserted (step S270). That is, in step S270, the control unit 110 waits until the user inserts the print medium 100 into the manual feed slot 15 again after the user opens the page on which the remaining unprinted image is to be printed.

制御部110は、手差口15に印刷媒体100が差し直されたと判定した場合(ステップS270-YES)、差し直された後の印刷媒体100を第1搬送方向に搬送し、ステップS110~ステップS140の処理と同様の処理によりスキューを解消した後、ステップS200に遷移し、第2搬送方向へ印刷媒体100を、所定の距離再び搬送させる。 When the control unit 110 determines that the print medium 100 has been re-inserted into the manual feed slot 15 (step S270-YES), the control unit 110 conveys the re-inserted print medium 100 in the first conveyance direction, and performs steps S110 to S110. After eliminating the skew by a process similar to the process of S140, the process moves to step S200, and the print medium 100 is again conveyed a predetermined distance in the second conveyance direction.

なお、上記において説明した制御部110は、ステップS220~ステップS230の処理において、印刷媒体100の後端の位置を特定する構成に代えて、印刷媒体100の前端の位置を特定する構成であってもよい。この場合、制御部110は、ステップS200において、印刷媒体100の前端の位置が、印刷媒体検出部42よりも第2搬送方向側に位置するようになるまで、第2搬送方向へ印刷媒体100を搬送する。そして、制御部110は、ステップS210の処理を行った後、ステップS220において、状態変化検出部として特定された対象検出部の個数が所定の閾値以上となった場合、印刷媒体100の前端の位置を特定する。ただし、この場合、状態変化検出部として特定する対象検出部は、印刷媒体100を検出していない状態から、印刷媒体100を検出している状態へと検出状態が印刷媒体100の搬送中に変化した対象検出部のことである。そして、制御部110は、ステップS230において、特定した当該位置に基づいて、印刷媒体100の印刷可能範囲を設定する。具体的には、制御部110は、特定した当該位置からヘッド18までの第1搬送方向における距離を算出する。制御部110は、算出した当該距離に基づいて、ヘッド18により印刷を続けながら印刷媒体100を搬送させることが可能な残りの距離を算出する。そして、制御部110は、算出した当該距離を印刷可能範囲として設定し、当該距離搬送されるまで継続する。 Note that the control unit 110 described above has a configuration that specifies the position of the front edge of the print medium 100 instead of specifying the position of the rear edge of the print medium 100 in the processing of steps S220 to S230. Good too. In this case, in step S200, the control unit 110 moves the print medium 100 in the second conveyance direction until the front end of the print medium 100 is located closer to the second conveyance direction than the print medium detection unit 42. transport. After performing the process in step S210, the control unit 110 determines the position of the front end of the print medium 100 in step S220 if the number of target detection units identified as state change detection units is equal to or greater than a predetermined threshold. Identify. However, in this case, the detection state of the target detection unit identified as the state change detection unit changes from a state of not detecting the print medium 100 to a state of detecting the print medium 100 while the print medium 100 is being transported. This refers to the target detection unit that detects the Then, in step S230, the control unit 110 sets the printable range of the print medium 100 based on the specified position. Specifically, the control unit 110 calculates the distance from the specified position to the head 18 in the first transport direction. Based on the calculated distance, the control unit 110 calculates the remaining distance over which the print medium 100 can be transported while the head 18 continues printing. Then, the control unit 110 sets the calculated distance as the printable range, and continues until the paper is conveyed the distance.

以上のように、印刷装置10は、複数の検出部43のうち、遮断位置にある遮断部材41により印刷媒体100の搬送が遮断された場合において印刷媒体100を検出した2以上の検出部43を特定し、搬送部Hにより印刷媒体100を第1搬送方向又は第2搬送方向に搬送し、特定した2以上の検出部43のうち、印刷媒体100の検出状態が印刷媒体100の搬送中に変化した検出部43の個数に応じて、印刷媒体100の位置のうち印刷媒体100の端部の位置を特定し、特定した印刷媒体100の端部の位置に基づいて、印刷媒体100の印刷可能範囲を設定する。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 As described above, the printing apparatus 10 selects two or more of the plurality of detection units 43 that have detected the print medium 100 when the conveyance of the print medium 100 has been blocked by the blocking member 41 in the blocking position. The printing medium 100 is identified and transported in the first transport direction or the second transport direction by the transport unit H, and the detection state of the print medium 100 changes during transport of the print medium 100 among the two or more identified detection units 43. The position of the end of the print medium 100 among the positions of the print medium 100 is specified according to the number of detection units 43 detected, and the printable range of the print medium 100 is determined based on the specified position of the end of the print medium 100. Set. Thereby, the printing apparatus 10 can suppress failure in printing an image on the print medium 100 even if skew occurs during conveyance of the print medium 100.

また、印刷装置10は、2以上の対象検出部を特定した後、搬送部Hにより印刷媒体100を第1搬送方向に搬送し、特定した2以上の検出部43のうち、印刷媒体100を検出している状態から印刷媒体100を検出していない状態へと印刷媒体100の搬送中に検出状態が変化した検出部43の個数に応じて、印刷媒体100の位置のうち印刷媒体100の後端の位置を、前述の印刷媒体100の端部として特定し、特定した印刷媒体100の後端の位置に基づいて、印刷媒体100の印刷可能範囲を設定する、構成が用いられてもよい。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、特定した印刷媒体100の後端の位置に基づいて、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 Further, after identifying two or more target detection units, the printing device 10 transports the print medium 100 in the first transport direction by the transport unit H, and detects the print medium 100 from among the two or more identified detection units 43. The rear end of the print medium 100 among the positions of the print medium 100 may A configuration may be used in which the position is specified as the end of the print medium 100 described above, and the printable range of the print medium 100 is set based on the specified position of the rear end of the print medium 100. As a result, even if a skew occurs during conveyance of the print medium 100, the printing apparatus 10 can prevent printing of an image on the print medium 100 from failing based on the specified position of the trailing edge of the print medium 100. It is possible to prevent this from happening.

また、印刷装置10は、2以上の対象検出部を特定した後、搬送部Hにより印刷媒体100を第1搬送方向に搬送し、特定した2以上の検出部43のうち、印刷媒体100を検出していない状態から印刷媒体100を検出している状態へと印刷媒体100の搬送中に検出状態が変化する検出部43の個数に応じて、印刷媒体100の位置のうち印刷媒体100の前端の位置を、前述の印刷媒体100の端部として特定し、特定した印刷媒体100の前端に基づいて、印刷媒体100の印刷可能範囲を設定する、構成が用いられてもよい。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、特定した印刷媒体100の前端の位置に基づいて、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 Further, after identifying two or more target detection units, the printing device 10 transports the print medium 100 in the first transport direction by the transport unit H, and detects the print medium 100 from among the two or more identified detection units 43. Depending on the number of detection units 43 whose detection state changes from a state in which the print medium 100 is not detected to a state in which the print medium 100 is detected while the print medium 100 is being conveyed, A configuration may be used in which the position is specified as the edge of the print medium 100 described above, and the printable range of the print medium 100 is set based on the specified front edge of the print medium 100. As a result, even if skew occurs during conveyance of the print medium 100, the printing device 10 can prevent printing of an image on the print medium 100 from failing based on the identified position of the leading edge of the print medium 100. It is possible to prevent it from being put away.

また、印刷装置10は、遮断部材41を遮断位置に移動させた後、印刷媒体100が遮断部材41に遮断されるまで搬送部Hにより印刷媒体100を第1搬送方向に搬送し、印刷媒体100が遮断部材41に遮断された後、遮断部材41を非遮断位置に移動させ、遮断部材41を非遮断位置に移動した後、搬送部Hにより第1搬送方向に印刷媒体100を搬送し、磁気情報読書部31により磁気情報を読み取ることと、画像読取部35により印刷媒体100から画像を読み取ることと、印刷部20により印刷媒体100への印刷を行うこととの少なくともいずれかを行う、構成が用いられてもよい。 Further, after moving the blocking member 41 to the blocking position, the printing device 10 transports the printing medium 100 in the first transporting direction by the transport unit H until the printing medium 100 is blocked by the blocking member 41. is blocked by the blocking member 41, the blocking member 41 is moved to the non-blocking position, and after the blocking member 41 is moved to the non-blocking position, the printing medium 100 is transported in the first transport direction by the transport section H, and magnetic The configuration includes reading magnetic information by the information reading unit 31, reading an image from the print medium 100 by the image reading unit 35, and printing on the print medium 100 by the printing unit 20. may be used.

また、印刷装置10は、磁気情報読書部31による磁気情報の読み取りと、画像読取部35による画像の読み取りと、印刷部20による印刷との少なくともいずれかを行う前に、搬送部Hにより印刷媒体100を第2搬送方向に搬送する、構成が用いられてもよい。 Furthermore, before the printing device 10 performs at least one of reading the magnetic information by the magnetic information reading section 31, reading the image by the image reading section 35, and printing by the printing section 20, the printing device 10 uses the transport section H to read the print medium. 100 in the second transport direction may be used.

また、印刷装置10は、磁気情報読書部31による磁気情報の読み取りと、画像読取部35による画像の読み取りと、印刷部20による印刷との少なくともいずれかを行った後に、搬送部Hにより印刷媒体100を第2搬送方向に搬送する、構成が用いられてもよい。 Furthermore, after the printing device 10 performs at least one of reading the magnetic information by the magnetic information reading section 31, reading an image by the image reading section 35, and printing by the printing section 20, the printing device 10 uses the conveying section H to print the print medium. 100 in the second transport direction may be used.

<印刷装置が印刷媒体への印刷を行う処理の変形例>
以下、図9を参照し、印刷装置10が印刷媒体100への印刷を行う処理の変形例について説明する。図9は、印刷装置10が印刷媒体100への印刷を行う処理の流れの他の例を示す図である。なお、図9に示したステップS110~ステップS190の処理は、図6に示したステップS110~ステップS190の処理と同様の処理であるため、説明を省略する。また、図9に示したステップS240~ステップS270の処理は、図6に示したステップS240~ステップS270の処理と同様の処理であるため、説明を省略する。また、以下では、一例として、図9に示したステップS110の処理が行われるよりも前のタイミングにおいて、印刷媒体100へ印刷する画像と、印刷装置10に当該画像の印刷を行わせる指示とを含むコマンドを印刷装置10がホストコンピューター200から受け付けている場合について説明する。また、以下では、一例として、当該タイミングにおいて、ユーザーにより印刷媒体100が印刷装置10の手差口15に差し込まれている場合について説明する。また、以下では、一例として、当該タイミングにおいて、遮断部材41が非遮断位置に位置している場合について説明する。
<Modified example of a process in which a printing device prints on a print medium>
Hereinafter, with reference to FIG. 9, a modified example of the process in which the printing device 10 prints on the print medium 100 will be described. FIG. 9 is a diagram illustrating another example of the flow of processing in which the printing device 10 prints on the print medium 100. Note that the processing from step S110 to step S190 shown in FIG. 9 is similar to the processing from step S110 to step S190 shown in FIG. 6, and therefore the description thereof will be omitted. Furthermore, since the processing from step S240 to step S270 shown in FIG. 9 is similar to the processing from step S240 to step S270 shown in FIG. 6, the explanation will be omitted. Further, as an example, an image to be printed on the print medium 100 and an instruction to cause the printing device 10 to print the image will be explained below at a timing before the process of step S110 shown in FIG. 9 is performed. A case will be described in which the printing apparatus 10 receives a command including the command from the host computer 200. Further, as an example, a case will be described below in which the print medium 100 is inserted into the manual feed slot 15 of the printing device 10 by the user at the timing. Moreover, below, as an example, a case will be described in which the blocking member 41 is located at the non-blocking position at the timing.

制御部110は、ステップS170において画像の印刷以外の動作を行わないと判定した場合、搬送モーターM1を制御し、第2搬送方向への印刷媒体100の搬送を開始させる(ステップS310)。 When the control unit 110 determines in step S170 that no operation other than printing the image is to be performed, the control unit 110 controls the transport motor M1 to start transporting the print medium 100 in the second transport direction (step S310).

次に、制御部110は、ステップS310の処理によって開始された印刷媒体100の搬送中に、状態変化検出部の個数が所定の閾値以上となるまで待機する(ステップS320)。ただし、ステップS320では、状態変化検出部として特定する対象検出部は、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した対象検出部のことである。すなわち、制御部110は、ステップS320において、2個以上の対象検出部のうち、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した1個以上の対象検出部を、状態変化検出部として特定する。制御部110は、このような状態変化検出部の特定を、ステップS310において開始した印刷媒体100の搬送が行われている間、繰り返し行う。なお、制御部110は、所定時間が経過しても状態変化検出部の個数が所定の閾値以上とならない場合、印刷媒体100の搬送において紙ジャム等の搬送不良が発生している虞があるため、例えば、印刷媒体100の搬送を停止して、印刷装置10の図示しない表示部でエラーを報知する。 Next, the control unit 110 waits until the number of state change detection units becomes equal to or greater than a predetermined threshold during the conveyance of the print medium 100 started by the process of step S310 (step S320). However, in step S320, the detection state of the target detection unit identified as the state change detection unit changes from the state of detecting the print medium 100 to the state of not detecting the print medium 100 while the print medium 100 is being transported. This refers to the object detection unit that has changed. That is, in step S320, the control unit 110 changes the detection state of the print medium 100 from a state in which the print medium 100 is detected to a state in which the print medium 100 is not detected among the two or more target detection units. One or more target detection units that have changed during transportation are identified as state change detection units. The control unit 110 repeatedly performs such identification of the state change detection unit while the printing medium 100 is being transported, which started in step S310. Note that if the number of state change detection units does not exceed a predetermined threshold even after a predetermined period of time has elapsed, the control unit 110 determines that if the number of state change detection units does not exceed a predetermined threshold, there is a possibility that a conveyance failure such as a paper jam has occurred in the conveyance of the print medium 100. For example, the conveyance of the print medium 100 is stopped and an error is notified on a display section (not shown) of the printing apparatus 10.

ここで、図10は、スキューが生じている場合において第2搬送方向に搬送中の印刷媒体100と、印刷媒体検出部42との位置関係の一例を示す図である。なお、図10では、印刷媒体100と印刷媒体検出部42との位置関係を明確に示すため、印刷媒体100は、輪郭を示す実線によって示されている。ステップS170~ステップS190の処理によってスキューが生じていた場合、第2搬送方向に搬送中の印刷媒体100の向きは、第2搬送方向と非平行になっている。このため、当該場合、第2搬送方向に搬送中の印刷媒体100が有する辺のうち第1搬送方向側の辺は、図8に示すように、第2搬送方向と直交する方向と非平行になっている。当該辺が当該方向と非平行になっているため、第2搬送方向への印刷媒体100の搬送により8個の対象検出部は時間の経過とともに次第に1個ずつ、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が変化していく。図8に示した例では、8個の対象検出部は、第2搬送方向への印刷媒体100の搬送により、印刷装置10の左側の検出部43から印刷装置10の右側の検出部43に向かって順に1個ずつ、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が変化していく。 Here, FIG. 10 is a diagram illustrating an example of the positional relationship between the print medium 100 being conveyed in the second conveyance direction and the print medium detection unit 42 when skew occurs. Note that in FIG. 10, the print medium 100 is indicated by a solid line indicating its outline in order to clearly show the positional relationship between the print medium 100 and the print medium detection unit 42. If skew has occurred as a result of the processing in steps S170 to S190, the orientation of the print medium 100 being conveyed in the second conveyance direction is non-parallel to the second conveyance direction. Therefore, in this case, among the sides of the print medium 100 being transported in the second transport direction, the side on the first transport direction side is non-parallel to the direction orthogonal to the second transport direction, as shown in FIG. It has become. Since the relevant side is non-parallel to the relevant direction, as the print medium 100 is transported in the second transport direction, the eight object detection units gradually detect the print medium 100 one by one as time passes. The detection state changes from this state to a state where the print medium 100 is not detected. In the example shown in FIG. 8, the eight target detection units move from the detection unit 43 on the left side of the printing device 10 to the detection unit 43 on the right side of the printing device 10 by conveying the print medium 100 in the second conveyance direction. The detection state changes one by one from a state in which the print medium 100 is detected to a state in which the print medium 100 is not detected.

そこで、制御部110は、状態変化検出部として特定された対象検出部の個数が所定の閾値以上となった場合、印刷媒体100の前端の位置を特定する。具体的には、例えば、制御部110は、当該場合、印刷媒体検出部42に対応付けられた所定の第2位置と、印刷媒体100の前端の位置とが一致していると判定し、所定の第2位置を印刷媒体100の前端の位置として特定する。 Therefore, the control unit 110 specifies the position of the front end of the print medium 100 when the number of target detection units specified as state change detection units exceeds a predetermined threshold. Specifically, for example, in this case, the control unit 110 determines that the predetermined second position associated with the print medium detection unit 42 and the position of the front end of the print medium 100 match, and The second position is specified as the position of the front edge of the print medium 100.

このように、印刷装置10は、ステップS320の処理により、第2搬送方向へ搬送中の印刷媒体100の前端の位置を特定することができる。 In this way, the printing apparatus 10 can specify the position of the front end of the print medium 100 being transported in the second transport direction by the process of step S320.

制御部110は、状態変化検出部の個数が所定の閾値以上であると判定した場合(ステップS320-YES)、搬送モーターM1を制御し、第2搬送方向への印刷媒体100の搬送を停止させる(ステップS330)。 If the control unit 110 determines that the number of state change detection units is equal to or greater than the predetermined threshold (step S320-YES), the control unit 110 controls the transport motor M1 to stop transporting the print medium 100 in the second transport direction. (Step S330).

次に、制御部110は、前述した通り、印刷媒体100の前端の位置を特定する。そして、制御部110は、特定した当該位置に基づいて、印刷媒体100の印刷可能範囲を設定する(ステップS340)。具体的には、制御部110は、特定した当該位置からヘッド18までの第1搬送方向における距離を算出する。制御部110は、算出した当該距離に基づいて、ヘッド18により印刷を続けながら印刷媒体100を搬送させることが可能な残りの距離を算出する。そして、制御部110は、算出した当該距離を印刷可能範囲として設定する。 Next, the control unit 110 identifies the position of the front end of the print medium 100, as described above. Then, the control unit 110 sets the printable range of the print medium 100 based on the specified position (step S340). Specifically, the control unit 110 calculates the distance from the specified position to the head 18 in the first transport direction. Based on the calculated distance, the control unit 110 calculates the remaining distance over which the print medium 100 can be transported while the head 18 continues printing. Then, the control unit 110 sets the calculated distance as the printable range.

次に、制御部110は、搬送モーターM1を制御し、第1搬送機構部24と第2搬送機構部27と第3搬送機構部30を駆動させて、第1搬送方向への印刷媒体100の搬送を開始させる。また、制御部110は、キャリッジ駆動モーターM2を制御し、キャリッジ19をキャリッジ軸CAに沿って移動させながら、ヘッド18による印刷媒体100への画像の印刷を開始させる(ステップS350)。 Next, the control unit 110 controls the transport motor M1 to drive the first transport mechanism unit 24, the second transport mechanism unit 27, and the third transport mechanism unit 30 to move the print medium 100 in the first transport direction. Start transport. Further, the control unit 110 controls the carriage drive motor M2 and causes the head 18 to start printing an image on the print medium 100 while moving the carriage 19 along the carriage axis CA (step S350).

このように、印刷装置10は、第2搬送方向への印刷媒体100の搬送中においても、印刷媒体100の前端の位置を特定することができる。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、当該位置に基づいて、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 In this way, the printing apparatus 10 can specify the position of the front end of the print medium 100 even while the print medium 100 is being conveyed in the second conveyance direction. Thereby, even if a skew occurs during conveyance of the print medium 100, the printing device 10 can prevent failure in printing an image on the print medium 100 based on the position. can.

なお、上記において説明した制御部110は、ステップS310~ステップS340の処理において、印刷媒体100の前端の位置を特定する構成に代えて、印刷媒体100の後端の位置を特定する構成であってもよい。この場合、制御部110は、ステップS320において、状態変化検出部として特定された対象検出部の個数が所定の閾値以上となった場合、印刷媒体100の後端の位置を特定する。ただし、この場合、状態変化検出部として特定する対象検出部は、印刷媒体100を検出している状態から、印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した対象検出部のことである。そして、制御部110は、ステップS340において、特定した当該位置に基づいて、印刷媒体100の印刷可能範囲を設定する。具体的には、制御部110は、特定した当該位置からヘッド18までの第1搬送方向における距離を算出する。制御部110は、算出した当該距離に基づいて、ヘッド18により印刷を続けながら印刷媒体100を搬送させることが可能な残りの距離を算出する。そして、制御部110は、算出した当該距離を印刷可能範囲として設定し、当該距離搬送されるまで継続する。 Note that the control unit 110 described above has a configuration that specifies the position of the rear end of the print medium 100 instead of specifying the position of the front edge of the print medium 100 in the processing of steps S310 to S340. Good too. In this case, the control unit 110 specifies the position of the trailing edge of the print medium 100 when the number of target detection units specified as state change detection units exceeds a predetermined threshold in step S320. However, in this case, the detection state of the target detection unit identified as the state change detection unit changes from the state of detecting the print medium 100 to the state of not detecting the print medium 100 while the print medium 100 is being transported. This refers to the target detection unit that detects the Then, in step S340, the control unit 110 sets the printable range of the print medium 100 based on the specified position. Specifically, the control unit 110 calculates the distance from the specified position to the head 18 in the first transport direction. Based on the calculated distance, the control unit 110 calculates the remaining distance over which the print medium 100 can be transported while the head 18 continues printing. Then, the control unit 110 sets the calculated distance as the printable range, and continues until the paper is conveyed the distance.

以上のように、印刷装置10は、搬送部Hにより印刷媒体100を第2搬送方向に搬送し、特定した2以上の検出部43のうち、印刷媒体100を検出している状態から印刷媒体100を検出していない状態へと検出状態が印刷媒体100の搬送中に変化した検出部43の個数に応じて、印刷媒体100の位置のうち印刷媒体100の前端の位置を特定し、特定した印刷媒体100の前端の位置に基づいて、印刷媒体100の印刷可能範囲を設定する、構成が用いられてもよい。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、印刷媒体100の前端の位置に基づいて、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 As described above, the printing device 10 transports the print medium 100 in the second transport direction by the transport unit H, and detects the print medium 100 from among the two or more identified detection units 43. The position of the leading edge of the print medium 100 among the positions of the print medium 100 is specified according to the number of detection units 43 whose detection state has changed to a state of not detecting the print medium 100 during conveyance of the print medium 100, and the specified print A configuration may be used in which the printable range of the print medium 100 is set based on the position of the leading edge of the medium 100. This prevents the printing device 10 from failing in printing an image on the print medium 100 based on the position of the front edge of the print medium 100 even if skew occurs during conveyance of the print medium 100. can be suppressed.

また、印刷装置10は、搬送部Hにより印刷媒体100を第2搬送方向に搬送し、特定した2以上の検出部43のうち、印刷媒体100を検出していない状態から印刷媒体100を検出している状態へと検出状態が印刷媒体100の搬送中に変化した検出部43の個数に応じて、印刷媒体100の位置のうち印刷媒体100の後端の位置を特定し、特定した印刷媒体100の後端の位置に基づいて、印刷媒体100の印刷可能範囲を設定する、構成が用いられてもよい。これにより、印刷装置10は、印刷媒体100の搬送中にスキューが発生した場合であっても、印刷媒体100の後端の位置に基づいて、印刷媒体100への画像の印刷が失敗してしまうことを抑制することができる。 In addition, the printing device 10 transports the print medium 100 in the second transport direction by the transport unit H, and detects the print medium 100 from a state where the print medium 100 is not detected by any of the two or more identified detection units 43. The position of the trailing edge of the print medium 100 among the positions of the print medium 100 is specified according to the number of detection units 43 whose detection state has changed to the state during conveyance of the print medium 100, and the position of the rear end of the print medium 100 is specified. A configuration may be used in which the printable range of the print medium 100 is set based on the position of the trailing edge of the print medium 100 . As a result, even if skew occurs during conveyance of the print medium 100, the printing device 10 fails to print an image on the print medium 100 based on the position of the trailing edge of the print medium 100. This can be suppressed.

なお、上記において説明した印刷媒体100の前端の位置又は印刷媒体100の後端の位置を特定する処理は、印刷装置10への適用に代えて、例えば、スキャナー等のシートを搬送する動作を行う他の電子機器に適用されてもよい。 Note that the process of specifying the position of the front end of the print medium 100 or the position of the rear end of the print medium 100 described above is not applied to the printing apparatus 10, but may be performed by, for example, an operation of conveying a sheet using a scanner or the like. It may also be applied to other electronic devices.

以上説明したように、実施形態に係る印刷装置は、印刷媒体が搬送される搬送路の上流から下流に向かって印刷媒体が搬送される第1搬送方向への印刷媒体の搬送と、搬送路の下流から上流に向かって印刷媒体が搬送される第2搬送方向への印刷媒体の搬送とを行う搬送部と、搬送路に沿った印刷媒体の搬送を遮断する遮断位置と、搬送路に沿った印刷媒体の搬送を遮断しない非遮断位置とのそれぞれに移動可能な遮断部材と、搬送路と交わる方向に互いに所定間隔離れて設けられており、搬送路に沿って搬送される印刷媒体を検出可能な複数の検出部と、制御部と、を備え、制御部は、複数の検出部のうち、遮断位置にある遮断部材により印刷媒体の搬送が遮断された場合において印刷媒体を検出した2以上の検出部を特定し、搬送部により印刷媒体を第1搬送方向又は第2搬送方向に搬送し、特定した2以上の検出部のうち、印刷媒体の検出状態が印刷媒体の搬送中に変化した検出部の個数に応じて、印刷媒体の位置のうち印刷媒体の端部の位置を特定し、特定した印刷媒体の端部の位置に基づいて、印刷媒体の印刷可能範囲を設定する。これにより、印刷装置は、搬送媒体の搬送中にスキューが発生した場合であっても、印刷媒体への画像の印刷が失敗してしまうことを抑制することができる。ここで、上記において説明した例では、印刷装置10は、当該印刷装置の一例である。また、上記において説明した例では、印刷媒体100は、当該印刷媒体の一例である。また、上記において説明した例では、搬送部Hは、当該搬送部の一例である。また、上記において説明した例では、遮断部材41は、当該遮断部材の一例である。また、上記において説明した例では、検出部43は、当該検出部の一例である。また、上記において説明した例では、制御部110は、当該制御部の一例である。また、上記において説明した例では、2個以上の対象検出部は、遮断位置にある遮断部材により印刷媒体の搬送が遮断された場合において印刷媒体を検出した2以上の検出部の一例である。また、上記において説明した例では、状態変化検出部は、特定した2以上の検出部のうち、印刷媒体の検出状態が変化する検出部の一例である。また、上記において説明した例では、印刷媒体100の前端、印刷媒体100の後端のそれぞれは、印刷媒体の端部の一例である。 As described above, the printing apparatus according to the embodiment is capable of transporting the print medium in the first transport direction in which the print medium is transported from upstream to downstream of the transport path along which the print medium is transported; a conveyance unit that conveys the print medium in a second conveyance direction in which the print medium is conveyed from downstream to upstream; a blocking position that blocks conveyance of the print medium along the conveyance path; A blocking member that is movable to a non-blocking position that does not block the conveyance of the print medium and a non-blocking position that does not block the conveyance of the print medium is provided at a predetermined distance from each other in the direction intersecting the conveyance path, and is capable of detecting the print medium conveyed along the conveyance path. a plurality of detection units and a control unit, and the control unit includes two or more of the plurality of detection units that detect the print medium when conveyance of the print medium is blocked by the blocking member in the blocking position. A detection unit is identified, the print medium is transported in the first transport direction or the second transport direction by the transport unit, and detection that the detection state of the print medium changes during transport of the print medium among the two or more identified detection units. According to the number of copies, the position of the end of the print medium is specified among the positions of the print medium, and the printable range of the print medium is set based on the specified position of the end of the print medium. Thereby, the printing device can suppress failure in printing an image on the print medium even if skew occurs during conveyance of the conveyance medium. Here, in the example described above, the printing device 10 is an example of the printing device. Furthermore, in the example described above, the print medium 100 is an example of the print medium. Moreover, in the example explained above, the conveyance part H is an example of the said conveyance part. Further, in the example described above, the blocking member 41 is an example of the blocking member. Furthermore, in the example described above, the detection unit 43 is an example of the detection unit. Furthermore, in the example described above, the control unit 110 is an example of the control unit. Furthermore, in the example described above, the two or more object detection units are an example of the two or more detection units that detect the print medium when the conveyance of the print medium is blocked by the blocking member in the blocking position. Furthermore, in the example described above, the state change detection section is an example of a detection section whose detection state of the print medium changes among the two or more specified detection sections. Furthermore, in the example described above, each of the front end of the print medium 100 and the rear end of the print medium 100 is an example of an end portion of the print medium.

また、印刷装置では、制御部は、2以上の検出部を特定した後、搬送部により印刷媒体を第1搬送方向に搬送し、特定した2以上の検出部のうち、印刷媒体を検出している状態から印刷媒体を検出していない状態へと検出状態が印刷媒体の搬送中に変化した検出部の個数に応じて、印刷媒体の位置のうち印刷媒体の後端の位置を印刷媒体の端部として特定し、特定した印刷媒体の後端の位置に基づいて、印刷媒体の印刷可能範囲を設定する、構成が用いられてもよい。 Further, in the printing device, the control unit, after specifying two or more detection units, causes the conveyance unit to convey the print medium in the first conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection state changes from a state in which the print medium is not detected to a state in which the print medium is not detected while the print medium is being conveyed, the position of the trailing edge of the print medium among the positions of the print medium is A configuration may be used in which the printable range of the print medium is set based on the position of the specified trailing edge of the print medium.

また、印刷装置では、制御部は、2以上の検出部を特定した後、搬送部により印刷媒体を第1搬送方向に搬送し、特定した2以上の検出部のうち、印刷媒体を検出していない状態から印刷媒体を検出している状態へと検出状態が印刷媒体の搬送中に変化した検出部の個数に応じて、印刷媒体の位置のうち印刷媒体の前端の位置を印刷媒体の端部として特定し、特定した印刷媒体の前端に基づいて、印刷媒体の印刷可能範囲を設定する、構成が用いられてもよい。 Further, in the printing device, after specifying two or more detection units, the control unit causes the conveyance unit to convey the print medium in the first conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection state changes from a state in which the print medium is not detected to a state in which the print medium is being detected, the position of the front edge of the print medium among the positions of the print medium is changed to the position of the front edge of the print medium. A configuration may be used in which the printable range of the print medium is set based on the specified leading edge of the print medium.

また、印刷装置では、制御部は、2以上の検出部を特定した後、搬送部により印刷媒体を第2搬送方向に搬送し、特定した2以上の検出部のうち、印刷媒体を検出していない状態から印刷媒体を検出している状態へと検出状態が印刷媒体の搬送中に変化した検出部の個数に応じて、印刷媒体の位置のうち印刷媒体の後端の位置を印刷媒体の端部として特定し、特定した印刷媒体の後端の位置に基づいて、印刷媒体の印刷可能範囲を設定する、構成が用いられてもよい。 Further, in the printing device, after specifying two or more detection units, the control unit causes the conveyance unit to convey the print medium in the second conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection status changes from not detecting the print medium to detecting the print medium while the print medium is being conveyed, the position of the trailing edge of the print medium among the positions of the print medium is A configuration may be used in which the printable range of the print medium is set based on the position of the specified trailing edge of the print medium.

また、印刷装置では、制御部は、2以上の検出部を特定した後、搬送部により印刷媒体を第2搬送方向に搬送し、特定した2以上の検出部のうち、印刷媒体を検出している状態から印刷媒体を検出していない状態へと検出状態が印刷媒体の搬送中に変化した検出部の個数に応じて、印刷媒体の位置のうち印刷媒体の前端の位置を印刷媒体の端部として特定し、特定した印刷媒体の前端の位置に基づいて、印刷媒体の印刷可能範囲を設定する、構成が用いられてもよい。 Further, in the printing device, the control unit, after specifying two or more detection units, causes the conveyance unit to convey the print medium in the second conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection state changes from a state where the print medium is not detected to a state where the print medium is not detected, the position of the front edge of the print medium among the positions of the print medium is changed to the position of the front edge of the print medium. A configuration may be used in which the printable range of the print medium is set based on the specified position of the leading edge of the print medium.

また、印刷装置は、印刷媒体に含まれる磁気情報を読み取る磁気読取部と、印刷媒体に含まれる画像を読み取る画像読取部と、印刷媒体への印刷を行う印刷部と、を備え、磁気読取部、複数の検出部、遮断部材、印刷部、画像読取部は、磁気読取部、複数の検出部、遮断部材、印刷部、画像読取部の順に第1搬送方向に向かって並んで搬送路に設けられており、制御部は、遮断部材を遮断位置に移動させた後、印刷媒体が遮断部材に遮断されるまで搬送部により印刷媒体を第1搬送方向に搬送し、印刷媒体が遮断部材に遮断された後、遮断部材を非遮断位置に移動させ、遮断部材を非遮断位置に移動した後、搬送部により第1搬送方向に印刷媒体を搬送し、磁気読取部により磁気情報を読み取ることと、画像読取部により印刷媒体から画像を読み取ることと、印刷部により印刷媒体への印刷を行うこととのうちの少なくともいずれかを行う、構成が用いられてもよい。ここで、上記において説明した例では、磁気情報読書部31は、当該磁気読取部の一例である。また、上記において説明した例では、画像読取部35は、当該画像読取部の一例である。また、上記において説明した例では、印刷部20は、当該印刷部の一例である。 The printing device also includes a magnetic reading section that reads magnetic information included in the print medium, an image reading section that reads images included in the print medium, and a printing section that prints on the print medium. , the plurality of detection parts, the blocking member, the printing part, and the image reading part are arranged in the transport path in the order of the magnetic reading part, the plurality of detection parts, the blocking member, the printing part, and the image reading part in the first transport direction. After moving the blocking member to the blocking position, the control unit causes the transport unit to transport the print medium in the first transport direction until the printing medium is blocked by the blocking member, and the control unit transports the printing medium in the first transport direction until the printing medium is blocked by the blocking member. moving the blocking member to a non-blocking position; after moving the blocking member to the non-blocking position, the transport unit transports the print medium in a first transport direction, and the magnetic reading unit reads the magnetic information; A configuration may be used in which the image reading section reads an image from a print medium, and the printing section performs at least one of printing on the print medium. Here, in the example described above, the magnetic information reading section 31 is an example of the magnetic reading section. Furthermore, in the example described above, the image reading unit 35 is an example of the image reading unit. Furthermore, in the example described above, the printing section 20 is an example of the printing section.

また、印刷装置では、制御部は、磁気読取部による磁気情報の読み取りと、画像読取部による画像の読み取りと、印刷部による印刷との少なくともいずれかを行う前に、搬送部により印刷媒体を第2搬送方向に搬送する、構成が用いられてもよい。 In addition, in the printing device, the control unit causes the transport unit to first read the print medium before the magnetic reading unit reads the magnetic information, the image reading unit reads the image, and the printing unit prints. A configuration may also be used that transports in two transport directions.

また、印刷装置では、制御部は、磁気読取部による磁気情報の読み取りと、画像読取部による画像の読み取りと、印刷部による印刷との少なくともいずれかを行った後に、搬送部により印刷媒体を第2搬送方向に搬送する、構成が用いられてもよい。 Further, in the printing device, the control unit causes the transport unit to read the print medium after at least one of reading magnetic information by the magnetic reading unit, reading an image by the image reading unit, and printing by the printing unit. A configuration may also be used that transports in two transport directions.

また、印刷装置では、制御部は、前記検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数が、複数の検出部の半分の個数より多い個数、又は、複数の検出部の半分の個数となった場合、印刷媒体100の端部の位置を特定する、構成が用いられてもよい。 In addition, in the printing device, the control unit may control the control unit to determine whether the number of the detection units whose detection state has changed during conveyance of the print medium is greater than half the number of the plurality of detection units, or half of the number of the plurality of detection units. A configuration may be used in which the position of the edge of the print medium 100 is specified when the number of print media 100 is reached.

以上、この発明の実施形態を、図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない限り、変更、置換、削除等されてもよい。 Although the embodiments of this invention have been described above in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and modifications, substitutions, deletions, etc. may be made without departing from the gist of this invention. may be done.

また、以上に説明した装置における任意の構成部の機能を実現するためのプログラムを、コンピューター読み取り可能な記録媒体に記録し、そのプログラムをコンピューターシステムに読み込ませて実行するようにしてもよい。ここで、当該装置は、例えば、印刷装置10、ホストコンピューター200等である。なお、ここでいう「コンピューターシステム」とは、OS(Operating System)や周辺機器等のハードウェアを含むものとする。また、「コンピューター読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD(Compact Disk)-ROM等の可搬媒体、コンピューターシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピューター読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムが送信された場合のサーバーやクライアントとなるコンピューターシステム内部の揮発性メモリーのように、一定時間プログラムを保持しているものも含むものとする。 Furthermore, a program for realizing the functions of arbitrary components in the apparatus described above may be recorded on a computer-readable recording medium, and the program may be read and executed by a computer system. Here, the device is, for example, the printing device 10, the host computer 200, or the like. Note that the "computer system" herein includes hardware such as an OS (Operating System) and peripheral devices. Furthermore, "computer-readable recording media" refers to portable media such as flexible disks, magneto-optical disks, ROMs, and CD (Compact Disk)-ROMs, and storage devices such as hard disks built into computer systems. . Furthermore, "computer-readable recording media" refers to volatile memory inside a computer system that serves as a server or client when a program is transmitted via a network such as the Internet or a communication line such as a telephone line. This also includes those that hold time programs.

また、上記のプログラムは、このプログラムを記憶装置等に格納したコンピューターシステムから、伝送媒体を介して、あるいは、伝送媒体中の伝送波により他のコンピューターシステムに伝送されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワークや電話回線等の通信回線のように情報を伝送する機能を有する媒体のことをいう。
また、上記のプログラムは、前述した機能の一部を実現するためのものであってもよい。さらに、上記のプログラムは、前述した機能をコンピューターシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル又は差分プログラムであってもよい。
Further, the above program may be transmitted from a computer system storing the program in a storage device or the like to another computer system via a transmission medium or by a transmission wave in a transmission medium. Here, the "transmission medium" that transmits the program refers to a medium that has a function of transmitting information, such as a network such as the Internet or a communication line such as a telephone line.
Moreover, the above-mentioned program may be for realizing a part of the above-mentioned functions. Furthermore, the above-mentioned program may be a so-called difference file or difference program that can realize the above-described functions in combination with a program already recorded in the computer system.

10…印刷装置、11…印刷装置本体、12…上部カバー、13…上部ハウジング、14…下部ハウジング、15…手差口、16…右サイドフレーム、17…左サイドフレーム、18…ヘッド、19…キャリッジ、20…印刷部、21…プラテン、22…第1搬送ローラー、23…第2搬送ローラー、24…第1搬送機構部、25…第3搬送ローラー、26…第4搬送ローラー、27…第2搬送機構部、28…第5搬送ローラー、29…第6搬送ローラー、30…第3搬送機構部、31…磁気情報読書部、32…前方印刷媒体ガイド、33…後方印刷媒体ガイド、35…画像読取部、41…遮断部材、42…印刷媒体検出部、43…検出部、100…印刷媒体、101…磁気ストライプ、110…制御部、120…通信部、200…ホストコンピューター、CA…キャリッジ軸、F…押え部、H…搬送部、M1…搬送モーター、M2…キャリッジ駆動モーター、M3…突当モーター、TC…三次元座標系 DESCRIPTION OF SYMBOLS 10... Printing device, 11... Printing device main body, 12... Upper cover, 13... Upper housing, 14... Lower housing, 15... Manual input port, 16... Right side frame, 17... Left side frame, 18... Head, 19... Carriage, 20...Printing section, 21...Platen, 22...First conveyance roller, 23...Second conveyance roller, 24...First conveyance mechanism section, 25...Third conveyance roller, 26...Fourth conveyance roller, 27...First conveyance roller 2 conveyance mechanism section, 28...5th conveyance roller, 29...6th conveyance roller, 30...3rd conveyance mechanism section, 31...magnetic information reading section, 32...front print medium guide, 33...rear print medium guide, 35... Image reading unit, 41...Block member, 42...Print medium detection unit, 43...Detection unit, 100...Print medium, 101...Magnetic stripe, 110...Control unit, 120...Communication unit, 200...Host computer, CA...Carriage shaft , F... Presser section, H... Conveyance section, M1... Conveyance motor, M2... Carriage drive motor, M3... Abutting motor, TC... Three-dimensional coordinate system

Claims (10)

印刷媒体が搬送される搬送路の上流から下流に向かって前記印刷媒体が搬送される第1搬送方向への前記印刷媒体の搬送と、前記搬送路の下流から上流に向かって前記印刷媒体が搬送される第2搬送方向への前記印刷媒体の搬送とを行う搬送部と、
前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断位置と、前記搬送路に沿った前記印刷媒体の搬送を遮断しない非遮断位置とのそれぞれに移動可能な遮断部材と、
前記搬送路と交わる方向に互いに所定間隔離れて設けられており、前記搬送路に沿って搬送される前記印刷媒体を検出可能な複数の検出部と、
制御部と、
を備え、
前記制御部は、
前記複数の前記検出部のうち、前記遮断位置にある前記遮断部材により前記印刷媒体の搬送が遮断された場合において前記印刷媒体を検出した2以上の前記検出部を特定し、
前記搬送部により前記印刷媒体を前記第1搬送方向又は前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体の検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の端部の位置を特定し、
特定した前記印刷媒体の端部の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
印刷装置。
Conveying the print medium in a first conveyance direction in which the print medium is conveyed from upstream to downstream of a conveyance path, and conveying the print medium from downstream to upstream of the conveyance path. a conveyance unit that conveys the print medium in a second conveyance direction;
a blocking member that is movable to a blocking position that blocks transportation of the printing medium along the transportation path and a non-blocking position that does not block transportation of the printing medium along the transportation path;
a plurality of detection units that are provided at a predetermined distance from each other in a direction intersecting the conveyance path and can detect the print medium conveyed along the conveyance path;
a control unit;
Equipped with
The control unit includes:
out of the plurality of detection units, identifying two or more of the detection units that have detected the print medium when conveyance of the print medium is blocked by the blocking member in the blocking position;
The transport unit transports the print medium in the first transport direction or the second transport direction, and the detection state of the print medium changes during transport of the print medium among the two or more identified detection units. specifying the position of an end of the print medium among the positions of the print medium according to the number of the detection units that have been detected;
setting a printable range of the print medium based on the identified position of the end of the print medium;
Printing device.
前記制御部は、前記2以上の前記検出部を特定した後、前記搬送部により前記印刷媒体を前記第1搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体を検出している状態から前記印刷媒体を検出していない状態へと前記印刷媒体の搬送中に前記検出状態が変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の後端の位置を前記端部の位置として特定し、
特定した前記後端の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
請求項1に記載の印刷装置。
After specifying the two or more detection units, the control unit causes the conveyance unit to convey the print medium in the first conveyance direction, and selects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection state changes from a state in which the print medium is detected to a state in which the print medium is not detected while the print medium is being conveyed, the position of the print medium in the position of the print medium is determined. identifying the position of the rear end as the position of the end;
setting a printable range of the print medium based on the specified position of the trailing edge;
The printing device according to claim 1.
前記制御部は、前記2以上の前記検出部を特定した後、前記搬送部により前記印刷媒体を前記第1搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体を検出していない状態から前記印刷媒体を検出している状態へと前記印刷媒体の搬送中に前記検出状態が変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の前端の位置を前記端部の位置として特定し、
特定した前記前端の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
請求項1に記載の印刷装置。
After specifying the two or more detection units, the control unit causes the conveyance unit to convey the print medium in the first conveyance direction, and selects the print medium from among the two or more specified detection units. Depending on the number of the detection units whose detection state has changed from a state of not detecting the print medium to a state of detecting the print medium while the print medium is being conveyed, the position of the print medium among the positions of the print medium is determined. identifying the position of the front end as the position of the end;
setting a printable range of the print medium based on the identified position of the front end;
The printing device according to claim 1.
前記制御部は、前記2以上の前記検出部を特定した後、前記搬送部により前記印刷媒体を前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体を検出していない状態から前記印刷媒体を検出している状態へと前記印刷媒体の搬送中に前記検出状態が変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の後端の位置を前記端部の位置として特定し、
特定した前記後端の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
請求項1に記載の印刷装置。
After specifying the two or more detection units, the control unit causes the conveyance unit to convey the print medium in the second conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of the detection units whose detection state has changed from a state of not detecting the print medium to a state of detecting the print medium while the print medium is being conveyed, the position of the print medium among the positions of the print medium is determined. identifying the position of the rear end as the position of the end;
setting a printable range of the print medium based on the specified position of the trailing edge;
The printing device according to claim 1.
前記制御部は、前記2以上の前記検出部を特定した後、前記搬送部により前記印刷媒体を前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体を検出している状態から前記印刷媒体を検出していない状態へと前記印刷媒体の搬送中に前記検出状態が変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の前端の位置を前記端部の位置として特定し、
特定した前記前端の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
請求項1に記載の印刷装置。
After specifying the two or more detection units, the control unit causes the conveyance unit to convey the print medium in the second conveyance direction, and detects the print medium from among the two or more specified detection units. Depending on the number of detection units whose detection state changes from a state in which the print medium is detected to a state in which the print medium is not detected while the print medium is being conveyed, the position of the print medium in the position of the print medium is determined. identifying the position of the front end as the position of the end;
setting a printable range of the print medium based on the identified position of the front end;
The printing device according to claim 1.
前記印刷媒体に含まれる磁気情報を読み取る磁気情報読取部と、
前記印刷媒体に含まれる画像を読み取る画像読取部と、
前記印刷媒体への印刷を行う印刷部と、
を備え、
前記磁気情報読取部、前記複数の前記検出部、前記遮断部材、前記印刷部、前記画像読取部は、前記磁気情報読取部、前記複数の前記検出部、前記遮断部材、前記印刷部、前記画像読取部の順に前記第1搬送方向に向かって並んで前記搬送路に設けられており、
前記制御部は、
前記遮断部材を前記遮断位置に移動させた後、前記印刷媒体が前記遮断部材に遮断されるまで前記搬送部により前記印刷媒体を前記第1搬送方向に搬送し、
前記印刷媒体が前記遮断部材に遮断された後、前記遮断部材を前記非遮断位置に移動させ、
前記遮断部材を前記非遮断位置に移動した後、前記搬送部により前記第1搬送方向に前記印刷媒体を搬送し、前記磁気情報読取部により前記磁気情報を読み取ることと、前記画像読取部により前記印刷媒体から画像を読み取ることと、前記印刷部により前記印刷媒体への印刷を行うこととの少なくともいずれかを行う、
請求項1から5のうちいずれか一項に記載の印刷装置。
a magnetic information reading unit that reads magnetic information included in the print medium;
an image reading unit that reads an image included in the print medium;
a printing unit that prints on the print medium;
Equipped with
The magnetic information reading section, the plurality of detection sections, the blocking member, the printing section, and the image reading section include the magnetic information reading section, the plurality of detection sections, the blocking member, the printing section, and the image reading section. are provided in the conveyance path in line in the order of the reading units toward the first conveyance direction;
The control unit includes:
After moving the blocking member to the blocking position, the printing medium is transported in the first transporting direction by the transport unit until the printing medium is blocked by the blocking member,
After the print medium is blocked by the blocking member, moving the blocking member to the non-blocking position,
After moving the blocking member to the non-blocking position, the conveyance unit conveys the print medium in the first conveyance direction, the magnetic information reading unit reads the magnetic information, and the image reading unit reads the print medium. performing at least one of reading an image from a print medium and printing onto the print medium by the printing unit;
A printing device according to any one of claims 1 to 5.
前記制御部は、
前記磁気情報読取部による前記磁気情報の読み取りと、前記画像読取部による前記画像の読み取りと、前記印刷部による印刷との少なくともいずれかを行う前に、前記搬送部により前記印刷媒体を前記第2搬送方向に搬送する、
請求項6に記載の印刷装置。
The control unit includes:
Before at least one of reading the magnetic information by the magnetic information reading section, reading the image by the image reading section, and printing by the printing section, the printing medium is transferred to the second Convey in the conveying direction,
The printing device according to claim 6.
前記制御部は、
前記磁気情報読取部による前記磁気情報の読み取りと、前記画像読取部による前記画像の読み取りと、前記印刷部による印刷との少なくともいずれかを行った後に、前記搬送部により前記印刷媒体を前記第2搬送方向に搬送する、
請求項6又は7に記載の印刷装置。
The control unit includes:
After at least one of reading the magnetic information by the magnetic information reading unit, reading the image by the image reading unit, and printing by the printing unit, the printing medium is transferred to the second Convey in the conveying direction,
The printing device according to claim 6 or 7.
前記制御部は、前記検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数が、前記複数の前記検出部の半分の個数より多い個数、又は、前記複数の前記検出部の半分の個数となった場合、前記端部の位置を特定する、
請求項1から8のうちいずれか一項に記載の印刷装置。
The control unit is configured such that the number of the detection units whose detection states have changed during conveyance of the print medium is greater than half of the plurality of detection units, or half of the plurality of detection units. If the number of pieces is reached, specifying the position of the end portion;
A printing device according to any one of claims 1 to 8.
印刷媒体が搬送される搬送路の上流から下流に向かって前記印刷媒体が搬送される第1搬送方向への前記印刷媒体の搬送と、前記搬送路の下流から上流に向かって前記印刷媒体が搬送される第2搬送方向への前記印刷媒体の搬送とを行う搬送部と、前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断位置と、前記搬送路に沿った前記印刷媒体の搬送を遮断する遮断しない非遮断位置とのそれぞれに移動可能な遮断部材と、前記搬送路と交わる方向に互いに所定間隔離れて設けられており、前記搬送路に沿って搬送される前記印刷媒体を検出可能な複数の検出部と、備える印刷装置の制御方法であって、
前記複数の前記検出部のうち、前記遮断位置にある前記遮断部材により前記印刷媒体の搬送が遮断された場合において前記印刷媒体を検出した2以上の前記検出部を特定し、
前記搬送部により前記印刷媒体を前記第1搬送方向又は前記第2搬送方向に搬送し、特定した前記2以上の前記検出部のうち、前記印刷媒体の検出状態が前記印刷媒体の搬送中に変化した前記検出部の個数に応じて、前記印刷媒体の位置のうち前記印刷媒体の端部の位置を特定し、
特定した前記印刷媒体の端部の位置に基づいて、前記印刷媒体の印刷可能範囲を設定する、
印刷装置の制御方法。
Conveying the print medium in a first conveyance direction in which the print medium is conveyed from upstream to downstream of the conveyance path, and conveying the print medium from downstream to upstream of the conveyance path. a transport unit that transports the print medium in a second transport direction, a blocking position that blocks transport of the print medium along the transport path, and a blocking position that blocks transport of the print medium along the transport path; A blocking member movable to a blocking position and a non-blocking position, and a blocking member provided at a predetermined distance from each other in a direction intersecting the transport path, and capable of detecting the print medium transported along the transport path. A method of controlling a printing device including a plurality of detection units, the method comprising:
out of the plurality of detection units, identifying two or more of the detection units that have detected the print medium when conveyance of the print medium is blocked by the blocking member in the blocking position;
The printing medium is transported by the transporting unit in the first transporting direction or the second transporting direction, and the detection state of the printing medium among the two or more identified detecting units changes while the printing medium is transporting. specifying a position of an edge of the print medium among the positions of the print medium according to the number of the detection units that have been detected;
setting a printable range of the print medium based on the identified position of the end of the print medium;
How to control a printing device.
JP2020021328A 2020-02-12 2020-02-12 Printing device and method of controlling the printing device Active JP7404913B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2020021328A JP7404913B2 (en) 2020-02-12 2020-02-12 Printing device and method of controlling the printing device
CN202110180183.XA CN113247654B (en) 2020-02-12 2021-02-08 Printing apparatus and control method of printing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020021328A JP7404913B2 (en) 2020-02-12 2020-02-12 Printing device and method of controlling the printing device

Publications (2)

Publication Number Publication Date
JP2021127193A JP2021127193A (en) 2021-09-02
JP7404913B2 true JP7404913B2 (en) 2023-12-26

Family

ID=77181401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020021328A Active JP7404913B2 (en) 2020-02-12 2020-02-12 Printing device and method of controlling the printing device

Country Status (2)

Country Link
JP (1) JP7404913B2 (en)
CN (1) CN113247654B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002037484A (en) 2000-07-21 2002-02-06 Shinko Seisakusho Co Ltd Printer
JP2006076293A (en) 2004-08-12 2006-03-23 Canon Inc Recording apparatus and recording method
JP2008221748A (en) 2007-03-15 2008-09-25 Seiko Epson Corp Fluid ejecting apparatus and fluid ejecting method in fluid ejecting apparatus
JP2009039952A (en) 2007-08-09 2009-02-26 Oki Data Corp Printing device
JP2011146833A (en) 2010-01-13 2011-07-28 Seiko Epson Corp Optical reading device, and control method and control program for the same
JP2014046459A (en) 2012-08-29 2014-03-17 Seiko Epson Corp Electronic apparatus, and control method for the electronic device
US20150347063A1 (en) 2014-06-03 2015-12-03 Toshiba Tec Kabushiki Kaisha Printer apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000198581A (en) * 1998-12-28 2000-07-18 Fujitsu Ltd Sheet supply device and recording device
JP2004330583A (en) * 2003-05-07 2004-11-25 Seiko Epson Corp Liquid ejection device, liquid ejection method, printing system
US7699460B2 (en) * 2004-08-12 2010-04-20 Canon Kabushiki Kaisha Printing apparatus and printing method
CN101554808A (en) * 2008-04-07 2009-10-14 金宝电子工业股份有限公司 Ink jet printer and method for adjusting printing range thereof
JP6180332B2 (en) * 2014-01-21 2017-08-16 株式会社沖データ Medium detection method, medium detection apparatus, and printing apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002037484A (en) 2000-07-21 2002-02-06 Shinko Seisakusho Co Ltd Printer
JP2006076293A (en) 2004-08-12 2006-03-23 Canon Inc Recording apparatus and recording method
JP2008221748A (en) 2007-03-15 2008-09-25 Seiko Epson Corp Fluid ejecting apparatus and fluid ejecting method in fluid ejecting apparatus
JP2009039952A (en) 2007-08-09 2009-02-26 Oki Data Corp Printing device
JP2011146833A (en) 2010-01-13 2011-07-28 Seiko Epson Corp Optical reading device, and control method and control program for the same
JP2014046459A (en) 2012-08-29 2014-03-17 Seiko Epson Corp Electronic apparatus, and control method for the electronic device
US20150347063A1 (en) 2014-06-03 2015-12-03 Toshiba Tec Kabushiki Kaisha Printer apparatus

Also Published As

Publication number Publication date
JP2021127193A (en) 2021-09-02
CN113247654B (en) 2023-04-04
CN113247654A (en) 2021-08-13

Similar Documents

Publication Publication Date Title
JP4398797B2 (en) Medium width detection device
JP2010070363A (en) Conveyance mechanism and printer
JP7404913B2 (en) Printing device and method of controlling the printing device
JP4314174B2 (en) Recording apparatus and recording medium conveyance control method in the apparatus
JP3871008B2 (en) Platen mechanism, printing apparatus using the same, and control method therefor
US6805508B2 (en) Skew-correcting media delivery system and method
JP2012025078A (en) Information reading and printing apparatus, control method for the information reading and printing apparatus, and control program
JP4553847B2 (en) Medium transport device
JP3638768B2 (en) Passbook slip printer
JP2000280576A (en) Printer and control method thereof
JP4218535B2 (en) Printing device
CN203267490U (en) Medium processing apparatus
JP4534467B2 (en) Printing method
JP2009223947A (en) Recording device and method for controlling the same
JP7435254B2 (en) Printing device and method of controlling the printing device
JP2007283553A (en) Control method for print medium processing apparatus and print medium processing apparatus
JP3531303B2 (en) Printer and control method thereof
JP7238458B2 (en) Passbook printer
US20210237493A1 (en) Printing apparatus
JP2021190821A (en) Printing apparatus and printing apparatus control method
JP4720087B2 (en) Printing apparatus and printing method
JP4599845B2 (en) Printing device
JP2021187107A (en) Printing equipment
JP2002361957A (en) Printer equipped with magnetic reader and printing method of check paper
JPH11227978A (en) Sheet processing device and recording device

Legal Events

Date Code Title Description
RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20200821

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20210914

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20211101

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20231106

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20231127

R150 Certificate of patent or registration of utility model

Ref document number: 7404913

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150