JP5929178B2 - Image recording device - Google Patents

Image recording device Download PDF

Info

Publication number
JP5929178B2
JP5929178B2 JP2011286447A JP2011286447A JP5929178B2 JP 5929178 B2 JP5929178 B2 JP 5929178B2 JP 2011286447 A JP2011286447 A JP 2011286447A JP 2011286447 A JP2011286447 A JP 2011286447A JP 5929178 B2 JP5929178 B2 JP 5929178B2
Authority
JP
Japan
Prior art keywords
flap
envelope
recording
unit
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011286447A
Other languages
Japanese (ja)
Other versions
JP2013132886A (en
Inventor
啓典 ▲高▼▲崎▼
啓典 ▲高▼▲崎▼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011286447A priority Critical patent/JP5929178B2/en
Publication of JP2013132886A publication Critical patent/JP2013132886A/en
Application granted granted Critical
Publication of JP5929178B2 publication Critical patent/JP5929178B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像記録装置に関する。   The present invention relates to an image recording apparatus.

従来、封筒に対する印刷が可能な印刷装置は、封筒に設けられた封緘用フラップを搬送方向上流側にして搬送することで、搬送経路内における封筒の用紙詰まり発生を抑制している(例えば、特許文献1)。つまり、従来の印刷装置では、印刷対象の封筒を、フラップが設けられている側の辺と直交する辺を搬送方向に沿う向きで搬送させていた。   2. Description of the Related Art Conventionally, a printing apparatus capable of printing on an envelope suppresses occurrence of a paper jam of an envelope in a conveyance path by conveying a sealing flap provided on the envelope with the upstream side in the conveyance direction (for example, patents). Reference 1). That is, in the conventional printing apparatus, the envelope to be printed is transported in a direction along the transport direction on the side orthogonal to the side on which the flap is provided.

特開平11−119953号公報JP-A-11-119953

封筒の大きさやフラップが設けられた辺の長さ、印刷装置の搬送能力の都合等により、フラップが設けられている側の辺が搬送方向に沿う向きで、封筒を搬送させることが考えられる。   Depending on the size of the envelope, the length of the side on which the flap is provided, the convenience of the conveyance capability of the printing apparatus, etc., it is conceivable that the envelope is conveyed with the side on which the flap is provided oriented along the conveyance direction.

しかし、フラップが設けられている側の辺が搬送方向に沿う向きで封筒を搬送する場合、フラップの状態に応じて、印刷位置を移動させる必要がある。例えば、フラップが開放されている場合の印刷位置と、フラップが折りたたまれている場合とでは、フラップ部分への印刷の有無を考慮し印刷位置を異ならせる必要がある。また、フラップが開放されている場合には、フラップが、主走査方向における向かって左側に設けられているか、右側に設けられているかに応じて、印刷位置が異なる。ユーザにセットさせる封筒の状態を、例えば、フラップが開かれた状態で、主走査方向において向かって右側にフラップが設けられたように限定する方法もあるが、ユーザが誤って、フラップが左側に設けられたようにセットしてしまうこともあり得るため、ユーザの利便性が悪い。   However, when the envelope is transported with the side on which the flap is provided being oriented in the transport direction, it is necessary to move the printing position according to the state of the flap. For example, the print position needs to be different between the print position when the flap is opened and the print position when the flap is folded in consideration of whether or not printing is performed on the flap portion. Further, when the flap is opened, the printing position differs depending on whether the flap is provided on the left side or the right side in the main scanning direction. There is also a method for limiting the state of the envelope to be set by the user so that the flap is provided on the right side in the main scanning direction when the flap is opened. Since it may be set as provided, user convenience is poor.

本発明は、上述した事情を鑑みてなされたものであり、フラップが設けられている側の辺を搬送方向に沿う向きで封筒を搬送させる場合におけるユーザの利便性が向上された画像記録装置を提供することを目的とする。   The present invention has been made in view of the above-described circumstances, and provides an image recording apparatus with improved user convenience when an envelope is conveyed in a direction along the conveyance direction on the side where the flap is provided. The purpose is to provide.

この目的を達成するために、本発明の画像記録装置は、被記録媒体を所定の搬送方向である第1方向に沿って搬送する搬送部と、前記搬送部により搬送される被記録媒体に画像の記録を行う記録部と、前記搬送部により搬送される被記録媒体の、前記第1方向に対して直交する第2方向の両端の位置を検知する検知部と、前記搬送部による被記録媒体の搬送と前記記録部による画像の記録とを制御する制御部と、を備え、前記制御部は、第1の辺に封緘用のフラップが設けられた封筒を、前記被記録媒体として、前記搬送部により、前記第1の辺と交差する第2の辺が前記第1方向に対して直交する方向である横向きに搬送される場合に、前記検知部により検知された、前記封筒の前記第2方向の両端の位置に基づき、前記フラップの状態を検出するフラップ状態検出手段と、前記フラップ状態検出手段により検出されたフラップの状態に応じて、前記封筒に記録する画像の印刷位置を制御する位置制御手段と、を備えている。
本発明の画像記録装置では、制御部において、前記搬送部により前記横向きに搬送される前記封筒の前記第2方向の両端を、前記封筒の前記第1方向における第1の位置と、前記封筒の前記第1方向において前記第1の位置より搬送方向上流側となる第2の位置とについて、前記検知部に検知させる検知制御手段を備え、前記フラップ状態検出手段は、前記第1の位置及び前記第2の位置においてそれぞれ前記検知部により検知された前記両端の位置に基づき、前記第1の位置における前記封筒の前記第2方向の長さと、前記第2の位置における前記封筒の前記第2方向の長さとが異なる場合は、前記フラップの状態が開放状態であると検出してもよい。
本発明の画像記録装置では、被記録媒体における前記第2方向の中心を基準位置に一致させて、被記録媒体を搬送する搬送機構を備え、前記制御部は、前記搬送部により前記横向きに搬送される前記封筒の前記第2方向の両端を、前記封筒の前記第1方向における一端について、前記検知部に検知させる検知制御手段を備え、前記フラップ状態検出手段は、前記第1方向における一端において前記検知部により検知された前記両端の位置に基づき、前記基準位置から各端までの前記第2方向における長さが異なる場合には、前記フラップの状態が開放状態であると検出してもよい。
In order to achieve this object, an image recording apparatus according to the present invention includes a transport unit that transports a recording medium along a first direction which is a predetermined transport direction, and an image on the recording medium transported by the transport unit. A recording unit that performs recording, a detection unit that detects positions of both ends of a recording medium conveyed by the conveyance unit in a second direction orthogonal to the first direction, and a recording medium by the conveyance unit And a controller that controls the recording of the image by the recording unit, and the control unit uses the envelope having a sealing flap on the first side as the recording medium. And the second side of the envelope detected by the detection unit when the second side intersecting the first side is conveyed in a horizontal direction that is a direction orthogonal to the first direction. Based on the position of both ends of the direction, the state of the flap A flap condition detecting means for output, in response to said state of the flap detected by flap state detecting means, and a, a position control means for controlling the print position of an image to be recorded on the envelope.
In the image recording apparatus of the present invention, in the control unit, both ends of the envelope in the second direction conveyed in the lateral direction by the conveyance unit are connected to a first position of the envelope in the first direction, and the envelope In the first direction, a detection control unit that causes the detection unit to detect a second position that is upstream of the first position in the transport direction is provided, and the flap state detection unit includes the first position and the first position. The length of the envelope in the second direction at the first position and the second direction of the envelope at the second position based on the positions of the both ends detected by the detection unit at the second position, respectively. If the length of the flap is different, it may be detected that the state of the flap is an open state.
The image recording apparatus of the present invention includes a transport mechanism that transports the recording medium with the center of the second direction of the recording medium coincided with a reference position, and the control unit transports the recording medium in the lateral direction. A detection control unit that causes the detection unit to detect both ends of the envelope in the second direction at one end in the first direction of the envelope, and the flap state detection unit is provided at one end in the first direction. Based on the positions of the both ends detected by the detection unit, when the lengths in the second direction from the reference position to each end are different, it may be detected that the state of the flap is an open state. .

本発明は、画像記録装置を制御する制御装置、画像記録システム、画像記録方法、制御プログラムを記録する記録媒体など、種々の態様で実現可能である。   The present invention can be realized in various modes such as a control device that controls an image recording device, an image recording system, an image recording method, and a recording medium that records a control program.

