[go: up one dir, main page]

JP2017145078A - Printer - Google Patents

Printer Download PDF

Info

Publication number
JP2017145078A
JP2017145078A JP2016026143A JP2016026143A JP2017145078A JP 2017145078 A JP2017145078 A JP 2017145078A JP 2016026143 A JP2016026143 A JP 2016026143A JP 2016026143 A JP2016026143 A JP 2016026143A JP 2017145078 A JP2017145078 A JP 2017145078A
Authority
JP
Japan
Prior art keywords
medium
path
sensor
transport
unit
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.)
Granted
Application number
JP2016026143A
Other languages
Japanese (ja)
Other versions
JP6746938B2 (en
Inventor
森山 隆司
Takashi Moriyama
隆司 森山
前田 浩之
Hiroyuki Maeda
浩之 前田
中澤 篤史
Atsushi Nakazawa
篤史 中澤
六波羅 憲綱
Noritsuna Rokuhara
憲綱 六波羅
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 JP2016026143A priority Critical patent/JP6746938B2/en
Publication of JP2017145078A publication Critical patent/JP2017145078A/en
Application granted granted Critical
Publication of JP6746938B2 publication Critical patent/JP6746938B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controlling Sheets Or Webs (AREA)
  • Conveyance By Endless Belt Conveyors (AREA)
  • Feeding Of Articles By Means Other Than Belts Or Rollers (AREA)

Abstract

【課題】媒体検出装置を備えた印刷装置において、印刷装置の媒体幅方向のサイズ寸法を小さく抑えることができる印刷装置を提供する。【解決手段】印刷装置は、媒体を載置可能な媒体載置部(カセット及び給送トレイ)と、媒体載置部から媒体を搬送する搬送ユニットと、媒体に印刷する印刷ヘッドと、印刷ヘッドよりも媒体の搬送方向の上流側に配置されるとともに媒体を幅方向Xに読み取って媒体の両側の側端を検出可能な媒体検出装置80とを備える。搬送ユニットは、媒体を媒体載置部から印刷ヘッドが印刷可能な位置を通る経路で搬送する搬送経路30と、搬送経路30を通って印刷ヘッドにより一方の面が印刷された媒体を反転させつつ搬送経路の途中の位置へ戻す第3給送経路93(両面印刷経路の一例)とを備える。媒体検出装置80の読取位置は、搬送経路30と第3給送経路93との第2経路合流部J2(合流部の一例)よりも搬送方向Yの上流側に位置する。【選択図】図6In a printing apparatus provided with a medium detection apparatus, a printing apparatus capable of suppressing the size dimension of the printing apparatus in the medium width direction is provided. A printing apparatus includes a medium placement unit (a cassette and a feed tray) on which a medium can be placed, a transport unit that transports the medium from the medium placement unit, a print head that prints on the medium, and a print head. And a medium detection device 80 that is arranged on the upstream side in the medium conveyance direction and can detect the side edges on both sides of the medium by reading the medium in the width direction X. The transport unit transports the medium from the medium placement unit along a path that passes through the printable position of the print head, and reverses the medium on which one side is printed by the print head through the transport path 30. And a third feeding path 93 (an example of a double-sided printing path) that returns to a position in the middle of the transport path. The reading position of the medium detection device 80 is located on the upstream side in the transport direction Y with respect to the second path joining portion J2 (an example of the joining portion) between the transport path 30 and the third feeding path 93. [Selection] Figure 6

Description

本発明は、用紙等の媒体を搬送する搬送部と、搬送された媒体に印刷する印刷ヘッドと、媒体の搬送方向と交差する幅方向の側端を検出可能な媒体検出装置とを備えた印刷装置に関する。   The present invention provides a printing apparatus including a conveyance unit that conveys a medium such as paper, a print head that prints on the conveyed medium, and a medium detection device that can detect a side edge in the width direction that intersects the conveyance direction of the medium. Relates to the device.

従来から、この種の印刷装置の一例として、用紙等の媒体を搬送する搬送部と、媒体に印刷する印刷ヘッドとを有する印刷装置が広く知られている(例えば特許文献1等)。
例えば特許文献1には、用紙(媒体の一例)の搬送方向における印刷部よりも上流側の位置で用紙の幅を検出する紙幅検出装置(媒体検出装置の一例)を備えたシリアル方式の印刷装置(シリアルプリンター)が開示されている。この印刷装置は、モーターの駆動により用紙の搬送方向と直交する紙幅方向(主走査方向)に移動して印刷を行う印刷ヘッドを有するキャリッジと、キャリッジにおける印刷ヘッドよりも搬送方向上流側の位置に設けられた2つのセンサー(右側検出器と左側検出器)とを備える。キャリッジが紙幅方向に移動する過程で、右側検出器が用紙の右側端を検出し、左側検出器が用紙の左側端を検出する。
Conventionally, as an example of this type of printing apparatus, a printing apparatus having a conveyance unit that conveys a medium such as paper and a print head that prints on the medium is widely known (for example, Patent Document 1).
For example, Patent Document 1 discloses a serial printing apparatus including a paper width detection device (an example of a medium detection device) that detects the width of a paper at a position upstream of a printing unit in the conveyance direction of the paper (an example of a medium). (Serial printer) is disclosed. The printing apparatus includes a carriage having a print head that performs printing by moving in a paper width direction (main scanning direction) orthogonal to the paper conveyance direction by driving a motor, and a position upstream of the print head in the conveyance direction in the carriage. Two sensors (a right detector and a left detector) are provided. As the carriage moves in the paper width direction, the right detector detects the right edge of the paper, and the left detector detects the left edge of the paper.

特開2001−287405号公報JP 2001-287405 A

ところで、特許文献1に記載の紙幅検出装置は、シリアル印刷方式の印刷装置に印刷のために主走査方向に移動可能なキャリッジに設けられていたので、例えばライン印刷方式の印刷装置(ラインプリンター)など、印刷用のキャリッジを備えない印刷装置では、印刷用のキャリッジにセンサーを設ける構成は採用できない。また、印刷装置で想定される最大幅の媒体の両側端を検出できる装置を別途組み付ける場合、印刷装置の搬送方向のサイズの大型化が懸念されるという課題がある。なお、この種の課題は、特許文献1のように印刷用のキャリッジにセンサーを備える構成を、インクでセンサーが汚れることに起因する検出精度の低下を防止するために回避したい場合には、シリアル印刷方式の印刷装置でも概ね共通する。   By the way, the paper width detection device described in Patent Document 1 is provided in a carriage that can be moved in the main scanning direction for printing on a serial printing type printing device. For example, a line printing type printing device (line printer) In a printing apparatus that does not include a printing carriage, a configuration in which a sensor is provided on the printing carriage cannot be employed. Further, when a device that can detect both side edges of the maximum width medium assumed in the printing apparatus is separately assembled, there is a problem that the size of the printing apparatus in the transport direction may be increased. Note that this type of problem can be avoided when the configuration in which the printing carriage is provided with a sensor as in Patent Document 1 is to be avoided in order to prevent a decrease in detection accuracy due to the sensor being stained with ink. This is also generally common to printing-type printing apparatuses.

本発明の目的は、印刷ヘッドが移動するか否かの印刷方式に依存することなく媒体の幅方向の両側の側端を検出でき、しかも装置の搬送方向のサイズ寸法を比較的短く抑えることができる印刷装置を提供することにある。   An object of the present invention is to detect the side edges on both sides in the width direction of a medium without depending on the printing method whether or not the print head moves, and to keep the size dimension of the apparatus in the transport direction relatively short. It is an object of the present invention to provide a printing apparatus that can perform such a process.

以下、上記課題を解決するための手段及びその作用効果について記載する。
上記課題を解決する印刷装置は、媒体を載置可能な媒体載置部と、前記媒体載置部から媒体を搬送する搬送部と、前記媒体に印刷する印刷ヘッドと、前記印刷ヘッドよりも前記媒体の搬送方向の上流側に配置されるとともに前記媒体を前記搬送方向と交差する幅方向に読み取って当該媒体の両側の側端を検出可能な媒体検出装置とを備え、前記搬送部は、媒体を前記媒体載置部から前記印刷ヘッドが印刷可能な位置を通る経路で搬送する搬送経路と、前記搬送経路を通って前記印刷ヘッドにより一方の面が印刷された媒体を当該媒体の他方の面に印刷が可能な向きに反転させて前記搬送経路における前記印刷ヘッドよりも前記搬送方向の上流側に位置する合流部へ戻す両面印刷経路とを備え、前記媒体検出装置の読取位置は、前記搬送経路における前記両面印刷経路との前記合流部よりも前記搬送方向の上流側に位置する。
Hereinafter, means for solving the above-described problems and the effects thereof will be described.
A printing apparatus that solves the above problems includes a medium placement unit that can place a medium, a transport unit that transports a medium from the medium placement unit, a print head that prints on the medium, and the print head that is more than the print head. A medium detection device that is arranged upstream of the medium conveyance direction and that can detect the side edges on both sides of the medium by reading the medium in a width direction that intersects the conveyance direction; A transport path for transporting the medium from the medium placement section through a path that passes through the printable position of the print head, and a medium on one surface of which is printed by the print head through the transport path. A double-sided printing path that is reversed in a printable direction and returned to a joining portion located upstream of the print head in the transport path in the transport direction, and the reading position of the medium detection device is the transport position On the route Than the merging portion of the kicking the duplex print path located upstream of the transport direction.

この構成によれば、媒体検出装置はその読取位置が、搬送経路における両面印刷経路との合流部よりも搬送方向の上流側となる位置に配置されている。よって、媒体検出装置を設けた割に、印刷装置の搬送方向のサイズ寸法を比較的短くすることができる。例えば両面印刷経路を通って戻された一方の面が印刷された媒体も媒体検出装置に読み取らせる構成を採用しようとすると、合流部を媒体検出装置の読取位置よりも搬送方向の上流側へずらして配置する必要があり、これに伴い、両面印刷経路及び搬送経路の合流部よりも上流側に位置する部分を搬送方向の上流側へずらす必要が生じる。この場合、印刷装置の搬送方向におけるサイズ寸法が、そのずらした分だけ相対的に長くなってしまう。これに対して、一方の面が印刷された媒体は読み取らず、合流部を読取位置よりも搬送方向の下流側に配置できれば、搬送経路及び両面印刷経路のうち合流部よりも上流側に位置する部分を、なるべく下流側寄りに配置することが可能になる。よって、印刷ヘッドとは別体の媒体検出装置によって、印刷ヘッドが移動式か固定式かの印刷方式に依存することなく、媒体の幅方向の両側の側端を検出できるうえ、媒体検出装置を設けた割に、印刷装置の搬送方向のサイズ寸法を比較的短く抑えることができる。   According to this configuration, the medium detection device is disposed at a position where the reading position is upstream in the transport direction with respect to the junction with the duplex printing path in the transport path. Therefore, although the medium detection device is provided, the size of the printing device in the transport direction can be made relatively short. For example, if it is attempted to adopt a configuration in which the medium detection device also reads the medium on which one surface returned through the duplex printing path is printed, the joining portion is shifted to the upstream side in the transport direction from the reading position of the medium detection device. Accordingly, it is necessary to shift a portion located upstream of the junction of the duplex printing path and the transport path to the upstream side in the transport direction. In this case, the size in the transport direction of the printing apparatus becomes relatively long by the amount of the shift. On the other hand, if the medium on which one side is printed is not read, and the merging portion can be arranged downstream of the reading position in the conveying direction, it is positioned upstream of the merging portion in the conveying path and the duplex printing path. It becomes possible to arrange the portion as close to the downstream side as possible. Therefore, the medium detection device separate from the print head can detect both side edges in the width direction of the medium without depending on whether the print head is movable or fixed. Although provided, the size of the printing apparatus in the transport direction can be kept relatively short.

また、上記印刷装置において、印刷装置の装置本体に対して前記印刷ヘッドよりも前記搬送方向の上流側の位置に開閉可能に設けられたカバーを更に備え、前記カバーには、複数の前記媒体載置部のうち少なくとも1つに載置された媒体を給送可能な給送部の少なくとも一部と、前記搬送経路に沿って前記媒体を案内する搬送通路と前記両面印刷経路に沿って前記媒体を前記合流部へ案内する両面印刷通路とが合流する通路合流部の少なくとも一部を形成している媒体案内部材と、が組み付けられていることが好ましい。   The printing apparatus may further include a cover that can be opened and closed at a position upstream of the print head in the transport direction with respect to the apparatus main body of the printing apparatus, and the cover includes a plurality of the medium mounts. At least a part of a feeding unit capable of feeding a medium placed on at least one of the placement units, a conveyance path for guiding the medium along the conveyance path, and the medium along the duplex printing path. It is preferable that a medium guide member forming at least a part of a passage merging portion where the double-sided printing passage that guides the merging portion to the merging portion is assembled.

この構成によれば、カバーを開けると、少なくとも1つの媒体載置部に載置された媒体を給送可能な給送部の少なくとも一部と、通路合流部の少なくとも一部を形成している媒体案内部材とが、カバーと共に装置本体から外れる。このため、カバーを開けると、媒体検出装置の一部が露出し、媒体検出装置のメンテナンス等がし易くなる。また、例えば媒体検出装置の取外しが必要な場合、媒体検出装置を比較的容易に取り外すことができる。   According to this configuration, when the cover is opened, at least a part of the feeding unit capable of feeding the medium placed on the at least one medium placing unit and at least a part of the passage merging unit are formed. The medium guide member is detached from the apparatus main body together with the cover. For this reason, when the cover is opened, a part of the medium detection device is exposed, and maintenance of the medium detection device is facilitated. Further, for example, when it is necessary to remove the medium detection device, the medium detection device can be removed relatively easily.

また、上記印刷装置において、前記媒体載置部は複数備えられており、異なる前記媒体載置部から媒体が給送される少なくとも2つの給送路が合流する第1合流部は、前記合流部としての第2合流部よりも搬送方向の上流側に位置し、前記読取位置は、前記搬送方向において前記第1合流部よりも下流側、かつ前記第2合流部よりも上流側に位置することが好ましい。   In the printing apparatus, a plurality of the medium placement units are provided, and the first merge unit where at least two feeding paths through which the medium is fed from different medium placement units merges is the merge unit. The second merging section is positioned upstream of the second merging section, and the reading position is located downstream of the first merging section and upstream of the second merging section in the conveying direction. Is preferred.

この構成によれば、読取位置は、搬送方向において第1合流部よりも下流側、かつ第2合流部よりも上流側に位置するので、複数の媒体載置部のうちいずれに載置されて少なくとも2つの給送路のうちどれを通って給送された媒体も、共通に1つの媒体検出装置が読取位置で読み取ってその側端を検出することができる。   According to this configuration, since the reading position is located downstream of the first merging unit and upstream of the second merging unit in the transport direction, the reading position is placed on any of the plurality of medium placement units. A medium fed through any one of at least two feeding paths can be commonly read by a single medium detecting device at a reading position and the side edge thereof can be detected.

さらに上記印刷装置において、前記読取位置は、前記少なくとも2つの給送路を通って給送される前記媒体の少なくとも2つの給送経路が合流する第1経路合流部よりも前記搬送方向の下流側に位置することが好ましい。   Further, in the above-described printing apparatus, the reading position is downstream in the transport direction from the first path joining portion where at least two feeding paths of the medium fed through the at least two feeding paths merge. It is preferable to be located at.

この構成によれば、読取位置は、異なる媒体載置部から給送される媒体の少なくとも2つの給送経路が合流する第1経路合流部よりも搬送方向の下流側に位置するので、少なくとも2つの給送路のうちどれを通って給送される媒体も、共通の1つの媒体検出装置によってほぼ一定の距離で読み取ることが可能となる。よって、媒体載置部からどの給送路を通って給送される媒体も比較的高い精度で読み取って、一層高い側端検出精度を確保できる。   According to this configuration, since the reading position is located on the downstream side in the transport direction with respect to the first path merging unit where at least two feeding paths of the media fed from different medium placing units merge, at least 2 is provided. The medium fed through any one of the two feeding paths can be read at a substantially constant distance by one common medium detection device. Therefore, the medium fed through any of the feeding paths from the medium placing unit can be read with relatively high accuracy, and higher side edge detection accuracy can be ensured.

上記印刷装置において、前記媒体検出装置の前記読取位置は、前記搬送経路に沿って前記媒体を案内する搬送通路と、前記両面印刷経路に沿って前記媒体を前記合流部へ案内する両面印刷通路とが合流する通路合流部よりも前記搬送方向の上流側に位置することが好ましい。なお、媒体の搬送経路及び両面印刷経路はそれぞれ搬送通路及び両面印刷通路を通る経路であるため、通路合流部は、経路の合流部よりも搬送方向の上流側に位置する。   In the above-described printing apparatus, the reading position of the medium detection device includes a conveyance path that guides the medium along the conveyance path, and a double-sided printing path that guides the medium to the merging unit along the double-sided printing path. It is preferable that it is located in the upstream of the said conveyance direction rather than the channel | path confluence | merging part to which merging. The medium conveyance path and the double-sided printing path are paths that respectively pass through the conveyance path and the double-sided printing path, and therefore, the path merging portion is located on the upstream side in the conveyance direction with respect to the merging portion of the path.

この構成によれば、読取位置は、搬送通路における両面印刷通路との通路合流部よりも搬送方向の上流側に位置するので、上記の作用効果に加え、さらに一方の面に施された印刷のインクが媒体検出装置の読取位置の周辺に付着しにくくなる。よって、媒体検出装置の読取位置の周辺のインク汚れに起因する側端検出精度の低下を抑制しやすくなる。   According to this configuration, since the reading position is located on the upstream side in the transport direction with respect to the double-sided printing path in the transport path, in addition to the above-described effects, the print position applied to one surface is further increased. Ink hardly adheres to the periphery of the reading position of the medium detection device. Therefore, it is easy to suppress a decrease in side edge detection accuracy due to ink stains around the reading position of the medium detection device.

また、上記印刷装置において、前記媒体検出装置は、前記印刷ヘッドよりも搬送方向の上流側の位置で前記幅方向に移動可能なキャリッジと、前記キャリッジに設けられたセンサーと、前記キャリッジを前記センサーが最大幅の前記媒体の両側の側端を検出可能な移動範囲で移動させる動力源とを備えていることが好ましい。   Further, in the printing apparatus, the medium detection device includes a carriage that is movable in the width direction at a position upstream of the print head in the transport direction, a sensor provided on the carriage, and the carriage that is the sensor. Is preferably provided with a power source that moves side edges on both sides of the medium having the maximum width within a detectable moving range.

この構成によれば、媒体検出装置が、最大幅の媒体の幅方向の両側の側端をセンサーが検出可能な移動範囲をキャリッジが移動できる最大幅の媒体の幅よりも少し幅方向に長い形状を有しても、媒体検出装置を合流部(第2合流部)よりも搬送方向の上流側に配置されることで、媒体検出装置を設けた割に、印刷装置の搬送方向におけるサイズ寸法を比較的短くすることができる。   According to this configuration, the medium detection device has a shape that is slightly longer in the width direction than the width of the maximum width medium in which the carriage can move in the moving range in which the sensor can detect the side edges on both sides in the width direction of the maximum width medium. Even if the medium detection device is provided, the size of the printing device in the conveyance direction can be reduced by arranging the medium detection device on the upstream side in the conveyance direction from the merging portion (second merging portion). It can be made relatively short.

また、上記印刷装置において、前記キャリッジは、前記搬送部により搬送される媒体の搬送経路に対して前記印刷ヘッド側とは反対側の位置で前記幅方向に移動可能に設けられ、前記センサーは、前記搬送経路に対して前記印刷ヘッド側とは反対側の位置から前記媒体を読取り可能な光学式のセンサーであることが好ましい。   In the printing apparatus, the carriage is provided movably in the width direction at a position opposite to the print head side with respect to a conveyance path of a medium conveyed by the conveyance unit, and the sensor It is preferable that the optical sensor be capable of reading the medium from a position opposite to the print head side with respect to the transport path.

この構成によれば、搬送部により搬送される媒体の搬送経路に対して印刷ヘッド側とは反対側の位置で光学式のセンサーはキャリッジと共に幅方向に移動するので、媒体を幅方向に読み取って媒体の側端を検出できる。このとき、センサーは印刷ヘッドからのインクミスト等から媒体により保護される。   According to this configuration, since the optical sensor moves in the width direction together with the carriage at a position opposite to the print head side with respect to the transport path of the medium transported by the transport section, the medium is read in the width direction. The side edge of the medium can be detected. At this time, the sensor is protected by the medium from ink mist from the print head.

さらに上記印刷装置において、前記媒体検出装置は、前記キャリッジ及び前記光学式のセンサーを収容する筐体を備え、前記筐体は、前記搬送経路と対向する部分に、前記媒体載置部から搬送される媒体を支持する媒体支持部を備え、前記媒体支持部には、前記キャリッジの移動に伴う前記光学式のセンサーの移動経路と対応する領域に光透過性の窓部が設けられていることが好ましい。   Furthermore, in the printing apparatus, the medium detection device includes a housing that houses the carriage and the optical sensor, and the housing is transported from the medium mounting portion to a portion facing the transport path. A medium supporting portion for supporting the medium, and the medium supporting portion is provided with a light transmissive window in a region corresponding to a movement path of the optical sensor accompanying the movement of the carriage. preferable.

この構成によれば、キャリッジ及びセンサーが筐体内に収容されているので、媒体から出た紙粉や印刷ヘッドから出たインクミスト等からセンサーを保護できる。また、媒体載置部から搬送される媒体を、媒体検出装置の筐体の媒体支持部によって支持できるうえ、その媒体支持部に支持されて搬送される媒体を、センサーが光透過性の窓部を通して読み取って側端を検出できる。この結果、センサーの紙粉やインクミストの汚れに起因する検出精度の低下を回避し易いうえ、窓部を含む媒体支持部に支持された媒体とセンサーとの距離をほぼ一定に保持し易く、この点からもセンサーの検出精度を高めることができる。   According to this configuration, since the carriage and the sensor are housed in the housing, the sensor can be protected from paper dust that has come out of the medium, ink mist that has come out of the print head, and the like. In addition, the medium transported from the medium placement unit can be supported by the medium support unit of the casing of the medium detection device, and the medium supported by the medium support unit is transported by the sensor through the light-transmitting window. The side edge can be detected by reading through. As a result, it is easy to avoid a decrease in detection accuracy due to sensor paper dust and ink mist stains, and it is easy to keep the distance between the sensor and the medium supported by the medium support part including the window part substantially constant, From this point, the detection accuracy of the sensor can be increased.

上記印刷装置において、前記センサーは光反射型センサーであり、前記センサーの移動経路と前記搬送経路を挟んで対向する位置には、前記搬送経路に沿って前記媒体を案内する媒体案内部材が配置され、前記媒体案内部材は前記センサーの移動経路と対向する部分が光反射面となっていることが好ましい。   In the printing apparatus, the sensor is a light reflection sensor, and a medium guide member that guides the medium along the transport path is disposed at a position facing the movement path of the sensor across the transport path. The medium guide member preferably has a light reflecting surface at a portion facing the movement path of the sensor.

この構成によれば、窓部と対向する媒体案内部材におけるセンサーの移動経路と対向する部分が光反射面となっている。このため、光反射面専用の部材を別途設ける必要がない。よって、搬送部の媒体案内構造を比較的コンパクトに構成できる。   According to this structure, the part which opposes the movement path | route of the sensor in the medium guide member which opposes a window part is a light reflection surface. For this reason, it is not necessary to separately provide a member dedicated to the light reflecting surface. Therefore, the medium guide structure of the transport unit can be configured relatively compactly.

また、上記印刷装置において、前記媒体載置部は、複数の媒体を積層状態に載置して収容可能なカセットと、1つ又は複数の媒体を載置可能な給送トレイとの両方又は一方であることが好ましい。   In the printing apparatus, the medium placement unit may include both or one of a cassette capable of accommodating a plurality of media in a stacked state and a feeding tray capable of placing one or a plurality of media. It is preferable that

この構成によれば、印刷装置の搬送方向の小型化を図りつつ、カセットと給送トレイとの両方又は一方から搬送された媒体の側端を媒体検出装置によって検出することができる。   According to this configuration, the medium detection device can detect the side edge of the medium conveyed from both or one of the cassette and the feeding tray while reducing the size of the printing apparatus in the conveyance direction.

一実施形態における印刷装置を示す斜視図。1 is a perspective view illustrating a printing apparatus according to an embodiment. 印刷装置の模式断面図。1 is a schematic cross-sectional view of a printing apparatus. カバーを開けた状態にある印刷装置の斜視図。The perspective view of the printing apparatus in the state which opened the cover. カバーを開けた状態における本体側給送機構部とカバー側給送機構部とを示す斜視図。The perspective view which shows the main body side feeding mechanism part and the cover side feeding mechanism part in the state which opened the cover. 給送機構を示す側断面図。The sectional side view which shows a feeding mechanism. 給送機構の一部を示す側断面図。The sectional side view which shows a part of feeding mechanism. カバーを開けた状態における本体側給送機構部とカバー側給送機構部とを示す側断面図。The sectional side view which shows the main body side feeding mechanism part and the cover side feeding mechanism part in the state which opened the cover. 媒体検出装置及びその周辺部分を示す斜視図。The perspective view which shows a medium detection apparatus and its peripheral part. 媒体検出装置を示す斜視図。The perspective view which shows a medium detection apparatus. 媒体検出装置を示す分解斜視図。The disassembled perspective view which shows a medium detection apparatus. 媒体検出装置のカバーを取り外した状態を示す平面図。The top view which shows the state which removed the cover of the medium detection apparatus. 媒体検出装置を裏面側から見た斜視図。The perspective view which looked at the medium detection apparatus from the back side. ホーム位置にある状態のキャリッジを示す平面図。The top view which shows the carriage in the state in a home position. 媒体検出装置の要部を示す図13における14−14線断面図。FIG. 14 is a cross-sectional view taken along line 14-14 in FIG. 13 showing the main part of the medium detection device. 媒体検出装置の要部を示す図13における15−15線断面図。FIG. 15 is a cross-sectional view taken along line 15-15 in FIG. 13 showing the main part of the medium detection device. 印刷装置の電気的構成を示すブロック図。FIG. 2 is a block diagram illustrating an electrical configuration of the printing apparatus. 媒体検出装置における媒体側端検出処理を説明する模式平面図。FIG. 5 is a schematic plan view for explaining medium side edge detection processing in the medium detection device. 小サイズの媒体の側端検出処理を説明する各センサーの信号波形図。The signal waveform diagram of each sensor explaining the side edge detection process of a small-sized medium. 大サイズの媒体の側端検出処理を説明する各センサーの信号波形図。The signal waveform diagram of each sensor explaining the side edge detection process of a large-sized medium. 媒体側端検出処理ルーチンを示すフローチャート。7 is a flowchart illustrating a medium side edge detection processing routine. 故障時の媒体側端検出処理ルーチンを示すフローチャート。7 is a flowchart showing a medium side edge detection processing routine at the time of failure.

以下、印刷装置の一実施形態について図面を参照して説明する。
図1に示すように、印刷装置11は、用紙等の媒体Pに印刷する印刷機能を有するプリンター部12と、プリンター部12の上側に配置されたスキャナー部13とを備え、全体として鉛直方向Zに長い略直方体状をなす複合機からなる。プリンター部12の上面部にはスキャナー部13の隣(図1では手前側)の位置に、操作パネル14が設けられている。操作パネル14は、例えばタッチパネル機能を有する表示部15を備える。本例では、タッチパネルが操作部16の一例を構成する。なお、操作部16は、操作スイッチでもよい。
Hereinafter, an embodiment of a printing apparatus will be described with reference to the drawings.
As shown in FIG. 1, the printing apparatus 11 includes a printer unit 12 having a printing function for printing on a medium P such as paper, and a scanner unit 13 disposed on the upper side of the printer unit 12. It consists of a multi-function machine that has a substantially rectangular parallelepiped shape. An operation panel 14 is provided on the upper surface of the printer unit 12 at a position next to the scanner unit 13 (front side in FIG. 1). The operation panel 14 includes a display unit 15 having a touch panel function, for example. In this example, the touch panel constitutes an example of the operation unit 16. The operation unit 16 may be an operation switch.

図1に示すように、スキャナー部13は、上面が不図示の原稿台となったスキャナー本体部17と、スキャナー本体部17の上面(原稿台ガラス面)に対して開閉可能に設けられた原稿台カバー18とを備える。原稿台カバー18の上部には、自動原稿給送部19(オートドキュメントフィーダー(ADF))が搭載されている。   As shown in FIG. 1, the scanner unit 13 includes a scanner body unit 17 whose upper surface is a document table (not shown), and a document that is openable and closable with respect to the upper surface (document table glass surface) of the scanner body unit 17. And a base cover 18. An automatic document feeder 19 (auto document feeder (ADF)) is mounted on the document table cover 18.

スキャナー部13は、原稿台カバー18を開けて不図示の原稿台ガラス上にセットした原稿を読み取る不図示の読取部を有する。自動原稿給送部19は載置台19Aにセットされた複数枚の原稿を1枚ずつ順番に給送し、読取部によりスキャニングされ後の原稿はスタック部19B上に順次排出される。このように構成された印刷装置11は、前述の原稿台と操作パネル14とを上面部に有する略直方体状の本体20と原稿台カバー18とを備える。   The scanner unit 13 includes a reading unit (not illustrated) that opens a document table cover 18 and reads a document set on a document table glass (not illustrated). The automatic document feeder 19 sequentially feeds a plurality of documents set on the placing table 19A one by one, and the documents scanned by the reading unit are sequentially discharged onto the stack unit 19B. The printing apparatus 11 configured as described above includes a main body 20 having a substantially rectangular parallelepiped shape having the above-described document table and the operation panel 14 on an upper surface portion, and a document table cover 18.

図1に示すように、プリンター部12の下部には、複数枚の媒体Pを積載状態に載置して収容可能なカセット21が、本体20に対して正面側から挿抜可能な状態で上下方向に複数段挿着されている。また、本体20の一側部には、給送トレイ22が下端を中心に開閉可能に設けられている。給送トレイ22を図1に二点鎖線で示す開いた状態とし、その上に印刷するべき媒体Pをセットすることが可能となっている。また、本体20の一側部には、給送トレイ22を含むメンテナンス用のカバー23と、カバー23よりも下側に配置されたメンテナンス用のカバー24とが、それぞれ一側端を中心に横開きで開閉可能に設けられている。なお、本実施形態では、カセット21と給送トレイ22とが、媒体載置部の一例をそれぞれ構成する。給送トレイ22は、1枚の媒体Pのみをセットできる手差しトレイでもよいし、複数の媒体を積載状態にセットでき自動で1枚ずつ給送可能なホッパー機能付きの構成でもよい。   As shown in FIG. 1, in a lower part of the printer unit 12, a cassette 21 that can store and store a plurality of media P in a stacked state can be inserted into and removed from the main body 20 from the front side. A plurality of stages are inserted. A feeding tray 22 is provided at one side of the main body 20 so as to be openable and closable around the lower end. The feeding tray 22 is in an open state indicated by a two-dot chain line in FIG. 1, and a medium P to be printed can be set thereon. Further, a maintenance cover 23 including a feeding tray 22 and a maintenance cover 24 disposed below the cover 23 are laterally arranged around one side end on one side of the main body 20. It is provided so that it can be opened and closed. In the present embodiment, the cassette 21 and the feeding tray 22 constitute an example of a medium placement unit. The feed tray 22 may be a manual feed tray on which only one medium P can be set, or a structure with a hopper function that can set a plurality of media in a stacked state and can automatically feed one by one.

また、プリンター部12においてカセット21よりも上側の部分が、カセット21又は給送トレイ22から給送された媒体Pに印刷する印刷機構部25(図2参照)となっている。プリンター部12とスキャナー本体部17との間には印刷後の媒体が排出されるスタッカー部26が設けられている。   In the printer unit 12, the part above the cassette 21 is a printing mechanism unit 25 (see FIG. 2) that prints on the medium P fed from the cassette 21 or the feeding tray 22. A stacker unit 26 is provided between the printer unit 12 and the scanner body unit 17 for discharging the printed medium.

次に図2を参照してプリンター部12の詳細な構成を説明する。なお、図2では、カセット21は最上段のもののみを示し、他の段のものは省略している。また、印刷ヘッド34に印刷されるときの媒体Pが搬送される方向を搬送方向Yとし、搬送方向Yと交差(特にば直交)する方向を幅方向Xとする。   Next, a detailed configuration of the printer unit 12 will be described with reference to FIG. In FIG. 2, the cassette 21 shows only the uppermost one, and other cassettes are omitted. A direction in which the medium P is transported when printing on the print head 34 is defined as a transport direction Y, and a direction intersecting (particularly orthogonal) with the transport direction Y is defined as a width direction X.

図2に示すように、本実施形態の印刷装置11の本体20内には、前述の印刷機構部25が設けられている。印刷機構部25は、媒体Pを搬送路31に沿って搬送する搬送部の一例としての搬送ユニット32と、搬送途中の媒体Pに印刷する印刷ヘッド34を有する印刷ユニット33とが設けられている。   As shown in FIG. 2, the above-described printing mechanism unit 25 is provided in the main body 20 of the printing apparatus 11 of the present embodiment. The printing mechanism unit 25 includes a transport unit 32 as an example of a transport unit that transports the medium P along the transport path 31, and a print unit 33 having a print head 34 that prints on the medium P being transported. .

印刷ヘッド34は、インクを吐出するインクジェット方式を採用する。印刷ヘッド34は、図1の紙面と直交する幅方向Xに最大幅の媒体Pの幅よりも少し長く延びる長尺状のラインヘッドからなり、幅方向Xへの移動が不能に所定位置に固定された固定式である。本実施形態では、固定式のラインヘッドからなる印刷ヘッド34により、搬送中の媒体Pに対してその幅方向Xに亘る範囲にインク滴を一斉に吐出してライン状に印刷を進めるライン印刷方式を採用している。この印刷ヘッド34から吐出されたインクが媒体Pに付着することにより、媒体Pに画像又は文書等が印刷される。なお、印刷ユニット33が幅方向Xに移動可能な印刷用のキャリッジを備え、その印刷用のキャリッジに設けられた印刷ヘッド34が、印刷用のキャリッジと共に幅方向X(主走査方向)に移動する移動式で、媒体Pの搬送動作と印刷ヘッド34による印刷動作とが交互に行われるあるシリアル印刷方式を採用することもできる。   The print head 34 employs an ink jet system that ejects ink. The print head 34 is a long line head extending slightly longer than the width of the medium P having the maximum width in the width direction X orthogonal to the paper surface of FIG. 1 and cannot be moved in the width direction X and is fixed at a predetermined position. Fixed type. In the present embodiment, a line printing system in which printing is performed in a line by ejecting ink droplets all at once in a range in the width direction X with respect to the medium P being conveyed by the print head 34 formed of a fixed line head. Is adopted. As the ink ejected from the print head 34 adheres to the medium P, an image, a document, or the like is printed on the medium P. The printing unit 33 includes a printing carriage that can move in the width direction X, and the print head 34 provided on the printing carriage moves in the width direction X (main scanning direction) together with the printing carriage. It is also possible to adopt a serial printing method that is movable and in which the conveying operation of the medium P and the printing operation by the print head 34 are alternately performed.

また、図2に示すように、搬送ユニット32は、媒体Pを給送する給送機構部35と、媒体Pを印刷ユニット33が印刷を行うときの搬送路36に沿って搬送する搬送機構部37と、印刷済みの媒体Pを排出路62に沿って搬送してスタッカー部26へ排出する排出機構部38とを備えている。   As shown in FIG. 2, the transport unit 32 includes a feeding mechanism unit 35 that feeds the medium P, and a transport mechanism unit that transports the medium P along the transport path 36 when the printing unit 33 performs printing. 37 and a discharge mechanism unit 38 that conveys the printed medium P along the discharge path 62 and discharges the medium P to the stacker unit 26.

給送機構部35は、給送トレイ22を給送元とする第1給送部41と、カセット21を給送元とする第2給送部42と、両面印刷時に片面の印刷を終えた媒体Pを再び搬送路36へ給送する第3給送部43とを有している。第1給送部41は、給送トレイ22上にセットされて先端部が挿入口20Aから挿入された状態にある媒体Pを、第1給送ローラー対44の回転によって、第1給送路45に沿って搬送機構部37へ給送する。なお、給送トレイ22を備えたカバー23(図1、図3を参照)は、本体20における印刷ヘッド34よりも搬送方向Yの上流側の位置に開閉可能に設けられている。   The feeding mechanism unit 35 has finished the first feeding unit 41 having the feeding tray 22 as the feeding source, the second feeding unit 42 having the cassette 21 as the feeding source, and printing on one side during duplex printing. And a third feeding unit 43 that feeds the medium P to the transport path 36 again. The first feeding unit 41 sets the medium P, which is set on the feeding tray 22 and has the leading end inserted through the insertion port 20A, to the first feeding path by the rotation of the first feeding roller pair 44. Then, the sheet is fed along the line 45 to the transport mechanism unit 37. Note that the cover 23 (see FIGS. 1 and 3) provided with the feeding tray 22 is provided to be openable and closable at a position upstream of the print head 34 in the main body 20 in the transport direction Y.

また、第2給送部42は、カセット21から媒体Pを第2給送路48に沿って給送する。第2給送部42は、カセット21内の最上位の媒体Pを送り出すピックアップローラー49と、送り出された媒体Pを1枚に分離する分離ローラー対50と、分離された1枚の媒体Pを給送する第2給送ローラー対51及び従動ローラー52とを備える。   Further, the second feeding unit 42 feeds the medium P from the cassette 21 along the second feeding path 48. The second feeding unit 42 includes a pickup roller 49 that feeds the uppermost medium P in the cassette 21, a separation roller pair 50 that separates the fed medium P into one sheet, and one separated medium P A second feeding roller pair 51 and a driven roller 52 for feeding are provided.

図2に示すように、搬送機構部37は、第1〜第3給送部41〜43の合流箇所よりも少し搬送方向Yの下流側の位置に配置された搬送ローラー対46と、印刷ヘッド34と対向する位置に配置されたベルト搬送機構58とを備える。媒体Pは停止中の搬送ローラー対46に先端が突き当てられることにより給送過程でスキュー取りされ、スキュー取り後の媒体Pが搬送ローラー対46の回転によって搬送路36へ搬送される。   As shown in FIG. 2, the transport mechanism unit 37 includes a transport roller pair 46 disposed at a position slightly downstream in the transport direction Y with respect to the junctions of the first to third feeding units 41 to 43, and a print head. 34 and a belt conveyance mechanism 58 disposed at a position facing the line 34. The medium P is skewed in the feeding process by abutting the leading end against the stopped conveying roller pair 46, and the skewed medium P is conveyed to the conveying path 36 by the rotation of the conveying roller pair 46.

ベルト搬送機構58は、一対のローラー59,60と、一対のローラー59,60に巻き掛けられた搬送ベルト61とを有する。また、ベルト搬送機構58のローラー59の上方位置には搬送ベルト61と接触して従動する搬送従動ローラー47が配置されている。ベルト搬送機構58は、帯電された搬送ベルト61の表面に媒体Pを静電気の力により吸着させる静電吸着方式を採用する。印刷ヘッド34は、ベルト搬送機構58により印刷ヘッド34と一定のギャップを保持した状態で一定速度で搬送される媒体Pに向かってインクを吐出することで、媒体Pに画像や文書等が印刷される。   The belt transport mechanism 58 includes a pair of rollers 59 and 60 and a transport belt 61 wound around the pair of rollers 59 and 60. Further, a transport driven roller 47 that is driven in contact with the transport belt 61 is disposed above the roller 59 of the belt transport mechanism 58. The belt conveyance mechanism 58 employs an electrostatic adsorption method in which the medium P is adsorbed to the surface of the charged conveyance belt 61 by electrostatic force. The print head 34 ejects ink toward the medium P transported at a constant speed while maintaining a constant gap with the print head 34 by the belt transport mechanism 58, whereby an image, a document, or the like is printed on the medium P. The

第3給送部43は、両面印刷時に、一方の面(片面)が印刷済みの媒体Pを、表裏反転させて再び搬送機構部37に導く再給送を行う。搬送機構部37から排出された一方の面が印刷済みの媒体Pは、分岐機構53によって分岐搬送路54に導かれ、搬送ローラー対55の正転の後の逆転によって、図2において印刷ユニット33よりも上方に位置する反転給送路56に導かれる。そして、複数の反転搬送ローラー対57の回転によって、媒体Pは反転給送路56に沿って給送されて第1給送路45及び第2給送路48に反転した状態で合流し、その後、搬送機構部37に再び導かれ、印刷ヘッド34がその反転した媒体Pの未印刷の他方の面に印刷することで、両面印刷が行われる。   The third feeding unit 43 performs re-feeding of the medium P on which one side (one side) has been printed by reversing the front and back and guiding the medium P to the transport mechanism unit 37 again during duplex printing. The medium P on which one surface discharged from the transport mechanism unit 37 has been printed is guided to the branch transport path 54 by the branch mechanism 53, and is rotated in the reverse direction after the forward rotation of the transport roller pair 55 in FIG. It is guided to the reverse feeding path 56 positioned above the position. Then, the medium P is fed along the reverse feeding path 56 by the rotation of the plurality of reverse conveying roller pairs 57 and merged in the inverted state to the first feeding path 45 and the second feeding path 48. Then, the paper is guided again to the transport mechanism unit 37, and the print head 34 performs printing on the other unprinted surface of the inverted medium P, whereby double-sided printing is performed.

排出機構部38は、排出路62に沿って配置された複数の排出ローラー対63の回転によって、印刷を終えた媒体Pを媒体排出口20Bから図2に二点鎖線で示すようにスタッカー部26上へ排出する。排出された印刷済みの媒体Pは、スタッカー部26上に積載される。なお、カセット21及び給送トレイ22からの媒体Pを印刷ヘッド34が印刷可能な位置を通る経路で搬送するのが、搬送経路30である。   The discharge mechanism unit 38 rotates the plurality of discharge roller pairs 63 arranged along the discharge path 62 so that the medium P after printing is stacked from the medium discharge port 20B as shown by a two-dot chain line in FIG. Drain up. The discharged printed medium P is stacked on the stacker unit 26. Note that the conveyance path 30 conveys the medium P from the cassette 21 and the feeding tray 22 along a path that passes through a position where the print head 34 can print.

図2に示すように、印刷ヘッド34よりも搬送方向Yの上流側に位置する搬送ローラー対46よりも少し上流側には、媒体検出装置80が配置されている。媒体検出装置80は、第1給送路45と第2給送路48との合流部及び搬送経路30と反転給送路56との合流部の近傍位置の下側に位置する。媒体検出装置80は、第1給送部41及び第2給送部42により給送された媒体Pの搬送方向Yと交差(特に直交)する幅方向Xの側端を検出する。媒体検出装置80が検出した媒体Pの側端の情報から、媒体Pへの幅方向Xの側端位置、媒体幅(媒体サイズ)及び幅方向Xの印刷範囲のうち少なくとも一つを含む幅に関する媒体情報が取得される。   As shown in FIG. 2, a medium detection device 80 is disposed slightly upstream of the transport roller pair 46 positioned upstream of the print head 34 in the transport direction Y. The medium detection device 80 is positioned below the vicinity of the junction between the first feeding path 45 and the second feeding path 48 and the junction between the conveyance path 30 and the reverse feeding path 56. The medium detection device 80 detects a side end in the width direction X that intersects (particularly orthogonally) the conveyance direction Y of the medium P fed by the first feeding unit 41 and the second feeding unit 42. It relates to the width including at least one of the side end position in the width direction X on the medium P, the medium width (medium size) and the print range in the width direction X from the information on the side end of the medium P detected by the medium detection device 80. Media information is acquired.

次に図3〜図7を参照して、給送機構部35における媒体検出装置80の周辺を含む部分の構成について説明する。なお、図5及び図6はカバー23を閉じた状態、図7はカバー23を開けた状態を示す。   Next, with reference to FIGS. 3 to 7, a configuration of a portion including the periphery of the medium detection device 80 in the feeding mechanism unit 35 will be described. 5 and 6 show a state where the cover 23 is closed, and FIG. 7 shows a state where the cover 23 is opened.

図3及び図4に示すように、印刷装置11の装置本体20に対して開閉可能なカバー23を開くと、各給送部41〜43の一部が露出する。各給送部41〜43は、本体20内の不図示のフレームに組み付けられた本体側給送機構部65と、カバー23の内面側に組み付けられたカバー側給送機構部66とにより構成される。本体20側には媒体検出装置80が組み付けられている。媒体検出装置80は、給送又は搬送中の媒体Pをその上面で支持しつつ、その上面の窓部88を通して媒体Pを幅方向Xに読み取って媒体Pの側端を検出する。このため、媒体検出装置80の媒体Pを支持する上面部分をなす媒体案内部81A及び媒体支持部81Bも、本体側給送機構部65の一部を構成している。   As shown in FIGS. 3 and 4, when the cover 23 that can be opened and closed with respect to the apparatus main body 20 of the printing apparatus 11 is opened, a part of each of the feeding units 41 to 43 is exposed. Each of the feeding units 41 to 43 includes a main body side feeding mechanism unit 65 assembled to a frame (not shown) in the main body 20 and a cover side feeding mechanism unit 66 assembled to the inner surface side of the cover 23. The A medium detection device 80 is assembled on the main body 20 side. The medium detection device 80 detects the side edge of the medium P by reading the medium P in the width direction X through the window 88 on the upper surface while supporting the medium P being fed or conveyed on the upper surface. For this reason, the medium guide portion 81A and the medium support portion 81B that form the upper surface portion that supports the medium P of the medium detection device 80 also constitute a part of the main body side feeding mechanism portion 65.

図5及び図7に示すように、本体側給送機構部65には、第2給送部42を構成する分離ローラー対50、駆動ローラー51A、ガイド部材67、第3給送部43を構成する駆動ローラー57A、ガイド部材68,69及び搬送ローラー対46等が含まれる。また、媒体検出装置80は、その筐体81の上面部における搬送方向Yの上流側部分に第2給送路48からの媒体Pを案内する斜状の媒体案内部81Aを有している。さらに媒体検出装置80は、筐体81における媒体案内部81Aに対して搬送方向Yの下流側となる上面部分に、第1給送路45及び第2給送路48からの媒体Pを支持する媒体支持部81Bを有している。このため、これらの媒体案内部81A及び媒体支持部81Bは、本体側給送機構部65の一部を構成している。   As shown in FIGS. 5 and 7, the main body-side feeding mechanism unit 65 includes a separation roller pair 50, a driving roller 51 </ b> A, a guide member 67, and a third feeding unit 43 that constitute the second feeding unit 42. The driving roller 57A, the guide members 68 and 69, the conveyance roller pair 46, and the like are included. In addition, the medium detection device 80 includes a slanted medium guide portion 81A that guides the medium P from the second feeding path 48 in the upstream portion of the upper surface portion of the casing 81 in the transport direction Y. Furthermore, the medium detection device 80 supports the medium P from the first feeding path 45 and the second feeding path 48 on the upper surface portion of the housing 81 that is downstream in the transport direction Y with respect to the medium guiding portion 81A. It has a medium support part 81B. For this reason, the medium guide portion 81 </ b> A and the medium support portion 81 </ b> B constitute a part of the main body side feeding mechanism portion 65.

また、図5及び図7に示すように、カバー側給送機構部66には、第1給送部41を構成する給送ローラー対44、ガイド部材70,71、第2給送部42を構成する従動ローラー51B,52、ガイド部材72及び第3給送部43を構成する従動ローラー57Bが含まれる。カバー23と一体に組み付けられているガイド部材71は、第1給送路45を構成する媒体案内面71Aと、反転給送路56を構成する媒体案内面71Bとを有する。カバー側給送機構部66には、複数の媒体載置部の一例を構成する給送トレイ22及びカセット21のうち少なくとも1つから媒体Pを給送する給送機構が含まれる。本例では、複数の媒体載置部の一例は、給送トレイ22及びカセット21の両方であり、カバー23には、給送部の少なくとも一部の一例として、第1給送部41の全部及び第2給送部42の一部が組み付けられている。   As shown in FIGS. 5 and 7, the cover-side feeding mechanism 66 includes a pair of feeding rollers 44, guide members 70 and 71, and a second feeding unit 42 that constitute the first feeding unit 41. The driven rollers 51 </ b> B and 52, the guide member 72, and the driven roller 57 </ b> B configuring the third feeding unit 43 are included. The guide member 71 assembled integrally with the cover 23 has a medium guide surface 71 </ b> A constituting the first feed path 45 and a medium guide surface 71 </ b> B constituting the reverse feed path 56. The cover-side feeding mechanism unit 66 includes a feeding mechanism that feeds the medium P from at least one of the feeding tray 22 and the cassette 21 that constitute an example of a plurality of medium placement units. In this example, examples of the plurality of medium placement units are both the feeding tray 22 and the cassette 21, and the cover 23 includes all of the first feeding unit 41 as an example of at least a part of the feeding unit. A part of the second feeding unit 42 is assembled.

図5及び図6に示すように、給送ローラー対44は、駆動ローラー44Aと従動ローラー44Bとを備える。両ローラー44A,44Bの給送方向の下流側には、ガイド部材70と、ガイド部材71の媒体案内面71Aとが対向して配置されることで、第1給送路45の一部が形成されている。また、互いに対向するガイド部材67,72、及び媒体検出装置80の媒体案内部81Aにより、第2給送路48の一部が形成されている。   As shown in FIGS. 5 and 6, the feed roller pair 44 includes a drive roller 44 </ b> A and a driven roller 44 </ b> B. A part of the first feeding path 45 is formed by arranging the guide member 70 and the medium guide surface 71A of the guide member 71 facing each other on the downstream side in the feeding direction of both rollers 44A and 44B. Has been. A part of the second feeding path 48 is formed by the guide members 67 and 72 facing each other and the medium guide portion 81A of the medium detection device 80.

図5に示すように、第2給送部42を構成する分離ローラー対50は、駆動ローラー50Aと従動ローラー50Bとからなる。
また、図5及び図6に示すように、第3給送部43を構成する反転搬送ローラー対57は、駆動ローラー57Aと従動ローラー57Bとからなる。片面が印刷済みの媒体Pを反転させて給送する反転給送路56の下流側の部分は、対向して配置された本体20側のガイド部材68とカバー23側のガイド部材71とにより形成されている。また、媒体検出装置80のうちガイド部材68と対向する面も反転給送路56の一部を形成している。また、媒体検出装置80の搬送方向Yの下流側の位置に配置された搬送ローラー対46は、駆動ローラー46Aと従動ローラー46Bとからなる。
As shown in FIG. 5, the separation roller pair 50 constituting the second feeding unit 42 includes a driving roller 50 </ b> A and a driven roller 50 </ b> B.
As shown in FIGS. 5 and 6, the pair of reverse conveying rollers 57 constituting the third feeding unit 43 includes a driving roller 57 </ b> A and a driven roller 57 </ b> B. The downstream portion of the reverse feeding path 56 that feeds the medium P on which one side has been printed by being reversed is formed by a guide member 68 on the main body 20 side and a guide member 71 on the cover 23 side that are arranged to face each other. Has been. Further, the surface of the medium detection device 80 facing the guide member 68 also forms a part of the reverse feeding path 56. Further, the transport roller pair 46 disposed at a position downstream of the medium detection device 80 in the transport direction Y includes a drive roller 46A and a driven roller 46B.

図5に示す駆動ローラー44Aは、第1給送モーター121(図16参照)の動力により駆動される。また、駆動ローラー50A,51Aは、第2給送モーター122(図16参照)の動力により駆動される。また、駆動ローラー46A及び駆動ローラー57Aは、第1搬送モーター123(図16参照)の動力により駆動される。なお、図2に示すベルト搬送機構58は、ベルト用モーター124(図16参照)の動力により駆動される。また、図2に示す排出機構部38は、第2搬送モーター125(図16参照)の動力により駆動される。   The driving roller 44A shown in FIG. 5 is driven by the power of the first feeding motor 121 (see FIG. 16). The drive rollers 50A and 51A are driven by the power of the second feeding motor 122 (see FIG. 16). The driving roller 46A and the driving roller 57A are driven by the power of the first transport motor 123 (see FIG. 16). 2 is driven by the power of the belt motor 124 (see FIG. 16). 2 is driven by the power of the second transport motor 125 (see FIG. 16).

図6に示すように、第1給送路45と第2給送路48とは第1合流部75で合流している。この第1合流部75よりも給送方向(搬送方向Y)の下流側では、搬送通路の一例としての第2給送路48と両面印刷通路の一例としての反転給送路56とが、合流部及び通路合流部の一例としての第2合流部76で合流している。つまり、第1合流部75及び第2合流部76の間は、給送トレイ22から給送された媒体Pと、カセット21から給送された媒体Pとの共通の給送路である第1共通給送路77となっている。そして、第2合流部76よりも給送方向(搬送方向Y)の下流側は、媒体Pの一方の面を印刷するために給送される印刷前の媒体Pと、両面印刷を行うために一方の面が印刷された後に他方の面に印刷するために再給送される印刷後の媒体Pとの共通の給送路である第2共通給送路78となっている。このように印刷ヘッド34(図2参照)よりも搬送方向Yの上流側には、片面印刷経路の一例を構成する第1給送路45、第2給送路48及び第1共通給送路77と、反転給送路56との合流部である第2合流部76が存在している。   As shown in FIG. 6, the first feeding path 45 and the second feeding path 48 merge at the first junction 75. On the downstream side of the first merging portion 75 in the feeding direction (conveying direction Y), a second feeding path 48 as an example of a conveying path and a reverse feeding path 56 as an example of a duplex printing path are merged. And a second merging portion 76 as an example of a passage merging portion. That is, the first feeding path between the first joining section 75 and the second joining section 76 is a common feeding path for the medium P fed from the feeding tray 22 and the medium P fed from the cassette 21. A common feeding path 77 is provided. In order to perform duplex printing on the downstream side in the feeding direction (conveying direction Y) with respect to the medium P before printing, which is fed to print one surface of the medium P, with respect to the second joining unit 76. The second common feeding path 78 is a common feeding path with the printed medium P that is fed again for printing on one side after printing on one side. Thus, on the upstream side in the transport direction Y from the print head 34 (see FIG. 2), the first feeding path 45, the second feeding path 48, and the first common feeding path that constitute an example of the single-side printing path. 77 and a second merging portion 76 that is a merging portion of the reverse feeding path 56 exists.

図6に示すように、第2合流部76を形成する複数の媒体案内面は、ガイド部材71の2つの媒体案内面71A,71Bの下流側の部分、反転給送路56を形成している媒体案内面68Aの下流側部分及び媒体検出装置80の媒体支持部81Bの少し下流寄り部分の表面である。これらの面によって媒体Pが合流する部分(合流領域)が形成される。カバー23(図5及び図7を参照)に組み付けられているガイド部材71は、第2合流部76を形成している一部の媒体案内面71A,71Bを有している。特にガイド部材71の2つの媒体案内面71A,71Bが交差する箇所によって第2合流部76が形成されている。   As shown in FIG. 6, the plurality of medium guide surfaces that form the second joining portion 76 form a reverse feeding path 56, a downstream portion of the two medium guide surfaces 71 </ b> A and 71 </ b> B of the guide member 71. This is the surface of the downstream portion of the medium guide surface 68A and the portion slightly downstream of the medium support portion 81B of the medium detection device 80. A portion (merging region) where the media P merge is formed by these surfaces. The guide member 71 assembled to the cover 23 (see FIGS. 5 and 7) has a part of medium guide surfaces 71A and 71B forming the second joining portion 76. In particular, the second joining portion 76 is formed by a location where the two medium guide surfaces 71A and 71B of the guide member 71 intersect.

図5及び図6に示すように、媒体検出装置80は、第1合流部75及び第2合流部76の下側に配置されている。媒体検出装置80の筐体81の上面部は、第2給送路48、第1共通給送路77及び第2共通給送路78の一部を構成している。また、搬送ローラー対46に対して搬送方向Yの上流側には、媒体Pの搬送方向Yの端部を検出可能なセンサー79が設けられている。このセンサー79は、媒体Pの搬送方向Yの先端を検知して、搬送ローラー対46による媒体Pのスキュー取り動作のタイミングを決めるために用いられる。   As shown in FIGS. 5 and 6, the medium detection device 80 is disposed below the first joining portion 75 and the second joining portion 76. The upper surface portion of the casing 81 of the medium detection device 80 constitutes a part of the second feeding path 48, the first common feeding path 77, and the second common feeding path 78. Further, a sensor 79 capable of detecting an end portion of the medium P in the transport direction Y is provided upstream of the transport roller pair 46 in the transport direction Y. The sensor 79 is used to detect the leading end of the medium P in the transport direction Y and determine the timing of the skew removal operation of the medium P by the transport roller pair 46.

図6に示すように、媒体検出装置80は、前述の筐体81と、筐体81内に幅方向X(図6では紙面直交方向)に移動可能に収容されたキャリッジ82と、キャリッジ82における搬送経路30と対向する側に設けられたセンサー83と、キャリッジ82を移動させる動力源の一例としての電動モーター103(図12、図16を参照)とを備えている。筐体81内には、キャリッジ82を幅方向Xに沿って移動可能に案内する一対のレール部84,85が設けられている。キャリッジ82は、複数のプーリー86(図6では1つのみ示す)に巻き掛けられた無端状のベルト87の一部に固定されている。媒体検出装置80は、電動モーター103の動力によるベルト87の回転によってキャリッジ82を幅方向Xに往復移動させるベルト駆動方式を採用する。このように印刷ヘッド34とは別体に媒体検出装置80を設けているので、キャリッジ82及びセンサー83は印刷ヘッド34(図2参照)と独立して幅方向Xに移動可能である。   As shown in FIG. 6, the medium detection device 80 includes the above-described casing 81, a carriage 82 accommodated in the casing 81 so as to be movable in the width direction X (the orthogonal direction in FIG. 6), A sensor 83 provided on the side facing the conveyance path 30 and an electric motor 103 (see FIGS. 12 and 16) as an example of a power source for moving the carriage 82 are provided. A pair of rail portions 84 and 85 for guiding the carriage 82 to be movable along the width direction X are provided in the housing 81. The carriage 82 is fixed to a part of an endless belt 87 wound around a plurality of pulleys 86 (only one is shown in FIG. 6). The medium detection device 80 employs a belt drive system in which the carriage 82 is reciprocated in the width direction X by the rotation of the belt 87 by the power of the electric motor 103. Thus, since the medium detection device 80 is provided separately from the print head 34, the carriage 82 and the sensor 83 can move in the width direction X independently of the print head 34 (see FIG. 2).

図6に示すように、媒体検出装置80の筐体81には、キャリッジ82が移動するときにセンサー83の検出方向側に対向する部分に光透過部材からなる窓部88が設けられている。窓部88を構成する光透過部材は、例えば透明なガラス又は透明プラスチック等の透明部材からなる。本例のセンサー83は光学式センサーであり、第1共通給送路77を給送される媒体Pを、窓部88を介して光学的に読み取ることで媒体Pの幅方向Xの側端を検出する。キャリッジ82は、印刷ヘッド34よりも搬送方向Yの上流側の位置で幅方向Xに移動可能である。そのため、センサー83は、印刷ヘッド34よりも搬送方向Yの上流側の位置で媒体Pの側端を検出可能である。よって、媒体検出装置80が予め検出した媒体Pの側端位置を、それよりも下流側の位置で印刷を行う印刷ヘッド34の制御に使用できる。   As shown in FIG. 6, the casing 81 of the medium detection device 80 is provided with a window portion 88 made of a light transmitting member at a portion facing the detection direction side of the sensor 83 when the carriage 82 moves. The light transmitting member constituting the window 88 is made of a transparent member such as transparent glass or transparent plastic. The sensor 83 in this example is an optical sensor, and the side end in the width direction X of the medium P is optically read through the window 88 of the medium P fed through the first common feeding path 77. To detect. The carriage 82 is movable in the width direction X at a position upstream of the print head 34 in the transport direction Y. Therefore, the sensor 83 can detect the side edge of the medium P at a position upstream of the print head 34 in the transport direction Y. Therefore, the side edge position of the medium P detected in advance by the medium detection device 80 can be used for controlling the print head 34 that performs printing at a position downstream of the position.

図6に示すように、センサー83がその検出方向(光出射方向)に窓部88を介して対向する領域、つまり読取位置に対応する対向領域には、ガイド部材71の媒体案内面71Aの一部が搬送方向Yに窓部88と平行かつ幅方向Xにセンサー83の移動経路と平行な状態で水平に延びている。つまり、媒体案内面71Aのその一部は、センサー83の移動経路上のどの位置にあってもセンサー83と等距離を維持可能な水平面となっている。そして、媒体案内面71Aの水平部分のうち少なくともセンサー83の移動経路と対向する領域は、センサー83からの光を反射する光反射面71Cとなっている。本例のガイド部材71は金属製で、光反射面71Cは、ガイド部材71の媒体案内面71Aのうち対応する部分を、例えば研磨又はめっき等により鏡面に加工されている。   As shown in FIG. 6, in the area where the sensor 83 faces in the detection direction (light emission direction) through the window 88, that is, the facing area corresponding to the reading position, one of the medium guiding surfaces 71A of the guide member 71 is provided. The portion extends horizontally in a state parallel to the window 88 in the transport direction Y and parallel to the movement path of the sensor 83 in the width direction X. That is, a part of the medium guide surface 71A is a horizontal plane that can maintain the same distance from the sensor 83 at any position on the movement path of the sensor 83. Then, at least a region facing the movement path of the sensor 83 in the horizontal portion of the medium guiding surface 71A is a light reflecting surface 71C that reflects light from the sensor 83. In this example, the guide member 71 is made of metal, and the light reflecting surface 71C has a mirror-finished portion of the medium guide surface 71A of the guide member 71, for example, polished or plated.

光反射面71Cは媒体Pよりも光反射率が十分高く形成されており、光反射型のセンサー83は、光反射面71Cからの反射光を受光してその受光量に応じた検出電圧値が閾値を超える場合にLレベルを出力し、媒体Pからの反射光を受光してその受光量に応じた検出電圧値が閾値以下である場合にHレベルを出力する(図18、図19を参照)。つまり、センサー83は、媒体Pを検知していないときにLレベルを出力し、媒体Pを検知した場合にHレベルを出力する。なお、センサー83が媒体Pの有無に応じた検出信号を出力可能であればよく、例えば光反射面71Cに塗装又は粗面加工を施すことにより、光反射面71Cを媒体Pよりも十分低反射率の面としてもよい。   The light reflection surface 71C is formed to have a light reflectance sufficiently higher than that of the medium P, and the light reflection sensor 83 receives the reflected light from the light reflection surface 71C and has a detection voltage value corresponding to the amount of light received. When the threshold value is exceeded, the L level is output, and when the reflected light from the medium P is received and the detection voltage value corresponding to the received light amount is equal to or less than the threshold value, the H level is output (see FIGS. 18 and 19). ). That is, the sensor 83 outputs an L level when the medium P is not detected, and outputs an H level when the medium P is detected. Note that it is only necessary that the sensor 83 can output a detection signal according to the presence or absence of the medium P. For example, the light reflecting surface 71C is sufficiently less reflective than the medium P by coating or roughening the light reflecting surface 71C. It may be a rate.

