JP2009155013A - Recording device and control method of recording device - Google Patents

Recording device and control method of recording device Download PDF

Info

Publication number
JP2009155013A
JP2009155013A JP2007333495A JP2007333495A JP2009155013A JP 2009155013 A JP2009155013 A JP 2009155013A JP 2007333495 A JP2007333495 A JP 2007333495A JP 2007333495 A JP2007333495 A JP 2007333495A JP 2009155013 A JP2009155013 A JP 2009155013A
Authority
JP
Japan
Prior art keywords
recording
recording medium
carriage
detection sensor
output value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007333495A
Other languages
Japanese (ja)
Inventor
Toshiyuki Mitsuya
利幸 三津屋
Hiroyuki Masubuchi
浩幸 増渕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2007333495A priority Critical patent/JP2009155013A/en
Publication of JP2009155013A publication Critical patent/JP2009155013A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve throughput by shortening time required to start to record on a recording medium. <P>SOLUTION: In a dot impact printer 10 having a paper insertion detection sensor 29 arranged at an upstream side of a carriage 19 on a transport route H and a paper width detection sensor 31 arranged for the carriage 19, the paper width detection sensor 31 is arranged at a position shifted from a recording head 11 in a carriage 19. The dot impact printer 10 sets a threshold value based on an output value of the paper insertion detection sensor 29 and detects a side end of the recording medium K by comparing the threshold value and the output value of the paper width detection sensor 31. On starting to record on the recording medium K, the carriage 19 is moved from a home position to another end and, after detecting the side end of the recording medium K during the movement, an image is recorded during the movement based on the detected side end. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、記録媒体に画像を記録する記録装置、及び、この記録装置を制御するための制御方法に関する。   The present invention relates to a recording apparatus that records an image on a recording medium, and a control method for controlling the recording apparatus.

従来、紙などの記録媒体に画像を記録する記録装置において、記録媒体の幅方向に走査されるキャリッジに紙幅センサを設け、記録ヘッドにより記録媒体に画像を記録する前に、記録媒体の幅を検出することのみを目的とした予備検出動作を行うものが知られている(例えば、特許文献1参照)。この予備検出動作では、キャリッジが記録媒体の幅方向に走査され、走査範囲全体の走査が終了した後で、走査中の紙幅センサの出力値に基づいて記録媒体の有無を判定するための閾値が設定され、この閾値を基準として記録媒体の側端が検出される。
特開平7−179248号公報
2. Description of the Related Art Conventionally, in a recording apparatus that records an image on a recording medium such as paper, a paper width sensor is provided in a carriage that is scanned in the width direction of the recording medium, and before the image is recorded on the recording medium by the recording head, the width of the recording medium is reduced. A device that performs a preliminary detection operation only for the purpose of detection is known (see, for example, Patent Document 1). In this preliminary detection operation, after the carriage is scanned in the width direction of the recording medium and scanning of the entire scanning range is completed, a threshold for determining the presence or absence of the recording medium is determined based on the output value of the paper width sensor being scanned. The side edge of the recording medium is detected based on this threshold value.
Japanese Unexamined Patent Publication No. 7-179248

しかしながら、上記従来の記録装置においては、記録媒体に画像を記録する前に予備検出動作を行う必要があるため、記録を開始するまでに時間がかかるという問題があった。
本発明は、上述した事情に鑑みてなされたものであり、記録媒体への記録を開始するまでに要する時間を短縮して、スループットの向上を図ることが可能な記録装置を提供することを目的とする。
However, the conventional recording apparatus has a problem in that it takes time to start recording because it is necessary to perform a preliminary detection operation before recording an image on a recording medium.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to provide a recording apparatus capable of reducing the time required to start recording on a recording medium and improving throughput. And

上記目的を達成するために、本発明は、搬送経路上で記録媒体を搬送する搬送部と、前記記録媒体の幅方向に往復走査されるキャリッジと、このキャリッジに設けられ、前記記録媒体に画像を記録する記録部を備えた記録ヘッドと、を備え、前記キャリッジを走査させながら前記記録部により前記記録媒体に画像を記録する記録装置において、前記搬送経路上において前記キャリッジよりも上流側に設けられ、前記記録媒体の有無に応じた出力値を出力する媒体検出センサと、前記キャリッジに設けられ、前記記録媒体の有無に応じた出力値を出力する幅検出センサと、前記媒体検出センサの出力値に基づいて、前記記録媒体の有無を判定するための閾値を設定する閾値設定手段と、前記閾値設定手段により設定された閾値と前記幅検出センサの出力値とを比較することで前記記録媒体の側端を検出する側端検出手段と、を備え、前記キャリッジの走査範囲の一端に、前記キャリッジが前記記録媒体への記録開始前に位置する基準位置が設定され、前記キャリッジにおいて前記幅検出センサは、前記記録ヘッドの記録部よりも、前記基準位置から離れる側にずれた位置に設けられ、前記記録媒体への記録を開始する際に、前記キャリッジを前記基準位置から他端へ向けて移動させ、この移動中に前記側端検出手段によって側端を検出した後に、検出した側端に基づいて、この移動中に前記記録部による記録を行うこと、を特徴とする記録装置を提供する。
この構成によれば、キャリッジよりも上流側に設けられた媒体検出センサの出力値に基づいて、キャリッジを記録媒体の端まで走査させることなく記録媒体の有無を判定するための閾値を設定することができる。そして、この閾値を用いて、基準位置から走査範囲の他端に向かうキャリッジの1回の走査において、記録媒体の側端を検出し、さらに、検出した側端に基づいて記録媒体への記録を開始できる。このため、記録媒体の側端を検出することのみを目的としたキャリッジの走査を省略し、最初にキャリッジを走査させるときに記録を開始できるので、記録開始までに要する時間を短縮して、スループットの向上を図ることができる。
In order to achieve the above object, the present invention provides a transport unit that transports a recording medium on a transport path, a carriage that is reciprocally scanned in the width direction of the recording medium, and an image provided on the recording medium. A recording head having a recording unit for recording the image, and a recording apparatus that records an image on the recording medium by the recording unit while scanning the carriage, and is provided on the upstream side of the carriage on the conveyance path. A medium detection sensor that outputs an output value according to the presence or absence of the recording medium, a width detection sensor that is provided in the carriage and outputs an output value according to the presence or absence of the recording medium, and an output of the medium detection sensor A threshold value setting means for setting a threshold value for determining the presence or absence of the recording medium based on the value; the threshold value set by the threshold value setting means; and the width detection sensor. A side edge detecting means for detecting a side edge of the recording medium by comparing the output value of the recording medium, and the carriage is positioned at one end of a scanning range of the carriage before the recording on the recording medium is started. A reference position is set, and the width detection sensor in the carriage is provided at a position shifted from the recording portion of the recording head to a side away from the reference position, and when recording on the recording medium is started, After the carriage is moved from the reference position toward the other end and the side end is detected by the side end detection means during the movement, recording by the recording unit is performed during the movement based on the detected side end. To provide a recording apparatus.
According to this configuration, based on the output value of the medium detection sensor provided on the upstream side of the carriage, the threshold value for determining the presence or absence of the recording medium is set without scanning the carriage to the end of the recording medium. Can do. Then, using this threshold value, the side edge of the recording medium is detected in one scanning of the carriage from the reference position toward the other end of the scanning range, and recording on the recording medium is performed based on the detected side edge. You can start. For this reason, scanning of the carriage for the purpose of detecting only the side edge of the recording medium can be omitted, and recording can be started when the carriage is first scanned, so that the time required to start recording can be shortened and throughput can be reduced. Can be improved.

また、上記発明の記録装置において、前記媒体検出センサ及び前記幅検出センサが、前記搬送経路に向けて光を照射するとともに、その反射光を検出し、検出した反射光の光量に応じた出力値を出力する反射型光センサにより構成されてもよい。
この構成によれば、媒体検出センサ及び幅検出センサを共に反射型光センサによって構成することにより、同一の記録媒体に対する媒体検出センサの出力値と幅検出センサの出力値とが非常に近い値となり、これらセンサの出力値を略同一とみなすことができる。従って、媒体検出センサの出力値に基づいて、幅検出センサによる検出に適した閾値を設定できるので、幅検出センサによって、高い精度で記録媒体の側端を検出できる。
In the recording apparatus according to the invention, the medium detection sensor and the width detection sensor irradiate light toward the conveyance path, detect the reflected light, and output values corresponding to the detected reflected light amount. May be constituted by a reflection type optical sensor that outputs.
According to this configuration, since both the medium detection sensor and the width detection sensor are configured by the reflection type optical sensor, the output value of the medium detection sensor and the output value of the width detection sensor for the same recording medium are very close to each other. The output values of these sensors can be regarded as substantially the same. Accordingly, since a threshold suitable for detection by the width detection sensor can be set based on the output value of the medium detection sensor, the side edge of the recording medium can be detected with high accuracy by the width detection sensor.

また、上記発明の記録装置において、前記閾値設定手段は、前記幅検出センサが前記記録媒体が存在しないときに出力した出力値と、前記媒体検出センサが前記記録媒体が存在するときに出力した出力値とに基づいて前記閾値を設定するようにしてもよい。
この構成によれば、記録媒体が存在しないときの媒体幅検出センサの出力値と幅検出センサの出力値とによって閾値を設定することができるため、キャリッジを走査させることなく、速やかに適切な閾値を設定することができる。
In the recording apparatus according to the invention, the threshold value setting means outputs an output value output when the width detection sensor does not exist in the recording medium and an output value output when the medium detection sensor exists in the recording medium. The threshold value may be set based on the value.
According to this configuration, the threshold value can be set based on the output value of the medium width detection sensor and the output value of the width detection sensor when there is no recording medium, so that an appropriate threshold value can be quickly obtained without scanning the carriage. Can be set.

また、上記発明の記録装置において、前記閾値設定手段は、前記媒体検出センサが、前記記録媒体が存在しないときに出力した出力値と、前記記録媒体が存在するときに出力した出力値とに基づいて前記閾値を設定するようにしてもよい。
この構成によれば、媒体検出センサの出力値によって閾値を設定することができるため、幅検出センサの出力値を用いることなく、キャリッジを走査させずに、速やかに適切な閾値を設定することができる。
In the recording apparatus of the above invention, the threshold setting means is based on an output value output by the medium detection sensor when the recording medium does not exist and an output value output when the recording medium exists. The threshold may be set.
According to this configuration, since the threshold value can be set according to the output value of the medium detection sensor, an appropriate threshold value can be quickly set without using the output value of the width detection sensor and without scanning the carriage. it can.

また、上記発明の記録装置において、前記記録部と前記幅検出センサとの間の間隔が、前記記録媒体において前記記録部が画像を記録する範囲の端と前記記録媒体の側端との間隔よりも、広く確保されているようにしてもよい。
この構成によれば、幅検出センサによって基準位置から離れた側の記録媒体の側端を検出した時点では、記録部が、記録媒体において画像を記録する範囲内に存在している。このため、基準位置から離れた側の記録媒体の側端を検出してから、余裕をもって、記録部による画像の記録を終了することができる。これにより、1回の走査をしている間に記録媒体の側端の検出と画像の記録との両方を確実に行うことができ、例えば、画像がはみ出してしまうといった事態を確実に防止できる。
Further, in the recording apparatus of the above invention, the interval between the recording unit and the width detection sensor is based on an interval between an end of a range where the recording unit records an image on the recording medium and a side end of the recording medium. However, it may be secured widely.
According to this configuration, when the side edge of the recording medium on the side away from the reference position is detected by the width detection sensor, the recording unit exists within a range where an image is recorded on the recording medium. For this reason, after detecting the side edge of the recording medium on the side away from the reference position, the image recording by the recording unit can be completed with a margin. Thus, both the detection of the side edge of the recording medium and the recording of the image can be reliably performed during one scanning, and for example, a situation where the image protrudes can be reliably prevented.