請求項1に記載の画像記録装置によれば、第1の辺に封緘用のフラップが設けられた封筒、被記録媒体として、搬送部により、第1の辺と交差する第2の辺が第1方向(搬送部の搬送方向)に対して直交する方向である横向きに搬送される場合、フラップの状態が、フラップ状態検出手段により、検知部により検知された封筒の第2方向(第1方向に対して直交する方向)の両端の位置に基づいて検出される。封筒に記録する画像の印刷位置は、検出されたフラップの状態に応じて、位置制御手段により制御される。よって、フラップが設けられている側の辺を搬送方向に沿う向きで搬送させる場合に、フラップの状態に応じて適切な画像記録を自動的に行うことができ、ユーザの利便性を向上できる(効果(A))According to the image recording apparatus of the first aspect, an envelope having a sealing flap provided on the first side has a second side that intersects the first side by a transport unit as a recording medium. When transported in a lateral direction that is a direction orthogonal to the first direction (the transport direction of the transport unit), the flap state is detected by the flap state detection means by the second direction of the envelope (first It is detected based on the positions of both ends of the direction orthogonal to the direction. The printing position of the image recorded on the envelope is controlled by the position control means in accordance with the detected flap state. Therefore, when the side on which the flap is provided is transported in the direction along the transport direction, appropriate image recording can be automatically performed according to the state of the flap, and user convenience can be improved ( Effect (A)) .

また、請求項記載の画像記録装置によれば、上記効果(A)に加え、次の効果を奏する。横向きに搬送される封筒の第2方向の両端を検知部に検知させる場合、その位置は、検知制御手段により、封筒の第1方向における第1の位置と第2の位置との2箇所とされる。そして、第1の位置及び第2の位置においてそれぞれ検知された両端の位置に基づき、第1の位置における封筒の第2方向の長さと、第2の位置における封筒の第2方向の長さとが異なる場合は、フラップ状態検出手段により、フラップの状態が開放状態であると検出される。よって、第2方向の両端の位置を、第1方向(搬送方向)の2箇所について検知し、その検知結果に基づいてフラップの状態を検出するので、フラップの状態の検出精度を高めることができる。 According to the image recording apparatus according to claim 1, wherein, in addition to the above effects (A), the following effects. When the detection unit detects both ends in the second direction of the envelope that is conveyed sideways, the position is set to two locations, the first position and the second position in the first direction of the envelope, by the detection control means. The And based on the position of the both ends detected in the 1st position and the 2nd position, respectively, the length of the 2nd direction of the envelope in the 1st position and the length of the 2nd direction of the envelope in the 2nd position are If they are different, the flap state detection means detects that the flap state is the open state. Therefore, since the positions of both ends in the second direction are detected in two places in the first direction (conveyance direction) and the flap state is detected based on the detection result, the detection accuracy of the flap state can be improved. .

請求項記載の画像記録装置によれば、請求項が奏する効果に加え、次の効果を奏する。フラップの状態が開放状態であると検出された場合に、第1の位置及び第2の位置でそれぞれ検知された両端の位置に基づき、両端のうち、封筒の第2方向の位置が異なる端の側が、フラップ向き特定手段により、フラップが設けられた側であると特定され、位置制御手段により、画像の印刷位置が、フラップが設けられていると特定された側とは反対方向に移動される。よって、開放状態のフラップを、主走査方向における左右どちらに向けても、封筒に適切な画像記録を行うことができる。 According to the image recording apparatus of claim 2 , in addition to the effect of claim 1 , the following effect is obtained. When it is detected that the flap state is the open state, based on the positions of the both ends detected at the first position and the second position, of the ends, the position of the envelope in the second direction is different. The side is specified by the flap direction specifying means to be the side on which the flap is provided, and the position control means moves the image printing position in the opposite direction to the side specified as being provided with the flap. . Therefore, appropriate image recording can be performed on the envelope regardless of whether the open flap is directed to the left or right in the main scanning direction.

請求項記載の画像記録装置によれば、請求項またはが奏する効果に加え、次の効果を奏する。フラップの向きがフラップ向き特定手段により特定された場合に、フラップが設けられた側が、画像に対して予め規定されたフラップが設けられた側と異なっていれば、画像回転手段により、画像が180度回転される。よって、開放状態のフラップを、主走査方向における左右どちらに向けても、フラップの向きに応じた適切な画像を記録できる。 According to the image recording apparatus of the third aspect , in addition to the effect produced by the first or second aspect , the following effect is produced. When the direction of the flap is specified by the flap direction specifying means, if the side provided with the flap is different from the side provided with the flap defined in advance for the image, the image is rotated by the image rotating means. Rotated degrees. Therefore, an appropriate image according to the direction of the flap can be recorded regardless of whether the opened flap is directed to the left or right in the main scanning direction.

請求項記載の画像記録装置によれば、請求項からのいずれかが奏する効果に加え、次の効果を奏する。検知部による検知の後、検知後搬送手段により、封筒が記録開始位置まで搬送される。記録開始取得手段により取得される記録開始位置は、記録部により封筒に記録させる画像の画像データに基づき、封筒の第1方向において有色の記録が開始される位置とされるので、印刷開始位置をできるだけ搬送方向上流側に位置させることができる。よって、検知部が搬送方向において記録部より上流側に設けられている場合に、第2の位置での検知後に封筒を搬送方向上流側へ戻す可能性を低減できるので、記録に要する時間の無駄を抑制できる。 According to the image recording apparatus of the fourth aspect , in addition to the effect produced by any one of the first to third aspects, the following effect is produced. After the detection by the detection unit, the envelope is conveyed to the recording start position by the post-detection conveying means. The recording start position acquired by the recording start acquisition unit is a position where colored recording is started in the first direction of the envelope based on the image data of the image recorded on the envelope by the recording unit. It can be positioned as upstream as possible in the transport direction. Therefore, when the detection unit is provided on the upstream side of the recording unit in the transport direction, the possibility of returning the envelope to the upstream side of the transport direction after detection at the second position can be reduced. Can be suppressed.

請求項記載の画像記録装置によれば、請求項からのいずれかが奏する効果に加え、次の効果を奏する。第2の位置が、第2位置設定手段により、封筒の第1方向において記録開始位置(余白が封筒の第1方向において終了する位置、又は、封筒の第1方向において有色の記録が開始される位置)より搬送方向上流側となる位置に設定される。つまり、第2の位置は、記録開始位置に応じて可変とされる。よって、第1の位置と第2の位置との間隔をできるだけ広くとることが可能となり、フラップの状態の検出精度を高めることができる。 According to the image recording apparatus of the fifth aspect , in addition to the effect produced by any one of the first to third aspects, the following effect is produced. The second position is the recording start position in the first direction of the envelope (the position where the margin ends in the first direction of the envelope, or the colored recording is started in the first direction of the envelope by the second position setting means. Position) is set at a position upstream of the conveyance direction. That is, the second position is variable according to the recording start position. Therefore, the distance between the first position and the second position can be as wide as possible, and the detection accuracy of the flap state can be increased.

請求項記載の画像記録装置によれば、上記効果(A)に加え、次の効果を奏する。搬送機構により、被記録媒体における第2方向の中心を基準位置に一致させて被記録媒体が搬送される搬送機構により、封筒を横向きに搬送させ、第2方向の両端を検知部に検知させる場合には、その位置は、検知制御手段により、封筒の第1方向における一端とされる。そして、封筒の第1方向における一端において検知された両端の位置に基づき、基準位置から各端までの長さが異なる場合には、フラップ状態検出手段により、フラップの状態が開放状態であると検出される。よって、封筒の第1方向における一端における第2方向の両端の位置を検知すれば、フラップの状態を検出できるので、フラップの状態を迅速に検出できる。 According to the image recording apparatus of the sixth aspect , in addition to the effect (A) , the following effect can be obtained. When the transport mechanism is used to transport the recording medium in the horizontal direction by causing the center of the recording medium in the second direction to coincide with the reference position and to transport the recording medium, and to detect both ends of the second direction in the detection unit. The position is set to one end in the first direction of the envelope by the detection control means. And based on the position of the both ends detected in the end in the 1st direction of an envelope, when the length from a reference position to each end differs, it detects that the state of a flap is an open state by a flap state detection means. Is done. Therefore, if the positions of both ends in the second direction at one end in the first direction of the envelope are detected, the state of the flap can be detected, so that the state of the flap can be detected quickly.

請求項記載の画像記録装置によれば、請求項が奏する効果に加え、次の効果を奏する。フラップの状態が開放状態であると検出された場合に、基準位置から各端までの長さのうち、基準位置から第2方向における一端(例えば左端)までの第1長さと、基準位置から第2方向における他端(例えば右端)までの第2長さとについて、長さの短い方の端の側が、フラップ向き特定手段によりフラップが設けられた側として特定される。そして、位置制御手段により、画像の印刷位置が、フラップが設けられていると特定された側とは反対方向に移動される。つまり、第1の長さと第2の長さとのうち、長い方の側に画像を移動させればよく、開放状態のフラップを、主走査方向における左右どちらに向けても、封筒の本体部分に対するフラップの向きに応じた適切な画像を記録できる。 According to the image recording apparatus according to claim 7, wherein, in addition to the effects achieved by the sixth aspect, the following effect. When it is detected that the flap state is the open state, the first length from the reference position to one end (for example, the left end) in the second direction out of the length from the reference position to each end and the reference position to the first position With respect to the second length to the other end (for example, the right end) in the two directions, the shorter end side is specified as the side on which the flap is provided by the flap direction specifying means. Then, the printing position of the image is moved by the position control means in the direction opposite to the side specified as being provided with the flap. That is, the image may be moved to the longer side of the first length and the second length, and the flap in the open state is directed to the left and right in the main scanning direction with respect to the main body portion of the envelope. An appropriate image according to the direction of the flap can be recorded.

請求項記載の画像記録装置によれば、請求項又はが奏する効果に加え、検知部による検知を行う位置を、封筒の第1方向における搬送方向下流側の端部とするので、フラップの状態の検出(両端の位置の検知)後に、封筒を搬送方向上流側へ戻す可能性を低減できるので、記録に要する時間の無駄を抑制できる。 According to the image recording apparatus of the eighth aspect , in addition to the effect of the sixth or seventh aspect , the position where detection by the detection unit is performed is the end portion on the downstream side in the transport direction in the first direction of the envelope. Since the possibility of returning the envelope to the upstream side in the transport direction after the detection of the state (detection of the positions at both ends) can be reduced, waste of time required for recording can be suppressed.

MFPの電気的構成を示すブロック図である。2 is a block diagram illustrating an electrical configuration of the MFP. FIG. MFPに搭載されるインクジェットプリンタを説明する図である。FIG. 2 is a diagram illustrating an ink jet printer installed in an MFP. 横向きの封筒に対する印刷制御を説明する図である。It is a figure explaining the printing control with respect to a landscape-oriented envelope. 印刷機能処理を示すフローチャートである。It is a flowchart which shows a printing function process. (a)及び(b)は、それぞれ、フラップ状態検出処理及びフラップ位置検出処理を示すフローチャートである。(A) And (b) is a flowchart which respectively shows a flap state detection process and a flap position detection process. 印刷処理を示すフローチャートである。It is a flowchart which shows a printing process. 横向きの封筒に対する第2実施形態の印刷制御を説明する図である。It is a figure explaining the printing control of 2nd Embodiment with respect to a landscape-oriented envelope. 第2実施形態の印刷機能処理を示すフローチャートである。It is a flowchart which shows the printing function process of 2nd Embodiment. (a)及び(b)は、それぞれ、第2実施形態のフラップ状態検出処理及びフラップ位置検出処理を示すフローチャートである。(A) And (b) is a flowchart which respectively shows the flap state detection process and flap position detection process of 2nd Embodiment. 変形例を説明する模式図である。It is a schematic diagram explaining a modification.

以下、本発明の好ましい実施形態について、添付図面を参照して説明する。まず、図1から図6を参照して、本発明の第1実施形態について説明する。図1は、本発明の画像記録装置の一実施形態である多機能周辺装置(以下、「MFP」と称す)1の電気的構成を示すブロック図である。MFP1は、印刷機能、スキャン機能、コピー機能など、複数の機能を有する複合機である。本実施形態のMFP1は、封筒をフラップが横向きとなるように搬送し、あて名などの印刷(記録)が可能に構成される。なお、「フラップが横向き」とは、封筒におけるフラップが設けられている側の辺が搬送方向に沿う向きであることを示し、以下では、この向きを単に「横向き」と称す。特に、MFP1は、横向きに搬送される封筒のフラップの状態を検出し、その検出結果に基づいて、画像の印刷位置や向きを制御するように構成されるので、ユーザの利便性に優れる。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. First, a first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram showing an electrical configuration of a multifunction peripheral device (hereinafter referred to as “MFP”) 1 which is an embodiment of an image recording apparatus of the present invention. The MFP 1 is a multifunction device having a plurality of functions such as a print function, a scan function, and a copy function. The MFP 1 according to the present embodiment is configured so that the envelope can be conveyed with its flaps facing sideways, and printing (recording) such as an address can be performed. Note that “flap is sideways” means that the side of the envelope on which the flap is provided is the direction along the transport direction, and hereinafter, this direction is simply referred to as “sideways”. In particular, the MFP 1 is configured to detect the flap state of the envelope that is conveyed sideways, and to control the print position and orientation of the image based on the detection result.

MFP1には、CPU10、フラッシュメモリ11、RAM12、操作キー15、LCD16、タッチパネル17、スキャナ20、プリンタ21、USB_I/F(USBインターフェイス)22が主に設けられている。CPU10、フラッシュメモリ11、RAM12は、バスライン23を介して互いに接続される。操作キー15、LCD16、タッチパネル17、スキャナ20、プリンタ21、USB_I/F22、バスライン23は、ASIC(Application Specific Integrated Circuit)24を介して互いに接続される。   The MFP 1 is mainly provided with a CPU 10, a flash memory 11, a RAM 12, an operation key 15, an LCD 16, a touch panel 17, a scanner 20, a printer 21, and a USB_I / F (USB interface) 22. The CPU 10, flash memory 11, and RAM 12 are connected to each other via a bus line 23. The operation key 15, the LCD 16, the touch panel 17, the scanner 20, the printer 21, the USB_I / F 22, and the bus line 23 are connected to each other via an ASIC (Application Specific Integrated Circuit) 24.

CPU10は、フラッシュメモリ11に記憶される固定値やプログラム、RAM12に記憶されているデータに従って、MFP1が有している各機能の制御や、ASIC24と接続された各部の制御を行う。フラッシュメモリ11は、不揮発性のメモリであり、MFP1の動作を制御する制御プログラム11a等が格納される。後述する図4〜6のフローチャートに示す各処理は、制御プログラム11aに従ってCPU10により実行される。   The CPU 10 controls each function of the MFP 1 and each unit connected to the ASIC 24 according to fixed values and programs stored in the flash memory 11 and data stored in the RAM 12. The flash memory 11 is a non-volatile memory, and stores a control program 11a for controlling the operation of the MFP 1. Each process shown in the flowcharts of FIGS. 4 to 6 described later is executed by the CPU 10 according to the control program 11a.

RAM12は、CPU10の処理に必要な情報を一時的に記憶する書換可能な揮発性のメモリである。RAM12は、印刷データメモリ12aを有する。印刷データメモリ12aは、PC(パーソナルコンピュータ)500から供給された印刷用の画像データ(印刷データ)を記憶するバッファ領域である。PC500にインストールされているプリンタドライバにより生成された印刷用の画像データが、PC500からMFP1へ供給されると、MFP1は、PC500から受信した画像データに基づく画像を、記録用紙に対して印刷する。印刷データメモリ12aに記憶された画像データは、印刷が実行されると消去される。   The RAM 12 is a rewritable volatile memory that temporarily stores information necessary for the processing of the CPU 10. The RAM 12 has a print data memory 12a. The print data memory 12 a is a buffer area for storing image data (print data) for printing supplied from a PC (personal computer) 500. When printing image data generated by a printer driver installed in the PC 500 is supplied from the PC 500 to the MFP 1, the MFP 1 prints an image based on the image data received from the PC 500 on a recording sheet. The image data stored in the print data memory 12a is erased when printing is executed.

操作キー15はハードキーであり、MFP1に設定情報や指示を入力する。LCD16は液晶表示装置である。タッチパネル17は、LCD16に重ねて設けられ、MFP1に設定情報や指示を入力する。USB_I/F22は、USBケーブルを介して他の装置(例えば、PC)を通信可能に接続するための装置であり、周知の装置で構成される。本実施形態では、USB_I/F22を介してPC500が接続される。スキャナ20は、原稿を読み取り、その読み取った原稿の画像データを、CPU10に出力する装置である。   An operation key 15 is a hard key, and inputs setting information and instructions to the MFP 1. The LCD 16 is a liquid crystal display device. The touch panel 17 is provided so as to overlap the LCD 16 and inputs setting information and instructions to the MFP 1. The USB_I / F 22 is a device for communicably connecting another device (for example, a PC) via a USB cable, and is configured by a known device. In the present embodiment, the PC 500 is connected via the USB_I / F 22. The scanner 20 is a device that reads an original and outputs image data of the read original to the CPU 10.

プリンタ21は、インクを吐出させて、記録用紙に対して画像を印刷(記録)するインクジェットプリンタである。プリンタ21は、CRモータ21aと、LFモータ21bと、記録ヘッド21cと、メディアセンサ21dとを有する。各部21a〜21dは、ASIC24に接続される。   The printer 21 is an ink jet printer that prints (records) an image on a recording sheet by ejecting ink. The printer 21 includes a CR motor 21a, an LF motor 21b, a recording head 21c, and a media sensor 21d. Each part 21a-21d is connected to ASIC24.

CRモータ21aは、キャリッジ211(図2参照)を主走査方向に移動させる駆動力を与えるモータである。LFモータ21bは、記録ヘッド21dより搬送方向上流側に配置される給紙ローラ(図示せず)など、被記録媒体を搬送するローラに駆動力を与えるモータである。なお、各モータ21a,21bを制御する駆動回路は、モータ毎にASIC24に組み込まれており、CPU10からの駆動信号に基づき、当該駆動信号に対応するモータが当該駆動信号に応じた回転速度で正転又は逆転する。以下、CPU10が駆動信号を送出し、モータの回転を制御することで被記録媒体を搬送することを、単に、CPU10が被記録媒体を搬送する、と記載することもある。記録ヘッド21cは、キャリッジ211に搭載され、プラテン212(図2参照)に対向する側の面に形成される多数のノズルを有し、これらのノズルからインクを微小なインク滴として吐出する。   The CR motor 21a is a motor that provides a driving force for moving the carriage 211 (see FIG. 2) in the main scanning direction. The LF motor 21b is a motor that applies a driving force to a roller that conveys a recording medium, such as a paper feed roller (not shown) arranged upstream in the conveyance direction from the recording head 21d. A drive circuit for controlling the motors 21a and 21b is incorporated in the ASIC 24 for each motor, and based on the drive signal from the CPU 10, the motor corresponding to the drive signal is rotated at a rotational speed corresponding to the drive signal. Roll or reverse. Hereinafter, when the CPU 10 sends a drive signal and controls the rotation of the motor to convey the recording medium, the CPU 10 simply describes that the CPU 10 conveys the recording medium. The recording head 21c is mounted on the carriage 211 and has a large number of nozzles formed on the surface facing the platen 212 (see FIG. 2), and ejects ink from these nozzles as minute ink droplets.

メディアセンサ21dは、LEDなどからなる発光部(図示せず)と、光学式センサなどからなる受光部(図示せず)とから構成されるセンサである。メディアセンサ21dの発光部から発せられた光は、プラテン212上に搬送される被記録媒体、又は、プラテン212により反射され、その反射光を受光部が受光し、メディアセンサ21dは、その受光量に応じた検出値(AD値)をCPU10へ出力する。メディアセンサ21dによるこれらの動作は、CPU10からの制御に基づき実行される。プラテン212の表面を黒色などの反射率の低い色とした場合、被記録媒体の反射光による検出値と、プラテン212からの反射光による検出値とが異なる値となるので、CPU10は、メディアセンサ21dから供給された検出値に基づき、被記録媒体の端部を検知できる。メディアセンサ21dは、キャリッジ211の下面(プラテン212に対向する側の面)に設けられる。よって、キャリッジ211を主走査方向に移動させながらメディアセンサ21dを走査することにより、被記録媒体における主走査方向の両端の位置を検知できる。本実施形態のメディアセンサ21dは、横向きに搬送される封筒に印刷を行う場合に、印刷対象の封筒の主走査方向の両端の位置を検知するセンサとして機能する。   The media sensor 21d is a sensor that includes a light emitting unit (not shown) made of an LED or the like and a light receiving unit (not shown) made of an optical sensor or the like. The light emitted from the light emitting unit of the media sensor 21d is reflected by the recording medium transported onto the platen 212 or the platen 212, and the reflected light is received by the light receiving unit, and the media sensor 21d receives the received light amount. The detection value (AD value) corresponding to the above is output to the CPU 10. These operations by the media sensor 21d are executed based on control from the CPU 10. When the surface of the platen 212 is a color having a low reflectance such as black, the detected value by the reflected light of the recording medium and the detected value by the reflected light from the platen 212 are different from each other. The edge of the recording medium can be detected based on the detection value supplied from 21d. The media sensor 21d is provided on the lower surface of the carriage 211 (the surface on the side facing the platen 212). Therefore, the positions of both ends of the recording medium in the main scanning direction can be detected by scanning the media sensor 21d while moving the carriage 211 in the main scanning direction. The media sensor 21d of the present embodiment functions as a sensor that detects the positions of both ends of the envelope to be printed in the main scanning direction when printing is performed on an envelope that is conveyed sideways.

ここで、図2を参照して、プリンタ21をより詳細に説明する。図2(a)は、プリンタ21の概略平面図であり、図2(b)は、図2(a)のIIb−IIb線における概略側断面図である。図2(a)に示すように、プリンタ21は、キャリッジ211と、プラテン212とを有する。   Here, the printer 21 will be described in more detail with reference to FIG. 2A is a schematic plan view of the printer 21, and FIG. 2B is a schematic side sectional view taken along line IIb-IIb in FIG. 2A. As shown in FIG. 2A, the printer 21 includes a carriage 211 and a platen 212.

キャリッジ211は、CRモータ21aの正転又は逆転により、ガイドレール213に沿って主走査方向に往復移動される。具体的に、キャリッジ211は、ホームポジションから主走査方向に離れる方向であるフォワード方向と、その反対方向であるリバース方向とに交互に移動される。記録ヘッド21cは、キャリッジ211の移動によって、主走査方向(フォワード方向又はリバース方向)に走査され、プラテン212上を搬送される被記録媒体としての封筒Sに対してインクを吐出して画像を形成する。なお、封筒Sは、LFモータ21bにより駆動される給紙ローラなどの図示されないローラにより、主走査方向に直交する搬送方向に沿って、搬送方向の上流から下流側(矢印A方向)に、又は、その反対方向に搬送される。プラテン212は、キャリッジ211の下面側(図2における紙面垂直方向奥側)に対向して、封筒Sなどの被記録媒体を記録ヘッド21cのノズル形成面に対して平行に支持する支持台である。図2(b)に示すように、メディアセンサ21dは、キャリッジ211の下面(プラテン212に対向する側の面)における記録ヘッド21cより搬送方向上流側に設けられる。   The carriage 211 is reciprocated in the main scanning direction along the guide rail 213 by forward or reverse rotation of the CR motor 21a. Specifically, the carriage 211 is alternately moved in a forward direction that is a direction away from the home position in the main scanning direction and a reverse direction that is the opposite direction. The recording head 21 c is scanned in the main scanning direction (forward direction or reverse direction) by the movement of the carriage 211, and forms an image by ejecting ink onto an envelope S as a recording medium conveyed on the platen 212. To do. The envelope S is moved from upstream to downstream (in the direction of arrow A) in the transport direction along a transport direction orthogonal to the main scanning direction by a roller (not shown) such as a paper feed roller driven by the LF motor 21b, or , Conveyed in the opposite direction. The platen 212 is a support table that faces the lower surface side of the carriage 211 (the back side in the direction perpendicular to the paper surface in FIG. 2) and supports a recording medium such as an envelope S parallel to the nozzle formation surface of the recording head 21c. . As shown in FIG. 2B, the media sensor 21d is provided on the lower surface of the carriage 211 (the surface facing the platen 212) on the upstream side in the transport direction from the recording head 21c.

次に、図3を参照して、横向きの封筒Sに対する印刷制御について説明する。本実施形態のMFP1(より詳細にはCPU10)は、プラテン212上を横向きに搬送される封筒Sの主走査方向の両端の位置を、メディアセンサ21dにより検知し、その検知結果に基づいてフラップの状態及び設けられた側を検出する。そして、MFP1は、検出されたフラップの状態及び設けられた側に応じて、封筒Sに対する印刷制御を実行する。   Next, with reference to FIG. 3, the printing control with respect to the landscape-oriented envelope S will be described. The MFP 1 (more specifically, the CPU 10) of the present embodiment detects the positions of both ends in the main scanning direction of the envelope S that is conveyed sideways on the platen 212 by the media sensor 21d, and based on the detection result, detects the flap. Detect state and provided side. Then, the MFP 1 executes print control for the envelope S according to the detected flap state and the provided side.

図3(a)は、搬送方向の上流から下流側(矢印A方向)へ横向きに搬送される封筒Sに対し、メディアセンサ21dによる主走査方向両端の検知位置を説明する図である。図3(a)に示すように、本実施形態のMFP1は、まず、矢印A方向に搬送される封筒Sにおける搬送方向下流側の先端の位置P1において、キャリッジ211の移動によってメディアセンサ21dを主走査方向に走査し、封筒Sにおける主走査方向の左端の位置PL1と、右端の位置PR1とを検知する。CPU10は、キャリッジ211の移動量に基づいて、左端位置PL1に対する主走査方向の位置情報(Left1)と、右端位置RL1に対する主走査方向の位置情報(Right1)とを取得する。なお、キャリッジ211の移動量は、図示されないリニアエンコーダのエンコーダ量から検出される。つまり、本実施形態において主走査方向の位置情報は、リニアエンコーダのエンコーダ量により求められる。また、CPU10は、これらの位置情報(Left1,Right1)から、位置P1における封筒Sの主走査方向長さ(Length1)を取得する。   FIG. 3A is a diagram for explaining detection positions at both ends in the main scanning direction by the media sensor 21d with respect to the envelope S conveyed laterally from the upstream side to the downstream side (arrow A direction) in the conveyance direction. As shown in FIG. 3A, the MFP 1 according to the present embodiment first moves the media sensor 21d by moving the carriage 211 at a position P1 at the leading end on the downstream side in the transport direction of the envelope S transported in the arrow A direction. Scanning is performed in the scanning direction, and the left end position PL1 and the right end position PR1 of the envelope S in the main scanning direction are detected. Based on the movement amount of the carriage 211, the CPU 10 acquires position information (Left1) in the main scanning direction with respect to the left end position PL1 and position information (Right1) in the main scanning direction with respect to the right end position RL1. The movement amount of the carriage 211 is detected from the encoder amount of a linear encoder (not shown). That is, in the present embodiment, the position information in the main scanning direction is obtained from the encoder amount of the linear encoder. Further, the CPU 10 obtains the length (Length1) of the envelope S at the position P1 in the main scanning direction from the position information (Left1, Right1).

次に、MFP1は、封筒Sを搬送方向下流側に向かって所定距離(例えば、3mm程度)搬送させ、位置P1より搬送方向上流側の位置P2において、メディアセンサ21dを主走査方向に走査させ、封筒Sにおける主走査方向の左端の位置PL2と、右端の位置PR2とを検知する。CPU10は、キャリッジ211の移動量に基づいて、左端位置PL2に対する主走査方向の位置情報(Left2)と、右端位置RL2に対する主走査方向の位置情報(Right2)とを取得する。また、CPU10は、これらの位置情報(Left2,Right2)から、位置P2における封筒Sの主走査方向長さ(Length2)を取得する。   Next, the MFP 1 transports the envelope S by a predetermined distance (for example, about 3 mm) toward the downstream side in the transport direction, and scans the media sensor 21d in the main scanning direction at a position P2 upstream of the transport direction from the position P1. The left end position PL2 and the right end position PR2 of the envelope S in the main scanning direction are detected. Based on the movement amount of the carriage 211, the CPU 10 acquires position information (Left2) in the main scanning direction with respect to the left end position PL2 and position information (Right2) in the main scanning direction with respect to the right end position RL2. Further, the CPU 10 obtains the length (Length2) of the envelope S in the main scanning direction at the position P2 from the position information (Left2, Right2).

図3(b)は、本実施形態におけるフラップの状態及び設けられた側の検出方法を説明する図である。上述した通り、搬送方向に並ぶ2つの位置P1,P2について、主走査方向の左右両端PL1,PR1,PL2,PR2を検知した結果、各位置P1,P2における主走査方向長さとして、Length1及びLength2が得られる。これらの長さ(Length1,Length2)から、横向きの封筒SにおけるフラップS1の状態を判断できる。具体的に、図3(b)における上段に示すように、Length1とLength2とが等しい場合には、封筒SのフラップS1は折り畳まれた状態(以下「閉鎖状態」と称す)であると判断される。一方、図3(b)における中段及び下段に示すように、Length1よりLength2より長い場合には、封筒SのフラップS1は折り畳まれていない状態(以下「開放状態」と称す)であると判断される。   FIG. 3B is a diagram for explaining the state of the flap and the method for detecting the provided side in the present embodiment. As described above, as a result of detecting the left and right ends PL1, PR1, PL2, PR2 in the main scanning direction for the two positions P1, P2 arranged in the transport direction, the lengths 1 and 2 are the lengths in the main scanning direction at the respective positions P1, P2. Is obtained. From these lengths (Length1, Length2), the state of the flap S1 in the sideways envelope S can be determined. Specifically, as shown in the upper part of FIG. 3B, when Length 1 and Length 2 are equal, it is determined that the flap S1 of the envelope S is in a folded state (hereinafter referred to as “closed state”). The On the other hand, as shown in the middle and lower stages in FIG. 3B, when the length S is longer than Length 1, it is determined that the flap S1 of the envelope S is not folded (hereinafter referred to as “open state”). The

また、各位置P1,P2について、主走査方向の左右両端PL1,PR1,PL2,PR2を検知した結果、各位置P1,P2における両端の位置情報として、Left1、Right1、Left2、及びRight1が得られる。これらの位置情報(Left1,Right1,Left2,Right1)から、開放状態にあるフラップS1が、主走査方向における向かって左側に設けられているか、向かって右側に設けられているかを判断できる。具体的に、図3(b)における中段に示すように、フラップS1が開放状態にある封筒Sにおいて、位置P1,P2における主走査方向左端の位置情報が異なり(即ち、Left1≠Left2)、かつ、位置P1,P2における主走査方向右端の位置情報が同じである(即ち、Right1=Right2)場合には、封筒SのフラップS1は、主走査方向における向かって左側に設けられていると判断される。一方、図3(b)における下段に示すように、フラップS1が開放状態にある封筒Sにおいて、位置P1,P2における主走査方向左端の位置情報が同じであり(即ち、Left1=Left2)、かつ、位置P1,P2における主走査方向右端の位置情報が異なる(即ち、Right1≠Right2)場合には、封筒SのフラップS1は、主走査方向における向かって右側に設けられている判断される。以下では、「向かって左側」および「向かって右側」を、単に「左側」および「右側」と称す。   Further, as a result of detecting the left and right ends PL1, PR1, PL2, PR2 in the main scanning direction for each position P1, P2, Left1, Right1, Left2, and Right1 are obtained as position information of both ends at each position P1, P2. . From these position information (Left1, Right1, Left2, Right1), it can be determined whether the flap S1 in the open state is provided on the left side or the right side in the main scanning direction. Specifically, as shown in the middle part of FIG. 3B, in the envelope S in which the flap S1 is in the open state, the position information of the left end in the main scanning direction at the positions P1 and P2 is different (that is, Left1 ≠ Left2), and When the position information on the right end in the main scanning direction at the positions P1 and P2 is the same (that is, Right1 = Right2), it is determined that the flap S1 of the envelope S is provided on the left side in the main scanning direction. The On the other hand, as shown in the lower part of FIG. 3B, in the envelope S with the flap S1 in the open state, the position information on the left end in the main scanning direction at the positions P1 and P2 is the same (that is, Left1 = Left2), and When the position information on the right end in the main scanning direction at the positions P1 and P2 is different (that is, Right1 ≠ Right2), it is determined that the flap S1 of the envelope S is provided on the right side in the main scanning direction. Hereinafter, “left side toward” and “right side toward” are simply referred to as “left side” and “right side”.

封筒Sに対する印刷制御は、上述の通り検出されるフラップS1の状態及び設けられた側に基づいて行われる。PC500のプリンタドライバが生成する画像データは、あて名などが印刷される印刷画像Q1(ハッチングで示した領域)と、その周囲に設けられる余白Q2とから構成される。本実施形態では、PC500のプリンタドライバは、本体部S2に対する印刷画像Q1の中心を、フラップS1が閉鎖状態にあるときの封筒Sの主走査方向中心に一致させた画像データを生成するものとする。   Printing control for the envelope S is performed based on the state of the flap S1 detected as described above and the provided side. The image data generated by the printer driver of the PC 500 includes a print image Q1 (area indicated by hatching) on which an address is printed and a margin Q2 provided around the print image Q1. In the present embodiment, the printer driver of the PC 500 generates image data in which the center of the print image Q1 with respect to the main body S2 coincides with the center of the envelope S in the main scanning direction when the flap S1 is in the closed state. .

フラップS1が閉鎖状態にあるときの封筒Sの主走査方向中心は、本体部S2の中心に等しいが、フラップS1が開放状態である場合には、封筒Sの主走査方向中心は、本体部S2の中心からずれる。そのため、フラップS1が開放状態である場合に、PC500から受信した画像データをそのまま用いて宛名印刷を行うと、印刷画像Q1の位置が、本体部S2に対して右又は左側に寄ってしまうという不具合が生じる。そこで、本実施形態では、フラップS1が開放状態であり、かつ、フラップS1が封筒Sの左側に設けられていると判断される場合には、PC500から受信した画像データにおける印刷画像Q1の位置を右側(矢印MR方向)へ移動させる。一方、フラップS1が開放状態であり、かつ、フラップS1が封筒Sの右側に設けられていると判断される場合には、PC500から受信した画像データにおける印刷画像Q1の位置を左側(矢印ML方向)へ移動させる。かかる印刷制御を行うことにより、上記不具合を解消できる。   The center of the envelope S in the main scanning direction when the flap S1 is in the closed state is equal to the center of the main body S2, but when the flap S1 is in the open state, the center of the envelope S in the main scanning direction is the main body S2. Deviate from the center of Therefore, when address printing is performed using the image data received from the PC 500 as it is when the flap S1 is in an open state, the position of the print image Q1 is shifted to the right or left with respect to the main body S2. Occurs. Therefore, in this embodiment, when it is determined that the flap S1 is in the open state and the flap S1 is provided on the left side of the envelope S, the position of the print image Q1 in the image data received from the PC 500 is determined. Move to the right (arrow MR direction). On the other hand, when it is determined that the flap S1 is in the open state and the flap S1 is provided on the right side of the envelope S, the position of the print image Q1 in the image data received from the PC 500 is set to the left side (in the direction of the arrow ML). ). By performing such printing control, the above problems can be solved.