図6に示すように、媒体検出装置80の筐体81の上面部における斜状の媒体案内部81Aによって第2給送路48の一部が形成されている。また、筐体81の上面部のうち窓部88と窓部88に対して搬送方向Yの下流側に位置する媒体案内部81Cとにより、給送トレイ22及びカセット21から給送される媒体Pが共通に支持される媒体支持部81Bが構成されている。媒体検出装置80は、筐体81の上部から搬送方向Yの下流側へ延出する延出部81Dを有する。この延出部81Dは従動ローラー46Bを支持する支持部材の一部からなるガイド部材69と対向する位置に配置され、第2共通給送路78の一部を形成している。   As shown in FIG. 6, a part of the second feeding path 48 is formed by the oblique medium guide portion 81 </ b> A on the upper surface portion of the casing 81 of the medium detection device 80. Further, the medium P fed from the feeding tray 22 and the cassette 21 by the window 88 and the medium guide part 81C positioned on the downstream side in the transport direction Y with respect to the window 88 in the upper surface of the casing 81. The medium support part 81B is supported in common. The medium detection device 80 has an extending part 81D that extends from the upper part of the housing 81 to the downstream side in the transport direction Y. The extending portion 81D is disposed at a position facing the guide member 69, which is a part of the support member that supports the driven roller 46B, and forms a part of the second common feed path 78.