また、上記目的を達成するために、本発明は、搬送経路上で記録媒体を搬送する搬送部と、前記記録媒体の幅方向に往復走査されるキャリッジと、このキャリッジに設けられ、前記記録媒体に画像を記録する記録部を備えた記録ヘッドと、前記搬送経路上において前記キャリッジよりも上流側に設けられ、前記記録媒体の有無に応じた出力値を出力する媒体検出センサと、前記キャリッジに設けられ、前記記録媒体の有無に応じた出力値を出力する幅検出センサと、を備え、前記キャリッジにおいて前記幅検出センサが前記記録ヘッドの記録部よりも前記基準位置から離れる側にずれた位置に設けられている記録装置を制御して、前記キャリッジの走査範囲の一端に、前記キャリッジが前記記録媒体への記録開始前に位置する基準位置を設定し、前記キャリッジを前記基準位置から他端へ向けて移動させ、この移動中に前記媒体検出センサの出力値に基づいて、前記記録媒体の有無を判定するための閾値を設定し、前記閾値と前記幅検出センサの出力値とを比較することで前記記録媒体の側端を検出し、検出した側端に基づいて、この移動中に前記記録部による記録を行うこと、を特徴とする記録装置の制御方法を提供する。
この方法によれば、記録装置においてキャリッジよりも上流側に設けられた媒体検出センサの出力値に基づいて、キャリッジを記録媒体の端まで走査させることなく、記録媒体の有無を判定するための閾値を設定することができる。そして、この閾値を用いて、基準位置から走査範囲の他端に向かうキャリッジの1回の走査において、記録媒体の側端を検出し、さらに、検出した側端に基づいて記録媒体への記録を開始できる。このため、記録媒体の側端を検出することのみを目的としたキャリッジの走査を省略し、最初にキャリッジを走査させるときに記録を開始できるので、記録開始までに要する時間を短縮して、スループットの向上を図ることができる。
In order to achieve the above object, the present invention provides a transport unit that transports a recording medium on a transport path, a carriage that is reciprocally scanned in the width direction of the recording medium, and the recording medium provided in the carriage. A recording head provided with a recording unit for recording an image on the recording medium, a medium detection sensor provided on the upstream side of the carriage on the conveyance path and outputting an output value according to the presence or absence of the recording medium, and the carriage A width detection sensor that outputs an output value corresponding to the presence or absence of the recording medium, and the position of the width detection sensor in the carriage shifted from the recording position of the recording head to the side away from the reference position. Is set to a reference position at which the carriage is positioned before recording on the recording medium at one end of the scanning range of the carriage. , Moving the carriage from the reference position toward the other end, setting a threshold for determining the presence or absence of the recording medium based on the output value of the medium detection sensor during the movement, and A recording apparatus characterized in that a side edge of the recording medium is detected by comparing with an output value of a width detection sensor, and recording is performed by the recording unit during the movement based on the detected side edge. Provide a control method.
According to this method, on the basis of the output value of the medium detection sensor provided on the upstream side of the carriage in the recording apparatus, the threshold for determining the presence or absence of the recording medium without scanning the carriage to the end of the recording medium. Can be set. Then, using this threshold value, the side edge of the recording medium is detected in one scanning of the carriage from the reference position toward the other end of the scanning range, and recording on the recording medium is performed based on the detected side edge. You can start. For this reason, scanning of the carriage for the purpose of detecting only the side edge of the recording medium can be omitted, and recording can be started when the carriage is first scanned, so that the time required to start recording can be shortened and throughput can be reduced. Can be improved.

本発明によれば、記録媒体の側端を検出することのみを目的としたキャリッジの走査を省略し、記録開始までに要する時間を短縮して、スループットの向上を図ることができる。   According to the present invention, it is possible to omit the scanning of the carriage only for detecting the side edge of the recording medium, shorten the time required to start recording, and improve the throughput.

以下、図面を参照して本発明の実施の形態について説明する。
図1は、本実施形態のドットインパクトプリンタのプリンタ本体13を示す斜視図である。図2は、図1のプリンタ本体13の側断面図である。図3は、図1のプリンタ本体13の要部平面図である。
本発明の記録装置であるドットインパクトプリンタ10は、記録ヘッド11の記録ワイヤ突出部11a(記録部)の多数の記録ワイヤ11bを、インクリボンカセット12内のインクリボンを介して記録媒体Kに打ち付けてドットを記録することにより、文字を含む画像を記録する。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a perspective view showing a printer main body 13 of the dot impact printer of this embodiment. FIG. 2 is a side sectional view of the printer main body 13 of FIG. FIG. 3 is a plan view of the main part of the printer main body 13 of FIG.
A dot impact printer 10 as a recording apparatus of the present invention strikes a large number of recording wires 11b of a recording wire protruding portion 11a (recording portion) of a recording head 11 against a recording medium K via an ink ribbon in an ink ribbon cassette 12. By recording dots, an image including characters is recorded.

ドットインパクトプリンタ10は、記録装置本体としてのプリンタ本体13と、プリンタ本体13の上部を覆う図示しない上部ケース14(図2参照)と、プリンタ本体13の下部を覆う下部ケース15(図2参照)と、プリンタ本体13の前方側に設置されて記録媒体Kを案内するシート搬送ユニット16と、を備えている。
ここで、記録媒体Kには、所定長さに切断されたカットシートと、複数枚が連接された連続シートとがある。カットシートとしては、例えば単票紙、複写紙又はカットフィルム等があり、連続シートとしては連続紙、連続複写紙等がある。また、記録媒体Kは、通帳などの冊子等であってもよい。
キャリッジ19には、記録媒体Kの記録面上を転動しつつ、シートあるいは冊子の厚さに応じて記録ヘッド11(あるいは後述の平プラテン20)を上下動させるための転動ローラ30、及び、紙幅検出センサ31(幅検出センサ)が設けられている。
The dot impact printer 10 includes a printer main body 13 as a recording apparatus main body, an upper case 14 (not shown) that covers the upper portion of the printer main body 13, and a lower case 15 (see FIG. 2) that covers the lower portion of the printer main body 13. And a sheet conveying unit 16 installed on the front side of the printer main body 13 for guiding the recording medium K.
Here, the recording medium K includes a cut sheet cut to a predetermined length and a continuous sheet in which a plurality of sheets are connected. Examples of the cut sheet include cut sheet paper, copy paper, and cut film. Examples of the continuous sheet include continuous paper and continuous copy paper. The recording medium K may be a booklet such as a passbook.
A rolling roller 30 for moving the recording head 11 (or a flat platen 20 described later) up and down according to the thickness of the sheet or booklet while rolling on the recording surface of the recording medium K, A paper width detection sensor 31 (width detection sensor) is provided.

プリンタ本体13は、本体フレームを構成する左右一対のサイドフレーム17、18を備える。
左サイドフレーム17と右サイドフレーム18との間には、下キャリッジガイド軸26aと上キャリッジガイド軸27が上下方向に所定距離離れて平行に架け渡される。下キャリッジガイド軸26aは、左サイドフレーム17及び右サイドフレーム18に回動自在に枢支される。また、左サイドフレーム17と右サイドフレーム18との間には、平プラテン20が架け渡されて配設されると共に、シート案内25が固定して配設される。
The printer main body 13 includes a pair of left and right side frames 17 and 18 constituting a main body frame.
Between the left side frame 17 and the right side frame 18, a lower carriage guide shaft 26a and an upper carriage guide shaft 27 are spanned in parallel in a vertical direction at a predetermined distance. The lower carriage guide shaft 26 a is pivotally supported by the left side frame 17 and the right side frame 18. Further, a flat platen 20 is disposed between the left side frame 17 and the right side frame 18 and a seat guide 25 is fixedly disposed.

また、プリンタ本体13は、記録ヘッド11を搭載したキャリッジ19、第1搬送ローラ21、第2搬送ローラ22、第3搬送ローラ23及び第4搬送ローラ24の各ローラ、シート案内25、整列用シャッタ26、整列センサ28、紙幅検出センサ31等を備えている。
シート搬送ユニット16は、第1搬送ローラ21と協働する第2搬送ローラ22、紙挿入検出センサ29(媒体検出センサ)を備えている。この場合において、第2搬送ローラ22及び紙挿入検出センサ29は、記録媒体Kの厚さに応じて上下動するように構成されている。
また、平プラテン20に対し、第1搬送ローラ21及び第2搬送ローラ22がプリンタ本体13の前方側に配置されている。第1搬送ローラ21は、平プラテン20と共に搬送経路H(図2)の下に位置し、第2搬送ローラ22は搬送経路Hの上に位置しており、これら第1搬送ローラ21及び第2搬送ローラ22によって、記録媒体Kは上下から挟まれて搬送される。
また、第3搬送ローラ23及び第4搬送ローラ24がプリンタ本体13の後方側に配置されている。第3搬送ローラ23は搬送経路Hの下に位置し、第4搬送ローラ24は搬送経路Hの上に位置しており、これら第3搬送ローラ23及び第4搬送ローラ24によって、記録媒体Kは、上下から挟まれて搬送される。
Further, the printer main body 13 includes a carriage 19 on which the recording head 11 is mounted, a first conveyance roller 21, a second conveyance roller 22, a third conveyance roller 23, a fourth conveyance roller 24, a sheet guide 25, and an alignment shutter. 26, an alignment sensor 28, a paper width detection sensor 31, and the like.
The sheet conveyance unit 16 includes a second conveyance roller 22 that cooperates with the first conveyance roller 21 and a paper insertion detection sensor 29 (medium detection sensor). In this case, the second conveyance roller 22 and the paper insertion detection sensor 29 are configured to move up and down according to the thickness of the recording medium K.
Further, a first transport roller 21 and a second transport roller 22 are arranged on the front side of the printer main body 13 with respect to the flat platen 20. The first transport roller 21 is positioned below the transport path H (FIG. 2) together with the flat platen 20, and the second transport roller 22 is positioned above the transport path H. The recording medium K is sandwiched from above and below by the transport roller 22 and transported.
Further, the third conveyance roller 23 and the fourth conveyance roller 24 are arranged on the rear side of the printer main body 13. The third transport roller 23 is positioned below the transport path H, and the fourth transport roller 24 is positioned above the transport path H. With these third transport roller 23 and fourth transport roller 24, the recording medium K is , Transported sandwiched from above and below.

第1搬送ローラ21及び第2搬送ローラ22の一方は、駆動ローラとして、図示しない駆動輪列部により、図2の時計方向(CW)又は反時計方向(CCW)に回転駆動され、他方は従動ローラとして駆動ローラに合わせて回転する。同様に、第3搬送ローラ23及び第4搬送ローラ24の一方は、駆動ローラとして、図示しない駆動輪列部により、図2の時計方向(CW)又は反時計方向(CCW)に回転駆動され、他方は従動ローラとして駆動ローラに合わせて回転する。これら第1搬送ローラ21、第2搬送ローラ22、第3搬送ローラ23、及び第4搬送ローラ24により、記録媒体Kは、図2に示すようにプリンタ本体13の前方側から手動供給された後、プリンタ本体13の後方へ向かって矢印A方向に搬送され、画像の記録が行われた後、プリンタ本体の後方から前方へ向かって矢印B方向に搬送される。   One of the first conveying roller 21 and the second conveying roller 22 is driven to rotate in the clockwise direction (CW) or counterclockwise direction (CCW) in FIG. 2 by a driving wheel train (not shown) as a driving roller, and the other is driven. As a roller, it rotates according to the driving roller. Similarly, one of the third conveyance roller 23 and the fourth conveyance roller 24 is rotationally driven in the clockwise direction (CW) or counterclockwise direction (CCW) in FIG. 2 by a driving wheel train (not shown) as a driving roller. The other rotates as a driven roller according to the driving roller. The recording medium K is manually supplied from the front side of the printer main body 13 as shown in FIG. 2 by the first transport roller 21, the second transport roller 22, the third transport roller 23, and the fourth transport roller 24. Then, the image is recorded in the direction of arrow A toward the rear of the printer main body 13, and after the image is recorded, it is conveyed in the direction of arrow B from the rear to the front of the printer main body.