また、本実施形態では、PC500のプリンタドライバは、フラップS1が左側に設けられていることを前提として、画像データを生成するものとする。つまり、印刷画像Q1の向きは、フラップS1が左側に設けられていることを前提とする向きとされる。よって、フラップS1が右側に設けられている封筒に対し、フラップS1が左側に設けられていることを前提として生成された画像データを用いて印刷を行った場合、封筒S1の底側(フラップS1の対辺側)に郵便番号が位置してしまうという不具合が生じる。そこで、本実施形態では、フラップS1が開放状態であり、かつ、右側に設けられていると判断される場合には、PC500から受信した画像データを180度回転させる。かかる印刷制御を行うことにより、上記不具合を解消できる。   In the present embodiment, the printer driver of the PC 500 generates image data on the assumption that the flap S1 is provided on the left side. That is, the orientation of the print image Q1 is set on the assumption that the flap S1 is provided on the left side. Therefore, when printing is performed using image data generated on the assumption that the flap S1 is provided on the left side with respect to the envelope provided with the flap S1 on the right side, the bottom side of the envelope S1 (the flap S1). A problem arises in that the postal code is located on the opposite side. Therefore, in this embodiment, when it is determined that the flap S1 is in the open state and is provided on the right side, the image data received from the PC 500 is rotated 180 degrees. By performing such printing control, the above problems can be solved.