図6に示すように、キャリッジ82は、搬送ユニット32により搬送される媒体Pの搬送経路30に対して印刷ヘッド34側とは反対側の位置で幅方向Xに移動可能に設けられている。センサー83は、搬送経路30を挟んで印刷ヘッド34側とは反対側の位置から媒体Pに向かって光を照射することで、媒体Pの側端を検出可能である。   As shown in FIG. 6, the carriage 82 is provided so as to be movable in the width direction X at a position opposite to the print head 34 side with respect to the transport path 30 of the medium P transported by the transport unit 32. The sensor 83 can detect the side edge of the medium P by irradiating light toward the medium P from a position opposite to the print head 34 side across the conveyance path 30.

図6に示すように、媒体検出装置80は、センサー83の読取位置(図6では破線位置)が、第1共通給送路77と反転給送路56とが合流する第2合流部76よりも搬送方向Yの上流側となる位置に配置されている。例えば一方の面が印刷された媒体Pを読み取り可能な位置に媒体検出装置80を配置しようとすると、第2合流部76を媒体検出装置80の読取位置よりも搬送方向の上流側へずらして配置する必要があり、それに伴い、反転給送路56を有する第3給送部43及び第1給送部41を、搬送方向Yの上流側へずらして配置する必要が生じる。この場合、印刷装置11の給送機構部35を搬送方向Yの上流側へ後退させた位置に配置する必要があり、その後退させた分だけ、印刷装置11の搬送方向Yのサイズ寸法が相対的に長くなり、印刷装置11が搬送方向Yに大型化する。   As shown in FIG. 6, the medium detection device 80 has a reading position of the sensor 83 (a broken line position in FIG. 6) from the second merging unit 76 where the first common feeding path 77 and the reverse feeding path 56 merge. Is also arranged at a position on the upstream side in the transport direction Y. For example, if the medium detection device 80 is to be arranged at a position where one side of the printed medium P can be read, the second joining unit 76 is arranged to be shifted upstream of the reading position of the medium detection device 80 in the transport direction. Accordingly, the third feeding unit 43 and the first feeding unit 41 having the reverse feeding path 56 need to be shifted to the upstream side in the transport direction Y. In this case, it is necessary to arrange the feeding mechanism unit 35 of the printing apparatus 11 at a position retracted to the upstream side in the conveyance direction Y, and the size dimension of the printing apparatus 11 in the conveyance direction Y is relative to that amount. The printing apparatus 11 becomes larger in the transport direction Y.

これに対して、一方の面が印刷された媒体Pの側端を読み取ることはせず、媒体検出装置80に対して第2経路合流部J2を読取位置よりも下流側となる位置に配置することで、第1給送部41及び第3給送部43を、搬送方向Yの上流側へずらして配置する必要がなくなる。このようにして印刷装置11の搬送方向Yのサイズ寸法を相対的に短くしている。   In contrast, the side edge of the medium P on which one surface is printed is not read, and the second path junction portion J2 is arranged at a position downstream of the reading position with respect to the medium detection device 80. This eliminates the need for the first feeding unit 41 and the third feeding unit 43 to be shifted to the upstream side in the transport direction Y. In this way, the size of the printing apparatus 11 in the transport direction Y is relatively shortened.

また、図6に示すように、給送ローラー対44の回転により給送される媒体Pの経路である第1給送経路91と、第2給送路48に沿って給送される媒体Pの経路である第2給送経路92とは、第1合流部75よりも少し下流側に位置する第1経路合流部J1で合流する。さらに第2給送経路92には、反転給送路56に沿って給送される媒体Pの経路である両面印刷経路の一例としての第3給送経路93が、第2合流部76よりも少し下流側に位置する合流部の一例としての第2経路合流部J2で合流する。媒体検出装置80の読取位置は、第2経路合流部J2よりも搬送方向Yの上流側に位置する。また、媒体検出装置80の読取位置は、第1経路合流部J1よりも搬送方向Yの下流側に位置する。この読取位置の位置範囲は、カセット21及び給送トレイ22から給送された各媒体Pが共通に搬送される共通搬送経路のうち、第2経路合流部J2よりも上流側の部分となっている。このため、どの給送元(媒体載置部)からの媒体Pであるかに関係なく、その媒体Pをセンサー83とほぼ一定の距離を保った状態で読み取って側端検出が可能であるうえ、反転給送路56を通って給送されてきた媒体Pの一方の面に施された印刷のインクが窓部88に付着することが回避され易い。よって、読取位置でのセンサー83と媒体Pとの距離のばらつき及び窓部88のインク汚れ等に起因する、媒体Pの側端の検出精度の低下や誤検出が低減される。   Further, as shown in FIG. 6, the medium P fed along the first feeding path 91 that is the path of the medium P fed by the rotation of the feeding roller pair 44 and the second feeding path 48. The second feeding path 92, which is the first path, joins at the first path joining portion J1 located slightly downstream of the first joining portion 75. Further, the second feeding path 92 has a third feeding path 93 as an example of a double-sided printing path that is a path of the medium P fed along the reverse feeding path 56 rather than the second merging unit 76. It merges in the 2nd path | route merge part J2 as an example of the merge part located a little downstream. The reading position of the medium detection device 80 is located on the upstream side in the transport direction Y with respect to the second path joining portion J2. In addition, the reading position of the medium detection device 80 is located on the downstream side in the transport direction Y from the first path junction portion J1. The position range of the reading position is a portion on the upstream side of the second path junction portion J2 in the common transport path through which the media P fed from the cassette 21 and the feed tray 22 are transported in common. Yes. For this reason, the side edge can be detected by reading the medium P while maintaining a substantially constant distance from the sensor 83 regardless of which feeding source (medium loading unit) the medium P is. Thus, it is easy to avoid the printing ink applied to one surface of the medium P fed through the reverse feeding path 56 from adhering to the window 88. Therefore, a decrease in detection accuracy and erroneous detection of the side edge of the medium P due to variations in the distance between the sensor 83 and the medium P at the reading position and ink stains on the window 88 are reduced.

なお、本実施形態では、媒体検出装置80の読取位置は、第2経路合流部J2よりも搬送方向Yの上流側であればよい。また、読取位置は、第2合流部76よりも搬送方向Yの上流側であることが好ましい。さらに、媒体検出装置80の読取位置は、第1合流部75よりも搬送方向Yの下流側であればよい。また、読取位置は、第1経路合流部J1よりも搬送方向Yの下流側であることが好ましい。   In the present embodiment, the reading position of the medium detection device 80 may be on the upstream side in the transport direction Y with respect to the second path joining portion J2. In addition, the reading position is preferably on the upstream side in the transport direction Y with respect to the second junction 76. Furthermore, the reading position of the medium detection device 80 may be on the downstream side in the transport direction Y with respect to the first joining portion 75. In addition, the reading position is preferably on the downstream side in the transport direction Y from the first path junction portion J1.

また、読取位置が、第2合流部76よりも上流側となる位置にあれば、第2合流部76を形成する2つの媒体案内面71A,71Bをもつガイド部材71が、センサー83の移動経路と対向して位置する。そして、本例では、ガイド部材71におけるセンサー83と対向する領域に、センサー83からの光を反射させる光反射面71Cを形成し、媒体案内用の部材と光反射面用の部材との共通化が図られている。   If the reading position is at a position upstream of the second junction 76, the guide member 71 having the two medium guide surfaces 71 </ b> A and 71 </ b> B forming the second junction 76 is moved by the sensor 83. Located opposite to. In this example, a light reflecting surface 71C that reflects light from the sensor 83 is formed in a region of the guide member 71 that faces the sensor 83, and the medium guiding member and the light reflecting surface member are shared. Is planned.

図7に示すように、カバー23を開けると、ガイド部材71及びガイド部材72等を含むカバー側給送機構部66がカバー23と共に退避方向(搬送方向Yの上流側)へ移動し、媒体検出装置80が露出する。すなわち、媒体検出装置80は、その読取位置が第2経路合流部J2よりも搬送方向Yの上流側に位置する配置なので、第2合流部76を形成するガイド部材71が後方へ退避すると、図7及び図8に示すように露出するようになっている。特に読取位置が第2合流部76よりも搬送方向Yの上流側に位置する配置なので、第2合流部76を形成するガイド部材71が後方へ退避すると、図7及び図8に示すように窓部88も露出するようになっている。例えば窓部88の表面の汚れを除去する清掃は、媒体検出装置80を本体20に組み付けたまま行うことが可能である。   As shown in FIG. 7, when the cover 23 is opened, the cover-side feeding mechanism 66 including the guide member 71 and the guide member 72 and the like moves together with the cover 23 in the retracting direction (upstream side in the transport direction Y) to detect the medium. The device 80 is exposed. That is, since the medium detection device 80 is positioned so that the reading position is upstream of the second path merging portion J2 in the transport direction Y, when the guide member 71 forming the second merging portion 76 is retracted rearward, FIG. 7 and 8 are exposed. In particular, since the reading position is located upstream of the second merging portion 76 in the transport direction Y, when the guide member 71 forming the second merging portion 76 is retracted rearward, as shown in FIGS. The part 88 is also exposed. For example, cleaning for removing dirt on the surface of the window 88 can be performed while the medium detection device 80 is assembled to the main body 20.

次に、図8〜図15を参照して媒体検出装置80の詳細な構成を説明する。
図8に示すように、媒体検出装置80は、幅方向Xに最大幅の媒体Pの幅よりも少し長く延びた長尺形状を有している。窓部88は幅方向X(筐体長手方向)に沿って2つ設けられている。本実施形態の印刷装置11では、媒体Pはサイズに依らずその幅中心が給送路の幅中心位置を通るセンター給送が行われる。2つの窓部88と媒体案内部81Cとによって媒体支持部81Bが形成されている。また、媒体検出装置80は筐体81の下部にコネクター81Eを有している。このコネクター81Eには制御部120からの配線に接続された不図示のコネクターが接続され、センサー83の検出信号はコネクター81E及び不図示の配線を介して制御部120に入力される。
Next, a detailed configuration of the medium detection device 80 will be described with reference to FIGS.
As shown in FIG. 8, the medium detection device 80 has a long shape extending in the width direction X slightly longer than the width of the maximum width medium P. Two window portions 88 are provided along the width direction X (the longitudinal direction of the casing). In the printing apparatus 11 according to the present embodiment, center feeding of the medium P is performed so that the width center of the medium P passes through the width center position of the feeding path regardless of the size. The two window portions 88 and the medium guide portion 81C form a medium support portion 81B. Further, the medium detection device 80 has a connector 81E at the bottom of the housing 81. A connector (not shown) connected to the wiring from the control unit 120 is connected to the connector 81E, and a detection signal of the sensor 83 is input to the control unit 120 via the connector 81E and a wiring (not shown).

図9に示すように、媒体検出装置80の上面は、媒体案内部81A、2つの窓部88、2つの窓部88の間に介在する支持部81F、媒体案内部81C及び延出部81Dを備える。カセット21から給送された媒体Pは、媒体案内部81Aにより案内される。また、カセット21から給送された媒体P、及び給送トレイ22から給送された媒体Pは、窓部88、支持部81F及び媒体案内部81Cの上面からなる支持面に案内される。延出部81Dは、櫛歯状に複数延出しており、それぞれが幅方向Xに複数設けられた搬送ローラー対46間の間隙に挿入されている。搬送ローラー対46へ挿入される際の媒体Pは、複数の延出部81Dの上面によって支持される。   As shown in FIG. 9, the upper surface of the medium detection device 80 includes a medium guide part 81A, two window parts 88, a support part 81F interposed between the two window parts 88, a medium guide part 81C, and an extension part 81D. Prepare. The medium P fed from the cassette 21 is guided by the medium guiding portion 81A. Further, the medium P fed from the cassette 21 and the medium P fed from the feeding tray 22 are guided to a support surface including upper surfaces of the window portion 88, the support portion 81F, and the medium guide portion 81C. A plurality of extending portions 81 </ b> D extend in a comb-like shape, and each of the extending portions 81 </ b> D is inserted into a gap between a plurality of conveying roller pairs 46 provided in the width direction X. The medium P when being inserted into the transport roller pair 46 is supported by the upper surfaces of the plurality of extending portions 81D.

図10に示すように、媒体検出装置80の筐体81は、基台100とカバー110とより構成される。基台100の上面には、一対のレール部84,85が長手方向に沿って互いに平行に延びるように設けられている。キャリッジ82は、一対のレール部84,85に沿って筐体81の長手方向に移動可能に組み付けられている。また、基台100の上面には、基台100の長手方向の両端部に相当する各位置に、一対のプーリー86が長手方向に所定の間隔を離した状態で組み付けられている。一対のプーリー86には無端状のベルト87が巻き掛けられており、ベルト87の一部にキャリッジ82が固定されている。キャリッジ82に設けられたセンサー83は、筐体81の長手方向(幅方向X)に異なる位置に配置された一対のセンサー83A,83Bよりなる。また、キャリッジ82と基台100の上面における長手方向中央部との間は、フレキシブルフラットケーブル89を介して接続されている。また、基台100の上面における長手方向端部には、キャリッジ82が、その幅方向Xに沿った移動経路の端部に位置するホーム位置(ホームポジション)にあることを検知する位置センサー90が設けられている。なお、以下の説明では、センサー83Aを第1センサー83A、センサー83Bを第2センサー83Bと称する場合もある。   As shown in FIG. 10, the casing 81 of the medium detection device 80 includes a base 100 and a cover 110. A pair of rail portions 84 and 85 are provided on the upper surface of the base 100 so as to extend in parallel to each other along the longitudinal direction. The carriage 82 is assembled so as to be movable in the longitudinal direction of the casing 81 along the pair of rail portions 84 and 85. In addition, a pair of pulleys 86 are assembled on the upper surface of the base 100 at positions corresponding to both ends in the longitudinal direction of the base 100 with a predetermined interval in the longitudinal direction. An endless belt 87 is wound around the pair of pulleys 86, and a carriage 82 is fixed to a part of the belt 87. The sensor 83 provided on the carriage 82 includes a pair of sensors 83A and 83B arranged at different positions in the longitudinal direction (width direction X) of the casing 81. The carriage 82 and the central portion in the longitudinal direction on the upper surface of the base 100 are connected via a flexible flat cable 89. In addition, a position sensor 90 that detects that the carriage 82 is at a home position (home position) located at the end of the movement path along the width direction X is provided at the longitudinal end of the upper surface of the base 100. Is provided. In the following description, the sensor 83A may be referred to as a first sensor 83A and the sensor 83B may be referred to as a second sensor 83B.