キャリッジ19は、図2に示すように、下キャリッジガイド軸26a及び上キャリッジガイド軸27に摺動自在に挿通される。下キャリッジガイド軸26a及び上キャリッジガイド軸27が平プラテン20と平行に配置されることから、キャリッジ19は、これら平プラテン20、下キャリッジガイド軸26a及び上キャリッジガイド軸27の軸方向と一致する主走査方向に往復走行(走査)可能に設けられる。
キャリッジ19は、キャリッジ駆動モータ38(図5)の正転又は逆転により往復移動される図示しないタイミングベルトに結合される。キャリッジ19は、キャリッジ駆動モータ38の正転又は逆転動作によって駆動され、下キャリッジガイド軸26a及び上キャリッジガイド軸27に案内されて、主走査方向における図1の左向き又は右向きに走査される。
キャリッジ駆動モータ38は、第1搬送ローラ21、第2搬送ローラ22、第3搬送ローラ23及び第4搬送ローラ24を駆動する図示しない搬送モータと共に、例えばステッピングモータによって構成される。
As shown in FIG. 2, the carriage 19 is slidably inserted through the lower carriage guide shaft 26 a and the upper carriage guide shaft 27. Since the lower carriage guide shaft 26 a and the upper carriage guide shaft 27 are arranged in parallel with the flat platen 20, the carriage 19 coincides with the axial directions of the flat platen 20, the lower carriage guide shaft 26 a and the upper carriage guide shaft 27. It is provided so as to be able to reciprocate (scan) in the main scanning direction.
The carriage 19 is coupled to a timing belt (not shown) that is reciprocated by forward rotation or reverse rotation of a carriage drive motor 38 (FIG. 5). The carriage 19 is driven by the forward or reverse operation of the carriage drive motor 38, guided by the lower carriage guide shaft 26a and the upper carriage guide shaft 27, and scanned leftward or rightward in FIG. 1 in the main scanning direction.
The carriage drive motor 38 is configured by, for example, a stepping motor together with a transport motor (not shown) that drives the first transport roller 21, the second transport roller 22, the third transport roller 23, and the fourth transport roller 24.

記録ヘッド11と記録媒体Kとの間にはインクリボンが配置され、記録ヘッド11は、キャリッジ19と共に主走査方向に走査される間に、記録ワイヤを突出させてインクリボンに打ち当て、このインクリボンのインクを、平プラテン20と記録ヘッド11の間に搬送される記録媒体Kに付着させて、文字を含む画像を記録する。   An ink ribbon is disposed between the recording head 11 and the recording medium K, and the recording head 11 projects a recording wire and strikes the ink ribbon while scanning with the carriage 19 in the main scanning direction. The ink on the ribbon is attached to the recording medium K conveyed between the flat platen 20 and the recording head 11 to record an image including characters.

記録媒体Kへの画像の記録を開始する前、キャリッジ19は、キャリッジ19の走査範囲の一端に設定された基準位置としてのホームポジションHP(図3)において待機する。そして、記録媒体Kの先端がプラテン20上に搬送されると、キャリッジ19が上記走査範囲の他端へ向かって(図3の矢印Y1方向)記録媒体Kの幅方向を走査し、この走査の間に記録ヘッド11の記録ワイヤ突出部11a(記録部)により一行分の記録がなされる。そして、一行分の記録がなされる度に、シート搬送機構部(プラテン20、第1搬送ローラ21、第2搬送ローラ22、第3搬送ローラ23及び第4搬送ローラ24)が記録媒体Kを所定長(通常行間分)搬送方向へ搬送し、これらの動作が繰り返されることにより画像の記録が行われる。なお、図3中にY1で示す方向は図1中の右向きに対応し、Y2で示す方向は図1中の左向きに対応する。   Before starting image recording on the recording medium K, the carriage 19 stands by at a home position HP (FIG. 3) as a reference position set at one end of the scanning range of the carriage 19. When the leading edge of the recording medium K is conveyed onto the platen 20, the carriage 19 scans the width direction of the recording medium K toward the other end of the scanning range (in the direction of arrow Y1 in FIG. 3). In the meantime, one line of recording is performed by the recording wire protrusion 11a (recording section) of the recording head 11. Each time one line of recording is performed, the sheet conveying mechanism (the platen 20, the first conveying roller 21, the second conveying roller 22, the third conveying roller 23, and the fourth conveying roller 24) sets the recording medium K to a predetermined value. The image is recorded by conveying in the long (ordinary line) conveyance direction and repeating these operations. The direction indicated by Y1 in FIG. 3 corresponds to the right direction in FIG. 1, and the direction indicated by Y2 corresponds to the left direction in FIG.

紙挿入検出センサ29及び紙幅検出センサ31は、搬送経路Hの上方に配設され、搬送経路Hに向けて検出光を照射し、その反射光を受光して、受光した反射光量に対応する出力値を出力する反射型光センサである。これら紙挿入検出センサ29及び紙幅検出センサ31により、その下方における記録媒体Kの有無を判別することが可能になるため、これらを利用して記録媒体Kの情報を取得することが可能となる。すなわち、キャリッジ19を走査させる間の紙幅検出センサ31の出力値と、キャリッジ19の位置とに基づいて、記録媒体Kの側端位置を検出することができ、左右両方の側端位置から記録媒体Kの幅を求めることができる。また、紙挿入検出センサ29又は紙幅検出センサ31の出力値から、記録媒体Kの表面(記録面)における光の反射率を求めることもできる。   The paper insertion detection sensor 29 and the paper width detection sensor 31 are disposed above the transport path H, emit detection light toward the transport path H, receive the reflected light, and output corresponding to the received reflected light amount. It is a reflective optical sensor that outputs a value. Since the paper insertion detection sensor 29 and the paper width detection sensor 31 can determine the presence or absence of the recording medium K below the information, the information on the recording medium K can be acquired using these. That is, the side edge position of the recording medium K can be detected based on the output value of the paper width detection sensor 31 during the scanning of the carriage 19 and the position of the carriage 19, and the recording medium can be detected from both the left and right side edge positions. The width of K can be obtained. Further, the reflectance of light on the surface (recording surface) of the recording medium K can also be obtained from the output value of the paper insertion detection sensor 29 or the paper width detection sensor 31.

紙挿入検出センサ29及び紙幅検出センサ31は同一仕様の反射型光センサが用いられている。さらに、紙挿入検出センサ29及び紙幅検出センサ31は、記録媒体Kとの相対位置がほぼ同一となるよう配設されている。すなわち、図2に示すように、搬送経路Hを搬送されてきた記録媒体Kと紙挿入検出センサ29との上下方向における間隔と、記録媒体Kと紙幅検出センサ31との上下方向における間隔とは略同一になっている。また、上述したように、紙挿入検出センサ29は記録媒体Kの厚さに応じて上下動し、記録媒体Kと紙挿入検出センサ29との間隔は記録媒体Kの厚みに関わらず一定に保たれる。同様に、紙幅検出センサ31は記録媒体Kの厚さに応じて上下動するため、記録媒体Kと紙幅検出センサ31との間隔は記録媒体Kの厚みに関わらず一定である。これらの構成により、同一の記録媒体に対する紙挿入検出センサ29の出力値及び紙幅検出センサ31の出力値は、略同一となる。特に、本実施形態では、紙挿入検出センサ29及び紙幅検出センサ31が同一仕様の反射型光センサで構成されているため、これらのセンサは、同一の記録媒体Kに対して略同一の出力値を出力するものとみなすことができる。   The paper insertion detection sensor 29 and the paper width detection sensor 31 are reflective optical sensors having the same specifications. Further, the paper insertion detection sensor 29 and the paper width detection sensor 31 are arranged so that their relative positions to the recording medium K are substantially the same. That is, as shown in FIG. 2, the vertical distance between the recording medium K transported along the transport path H and the paper insertion detection sensor 29 and the vertical distance between the recording medium K and the paper width detection sensor 31 are as follows. It is almost the same. Further, as described above, the paper insertion detection sensor 29 moves up and down in accordance with the thickness of the recording medium K, and the interval between the recording medium K and the paper insertion detection sensor 29 is kept constant regardless of the thickness of the recording medium K. Be drunk. Similarly, since the paper width detection sensor 31 moves up and down according to the thickness of the recording medium K, the interval between the recording medium K and the paper width detection sensor 31 is constant regardless of the thickness of the recording medium K. With these configurations, the output value of the paper insertion detection sensor 29 and the output value of the paper width detection sensor 31 for the same recording medium are substantially the same. In particular, in the present embodiment, since the paper insertion detection sensor 29 and the paper width detection sensor 31 are configured by reflection type optical sensors having the same specifications, these sensors have substantially the same output value for the same recording medium K. Can be regarded as output.

さらに、図2に示すように、紙挿入検出センサ29と、その直下に位置するシート案内25aとの間隔R1は、キャリッジ19がホームポジションHPに位置する場合における紙幅検出センサ31と、その直下に位置するシート案内25bとの間隔R2と、ほぼ同一となっている。また、シート案内25a及びシート案内25bの表面は、同一の反射率を有する材料又は仕様となっている。これにより、記録媒体Kが存在しない場合における紙挿入検出センサ29の出力値と、キャリッジ19がホームポジションHPに位置する場合における紙幅検出センサ31の出力値とは、略同一となるよう構成されている。   Further, as shown in FIG. 2, the interval R1 between the paper insertion detection sensor 29 and the sheet guide 25a positioned immediately below is equal to the paper width detection sensor 31 when the carriage 19 is positioned at the home position HP. The distance R2 from the positioned sheet guide 25b is substantially the same. The surfaces of the sheet guide 25a and the sheet guide 25b are made of materials or specifications having the same reflectance. Accordingly, the output value of the paper insertion detection sensor 29 when the recording medium K is not present and the output value of the paper width detection sensor 31 when the carriage 19 is located at the home position HP are configured to be substantially the same. Yes.

図4は、記録ヘッド11の構成を示す平面図である。この図4には、キャリッジ19、記録ヘッド11とともに、キャリッジ19に設けられた紙幅検出センサ31を合わせて図示する。
図4に示すように、記録ヘッド11の下面の略中央には、記録ワイヤ突出部11aが設けられている。記録ワイヤ突出部11aは、記録媒体Kに画像を記録する記録部として機能するものであり、その中央には、プリンタ本体13の前後方向に一列に並ぶ9本の記録ワイヤ11bが露出している。記録動作実行時には、記録ワイヤ11bが記録ワイヤ突出部11aからインクリボンへ突出する。
また、図4に示すように、紙幅検出センサ31は、記録ワイヤ突出部11aに並ぶようにキャリッジ19の下面に配設されている。紙幅検出センサ31は、LED等からなる発光部と、フォトトランジスタ等からなる受光部とを有する光センサ部31aを備えている。光センサ部31aは、記録ワイヤ突出部11aよりも、キャリッジ19の主走査方向(図中Y1側)にずれた位置に設けられている。
FIG. 4 is a plan view showing the configuration of the recording head 11. In FIG. 4, the paper width detection sensor 31 provided on the carriage 19 is shown together with the carriage 19 and the recording head 11.
As shown in FIG. 4, a recording wire protrusion 11 a is provided at the approximate center of the lower surface of the recording head 11. The recording wire protruding portion 11a functions as a recording portion for recording an image on the recording medium K, and nine recording wires 11b arranged in a line in the front-rear direction of the printer main body 13 are exposed at the center thereof. . When the recording operation is executed, the recording wire 11b protrudes from the recording wire protruding portion 11a to the ink ribbon.
As shown in FIG. 4, the paper width detection sensor 31 is disposed on the lower surface of the carriage 19 so as to be aligned with the recording wire protruding portion 11a. The paper width detection sensor 31 includes an optical sensor unit 31a having a light emitting unit made of an LED or the like and a light receiving unit made of a phototransistor or the like. The optical sensor portion 31a is provided at a position shifted from the recording wire protruding portion 11a in the main scanning direction (Y1 side in the drawing) of the carriage 19.