なお、本実施形態では、フラップS1が閉鎖状態である場合には、PC500から受信した画像データを回転させることなく印刷を行うものとする。これに換えて、フラップS1が閉鎖状態である場合に、フラップS1が右側に設けられている場合と同様に、画像データを回転させてもよい。   In the present embodiment, when the flap S1 is in the closed state, printing is performed without rotating the image data received from the PC 500. Alternatively, when the flap S1 is in the closed state, the image data may be rotated as in the case where the flap S1 is provided on the right side.

図4は、MFP1のCPU10が実行する印刷機能処理を示すフローチャートである。本実施形態の印刷機能処理では、PC500から指示された印刷が封筒設定である場合には、横向きの封筒Sを印刷対象として搬送し、封筒Sのフラップの状態及び設けられた側を検出し、その検出結果に応じた印刷を実行する。この処理は、MFP1がPC500から画像データを受信すると(即ち、PC500に対し所定の印刷指示が入力されると)、開始される。なお、MFP1は、PC500から、画像データとともに、印刷対象が封筒であることを示す封筒設定、及び、印刷対象となる封筒のサイズを受信する。   FIG. 4 is a flowchart illustrating print function processing executed by the CPU 10 of the MFP 1. In the printing function processing of the present embodiment, when the printing instructed from the PC 500 is an envelope setting, the sideways envelope S is conveyed as a printing target, the flap state of the envelope S and the provided side are detected, Printing according to the detection result is executed. This process is started when the MFP 1 receives image data from the PC 500 (that is, when a predetermined print instruction is input to the PC 500). Note that the MFP 1 receives from the PC 500 the image data and the envelope setting indicating that the print target is an envelope and the size of the envelope to be printed.

まず、ステップS401(以下、ステップを省略)において、印刷が封筒設定でない場合には(S401:No)、CPU10は、図6を参照して後述する印刷処理を実行して印刷対象の被記録媒体に対し印刷を施し(S416)、本処理を終了する。一方、印刷が封筒設定である場合には(S401:Yes)、CPU10は、給紙トレイまたは手差しトレイにセットされた横向きの封筒を給紙し(S402)、封筒Sを、メディアセンサ21dにより位置P1を検出できる位置まで搬送する(S403)。   First, in step S401 (hereinafter, step is omitted), when printing is not an envelope setting (S401: No), the CPU 10 executes a printing process to be described later with reference to FIG. Is printed (S416), and this process ends. On the other hand, when printing is set as an envelope (S401: Yes), the CPU 10 feeds a lateral envelope set in the paper feed tray or the manual feed tray (S402), and the envelope S is positioned by the media sensor 21d. Transport to a position where P1 can be detected (S403).

次に、CPU10は、キャリッジ211を移動させながらメディアセンサ21dを走査し、位置P1における主走査方向の左右端の位置情報(Left1,Right1)を取得する(S404)。CPU10は、取得した位置情報に基づいて、位置P1における封筒Sの主走査方向長さ(Length1)を取得する(S405)。取得した主走査方向長さ(Length1)が規定サイズより大きい場合(S406:Yes)、CPU10は、用紙サイズのエラーをユーザに報知する用紙サイズエラー処理を実行し(S417)、本処理を終了する。なお、規定サイズとは、PC500から画像データとともに受信した封筒のサイズのことである。   Next, the CPU 10 scans the media sensor 21d while moving the carriage 211, and acquires position information (Left1, Right1) of the left and right ends in the main scanning direction at the position P1 (S404). Based on the acquired position information, the CPU 10 acquires the main scanning direction length (Length1) of the envelope S at the position P1 (S405). When the acquired main scanning direction length (Length1) is larger than the specified size (S406: Yes), the CPU 10 executes a paper size error process for notifying the user of a paper size error (S417), and ends this process. . The specified size is the size of the envelope received from the PC 500 together with the image data.

一方、主走査方向長さ(Length1)が規定サイズ以下である場合(S406:No)、CPU10は、封筒Sを、メディアセンサ21dにより位置P2を検出できる位置まで搬送する(S407)。上述した通り、位置P2は、位置P1より所定距離(例えば、3mm程度)だけ搬送方向上流側の位置である。次に、CPU10は、キャリッジ211を移動させながらメディアセンサ21dを走査し、位置P2における主走査方向の左右端の位置情報(Left2,Right2)を取得する(S408)。CPU10は、取得した位置情報に基づいて、位置P2における封筒Sの主走査方向長さ(Length2)を取得する(S409)。   On the other hand, when the length (Length1) in the main scanning direction is equal to or smaller than the specified size (S406: No), the CPU 10 conveys the envelope S to a position where the media sensor 21d can detect the position P2 (S407). As described above, the position P2 is a position upstream of the position P1 by a predetermined distance (for example, about 3 mm) in the transport direction. Next, the CPU 10 scans the media sensor 21d while moving the carriage 211, and obtains position information (Left2, Right2) of the left and right ends in the main scanning direction at the position P2 (S408). Based on the acquired position information, the CPU 10 acquires the main scanning direction length (Length2) of the envelope S at the position P2 (S409).

取得した主走査方向長さ(Length2)が規定サイズより大きい場合(S410:Yes)、CPU10は、処理をS417へ移行する。主走査方向長さ(Length2)が規定サイズ以下であるが、Length1>Length2である場合もまた(S410:No,S411:Yes)、CPU10は、処理をS417へ移行する。   When the acquired length (Length2) in the main scanning direction is larger than the specified size (S410: Yes), the CPU 10 shifts the process to S417. When the length in the main scanning direction (Length2) is equal to or smaller than the specified size, but also when Length1> Length2 (S410: No, S411: Yes), the CPU 10 shifts the processing to S417.

主走査方向長さ(Length2)が規定サイズ以下であり、かつ、Length1≦Length2であり(S410:No,S411:No)、位置P1及び位置P2における主走査方向左端の位置が同じである場合には(S412:Yes)、CPU10は、処理をS414へ移行する。位置P1及び位置P2における主走査方向左端の位置が異なるが、位置P1及び位置P2における主走査方向右端の位置が同じである場合もまた(S412:No,S413:Yes)、CPU10は、処理をS414へ移行する。一方、位置P1及び位置P2における主走査方向左端の位置が異なり、かつ、位置P1及び位置P2における主走査方向右端の位置が異なる場合には(S412:No,S413:No)、CPU10は、処理をS417へ移行する。   When the length (Length2) in the main scanning direction is equal to or smaller than the specified size, Length1 ≦ Length2 (S410: No, S411: No), and the left end position in the main scanning direction at the positions P1 and P2 is the same. (S412: Yes), CPU10 transfers a process to S414. When the positions of the left end in the main scanning direction at the position P1 and the position P2 are different, but also when the position of the right end in the main scanning direction at the position P1 and the position P2 is the same (S412: No, S413: Yes), the CPU 10 performs the process. The process proceeds to S414. On the other hand, when the position of the left end in the main scanning direction at the positions P1 and P2 is different and the position of the right end in the main scanning direction at the positions P1 and P2 is different (S412: No, S413: No), the CPU 10 performs processing. The process proceeds to S417.

S414において、CPU10は、封筒SのフラップS1の状態を検出するフラップ状態検出処理を実行する(S414)。次に、CPU10は、封筒SのフラップS1が右側又は左側のいずれに設けられているのかを検出するフラップ向き検出処理を実行する(S415)。なお、フラップ状態検出処理(S414)及びフラップ向き検出処理(S415)の詳細は、それぞれ、図5(a)及び図5(b)を参照して後述する。フラップ向き検出処理(S415)の後、CPU10は、封筒Sに印刷を施すために印刷処理を実行して(S416)、本処理を終了する。   In S414, the CPU 10 executes a flap state detection process for detecting the state of the flap S1 of the envelope S (S414). Next, the CPU 10 executes flap direction detection processing for detecting whether the flap S1 of the envelope S is provided on the right side or the left side (S415). Details of the flap state detection process (S414) and the flap direction detection process (S415) will be described later with reference to FIGS. 5 (a) and 5 (b), respectively. After the flap direction detection process (S415), the CPU 10 executes a print process for printing on the envelope S (S416), and ends this process.