図10に示すように、基台100にはその周縁部に周方向に適度な間隔を開けて複数のネジ孔101が形成されている。カバー110の周縁部には、ネジ孔101と対応する位置に形成された不図示の複数のネジ挿通孔に挿通されたネジ111が、基台100側の対応するネジ孔101に螺着されることで、基台100とカバー110と一体に組み付けられ、筐体81が形成される。   As shown in FIG. 10, the base 100 is formed with a plurality of screw holes 101 at an appropriate interval in the circumferential direction on the peripheral edge thereof. Screws 111 inserted into a plurality of screw insertion holes (not shown) formed at positions corresponding to the screw holes 101 are screwed into the corresponding screw holes 101 on the base 100 side at the periphery of the cover 110. As a result, the base 100 and the cover 110 are assembled together to form the housing 81.

図11に示すように、キャリッジ82は、同図に実線で示すホーム位置HPと、ホーム位置HPに対して幅方向Xの反対側の端部となる、同図に二点鎖線で示す反ホーム位置APとの間を移動可能となっている。フレキシブルフラットケーブル89の一端部は基台100の周縁部における長手方向中央部に固定されており、フレキシブルフラットケーブル89の固定箇所から延びる部分が一方のレール部85に沿って配線されると共に途中で円弧状に曲げられた後に他方のレール部84に沿って配線されて他端部がキャリッジ82に接続されている。そして、キャリッジ82の移動に伴ってフレキシブルフラットケーブル89はその円弧状になる部分が幅方向Xに移動することで、移動中のキャリッジ82と電気的な接続を維持する。   As shown in FIG. 11, the carriage 82 has a home position HP indicated by a solid line in the drawing and an end opposite to the home position HP in the width direction X. The anti-home indicated by a two-dot chain line in the drawing. It can move between positions AP. One end portion of the flexible flat cable 89 is fixed to the central portion in the longitudinal direction of the peripheral portion of the base 100, and a portion extending from the fixed portion of the flexible flat cable 89 is wired along one rail portion 85 and in the middle. After being bent in an arc shape, wiring is performed along the other rail portion 84 and the other end portion is connected to the carriage 82. As the carriage 82 moves, the arc-shaped portion of the flexible flat cable 89 moves in the width direction X, so that the electrical connection with the moving carriage 82 is maintained.

図11に示すように、キャリッジ82のホーム位置HPと反ホーム位置APとが、キャリッジ82が幅方向Xに移動するときの両側のエンド位置になっている。位置センサー90は、キャリッジ82がホーム位置HPにあるときにオンし、キャリッジ82がホーム位置HPから離れた位置にあるときにオフする。   As shown in FIG. 11, the home position HP and the non-home position AP of the carriage 82 are end positions on both sides when the carriage 82 moves in the width direction X. The position sensor 90 is turned on when the carriage 82 is at the home position HP, and is turned off when the carriage 82 is at a position away from the home position HP.

図12に示すように、基台100の裏面には、電動モーター103が組み付けられている。電動モーター103の駆動軸は一方のプーリー86(図11における左側のプーリー86)に連結されている。本例の電動モーター103は、ステッピングモーターからなる。電動モーター103から延びる配線の先端にはコネクター104が接続されている。このコネクター104には制御部120から延びる配線に接続された不図示のコネクターが接続され、制御部120から電力及び制御信号が配線を通じて電動モーター103に入力される。制御部120からの制御信号(ステップ制御信号)に基づいて電動モーター103が正逆転駆動されることで、キャリッジ82はベルト87の正逆回転により幅方向Xに往復移動する。   As shown in FIG. 12, an electric motor 103 is assembled on the back surface of the base 100. The drive shaft of the electric motor 103 is connected to one pulley 86 (the left pulley 86 in FIG. 11). The electric motor 103 of this example is a stepping motor. A connector 104 is connected to the tip of the wiring extending from the electric motor 103. A connector (not shown) connected to a wiring extending from the control unit 120 is connected to the connector 104, and electric power and a control signal are input from the control unit 120 to the electric motor 103 through the wiring. The electric motor 103 is driven forward / reversely based on a control signal (step control signal) from the control unit 120, so that the carriage 82 reciprocates in the width direction X by forward / reverse rotation of the belt 87.

また、図12に示すように、基台100の裏面には、フレキシブルフラットケーブル89の配線が基台100の表面側(内面側)から裏面側へ延びて露出し、所定の経路で保持された状態で裏面上に配線されてコネクター81Eに接続されている。また、コネクター81Eには、位置センサー90から延びる配線105が基台100の表面側(内面側)から裏面側へ延びて露出し、その配線105が基台100の裏面上を所定の経路に保持された状態で配線されてコネクター81Eに接続されている。   Further, as shown in FIG. 12, the wiring of the flexible flat cable 89 extends from the front surface side (inner surface side) to the back surface side of the base 100 and is exposed on the back surface of the base 100 and is held by a predetermined path. In a state, it is wired on the back surface and connected to the connector 81E. In addition, the wiring 105 extending from the position sensor 90 extends from the front surface side (inner surface side) to the back surface side of the connector 81E and is exposed, and the wiring 105 holds the back surface of the base 100 on a predetermined path. In this state, it is wired and connected to the connector 81E.

図13に示すように、2つのセンサー83A,83Bは、発光部106と受光部107とを備えている。発光部106から射出された光が反射した反射光を受光部107が受光することで、センサー83A,83Bは受光量に応じた電圧レベルの検出信号を出力する。第1センサー83Aから延びる配線89Aは途中で一部折り曲げて畳み込んだ状態で、第2センサー83Bから延びる配線89Bと一つに接続されて1つのフレキシブルフラットケーブル89となっている。このフレキシブルフラットケーブル89はキャリッジ82に形成された配線孔に挿通されてキャリッジ82の裏面側へ延びた後、レール部84の内側面に沿って配線されている。   As shown in FIG. 13, the two sensors 83 </ b> A and 83 </ b> B include a light emitting unit 106 and a light receiving unit 107. When the light receiving unit 107 receives the reflected light reflected by the light emitted from the light emitting unit 106, the sensors 83A and 83B output a detection signal having a voltage level corresponding to the amount of received light. The wiring 89A extending from the first sensor 83A is partly folded and folded in the middle, and is connected to the wiring 89B extending from the second sensor 83B to form one flexible flat cable 89. The flexible flat cable 89 is inserted through a wiring hole formed in the carriage 82 and extends to the back surface side of the carriage 82, and is then wired along the inner surface of the rail portion 84.

また、図13に示すように、位置センサー90は発光部90Aと受光部90Bとを備えている。キャリッジ82は、ホーム位置HP側の側部から幅方向Xの外側へ突出する被検出部82Aを備える。キャリッジ82がホーム位置HPにあるときには、発光部90Aと受光部90Bとの間の凹所90Cに挿入された被検出部82Aが、発光部90Aから受光部90Bへの投光を遮断することで、位置センサー90は検知状態となる。一方、キャリッジ82がホーム位置HPから反ホーム位置AP側へ移動した状態では、被検出部82Aが凹所90Cから退避し、発光部90Aから受光部90Bへの投光を受光部90Bが受光することで、位置センサー90は非検知状態となる。   As shown in FIG. 13, the position sensor 90 includes a light emitting unit 90A and a light receiving unit 90B. The carriage 82 includes a detected portion 82A that protrudes outward in the width direction X from the side portion on the home position HP side. When the carriage 82 is at the home position HP, the detected part 82A inserted in the recess 90C between the light emitting part 90A and the light receiving part 90B blocks light projection from the light emitting part 90A to the light receiving part 90B. The position sensor 90 is in a detection state. On the other hand, in a state where the carriage 82 has moved from the home position HP to the non-home position AP, the detected part 82A is retracted from the recess 90C, and the light receiving part 90B receives the light projection from the light emitting part 90A to the light receiving part 90B. As a result, the position sensor 90 is not detected.

図14に示すように、レール部84は、基台100に対して垂直に鉛直方向Zへ延びた垂立部84Aと、垂立部84Aの上端部から屈曲し水平に延びる支持部84Bとを有する。キャリッジ82には、押圧部材112が圧縮ばね113の付勢力に押されてレール部84の垂立部84Aに押し付けられてなる位置決め機構114が設けられている。この押圧部材112がレール部84の垂立部84Aに対して所定の付勢力で水平方向に押し付けられることで、キャリッジ82は搬送方向Yに位置決めされている。このため、キャリッジ82の搬送方向Yのがたつきが抑制される。   As shown in FIG. 14, the rail portion 84 includes a vertical portion 84A that extends vertically in the vertical direction Z with respect to the base 100, and a support portion 84B that is bent from the upper end portion of the vertical portion 84A and extends horizontally. Have. The carriage 82 is provided with a positioning mechanism 114 in which the pressing member 112 is pressed by the urging force of the compression spring 113 and pressed against the suspending portion 84 </ b> A of the rail portion 84. The carriage 82 is positioned in the transport direction Y by pressing the pressing member 112 in the horizontal direction with a predetermined urging force against the vertical portion 84A of the rail portion 84. For this reason, rattling in the conveyance direction Y of the carriage 82 is suppressed.

図15に示すように、キャリッジ82には、押圧部材116が圧縮ばね117の付勢力に押されてレール部84の支持部84Bに押し付けられてなる位置決め機構118を有している。この押圧部材116がレール部84の支持部84Bに所定の付勢力で押し付けられることで、キャリッジ82は鉛直方向Zに位置決めされている。このため、キャリッジ82の鉛直方向のがたつきが抑制される。また、キャリッジ82の搬送方向Yの上流側の側部に突設された把持部82Bにベルト87が把持された状態で、キャリッジ82はベルト87に固定されている。また、キャリッジ82から搬送方向Yの下流側へ延出する板状のガイド部82Cがレール部85の上面に案内されている。キャリッジ82は、2種類の位置決め機構114,118を介して搬送方向Yと鉛直方向Zに姿勢を保持した状態で、ベルト87の駆動によりレール部84,85に沿って幅方向Xに移動可能となっている。   As shown in FIG. 15, the carriage 82 has a positioning mechanism 118 in which the pressing member 116 is pressed against the support portion 84 </ b> B of the rail portion 84 by being pressed by the urging force of the compression spring 117. The carriage 82 is positioned in the vertical direction Z by pressing the pressing member 116 against the support portion 84B of the rail portion 84 with a predetermined urging force. For this reason, rattling of the carriage 82 in the vertical direction is suppressed. In addition, the carriage 82 is fixed to the belt 87 in a state where the belt 87 is gripped by a gripping portion 82 </ b> B protruding from the side portion on the upstream side in the transport direction Y of the carriage 82. Further, a plate-like guide portion 82 </ b> C extending from the carriage 82 to the downstream side in the transport direction Y is guided to the upper surface of the rail portion 85. The carriage 82 can move in the width direction X along the rail portions 84 and 85 by driving the belt 87 while maintaining the posture in the transport direction Y and the vertical direction Z via the two types of positioning mechanisms 114 and 118. It has become.

図2及び図6に示す搬送ローラー対46はレジストローラーであって、その下流側への媒体Pの搬送開始タイミングを決定する。停止中の搬送ローラー対46に、給送されてきた媒体Pの先端部を突き当てることで、媒体Pのスキュー(斜行)を除去又は低減させるスキュー取り動作を行わせる。このときスキュー取り動作で媒体Pが搬送ローラー対46に突き当てられているとき、媒体Pは停止しつつ面内で斜行角度分の回動をすることでスキューが取り除かれる。このスキュー取り動作の後、給送部41,42による媒体Pの後端部側を送り出す給送速度と、搬送ローラー対46の回転により媒体Pの先端部側を送り出す搬送速度を合わせることで、媒体Pは一定の搬送速度でベルト搬送機構58の搬送ベルト61上へ搬入される。   The conveyance roller pair 46 shown in FIGS. 2 and 6 is a registration roller, and determines the conveyance start timing of the medium P to the downstream side thereof. A skew removal operation for removing or reducing skew (skew) of the medium P is performed by abutting the leading end portion of the medium P that has been fed against the conveying roller pair 46 that is stopped. At this time, when the medium P is abutted against the conveyance roller pair 46 by the skew removing operation, the medium P is stopped and the skew is removed by rotating in the plane by the skew angle. After this skew removal operation, the feeding speed for feeding the rear end side of the medium P by the feeding sections 41 and 42 is matched with the transport speed for feeding the leading end side of the medium P by the rotation of the transport roller pair 46. The medium P is carried onto the conveyance belt 61 of the belt conveyance mechanism 58 at a constant conveyance speed.

図6に示すように、センサー83の読取位置は、搬送ローラー対46が媒体Pをニップ(挟持)するニップ箇所よりも搬送方向Yの上流側の位置に設定されている。媒体検出装置80は、スキュー取り後の媒体Pの幅方向Xの側端を検出する。媒体検出装置80は、スキュー取り後の停止中の媒体P又はスキュー取り後の搬送が開始された低速の媒体Pに対して側端を検出できる。このため、例えば搬送ローラー対46よりも搬送方向Yの下流側の位置で媒体検出装置が媒体Pの側端を検出する構成とした場合、スキュー取り後の媒体Pの側端を検出できるものの、ある程度の搬送速度に達した比較的高速な媒体Pが検出対象となる。このため、例えば媒体Pの両側の側端を検出する場合、一方の側端と他方の側端とを媒体Pの搬送方向Yに大きく異なる位置で検出することになる。この場合、媒体Pのスキューが僅かに残っていると、媒体Pの幅及び側端の検出精度が若干低下する。これに対して、センサー83の読取位置を、スキュー取り動作に使用される搬送ローラー対46のニップ箇所よりも搬送方向Yの上流側に設定した本実施形態によれば、センサー83の読取位置を搬送ローラー対46のニップ箇所よりも搬送方向Yの下流側に設定する場合に比べ、媒体Pの側端位置及び幅をより精度高く取得できる。なお、媒体Pの側端検出処理は、スキュー取り後のタイミング以外に媒体Pの搬送中においても行って、1枚の媒体Pの搬送方向Yに異なる複数箇所で側端検出を行ってもよい。   As shown in FIG. 6, the reading position of the sensor 83 is set to a position upstream in the transport direction Y from the nip portion where the transport roller pair 46 nips (nips) the medium P. The medium detection device 80 detects the side edge in the width direction X of the medium P after the skew removal. The medium detection device 80 can detect the side edge of the stopped medium P after skew removal or the low-speed medium P for which conveyance after skew removal has started. For this reason, for example, when the medium detection device detects the side edge of the medium P at a position downstream of the conveyance roller pair 46 in the conveyance direction Y, the side edge of the medium P after skew removal can be detected. A relatively high-speed medium P that reaches a certain transport speed is a detection target. For this reason, for example, when detecting the side edges on both sides of the medium P, the one side edge and the other side edge are detected at positions that are significantly different in the transport direction Y of the medium P. In this case, if the skew of the medium P remains slightly, the detection accuracy of the width and side edges of the medium P slightly decreases. On the other hand, according to the present embodiment in which the reading position of the sensor 83 is set on the upstream side in the conveyance direction Y with respect to the nip portion of the conveyance roller pair 46 used for the skew removing operation, the reading position of the sensor 83 is set. The side end position and width of the medium P can be acquired with higher accuracy than in the case of setting the downstream side in the transport direction Y with respect to the nip portion of the transport roller pair 46. Note that the side edge detection processing of the medium P may be performed during the conveyance of the medium P in addition to the timing after the skew removal, and the side edge detection may be performed at a plurality of different locations in the conveyance direction Y of the single medium P. .

次に図16を参照して印刷装置11の電気的構成を説明する。図16に示すように、印刷装置11は、印刷装置11を統括的に制御する制御部120と、媒体検出装置80、前述の操作パネル14、媒体Pを搬送する搬送ユニット32及び搬送中の媒体Pに印刷する印刷ヘッド34を備える。搬送ユニット32は、給送トレイ22にセットされた媒体Pを給送する第1給送部41の動力源となる第1給送モーター121、及びカセット21に収容された媒体Pを給送する第2給送部42の動力源である第2給送モーター122とを備える。また、搬送ユニット32は、給送された媒体Pを搬送する搬送ローラー対46及び排出機構部38等の動力源となる第1搬送モーター123、ベルト搬送機構58の動力源となるベルト用モーター124、一方の面が印刷された媒体Pを搬送する搬送ローラー対55及び反転搬送ローラー対57の動力源となる第2搬送モーター125を有している。制御部120には、搬送系のモーター数と同数個のモーター駆動回路126〜130を介して複数のモーター121〜125が電気的に接続されている。制御部120は、モーター駆動回路126〜130を介して各モーター121〜125を制御することで、媒体Pの給送、搬送、両面印刷時の反転及び排出を行う。なお、搬送ローラー対55を正転と逆転に切り換え可能な電磁クラッチを設け、搬送ローラー対55及び反転搬送ローラー対57の動力源を搬送ローラー対46と共通の第1搬送モーター123とし、第2搬送モーター125を廃止した構成でもよい。   Next, the electrical configuration of the printing apparatus 11 will be described with reference to FIG. As shown in FIG. 16, the printing apparatus 11 includes a control unit 120 that comprehensively controls the printing apparatus 11, a medium detection device 80, the operation panel 14, the conveyance unit 32 that conveys the medium P, and the medium that is being conveyed. A print head 34 for printing on P is provided. The transport unit 32 feeds the medium P stored in the cassette 21 and the first feeding motor 121 that serves as the power source of the first feeding unit 41 that feeds the medium P set on the feeding tray 22. And a second feed motor 122 that is a power source of the second feed unit 42. Further, the transport unit 32 includes a first transport motor 123 serving as a power source for the transport roller pair 46 and the discharge mechanism unit 38 that transport the fed medium P, and a belt motor 124 serving as a power source for the belt transport mechanism 58. The second transport motor 125 is a power source for the transport roller pair 55 and the reverse transport roller pair 57 for transporting the medium P on which one surface is printed. A plurality of motors 121 to 125 are electrically connected to the controller 120 via the same number of motor drive circuits 126 to 130 as the number of motors in the transport system. The control unit 120 controls each of the motors 121 to 125 via the motor drive circuits 126 to 130, thereby performing reversal and discharge during feeding, transporting, and duplex printing of the medium P. An electromagnetic clutch capable of switching the conveyance roller pair 55 between forward rotation and reverse rotation is provided, and the power source of the conveyance roller pair 55 and the reverse conveyance roller pair 57 is the first conveyance motor 123 common to the conveyance roller pair 46, and the second The structure which abolished the conveyance motor 125 may be sufficient.

また、制御部120には、印刷ヘッド34が電気的に接続されている。制御部120は、例えばホスト装置(図示略)から受信した印刷ジョブデータPD中の印刷画像データに基づき印刷ヘッド34を制御することで、搬送中の媒体Pのうち搬送ベルト61上の部分に印刷ヘッド34のノズルからインク滴を吐出して、媒体Pに印刷画像データに基づく画像等を印刷させる。また、制御部120には、操作パネル14を構成する操作部16及び表示部15が電気的に接続されている。制御部120は、操作部16から入力した操作信号に基づき、表示部15に表示されたメニューの中から選択された項目に応じた各種の設定情報や、印刷、スキャン及びコピー等を指示する指示情報を受け付ける。また、制御部120は、前述のメニュー及び故障発生時や異常発生時にその旨をユーザーに通知するメッセージなどを表示部15に表示させる。   In addition, the print head 34 is electrically connected to the control unit 120. For example, the control unit 120 controls the print head 34 based on the print image data in the print job data PD received from the host device (not shown), thereby printing on the portion of the medium P being conveyed on the conveyance belt 61. Ink droplets are ejected from the nozzles of the head 34, and an image or the like based on the print image data is printed on the medium P. The control unit 120 is electrically connected to the operation unit 16 and the display unit 15 that constitute the operation panel 14. Based on the operation signal input from the operation unit 16, the control unit 120 instructs various setting information corresponding to the item selected from the menu displayed on the display unit 15, printing, scanning, and copying. Accept information. In addition, the control unit 120 causes the display unit 15 to display the above-described menu and a message for notifying the user when a failure or abnormality occurs.

また、制御部120は、媒体Pのスキュー取り動作を次のように行う。制御部120は、第1搬送モーター123の駆動を停止させた状態で、給送モーター121又は122を駆動させることで、給送した媒体Pの先端部を停止中の搬送ローラー対46に突き当てることで、媒体Pのスキュー(斜行)を除去又は低減させるスキュー取り動作を行わせる。そして、制御部120は、給送モーター121又は122がスキュー取り動作に必要な設定回転量だけ回転し終わると、給送モーター121又は122の駆動を一旦停止させる。このスキュー取り動作の後、給送モーター121又は122と第1搬送モーター123とを回転速度の同期をとりつつ駆動させることで、媒体Pを一定の搬送速度で搬送ベルト61上へ搬送する。なお、制御部120は、搬送ベルト61へ媒体Pが搬送されてくる前にベルト用モーター124の駆動を開始し、一定の搬送速度で駆動されている搬送ベルト61上に媒体Pは一定の搬送速度で搬入される。   Further, the control unit 120 performs the skew removal operation of the medium P as follows. The control unit 120 drives the feeding motor 121 or 122 in a state where the driving of the first transport motor 123 is stopped, so that the leading end portion of the fed medium P abuts against the stopped transport roller pair 46. Thus, a skew removing operation for removing or reducing skew (skew) of the medium P is performed. Then, when the feeding motor 121 or 122 has been rotated by the set rotation amount necessary for the skew removal operation, the control unit 120 temporarily stops driving the feeding motor 121 or 122. After the skew removal operation, the feeding motor 121 or 122 and the first transport motor 123 are driven while synchronizing the rotation speed, so that the medium P is transported onto the transport belt 61 at a constant transport speed. The controller 120 starts driving the belt motor 124 before the medium P is transported to the transport belt 61, and the medium P is transported on the transport belt 61 driven at a constant transport speed. Carry in at speed.

また、図16に示す制御部120には、媒体検出装置80のキャリッジ82の動力源となる電動モーター103、位置センサー90、キャリッジ82上の第1センサー83A及び第2センサー83Bが電気的に接続されている。制御部120は、モーター駆動回路131を介して電動モーター103を駆動制御することで、キャリッジ82を媒体Pの幅方向Xに往動及び復動させる移動制御を行うとともに、キャリッジ82を目標とする停止位置に停止させる位置制御を行う。   In addition, the control unit 120 illustrated in FIG. 16 is electrically connected to the electric motor 103 that serves as the power source of the carriage 82 of the medium detection device 80, the position sensor 90, and the first sensor 83A and the second sensor 83B on the carriage 82. Has been. The control unit 120 drives and controls the electric motor 103 via the motor drive circuit 131, thereby performing movement control for moving the carriage 82 forward and backward in the width direction X of the medium P and targeting the carriage 82. Position control to stop at the stop position.

また、図16に示す制御部120は、位置センサー90から入力する検出信号SH(図18、図19を参照)に基づいてキャリッジ82がホーム位置HPにあるか否かを把握する。制御部120は、位置センサー90から入力した検出信号SHが、キャリッジ82がホーム位置HPにある旨の信号レベル(例えばHレベル)にあれば、キャリッジ82がホーム位置HPにあると把握し、キャリッジ82がホーム位置HPにない旨の信号レベル(例えばLレベル)にあれば、キャリッジ82がホーム位置HPにないと把握する。   Further, the control unit 120 shown in FIG. 16 determines whether or not the carriage 82 is at the home position HP based on the detection signal SH (see FIGS. 18 and 19) input from the position sensor 90. If the detection signal SH input from the position sensor 90 is at a signal level (for example, H level) indicating that the carriage 82 is at the home position HP, the control unit 120 recognizes that the carriage 82 is at the home position HP, and If the signal level indicating that 82 is not at the home position HP (for example, L level), it is determined that the carriage 82 is not at the home position HP.

さらに図16に示す制御部120は、キャリッジ82の移動中に第1センサー83Aから検出信号SAを入力すると共に、第2センサー83Bから検出信号SB(いずれも図18、図19を参照)を入力する。制御部120は、第1センサー83A及び第2センサー83Bから入力する各検出信号SA,SBに基づいて、検出対象の媒体Pの幅方向Xにおける両側の側端を検出する。制御部120は、例えば媒体Pの幅方向Xにおける側端の検出結果から、側端位置PE1,PE2(図17参照)、印刷ヘッド34が印刷するときの幅方向Xの印刷範囲、媒体Pの幅(例えば紙幅)、その幅から規定される媒体サイズ(例えば用紙サイズ)等の幅に関する媒体情報を取得する。   Further, the control unit 120 shown in FIG. 16 receives the detection signal SA from the first sensor 83A and the detection signal SB (both see FIGS. 18 and 19) from the second sensor 83B while the carriage 82 is moving. To do. The control unit 120 detects the side edges on both sides in the width direction X of the medium P to be detected based on the detection signals SA and SB input from the first sensor 83A and the second sensor 83B. For example, from the detection result of the side edge in the width direction X of the medium P, the control unit 120 determines the side end positions PE1 and PE2 (see FIG. 17), the print range in the width direction X when the print head 34 performs printing, Media information relating to the width (for example, paper width) and the width such as the medium size (for example, paper size) defined from the width is acquired.