図5は、ドットインパクトプリンタの制御系の概略構成を示すブロック図である。
ドットインパクトプリンタ10の制御系は、大別すると、紙挿入検出センサ29及び紙幅検出センサ31が接続され、紙幅検出センサ31の出力値及び紙挿入検出センサ29の出力値をコントローラ52に出力するセンサ回路51と、ドットインパクトプリンタ10全体を制御するコントローラ52と、コントローラ52の制御下でキャリッジ駆動モータ38を駆動するとともに、キャリッジ位置データCRPOSを出力するモータ駆動ドライバ53と、上述した各データ及び各種データを記憶するメモリ54と、を備えている。
FIG. 5 is a block diagram showing a schematic configuration of a control system of the dot impact printer.
The control system of the dot impact printer 10 is roughly divided into a paper insertion detection sensor 29 and a paper width detection sensor 31, and a sensor that outputs the output value of the paper width detection sensor 31 and the output value of the paper insertion detection sensor 29 to the controller 52. A circuit 51; a controller 52 that controls the entire dot impact printer 10; a motor drive driver 53 that drives the carriage drive motor 38 under the control of the controller 52 and outputs carriage position data CRPOS; And a memory 54 for storing data.

ここで、CRPOSとは、現在のキャリッジ19の位置を示すデータであり、ホームポジションHPから移動したパルス数として表される。このパルス数とは、キャリッジ19をホームポジションHPから矢印Y1方向へ移動させるためにモータ駆動ドライバ53からキャリッジ駆動モータ38に出力されたパルス数の累計のことである。例えば、キャリッジ19がホームポジションHPにいるときは、CRPOSの値は「0」となり、モータ駆動ドライバ53からキャリッジ駆動モータ38へ出力されたパルス数が50の場合は、CRPOSは「50」となる。
コントローラ52は、図示しないマイクロプロセッサ、制御プログラムを格納する制御用ROM、制御時の各種データを一時的に格納する制御用RAM等を備え、マイクロプロセッサにより制御プログラムを実行することで、ドットインパクトプリンタ10を制御する。
Here, CRPOS is data indicating the current position of the carriage 19 and is expressed as the number of pulses moved from the home position HP. The number of pulses is the total number of pulses output from the motor drive driver 53 to the carriage drive motor 38 in order to move the carriage 19 from the home position HP in the direction of the arrow Y1. For example, when the carriage 19 is at the home position HP, the value of CRPOS is “0”, and when the number of pulses output from the motor drive driver 53 to the carriage drive motor 38 is 50, CRPOS is “50”. .
The controller 52 includes a microprocessor (not shown), a control ROM for storing a control program, a control RAM for temporarily storing various data at the time of control, and the dot impact printer by executing the control program by the microprocessor. 10 is controlled.

従来のドットインパクトプリンタの中には、記録媒体Kに画像を記録する前に、記録媒体Kの側端を検出することを目的として、キャリッジ19をホームポジションHPから他端まで走査させていた。本実施形態に係るドットインパクトプリンタ10は、記録媒体Kへの画像の記録を開始する際に、記録媒体Kの側端を検出するためにキャリッジ19の走査を開始し、記録媒体Kの側端を検出した後は、その走査中に記録を開始する。以下、このドットインパクトプリンタ10の動作について詳述する。   Some conventional dot impact printers scan the carriage 19 from the home position HP to the other end for the purpose of detecting the side edge of the recording medium K before recording an image on the recording medium K. When the dot impact printer 10 according to the present embodiment starts recording an image on the recording medium K, the dot impact printer 10 starts scanning the carriage 19 to detect the side edge of the recording medium K. After detecting, recording starts during the scanning. Hereinafter, the operation of the dot impact printer 10 will be described in detail.

図6は、ドットインパクトプリンタ10の記録動作を示すフローチャートである。
図6に示す動作は、コントローラ52によって、上記制御用ROMに記憶された制御プログラムを読み出して実行することにより実現される。また、この図6の動作の実行時、コントローラ52は、閾値設定手段及び側端検出手段として機能する。
FIG. 6 is a flowchart showing the recording operation of the dot impact printer 10.
The operation shown in FIG. 6 is realized by the controller 52 reading and executing the control program stored in the control ROM. In addition, when the operation of FIG. 6 is executed, the controller 52 functions as a threshold setting unit and a side end detection unit.

この図6に示す動作に先立って、ドットインパクトプリンタ10の電源が投入され、ドットインパクトプリンタ10には、記録媒体Kに記録すべき画像のデータと、記録媒体Kのサイズ、余白サイズ及び余白位置、記録媒体Kにおいて画像の記録を開始する位置、画像の記録を終了する位置等が、図示しないホストコンピュータから入力される。
コントローラ52は、記録媒体Kが挿入されたことを紙挿入検出センサ29によって検出するまで待機する(ステップSA1)。
記録媒体Kが挿入されたことを検出すると(ステップSA1:YES)、コントローラ52は、センサ回路51を介して紙挿入検出センサ29の出力値EHを取得し、上記制御用RAMに記憶する。ここで記憶した出力値EHは、記録媒体Kの表面に対する検出動作に基づく出力値である。
Prior to the operation shown in FIG. 6, the dot impact printer 10 is turned on, and the dot impact printer 10 includes the image data to be recorded on the recording medium K, the size of the recording medium K, the margin size, and the margin position. A position at which image recording is started on the recording medium K, a position at which image recording is ended, and the like are input from a host computer not shown.
The controller 52 waits until the paper insertion detection sensor 29 detects that the recording medium K has been inserted (step SA1).
When it is detected that the recording medium K has been inserted (step SA1: YES), the controller 52 acquires the output value EH of the paper insertion detection sensor 29 via the sensor circuit 51 and stores it in the control RAM. The output value EH stored here is an output value based on the detection operation for the surface of the recording medium K.

さらに、コントローラ52は、ステップSA2において、紙幅検出センサ31の出力値ELを取得し、上記制御用RAMに記憶する。記録媒体Kが挿入された時点では、キャリッジ19に搭載された紙幅検出センサ31はホームポジションHPに位置しているため、ここで記憶された出力値ELは、記録媒体Kが存在しない状態における紙幅検出センサ31の出力値である。
出力値EH,ELを上記制御用RAMに記憶した後、コントローラ52は、閾値EAを設定するための処理である閾値設定処理を行う(ステップSA3)。ここで閾値設定処理の説明に先んじて、閾値EAについて説明すると、閾値EAとは、紙幅検出センサ31が記録媒体Kの側端を検出する際に、各センサの出力値と比較される閾値である。後述する動作において、コントローラ52は、紙幅検出センサ31の出力値が閾値EAより高い場合、紙幅検出センサ31の検出箇所に記録媒体Kが存在すると判定し、出力値が閾値EAより低い場合、検出箇所に記録媒体Kが存在しないと判定する。そして、コントローラ52は、キャリッジ19の走査に伴って紙幅を検出する際、出力値が閾値EAより低いレベルから高いレベルへ変化したとき、及び、出力値が閾値EAより高いレベルから低いレベルへ変化したときに記録媒体Kの側端を検出する。
Further, in step SA2, the controller 52 acquires the output value EL of the paper width detection sensor 31 and stores it in the control RAM. At the time when the recording medium K is inserted, the paper width detection sensor 31 mounted on the carriage 19 is positioned at the home position HP. Therefore, the output value EL stored here is the paper width in the state where the recording medium K does not exist. This is the output value of the detection sensor 31.
After storing the output values EH and EL in the control RAM, the controller 52 performs a threshold setting process which is a process for setting the threshold EA (step SA3). Here, the threshold value EA will be described prior to the description of the threshold setting process. The threshold value EA is a threshold value that is compared with the output value of each sensor when the paper width detection sensor 31 detects the side edge of the recording medium K. is there. In the operation described later, the controller 52 determines that the recording medium K is present at the detection position of the paper width detection sensor 31 when the output value of the paper width detection sensor 31 is higher than the threshold value EA, and detects when the output value is lower than the threshold value EA. It is determined that the recording medium K does not exist at the location. When the controller 52 detects the paper width as the carriage 19 scans, the controller 52 changes the output value from a level lower than the threshold EA to a higher level, and the output value changes from a level higher than the threshold EA to a lower level. The side edge of the recording medium K is detected.

ステップSA3の閾値設定処理において、コントローラ52は、ステップSA2で求めた出力値EH及び出力値ELの平均値を閾値EAとして設定する。上述したように、従来は閾値EAを設定する際、キャリッジ19を幅方向に走査し、この走査に伴う紙幅検出センサ31の出力値に基づいて設定していたが、本実施形態では、紙挿入検出センサ29の出力値を利用することで、キャリッジ19を幅方向へ走査させることなく、適切な閾値EAを設定できる。特に、本実施形態では、上述したように、同一の記録媒体Kに対する紙挿入検出センサ29及び紙幅検出センサ31のそれぞれの出力値が略同一となる構成となっているため、キャリッジ19を走査させることなく閾値EAを設定することができ、この閾値EAは、キャリッジ19の走査による紙幅検出センサ31の出力値に基づいて閾値EAを設定した場合と同様に、紙幅検出センサ31に好適な閾値である。
閾値EAを設定した後、コントローラ52は、第1搬送ローラ21及び第2搬送ローラ22によって記録媒体Kを搬送し、整列用シャッタ26によって記録媒体Kの整列を行った後(ステップSA4)、さらに、記録媒体Kをプラテン20上の所定位置まで搬送する(ステップSA5)。
In the threshold value setting process in step SA3, the controller 52 sets the average value of the output value EH and the output value EL obtained in step SA2 as the threshold value EA. As described above, conventionally, when the threshold value EA is set, the carriage 19 is scanned in the width direction, and is set based on the output value of the paper width detection sensor 31 accompanying this scanning. By using the output value of the detection sensor 29, an appropriate threshold EA can be set without causing the carriage 19 to scan in the width direction. In particular, in this embodiment, as described above, the output values of the paper insertion detection sensor 29 and the paper width detection sensor 31 for the same recording medium K are substantially the same, so the carriage 19 is scanned. The threshold value EA can be set without any change, and this threshold value EA is a threshold value suitable for the paper width detection sensor 31 as in the case where the threshold value EA is set based on the output value of the paper width detection sensor 31 by scanning of the carriage 19. is there.
After setting the threshold value EA, the controller 52 transports the recording medium K by the first transport roller 21 and the second transport roller 22, aligns the recording medium K by the alignment shutter 26 (step SA4), and further Then, the recording medium K is conveyed to a predetermined position on the platen 20 (step SA5).