図5(a)は、上述したフラップ状態検出処理(S414)を示すフローチャートである。フラップ状態検出処理において、Length1≠Length2である場合(S501:Yes)、CPU10は、フラップS1は開放状態であると判断し(S502)、本処理を終了する。一方、Length1=Length2である場合(S501:No)、CPU10は、フラップS1は閉鎖状態であると判断し(S503)、本処理を終了する。   FIG. 5A is a flowchart showing the flap state detection process (S414) described above. In the flap state detection process, if Length1 ≠ Length2 (S501: Yes), the CPU 10 determines that the flap S1 is in the open state (S502), and ends this process. On the other hand, if Length1 = Length2 (S501: No), the CPU 10 determines that the flap S1 is in a closed state (S503), and ends this process.

図5(b)は、上述したフラップ向き検出処理(S415)を示すフローチャートである。フラップ向き検出処理において、Length1=Length2であれば(S521:Yes)、フラップS1は閉鎖状態であるので、CPU10は、本処理を終了する。一方、Length1≠Length2であり、かつ、Left1=Left2である場合には(S522:Yes)、フラップS1は右側に設けられていると判断し(S523)、本処理を終了する。また、Length1≠Length2であり、かつ、Left1≠Left2(即ち、Right1=Right2)である場合には(S522:No)、フラップS1は左側に設けられていると判断し(S524)、本処理を終了する。   FIG. 5B is a flowchart showing the flap direction detection process (S415) described above. In the flap direction detection process, if Length1 = Length2 (S521: Yes), since the flap S1 is in the closed state, the CPU 10 ends this process. On the other hand, if Length1 ≠ Length2 and Left1 = Left2 (S522: Yes), it is determined that the flap S1 is provided on the right side (S523), and this process is terminated. Further, when Length1 ≠ Length2 and Left1 ≠ Left2 (that is, Right1 = Right2) (S522: No), it is determined that the flap S1 is provided on the left side (S524), and this processing is performed. finish.

図6は、上述した印刷処理(S416)を示すフローチャートである。印刷処理において、まず、印刷が封筒設定でない場合には(S601:No)、CPU10は、用紙設定に応じた印刷を実行し(S607)、本処理を終了する。   FIG. 6 is a flowchart showing the above-described printing process (S416). In the printing process, first, when the printing is not the envelope setting (S601: No), the CPU 10 executes the printing according to the paper setting (S607), and ends this process.

一方、印刷が封筒設定である場合(S601:Yes)、フラップ状態検出処理(S414)においてフラップS1が閉鎖状態であると判断された場合(S602:No)、CPU10は、処理をS605へ移動する。   On the other hand, when the printing is the envelope setting (S601: Yes), when it is determined that the flap S1 is in the closed state in the flap state detection process (S414) (S602: No), the CPU 10 moves the process to S605. .

S414においてフラップS1が開放状態であると判断され、かつ、フラップ向き検出処理(S415)においてフラップS1が左側に設けられていると判断された場合(S602:Yes,S603:No)、CPU10は、印刷画像Q1の印刷位置を右側へ移動させる(S604)。すなわち、印刷画像Q1の印刷領域を右側に移動させる。その後、CPU10は、処理をS605へ移動する。   When it is determined in S414 that the flap S1 is in the open state, and it is determined that the flap S1 is provided on the left side in the flap direction detection process (S415) (S602: Yes, S603: No), the CPU 10 The print position of the print image Q1 is moved to the right side (S604). That is, the print area of the print image Q1 is moved to the right side. Thereafter, the CPU 10 moves the process to S605.

S414においてフラップS1が開放状態であると判断され、かつ、S415においてフラップS1が右側に設けられていると判断された場合(S602:Yes,S603:Yes)、CPU10は、印刷画像Q1を180度回転させ(S608)、印刷画像Q1の印刷位置を左側へ移動させる(S609)。すなわち、印刷画像Q1の印刷領域を左側に移動させる。その後、CPU10は、処理をS605へ移動する。なお、S604,S609における印刷領域の移動は、印刷画像Q1の中心が主走査方向におけるLeft1とRight1との中心となるように、印刷画像Q1を移動させることによって行う。   If it is determined in S414 that the flap S1 is in the open state, and it is determined in S415 that the flap S1 is provided on the right side (S602: Yes, S603: Yes), the CPU 10 determines that the print image Q1 is 180 degrees. It is rotated (S608), and the print position of the print image Q1 is moved to the left (S609). That is, the print area of the print image Q1 is moved to the left side. Thereafter, the CPU 10 moves the process to S605. Note that the printing area in S604 and S609 is moved by moving the printing image Q1 so that the center of the printing image Q1 is the center of Left1 and Right1 in the main scanning direction.

S605において、CPU10は、印刷に用いる画像データに基づいて、印刷開始位置として、印刷画像Q1における搬送方向の境界の位置を取得する(S605)。なお、「印刷に用いる画像データ」は、フラップS1が閉鎖状態であると場合には印刷データメモリ12aに記憶されている画像データであり、フラップS1が開放状態で左側に設けられている場合にはS604の処理後の画像データであり、フラップS1が開放状態で右側に設けられている場合にはS609の処理後の画像データである。   In S605, the CPU 10 acquires the position of the boundary in the transport direction in the print image Q1 as the print start position based on the image data used for printing (S605). The “image data used for printing” is image data stored in the print data memory 12a when the flap S1 is in the closed state, and when the flap S1 is provided on the left side in the open state. Is the image data after the processing of S604, and is the image data after the processing of S609 when the flap S1 is opened and provided on the right side.

次に、CPU10は、記録ヘッド21cが印刷開始位置において印刷できる位置まで封筒Sを搬送する(S606)。次に、CPU10は、印刷に用いる画像データに基づく印刷を実行し(S607)、本処理を終了する。上述した通り、印刷に用いる画像データは、フラップS1の状態及び向きに応じて適した画像データとされている。よって、横向きで搬送される封筒Sに対し、フラップS1の状態や向きに適した印刷画像Q1を印刷できる。   Next, the CPU 10 conveys the envelope S to a position where the recording head 21c can print at the print start position (S606). Next, the CPU 10 executes printing based on the image data used for printing (S607), and ends this processing. As described above, the image data used for printing is image data suitable for the state and orientation of the flap S1. Therefore, the print image Q1 suitable for the state and orientation of the flap S1 can be printed on the envelope S conveyed in the landscape orientation.

本実施形態のMFP1によれば、封筒Sが横向き(フラップS1が設けられている側の辺が搬送方向に沿う向き)に搬送される場合、封筒Sの主走査方向の両端の位置をメディアセンサ21dによって検知し、その検知結果に基づいて、フラップS1の状態を検出する。そして、MFP1は、検出されたフラップの向きに応じて、封筒Sに印刷(記録)する印刷画像Q1の印刷位置を制御する。よって、横向きで搬送される封筒Sに対し、フラップの状態に応じて適切な画像印刷を自動的に行うことができるので、ユーザの利便性が向上される。特に、封筒Sの主走査方向の両端の位置を、搬送方向に並ぶ2箇所の位置(位置P1,P2)について検出するので、フラップS1の状態の安定的に検出でき、検出精度を高めることができる。   According to the MFP 1 of the present embodiment, when the envelope S is conveyed sideways (the side on which the flap S1 is provided is oriented along the conveyance direction), the positions of both ends of the envelope S in the main scanning direction are detected by the media sensor. It detects by 21d, and detects the state of flap S1 based on the detection result. Then, the MFP 1 controls the printing position of the print image Q1 to be printed (recorded) on the envelope S according to the detected flap direction. Therefore, since the appropriate image printing can be automatically performed on the envelope S conveyed in the landscape direction according to the flap state, the convenience for the user is improved. In particular, since the positions of both ends of the envelope S in the main scanning direction are detected for two positions (positions P1 and P2) aligned in the transport direction, the state of the flap S1 can be detected stably, and the detection accuracy can be improved. it can.

また、フラップS1の状態が開放状態であると検出された場合には、搬送方向に並ぶ2箇所の位置(位置P1,P2)でそれぞれ検知された両端の位置(位置PL1,PR1,PL2,PR2)に基づき、両端のうち、主走査方向の位置が異なる端の側が、フラップS1が設けられた側であると特定される。印刷画像Q1は、フラップS1の向く側とは反対方向に移動される。よって、開放状態のフラップS1を、主走査方向における左右どちらに向けても、封筒Sに適切な画像印刷を行い得る。   Further, when it is detected that the state of the flap S1 is the open state, the positions at both ends (positions PL1, PR1, PL2, PR2) respectively detected at two positions (positions P1, P2) arranged in the transport direction. ) Of both ends, the end having a different position in the main scanning direction is identified as the side on which the flap S1 is provided. The printed image Q1 is moved in the direction opposite to the side where the flap S1 faces. Therefore, appropriate image printing can be performed on the envelope S regardless of whether the opened flap S1 is directed to the left or right in the main scanning direction.

次に、図7から図9を参照して、第2実施形態について説明する。上述した第1実施形態では、封筒Sが横向きに搬送される場合に、搬送方向に並ぶ2箇所の位置(位置P1,P2)において、封筒Sの主走査方向の両端の位置をメディアセンサ21dで検知して、フラップの状態及び向きを検出する構成であった。これに対し、第2実施形態では、1箇所の主走査方向の両端の位置から、フラップの状態及び向きを検出するものである。なお、第2実施形態において、上述した第1実施形態と同一の部分については、同一の符号を付し、その説明は省略する。   Next, a second embodiment will be described with reference to FIGS. In the first embodiment described above, when the envelope S is conveyed sideways, the positions of both ends in the main scanning direction of the envelope S are detected by the media sensor 21d at two positions (positions P1 and P2) aligned in the conveyance direction. It was the structure which detects and detects the state and direction of a flap. On the other hand, in the second embodiment, the state and orientation of the flap are detected from the positions of one end in the main scanning direction. Note that in the second embodiment, the same portions as those in the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted.

まず、図7を参照して、横向きの封筒Sに対する第2実施形態の印刷制御について説明する。図7(a)は、搬送方向の上流から下流側(矢印A方向)へ横向きに搬送される封筒Sに対し、メディアセンサ21dによる主走査方向両端の検知位置を説明する図である。本実施形態のMFP1は、その搬送機構が、プラテン212上へ搬送される被記録媒体(封筒Sなど)の中心位置を、搬送経路における左右幅方向の中央(仮想中心線C)に合致させて搬送させる構成とされる。このような搬送機構は、センターレジとも称される。   First, with reference to FIG. 7, the printing control of 2nd Embodiment with respect to the envelope S facing sideways is demonstrated. FIG. 7A is a diagram illustrating detection positions at both ends in the main scanning direction by the media sensor 21d with respect to the envelope S that is transported laterally from the upstream side to the downstream side (in the direction of arrow A) in the transport direction. In the MFP 1 of the present embodiment, the transport mechanism matches the center position of the recording medium (envelope S or the like) transported onto the platen 212 with the center in the left-right width direction (virtual center line C) in the transport path. It is set as the structure made to convey. Such a transport mechanism is also called a center register.

図7(a)に示すように、MFP1は、矢印A方向に搬送される封筒Sにおける搬送方向下流側の先端の位置P1において、第1実施形態と同様に、メディアセンサ21dを主走査方向に走査して、封筒Sにおける主走査方向の左端の位置PL1と、右端の位置PR1とを検知する。そして、MFP1は、左端位置PL1に対する主走査方向の位置情報(Left1)と、右端位置RL1に対する主走査方向の位置情報(Right1)とを取得する。次に、MFP1は、Left1から仮想中心線Cまでの主走査方向長さ(LLength)と、Rigth1から仮想中心線Cまでの主走査方向長さ(RLength)とを取得する。   As shown in FIG. 7A, the MFP 1 moves the media sensor 21d in the main scanning direction at the leading end position P1 on the downstream side in the transport direction of the envelope S transported in the direction of arrow A, as in the first embodiment. Scanning is performed to detect the left end position PL1 and the right end position PR1 of the envelope S in the main scanning direction. Then, the MFP 1 acquires position information (Left1) in the main scanning direction with respect to the left end position PL1 and position information (Right1) in the main scanning direction with respect to the right end position RL1. Next, the MFP 1 acquires a main scanning direction length (LLLength) from Left 1 to the virtual center line C and a main scanning direction length (RL Length) from Right 1 to the virtual center line C.

図7(b)は、本実施形態におけるフラップの状態及び向きの検出方法を説明する図である。上述した通り、封筒Sにおける搬送方向下流側の先端の位置P1について、主走査方向の左右両端PL1,PR1を検知した結果、Left1からから仮想中心線Cまでの主走査方向長さ、および、Rigth1から仮想中心線Cまでの主走査方向長さとして、それぞれ、LLengthおよびRigth1が得られる。これらの長さ(LLength,RLength)から、横向きの封筒SにおけるフラップS1の状態を判断できる。   FIG. 7B is a diagram for explaining a flap state and direction detection method according to the present embodiment. As described above, as a result of detecting the left and right ends PL1 and PR1 in the main scanning direction at the leading end position P1 in the envelope S, the length in the main scanning direction from Left 1 to the virtual center line C, and Rigth1 LLlength and Rigth1 are obtained as the lengths in the main scanning direction from to the virtual center line C, respectively. From these lengths (LLength, RLlength), the state of the flap S1 in the sideways envelope S can be determined.