図16に示す制御部120は、例えば不図示のコンピューター及びメモリーを備え、そのメモリーに記憶されたプログラムをコンピューターが実行することにより機能する、媒体検出処理に必要な複数の機能部を備える。制御部120は、複数の機能部として、媒体Pの幅情報を取得する幅情報取得部141、電動モーター103を駆動制御するキャリッジ制御部142、センサー83A,83Bの故障を検出可能な故障検出部143、及びセンサー83A,83Bの検出信号SA,SBに基づいて媒体Pの側端位置PE1,PE2を検出可能な検出処理部144を備える。幅情報取得部141は、制御部120が受信した印刷ジョブデータPDに含まれる印刷設定情報から媒体Pの幅情報を取得する。幅情報は例えば媒体サイズの情報である。例えばメモリーには媒体紙サイズと幅情報との対応関係を示す参照データが記憶され、幅情報取得部141は得られた媒体サイズを基に参照データを参照して幅情報を取得する。   The control unit 120 illustrated in FIG. 16 includes, for example, a computer and a memory (not shown), and includes a plurality of functional units necessary for medium detection processing that function when the computer executes a program stored in the memory. The control unit 120 includes, as a plurality of functional units, a width information acquisition unit 141 that acquires width information of the medium P, a carriage control unit 142 that drives and controls the electric motor 103, and a failure detection unit that can detect failures in the sensors 83A and 83B. 143 and a detection processing unit 144 capable of detecting the side end positions PE1 and PE2 of the medium P based on the detection signals SA and SB of the sensors 83A and 83B. The width information acquisition unit 141 acquires the width information of the medium P from the print setting information included in the print job data PD received by the control unit 120. The width information is, for example, medium size information. For example, reference data indicating the correspondence between the medium paper size and the width information is stored in the memory, and the width information acquisition unit 141 acquires the width information by referring to the reference data based on the obtained medium size.

図16に示すキャリッジ制御部142は、モーター駆動回路131を介して電動モーター103を制御することで、キャリッジ82を幅方向Xに移動させる制御及びキャリッジ82を目標位置に停止させる位置制御を行う。故障検出部143は、媒体Pが搬送されていないときに、第1センサー83A及び第2センサー83Bからの各検出信号SA,SBが故障時の値をとるか否かを判定し、故障時の値をとるセンサーがあれば、そのセンサーを故障と検出する。本例では、センサー83A,83Bのうち、媒体Pがないにも関わらず、媒体Pがあるときの検出値であるHレベルをとるセンサーがあると、そのセンサーを故障と検出する。また、センサー83A,83Bが、光反射面71Cからの反射光を受光して、媒体Pがないときの検出値であるLレベルをとれば、センサー83A,83Bは正常であるとする。   The carriage control unit 142 shown in FIG. 16 controls the electric motor 103 via the motor drive circuit 131, thereby performing control for moving the carriage 82 in the width direction X and position control for stopping the carriage 82 at the target position. The failure detection unit 143 determines whether or not the detection signals SA and SB from the first sensor 83A and the second sensor 83B have values at the time of failure when the medium P is not being conveyed. If there is a sensor that takes a value, that sensor is detected as a failure. In this example, if any of the sensors 83A and 83B has a sensor that takes the H level, which is a detection value when the medium P is present, even though the medium P is not present, the sensor is detected as a failure. Further, if the sensors 83A and 83B receive the reflected light from the light reflecting surface 71C and take the L level that is the detection value when there is no medium P, the sensors 83A and 83B are assumed to be normal.

検出処理部144は、第1センサー83A及び第2センサー83Bの検出信号SA,SBに基づいて媒体Pの幅方向Xの側端を検出する。検出処理部144は、ホーム位置HPを原点とするキャリッジ82の幅方向Xの位置を計数するカウンター145と、第1及び第2センサー83A,83Bのうち一方が故障のときに他方が検出した媒体Pの一方の側端位置と幅情報とに基づいて媒体Pの他方の側端位置を演算する演算部146とを備える。   The detection processing unit 144 detects the side edge in the width direction X of the medium P based on the detection signals SA and SB of the first sensor 83A and the second sensor 83B. The detection processing unit 144 includes a counter 145 that counts the position in the width direction X of the carriage 82 with the home position HP as an origin, and a medium detected by the other when one of the first and second sensors 83A and 83B fails. And a calculation unit 146 that calculates the other side end position of the medium P based on one side end position of P and the width information.

図17は、2つのセンサーにより媒体の側端を検出する方法を説明する模式図であり、媒体の裏面側から見た図となっている。図17に示すように、第1センサー83Aと第2センサー83Bは、キャリッジ82の上部に幅方向Xに中心間距離L1を離した状態で装着されている。キャリッジ82がホーム位置HPに位置するとき(図17の実線位置)、幅寸法の小さい小サイズの媒体SPの場合、両センサー83A,83Bが共に媒体SPの幅方向外側に位置して媒体SPを検知していない。一方、幅寸法の大きい大サイズの媒体LPの場合、キャリッジ82がホーム位置HPに位置するとき、ホーム位置HP側の一方のセンサー(図17の例では第2センサー83B)は媒体LPの幅方向X外側に位置して媒体LPを検知していない。これに対して、反ホーム位置AP側の他方のセンサー(図17の例では第1センサー83A)は、媒体LPと対向する位置にあって媒体LPを検知している。   FIG. 17 is a schematic diagram for explaining a method of detecting the side edge of the medium by two sensors, and is a view seen from the back side of the medium. As shown in FIG. 17, the first sensor 83 </ b> A and the second sensor 83 </ b> B are attached to the upper part of the carriage 82 in a state where the center distance L <b> 1 is separated in the width direction X. When the carriage 82 is positioned at the home position HP (solid line position in FIG. 17), in the case of a small-sized medium SP having a small width dimension, both sensors 83A and 83B are both positioned outside the medium SP in the width direction. Not detected. On the other hand, in the case of a large-sized medium LP having a large width dimension, when the carriage 82 is positioned at the home position HP, one sensor on the home position HP side (second sensor 83B in the example of FIG. 17) is in the width direction of the medium LP. It is located outside X and the medium LP is not detected. On the other hand, the other sensor on the side opposite to the home position AP (first sensor 83A in the example of FIG. 17) is located at a position facing the medium LP and detects the medium LP.

本例では、最大幅の媒体Pが検出対象である場合、キャリッジ82が移動可能範囲における左側のエンド位置E1(例えばホーム位置HP)にあるとき、2つのセンサー83A,83Bのうち右側のセンサー83Aは最大幅の媒体Pを検知し、左側のセンサー83Bは最大幅の媒体Pを検知しない。一方、キャリッジ82が移動可能範囲における右側のエンド位置E2にあるとき、2つのセンサー83A,83Bのうち左側のセンサー83Bは最大幅の媒体Pを検知し、右側のセンサー83Aは最大幅の媒体Pを検知しない。このようにキャリッジ82の移動可能範囲が最大幅の媒体Pの幅の割に相対的に狭くなっている。このため、媒体検出装置80の幅方向Xのサイズ寸法が、最大幅の媒体Pの幅の割に相対的に短く抑えられており、媒体検出装置80をその長手方向が幅方向Xに一致する向きで装置本体20に設けても、印刷装置11の幅方向Xのサイズ寸法が相対的に短く抑えられている。   In this example, when the medium P having the maximum width is the detection target, when the carriage 82 is at the left end position E1 (for example, the home position HP) in the movable range, the right sensor 83A of the two sensors 83A and 83B. Detects the maximum width medium P, and the left sensor 83B does not detect the maximum width medium P. On the other hand, when the carriage 82 is at the right end position E2 in the movable range, the left sensor 83B of the two sensors 83A and 83B detects the maximum width medium P, and the right sensor 83A detects the maximum width medium P. Is not detected. Thus, the movable range of the carriage 82 is relatively narrow relative to the width of the maximum width medium P. For this reason, the size dimension in the width direction X of the medium detection device 80 is kept relatively short relative to the width of the maximum width medium P, and the longitudinal direction of the medium detection device 80 coincides with the width direction X. Even if it is provided in the apparatus main body 20 in the orientation, the size dimension in the width direction X of the printing apparatus 11 is relatively short.

図16に示す制御部120は、2つのセンサー83A,83Bのうち、媒体Pの両側の側端位置PE1,PE2を検出する側端検出処理で使用するセンサーの数を、媒体Pのサイズ(幅寸法)に応じて切り替える。つまり、制御部120は、幅情報に基づく媒体幅が設定幅以下である小サイズの媒体SPのときは、一方のセンサー(例えば第1センサー83A)のみを用いて、媒体SPの側端位置PE1,PE2を検出する。また、制御部120は、媒体幅が設定幅を超える大サイズの媒体LPのときは、第1及び第2センサー83A,83Bの両方を用いて、媒体LPの側端位置PE1,PE2を検出する。ここで、設定幅は、図17に示すように、キャリッジ82が実線で示すホーム位置HPにある状態において、2つのセンサー83A,83Bが共に媒体P(例えば媒体SP)を検知できない媒体幅のうち最大の媒体幅以上、かつ第1センサー83Aが媒体P(例えば媒体LP)を検知できる媒体幅のうち最小の媒体幅未満の値に設定されている。なお、図17においてキャリッジ82が移動可能な幅方向Xを左右方向とした場合、第1センサー83Aが右側のセンサーの一例に相当し、第2センサー83Bが左側のセンサーの一例に相当する。また、媒体Pの第1側端PE1が左側端の一例に相当し、第2側端PE2が右側端の一例に相当する。   The control unit 120 shown in FIG. 16 determines the number of sensors used in the side edge detection process for detecting the side edge positions PE1 and PE2 on both sides of the medium P, out of the two sensors 83A and 83B. Switch according to (dimension). That is, when the medium width based on the width information is a small-sized medium SP that is equal to or smaller than the set width, the control unit 120 uses only one sensor (for example, the first sensor 83A) and uses the side end position PE1 of the medium SP. , PE2 is detected. In addition, when the medium width is a large-sized medium LP in which the medium width exceeds the set width, the control unit 120 detects the side end positions PE1 and PE2 of the medium LP using both the first and second sensors 83A and 83B. . Here, as shown in FIG. 17, the set width is a medium width in which the two sensors 83A and 83B cannot detect the medium P (for example, medium SP) when the carriage 82 is at the home position HP indicated by the solid line. It is set to a value that is equal to or larger than the maximum medium width and less than the minimum medium width among the medium widths that the first sensor 83A can detect the medium P (for example, medium LP). In FIG. 17, when the width direction X in which the carriage 82 can move is the left-right direction, the first sensor 83A corresponds to an example of the right sensor, and the second sensor 83B corresponds to an example of the left sensor. Further, the first side end PE1 of the medium P corresponds to an example of the left end, and the second side end PE2 corresponds to an example of the right end.

図18及び図19は、媒体Pの幅方向Xの両側の側端を検出するときに各センサー83A,83B,90から出力される検出信号を示す。図18は媒体幅が設定幅以下である小サイズの媒体SPの側端を検出するときの各検出信号の信号波形であり、図19は媒体幅が設定幅を超える大サイズの媒体LPの側端を検出するときの各検出信号の信号波形である。両図において横方向が時間t、縦方向が各検出信号SA,SB,SHの電圧レベルを示す。なお、キャリッジ82は一定速度V1で移動するため、両図における横方向の時間tは、電動モーター103のステップ数、すなわちキャリッジ82の移動距離に対応している。   18 and 19 show detection signals output from the sensors 83A, 83B, and 90 when the side edges on both sides in the width direction X of the medium P are detected. FIG. 18 is a signal waveform of each detection signal when detecting the side edge of the small-sized medium SP whose medium width is equal to or smaller than the set width, and FIG. 19 is the side of the large-sized medium LP whose medium width exceeds the set width. It is a signal waveform of each detection signal when an end is detected. In both figures, the horizontal direction indicates time t, and the vertical direction indicates the voltage level of each detection signal SA, SB, SH. Since the carriage 82 moves at a constant speed V1, the time t in the horizontal direction in both figures corresponds to the number of steps of the electric motor 103, that is, the moving distance of the carriage 82.

図18に示すように、キャリッジ82がホーム位置HPに位置して(図17の実線位置)検出信号SHがHレベルにあるとき、検出対象が小サイズの媒体SPである場合、両センサー83A,83Bが共に媒体SPを検知しておらず、検出信号SA,SBは共にLレベルにある。キャリッジ82がホーム位置HPから移動を開始すると、まず右側の第1センサー83Aが左側の第1側端PE1を検知し、検出信号SAがLレベルからHレベルに立ち上がる。さらにキャリッジ82が2つのセンサー83A,83Bの中心間距離L1に相当する時間t1(=L1/V1)だけ移動すると、左側の第2センサー83Bが右側の第2側端PE2を検知し、検出信号SBがLレベルからHレベルに立ち上がる。次に第1センサー83Aが第1側端PE1の検出時点から媒体幅に相当する時間t2だけ移動すると、第1センサー83Aが第2側端PE2を検知し、検出信号SAがHレベルからLレベルに立ち下がる。なお、時間t2の期間に出力された電動モーター103のステップ数は、その期間におけるキャリッジ82の移動距離に相当し、これは媒体SPの幅に相当する。   As shown in FIG. 18, when the carriage 82 is located at the home position HP (solid line position in FIG. 17) and the detection signal SH is at the H level, if the detection target is a small-sized medium SP, both sensors 83A, 83B does not detect the medium SP, and the detection signals SA and SB are both at the L level. When the carriage 82 starts moving from the home position HP, first, the first sensor 83A on the right side detects the first side end PE1 on the left side, and the detection signal SA rises from L level to H level. When the carriage 82 further moves for a time t1 (= L1 / V1) corresponding to the center distance L1 between the two sensors 83A and 83B, the left second sensor 83B detects the right second side end PE2 and detects the detection signal. SB rises from L level to H level. Next, when the first sensor 83A moves from the time point of detection of the first side end PE1 for a time t2 corresponding to the medium width, the first sensor 83A detects the second side end PE2, and the detection signal SA changes from H level to L level. To fall. Note that the number of steps of the electric motor 103 output during the period of time t2 corresponds to the moving distance of the carriage 82 during that period, which corresponds to the width of the medium SP.

また、図19に示すように、キャリッジ82がホーム位置HPに位置して(図17の実線位置)検出信号SHがHレベルにあるとき、検出対象が大サイズの媒体LPである場合、右側の第1センサー83Aは媒体LPを検知してHレベルにあり、左側の第2センサー83Bは媒体LPを検知しておらずLレベルにある。キャリッジ82がホーム位置から移動を開始すると、まず左側の第2センサー83Bが左側の第1側端PE1を検知し、検出信号SBがLレベルからHレベルに立ち上がる。さらにキャリッジ82が媒体幅に相当する時間t3だけ移動すると、右側の第1センサー83Aが右側の第2側端PE2を検知し、検出信号SAがHレベルからLレベルに立ち下がる。なお、時間t3の期間に出力された電動モーター103のステップ数は、その期間におけるキャリッジ82の移動距離に相当し、これは媒体LPの幅に相当する。   Further, as shown in FIG. 19, when the carriage 82 is positioned at the home position HP (solid line position in FIG. 17) and the detection signal SH is at the H level, if the detection target is a large-sized medium LP, The first sensor 83A detects the medium LP and is at the H level, and the second sensor 83B on the left side does not detect the medium LP and is at the L level. When the carriage 82 starts to move from the home position, the left second sensor 83B first detects the left first side end PE1, and the detection signal SB rises from the L level to the H level. When the carriage 82 further moves for a time t3 corresponding to the medium width, the first sensor 83A on the right side detects the second side end PE2 on the right side, and the detection signal SA falls from the H level to the L level. Note that the number of steps of the electric motor 103 output during the period of time t3 corresponds to the moving distance of the carriage 82 during that period, which corresponds to the width of the medium LP.

次に、図18〜図21を参照して、印刷装置11の作用について説明する。制御部120は、印刷装置11の電源が投入されると、制御部120は、図20に示される媒体側端検出処理を実行する。また、制御部120は、図20に示す媒体側端検出処理において、センサー83A,83Bのうち一方の故障を検出した場合は、図21に示される故障時の媒体側端検出処理を実行する。   Next, the operation of the printing apparatus 11 will be described with reference to FIGS. When the power of the printing apparatus 11 is turned on, the control unit 120 executes the medium side edge detection process shown in FIG. Further, in the medium side edge detection process shown in FIG. 20, when the controller 120 detects a failure of one of the sensors 83A and 83B, the control unit 120 executes the medium side edge detection process at the time of failure shown in FIG.

まずステップS11では、センサー故障検出処理を行う。このセンサー故障検出処理は、搬送ユニット32が媒体Pを搬送していないときに行う。ここで、媒体Pを搬送していないときとは、印刷装置11の電源オン時、印刷ジョブの受信を待っている印刷待機状態にあるとき、休止モード(スリープモード)からの復帰時等が挙げられる。本例では、光反射面71Cは、センサー83A,83Bの移動経路と対向する領域に設けられているので、センサー83A,83Bは、移動経路上のどの位置にあっても、光反射面71Cと対向する。例えばキャリッジ82がホーム位置HPにある状態で、センサー83A,83Bは光を出射し、その出射した光が光反射面71Cで反射した反射光を受光する。制御部120は、センサー83A,83Bからの光が光反射面71Cで反射した反射光を受光した受光量が閾値を超えず、その検出信号が媒体ありのときのHレベルである場合は、故障と判定する。この故障検出処理を2つのセンサー83A,83Bのそれぞれについて行う。なお、センサー83A,83Bの移動経路のうち一部と対向する領域にしか光反射面71Cが存在せず、2つのセンサー83A,83Bが光反射面71Cと対向する位置にない場合、制御部120は、電動モーター103を駆動制御し、2つのセンサー83A,83が光反射面71Cと対向する位置に配置する。そして、制御部120は、2つのセンサー83A,83Bを光反射面71Cと対向する位置に配置した状態で発光させることにより、各検出信号に基づいて故障検出処理を行う。   First, in step S11, sensor failure detection processing is performed. This sensor failure detection process is performed when the transport unit 32 is not transporting the medium P. Here, the time when the medium P is not being conveyed includes when the printing apparatus 11 is turned on, in a print standby state waiting for reception of a print job, when returning from the sleep mode (sleep mode), and the like. It is done. In this example, since the light reflection surface 71C is provided in a region facing the movement path of the sensors 83A and 83B, the sensors 83A and 83B can be located at any position on the movement path with the light reflection surface 71C. opposite. For example, in a state where the carriage 82 is at the home position HP, the sensors 83A and 83B emit light and receive the reflected light reflected by the light reflecting surface 71C. If the light received from the sensors 83A and 83B received the reflected light reflected by the light reflecting surface 71C does not exceed the threshold and the detection signal is at the H level when the medium is present, Is determined. This failure detection process is performed for each of the two sensors 83A and 83B. When the light reflecting surface 71C exists only in a region facing a part of the movement path of the sensors 83A and 83B, and the two sensors 83A and 83B are not located at a position facing the light reflecting surface 71C, the control unit 120 Is driven and controlled by the electric motor 103, and the two sensors 83A and 83 are arranged at positions facing the light reflecting surface 71C. And the control part 120 performs a failure detection process based on each detection signal by making it light-emit in the state which has arrange | positioned the two sensors 83A and 83B in the position facing 71 C of light reflection surfaces.

ステップS12では、センサーが故障であるか否かを判定する。この故障判定では、2つのセンサー83A,83Bのうち1つでも故障であれば故障と判定する。1つでも故障であればステップS13に進み、故障でなければステップS14に進む。   In step S12, it is determined whether or not the sensor is malfunctioning. In this failure determination, if any one of the two sensors 83A and 83B is failed, it is determined as a failure. If there is even one failure, the process proceeds to step S13, and if not, the process proceeds to step S14.

ステップS13では、故障報知を行う。すなわち、制御部120は、例えば表示部15に故障の旨のメッセージを表示することで、ユーザーに故障の旨を報知する。なお、故障報知は発光ダイオード等の発光部の発光又は点滅等による報知、ブザー又は音声による報知、これら複数種の報知方法を組み合わせて報知するものでもよい。   In step S13, failure notification is performed. That is, the control unit 120 notifies the user of the failure, for example, by displaying a message indicating the failure on the display unit 15. Note that the failure notification may be a notification by light emission or blinking of a light emitting unit such as a light emitting diode, a notification by a buzzer or sound, or a combination of these notification methods.

ステップS14では、幅情報を含む印刷ジョブを受け付けたか否かを判断する。本例の印刷装置11では、印刷ジョブには印刷設定情報が含まれ、その印刷設定情報の中の1つに媒体の幅情報(例えば用紙サイズ)が含まれている。つまり、このステップS14の処理は印刷ジョブを受け付けたか否かを判断するに同義である。なお、印刷ジョブ以外の方法で印刷の指示を受け付ける場合、例えば印刷装置11に不図示のメモリーカードを接続して操作部16を操作してメモリーカードから選択した画像を印刷する場合、制御部120は操作部16で選択された媒体Pの幅情報(例えば用紙サイズ)を取得する。   In step S14, it is determined whether a print job including width information has been received. In the printing apparatus 11 of this example, the print job includes print setting information, and one of the print setting information includes medium width information (for example, paper size). That is, the process of step S14 is synonymous with determining whether a print job has been accepted. When receiving a print instruction by a method other than a print job, for example, when connecting a memory card (not shown) to the printing apparatus 11 and operating the operation unit 16 to print a selected image from the memory card, the control unit 120 Acquires width information (for example, paper size) of the medium P selected by the operation unit 16.

ステップS15では、センサーが全て正常であるか否かを判定する。詳しくは、制御部120の故障検出部143が、第1及び第2センサー83A,83Bの故障を検出する故障検出処理を行い、その故障検出処理結果に基づきセンサー83A,83Bが全て正常であるか否かを判定する。故障検出処理としては、媒体Pが給送される前の媒体の無い状態の下で、光反射面71Cで反射した反射光を受光しているはずのセンサー83A,83Bからの検出信号SA,SBの値が、媒体が無いときの値(例えばLレベル)でなく、媒体を検知しているときの値(例えばHレベル)であれば、そのセンサーを故障と判定する。全てのセンサー83A,83Bが正常であれば、ステップS16に進み、センサー83A,83Bのうち1つでも故障がある場合はステップS19に進む。   In step S15, it is determined whether or not all the sensors are normal. Specifically, the failure detection unit 143 of the control unit 120 performs failure detection processing for detecting failures in the first and second sensors 83A and 83B, and whether the sensors 83A and 83B are all normal based on the failure detection processing results. Determine whether or not. As the failure detection processing, detection signals SA and SB from the sensors 83A and 83B that should have received the reflected light reflected by the light reflecting surface 71C in a state where there is no medium before the medium P is fed. If the value is not a value when there is no medium (for example, L level) but a value when the medium is detected (for example, H level), the sensor is determined to be faulty. If all the sensors 83A and 83B are normal, the process proceeds to step S16, and if one of the sensors 83A and 83B has a failure, the process proceeds to step S19.

ステップS16では、媒体の幅は設定幅以下であるか否かを判定する。そして、制御部120は、幅情報から取得した媒体Pの幅が設定幅以下であれば、つまり媒体Pが小サイズの媒体SPであれば、ステップS17に進む。一方、幅情報から取得した媒体Pの幅が設定幅を超えれば、つまり媒体Pが大サイズの媒体LPであれば、ステップS18に進む。   In step S16, it is determined whether the width of the medium is equal to or smaller than the set width. Then, if the width of the medium P acquired from the width information is equal to or smaller than the set width, that is, if the medium P is a small-sized medium SP, the control unit 120 proceeds to step S17. On the other hand, if the width of the medium P acquired from the width information exceeds the set width, that is, if the medium P is a large-sized medium LP, the process proceeds to step S18.

ステップS17では、1つのセンサーを用いて媒体の両側端を検出する第1側端検出処理を行う。制御部120のキャリッジ制御部142は、モーター駆動回路131を介して電動モーター103を駆動制御し、キャリッジ82を幅方向Xに移動させる。電動モーター103がステッピングモーターである本例では、キャリッジ制御部142は、ステップ数を指示することで電動モーター103を制御する。カウンター145は、キャリッジ82がホーム位置HPにあって位置センサー90が被検出部82Aを検知したときにリセットされ、制御に使用するステップ数をキャリッジ82の進行方向に応じて加算又は減算する計数処理を行う。これによりカウンター145には、キャリッジ82の幅方向Xにおける位置に応じた計数値が格納される。キャリッジ制御部142は、幅情報に基づき媒体Pの幅が設定幅以下の例えばA4判などの小サイズの媒体SPである場合、キャリッジ82をホーム位置HPから図17に2点鎖線で示す位置A1まで移動させる。このキャリッジ82の移動過程で、検出処理部144は、一方の第1センサー83Aのみを用いて小サイズの媒体SPの両側の側端位置PE1,PE2を検出する。   In step S17, a first side edge detection process for detecting both side edges of the medium using one sensor is performed. The carriage control unit 142 of the control unit 120 drives and controls the electric motor 103 via the motor drive circuit 131 and moves the carriage 82 in the width direction X. In this example in which the electric motor 103 is a stepping motor, the carriage control unit 142 controls the electric motor 103 by instructing the number of steps. The counter 145 is reset when the carriage 82 is at the home position HP and the position sensor 90 detects the detected portion 82A, and count processing for adding or subtracting the number of steps used for control according to the traveling direction of the carriage 82. I do. As a result, the counter 145 stores a count value corresponding to the position of the carriage 82 in the width direction X. When the medium P is a small medium SP such as A4 size whose width is equal to or smaller than the set width based on the width information, the carriage controller 142 moves the carriage 82 from the home position HP to a position A1 indicated by a two-dot chain line in FIG. To move. During the movement process of the carriage 82, the detection processing unit 144 detects the side end positions PE1 and PE2 on both sides of the small-sized medium SP using only the first sensor 83A.