そして、コントローラ52は、紙幅検出センサ31の出力値と閾値EAとを比較し、出力値が閾値EAより高いか否かを監視しながら(ステップSA7)、キャリッジ19をホームポジションHPから矢印Y1(図3)方向へ走査させる。キャリッジ19の走査中、紙幅検出センサ31の出力値が閾値EAを上回った場合(ステップSA7;YES)、コントローラ52は、その時点における紙幅検出センサ31の光センサ部31aの位置を、記録媒体Kの矢印Y2方向の側端として特定し、この側端の位置を記憶すべく、モータ駆動ドライバ53から入力されたCRPOSの値を上記制御用RAMに記憶する(ステップSA8)。   Then, the controller 52 compares the output value of the paper width detection sensor 31 with the threshold value EA, and monitors whether the output value is higher than the threshold value EA (step SA7), while moving the carriage 19 from the home position HP to the arrow Y1 ( 3) Scan in the direction. If the output value of the paper width detection sensor 31 exceeds the threshold EA during scanning of the carriage 19 (step SA7; YES), the controller 52 determines the position of the optical sensor unit 31a of the paper width detection sensor 31 at that time as the recording medium K. The CRPOS value input from the motor drive driver 53 is stored in the control RAM in order to store the position of the side end in the arrow Y2 direction (step SA8).

次いで、コントローラ52は、ステップSA8で記憶したCRPOSに基づいて、記録ワイヤ突出部11aの位置と記録媒体Kの記録開始位置との間隔を算出し、記録ワイヤ突出部11aが記録媒体Kにおける記録開始位置にくるよう、キャリッジ19を矢印Y1方向へ向かって移動させる(ステップSA9)。そして、記録ワイヤ突出部11aが記録媒体Kの記録開始位置にきた時点で、記録ヘッド11を駆動して、画像の記録を開始する(ステップSA10)。ここで、記録開始位置とは、記録媒体Kにおいて画像の記録を開始する主走査方向の位置であり、この記録開始位置から、キャリッジ19を移動させつつ記録ヘッド11により記録ワイヤ11bが突出され、記録が記録される。
このように本実施形態では、キャリッジ19の1回目の走査において、紙挿入検出センサ29の出力値に基づいて設定した閾値EAを利用して記録媒体Kの矢印Y2方向の側端を検出できる。さらに、紙幅検出センサ31の光センサ部31aが記録ワイヤ突出部11aよりも矢印Y1方向側に設けられているため、側端の検出後に、画像の記録を開始することができる。
Next, the controller 52 calculates the interval between the position of the recording wire protrusion 11a and the recording start position of the recording medium K based on the CRPOS stored in step SA8, and the recording wire protrusion 11a starts recording on the recording medium K. The carriage 19 is moved in the direction of arrow Y1 so as to reach the position (step SA9). When the recording wire protrusion 11a reaches the recording start position of the recording medium K, the recording head 11 is driven to start image recording (step SA10). Here, the recording start position is a position in the main scanning direction at which image recording is started on the recording medium K, and the recording wire 11b is projected from the recording start position by the recording head 11 while moving the carriage 19. Records are recorded.
As described above, in this embodiment, in the first scanning of the carriage 19, the side edge in the arrow Y2 direction of the recording medium K can be detected by using the threshold EA set based on the output value of the paper insertion detection sensor 29. Furthermore, since the optical sensor portion 31a of the paper width detection sensor 31 is provided on the arrow Y1 direction side with respect to the recording wire protruding portion 11a, image recording can be started after detection of the side edge.

画像の記録の開始後、コントローラ52は、キャリッジ19の走査及び所定の画像の記録を実行すると共に(ステップSA11)、この画像の記録を実行する間、今回のキャリッジ19の走査で記録すべき画像の記録が終了したか否か(ステップSA12)、及び、紙幅検出センサ31の出力値が閾値EAを下回ったか否かを監視する。
紙幅検出センサ31の出力値が閾値EAを下回るより先に、記録すべき画像の記録が終了した場合(ステップSA12:YES)、コントローラ52は、紙幅検出センサ31の出力値が閾値EAを下回ったか否かを監視しながら(ステップSA15)、さらにキャリッジ19を矢印Y1方向へ向かって移動させる。このキャリッジ19の移動中、紙幅検出センサ31の出力値が閾値EAを下回った場合(ステップSA15:YES)、コントローラ52は、このときの光センサ部31aの位置を記録媒体Kの矢印Y1方向側の側端として特定すべく、モータ駆動ドライバ53から入力されたCRPOSの値を上記制御用RAMに記憶する(ステップSA16)。その後、コントローラ52は、キャリッジ19をその走査範囲の矢印Y1方向側の端まで走査することにより1回目のキャリッジ19の走査を終了する(ステップSA17)。
After the start of image recording, the controller 52 performs scanning of the carriage 19 and recording of a predetermined image (step SA11), and the image to be recorded by the current scanning of the carriage 19 while executing the recording of this image. Is monitored (step SA12), and whether the output value of the paper width detection sensor 31 is below the threshold EA.
If the recording of the image to be recorded is completed before the output value of the paper width detection sensor 31 falls below the threshold value EA (step SA12: YES), the controller 52 determines whether the output value of the paper width detection sensor 31 falls below the threshold value EA. Whether or not (step SA15) is monitored, the carriage 19 is further moved in the direction of the arrow Y1. If the output value of the paper width detection sensor 31 falls below the threshold value EA during the movement of the carriage 19 (step SA15: YES), the controller 52 determines the position of the optical sensor unit 31a at this time on the arrow Y1 direction side of the recording medium K. The CRPOS value input from the motor drive driver 53 is stored in the control RAM (step SA16). Thereafter, the controller 52 completes the first scan of the carriage 19 by scanning the carriage 19 to the end of the scan range on the arrow Y1 direction side (step SA17).

一方、ステップSA11〜SA13において、記録すべき画像の記録が終了する前に紙幅検出センサ31の出力値が閾値EAを下回った場合(ステップSA13:YES)、コントローラ52は、このときの光センサ部31aの位置を記録媒体Kの矢印Y1方向側の側端として特定し、モータ駆動ドライバ53から入力されたCRPOSの値を上記制御用RAMに記憶する(ステップSA18)。次いで、コントローラ52は、記録媒体Kの記録終了位置に記録ワイヤ突出部11aが達するまでキャリッジ19の走査及び画像の記録を実行する(ステップSA19)。ここで、記録終了位置とは、記録媒体Kにおいて画像の記録を終了する主走査方向の位置であり、この記録終了位置から先は記録ワイヤ11bが突出されない。
ステップSA19の記録動作を実行中、コントローラ52は、記録すべき画像の記録が終了したか否か(ステップSA20)、及び、記録ワイヤ突出部11aが記録終了位置T3に達したか否か(ステップSA21)を監視する。記録ワイヤ突出部11aが記録終了位置T3に達する前に画像の記録が終了した場合(ステップSA20:YES)、コントローラ52は、ステップSA17に移行する。
一方、ステップSA19〜SA21において、記録すべき画像の記録が終了していない状態で記録ワイヤ突出部11aが記録終了位置T3に至った場合(ステップSA21:YES)、コントローラ52は、画像の記録を強制的に終了し(ステップSA22)、ステップSA17に移行する。
ステップSA17で、コントローラ52は、キャリッジ19を走査範囲の端まで移動して、1回目のキャリッジ19の走査を終了する。その後、コントローラ52は、キャリッジ19を逆方向(矢印Y2方向)に移動させながら、画像の記録を実行する。
On the other hand, if the output value of the paper width detection sensor 31 falls below the threshold value EA before the recording of the image to be recorded ends in steps SA11 to SA13 (step SA13: YES), the controller 52 performs the optical sensor unit at this time. The position of 31a is specified as the side edge of the recording medium K on the arrow Y1 direction side, and the CRPOS value input from the motor drive driver 53 is stored in the control RAM (step SA18). Next, the controller 52 scans the carriage 19 and records an image until the recording wire protrusion 11a reaches the recording end position of the recording medium K (step SA19). Here, the recording end position is a position in the main scanning direction at which image recording ends on the recording medium K, and the recording wire 11b does not protrude beyond the recording end position.
During the execution of the recording operation in step SA19, the controller 52 determines whether or not the recording of the image to be recorded has ended (step SA20), and whether or not the recording wire protrusion 11a has reached the recording end position T3 (step S20). SA21) is monitored. If the recording of the image is completed before the recording wire protrusion 11a reaches the recording end position T3 (step SA20: YES), the controller 52 proceeds to step SA17.
On the other hand, in steps SA19 to SA21, when the recording wire protrusion 11a reaches the recording end position T3 in a state where the recording of the image to be recorded has not been completed (step SA21: YES), the controller 52 records the image. The process is forcibly terminated (step SA22), and the process proceeds to step SA17.
In step SA17, the controller 52 moves the carriage 19 to the end of the scanning range, and ends the first scan of the carriage 19. Thereafter, the controller 52 executes image recording while moving the carriage 19 in the reverse direction (the direction of the arrow Y2).

図7は、キャリッジ19の位置と紙幅検出センサ31の出力値との関係を示す図表であり、横軸はキャリッジ19の位置を示すCRPOSの値、縦軸は紙幅検出センサ31の出力値である。
図7に示すように、コントローラ52によってキャリッジ19を移動させる間の紙幅検出センサ31の出力値を監視すると(図6のステップSA6〜SA7)、紙幅検出センサ31が記録媒体Kの近傍に達するまでは、紙幅検出センサ31の出力値は閾値EAより大幅に低いELのレベルにある。キャリッジ19の移動に伴い、紙幅検出センサ31が記録媒体Kの端からの反射光を検出すると、紙幅検出センサ31の出力値は増大し、図中P1で閾値EAを超える。コントローラ52は、P1におけるキャリッジ19の位置(光センサ部31aの位置)を、記録媒体Kの側端の位置として特定する。この位置を超えた後、紙幅検出センサ31の出力値は増大して、光センサ部31aが完全に記録媒体Kの上に重なったときに最大の出力値EHに達する。
FIG. 7 is a chart showing the relationship between the position of the carriage 19 and the output value of the paper width detection sensor 31, where the horizontal axis is the CRPOS value indicating the position of the carriage 19 and the vertical axis is the output value of the paper width detection sensor 31. .
As shown in FIG. 7, when the output value of the paper width detection sensor 31 is monitored while the carriage 19 is moved by the controller 52 (steps SA6 to SA7 in FIG. 6), until the paper width detection sensor 31 reaches the vicinity of the recording medium K. The output value of the paper width detection sensor 31 is at an EL level that is significantly lower than the threshold value EA. When the paper width detection sensor 31 detects the reflected light from the end of the recording medium K as the carriage 19 moves, the output value of the paper width detection sensor 31 increases and exceeds the threshold value EA at P1 in the figure. The controller 52 specifies the position of the carriage 19 at P1 (the position of the optical sensor unit 31a) as the position of the side edge of the recording medium K. After exceeding this position, the output value of the paper width detection sensor 31 increases and reaches the maximum output value EH when the optical sensor unit 31a completely overlaps the recording medium K.

その後、画像を記録しながらキャリッジ19を引き続き移動させ、光センサ部31aが記録媒体Kの側端に極めて近くなると、紙幅検出センサ31の出力値が低下し、やがて、図中P2で閾値EAを下回る。コントローラ52は、P2におけるキャリッジ19の位置(光センサ部31aの位置)を、記録媒体Kの側端の位置として特定する。この位置を超えた後、紙幅検出センサ31の出力値はさらに低下して、光センサ部31aが完全に記録媒体Kから外れたときに最小の出力値ELとなる。
このように、予め閾値設定処理(図6のステップSA3)で閾値EAが設定されるので、コントローラ52は、紙幅検出センサ31の出力値に基づいて速やかに記録媒体Kの側端の位置を特定できる。
Thereafter, the carriage 19 is continuously moved while recording an image, and when the optical sensor unit 31a is very close to the side edge of the recording medium K, the output value of the paper width detection sensor 31 decreases, and eventually the threshold value EA is set at P2 in the figure. Below. The controller 52 specifies the position of the carriage 19 at P2 (the position of the optical sensor unit 31a) as the position of the side edge of the recording medium K. After exceeding this position, the output value of the paper width detection sensor 31 further decreases, and becomes the minimum output value EL when the optical sensor unit 31a is completely removed from the recording medium K.
As described above, since the threshold value EA is set in advance in the threshold value setting process (step SA3 in FIG. 6), the controller 52 quickly specifies the position of the side edge of the recording medium K based on the output value of the paper width detection sensor 31. it can.