具体的に、図7(b)における上段に示すように、LLengthとRLengthとが等しい場合には、封筒SのフラップS1が閉鎖状態であると判断される。一方、図7(b)における中段及び下段に示すように、LLengthとRLengthとが異なる場合には、封筒SのフラップS1が開放状態であると判断される。さらに、LLength<RLengthである場合には、封筒SのフラップS1は、主走査方向における左側に設けられていると判断される。一方、LLength>RLengthである場合には、封筒SのフラップS1は、主走査方向における右側に設けられていると判断される。   Specifically, as shown in the upper part of FIG. 7B, when LLlength and RLlength are equal, it is determined that the flap S1 of the envelope S is in a closed state. On the other hand, as shown in the middle and lower stages in FIG. 7 (b), when LLLength and RLLength are different, it is determined that the flap S1 of the envelope S is in an open state. Further, when LLlength <RLLength, it is determined that the flap S1 of the envelope S is provided on the left side in the main scanning direction. On the other hand, when LLlength> RLLength, it is determined that the flap S1 of the envelope S is provided on the right side in the main scanning direction.

第2実施形態においても、封筒Sに対する印刷制御は、上述の通り検出されるフラップS1の状態及び向きに基づいて行われる。具体的に、フラップS1が開放状態であり右側に設けられていると判断される場合には、PC500から受信した画像データを180度回転させる。一方、フラップS1が閉鎖状態であると判断される場合、又は、フラップS1が開放状態であり左側に設けられていると判断される場合には、PC500から受信した画像データは回転させない。   Also in the second embodiment, the printing control for the envelope S is performed based on the state and orientation of the flap S1 detected as described above. Specifically, when it is determined that the flap S1 is open and provided on the right side, the image data received from the PC 500 is rotated 180 degrees. On the other hand, when it is determined that the flap S1 is in the closed state, or when it is determined that the flap S1 is in the open state and is provided on the left side, the image data received from the PC 500 is not rotated.

また、フラップS1が開放状態で左側に設けられていると判断される場合には、PC500から受信した画像データにおける印刷画像Q1の印刷位置を右側へ移動させる。すなわち、印刷画像Q1の印刷領域を右側に移動させる。一方、フラップS1が開放状態で右側に設けられていると判断される場合には、PC500から受信した画像データにおける印刷画像Q1の印刷位置を左側へ移動させる。すなわち、印刷画像Q1の印刷領域を左側に移動させる。つまり、本実施形態では、LLength及びRLengthのうち、長さが短い側へ、印刷画像Q1を移動させる。本実施形態においても、印刷画像Q1の印刷領域の移動は、上述した第1実施形態と同様に、印刷画像Q1の中心が、主走査方向におけるLeft1とRight1との中心となるように、印刷画像Q1を移動させることによって行う。   When it is determined that the flap S1 is provided on the left side in the opened state, the print position of the print image Q1 in the image data received from the PC 500 is moved to the right side. That is, the print area of the print image Q1 is moved to the right side. On the other hand, if it is determined that the flap S1 is open and provided on the right side, the print position of the print image Q1 in the image data received from the PC 500 is moved to the left side. That is, the print area of the print image Q1 is moved to the left side. That is, in the present embodiment, the print image Q1 is moved to the shorter side of LLlength and RLLength. Also in this embodiment, the print area of the print image Q1 is moved so that the center of the print image Q1 is the center of Left1 and Right1 in the main scanning direction, as in the first embodiment. This is done by moving Q1.

図8は、MFP1のCPU10が実行する第2実施形態の印刷機能処理を示すフローチャートである。この処理は、第1実施形態と同様に、MFP1がPC500から画像データを受信すると、開始される。第1実施形態と同様に、MFP1は、PC500から、画像データとともに、印刷対象が封筒であることを示す封筒設定、及び、印刷対象となる封筒のサイズを受信する。   FIG. 8 is a flowchart illustrating print function processing according to the second embodiment executed by the CPU 10 of the MFP 1. This processing is started when the MFP 1 receives image data from the PC 500, as in the first embodiment. Similar to the first embodiment, the MFP 1 receives from the PC 500 the image data and the envelope setting indicating that the print target is an envelope and the size of the envelope to be printed.

印刷が封筒設定でない場合には(S401:No)、CPU10は、印刷処理を実行して印刷対象の被記録媒体に対し印刷を施し(S416)、本処理を終了する。一方、印刷が封筒設定である場合には(S401:Yes)、CPU10は、横向きの封筒を給紙し(S402)、封筒Sを、メディアセンサ21dにより、搬送方向下流側端辺(位置P1)を検出できる位置まで搬送する(S801)。   If the printing is not envelope setting (S401: No), the CPU 10 executes the printing process to print the recording medium to be printed (S416), and ends this process. On the other hand, when printing is set as an envelope (S401: Yes), the CPU 10 feeds a horizontally-facing envelope (S402), and the envelope S is moved downstream in the conveyance direction by the media sensor 21d (position P1). (S801).

次に、CPU10は、キャリッジ211を移動させながらメディアセンサ21dを走査し、位置P1における主走査方向の左右端の位置情報(Left1,Right1)を取得する(S802)。CPU10は、取得した位置情報に基づいて、位置P1における封筒Sの主走査方向長さ(Length1)を取得する(S803)。取得した主走査方向長さ(Length1)が規定サイズより大きい場合(S804:Yes)、CPU10は、用紙サイズエラー処理を実行し(S417)、本処理を終了する。   Next, the CPU 10 scans the media sensor 21d while moving the carriage 211, and acquires position information (Left1, Right1) of the left and right ends in the main scanning direction at the position P1 (S802). The CPU 10 acquires the main scanning direction length (Length1) of the envelope S at the position P1 based on the acquired position information (S803). When the acquired length (Length1) in the main scanning direction is larger than the specified size (S804: Yes), the CPU 10 executes a paper size error process (S417) and ends this process.

一方、主走査方向長さ(Length1)が規定サイズ以下である場合(S804:No)、CPU10は、仮想中心線Cから左右端までの主走査方向長さ(LLength,RLength)を取得する(S805)。次に、CPU10は、第2実施形態のフラップ状態検出処理を実行し(S806)、第2実施形態のフラップ向き検出処理を実行する(S807)。なお、フラップ状態検出処理(S806)及びフラップ向き検出処理(S807)の詳細は、それぞれ、図9(a)及び図9(b)を参照して後述する。フラップ向き検出処理(S807)の後、CPU10は、印刷処理を実行して(S416)、本処理を終了する。   On the other hand, when the main scanning direction length (Length 1) is equal to or smaller than the specified size (S804: No), the CPU 10 acquires the main scanning direction length (LL Length, RL Length) from the virtual center line C to the left and right ends (S805). ). Next, the CPU 10 executes the flap state detection process of the second embodiment (S806), and executes the flap direction detection process of the second embodiment (S807). Details of the flap state detection process (S806) and the flap direction detection process (S807) will be described later with reference to FIGS. 9 (a) and 9 (b), respectively. After the flap direction detection process (S807), the CPU 10 executes a print process (S416) and ends the process.

図9(a)は、第2実施形態のフラップ状態検出処理(S806)を示すフローチャートである。フラップ状態検出処理(S806)もまた、第1実施形態のフラップ状態検出処理(S414)と同様に、フラップS1の状態を検出する処理である。フラップ状態検出処理において、LLength≠RLengthである場合(S901:Yes)、CPU10は、フラップS1は開放状態であると判断し(S902)、本処理を終了する。一方、LLength=RLengthである場合(S901:No)、CPU10は、フラップS1は閉鎖状態であると判断し(S903)、本処理を終了する。   FIG. 9A is a flowchart showing the flap state detection process (S806) of the second embodiment. The flap state detection process (S806) is also a process for detecting the state of the flap S1, similarly to the flap state detection process (S414) of the first embodiment. In the flap state detection process, if LLlength ≠ RLLength (S901: Yes), the CPU 10 determines that the flap S1 is in the open state (S902), and ends this process. On the other hand, when LLlength = RLLength (S901: No), the CPU 10 determines that the flap S1 is in a closed state (S903), and ends this process.

図9(b)は、第2実施形態のフラップ向き検出処理(S807)を示すフローチャートである。フラップ向き検出処理(S807)もまた、第1実施形態のフラップ向き検出処理(S414)と同様に、フラップS1が右側又は左側のいずれに設けられているのかを検出する処理である。フラップ向き検出処理において、LLength=RLengthであれば(S921:Yes)、フラップS1は閉鎖状態であるので、CPU10は、本処理を終了する。一方、LLength≠RLengthであり、かつ、LLength>RLengthである場合には(S922:Yes)、フラップS1は右側に設けられていると判断し(S923)、本処理を終了する。また、LLength≠RLengthであり、かつ、LLength<RLengthである場合には(S922:No)、フラップS1は左側に設けられていると判断し(S924)、本処理を終了する。   FIG. 9B is a flowchart showing the flap direction detection processing (S807) of the second embodiment. The flap direction detection process (S807) is also a process for detecting whether the flap S1 is provided on the right side or the left side, similarly to the flap direction detection process (S414) of the first embodiment. In the flap direction detection process, if LLlength = RLLength (S921: Yes), since the flap S1 is in the closed state, the CPU 10 ends this process. On the other hand, if LLlength ≠ RLLength and LLlength> RLLength (S922: Yes), it is determined that the flap S1 is provided on the right side (S923), and the process is terminated. If LLlength ≠ RLLength and LLlength <RLlength (S922: No), it is determined that the flap S1 is provided on the left side (S924), and the process is terminated.

第2実施形態のMFP1によれば、センターレジによって封筒Sが横向きに搬送される場合、封筒Sの主走査方向の両端の位置を、搬送方向下流側の先端の位置P1において検知し、センターレジによる仮想中心線Cから、検知された各端までの主走査方向長さに基づいて、フラップS1の状態を検出する。本実施形態のMFP1もまた、フラップS1の状態を検出できるので、第1実施形態と同様に、フラップの状態に応じて適切な画像印刷を自動的に行うことができ、ユーザの利便性が向上される。また、フラップS1の状態を検出するための両端の検知位置を封筒Sの搬送方向における端部の1箇所とするので、フラップS1の状態を迅速に検出できる。特に、本実施形態では、フラップS1の状態を検出するための両端の検知位置を、封筒Sの搬送方向下流側の先端とするので、フラップS1の状態を検出した後に、封筒Sを搬送方向上流側へ戻す可能性を低減でき、記録に要する時間の無駄を抑制できる。   According to the MFP 1 of the second embodiment, when the envelope S is conveyed sideways by the center register, the positions of both ends of the envelope S in the main scanning direction are detected at the position P1 of the leading end on the downstream side in the conveying direction. The state of the flap S1 is detected on the basis of the detected length in the main scanning direction from the virtual center line C to each end. Since the MFP 1 of the present embodiment can also detect the state of the flap S1, similarly to the first embodiment, appropriate image printing can be automatically performed according to the state of the flap, and the convenience of the user is improved. Is done. Moreover, since the detection position of both ends for detecting the state of the flap S1 is one place at the end in the transport direction of the envelope S, the state of the flap S1 can be detected quickly. In particular, in the present embodiment, the detection positions at both ends for detecting the state of the flap S1 are the leading ends on the downstream side in the transport direction of the envelope S. Therefore, after detecting the state of the flap S1, the envelope S is upstream in the transport direction. The possibility of returning to the side can be reduced, and waste of time required for recording can be suppressed.

また、フラップS1の状態が開放状態であると検出された場合には、仮想中心線Cから各端までの長さのうち、仮想中心線Cから主走査方向における左端までの長さ(LLength)と、仮想中心線Cから主走査方向における右端までの長さ(RLength)のうち、長さの短い方の端の側が、フラップが設けられた側として特定される。印刷画像Q1は、第1実施形態と同様に、フラップS1が設けられていると特定された側とは反対方向に移動される。つまり、LLengthとRLengthとのうち、長い方の側に画像を移動させればよく、開放状態のフラップS1を、主走査方向における左右どちらに向けても、封筒Sに適切な画像印刷を行い得る。   When it is detected that the state of the flap S1 is an open state, the length from the virtual center line C to the left end in the main scanning direction (LL Length) among the length from the virtual center line C to each end. Then, the shorter end side of the length (RLLength) from the virtual center line C to the right end in the main scanning direction is specified as the side where the flap is provided. As in the first embodiment, the print image Q1 is moved in the direction opposite to the side identified as having the flap S1. That is, it is only necessary to move the image to the longer side of LLlength and RLlength, and appropriate image printing can be performed on the envelope S regardless of whether the flap S1 in the open state is directed to the left or right in the main scanning direction. .