このとき、図18に示すように、制御部120は、位置センサー90の検出信号SHと、第1センサー83Aの検出信号SAと、第2センサー83Bの検出信号SBとを入力する。制御部120の検出処理部144は、第1センサー83Aの検出信号SAを監視し、検出信号SAがLレベルからHレベルに立ち上がると、そのときのカウンター145の計数値を取得し、その計数値とキャリッジ幅中心位置から第1センサー83Aまでの幅方向Xの既知の第1距離(例えばL1/2)とを用いて第1側端位置PE1を算出する。その算出した第1側端位置PE1はメモリーに記憶される。そして、そのキャリッジ82の移動中に第1センサー83Aの検出信号SAがHレベルからLレベルに立ち下がると、そのときのカウンター145の計数値を取得し、その計数値と前述の既知の第1距離とを用いて第2側端位置PE2を算出し、その算出した第2側端位置PE2をメモリーに記憶する。こうしてキャリッジ82がホーム位置HPにあるときに2つのセンサー83A,83Bが共に媒体SPを検知していなければ、キャリッジ82の媒体検出時の移動過程の進行方向前側に位置する第1センサー83Aのみを用いることで、相対的にキャリッジ82の短い移動距離で、媒体Pの両側の側端位置PE1,PE2を検出できる。   At this time, as shown in FIG. 18, the control unit 120 inputs the detection signal SH of the position sensor 90, the detection signal SA of the first sensor 83A, and the detection signal SB of the second sensor 83B. The detection processing unit 144 of the control unit 120 monitors the detection signal SA of the first sensor 83A, and when the detection signal SA rises from the L level to the H level, acquires the count value of the counter 145 at that time, and the count value And the known first distance (for example, L1 / 2) in the width direction X from the carriage width center position to the first sensor 83A, the first side end position PE1 is calculated. The calculated first side end position PE1 is stored in the memory. Then, when the detection signal SA of the first sensor 83A falls from the H level to the L level during the movement of the carriage 82, the count value of the counter 145 at that time is acquired, and the count value and the above-described known first value are obtained. The second side end position PE2 is calculated using the distance, and the calculated second side end position PE2 is stored in the memory. Thus, if the two sensors 83A and 83B do not detect the medium SP when the carriage 82 is at the home position HP, only the first sensor 83A positioned on the front side in the traveling direction of the movement process when the carriage 82 detects the medium is used. By using it, the side end positions PE1 and PE2 on both sides of the medium P can be detected with a relatively short movement distance of the carriage 82.

図20におけるステップS18では、2つのセンサーを用いて媒体の両側端を検出する第2側端検出処理を行う。制御部120のキャリッジ制御部142は、ステップ数を指示してモーター駆動回路131を介して電動モーター103を駆動制御し、キャリッジ82を幅方向Xに移動させる。このとき、カウンター145には、キャリッジ82がホーム位置HPにあるときを原点とするキャリッジ82の幅方向Xにおける位置が計数される。キャリッジ制御部142は、幅情報に基づき媒体Pの幅が設定幅を超える例えばA3判などの大サイズの媒体SPである場合、キャリッジ82をホーム位置HPから幅方向Xに例えば図17に2点鎖線で示す位置A2まで移動させる。このキャリッジ82の移動過程で、検出処理部144は、第1及び第2センサー83A,83Bの両方を用いて、大サイズの媒体LPの幅方向Xの両側の側端位置PE1,PE2を検出する。   In step S18 in FIG. 20, a second side edge detection process for detecting both side edges of the medium using two sensors is performed. The carriage control unit 142 of the control unit 120 instructs the number of steps to drive and control the electric motor 103 via the motor drive circuit 131 to move the carriage 82 in the width direction X. At this time, the counter 145 counts the position in the width direction X of the carriage 82 with the origin when the carriage 82 is at the home position HP. The carriage control unit 142 moves the carriage 82 from the home position HP in the width direction X, for example, two points in FIG. 17 when the width of the medium P exceeds the set width based on the width information. Move to position A2 indicated by the chain line. During the movement process of the carriage 82, the detection processing unit 144 detects the side end positions PE1 and PE2 on both sides in the width direction X of the large-sized medium LP using both the first and second sensors 83A and 83B. .

詳しくは、図19に示すように、キャリッジ82がホーム位置HPにあって検出信号SHがHレベルにあるとき、第1センサー83Aは媒体LPを検知した状態にあってその検出信号SAはHレベルにある。一方、媒体LPを検知していない第2センサー83Bの検出信号SBはLレベルにある。キャリッジ82がホーム位置HPから移動を開始すると、検出処理部144は、まず第2センサー83Bの検出信号SBを監視する。検出処理部144は、第2センサー83Bの検出信号SBがLレベルからHレベルに立ち上がると、そのときのカウンター145の計数値を取得し、その計数値とキャリッジ幅中心位置から第2センサー83Bまでの幅方向Xの既知の第2距離(例えばL1/2)とを用いて第1側端位置PE1を算出する。その算出した第1側端位置PE1はメモリーに記憶される。そして、その後のキャリッジ82の移動中に第1センサー83Aの検出信号SAがHレベルからLレベルに立ち下がると、そのときのカウンター145の計数値を取得し、その計数値と前述の既知の第1距離とを用いて第2側端位置PE2を算出し、その算出した第2側端位置PE2をメモリーに記憶する。こうしてキャリッジ82がホーム位置HPにあるときに2つのセンサー83A,83Bのうち一方が媒体LPを検知していなければ、キャリッジ82の媒体検出時の移動過程の進行方向後側に位置する第2センサー83Bで第1側端位置PE1を検出し、進行方向前側に位置する第1センサー83Aで第2側端位置PE2を検出する。このため、相対的にキャリッジ82の短い移動距離で、媒体Pの両側の側端位置PE1,PE2を検出できる。   Specifically, as shown in FIG. 19, when the carriage 82 is at the home position HP and the detection signal SH is at the H level, the first sensor 83A is in the state of detecting the medium LP, and the detection signal SA is at the H level. It is in. On the other hand, the detection signal SB of the second sensor 83B that has not detected the medium LP is at the L level. When the carriage 82 starts moving from the home position HP, the detection processing unit 144 first monitors the detection signal SB of the second sensor 83B. When the detection signal SB of the second sensor 83B rises from the L level to the H level, the detection processing unit 144 acquires the count value of the counter 145 at that time, and from the count value and the carriage width center position to the second sensor 83B. The first side end position PE1 is calculated using the known second distance in the width direction X (for example, L1 / 2). The calculated first side end position PE1 is stored in the memory. Then, when the detection signal SA of the first sensor 83A falls from the H level to the L level during the subsequent movement of the carriage 82, the count value of the counter 145 at that time is acquired, and the count value and the above-mentioned known first count are obtained. The second side end position PE2 is calculated using 1 distance, and the calculated second side end position PE2 is stored in the memory. In this way, if one of the two sensors 83A and 83B does not detect the medium LP when the carriage 82 is at the home position HP, the second sensor is located on the rear side in the traveling direction of the movement process when the medium is detected by the carriage 82. The first side end position PE1 is detected at 83B, and the second side end position PE2 is detected by the first sensor 83A located on the front side in the traveling direction. Therefore, the side end positions PE1 and PE2 on both sides of the medium P can be detected with a relatively short movement distance of the carriage 82.

図20におけるステップS19では、故障時の媒体側端検出処理を行う。この故障時の媒体側端検出処理は、制御部120のコンピューターが、図21に示す故障時の媒体側端検出処理ルーチンを実行することにより行われる。   In step S19 in FIG. 20, medium side edge detection processing at the time of failure is performed. The medium side edge detection process at the time of failure is performed by the computer of the control unit 120 executing a medium side edge detection process routine at the time of failure shown in FIG.

以下、図21を参照して、制御部120が行う故障時の媒体側端検出処理について説明する。
まずステップS21では、一方のセンサーのみの故障であるか否かを判定する。すなわち、制御部120は、図20のステップS11におけるセンサー故障検出処理の検出結果を用いて、一方のセンサーのみの故障であるか否かを判定する。一方のセンサーのみの故障であればステップS22に進む。また、一方のセンサーのみの故障でなければ、つまり2つのセンサーが共に故障であれば、ステップS26に進む。
Hereinafter, the medium side edge detection process at the time of failure performed by the control unit 120 will be described with reference to FIG.
First, in step S21, it is determined whether or not it is a failure of only one sensor. That is, the control unit 120 determines whether the failure is caused by only one sensor using the detection result of the sensor failure detection process in step S11 of FIG. If only one sensor fails, the process proceeds to step S22. If only one of the sensors is not faulty, that is, if both of the two sensors are faulty, the process proceeds to step S26.

ステップS22では、媒体の幅は設定幅以下であるか否かを判断する。この判断処理は、図20におけるステップS16の判断処理と同じであり、幅情報に基づいて行う。媒体Pの幅が設定幅以下であればステップS23に進む。一方、媒体Pの幅が設定幅以下でなければ、つまり媒体Pの幅が設定幅を超えていれば、ステップS24に進む。   In step S22, it is determined whether the width of the medium is equal to or smaller than the set width. This determination processing is the same as the determination processing in step S16 in FIG. 20, and is performed based on the width information. If the width of the medium P is equal to or smaller than the set width, the process proceeds to step S23. On the other hand, if the width of the medium P is not less than or equal to the set width, that is, if the width of the medium P exceeds the set width, the process proceeds to step S24.

ステップS23では、正常な他方のセンサーを用いて媒体の両側端を検出する第3側端検出処理を行う。例えば第1センサー83Aが正常で第2センサー83Bが故障である場合、正常な第1センサー83Aを用いて媒体Pの両側端位置PE1,PE2を検出する、図19におけるステップS17と同様の第1側端検出処理を、第3側端検出処理として行う。一方、第1センサー83Aが故障で第2センサー83Bが正常である場合、正常な第2センサー83Bを用いて媒体Pの両側端位置PE1,PE2を検出する第3側端検出処理を行う。後者の場合、第2センサー83Bからの検出信号SBのLレベルからHレベルへの立ち上がり時のカウンター145の計数値を取得し、その計数値と前述の既知の第2距離とを用いて第1側端位置PE1を算出し、その算出した第1側端位置PE1をメモリーに記憶する。また、検出信号SBのHレベルからLレベルへの立ち下がり時のカウンター145の計数値を取得し、その計数値と前述の既知の第2距離とを用いて第2側端位置PE2を算出し、その算出した第2側端位置PE2をメモリーに記憶する。   In step S23, a third side edge detection process for detecting both side edges of the medium using the other normal sensor is performed. For example, when the first sensor 83A is normal and the second sensor 83B is faulty, the first end similar to step S17 in FIG. 19 is detected using the normal first sensor 83A to detect the side edge positions PE1 and PE2 of the medium P. The side edge detection process is performed as a third side edge detection process. On the other hand, when the first sensor 83A is out of order and the second sensor 83B is normal, third side edge detection processing is performed to detect both side edge positions PE1 and PE2 of the medium P using the normal second sensor 83B. In the latter case, the count value of the counter 145 when the detection signal SB from the second sensor 83B rises from the L level to the H level is acquired, and the first value is used by using the count value and the known second distance. The side end position PE1 is calculated, and the calculated first side end position PE1 is stored in the memory. Further, the count value of the counter 145 when the detection signal SB falls from the H level to the L level is acquired, and the second side end position PE2 is calculated using the count value and the above-described known second distance. The calculated second side end position PE2 is stored in the memory.

ステップS24では、推定を伴う第4側端検出処理を行ってよいか否かを判断する。本例では、制御部120は、推定を伴う第4側端検出処理を行ってよいか否かの問合せメッセージを表示部15に表示し、その問合せの応答としてユーザーが操作部16を操作した操作信号に基づいて第4側端検出処理の実行の可否を判断する。あるいは、ユーザーが印刷装置11の操作部16を操作して予め登録しておいた登録情報をメモリーから読み出し、その登録情報に基づいて第4側端検出処理の実行の可否を判断する。制御部120は、第4側端検出処理の実行が許可されればステップS25に進み、第4側端検出処理の実行が許可されなければステップS27に進む。   In step S24, it is determined whether or not the fourth side end detection process with estimation may be performed. In this example, the control unit 120 displays an inquiry message on the display unit 15 as to whether or not the fourth side edge detection process with estimation may be performed, and an operation in which the user operates the operation unit 16 as a response to the inquiry. Whether or not the fourth side end detection process can be executed is determined based on the signal. Alternatively, the registered information registered in advance by the user by operating the operation unit 16 of the printing apparatus 11 is read from the memory, and it is determined whether or not the fourth side edge detection process can be executed based on the registered information. If the execution of the fourth side end detection process is permitted, the control unit 120 proceeds to step S25, and if the execution of the fourth side end detection process is not permitted, the control unit 120 proceeds to step S27.

ステップS25では、正常な他方のセンサーを用いて一方の側端を検出し、一方の側端の検出結果と幅情報とを用いて他方の側端を推定する第4側端検出処理を行う。図17に示すように、本例の印刷装置11では、キャリッジ82をホーム位置HP側のエンド位置E1から反ホーム位置AP側のエンド位置E2まで移動できる移動可能範囲が相対的に短くなっている。このため、媒体検出装置80の幅方向Xのサイズ寸法、ひいては印刷装置11の幅方向Xのサイズ寸法を短くし、印刷装置11のコンパクト化に寄与する。しかし、キャリッジ82の移動可能範囲が相対的に短いことから、大サイズの媒体LPが検出対象である場合、正常な他方のセンサーだけでは、媒体LPの両側の側端を検出できない。このため、正常なセンサーで一方の側端位置を検出し、他方のセンサーの故障により検出できない他方の側端位置は、正常なセンサーで検出した側端位置と幅情報とを用いた演算で推定する。詳しくは、制御部120は、第1及び第2センサー83A,83Bのうち故障でない他方のセンサーにより一方の側端を検出する。例えば第1センサー83Aが正常で第2センサー83Bが故障の場合、第1センサー83Aにより一方の側端位置PE2を検出する。また、第1センサー83Aが故障で第2センサー83Bが正常の場合、第2センサー83Bにより一方の側端位置PE1を検出する。検出処理部144の演算部146は、この検出した一方の側端位置と媒体Pの幅情報とを用いて他方の側端位置を算出する。他方のセンサーで検出した一方の側端位置をx1、媒体幅をW1とすると、媒体Pの他方の側端位置x2は、第1センサー83Aが正常である場合にx2=x1−W1、第2センサー83Bが正常である場合にx1+W1により算出される。こうして第4側端検出処理によって、媒体Pの両側の側端位置PE1,PE2が取得される。   In step S25, a fourth side end detection process is performed in which one side end is detected using the other normal sensor, and the other side end is estimated using the detection result of one side end and the width information. As shown in FIG. 17, in the printing apparatus 11 of this example, the movable range in which the carriage 82 can be moved from the end position E1 on the home position HP side to the end position E2 on the non-home position AP side is relatively short. . For this reason, the size dimension of the medium detection apparatus 80 in the width direction X, and hence the size dimension of the printing apparatus 11 in the width direction X, is shortened, which contributes to making the printing apparatus 11 compact. However, since the movable range of the carriage 82 is relatively short, when the large-sized medium LP is a detection target, the side edges on both sides of the medium LP cannot be detected only with the other normal sensor. For this reason, one side edge position is detected by a normal sensor, and the other side edge position that cannot be detected due to a failure of the other sensor is estimated by calculation using the side edge position and width information detected by the normal sensor. To do. Specifically, the control unit 120 detects one side end by the other sensor that is not out of the first and second sensors 83A and 83B. For example, when the first sensor 83A is normal and the second sensor 83B is out of order, one side end position PE2 is detected by the first sensor 83A. Further, when the first sensor 83A is out of order and the second sensor 83B is normal, the one side end position PE1 is detected by the second sensor 83B. The calculation unit 146 of the detection processing unit 144 calculates the other side end position using the detected one side end position and the width information of the medium P. Assuming that one side edge position detected by the other sensor is x1 and the medium width is W1, the other side edge position x2 of the medium P is x2 = x1−W1 and second when the first sensor 83A is normal. Calculated by x1 + W1 when the sensor 83B is normal. Thus, the side end positions PE1 and PE2 on both sides of the medium P are acquired by the fourth side end detection process.

制御部120は、媒体側端検出処理によって取得した媒体Pの両側の側端位置PE1,PE2に基づいて、印刷ヘッド34の幅方向Xにおける印刷範囲を制御する。この結果、媒体Pの幅方向Xにおいて適切な位置範囲に印刷が施される。なお、制御部120は、側端位置PE1,PE2から媒体Pの幅を取得し、その幅が幅情報から取得した媒体幅と許容範囲を超えて異なる場合は、媒体サイズのエラーの旨のメッセージを表示部15に表示させる。   The control unit 120 controls the printing range in the width direction X of the print head 34 based on the side edge positions PE1 and PE2 on both sides of the medium P acquired by the medium side edge detection process. As a result, printing is performed in an appropriate position range in the width direction X of the medium P. The control unit 120 acquires the width of the medium P from the side end positions PE1 and PE2, and if the width differs from the medium width acquired from the width information beyond the allowable range, a message indicating a medium size error. Is displayed on the display unit 15.

ステップS26では、側端検出なしで印刷を実施してよいか否かを判断する。本例では、例えば制御部120は、問合せメッセージを表示部15に表示させ、ユーザーに媒体Pの側端の検出なしで印刷を実施してよいか否かを問い合わせる。制御部120は、操作部16からの操作信号に基づき、側端検出なしで印刷を実施する旨の応答を受け付けると(S26で肯定判定)、ステップS27に進み、一方、側端検出なしで印刷を実施しない旨の応答を受け付けると(S26で否定判定)、当該ルーチンを終了する。後者の場合、印刷自体が中止される。   In step S26, it is determined whether printing can be performed without detecting the side edge. In this example, for example, the control unit 120 displays an inquiry message on the display unit 15 and inquires of the user whether printing can be performed without detecting the side edge of the medium P. When the control unit 120 receives a response indicating that printing is to be performed without detecting the side edge based on the operation signal from the operation unit 16 (Yes in S26), the control unit 120 proceeds to step S27, while printing without detecting the side edge. If a response to the effect of not implementing is received (No in S26), the routine is terminated. In the latter case, printing itself is stopped.

ステップS27では、側端検出処理を中止する。制御部120は、側端検出処理の実行の可否を管理するフラグを備え、フラグに中止の旨の値を書き込む。この場合、制御部120は、側端検出処理を行うことなく、印刷ジョブデータPDに基づく印刷を実施する。このとき、制御部120は、幅情報から取得した媒体幅に基づいて印刷ヘッド34の印刷範囲を制御する。   In step S27, the side edge detection process is stopped. The control unit 120 includes a flag for managing whether or not the side edge detection process can be executed, and writes a value indicating cancellation to the flag. In this case, the control unit 120 performs printing based on the print job data PD without performing side edge detection processing. At this time, the control unit 120 controls the print range of the print head 34 based on the medium width acquired from the width information.

なお、図20において、ステップS24及びステップS25の処理を廃止し、推定を伴う第4側端検出処理を行わない構成としてもよい。また、ステップS24で否定判定のときは、ステップS26の判断処理へ進んでもよい。さらに、ステップS26の処理を廃止し、全てのセンサー83A,83Bが故障である場合は、印刷を中止してもよい。   In addition, in FIG. 20, it is good also as a structure which abolishes the process of step S24 and step S25, and does not perform the 4th side edge detection process accompanied by estimation. Moreover, when a negative determination is made in step S24, the process may proceed to a determination process in step S26. Further, the processing in step S26 may be abolished, and printing may be stopped when all the sensors 83A and 83B are out of order.

以上詳述した第1実施形態によれば、以下に示す効果を得ることができる。
(1)印刷ヘッド34よりも媒体Pの搬送方向Yの上流側に、媒体Pの搬送方向Yと交差する幅方向Xの側端を検出する媒体検出装置80を配置した。媒体検出装置80は、印刷ヘッド34よりも搬送方向Yの上流側の位置で印刷ヘッド34と独立して幅方向Xに移動可能なキャリッジ82と、キャリッジ82における幅方向Xの異なる位置に設けられた2つのセンサー83A,83Bと、キャリッジ82を移動させる動力源の一例としての電動モーター103とを備える。制御部120は、電動モーター103を制御してキャリッジ82を移動させることでセンサー83A,83Bに媒体Pの幅方向Xの側端を検出させる。キャリッジ82には2つのセンサー83A,83Bが幅方向Xの異なる位置に配置されているので、2つのセンサー83A,83Bを使い分けることにより、媒体Pの幅方向Xの側端を検出する際のキャリッジ82の移動量を少なく済ませられる。よって、印刷ヘッド34が移動するか否かの印刷方式(例えばライン印刷方式やシリアル印刷方式)に依存することなく、媒体Pの幅方向Xの両側の側端を検出でき、しかも媒体検出装置80を設けた割に、印刷装置11の幅方向サイズ寸法を比較的短く抑えることができる。
According to the first embodiment described in detail above, the following effects can be obtained.
(1) The medium detection device 80 that detects the side edge in the width direction X that intersects the transport direction Y of the medium P is disposed upstream of the print head 34 in the transport direction Y of the medium P. The medium detection device 80 is provided at a position that is upstream of the print head 34 in the transport direction Y and is movable in the width direction X independently of the print head 34, and at a different position in the width direction X of the carriage 82. The two sensors 83A and 83B and an electric motor 103 as an example of a power source for moving the carriage 82 are provided. The control unit 120 controls the electric motor 103 to move the carriage 82 to cause the sensors 83A and 83B to detect the side end in the width direction X of the medium P. Since the two sensors 83A and 83B are arranged at different positions in the width direction X on the carriage 82, the carriage for detecting the side edge in the width direction X of the medium P by using the two sensors 83A and 83B properly. The amount of movement of 82 can be reduced. Therefore, the side edges on both sides in the width direction X of the medium P can be detected without depending on the printing method (for example, the line printing method or the serial printing method) as to whether or not the print head 34 moves. However, the size in the width direction of the printing apparatus 11 can be kept relatively short.

(2)キャリッジ82が、搬送ユニット32により搬送される媒体Pの搬送経路30に対して印刷ヘッド34側とは反対側の位置で幅方向Xに移動可能に設けられることで、光学式センサーからなる2つのセンサー83A,83Bは、搬送経路30を挟んで印刷ヘッド34側とは反対側の位置から媒体Pに向かって光を照射する。よって、2つのセンサー83A,83Bが、媒体Pに対して印刷ヘッド34と同じ側に配置される構成とした場合に比べ、印刷ヘッド34からのインクミストが付着しにくい。そのため、インク汚れに起因するセンサー83A,83Bの検出精度の低下を回避し易い。   (2) Since the carriage 82 is provided so as to be movable in the width direction X at a position opposite to the print head 34 side with respect to the transport path 30 of the medium P transported by the transport unit 32, from the optical sensor. The two sensors 83 </ b> A and 83 </ b> B irradiate light toward the medium P from a position opposite to the print head 34 with the conveyance path 30 interposed therebetween. Therefore, compared to the case where the two sensors 83A and 83B are arranged on the same side as the print head 34 with respect to the medium P, ink mist from the print head 34 is less likely to adhere. Therefore, it is easy to avoid a decrease in detection accuracy of the sensors 83A and 83B due to ink stains.

(3)媒体検出装置80の筐体81は、搬送経路30を搬送される媒体Pを支持する媒体支持部81Bを有し、その媒体支持部81Bに2つのセンサー83A,83Bからの光を透過可能な窓部88を設けている。よって、センサー83A,83Bは窓部88によって保護されるので、媒体Pから出た紙粉等の塵埃や印刷ヘッド34からのインクミスト等により直接は汚れないので、センサー83A,83Bの検出精度を比較的高く維持できる。また、窓部88が媒体支持部81Bの一部を兼ね、窓部88の上面を摺動する媒体Pとセンサー83A,83Bとの距離を比較的短くでき、この点からもセンサー83A,83Bの検出精度を高く維持できる。   (3) The casing 81 of the medium detection device 80 has a medium support portion 81B that supports the medium P that is transported through the transport path 30, and transmits light from the two sensors 83A and 83B to the medium support portion 81B. A possible window 88 is provided. Therefore, since the sensors 83A and 83B are protected by the window portion 88, they are not directly soiled by dust such as paper dust from the medium P or ink mist from the print head 34, so that the detection accuracy of the sensors 83A and 83B is improved. Can be kept relatively high. Further, the window 88 also serves as a part of the medium support portion 81B, and the distance between the medium P that slides on the upper surface of the window 88 and the sensors 83A and 83B can be made relatively short. High detection accuracy can be maintained.

(4)媒体支持部81Bには、2つの窓部88が幅方向Xに沿って配置されている。よって、センサー83A,83Bの移動エリアに亘る1つの長い窓部を設けた構成に比べ、媒体支持部81Bの強度を比較的高く確保できるうえ、窓部88の部品コストを相対的に安価に抑えることができる。   (4) Two window portions 88 are arranged along the width direction X in the medium support portion 81B. Therefore, the strength of the medium support portion 81B can be ensured to be relatively high and the cost of parts of the window portion 88 can be kept relatively low compared to the configuration in which one long window portion is provided over the moving area of the sensors 83A and 83B. be able to.

(5)複数の窓部88は、2つのセンサー83A,83Bによって最小幅から最大幅までの媒体Pの幅方向Xの両側の側端をそれぞれ異なる窓部88を通して検出できる位置に配置されている。例えば最小幅から最大幅までの媒体Pの両側の側端を連続的に検出できる。例えば定形の媒体P以外の不定形の媒体Pが搬送されても、その不定形の媒体Pの側端を検出できる。   (5) The plurality of window portions 88 are arranged at positions where the side edges on both sides in the width direction X of the medium P from the minimum width to the maximum width can be detected through the different window portions 88 by the two sensors 83A and 83B. . For example, the side edges on both sides of the medium P from the minimum width to the maximum width can be detected continuously. For example, even when an irregular medium P other than the regular medium P is conveyed, the side edge of the irregular medium P can be detected.

(6)媒体検出装置80の動力源の一例である電動モーター103をステッピングモーターとしたので、直流モーター(DCモーター)を使用した場合に必要になる、キャリッジ82の位置を取得するためのエンコーダー等が不要になる。よって、直流モーターを使用した場合に比べ、媒体検出装置80の部品点数を少なく抑えることができる。例えば媒体検出装置80の装置サイズの小型化を実現し易い。   (6) Since the electric motor 103, which is an example of the power source of the medium detection device 80, is a stepping motor, an encoder for acquiring the position of the carriage 82, which is necessary when a DC motor is used. Is no longer necessary. Therefore, the number of parts of the medium detection device 80 can be reduced as compared with the case where a DC motor is used. For example, it is easy to reduce the size of the medium detection device 80.