図8は、図6に示す動作中における記録ヘッド11と記録媒体Kとの位置関係を示す平面図であり、特に、ホームポジションHP側の記録媒体Kの側端を検出するときの状態を示す。
図8中、T1は記録ワイヤ11bの位置を示し、T2は、記録媒体Kの記録開始位置を示す。位置T1、T2は、いずれも主走査方向、すなわち桁方向の位置である。
この図8に示すように、キャリッジ19がホームポジションHPから移動して、紙幅検出センサ31によって記録媒体Kの側端が検出された時点で、記録ワイヤ11bは、記録開始位置から距離D1だけ手前にある。従って、図6のステップSA7で記録媒体Kの側端位置を検出してから、ステップSA9でキャリッジ19を移動させて、記録ワイヤ11bが記録開始位置T2に達してから、ステップSA10で画像の記録を開始するまでの一連の動作は、十分に余裕をもって実行可能である。
FIG. 8 is a plan view showing the positional relationship between the recording head 11 and the recording medium K during the operation shown in FIG. 6, and particularly shows a state when the side edge of the recording medium K on the home position HP side is detected. .
In FIG. 8, T1 indicates the position of the recording wire 11b, and T2 indicates the recording start position of the recording medium K. The positions T1 and T2 are both positions in the main scanning direction, that is, the digit direction.
As shown in FIG. 8, when the carriage 19 is moved from the home position HP and the side edge of the recording medium K is detected by the paper width detection sensor 31, the recording wire 11b is just a distance D1 from the recording start position. It is in. Therefore, after the side end position of the recording medium K is detected in step SA7 in FIG. 6, the carriage 19 is moved in step SA9, and the recording wire 11b reaches the recording start position T2, and then the image recording is performed in step SA10. A series of operations up to the start of can be executed with a sufficient margin.

図9は、図6に示す動作中における記録ヘッド11と記録媒体Kとの位置関係を示す平面図であり、特に、ホームポジションHPから離れた側の記録媒体Kの側端を検出するときの状態を示す。図中、T3は主走査方向における記録媒体Kの記録終了位置を示す。
上述したように、本実施形態では、紙幅検出センサ31の光センサ部31aが、記録ワイヤ突出部11aの中心(記録ワイヤ11bの位置)よりも、主走査方向(矢印Y1側)にずれた位置にある。光センサ部31aと記録ワイヤ11bとの主走査方向における間隔D2は、記録媒体Kの記録終了位置T3と記録媒体Kの矢印Y1方向側の側端との間隔D3よりも大きくなっている。このため、光センサ部31aが記録媒体Kの矢印Y1方向側の側端に達し、この側端が検出された時点で、記録ワイヤ11bは、記録終了位置T3よりもホームポジションHP側に位置している。これにより、記録媒体Kの側端を検出してから画像の記録を終了するまでの一連の動作を、十分に余裕をもって行うことができ、例えば、記録終了位置T3を超えて画像を記録してしまう、といったことがない。
FIG. 9 is a plan view showing the positional relationship between the recording head 11 and the recording medium K during the operation shown in FIG. 6, and particularly when detecting the side edge of the recording medium K far from the home position HP. Indicates the state. In the figure, T3 indicates the recording end position of the recording medium K in the main scanning direction.
As described above, in the present embodiment, the optical sensor portion 31a of the paper width detection sensor 31 is shifted in the main scanning direction (arrow Y1 side) from the center of the recording wire protruding portion 11a (position of the recording wire 11b). It is in. An interval D2 between the optical sensor unit 31a and the recording wire 11b in the main scanning direction is larger than an interval D3 between the recording end position T3 of the recording medium K and the side end of the recording medium K on the arrow Y1 direction side. For this reason, the optical sensor unit 31a reaches the side end of the recording medium K on the arrow Y1 direction side, and when this side end is detected, the recording wire 11b is positioned closer to the home position HP than the recording end position T3. ing. Accordingly, a series of operations from the detection of the side edge of the recording medium K to the end of image recording can be performed with sufficient margin. For example, the image is recorded beyond the recording end position T3. There is no such thing.

従って、1回目のキャリッジ19の走査において、コントローラ52は、紙幅検出センサ31によって記録媒体Kの側端を検出した後、この側端に基づいて記録終了位置T3を算出することができると共に、この算出した記録終了位置T3とCRPOSとによって、現在の記録ワイヤ突出部11aの位置T1と記録終了位置T3との間の間隔D4を算出することができ、さらに、この算出した間隔D4に基づいて、記録ワイヤ突出部11aが記録終了位置T3に至るまで画像の記録を実行することができる。
なお、ドットインパクトプリンタ10によって、様々なサイズの記録媒体Kに画像を記録する場合、全てのサイズ・種類の記録媒体Kに対応できることが好ましい。このためには、紙幅検出センサ31の光センサ部31aと、記録ヘッド11における記録ワイヤ11bとの間の距離を、最も余白サイズが大きい記録媒体Kの余白幅よりも、さらに広くしておけばよい。
Accordingly, in the first scanning of the carriage 19, the controller 52 can calculate the recording end position T3 based on the side edge after detecting the side edge of the recording medium K by the paper width detection sensor 31. Based on the calculated recording end position T3 and CRPOS, an interval D4 between the current position T1 of the recording wire protrusion 11a and the recording end position T3 can be calculated. Further, based on the calculated interval D4, Image recording can be executed until the recording wire protrusion 11a reaches the recording end position T3.
In addition, when an image is recorded on the recording medium K of various sizes by the dot impact printer 10, it is preferable that the recording medium K of all sizes and types can be supported. For this purpose, the distance between the optical sensor portion 31a of the paper width detection sensor 31 and the recording wire 11b in the recording head 11 should be made wider than the margin width of the recording medium K having the largest margin size. Good.

以上説明したように、本実施形態に係るドットインパクトプリンタ10は、画像の記録を開始する前に記録媒体Kの側端を検出するためのキャリッジ19の走査を行うことなく、1回目のキャリッジ19の走査においてキャリッジ19の側端の検出及び記録動作を実行することができる。このため、画像の記録を開始するまでのキャリッジ19の走査回数を低減し、記録開始までの時間を短縮することができ、スループットを向上させることができる。   As described above, the dot impact printer 10 according to the present embodiment performs the first carriage 19 without scanning the carriage 19 for detecting the side edge of the recording medium K before starting image recording. In this scanning, the side edge detection and recording operation of the carriage 19 can be executed. For this reason, the number of scans of the carriage 19 until the start of image recording can be reduced, the time until the start of recording can be shortened, and the throughput can be improved.

以上説明したように、本実施の形態では、キャリッジ19よりも上流側に設けられた紙挿入検出センサ29の出力値に基づいて、記録媒体Kの有無を判定するための閾値EAを設定している。さらに、記録媒体Kの側端を検出する紙幅検出センサ31が、記録ヘッド11の記録ワイヤ突出部11aよりも、矢印Y1方向側にずれた位置に配設されている。この構成のため、画像を記録する際の最初の(1回目の)キャリッジ19の走査において、閾値EAを利用して記録媒体Kの側端及び記録開始位置T2を検出することができ、この検出した記録開始位置T2から画像の記録を開始できる。このため、記録媒体Kの側端を検出するためだけのキャリッジ19の走査を省略することができ、記録開始までに要する時間を短縮して、スループットの向上を図ることができる。   As described above, in the present embodiment, the threshold value EA for determining the presence or absence of the recording medium K is set based on the output value of the paper insertion detection sensor 29 provided on the upstream side of the carriage 19. Yes. Further, a paper width detection sensor 31 for detecting the side edge of the recording medium K is disposed at a position shifted to the arrow Y1 direction side from the recording wire protrusion 11a of the recording head 11. Due to this configuration, the side edge of the recording medium K and the recording start position T2 can be detected by using the threshold value EA in the first (first) scanning of the carriage 19 when recording an image. The image recording can be started from the recording start position T2. For this reason, the scanning of the carriage 19 only for detecting the side edge of the recording medium K can be omitted, the time required to start recording can be shortened, and the throughput can be improved.

また、本実施形態では、紙挿入検出センサ29及び紙幅検出センサ31を共に反射型光センサで構成することにより、同一の記録媒体に対する紙挿入検出センサ29の出力値と紙幅検出センサ31の出力値とが非常に近い値となり、これらセンサの出力値を略同一とみなすことができる。従って、紙挿入検出センサ29の出力値に基づいて、紙幅検出センサ31による検出に適した閾値EAを設定できるので、紙幅検出センサ31によって、高い精度で記録媒体Kの側端を検出できる。   In the present embodiment, both the paper insertion detection sensor 29 and the paper width detection sensor 31 are configured by reflection type optical sensors, so that the output value of the paper insertion detection sensor 29 and the output value of the paper width detection sensor 31 for the same recording medium. Are very close to each other, and the output values of these sensors can be regarded as substantially the same. Accordingly, since the threshold value EA suitable for detection by the paper width detection sensor 31 can be set based on the output value of the paper insertion detection sensor 29, the side edge of the recording medium K can be detected with high accuracy by the paper width detection sensor 31.

また、本実施形態では、紙挿入検出センサ29の出力値を利用して閾値EAを設定している。このため、キャリッジ19を走査させることなく確実に閾値EAを設定することができる。例えば、コントローラ52が、紙幅検出センサ31が記録媒体Kが存在しないときに出力した出力値と、紙挿入検出センサ29が記録媒体Kが存在するときに出力した出力値とに基づいて閾値を設定すれば、キャリッジを走査させることなく、速やかに適切な閾値を設定することができる。また、例えば、紙挿入検出センサ29が、記録媒体Kが存在しないときに出力した出力値と、記録媒体Kが存在するときに出力した出力値とに基づいて閾値を設定すれば、紙挿入検出センサ29の出力値のみによって閾値を設定することができ、紙幅検出センサ31の出力値を用いることなく、キャリッジを走査させずに、速やかに適切な閾値を設定することができる。   In the present embodiment, the threshold value EA is set using the output value of the paper insertion detection sensor 29. For this reason, the threshold value EA can be reliably set without scanning the carriage 19. For example, the controller 52 sets the threshold value based on the output value output when the paper width detection sensor 31 does not exist in the recording medium K and the output value output when the paper insertion detection sensor 29 exists in the presence of the recording medium K. By doing so, it is possible to quickly set an appropriate threshold without scanning the carriage. For example, if the paper insertion detection sensor 29 sets a threshold based on the output value output when the recording medium K does not exist and the output value output when the recording medium K exists, the paper insertion detection is performed. The threshold value can be set only by the output value of the sensor 29, and the appropriate threshold value can be quickly set without using the output value of the paper width detection sensor 31 and without scanning the carriage.