上記実施形態において、MFP1が、画像記録装置の一例である。LFモータ21bが、搬送部の一例である。CRモータ21a、記録ヘッド21cが、記録部の一例である。メディアセンサ21dが、検知部の一例である。CPU10が、制御部の一例である。S414,S806を実行するCPU10が、フラップ状態検出手段の一例である。S6014,S609を実行するCPU10が、位置制御手段の一例である。S403,S404,S407,S408を実行するCPU10が、請求項2の検知制御手段の一例である。S415を実行するCPU10が、請求項3,4におけるフラップ向き特定手段の一例である。S608を実行するCPU10が、画像回転手段の一例である。S605を実行するCPU10が、記録開始位置取得手段の一例である。S606を実行するCPU10が、検知後搬送手段の一例である。S801,S802を実行するCPU10が、請求項7の検知制御手段の一例である。S807を実行するCPU10が、請求項8におけるフラップ向き特定手段の一例である。   In the above embodiment, the MFP 1 is an example of an image recording apparatus. The LF motor 21b is an example of a transport unit. The CR motor 21a and the recording head 21c are examples of a recording unit. The media sensor 21d is an example of a detection unit. The CPU 10 is an example of a control unit. CPU10 which performs S414, S806 is an example of a flap state detection means. The CPU 10 that executes S6014 and S609 is an example of a position control unit. The CPU 10 that executes S403, S404, S407, and S408 is an example of the detection control means of claim 2. CPU10 which performs S415 is an example of the flap direction specific | specification means in Claim 3, 4. The CPU 10 that executes S608 is an example of an image rotation unit. The CPU 10 that executes S605 is an example of a recording start position acquisition unit. The CPU 10 that executes S606 is an example of a post-detection conveying unit. The CPU 10 that executes S801 and S802 is an example of the detection control means of claim 7. The CPU 10 that executes S807 is an example of the flap orientation specifying means in claim 8.

以上、実施形態に基づき本発明を説明したが、本発明は上述した実施形態に何ら限定されるものではなく、本発明の趣旨を逸脱しない範囲内で種々の改良変更が可能であることは容易に推察できるものである。   Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and various improvements and modifications can be easily made without departing from the spirit of the present invention. Can be inferred.

例えば、上記実施形態では、画像記録装置の一例として、印刷機能以外の機能も有するMFP1を説明したが、印刷機能に特化した記録装置も画像記録装置の一例となり得る。また、インクジェットプリンタに限らず、レーザプリンタや熱転写方式のプリンタも画像記録装置の一例となり得る。例えば、レーザプリンタに本発明を適用する場合には、封筒Sを印刷位置まで搬送する搬送経路上における前記印刷位置より搬送方向上流側に封筒Sの主走査方向の両端を検出可能なラインセンサなどのセンサを設ければよい。   For example, in the above-described embodiment, the MFP 1 having a function other than the printing function has been described as an example of the image recording apparatus. However, a recording apparatus specialized for the printing function may be an example of the image recording apparatus. Further, not only an ink jet printer but also a laser printer or a thermal transfer printer can be an example of an image recording apparatus. For example, when the present invention is applied to a laser printer, a line sensor that can detect both ends of the envelope S in the main scanning direction upstream of the print position on the transport path for transporting the envelope S to the print position. The sensor may be provided.

上記実施形態では、キャリッジ211の下面に設けられたメディアセンサ21dを用いる構成としたが、メディアセンサ21dに換えて、CCDなどの撮像素子を用いる構成としてもよい。また、メディアセンサ21dを設ける位置は、記録ヘッド21cより上流側に限らず、記録ヘッド21cより下流側や、主走査方向の一側などであってもよい。また、メディアセンサ21dを、キャリッジ211とは別体とし、キャリッジ211とは独立して移動可能にしてもよい。   In the above embodiment, the media sensor 21d provided on the lower surface of the carriage 211 is used. However, instead of the media sensor 21d, an image sensor such as a CCD may be used. The position where the media sensor 21d is provided is not limited to the upstream side of the recording head 21c, but may be the downstream side of the recording head 21c, one side in the main scanning direction, or the like. Further, the media sensor 21d may be separated from the carriage 211 and movable independently of the carriage 211.

上記実施形態では、短辺にフラップS1が設けられている封筒を例示したが、長辺にフラップS1が設けられた封筒Sを横向きで搬送させる場合にも本発明を適用できる。なお、上記実施形態のように、短辺にフラップS1が設けられた封筒Sを横向きで搬送するMFPや記録装置は、装置の省スペース化や小型化に貢献する。   In the said embodiment, although the envelope in which the flap S1 was provided in the short side was illustrated, this invention is applicable also when conveying the envelope S in which the flap S1 was provided in the long side sideways. Note that, as in the above-described embodiment, the MFP and the recording apparatus that convey the envelope S provided with the flap S1 on the short side in the horizontal direction contribute to space saving and downsizing of the apparatus.

上記実施形態では、印刷開始位置を、印刷画像Q1における搬送方向の境界としたが、印刷画像Q1の中で、搬送方向において最初に有色の記録が開始される位置を印刷開始位置としてもよい。図10は、この変形例を説明する模式図である。図10に示す例では、矢印A方向に封筒Sが搬送された場合に、印刷画像Q1の中で、搬送方向において最初に有色の記録が開始される位置である位置P3において、搬送方向において最初に有色の記録が行われる。位置P3を印刷開始位置とすることにより、印刷開始位置をできるだけ搬送方向上流側へ位置させることができる。よって、印刷処理(図6)のS606において、フラップS1の状態及び向きの検出後に、封筒Sが、搬送方向下流側から上流側へ逆搬送される可能性を低減できるので、記録に要する時間の無駄を抑制できる。   In the above-described embodiment, the print start position is the boundary in the transport direction in the print image Q1, but in the print image Q1, a position where colored recording is first started in the transport direction may be set as the print start position. FIG. 10 is a schematic diagram for explaining this modification. In the example shown in FIG. 10, when the envelope S is conveyed in the direction of arrow A, the first position in the conveying direction is the position P3 in the printed image Q1, which is the position where colored recording is first started in the conveying direction. Colored recording is performed. By setting the position P3 as the print start position, the print start position can be positioned as far upstream as possible in the transport direction. Accordingly, in S606 of the printing process (FIG. 6), the possibility that the envelope S is reversely conveyed from the downstream side in the conveyance direction to the upstream side after the detection of the state and orientation of the flap S1 can be reduced. Waste can be suppressed.

上記第1実施形態では、位置P2を固定の位置としたが、印刷開始位置に応じて位置P2を可変としてもよい。特に、位置P2を印刷開始位置より搬送方向上流側に設定する構成とした場合には、印刷処理(図6)のS606において、フラップS1の状態及び向きの検出後に、封筒Sが、搬送方向下流側から上流側へ逆搬送される可能性を低減できるので、記録に要する時間の無駄を抑制できる。また、位置P1と位置P2との距離を広げることも可能であり、位置P1,P2間の距離が広がることにより、フラップS1の状態をより安定的に検出することができ、それにより、検出精度を高めることができる。さらに、位置P2を印刷開始位置に設定する構成とした場合には、封筒Sが、フラップ向き検出処理を実行した後に、封筒Sを搬送することなく印刷を開始することが可能なので、記録に要する時間の無駄を抑制できる。この場合、印刷開始位置を上述のように、印刷画像Q1の中で、搬送方向において最初に有色の記録が開始される位置を印刷開始位置としてもよい。   In the first embodiment, the position P2 is a fixed position, but the position P2 may be variable according to the print start position. In particular, when the position P2 is set upstream of the printing start position in the transport direction, the envelope S is downstream in the transport direction after detection of the state and orientation of the flap S1 in S606 of the printing process (FIG. 6). Since it is possible to reduce the possibility of reverse conveyance from the side to the upstream side, waste of time required for recording can be suppressed. Further, it is possible to increase the distance between the position P1 and the position P2, and the distance between the positions P1 and P2 can be increased, so that the state of the flap S1 can be detected more stably, thereby detecting accuracy. Can be increased. Further, when the position P2 is set as the print start position, the envelope S can start printing without carrying the envelope S after the flap direction detection processing is executed, and thus is required for recording. Time waste can be suppressed. In this case, as described above, the print start position may be the print start position in the print image Q1 where color recording is first started in the transport direction.

上記第1実施形態では、封筒Sにおける搬送方向下流側の先端を位置P1とし、位置P1から搬送方向上流側に所定距離だけ離間された位置を位置P2としたが、位置P1,P2は、適宜変更可能である。例えば、封筒Sにおける搬送方向上流側の先端から所定距離だけ離間された位置を位置P1とし、封筒Sにおける搬送方向上流側の先端を位置P2としてもよい。ただし、位置P1,P2を封筒Sにおける搬送方向下流側に位置させることにより、フラップS1の状態及び向きの検出後に、封筒Sが、搬送方向下流側から上流側へ逆搬送される可能性を低減できるので好ましい。   In the first embodiment, the tip of the envelope S on the downstream side in the transport direction is defined as the position P1, and the position separated by a predetermined distance from the position P1 on the upstream side in the transport direction is defined as the position P2. It can be changed. For example, a position separated by a predetermined distance from the leading end on the upstream side in the transport direction in the envelope S may be defined as the position P1, and a leading end on the upstream side in the transport direction in the envelope S may be defined as the position P2. However, by positioning the positions P1 and P2 on the downstream side in the transport direction of the envelope S, the possibility that the envelope S is reversely transported from the downstream side in the transport direction to the upstream side after detecting the state and orientation of the flap S1 is reduced. It is preferable because it is possible.

同様に、上記第2実施形態では、封筒Sにおける搬送方向下流側の先端を位置P1としたが、位置P1は、フラップS1が開放状態である場合にLLengthとRLengthとが異なるような位置であればよい。例えば、封筒Sにおける搬送方向下流側の先端から若干搬送方向上流側を位置P1としてもよい。かかる場合、位置P1は、封筒Sにおける搬送方向下流側の先端から、封筒SにおけるフラップS1が設けられた辺と、その辺に対向するフラップS1の辺(フラップS1における、封筒Sに接続される辺に対向する辺)の搬送方向下流端の間に設けられるとよい。また、例えば、封筒Sにおける搬送方向上流側の先端などであってもよい。   Similarly, in the second embodiment, the leading end of the envelope S on the downstream side in the transport direction is set to the position P1, but the position P1 may be a position where LLLength and RLLength are different when the flap S1 is in the open state. That's fine. For example, a slightly upstream side in the transport direction from the front end of the envelope S on the downstream side in the transport direction may be set as the position P1. In this case, the position P1 is connected to the side of the envelope S where the flap S1 is provided and the side of the flap S1 opposite to the side (the envelope S in the flap S1) from the leading end of the envelope S on the downstream side in the transport direction. It is good to be provided between the conveyance direction downstream ends of the sides facing the sides. Further, for example, the tip of the envelope S on the upstream side in the transport direction may be used.

上記実施形態では、PC500から受信した画像データに基づく画像を封筒Sに印刷する構成としたが、フラッシュメモリ11に記憶されている画像データに基づく画像が封筒Sに印刷される場合にも本発明を適用可能である。また、MFP1がメモリカードを装着可能に構成される場合に、メモリカードに記憶されている画像データに基づく画像が封筒Sに印刷される場合にも本発明を適用可能である。   In the above embodiment, the image based on the image data received from the PC 500 is printed on the envelope S. However, the present invention is also applicable to the case where an image based on the image data stored in the flash memory 11 is printed on the envelope S. Is applicable. The present invention can also be applied to a case where an image based on image data stored in the memory card is printed on the envelope S when the MFP 1 is configured so that a memory card can be attached.

上記実施形態は、CPU10によって図4〜6,8,9に示す処理が実行される例を説明したが、これら処理は、CPU10に限らず、ASIC24や他の論理集積回路により実行されてもよいし、これら処理が、CPU10やASIC24、他の論理集積回路が協働することにより実行されてもよい。   Although the said embodiment demonstrated the example by which the process shown to FIGS. 4-6, 8, 9 was performed by CPU10, these processes may be performed not only by CPU10 but by ASIC24 or another logic integrated circuit. However, these processes may be executed by the cooperation of the CPU 10, the ASIC 24, and other logic integrated circuits.

1 MFP(画像記録装置)
11a 制御プログラム

1 MFP (image recording device)
11a Control program

Claims (8)