(7)最大幅の媒体Pである場合、キャリッジ82が移動可能範囲における左側のエンド位置E1にあるとき、2つのセンサー83A,83Bのうち右側のセンサー83Aは最大幅の媒体Pを検知し、左側のセンサー83Bは最大幅の媒体Pを検知しない。一方、キャリッジ82が移動可能範囲における右側のエンド位置E2にあるとき、2つのセンサー83A,83Bのうち左側のセンサー83Bは最大幅の媒体Pを検知し、右側のセンサー83Aは最大幅の媒体Pを検知しない。すなわち、最大幅の媒体Pであるとき、キャリッジ82が左側のエンド位置E1にあるとき左側のセンサー83Bのみが媒体Pから幅方向の外側へ外れ、キャリッジ82が右側のエンド位置にあるとき右側のセンサー83Aのみが媒体Pから幅方向Xの外側へ外れる。このため、キャリッジ82の移動可能範囲が最大幅の媒体Pの幅の割に相対的に狭いので、媒体検出装置80を設けた印刷装置11の幅方向Xのサイズ寸法を比較的短く抑えられる。また、最大幅の媒体Pである場合、媒体Pの左側の側端PE1を左側のセンサー83Bで検出し、媒体Pの右側の側端PE2を右側のセンサー83Aで検出することにより、最大幅の媒体Pの両側の側端PE1.PE2を検出できる。   (7) When the medium P has the maximum width, when the carriage 82 is at the left end position E1 in the movable range, the right sensor 83A of the two sensors 83A and 83B detects the medium P having the maximum width, The left sensor 83B does not detect the medium P having the maximum width. On the other hand, when the carriage 82 is at the right end position E2 in the movable range, the left sensor 83B of the two sensors 83A and 83B detects the maximum width medium P, and the right sensor 83A detects the maximum width medium P. Is not detected. That is, when the medium P has the maximum width, when the carriage 82 is at the left end position E1, only the left sensor 83B is disengaged from the medium P in the width direction, and when the carriage 82 is at the right end position, Only the sensor 83A is detached from the medium P in the width direction X. For this reason, since the movable range of the carriage 82 is relatively narrow relative to the width of the medium P having the maximum width, the size dimension in the width direction X of the printing apparatus 11 provided with the medium detection device 80 can be kept relatively short. When the medium P has the maximum width, the left side edge PE1 of the medium P is detected by the left sensor 83B, and the right side edge PE2 of the medium P is detected by the right sensor 83A. Side edges PE1 on both sides of the medium P1. PE2 can be detected.

(8)媒体Pの左側端(第1側端PE1)を左側の第2センサー83Bに検出させ、媒体Pの右側端(第2側端PE2)を右側の第1センサー83Aに検出させる。よって、媒体Pの幅方向Xの両側の側端を検出する際にキャリッジ82に必要な移動距離を相対的に短く済ませられる。そのため、媒体検出装置80の幅方向Xのサイズ寸法を短くできる。例えば媒体検出装置80を設けたことに起因し、印刷装置11の幅方向サイズが大きくなることを回避できるうえ、媒体Pの幅方向Xに関する媒体情報の取得所要時間を相対的に短く抑えることができる。   (8) The left end (first side end PE1) of the medium P is detected by the left second sensor 83B, and the right end (second side end PE2) of the medium P is detected by the right first sensor 83A. Therefore, the movement distance required for the carriage 82 when detecting the side edges on both sides in the width direction X of the medium P can be made relatively short. Therefore, the size dimension in the width direction X of the medium detection device 80 can be shortened. For example, an increase in the width direction size of the printing apparatus 11 due to the provision of the medium detection device 80 can be avoided, and the time required to acquire medium information regarding the width direction X of the medium P can be kept relatively short. it can.

(9)幅情報取得部141が取得した幅情報に基づく媒体Pの幅が設定幅よりも長い場合、制御部120は電動モーター103を制御し、媒体Pの左側端(第1側端PE1)を左側の第2センサー83Bに検出させ、媒体Pの右側端(第2側端PE2)を右側の第1センサー83Aに検出させる。よって、媒体Pの両側の側端PE1,PE2を検出する際に必要なキャリッジ82に移動距離を相対的に短く済ませることができる。これにより媒体検出装置80の幅方向サイズ寸法を相対的に短くできるうえ、媒体情報の取得所要時間を相対的に短く抑えることができる。   (9) When the width of the medium P based on the width information acquired by the width information acquisition unit 141 is longer than the set width, the control unit 120 controls the electric motor 103 and the left end (first side end PE1) of the medium P. Is detected by the second sensor 83B on the left side, and the right end (second side end PE2) of the medium P is detected by the first sensor 83A on the right side. Therefore, it is possible to make the movement distance relatively short for the carriage 82 required when detecting the side edges PE1 and PE2 on both sides of the medium P. Thereby, the size in the width direction of the medium detection device 80 can be made relatively short, and the time required for obtaining the medium information can be made relatively short.

(10)光反射型センサーからなるセンサー83A,83Bが検出時の光を透過させる窓部88に対して搬送経路30を挟んで対向する位置には、媒体案内部材の一例としてのガイド部材71が配置され、ガイド部材71におけるセンサー83A,83Bの移動経路と対向する部分が光反射面となっている。よって、光反射面専用の部材を別途設ける必要がないので、印刷ヘッド34よりも搬送方向Yの上流側における搬送ユニット32の媒体案内構造を比較的コンパクトに構成できる。   (10) A guide member 71, which is an example of a medium guide member, is positioned at a position where the sensors 83A and 83B made of light-reflective sensors face the window 88 that transmits light at the time of detection with the conveyance path 30 interposed therebetween. A portion of the guide member 71 that faces the movement path of the sensors 83A and 83B is a light reflecting surface. Therefore, it is not necessary to separately provide a member dedicated to the light reflecting surface, so that the medium guiding structure of the transport unit 32 on the upstream side in the transport direction Y from the print head 34 can be configured relatively compactly.

(11)ガイド部材71は金属製なので、ガイド部材71のセンサー83A,83Bの移動経路と対向する部分を例えば研磨すれば、光反射面71Cを比較的簡単に形成できる。   (11) Since the guide member 71 is made of metal, the light reflecting surface 71C can be formed relatively easily by polishing, for example, a portion of the guide member 71 that faces the movement path of the sensors 83A and 83B.

(12)制御部120は、搬送ユニット32が媒体Pを搬送していないときに、センサー83A,83Bの検出信号SA,SBを監視し、光反射面71Cからの反射光を受光すれば当該センサーを正常とし、光反射面71Cからの反射光を受光しなければ当該センサーを故障とする。よって、故障したセンサーの検出信号に基づく側端位置の誤検出など、間違った媒体情報が取得される不都合を極力回避できる。   (12) When the transport unit 32 is not transporting the medium P, the control unit 120 monitors the detection signals SA and SB of the sensors 83A and 83B and receives the reflected light from the light reflecting surface 71C. If the reflected light from the light reflecting surface 71C is not received, the sensor is regarded as a failure. Therefore, it is possible to avoid as much as possible inconvenience that wrong medium information is acquired, such as erroneous detection of the side edge position based on the detection signal of the failed sensor.

(13)制御部120は、2つのセンサー83A,83Bのうち一方が故障である場合、他方のセンサーで媒体Pの両側端PE1,PE2を検出する。よって、一方のセンサーが故障しても、媒体Pの両側端PE1,PE2を検出して必要な媒体情報を取得できる。特に媒体Pが大サイズであるときに、一方のセンサーのみでは両側端PE1,PE2を検出できない比較的短いキャリッジ82の移動可能範囲が設定されている場合でも、設定幅以下の幅を有する小サイズの媒体SPについては、故障していない他方のセンサーによって媒体SPの両側端PE1,PE2を検出し、必要な媒体情報を取得できる。   (13) When one of the two sensors 83A and 83B is out of order, the control unit 120 detects both side edges PE1 and PE2 of the medium P with the other sensor. Therefore, even if one of the sensors breaks down, the necessary medium information can be acquired by detecting both ends PE1 and PE2 of the medium P. In particular, when the medium P is a large size, even when a relatively short movable range of the carriage 82 in which the side edges PE1 and PE2 cannot be detected by only one sensor is set, the small size having a width equal to or smaller than the set width. With respect to the medium SP, it is possible to acquire the necessary medium information by detecting both ends PE1 and PE2 of the medium SP with the other sensor that is not malfunctioning.

(14)制御部120は、2つのセンサー83A,83Bのうち一方が故障である場合、媒体Pの幅が設定幅よりも大きければ、他方のセンサーで媒体Pの両側端PE1,PE2のうち一方の側端を検出し、その一方の側端の検出結果と幅情報とに基づいて演算部146が他方の側端位置を演算により推定する。よって、一方のセンサーが故障した際に、他方のセンサーで両側端を検出できないほど大きな幅の媒体LPについても、媒体LPの両側端位置PE1,PE2を含む媒体情報を取得できる。   (14) When one of the two sensors 83A and 83B is out of order and the width of the medium P is larger than the set width, the control unit 120 uses one of the two side edges PE1 and PE2 of the medium P with the other sensor. Is detected, and the calculation unit 146 estimates the position of the other side end by calculation based on the detection result of the one side end and the width information. Therefore, when one of the sensors breaks down, medium information including both side edge positions PE1 and PE2 of the medium LP can be acquired even for a medium LP having such a large width that the other edge cannot be detected by the other sensor.

(15)印刷装置11は、媒体載置部の一例としてのカセット21及び給送トレイ22からの媒体Pを印刷ヘッド34が印刷可能な位置を通る経路で搬送する搬送経路30と、搬送経路30を通って印刷ヘッド34により一方の面が印刷された媒体Pを反転させつつ搬送経路30の途中の位置へ戻す第3給送経路93(両面印刷経路の一例)とを備える。そして、媒体Pを幅方向Xに読み取って媒体Pの両側端PE1,PE2を検出可能な媒体検出装置80を、印刷ヘッド34よりも媒体Pの搬送方向Yの上流側の位置に、その読取位置が搬送経路30と第3給送経路93とが合流する第2経路合流部J2(合流部の一例)よりも搬送方向Yの上流側に位置するように配置した。よって、媒体検出装置80を設けた割に、印刷装置11の搬送方向Yのサイズ寸法を比較的短くすることができる。例えば反転給送路56を通って再給送される一方の面が印刷された媒体Pも媒体検出装置に読み取らせる構成を採用しようとすると、合流部を媒体検出装置の読取位置よりも搬送方向Yの上流側へずらして配置する必要がある。これに伴い、搬送経路30及び反転給送路56のうち合流部76よりも搬送方向の上流側に位置する部分を、搬送方向Yの上流側へずらす必要が生じる。この場合、印刷装置11の搬送方向Yにおけるサイズ寸法が相対的に長くなる。これに対して、一方の面が印刷された媒体Pを読み取らず、合流部76を読取位置よりも搬送方向Yの下流側に配置する構成としたので、搬送経路30及び反転給送路56のうち合流部76よりも搬送方向Yの上流側(後側)に位置する部分を、なるべく下流側寄りに配置できる。この結果、印刷ヘッド34が移動式か固定式かの印刷方式に依存することなく、媒体Pの幅方向Xの両側端PE1,PE2を検出できるうえ、印刷装置11の搬送方向Yのサイズ寸法を比較的短く抑えることができる。   (15) The printing apparatus 11 includes a conveyance path 30 that conveys the medium P from the cassette 21 and the feeding tray 22 as an example of the medium placement unit along a path that can be printed by the print head 34, and a conveyance path 30. And a third feeding path 93 (an example of a double-sided printing path) that reverses the medium P on which one side is printed by the print head 34 and returns it to a position in the middle of the transport path 30. Then, the medium detection device 80 that can read the medium P in the width direction X and detect both side edges PE1 and PE2 of the medium P is positioned at a position upstream of the print head 34 in the transport direction Y of the medium P. Are arranged so as to be located on the upstream side in the transport direction Y with respect to the second path junction portion J2 (an example of the junction portion) where the transport route 30 and the third feeding route 93 merge. Therefore, although the medium detection device 80 is provided, the size of the printing device 11 in the transport direction Y can be made relatively short. For example, if it is attempted to adopt a configuration in which the medium detection device also reads the medium P on which one surface is re-feeded through the reverse feeding path 56, the joining portion is more transported than the reading position of the medium detection device. It is necessary to shift the position to the upstream side of Y. Accordingly, it is necessary to shift a portion of the transport path 30 and the reverse feed path 56 that is located on the upstream side in the transport direction with respect to the junction 76 to the upstream side in the transport direction Y. In this case, the size of the printing apparatus 11 in the transport direction Y is relatively long. On the other hand, the medium P on which one side is printed is not read, and the joining portion 76 is arranged on the downstream side in the transport direction Y from the reading position, so that the transport path 30 and the reverse feeding path 56 Of these, the portion located on the upstream side (rear side) in the transport direction Y with respect to the junction 76 can be disposed as close to the downstream as possible. As a result, both side edges PE1 and PE2 in the width direction X of the medium P can be detected without depending on whether the print head 34 is a movable type or a fixed type, and the size in the transport direction Y of the printing apparatus 11 can be determined. It can be kept relatively short.

(16)媒体検出装置80は、センサー83A,83Bが最大幅の媒体Pの幅方向Xの両側端を検出可能な移動範囲をキャリッジ82が電動モーター103を動力源として移動できる幅方向Xに長い形状を有する。つまり、印刷装置11に、最大幅の媒体Pの幅よりも少し長い媒体検出装置80を、その長手方向が幅方向Xに一致する向きに設けても、媒体検出装置80の配設スペースを第2経路合流部J2が読取位置よりも搬送方向Yの下流側に位置するように設計することで、印刷装置11の搬送方向Yのサイズ寸法を比較的短く抑えることができる。   (16) In the medium detection device 80, the movement range in which the sensors 83A and 83B can detect both side ends in the width direction X of the medium P having the maximum width is long in the width direction X in which the carriage 82 can move using the electric motor 103 as a power source. Has a shape. That is, even if the medium detection device 80 that is slightly longer than the width of the medium P having the maximum width is provided in the printing device 11, the space for disposing the medium detection device 80 is the first. By designing the two-path merging portion J2 to be located downstream of the reading position in the transport direction Y, the size dimension of the printing apparatus 11 in the transport direction Y can be kept relatively short.

(17)印刷装置11がカセット21と給送トレイ22との両方から給送される媒体Pの側端PE1,PE2を媒体検出装置80によって検出できるうえ、印刷装置11の搬送方向Yの小型化を図りつつ媒体検出装置80を設けることができる。   (17) The medium detection device 80 can detect the side edges PE1 and PE2 of the medium P fed from both the cassette 21 and the feeding tray 22 by the printing device 11, and the size of the printing device 11 in the transport direction Y can be reduced. The medium detection device 80 can be provided while aiming.

(18)媒体検出装置80の読取位置は、搬送方向Yにおいてカセット21と給送トレイ22とから媒体Pを給送する2つの給送路45,48が合流する第1合流部75よりも下流側、かつ第2経路合流部J2よりも上流側に位置する。よって、カセット21と給送トレイ22とのいずれから給送された媒体Pも、媒体検出装置80の読取位置で読み取って、その両側端PE1,PE2を検出できる。このため、カセット21と給送トレイ22とのいずれから給送された媒体Pにも、幅方向Xに適切な位置に印刷できる。   (18) The reading position of the medium detection device 80 is downstream of the first joining portion 75 where the two feeding paths 45 and 48 for feeding the medium P from the cassette 21 and the feeding tray 22 join in the transport direction Y. And on the upstream side of the second path junction portion J2. Therefore, the medium P fed from either the cassette 21 or the feeding tray 22 can be read at the reading position of the medium detecting device 80 to detect both side edges PE1 and PE2. For this reason, the medium P fed from either the cassette 21 or the feeding tray 22 can be printed at an appropriate position in the width direction X.

(19)特に読取位置が、搬送方向Yにおいて第1経路合流部J1よりも下流側、かつ第2経路合流部J2よりも上流側に位置する。この構成であれば、センサー83A,83Bと媒体Pとの距離をほぼ一定に保持できるので、より高い側端検出精度を確保できる。さらに読取位置が、搬送方向Yにおいて第1経路合流部J1よりも下流側、かつ第2合流部76よりも上流側に位置する。この構成であれば、反転給送路56を通って再給送される一方の面が印刷された媒体Pに対して、センサー83A,83Bの検知域が、ガイド部材71によって保護されるので、インク汚れに起因する側端検出精度の低下を抑制できる。例えば再給送された媒体Pの一方の面に施された印刷のインクが窓部88に付着しにくいので、センサー83A,83Bが窓部88を通して媒体Pを読み取る構成でも、媒体Pの側端検出精度を高く維持できる。   (19) In particular, the reading position is located downstream of the first path merging portion J1 and upstream of the second path merging portion J2 in the transport direction Y. With this configuration, the distance between the sensors 83A and 83B and the medium P can be kept substantially constant, so that higher side edge detection accuracy can be ensured. Further, the reading position is located downstream of the first path joining portion J1 and upstream of the second joining portion 76 in the transport direction Y. With this configuration, the detection areas of the sensors 83A and 83B are protected by the guide member 71 with respect to the medium P on which one surface is re-feeded through the reverse feeding path 56. A decrease in side edge detection accuracy due to ink smear can be suppressed. For example, since printing ink applied to one surface of the re-paid medium P does not easily adhere to the window portion 88, the side edges of the medium P can be used even when the sensors 83A and 83B read the medium P through the window portion 88. High detection accuracy can be maintained.

(20)印刷装置11には、給送トレイ22に載置された媒体Pを給送可能な給送機構の一例としての第1給送部41と、第2合流部76を形成している一部の媒体案内面71A,71Bを有するガイド部材71とが組み付けたカバー23が、装置本体20に対して開閉可能な状態に設けられている。このため、カバー23を開けると、第1給送部41とガイド部材71とが、カバー23と共に装置本体20から外れ、媒体検出装置80の一部が露出する。この結果、媒体検出装置80のメンテナンス等がし易くなるうえ、メンテナンスや交換のために取り外す必要がある場合に、媒体検出装置80を比較的容易に取り外すことができる。   (20) The printing apparatus 11 includes a first feeding unit 41 as an example of a feeding mechanism capable of feeding the medium P placed on the feeding tray 22 and a second merging unit 76. A cover 23 assembled with a guide member 71 having some medium guide surfaces 71 </ b> A and 71 </ b> B is provided so as to be openable and closable with respect to the apparatus main body 20. Therefore, when the cover 23 is opened, the first feeding unit 41 and the guide member 71 are detached from the apparatus main body 20 together with the cover 23, and a part of the medium detection device 80 is exposed. As a result, the medium detection device 80 can be easily maintained and the medium detection device 80 can be removed relatively easily when it is necessary to remove it for maintenance or replacement.

なお、上記実施形態は以下のような形態に変更することもできる。
・幅情報に基づく幅が設定幅以下の小サイズの媒体である場合も、第1側端と第2側端とを異なるセンサーによって検出させてもよい。また、幅情報に基づく幅が設定幅よりも長い大サイズの媒体である場合でも、キャリッジの移動距離を少し長くして、第1側端と第2側端とを同一のセンサーによって検出してもよい。
In addition, the said embodiment can also be changed into the following forms.
The first side end and the second side end may be detected by different sensors even when the medium based on the width information is a small-sized medium having a width equal to or smaller than the set width. Even in the case of a large-sized medium whose width based on the width information is longer than the set width, the movement distance of the carriage is slightly increased, and the first side end and the second side end are detected by the same sensor. Also good.

・2つのセンサーのうち一方が故障した場合、媒体幅が設定幅よりも長い媒体である場合、故障していない他方のセンサーで第1側端と第2側端とのうち一方の側端を検出し他方の側端を演算により推定する推定処理を行ってよいか否かを、表示部にメッセージを表示してユーザーに問い合わせてもよい。なお、この問い合わせはメッセージの表示に替えて又は加えて音声で問い合わせてもよい。   -When one of the two sensors fails, when the medium width is longer than the set width, when one of the first side end and the second side end is not connected to the other sensor that has not failed, A user may be inquired by displaying a message on the display unit as to whether or not an estimation process for detecting and estimating the other side end by calculation may be performed. This inquiry may be made by voice instead of or in addition to the message display.

・媒体検出装置80を搬送経路30の下側に配置したが、搬送経路30の上側に配置してもよい。この構成でも、2つのセンサー83により下方に向かって媒体Pを読み取ることで媒体Pの側端を検出できるうえ、媒体検出装置80をその読取位置が第2経路合流部J2よりも搬送方向Yの上流側となる位置に配置することで、印刷装置11を搬送方向Yのサイズ寸法を相対的に短くしてその小型化を実現できる。   Although the medium detection device 80 is disposed below the transport path 30, it may be disposed above the transport path 30. Even in this configuration, the side edge of the medium P can be detected by reading the medium P downward by the two sensors 83, and the medium detection device 80 can be read in the transport direction Y with respect to the second path joining portion J2. By disposing the printing apparatus 11 at a position on the upstream side, the size of the printing apparatus 11 in the transport direction Y can be relatively shortened to reduce the size thereof.

・センサー83が媒体の側端を検出して取得する媒体情報は、媒体Pの幅方向の一方の側端位置PE1又はPE2、両方の側端位置PE1,PE2、媒体幅(媒体幅から規定される媒体サイズを含む)及び幅方向Xの印刷範囲のうち少なくとも1つであればよい。例えば媒体情報は、一方の側端位置、両方の側端位置、媒体幅、印刷範囲のうちいずれか1つのみでもよい。また、側端検出結果から取得する媒体情報の内容が、印刷モードに応じて異なる構成でもよいし、側端検出処理を実施しない印刷モードが存在してもよい。なお、一方の側端のみを検出する場合、ある印刷モードでは媒体の一方の側端を検出し、他の印刷モードでは媒体の他方の側端を検出する構成であれば、キャリッジ82が最大幅の媒体の両側端を検出可能な移動範囲を移動できる必要はある。   The medium information acquired by the sensor 83 detecting the side edge of the medium is one side edge position PE1 or PE2 in the width direction of the medium P, both side edge positions PE1, PE2, and the medium width (specified from the medium width). At least one of the print range in the width direction X). For example, the medium information may be only one of one side edge position, both side edge positions, medium width, and printing range. Further, the content of the medium information acquired from the side edge detection result may be different depending on the print mode, or there may be a print mode in which the side edge detection process is not performed. In the case where only one side edge is detected, the carriage 82 has a maximum width if it is configured to detect one side edge of the medium in a certain printing mode and to detect the other side edge of the medium in another printing mode. It is necessary to be able to move the moving range in which both sides of the medium can be detected.

・センサー83A,83Bに、媒体Pの側端に加え、搬送方向Yの先端と後端とのうち少なくとも一方を検知させてもよい。例えば、媒体Pが読取位置に給送されてくる前に、キャリッジ82をホーム位置HPから移動させてセンサー83を媒体Pの搬送方向Yの先端を検出可能な位置に待機させ、媒体Pが給送されてきたときにその先端を検知させる。そして、先端を検知した後、キャリッジを幅方向Xの一方側(例えば右側)へ移動させて一方側の側端を検知し、次にキャリッジを幅方向Xの他方側(例えば左側)へ移動させて他方側の側端を検知する。例えば制御部120が、媒体Pの先端を検知した先端検知情報を基に媒体のスキュー取り動作等の所定動作の開始タイミングを制御してもよい。この場合、例えばセンサー79を廃止できる。また、制御部120が、先端検知情報に基づいて媒体Pの搬送方向Yの位置(搬送位置)を把握し、印刷ヘッド34による印刷開始タイミングを制御してもよい。   In addition to the side edge of the medium P, the sensors 83A and 83B may detect at least one of the front end and the rear end in the transport direction Y. For example, before the medium P is fed to the reading position, the carriage 82 is moved from the home position HP and the sensor 83 is placed on standby at a position where the front end in the transport direction Y of the medium P can be detected. The tip is detected when it is sent. After detecting the leading edge, the carriage is moved to one side (for example, the right side) in the width direction X to detect one side edge, and then the carriage is moved to the other side (for example, the left side) in the width direction X. The other side is detected. For example, the control unit 120 may control the start timing of a predetermined operation such as a medium skew removal operation based on the front end detection information obtained by detecting the front end of the medium P. In this case, for example, the sensor 79 can be eliminated. Further, the control unit 120 may grasp the position (transport position) in the transport direction Y of the medium P based on the leading edge detection information, and control the print start timing by the print head 34.

・センサー83を光学式センサーとした場合、光反射式に限定されず、光透過式でもよい。例えば媒体検出装置80と搬送経路を挟んで対向する位置にセンサー83と共に移動可能な光源又はセンサーの移動範囲に亘る範囲で点灯可能なライン状の光源を配置し、光源からの光を受光した受光状態と媒体に遮られて受光できない非受光状態との切り替わりをもって媒体の側端を検出してもよい。   When the sensor 83 is an optical sensor, it is not limited to the light reflection type, and may be a light transmission type. For example, a light source that can be moved together with the sensor 83 or a linear light source that can be lit in a range over the movement range of the sensor is disposed at a position facing the medium detection device 80 across the conveyance path, and receives light from the light source. The side edge of the medium may be detected by switching between the state and the non-light-receiving state where light cannot be received due to being blocked by the medium.