また、ドットインパクトプリンタ10では、記録ワイヤ突出部11a(記録ワイヤ11b)と紙幅検出センサ31の光センサ部31aとの間の間隔が、記録媒体Kの記録終了位置と記録媒体Kの側端との間隔よりも、広く確保されている。このため、ホームポジションHPから離れた側の記録媒体Kの側端を検出してから、余裕をもって、記録ワイヤ突出部11aによる画像の記録を終了できる。
そして、1回目のキャリッジ19の走査において、コントローラ52は、紙幅検出センサ31によって記録媒体Kの側端を検出した後、この側端に基づいて記録終了位置T3を算出することができると共に、この算出した記録終了位置T3とCRPOSとによって、現在の記録ワイヤ突出部11aの位置T1と記録終了位置T3との間の間隔D4を算出することができ、さらに、この算出した間隔D4に基づいて、記録ワイヤ突出部11aが記録終了位置T3に至るまで画像の記録を実行することができる。
In the dot impact printer 10, the distance between the recording wire protruding portion 11 a (recording wire 11 b) and the optical sensor portion 31 a of the paper width detection sensor 31 is such that the recording end position of the recording medium K and the side edge of the recording medium K are It is secured wider than the interval. For this reason, after detecting the side edge of the recording medium K far from the home position HP, the recording of the image by the recording wire protrusion 11a can be completed with a margin.
In the first scanning of the carriage 19, the controller 52 can calculate the recording end position T 3 based on the side edge after detecting the side edge of the recording medium K by the paper width detection sensor 31. Based on the calculated recording end position T3 and CRPOS, an interval D4 between the current position T1 of the recording wire protrusion 11a and the recording end position T3 can be calculated. Further, based on the calculated interval D4, Image recording can be executed until the recording wire protrusion 11a reaches the recording end position T3.

なお、従来のドットインパクトプリンタ10には、記録媒体Kの搬送方向からの傾きであるスキューをキャリッジ19に設けられた紙幅検出センサ31を利用して検出するものがある。この種のドットインパクトプリンタ10では、スキューを検出するためだけにキャリッジ19の走査を行うものがある。
これに対し、本実施形態に係るドットインパクトプリンタ10では、以下の動作によってスキュー検出のためだけに行うキャリッジ19の走査を省略し、スループットの向上を図ることが可能である。
以下、スキュー検出時のドットインパクトプリンタ10の動作について説明する。
Some conventional dot impact printers 10 detect a skew, which is an inclination from the conveyance direction of the recording medium K, using a paper width detection sensor 31 provided on the carriage 19. Some dot impact printers 10 of this type scan the carriage 19 only to detect skew.
On the other hand, in the dot impact printer 10 according to the present embodiment, it is possible to improve the throughput by omitting the scanning of the carriage 19 performed only for skew detection by the following operation.
Hereinafter, the operation of the dot impact printer 10 at the time of skew detection will be described.

図10は、ドットインパクトプリンタ10の動作を示すフローチャートである。
まず、コントローラ52は、図6のフローチャートで説明した一連の動作を実行することにより1回目のキャリッジ19の走査を行う。その際、上述したように、キャリッジ19の走査の前に閾値EAを設定することができ、記録媒体Kの側端検出、及び、1行目の画像の記録を行うことができる。
ここで、1回目のキャリッジ19の走査において検出した記録媒体Kの矢印Y2方向側の側端のCRPOSを「CR−L1」とし、1回目のキャリッジ19の走査時に、コントローラ52は、このCR−L1を上記制御用RAMに記憶する(ステップSB1)。
次いで、コントローラ52は、2行目の画像を記録すべく2回目のキャリッジ19の走査を実行する。この2回目のキャリッジの走査においても、コントローラ52は、閾値EAと紙幅検出センサ31の出力値との比較により記録媒体Kの幅端を検出する。ここで、この2回目のキャリッジ19の走査において検出した記録媒体Kの矢印Y2方向側の側端のCRPOSを「CR−L2」とし、コントローラ52は、この「CR−L2」を制御用RAMに記憶する(ステップSB2)。
FIG. 10 is a flowchart showing the operation of the dot impact printer 10.
First, the controller 52 performs the first scan of the carriage 19 by executing a series of operations described in the flowchart of FIG. At this time, as described above, the threshold value EA can be set before the carriage 19 is scanned, and the side edge of the recording medium K can be detected and the image of the first line can be recorded.
Here, CRPOS at the side edge in the arrow Y2 direction of the recording medium K detected in the first scanning of the carriage 19 is set to “CR-L1”, and the controller 52 performs the CR− L1 is stored in the control RAM (step SB1).
Next, the controller 52 executes the second scanning of the carriage 19 to record the image of the second row. Also in this second carriage scan, the controller 52 detects the width edge of the recording medium K by comparing the threshold value EA and the output value of the paper width detection sensor 31. Here, CRPOS at the side edge on the arrow Y2 direction side of the recording medium K detected in the second scanning of the carriage 19 is set to “CR-L2”, and the controller 52 stores this “CR-L2” in the control RAM. Store (step SB2).

その後、コントローラ52は、CR−L1及びCR−L2を比較することにより、記録媒体Kの搬送方向に対する傾きの度合いを示すずれ量を検出し(ステップSB3)、この検出したずれ量に基づいて記録媒体Kの搬送方向に対する傾きが許容される範囲にあるか否かを判定する(ステップSB4)。傾きが許容範囲内のとき(ステップSB4:YES)、コントローラ52は、スキューが発生していないと判定し(ステップSB5)、次の処理を実行する。傾きが許容の範囲外のとき(ステップSB4:NO)、コントローラ52は、スキューが発生していると判定し(ステップSB6)、例えば、記録媒体Kを排出する等、スキューの発生に対応した処理を実行する(ステップSB7)。
以上説明したように、本実施形態に係るドットインパクトプリンタ10によれば、スキュー検出のみを目的としたキャリッジ19の走査を行うことなく、画像の記録と併せてスキューを検出できるため、スループットを低下させずにスキューを確実に検出できる。
Thereafter, the controller 52 compares CR-L1 and CR-L2 to detect a deviation amount indicating the degree of inclination with respect to the conveyance direction of the recording medium K (step SB3), and recording is performed based on the detected deviation amount. It is determined whether or not the inclination of the medium K with respect to the transport direction is within an allowable range (step SB4). When the inclination is within the allowable range (step SB4: YES), the controller 52 determines that no skew has occurred (step SB5), and executes the following process. When the inclination is outside the allowable range (step SB4: NO), the controller 52 determines that skew has occurred (step SB6), and performs processing corresponding to the occurrence of skew, such as discharging the recording medium K, for example. Is executed (step SB7).
As described above, according to the dot impact printer 10 according to the present embodiment, since the skew can be detected together with the image recording without performing the scanning of the carriage 19 for the purpose of skew detection only, the throughput is reduced. It is possible to reliably detect the skew without doing so.

以上、本発明を実施形態に基づいて説明したが、本発明はこれに限定されるものではなく、以下のような変形が可能である。
例えば、本実施形態に係るコントローラ52は、閾値EAを設定する際に、記録媒体Kに対する紙挿入検出センサ29の出力値と、ホームポジションHPに位置する紙幅検出センサ31の出力値との平均値によって設定してもよいし、記録媒体Kが無いときの紙挿入検出センサ29の出力値と、記録媒体Kに対する紙挿入検出センサ29の出力値との平均値によって設定してもよい。また、例えば、予め定められた設定値と、記録媒体Kに対する紙挿入検出センサ29の出力値との平均値によって閾値EAを設定してもよい。
また、本実施形態では、記録媒体Kに対する紙挿入検出センサ29の出力値と、ホームポジションHPに位置する紙幅検出センサ31の出力値との平均値を閾値EAとしているが、本発明はこれに限定されるものではなく、例えば、相乗平均(いわゆる、幾何平均)や、調和平均など他の平均値を用いたり、適宜重み付けを持たせたりして、閾値EAを求めることも可能である。
As described above, the present invention has been described based on the embodiment, but the present invention is not limited to this, and the following modifications are possible.
For example, when setting the threshold value EA, the controller 52 according to the present embodiment averages the output value of the paper insertion detection sensor 29 for the recording medium K and the output value of the paper width detection sensor 31 located at the home position HP. Or the average value of the output value of the paper insertion detection sensor 29 when there is no recording medium K and the output value of the paper insertion detection sensor 29 for the recording medium K. Further, for example, the threshold EA may be set by an average value of a predetermined set value and an output value of the paper insertion detection sensor 29 for the recording medium K.
In this embodiment, the average value of the output value of the paper insertion detection sensor 29 for the recording medium K and the output value of the paper width detection sensor 31 located at the home position HP is used as the threshold value EA. The threshold EA can be obtained by using other average values such as a geometric average (so-called geometric average) or a harmonic average, or appropriately giving a weight, for example.

また、本実施形態では、紙挿入検出センサ29及び紙幅検出センサ31を同一仕様の反射型光センサとして構成し、かつ、これらセンサと記録媒体Kとの間の間隔を略同一にすることにより、同一の記録媒体Kに対するこれらセンサの出力値が略同一になるようにしていたが、例えば、予めキャリブレーションを行い、これらセンサの出力値を調整することによって、これらセンサの出力値が同一になるようにしてもよい。この場合、紙挿入検出センサ29と紙幅検出センサ31との出力特性や検出特性、或いは設置状態に差があったとしても、本実施形態と同様に、容易に、かつ好適な閾値EAを設定できる。
さらに、本実施形態では、一つの紙幅検出センサ31を記録ワイヤ突出部11aよりも矢印Y1側に設けた構成を例に説明したが、これに限らず、2つの紙幅検出センサ31を、記録ワイヤ突出部11aの両側方に設けてもよい。この場合、記録ワイヤ突出部11aと、各々の紙幅検出センサ31との間隔を、上述したように所定距離より大きく確保すれば、キャリッジ19の矢印Y1方向への走査の際のみならず、キャリッジ19の矢印Y2方向への走査の際も、記録媒体Kの側端を検出することができ、側端を検出した後に画像の記録を開始できるという利点がある。すなわち、記録開始時におけるキャリッジ19の走査方向や、ホームポジションHPの位置に制約を受けることなく、常に、記録開始までの時間を短縮できる。
In the present embodiment, the paper insertion detection sensor 29 and the paper width detection sensor 31 are configured as reflective optical sensors having the same specifications, and the distance between these sensors and the recording medium K is substantially the same. Although the output values of these sensors for the same recording medium K are substantially the same, for example, by performing calibration in advance and adjusting the output values of these sensors, the output values of these sensors become the same. You may do it. In this case, even if there is a difference in output characteristics, detection characteristics, or installation state between the paper insertion detection sensor 29 and the paper width detection sensor 31, the threshold value EA can be easily set as in the present embodiment. .
Furthermore, in the present embodiment, the configuration in which one paper width detection sensor 31 is provided on the arrow Y1 side with respect to the recording wire protruding portion 11a has been described as an example. You may provide in the both sides of the protrusion part 11a. In this case, if the interval between the recording wire protruding portion 11a and each paper width detection sensor 31 is ensured to be larger than the predetermined distance as described above, not only the scanning of the carriage 19 in the arrow Y1 direction but also the carriage 19 is performed. When scanning in the arrow Y2 direction, the side edge of the recording medium K can be detected, and there is an advantage that image recording can be started after the side edge is detected. That is, the time until the start of recording can always be shortened without being restricted by the scanning direction of the carriage 19 at the start of recording and the position of the home position HP.

本実施形態では、本発明をドットインパクトプリンタに適用した場合について説明したが、本発明はこれに限定されず、主走査方向にキャリッジを走査させ、副走査方向に搬送される記録媒体に画像を記録するものであれば、インクジェット式プリンタや、感熱シートを用いるサーマルプリンタ、熱転写式プリンタ等の各種記録装置(プリンタ)、ATM等の装置の筐体に組み込まれて使用されるプリンタに対しても適用が可能である。   In the present embodiment, the case where the present invention is applied to a dot impact printer has been described. However, the present invention is not limited to this, and the carriage is scanned in the main scanning direction, and an image is printed on the recording medium conveyed in the sub scanning direction. As long as it can record, it can also be used for various printers such as inkjet printers, thermal printers using thermal sheets, thermal transfer printers, etc., and printers that are built into the housing of ATMs and other devices. Applicable.