被記録媒体を所定の搬送方向である第1方向に沿って搬送する搬送部と、
前記搬送部により搬送される被記録媒体に画像の記録を行う記録部と、
前記搬送部により搬送される被記録媒体の、前記第1方向に対して直交する第2方向の両端の位置を検知する検知部と、
前記搬送部による被記録媒体の搬送と前記記録部による画像の記録とを制御する制御部と、を備えた画像記録装置であって、
前記制御部は、
第1の辺に封緘用のフラップが設けられた封筒が、前記被記録媒体として、前記搬送部により、前記第1の辺と交差する第2の辺が前記第1方向に対して直交する方向である横向きに搬送される場合に、前記封筒の前記第2方向の両端を、前記封筒の前記第1方向における第1の位置と、前記封筒の前記第1方向において前記第1の位置より搬送方向上流側となる第2の位置とについて、前記検知部に検知させる検知制御手段と、
前記封筒前記搬送部により前記横向きに搬送される場合に、前記第1の位置及び前記第2の位置においてそれぞれ前記検知部により検知された前記両端の位置に基づき、前記第1の位置における前記封筒の前記第2方向の長さと、前記第2の位置における前記封筒の前記第2方向の長さとが異なっていれば、前記フラップの状態が開放状態であると検出するフラップ状態検出手段と、
前記フラップ状態検出手段により検出されたフラップの状態に応じて、前記封筒に記録する画像の印刷位置を制御する位置制御手段と、を備えていることを特徴とする画像記録装置。
A transport unit for transporting the recording medium along a first direction which is a predetermined transport direction;
A recording unit for recording an image on a recording medium conveyed by the conveying unit;
A detection unit for detecting positions of both ends of a recording medium conveyed by the conveyance unit in a second direction orthogonal to the first direction;
A control unit that controls conveyance of a recording medium by the conveyance unit and recording of an image by the recording unit;
The controller is
An envelope in which a sealing flap is provided on the first side is a direction in which a second side intersecting the first side is perpendicular to the first direction by the transport unit as the recording medium. When the paper is conveyed sideways, both ends of the envelope in the second direction are conveyed from the first position in the first direction of the envelope and the first position in the first direction of the envelope. Detection control means for causing the detection unit to detect the second position on the upstream side in the direction;
When the envelope is transported in the horizontal by the transport unit based on the position of said end detected by each of the detecting portion in said first position and said second position, said at the first position Flap state detection means for detecting that the state of the flap is an open state if the length of the envelope in the second direction is different from the length of the envelope in the second position at the second position ;
An image recording apparatus comprising: position control means for controlling a printing position of an image to be recorded on the envelope according to a flap state detected by the flap state detection means.
前記制御部は、
前記フラップ状態検出手段により前記フラップの状態が開放状態であると検出された場合に、前記第1の位置及び前記第2の位置でそれぞれ前記検知部により検知された前記両端の位置に基づき、前記両端のうち、前記封筒の前記第2方向の位置が異なる端の側を、前記フラップが設けられた側として特定するフラップ向き特定手段を備え、
前記位置制御手段は、前記フラップ向き特定手段により特定された前記フラップが設けられた側とは反対方向に画像の印刷位置を移動させることを特徴とする請求項に記載の画像記録装置。
The controller is
When the flap state detection means detects that the state of the flap is an open state, based on the positions of the both ends detected by the detection unit at the first position and the second position, Flap direction specifying means for specifying, as the side on which the flap is provided, the side of the end where the position in the second direction of the envelope is different among both ends,
The image recording apparatus according to claim 1 , wherein the position control unit moves an image printing position in a direction opposite to a side on which the flap specified by the flap direction specifying unit is provided.
前記制御部は、
前記フラップ状態検出手段により前記フラップの状態が開放状態であると検出された場合に、前記第1の位置及び前記第2の位置でそれぞれ前記検知部により検知された前記両端の位置に基づき、前記両端のうち、前記封筒の前記第2方向の位置が異なる端の側を、前記フラップが設けられた側として特定するフラップ向き特定手段と、
前記フラップ向き特定手段により特定された前記フラップが設けられた側が、画像に対して予め規定されたフラップが設けられた側と異なる場合に、画像を180度回転させる画像回転手段と、を備えていることを特徴とする請求項またはに記載の画像記録装置。
The controller is
When the flap state detection means detects that the state of the flap is an open state, based on the positions of the both ends detected by the detection unit at the first position and the second position, Flap direction specifying means for specifying the end of the envelope in which the position in the second direction is different as the side on which the flap is provided;
Image rotation means for rotating the image by 180 degrees when the side on which the flap specified by the flap orientation specifying means is provided is different from the side on which the flap defined in advance for the image is provided. the image recording apparatus according to claim 1 or 2, characterized in that there.
前記検知部は、前記搬送方向において前記記録部より上流側に設けられ、
前記制御部は、
前記封筒の前記第1方向における前記記録部による前記画像の記録開始位置を取得する記録開始位置取得手段と、
前記検知部による検知の後、前記封筒を前記搬送部により前記記録開始位置まで搬送する検知後搬送手段と、を備え、
前記記録開始位置取得手段は、前記記録部により封筒に記録させる画像の画像データに基づき、前記封筒の前記第1方向において有色の記録が開始される位置を前記記録開始位置として取得することを特徴とする請求項からのいずれかに記載の画像記録装置。
The detection unit is provided on the upstream side of the recording unit in the transport direction,
The controller is
Recording start position acquisition means for acquiring a recording start position of the image by the recording unit in the first direction of the envelope;
A post-detection transport means for transporting the envelope to the recording start position by the transport section after detection by the detection section;
The recording start position acquisition unit acquires, as the recording start position, a position at which colored recording starts in the first direction of the envelope based on image data of an image recorded on the envelope by the recording unit. An image recording apparatus according to any one of claims 1 to 3 .
前記検知部は、前記搬送方向において前記記録部より上流側に設けられ、
前記制御部は、
前記記録部により封筒に記録させる画像の画像データに基づき、予め設定されている余白が前記封筒の前記第1方向において終了する位置、又は、前記封筒の前記第1方向において有色の記録が開始される位置を記録開始位置として取得する記録開始位置取得手段と、
前記第2の位置を、前記封筒の前記第1方向において前記記録開始位置より前記搬送方向上流側となる位置に設定する第2位置設定手段と、を備えていることを特徴とする請求項からのいずれかに記載の画像記録装置。
The detection unit is provided on the upstream side of the recording unit in the transport direction,
The controller is
Based on the image data of the image recorded on the envelope by the recording unit, a color recording is started in a position where a preset margin ends in the first direction of the envelope or in the first direction of the envelope. Recording start position acquisition means for acquiring the position to be recorded as the recording start position;
Claim 1, characterized in that it comprises a second position, the second position setting means for setting the recording start position from the said upstream side position in the first direction of the envelope, the 4. The image recording device according to any one of items 1 to 3 .
被記録媒体を所定の搬送方向である第1方向に沿って搬送する搬送部と、
前記搬送部により搬送される被記録媒体に画像の記録を行う記録部と、
前記搬送部により搬送される被記録媒体の、前記第1方向に対して直交する第2方向の両端の位置を検知する検知部と、
前記搬送部による被記録媒体の搬送と前記記録部による画像の記録とを制御する制御部と、を備えた画像記録装置であって、
被記録媒体における前記第2方向の中心を基準位置に一致させて、被記録媒体を搬送する搬送機構を備え、
前記制御部は、
第1の辺に封緘用のフラップが設けられた封筒が、前記被記録媒体として、前記搬送部により、前記第1の辺と交差する第2の辺が前記第1方向に対して直交する方向である横向きに搬送される場合に、前記封筒の前記第2方向の両端を、前記封筒の前記第1方向における一端について、前記検知部に検知させる検知制御手段と、
前記封筒が前記搬送部により前記横向きに搬送される場合に、前記第1方向における一端において前記検知部により検知された前記両端の位置に基づき、前記基準位置から各端までの前記第2方向における長さが異なっていれば、前記フラップの状態が開放状態であると検出するフラップ状態検出手段と、
前記フラップ状態検出手段により検出されたフラップの状態に応じて、前記封筒に記録する画像の印刷位置を制御する位置制御手段と、を備えることを特徴とする画像記録装置。
A transport unit for transporting the recording medium along a first direction which is a predetermined transport direction;
A recording unit for recording an image on a recording medium conveyed by the conveying unit;
A detection unit for detecting positions of both ends of a recording medium conveyed by the conveyance unit in a second direction orthogonal to the first direction;
A control unit that controls conveyance of a recording medium by the conveyance unit and recording of an image by the recording unit;
A transport mechanism for transporting the recording medium with the center in the second direction of the recording medium being aligned with the reference position;
The controller is
An envelope in which a sealing flap is provided on the first side is a direction in which a second side intersecting the first side is perpendicular to the first direction by the transport unit as the recording medium. A detection control means for causing the detection unit to detect both ends of the envelope in the second direction with respect to one end of the envelope in the first direction when being conveyed in a horizontal direction ,
When the envelope is transported in the lateral direction by the transport unit, in the second direction from the reference position to each end based on the positions of the both ends detected by the detection unit at one end in the first direction. if put What is Do different length, a flap state detecting means state of the flap is detected to be open,
An image recording apparatus comprising: position control means for controlling a printing position of an image to be recorded on the envelope according to the flap state detected by the flap state detection means .
前記制御部は、
前記フラップ状態検出手段により前記フラップの状態が開放状態であると検出された場合に、前記基準位置から各端までの長さのうち、前記基準位置から前記第2方向における一端までの第1長さと、前記基準位置から前記第2方向における他端までの第2長さとについて、長さの短い方の端の側を前記フラップが設けられた側として特定するフラップ向き特定手段を備え、
前記位置制御手段は、前記フラップ向き特定手段により特定された前記フラップが設けられた側とは反対方向に画像の印刷位置を移動させることを特徴とする請求項に記載の画像記録装置。
The controller is
The first length from the reference position to one end in the second direction among the lengths from the reference position to each end when the flap state detection means detects that the flap state is an open state. And, with respect to the second length from the reference position to the other end in the second direction, there is provided a flap orientation specifying means for specifying the shorter end side as the side on which the flap is provided,
The image recording apparatus according to claim 6 , wherein the position control unit moves an image printing position in a direction opposite to a side on which the flap specified by the flap direction specifying unit is provided.
前記検知部は、前記搬送方向において前記記録部より上流側に設けられ、
前記第1方向における一端は、前記搬送方向の下流側の端であることを特徴とする請求項又はに記載の画像記録装置。
The detection unit is provided on the upstream side of the recording unit in the transport direction,
Wherein one end in a first direction, the image recording apparatus according to claim 6 or 7, characterized in that said a downstream end of the conveying direction.
JP2011286447A 2011-12-27 2011-12-27 Image recording device Active JP5929178B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011286447A JP5929178B2 (en) 2011-12-27 2011-12-27 Image recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011286447A JP5929178B2 (en) 2011-12-27 2011-12-27 Image recording device

Publications (2)

Publication Number Publication Date
JP2013132886A JP2013132886A (en) 2013-07-08
JP5929178B2 true JP5929178B2 (en) 2016-06-01

Family

ID=48909920

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011286447A Active JP5929178B2 (en) 2011-12-27 2011-12-27 Image recording device

Country Status (1)

Country Link
JP (1) JP5929178B2 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014043704A1 (en) * 2012-09-17 2014-03-20 Boston Scientific Scimed, Inc. Pressure sensing guidewire
US11058307B2 (en) 2016-02-23 2021-07-13 Boston Scientific Scimed, Inc. Pressure sensing guidewire systems including an optical connector cable
JP6898581B2 (en) * 2016-09-05 2021-07-07 コニカミノルタ株式会社 Image forming device and control program of image forming device
US11564581B2 (en) 2017-08-03 2023-01-31 Boston Scientific Scimed, Inc. Methods for assessing fractional flow reserve
JP2018086844A (en) * 2017-12-21 2018-06-07 キヤノン株式会社 Printer, control method for printer, and program
JP7024103B2 (en) 2018-02-23 2022-02-22 ボストン サイエンティフィック サイムド,インコーポレイテッド Evaluation method of blood vessels by sequential physiological measurement
US11850073B2 (en) 2018-03-23 2023-12-26 Boston Scientific Scimed, Inc. Medical device with pressure sensor
WO2019195721A1 (en) 2018-04-06 2019-10-10 Boston Scientific Scimed, Inc. Medical device with pressure sensor
WO2019204219A1 (en) 2018-04-18 2019-10-24 Boston Scientific Scimed, Inc. System for assessing a vessel with sequential physiological measurements

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3067279B2 (en) * 1991-07-04 2000-07-17 株式会社リコー Envelope paper feed control device
JPH07205520A (en) * 1994-01-20 1995-08-08 Hitachi Ltd Wire dot printer
JPH09109492A (en) * 1995-10-18 1997-04-28 Oki Data:Kk Device for detecting start position
JP3952827B2 (en) * 2002-04-03 2007-08-01 セイコーエプソン株式会社 FEEDING DEVICE, RECORDING DEVICE PROVIDED WITH FEEDING DEVICE, AND FEEDING METHOD
JP2007268987A (en) * 2006-03-31 2007-10-18 Olympus Corp Image recorder and image recording method for the same
JP5358912B2 (en) * 2007-08-31 2013-12-04 富士ゼロックス株式会社 Image forming apparatus
JP2010212872A (en) * 2009-03-09 2010-09-24 Brother Ind Ltd Printer
JP6106915B2 (en) * 2011-01-17 2017-04-05 コニカミノルタ株式会社 Image forming apparatus, image forming method, and program

Also Published As

Publication number Publication date
JP2013132886A (en) 2013-07-08

Similar Documents

Publication Publication Date Title
JP5929178B2 (en) Image recording device
US11400734B2 (en) Image recording apparatus
JP4715938B2 (en) Image recording device
JP2004322456A (en) Ink jet printer
JP5094911B2 (en) Printing device
JP5959978B2 (en) Printing method and printing sheet used therefor
JP4229022B2 (en) Conveyance control device, conveyance system, and image forming system
JP6003100B2 (en) Inkjet recording device
JP5959977B2 (en) Printing method and printing sheet used therefor
JP2010082831A (en) Image recording apparatus
JP6080420B2 (en) Printing apparatus and method
JP6834273B2 (en) Serial recording device
JP5970840B2 (en) Inkjet recording device
JP5765151B2 (en) Compound machine
JP7456346B2 (en) printing device
JP2019107904A (en) Ink jet recording apparatus and ink jet recording method
JP6350125B2 (en) Inkjet recording apparatus, program, and image recording method
JP5278478B2 (en) Image forming apparatus, program thereof, and recording medium conveyance monitoring method in image forming apparatus
US20230202213A1 (en) Printing apparatus
JP6604401B2 (en) Compound machine
JP6358316B2 (en) Compound machine
JP6004813B2 (en) Control method of printing apparatus, continuous sheet and printing apparatus
JP6256499B2 (en) Inkjet recording apparatus and inkjet recording method
JP5900465B2 (en) Inkjet recording apparatus and inkjet recording method
JP2001270177A (en) Serial printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151221

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20160405

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160418

R150 Certificate of patent or registration of utility model

Ref document number: 5929178

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150