・センサー83を光学式センサーに替え、接触式のセンサーとしてもよい。接触式センサーであっても媒体の側端を検出することができる。
・媒体検出装置80の動力源をステッピングモーターに替え、DCモーター(直流モーター)としてもよい。DCモーターとした場合、キャリッジ82の移動距離に比例する数のパルス信号を出力可能な例えばリニアエンコーダー又はロータリーエンコーダーを設け、エンコーダーが出力するパルス信号のパルスエッジを計数してキャリッジ82の位置を示す値を計数可能なカウンターを設ければよい。そして、制御部は、カウンターの計数値に基づいてセンサー83A,83Bが検出した側端位置を取得すればよい。
The sensor 83 may be replaced with an optical sensor and may be a contact type sensor. Even the contact sensor can detect the side edge of the medium.
The power source of the medium detection device 80 may be a DC motor (direct current motor) instead of a stepping motor. In the case of a DC motor, for example, a linear encoder or a rotary encoder capable of outputting a number of pulse signals proportional to the moving distance of the carriage 82 is provided, and the position of the carriage 82 is indicated by counting the pulse edges of the pulse signals output from the encoder. A counter capable of counting values may be provided. And a control part should just acquire the side edge position which sensors 83A and 83B detected based on the count value of a counter.

・窓部88は幅方向Xに沿って複数配置する構成に替え、1つの窓部をセンサーの移動経路と対応する領域に配置する構成としてもよい。また、窓部88を幅方向Xに沿って配置する数は2つに限定されず、3つ又は4つなど3つ以上の複数でもよい。この場合、複数の窓部を、幅の異なる複数種の媒体Pの両側の側端を検出可能な位置に配置すればよい。例えば搬送される媒体Pの幅中心(中心線)に対して幅方向Xに対称な位置に複数の窓部を配置すればよい。   -It replaces with the structure which arranges the window part 88 along the width direction X, and it is good also as a structure which arrange | positions one window part in the area | region corresponding to the movement path | route of a sensor. Further, the number of the windows 88 arranged along the width direction X is not limited to two, and may be three or more, such as three or four. In this case, what is necessary is just to arrange | position a several window part in the position which can detect the side edge of the both sides of the multiple types of medium P from which width differs. For example, a plurality of windows may be arranged at positions symmetrical to the width direction X with respect to the width center (center line) of the medium P to be conveyed.

・反転給送路56(又は第3給送経路93)は、搬送経路30に対して印刷ヘッド34側(上側)を経由して合流部に合流する反転経路に替え、搬送経路30に対して印刷ヘッド34側と反対側(下側)を経由して合流部に合流する反転経路としてもよい。   The reverse feed path 56 (or the third feed path 93) is replaced with a reverse path that joins the merging portion via the print head 34 side (upper side) with respect to the transport path 30 and is instead of the transport path 30. A reversing path that merges with the merge portion via the print head 34 side (lower side) may be used.

・2つのセンサーのうち一方のセンサーのみで最大幅の媒体Pの両側端PE1,PE2を検出できる長さだけキャリッジ82の移動可能距離を延ばし、媒体Pの幅に応じて使用するセンサーの数を切り換えなくてもよい構成としてもよい。この場合、幅情報に基づく幅と設定幅とを比較する処理を廃止できるうえ、一方のセンサーのみで媒体の両側端を検出でき、故障時には他方のセンサーのみで媒体の両側端を検出できる。   -Extend the movable distance of the carriage 82 by a length that allows detection of both side edges PE1 and PE2 of the maximum width medium P with only one of the two sensors, and the number of sensors to be used according to the width of the medium P. It is good also as a structure which does not need to switch. In this case, the process of comparing the width based on the width information with the set width can be abolished, and both sides of the medium can be detected by only one sensor, and both sides of the medium can be detected by only the other sensor when a failure occurs.

・媒体検出装置80のキャリッジ82に設けられたセンサー83は1つでもよい。この場合、最大幅の媒体の両側端を検出可能な長さだけキャリッジ82の移動可能距離を延ばした構成とすればよい。   The number of sensors 83 provided on the carriage 82 of the medium detection device 80 may be one. In this case, the movable distance of the carriage 82 may be extended by a length capable of detecting both side edges of the maximum width medium.

・媒体検出装置80をその読取位置が第2経路合流部J2よりも搬送方向Yの上流側かつ第2合流部76よりも搬送方向Yの下流側となる位置に配置してもよい。この構成でも、媒体検出装置80は、一方の面に印刷された媒体Pが再給送される第3給送経路93に対して読取位置では離れているので、一方の面に施された印刷のインクが窓部88に付着しにくい。よって、この種のインク汚れに起因する側端検出精度の低下を抑制しやすい。   The medium detection device 80 may be arranged at a position where the reading position is upstream in the transport direction Y with respect to the second path junction portion J2 and downstream in the transport direction Y with respect to the second junction portion 76. Even in this configuration, the medium detection device 80 is separated at the reading position from the third feeding path 93 where the medium P printed on one side is re-fed, so that printing performed on one side is performed. Ink hardly adheres to the window 88. Therefore, it is easy to suppress a decrease in side edge detection accuracy due to this type of ink stain.

・媒体検出装置80をその読取位置が第1経路合流部J1よりも搬送方向Yの上流側かつ第1合流部75よりも搬送方向Yの下流側となる位置に配置してもよい。この構成でも、媒体検出装置80は、2つの給送路45,48のうちどちらを通って給送された媒体Pも、共通の1つの媒体検出装置80により読み取ってその側端を検出することができる。この場合、第1合流部75で合流した箇所では媒体の異なる給送経路91,92は比較的近くを通るので、検知可能距離が比較的長いセンサー83を選択すれば、必要な側端検出精度は確保できる。   The medium detection device 80 may be disposed at a position where the reading position is upstream in the transport direction Y with respect to the first path junction portion J1 and downstream in the transport direction Y with respect to the first junction portion 75. Even in this configuration, the medium detection device 80 reads the medium P fed through either of the two feeding paths 45 and 48 by the common one medium detection device 80 and detects the side end thereof. Can do. In this case, since the feeding paths 91 and 92 with different media pass relatively close at the place where the first joining portion 75 joins, if the sensor 83 having a relatively long detectable distance is selected, the required side edge detection accuracy is obtained. Can be secured.

・媒体検出装置80をその読取位置が第1合流部75よりも搬送方向Yの上流側となる位置に配置してもよい。この場合、複数の給送経路91,92ごとに媒体検出装置80を配置すれば、異なる給送経路91,92を通る各媒体Pの側端を検出することはできる。また、複数の給送経路91,92のうち1つの給送経路を給送される媒体のみ媒体検出装置80により側端の検出を行ってもよい。   The medium detection device 80 may be disposed at a position where the reading position is upstream of the first joining portion 75 in the transport direction Y. In this case, if the medium detection device 80 is arranged for each of the plurality of feeding paths 91 and 92, the side edge of each medium P passing through the different feeding paths 91 and 92 can be detected. Further, the side detection may be performed by the medium detection device 80 only for a medium fed through one of the plurality of feeding paths 91 and 92.

・媒体Pの搬送経路上の複数箇所で媒体Pの側端を検出可能に複数の媒体検出装置80を設けてもよい。
・第1給送部41の一部のみをカバー23に設けたり、第2給送部42の一部のみをカバー23に設けたり、第1給送部41の一部と第2給送部の一部とをカバー23に設けたりしてもよい。また、カバーは媒体載置部の一例としての給送トレイ22を備えない構成でもよい。
A plurality of medium detection devices 80 may be provided so that the side edges of the medium P can be detected at a plurality of locations on the conveyance path of the medium P.
Only a part of the first feeding part 41 is provided on the cover 23, only a part of the second feeding part 42 is provided on the cover 23, a part of the first feeding part 41 and the second feeding part May be provided on the cover 23. Further, the cover may be configured not to include the feeding tray 22 as an example of the medium loading unit.

・媒体載置部は、カセット21と給送トレイ22との一方のみであってもよい。また、カセット21は複数に限らず1つでもよい。さらに給送トレイは1つに限らず複数設けられていてもよい。   The medium loading unit may be only one of the cassette 21 and the feeding tray 22. Further, the number of cassettes 21 is not limited to a plurality and may be one. Furthermore, the number of feeding trays is not limited to one, and a plurality of feeding trays may be provided.

・印刷装置は、ライン印刷方式の印刷装置(ラインプリンター)やシリアル印刷方式の印刷装置(シリアルプリンター)に限定されず、キャリッジが主走査方向と副走査方向との2方向に移動可能なラテラル印刷方式の印刷装置(ラテラル式プリンター)でもよい。この種のシリアルプリンター又はラテラル式プリンターに適用しても、媒体検出装置を設けた構成とした場合に印刷装置の幅方向X及び搬送方向Yのサイズ寸法を比較的短くすることができる。   -The printing device is not limited to a line printing type printing device (line printer) or a serial printing type printing device (serial printer), but lateral printing in which the carriage can move in two directions, the main scanning direction and the sub-scanning direction. A printing apparatus (lateral printer) may be used. Even when the present invention is applied to this type of serial printer or lateral printer, the size in the width direction X and the conveyance direction Y of the printing device can be made relatively short when the medium detection device is provided.

・制御部内に構築される各機能部は、プログラムを実行するコンピューターによりソフトウェアで実現されることに限定されず、例えばFPGA(field-programmable gate array)やASIC(Application Specific IC)等の電子回路によりハードウェアで実現されたり、ソフトウェアとハードウェアとの協働により実現されたりしてもよい。   Each functional unit constructed in the control unit is not limited to being realized by software by a computer that executes a program. For example, an electronic circuit such as an FPGA (field-programmable gate array) or an ASIC (Application Specific IC) It may be realized by hardware, or may be realized by cooperation between software and hardware.

・媒体は、用紙に限定されず、樹脂製のフィルムやシート、樹脂と金属の複合体フィルム(ラミネートフィルム)、織物、不織布、金属箔、金属フィルム、セラミックシートなどであってもよい。   The medium is not limited to paper, and may be a resin film or sheet, a resin-metal composite film (laminate film), a woven fabric, a nonwoven fabric, a metal foil, a metal film, a ceramic sheet, or the like.

・印刷装置は、複合機に限らず、スキャナー部を備えずプリンター部を有するプリンターでもよい。
・印刷装置はインクジェット式プリンターに限定されず、ドットインパクト式プリンターや熱転写式プリンター、電子写真式プリンターでもよい。
The printing apparatus is not limited to a multifunction peripheral, and may be a printer that does not include a scanner unit but has a printer unit.
The printing apparatus is not limited to an ink jet printer, and may be a dot impact printer, a thermal transfer printer, or an electrophotographic printer.

・印刷装置は、用紙等の媒体に印刷を行う印刷装置に限らず、部品の基材等からなる媒体に樹脂液滴を吐出して三次元立体物を成形する3Dプリンターでもよい。この種の印刷装置でも、装置本体のサイズ寸法を比較的短くできるうえ、基材等の媒体上に精度の高い三次元立体物を成形できる。   The printing apparatus is not limited to a printing apparatus that performs printing on a medium such as paper, but may be a 3D printer that forms a three-dimensional solid object by discharging resin droplets onto a medium including a base material of a component. Even with this type of printing apparatus, the size of the apparatus main body can be made relatively short, and a highly accurate three-dimensional solid object can be formed on a medium such as a base material.

11…印刷装置、12…プリンター部、14…操作パネル、15…表示部、16…操作部、20…装置本体(本体)、21…媒体載置部の一例としてのカセット、22…媒体載置部の一例としての給送トレイ、23…カバー、25…印刷機構部、30…搬送経路、31…搬送路、32…搬送部の一例としての搬送ユニット、33…印刷ユニット、34…印刷ヘッド、35…給送機構部、36…搬送路、37…搬送機構部、38…排出機構部、41…給送部の一例としての第1給送部、42…第2給送部、43…第3給送部、44…給送ローラー対、45…第1給送路、46…搬送ローラー対、48…搬送通路の一例としての第2給送路、49…ピックアップローラー、50…分離ローラー、53…分岐機構、54…分岐搬送路、55…搬送ローラー対、56…両面印刷通路の一例としての反転給送路、57…反転搬送ローラー対、58…ベルト搬送機構、65…本体側給送機構部、66…カバー側給送機構部、71…媒体案内部材の一例としてのガイド部材、71A,71B…媒体案内面、71C…光反射面、75…第1合流部、76…合流部及び通路合流部の一例としての第2合流部、77…搬送通路の一例を構成する第1共通給送路、78…第2共通給送路、80…媒体検出装置、81…筐体、81A…媒体案内部、81B…媒体支持部、82…キャリッジ、83,83A…センサー(第1センサー)、83,83B…センサー(第2センサー)、84,85…レール部、86…プーリー、87…ベルト、88…窓部、89…フレキシブルフラットケーブル、90…位置センサー、91…第1給送経路、92…第2給送経路、93…両面印刷経路の一例としての第3給送経路、103…電動モーター、106…発光部、107…受光部、114,118…位置決め機構、120…制御部、121…第1給送モーター、122…第2給送モーター、123…第1搬送モーター、124…ベルト用モーター、125…第2搬送モーター、126〜131…モーター駆動回路、141…幅情報取得部、142…キャリッジ制御部、143…故障検出部、144…検出処理部、145…カウンター、146…演算部、P,SP,LP…媒体、J1…第1経路合流部、J2…合流部の一例としての第2経路合流部、PD…印刷ジョブデータ、HP…ホーム位置、AP…反ホーム位置、L1…中心間距離、SA,SB…センサーの検出信号、SH…位置センサーの検出信号、t1,t2,t3…時間、PE1…第1側端(側端)、PE2…第2側端(側端)、Y…搬送方向、X…幅方向。   DESCRIPTION OF SYMBOLS 11 ... Printing apparatus, 12 ... Printer part, 14 ... Operation panel, 15 ... Display part, 16 ... Operation part, 20 ... Apparatus main body (main body), 21 ... Cassette as an example of medium mounting part, 22 ... Medium mounting Feed tray as an example of a unit, 23... Cover, 25 .. print mechanism unit, 30... Transport path, 31 .. transport path, 32... Transport unit as an example of a transport unit, 33. 35 ... feed mechanism, 36 ... conveying path, 37 ... conveying mechanism, 38 ... discharge mechanism, 41 ... first feeding unit as an example of feeding unit, 42 ... second feeding unit, 43 ... first 3 feeding unit, 44 ... feeding roller pair, 45 ... first feeding path, 46 ... transport roller pair, 48 ... second feeding path as an example of transport path, 49 ... pickup roller, 50 ... separation roller, 53 ... Branch mechanism, 54 ... Branch conveyance path, 55 ... Conveyance b , 56... Reverse feed path as an example of a double-sided printing path, 57... Reverse feed roller pair, 58... Belt transport mechanism, 65 ... main body side feed mechanism section, 66 ... cover side feed mechanism section, 71. Guide member as an example of medium guide member, 71A, 71B ... Medium guide surface, 71C ... Light reflecting surface, 75 ... First merging portion, 76 ... Second merging portion as an example of merging portion and passage merging portion, 77 ... First common feed path constituting an example of the conveyance path, 78... Second common feed path, 80... Medium detection device, 81... Casing, 81 A... Medium guide section, 81 B. 83, 83A ... Sensor (first sensor), 83, 83B ... Sensor (second sensor), 84, 85 ... Rail part, 86 ... Pulley, 87 ... Belt, 88 ... Window part, 89 ... Flexible flat cable, 90 ... Position sensor 91 ... 1st feeding path, 92 ... 2nd feeding path, 93 ... 3rd feeding path as an example of duplex printing path, 103 ... Electric motor, 106 ... Light emitting part, 107 ... Light receiving part, 114, 118 DESCRIPTION OF SYMBOLS ... Positioning mechanism, 120 ... Control part, 121 ... 1st feed motor, 122 ... 2nd feed motor, 123 ... 1st conveyance motor, 124 ... Motor for belts, 125 ... 2nd conveyance motor, 126-131 ... Motor Drive circuit 141 Width information acquisition unit 142 Carriage control unit 143 Failure detection unit 144 Detection processing unit 145 Counter 146 Operation unit P, SP, LP ... Medium, J1 First path Junction unit, J2 ... Second path junction unit as an example of a junction unit, PD ... print job data, HP ... home position, AP ... anti-home position, L1 ... center distance, SA, SB ... sensor detection Out signal, SH ... detection signal of position sensor, t1, t2, t3 ... time, PE1 ... first side end (side end), PE2 ... second side end (side end), Y ... transport direction, X ... width direction .

Claims (10)

媒体を載置可能な媒体載置部と、
前記媒体載置部から媒体を搬送する搬送部と、
前記媒体に印刷する印刷ヘッドと、
前記印刷ヘッドよりも前記媒体の搬送方向の上流側に配置されるとともに前記媒体を前記搬送方向と交差する幅方向に読み取って当該媒体の両側の側端を検出可能な媒体検出装置と
を備え、
前記搬送部は、媒体を前記媒体載置部から前記印刷ヘッドが印刷可能な位置を通る経路で搬送する搬送経路と、前記搬送経路を通って前記印刷ヘッドにより一方の面が印刷された媒体を当該媒体の他方の面に印刷が可能な向きに反転させて前記搬送経路における前記印刷ヘッドよりも前記搬送方向の上流側に位置する合流部へ戻す両面印刷経路とを備え、
前記媒体検出装置の読取位置は、前記搬送経路における前記両面印刷経路との前記合流部よりも前記搬送方向の上流側に位置することを特徴とする印刷装置。
A medium placement unit capable of placing a medium;
A transport unit configured to transport a medium from the medium mounting unit;
A print head for printing on the medium;
A medium detection device that is arranged upstream of the print head in the conveyance direction of the medium and that can read the medium in a width direction intersecting the conveyance direction and detect side edges on both sides of the medium;
The transport unit transports a medium from the medium placement unit along a path that passes through a position where the print head can print, and a medium on which one surface is printed by the print head through the transport path. A double-sided printing path that reverses to the other surface of the medium in a printable direction and returns to the junction located upstream in the transport direction with respect to the print head in the transport path;
The printing apparatus according to claim 1, wherein a reading position of the medium detection device is located on an upstream side in the transport direction with respect to the joining portion with the duplex printing path in the transport path.
印刷装置の装置本体に対して前記印刷ヘッドよりも前記搬送方向の上流側の位置に開閉可能に設けられたカバーを更に備え、
前記カバーには、複数の前記媒体載置部のうち少なくとも1つに載置された媒体を給送可能な給送部の少なくとも一部と、前記搬送経路に沿って前記媒体を案内する搬送通路と前記両面印刷経路に沿って前記媒体を前記合流部へ案内する両面印刷通路とが合流する通路合流部の少なくとも一部を形成している媒体案内部材と、が組み付けられていることを特徴とする請求項1に記載の印刷装置。
A further provided cover that can be opened and closed at a position upstream of the print head in the transport direction relative to the main body of the printing apparatus;
The cover includes at least a part of a feeding unit capable of feeding a medium placed on at least one of the plurality of medium placing units, and a conveyance path for guiding the medium along the conveyance path. And a medium guide member forming at least a part of a passage merging portion where a double-sided printing passage for guiding the medium to the merging portion along the double-sided printing path is assembled. The printing apparatus according to claim 1.
前記媒体載置部は複数備えられており、異なる前記媒体載置部から媒体が給送される少なくとも2つの給送路が合流する第1合流部は、前記合流部としての第2合流部よりも搬送方向の上流側に位置し、
前記読取位置は、前記搬送方向において前記第1合流部よりも下流側、かつ前記第2合流部よりも上流側に位置することを特徴とする請求項1又は2に記載の印刷装置。
A plurality of the medium placement sections are provided, and the first merge section where at least two feeding paths through which the medium is fed from different medium placement sections merges is more than the second merge section as the merge section. Is also located upstream in the transport direction,
The printing apparatus according to claim 1, wherein the reading position is located downstream of the first merging portion and upstream of the second merging portion in the transport direction.
前記読取位置は、前記少なくとも2つの給送路を通って給送される前記媒体の少なくとも2つの給送経路が合流する第1経路合流部よりも前記搬送方向の下流側に位置することを特徴とする請求項3に記載の印刷装置。   The reading position is located on the downstream side in the transport direction with respect to a first path joining portion where at least two feeding paths of the medium fed through the at least two feeding paths merge. The printing apparatus according to claim 3. 前記媒体検出装置の前記読取位置は、前記搬送経路に沿って前記媒体を案内する搬送通路と、前記両面印刷経路に沿って前記媒体を前記合流部へ案内する両面印刷通路とが合流する通路合流部よりも前記搬送方向の上流側に位置することを特徴とする請求項1乃至4のいずれか一項に記載の印刷装置。   The reading position of the medium detection device is a path merging where a conveyance path that guides the medium along the conveyance path and a duplex printing path that guides the medium to the merging portion along the duplex printing path. The printing apparatus according to any one of claims 1 to 4, wherein the printing apparatus is located upstream of the printing unit in the transport direction. 前記媒体検出装置は、前記印刷ヘッドよりも搬送方向の上流側の位置で前記幅方向に移動可能なキャリッジと、前記キャリッジに設けられたセンサーと、前記キャリッジを前記センサーが最大幅の前記媒体の両側の側端を検出可能な移動範囲で移動させる動力源とを備えたことを特徴とする請求項1乃至5のいずれか一項に記載の印刷装置。   The medium detection device includes a carriage that is movable in the width direction at a position upstream of the print head in the transport direction, a sensor provided on the carriage, and the carriage that has the maximum width of the medium. The printing apparatus according to claim 1, further comprising: a power source that moves the side edges on both sides within a detectable moving range. 前記キャリッジは、前記搬送部により搬送される媒体の搬送経路に対して前記印刷ヘッド側とは反対側の位置で前記幅方向に移動可能に設けられ、
前記センサーは、前記搬送経路に対して前記印刷ヘッド側とは反対側の位置から前記媒体を読取り可能な光学式のセンサーであることを特徴とする請求項6に記載の印刷装置。
The carriage is provided movably in the width direction at a position opposite to the print head side with respect to a conveyance path of a medium conveyed by the conveyance unit,
The printing apparatus according to claim 6, wherein the sensor is an optical sensor capable of reading the medium from a position opposite to the print head with respect to the transport path.
前記媒体検出装置は、前記キャリッジ及び前記光学式のセンサーを収容する筐体を備え、
前記筐体は、前記搬送経路と対向する部分に、前記媒体載置部から搬送される媒体を支持する媒体支持部を備え、
前記媒体支持部には、前記キャリッジの移動に伴う前記光学式のセンサーの移動経路と対応する領域に光透過性の窓部が設けられていることを特徴とする請求項7に記載の印刷装置。
The medium detection device includes a housing that houses the carriage and the optical sensor,
The housing includes a medium support unit that supports a medium transported from the medium placement unit in a portion facing the transport path,
The printing apparatus according to claim 7, wherein the medium support portion is provided with a light transmissive window in a region corresponding to a movement path of the optical sensor accompanying the movement of the carriage. .
前記センサーは光反射型センサーであり、
前記センサーの移動経路と前記搬送経路を挟んで対向する位置には、前記搬送経路に沿って前記媒体を案内する媒体案内部材が配置され、前記媒体案内部材は前記センサーの移動経路と対向する部分が光反射面となっていることを特徴とする請求項7又は8に記載の印刷装置。
The sensor is a light reflective sensor,
A medium guide member for guiding the medium along the transport path is disposed at a position facing the sensor travel path across the transport path, and the medium guide member is a portion facing the sensor travel path. The printing apparatus according to claim 7, wherein a light reflecting surface is formed.
前記媒体載置部は、複数の媒体を積層状態に載置して収容可能なカセットと、1つ又は複数の媒体を載置可能な給送トレイとの両方又は一方であることを特徴とする請求項1乃至9のいずれか一項に記載の印刷装置。   The medium placement unit is characterized in that it is at least one of a cassette capable of accommodating a plurality of media placed in a stacked state and a feeding tray capable of placing one or more media. The printing apparatus according to any one of claims 1 to 9.
JP2016026143A 2016-02-15 2016-02-15 Printer Active JP6746938B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016026143A JP6746938B2 (en) 2016-02-15 2016-02-15 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016026143A JP6746938B2 (en) 2016-02-15 2016-02-15 Printer

Publications (2)

Publication Number Publication Date
JP2017145078A true JP2017145078A (en) 2017-08-24
JP6746938B2 JP6746938B2 (en) 2020-08-26

Family

ID=59681724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016026143A Active JP6746938B2 (en) 2016-02-15 2016-02-15 Printer

Country Status (1)

Country Link
JP (1) JP6746938B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019119551A (en) * 2017-12-29 2019-07-22 株式会社リコー Conveyance device and image formation device
JP7559544B2 (en) 2020-12-23 2024-10-02 セイコーエプソン株式会社 Conveying device and printing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019119551A (en) * 2017-12-29 2019-07-22 株式会社リコー Conveyance device and image formation device
JP7001956B2 (en) 2017-12-29 2022-01-20 株式会社リコー Conveyor device and image forming device
JP7559544B2 (en) 2020-12-23 2024-10-02 セイコーエプソン株式会社 Conveying device and printing device

Also Published As

Publication number Publication date
JP6746938B2 (en) 2020-08-26

Similar Documents

Publication Publication Date Title
JP6705199B2 (en) Printer
US8152169B2 (en) Feeding device and image recording apparatus with the feeding device
JP2018052732A (en) Sheet conveying apparatus and image recording apparatus
JP6624039B2 (en) Inkjet recording device
JP5549409B2 (en) Image recording device
US10097712B2 (en) Printing device and method for controlling printer
US10201983B2 (en) Ink-jet recording apparatus and ink-jet recording method
US12350927B2 (en) Recording apparatus and method for suppressing deviation of recording position of recording apparatus
JP2019211524A (en) Recording device and method for controlling recording device
US20160250868A1 (en) Recording apparatus and medium feeding device
JP2017145078A (en) Printer
JP2011093132A (en) Complex image forming apparatus
JP7171242B2 (en) Image recording device and its control method
JP5540922B2 (en) Image recording device
JP5862173B2 (en) Image recording device
JP5605007B2 (en) Image recording device
US12214584B2 (en) Printing apparatus with device in transport path
JP2019166646A (en) Sensor unit and image formation apparatus having the same
JP2012136005A (en) Image recording apparatus
JP5896762B2 (en) Reading apparatus and reading control method
JP7279359B2 (en) image recorder
US10183507B2 (en) Image recording apparatus and image recording method
JP6079428B2 (en) Inkjet recording device
JP5353829B2 (en) Image recording device
JP5725223B2 (en) Image recording device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190206

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20191112

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20191114

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200114

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20200303

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200603

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20200612

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200720

R150 Certificate of patent or registration of utility model

Ref document number: 6746938

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150