実施形態に係るドットインパクトプリンタの本体を示す斜視図である。1 is a perspective view showing a main body of a dot impact printer according to an embodiment. ドットインパクトプリンタの断面図である。It is sectional drawing of a dot impact printer. ドットインパクトプリンタの要部平面図である。It is a principal part top view of a dot impact printer. 記録ヘッドの構成を示す平面図である。FIG. 3 is a plan view illustrating a configuration of a recording head. ドットインパクトプリンタの制御系のブロック図である。It is a block diagram of a control system of a dot impact printer. ドットインパクトプリンタの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a dot impact printer. キャリッジの位置と紙幅検出センサの出力値との関係を示す図表である。It is a chart which shows the relationship between the position of a carriage and the output value of a paper width detection sensor. 記録ヘッドの構成を示す平面図である。FIG. 3 is a plan view illustrating a configuration of a recording head. 記録ヘッドの構成を示す平面図である。FIG. 3 is a plan view illustrating a configuration of a recording head. ドットインパクトプリンタの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a dot impact printer.

符号の説明Explanation of symbols

10…ドットインパクトプリンタ、11…記録ヘッド、11a…記録ワイヤ突出部(記録部)、11b…記録ワイヤ、19…キャリッジ、20…プラテン、21…第1搬送ローラ、22…第2搬送ローラ、23…第3搬送ローラ、24…第4搬送ローラ、29…紙挿入検出センサ(媒体検出センサ)、31…紙幅検出センサ(幅検出センサ)、31a…光センサ部、38…キャリッジ駆動モータ、52…コントローラ(閾値設定手段、側端検出手段)、H…搬送経路、K…記録媒体、HP…ホームポジション(基準位置)   DESCRIPTION OF SYMBOLS 10 ... Dot impact printer, 11 ... Recording head, 11a ... Recording wire protrusion part (recording part), 11b ... Recording wire, 19 ... Carriage, 20 ... Platen, 21 ... 1st conveyance roller, 22 ... 2nd conveyance roller, 23 3rd transport roller, 24 ... 4th transport roller, 29 ... Paper insertion detection sensor (medium detection sensor), 31 ... Paper width detection sensor (width detection sensor), 31a ... Optical sensor unit, 38 ... Carriage drive motor, 52 ... Controller (threshold setting means, side edge detection means), H ... conveying path, K ... recording medium, HP ... home position (reference position)

Claims (6)

搬送経路上で記録媒体を搬送する搬送部と、前記記録媒体の幅方向に往復走査されるキャリッジと、このキャリッジに設けられ、前記記録媒体に画像を記録する記録部を備えた記録ヘッドと、を備え、前記キャリッジを走査させながら前記記録部により前記記録媒体に画像を記録する記録装置において、
前記搬送経路上において前記キャリッジよりも上流側に設けられ、前記記録媒体の有無に応じた出力値を出力する媒体検出センサと、前記キャリッジに設けられ、前記記録媒体の有無に応じた出力値を出力する幅検出センサと、
前記媒体検出センサの出力値に基づいて、前記記録媒体の有無を判定するための閾値を設定する閾値設定手段と、
前記閾値設定手段により設定された閾値と前記幅検出センサの出力値とを比較することで前記記録媒体の側端を検出する側端検出手段と、を備え、
前記キャリッジの走査範囲の一端に、前記キャリッジが前記記録媒体への記録開始前に位置する基準位置が設定され、
前記キャリッジにおいて前記幅検出センサは、前記記録ヘッドの記録部よりも、前記基準位置から離れる側にずれた位置に設けられ、
前記記録媒体への記録を開始する際に、前記キャリッジを前記基準位置から他端へ向けて移動させ、この移動中に前記側端検出手段によって側端を検出した後に、検出した側端に基づいて、この移動中に前記記録部による記録を行うこと、
を特徴とする記録装置。
A transport unit that transports a recording medium on a transport path; a carriage that is reciprocally scanned in the width direction of the recording medium; a recording head that is provided on the carriage and includes a recording unit that records an image on the recording medium; A recording apparatus for recording an image on the recording medium by the recording unit while scanning the carriage,
A medium detection sensor provided on the upstream side of the carriage on the transport path and outputs an output value corresponding to the presence or absence of the recording medium, and an output value provided on the carriage and corresponding to the presence or absence of the recording medium. An output width detection sensor;
Threshold setting means for setting a threshold for determining the presence or absence of the recording medium based on the output value of the medium detection sensor;
Side edge detecting means for detecting a side edge of the recording medium by comparing a threshold set by the threshold setting means with an output value of the width detection sensor;
A reference position at which the carriage is positioned before starting recording on the recording medium is set at one end of the scanning range of the carriage,
In the carriage, the width detection sensor is provided at a position shifted from the recording portion of the recording head to the side away from the reference position.
When starting recording on the recording medium, the carriage is moved from the reference position toward the other end, the side end is detected by the side end detecting means during the movement, and then based on the detected side end. Recording by the recording unit during the movement,
A recording apparatus.
前記媒体検出センサ及び前記幅検出センサが、前記搬送経路に向けて光を照射するとともに、その反射光を検出し、検出した反射光の光量に応じた出力値を出力する反射型光センサにより構成されたこと、
を特徴とする請求項1に記載の記録装置。
The medium detection sensor and the width detection sensor are configured by a reflective optical sensor that irradiates light toward the transport path, detects the reflected light, and outputs an output value corresponding to the amount of the detected reflected light. Has been done,
The recording apparatus according to claim 1.
前記閾値設定手段は、前記幅検出センサが前記記録媒体が存在しないときに出力した出力値と、前記媒体検出センサが前記記録媒体が存在するときに出力した出力値とに基づいて前記閾値を設定すること、
を特徴とする請求項1又は2に記載の記録装置。
The threshold setting means sets the threshold based on an output value output by the width detection sensor when the recording medium does not exist and an output value output by the medium detection sensor when the recording medium exists. To do,
The recording apparatus according to claim 1, wherein:
前記閾値設定手段は、前記媒体検出センサが、前記記録媒体が存在しないときに出力した出力値と、前記記録媒体が存在するときに出力した出力値とに基づいて前記閾値を設定すること、
を特徴とする請求項1又は2に記載の記録装置。
The threshold setting means sets the threshold based on an output value output by the medium detection sensor when the recording medium does not exist and an output value output when the recording medium exists;
The recording apparatus according to claim 1, wherein:
前記記録部と前記幅検出センサとの間の間隔が、前記記録媒体において前記記録部が画像を記録する範囲の端と前記記録媒体の側端との間隔よりも、広く確保されていること、
を特徴とする請求項1乃至4のいずれかに記載の記録装置。
An interval between the recording unit and the width detection sensor is secured wider than an interval between an end of a range where the recording unit records an image on the recording medium and a side end of the recording medium;
The recording apparatus according to claim 1, wherein:
搬送経路上で記録媒体を搬送する搬送部と、前記記録媒体の幅方向に往復走査されるキャリッジと、このキャリッジに設けられ、前記記録媒体に画像を記録する記録部を備えた記録ヘッドと、前記搬送経路上において前記キャリッジよりも上流側に設けられ、前記記録媒体の有無に応じた出力値を出力する媒体検出センサと、前記キャリッジに設けられ、前記記録媒体の有無に応じた出力値を出力する幅検出センサと、を備え、
前記キャリッジにおいて前記幅検出センサが前記記録ヘッドの記録部よりも前記基準位置から離れる側にずれた位置に設けられている記録装置を制御して、
前記キャリッジの走査範囲の一端に、前記キャリッジが前記記録媒体への記録開始前に位置する基準位置を設定し、
前記キャリッジを前記基準位置から他端へ向けて移動させ、
この移動中に前記媒体検出センサの出力値に基づいて、前記記録媒体の有無を判定するための閾値を設定し、
前記閾値と前記幅検出センサの出力値とを比較することで前記記録媒体の側端を検出し、
検出した側端に基づいて、この移動中に前記記録部による記録を行うこと、
を特徴とする記録装置の制御方法。
A transport unit that transports a recording medium on a transport path; a carriage that is reciprocally scanned in the width direction of the recording medium; a recording head that is provided on the carriage and includes a recording unit that records an image on the recording medium; A medium detection sensor provided on the upstream side of the carriage on the transport path and outputs an output value corresponding to the presence or absence of the recording medium, and an output value provided on the carriage and corresponding to the presence or absence of the recording medium. A width detection sensor for output,
Controlling the recording device provided in the carriage at a position where the width detection sensor is shifted from the recording portion of the recording head to the side away from the reference position;
A reference position at which the carriage is positioned before starting recording on the recording medium is set at one end of the scanning range of the carriage,
Moving the carriage from the reference position toward the other end;
Based on the output value of the medium detection sensor during this movement, set a threshold for determining the presence or absence of the recording medium,
By detecting the side edge of the recording medium by comparing the threshold value and the output value of the width detection sensor,
Recording by the recording unit during the movement based on the detected side edge;
A control method for a recording apparatus.
JP2007333495A 2007-12-26 2007-12-26 Recording device and control method of recording device Pending JP2009155013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007333495A JP2009155013A (en) 2007-12-26 2007-12-26 Recording device and control method of recording device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007333495A JP2009155013A (en) 2007-12-26 2007-12-26 Recording device and control method of recording device

Publications (1)

Publication Number Publication Date
JP2009155013A true JP2009155013A (en) 2009-07-16

Family

ID=40959446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007333495A Pending JP2009155013A (en) 2007-12-26 2007-12-26 Recording device and control method of recording device

Country Status (1)

Country Link
JP (1) JP2009155013A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8870336B2 (en) 2012-03-28 2014-10-28 Seiko Epson Corporation Image-forming device and medium edge part judgment method
JP2018002459A (en) * 2016-07-07 2018-01-11 株式会社沖データ Medium detection device, medium conveyance device and image formation apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8870336B2 (en) 2012-03-28 2014-10-28 Seiko Epson Corporation Image-forming device and medium edge part judgment method
JP2018002459A (en) * 2016-07-07 2018-01-11 株式会社沖データ Medium detection device, medium conveyance device and image formation apparatus

Similar Documents

Publication Publication Date Title
JP5121223B2 (en) Recording apparatus and recording method
US7699460B2 (en) Printing apparatus and printing method
US8564850B2 (en) Optical reading device, control method for an optical reading device, and storage medium
JP4398797B2 (en) Medium width detection device
JP5982938B2 (en) Image forming apparatus and medium edge determination method
JP2004181828A (en) Printing device
JP5655309B2 (en) Optical reader, optical reader control method, and program
JP2008132613A (en) Image recorder and image recording method
JP2012061792A (en) Media processing system and control method for media processing system
JP2009155013A (en) Recording device and control method of recording device
JP2007283593A (en) Printing medium processing device, and its carrying control method
JP2012025078A (en) Information reading and printing apparatus, control method for the information reading and printing apparatus, and control program
JP6834273B2 (en) Serial recording device
JP2004009529A (en) Apparatus for recording and method for recording
JP4419420B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
JP2004142269A (en) Recorder
JP2007122254A (en) Image processor, image forming apparatus, and image forming system
JP2007283553A (en) Method for controlling printing medium processor and printing medium processor
JP6031865B2 (en) Recording device
JP2014046459A (en) Electronic apparatus, and control method for the electronic device
CN211467915U (en) Printing device
JP7336216B2 (en) Image recording device, reading device, image recording method and recording medium conveying method
JP2009223947A (en) Recording device and method for controlling the same
JP2008126452A (en) Recorder and method of detecting presence/absence of recording medium
JP6475376B2 (en) Passbook processing device