JP2002127521A - Edge detector and printer - Google Patents

Edge detector and printer

Info

Publication number
JP2002127521A
JP2002127521A JP2000331077A JP2000331077A JP2002127521A JP 2002127521 A JP2002127521 A JP 2002127521A JP 2000331077 A JP2000331077 A JP 2000331077A JP 2000331077 A JP2000331077 A JP 2000331077A JP 2002127521 A JP2002127521 A JP 2002127521A
Authority
JP
Japan
Prior art keywords
sensor
paper
edge
sheet
threshold 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
JP2000331077A
Other languages
Japanese (ja)
Inventor
Masafumi Kobayashi
雅文 小林
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 Instruments Inc
Original Assignee
Seiko Instruments Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Instruments Inc filed Critical Seiko Instruments Inc
Priority to JP2000331077A priority Critical patent/JP2002127521A/en
Publication of JP2002127521A publication Critical patent/JP2002127521A/en
Pending legal-status Critical Current

Links

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Controlling Sheets Or Webs (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an edge detector and a printer in which various sheets can be dealt with and the edge can be detected with high accuracy for various sheets. SOLUTION: The edge detector carries out a step for moving an edge sensor above a set sheet and measuring the sensor output on the sheet (Steps S1 and S2), a step for moving the edge sensor to a position deviated from the sheet and measuring the detection amount of sensor on the outside of the sheet (Steps S5 and S6), a step for determining a threshold value of the detection amount of sensor being used for detecting the sheet edge based on the detection amount of sensor on the sheet and the detection amount of sensor on the outside of the sheet (Step S9), and a step for detecting the sheet edge based on a fact that the detection amount of sensor has dropped below the threshold value or exceeded the threshold value when the edge sensor is moved in a range straddling the sheet edge (Step 10).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、用紙送り方向と
直交する方向に印刷ヘッドを走査させながら印刷を行っ
ていくプリンタ装置、並びに、このようなプリンタ装置
において用紙のエッジを検出するエッジ検出装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer for performing printing while scanning a print head in a direction perpendicular to a paper feeding direction, and an edge detecting device for detecting an edge of a paper in such a printer. .

【0002】[0002]

【従来の技術】例えば、A1判やA0判などの大判の用
紙を縦方向に間歇的に送っていくとともに、印刷ヘッド
を横方向にスキャン(走査)させながら印刷を行ってい
く大判印刷用のインクジェットプリンタなどにおいて、
用紙の横幅を検出したり用紙の横方向のズレを検出する
ために、プラテン上にセットされた用紙の左右のエッジ
を検出するエッジ検出装置が設けられる。
2. Description of the Related Art For example, large-sized paper such as A1 size or A0 size is intermittently fed in a vertical direction, and printing is performed while a print head is scanned in a horizontal direction. In inkjet printers,
In order to detect the lateral width of the paper or to detect the lateral deviation of the paper, an edge detecting device is provided for detecting the left and right edges of the paper set on the platen.

【0003】従来のエッジ検出装置は、例えばフォトセ
ンサなどのセンサを、プラテン上にセットされた用紙と
対向させた状態で、用紙のエッジをまたぐ範囲で横方向
にスキャンさせ、用紙の反射光量と用紙から外れた位置
にあるプラテンの反射光量との違いにより、フォトセン
サのセンサ出力が所定のしきい値以下に変化した点を用
紙のエッジとして検出していた。
In a conventional edge detecting device, a sensor such as a photo sensor is scanned in a horizontal direction in a range straddling the edge of a sheet in a state where the sensor is opposed to the sheet set on a platen. The point at which the sensor output of the photosensor changes below a predetermined threshold value is detected as the edge of the sheet due to the difference from the reflected light amount of the platen at a position off the sheet.

【0004】また、エッジ検出の判断基準となる上記セ
ンサ出力のしきい値は、試験機などにおいて予め様々な
用紙やプラテン上でのセンサ出力を計測し、それらの計
測値から最適な値に決定されるのが一般的である。そし
て、このように求められたしきい値がそのまま量産機の
制御回路内に設定され、複数のエッジ検出装置で同一の
しきい値を用いてエッジ検出が行われていた。
The threshold value of the sensor output, which is used as a criterion for edge detection, is determined in advance by measuring sensor outputs on various types of paper or a platen using a tester or the like, and determining an optimum value from the measured values. It is generally done. Then, the threshold value thus obtained is set as it is in the control circuit of the mass production machine, and the edge detection is performed by the plurality of edge detection devices using the same threshold value.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、予め1
つのしきい値が設定されている上記従来のエッジ検出装
置では、サポートしている全種類の用紙についてセンサ
出力を測定し、全ての用紙で適切にエッジが検出される
ようなしきい値を求めなくてはならない。近年では、多
種多様な用紙が開発されているが、1つのしきい値で全
ての用紙に対応させようとすれば、例えば反射率が平均
からずれているような用紙にあっては設定されたしきい
値では最適な値とならず、エッジの検出点が実際のエッ
ジの位置からずれてしまうなど、エッジ検出の精度に影
響が出てしまうおそれがあり、すべの用紙をサポートす
るのは困難であるという問題が生じる。
However, there is a problem that
In the above-described conventional edge detection device in which two thresholds are set, the sensor output is measured for all types of supported paper, and a threshold for appropriately detecting edges on all papers is not obtained. must not. In recent years, a wide variety of papers have been developed. However, if one threshold value is used for all papers, for example, the paper sheet whose reflectance deviates from the average is set. The threshold value is not optimal, and the edge detection point may deviate from the actual edge position, which may affect the accuracy of edge detection, making it difficult to support all paper types Problem arises.

【0006】また、センサの感度、並びに、用紙表面や
プラテン表面の反射率などは、それぞれ個々にばらつき
を有しているとともに、センサの感度やプラテンの表面
状態は経年変化する。そのため、試験機などを用いて事
前に求められたしきい値を用いたエッジ検出では、各装
置毎、各用紙毎に、最適とされるしきい値が異なるの
で、検出精度が高められないという課題もあった。
Further, the sensitivity of the sensor, the reflectance of the paper surface and the platen surface, and the like have individual variations, and the sensitivity of the sensor and the surface condition of the platen change over time. Therefore, in edge detection using a threshold value obtained in advance using a testing machine or the like, since the optimum threshold value differs for each device and each paper, the detection accuracy cannot be improved. There were also issues.

【0007】この発明の目的は、上記実情に鑑みてなさ
れたもので、様々な用紙に対応可能で、様々な用紙を用
いても高い精度でエッジ検出を行えるエッジ検出装置な
らびにプリンタ装置を提供することにある。
An object of the present invention has been made in view of the above-mentioned circumstances, and provides an edge detecting device and a printer device capable of coping with various types of paper and performing high-accuracy edge detection even using various types of paper. It is in.

【0008】[0008]

【課題を解決するための手段】本発明のエッジ検出装置
は、上記目的を達成するため、被測定物の表面における
所定の物理量(例えば光の反射量)を検出するセンサ
(例えばエッジセンサ40)と、セットされた用紙上に
おいて前記センサを該用紙のエッジをまたぐ範囲で搬送
可能な搬送手段(例えばキャリッジ制御モータ31と搬
送ベルト機構71)と、前記搬送手段の制御および前記
センサからのセンサ出力により、セットされた用紙上に
前記センサを移動させて用紙上でのセンサ検出量を測定
する用紙上センサ測定処理(例えばステップS1,S
2)、用紙から外れた位置に前記センサを移動させて用
紙外でのセンサ検出量を測定する用紙外センサ測定処理
(例えばステップS5,ステップS6)、前記用紙上で
のセンサ検出量と用紙外でのセンサ検出量とに基づき用
紙エッジの検出に使用されるセンサ検出量のしきい値を
決定するしきい値決定処理(例えばステップS9)、並
びに、前記センサを用紙のエッジをまたぐ範囲で移動さ
せる間に該センサのセンサ検出量が前記しきい値以下あ
るいは以上に変化したことに基づき用紙のエッジを検出
するエッジ検出処理(例えばステップS10)を行う制
御手段(例えばCPU10)とを備えている構成とし
た。
In order to achieve the above object, an edge detecting device of the present invention is a sensor (for example, an edge sensor 40) for detecting a predetermined physical quantity (for example, an amount of reflected light) on the surface of an object to be measured. Transport means (for example, a carriage control motor 31 and a transport belt mechanism 71) capable of transporting the sensor over a set sheet over the edge of the sheet; control of the transport means and sensor output from the sensor On the paper, the sensor is moved on the set paper and the sensor detection amount on the paper is measured (for example, steps S1 and S1).
2) Out-of-paper sensor measurement processing for moving the sensor to a position off the paper and measuring the amount of sensor detection outside the paper (eg, step S5 and step S6); Threshold value determination processing (for example, step S9) for determining a threshold value of a sensor detection amount used for detecting a sheet edge based on the sensor detection amount in step S9, and moving the sensor in a range over the sheet edge. Control means (for example, CPU 10) for performing an edge detection process (for example, step S10) for detecting the edge of the sheet based on the fact that the sensor detection amount of the sensor has changed to be equal to or less than the threshold value during the operation. The configuration was adopted.

【0009】このような手段によれば、用紙エッジの検
出に用いるセンサ検出量のしきい値を、個々の装置毎に
求めることが出来るので、エッジ検出に関わる部分に各
装置毎のばらつきがあっても、各装置毎の最適なしきい
値を求めて、該しきい値を用いて高い精度でエッジ検出
を行うことが出来る。また、例えば用紙の種類を変える
たび、或いは、用紙がセットされるたびにしきい値を決
定しなおすようにすれば、用紙の種類や各用紙毎のばら
つきにも影響されずに、最適なしきい値を求めて高い精
度でエッジ検出を行うことが出来る。また、例えば、所
定期間おきにしきい値を決定しなおすようにすれば、セ
ンサ等に経年変化にも影響されずに、最適なしきい値を
求めて常に高い精度でエッジ検出を行うことが出来る。
According to such a means, since the threshold value of the sensor detection amount used for detecting the paper edge can be obtained for each device, there is a variation in the portion related to the edge detection for each device. However, it is possible to obtain an optimum threshold value for each device and perform edge detection with high accuracy using the threshold value. Further, for example, if the threshold value is determined again each time the type of paper is changed or each time the paper is set, the optimum threshold value can be obtained without being influenced by the type of paper or the variation of each paper. And edge detection can be performed with high accuracy. Further, for example, if the threshold value is determined again every predetermined period, the edge detection can be always performed with high accuracy by finding the optimum threshold value without being affected by the aging of the sensor or the like.

【0010】望ましくは、前記用紙外センサ測定処理
は、前記用紙上でのセンサ検出量に基づき用紙エッジの
推定に使用する暫定しきい値を決定する暫定しきい値決
定処理(例えばステップS3)と、前記センサを用紙の
エッジをまたぐ範囲で移動させる間に該センサのセンサ
検出量が前記暫定しきい値以下あるいは以上に変化した
ことに基づきこの位置を用紙エッジと推定する用紙エッ
ジ推定処理(例えばステップS4)と、この推定された
用紙エッジより用紙から外れる方向へ前記センサを移動
させることで用紙外と推定される位置へ前記センサを移
動させる用紙外位置移動処理(例えばステップS5)
と、この用紙外と推定される位置でのセンサ検出量を測
定するセンサ検出量測定処理(例えばステップS6)と
を行って、該センサ検出量測定処理で測定されたセンサ
検出量を前記用紙外でのセンサ検出量とするように構成
すると良い。
Preferably, the out-of-paper sensor measurement process includes a provisional threshold value determination process (for example, step S3) for determining a provisional threshold value used for estimating a paper edge based on a sensor detection amount on the paper. A paper edge estimation process for estimating the position as a paper edge based on a change in the sensor detection amount of the sensor below or above the provisional threshold value while moving the sensor in a range across the edge of the paper (for example, Step S4) and an out-of-sheet position moving process of moving the sensor to a position estimated to be out of the sheet by moving the sensor in a direction away from the sheet from the estimated sheet edge (for example, step S5)
And a sensor detection amount measurement process (for example, step S6) for measuring the sensor detection amount at a position estimated to be out of the sheet, and the sensor detection amount measured in the sensor detection amount measurement process is determined to be outside the sheet. It is good to constitute so that it may be the amount of sensor detection.

【0011】一般に、用紙をセットして使用する装置で
は、セットされた用紙の占める面積に較べて用紙外の余
った部分の面積は小さいものとなる。従って、用紙上に
センサを移動させ用紙上のセンサ検出量を測定するのは
容易だが、用紙外へセンサを移動させ用紙外でのセンサ
検出量を測定するのは比較的困難なものとなる。
In general, in an apparatus in which sheets are set and used, the area of the remaining portion outside the sheets is smaller than the area occupied by the set sheets. Therefore, it is easy to move the sensor on the paper and measure the sensor detection amount on the paper, but it is relatively difficult to move the sensor out of the paper and measure the sensor detection amount outside the paper.

【0012】そこで、上記のように暫定しきい値に基づ
き用紙エッジを推定し、そこからさらにセンサを移動さ
せて検出測定を行うことで、用紙外でのセンサ検出量を
取得することが出来る。
Therefore, as described above, the edge of the sheet is estimated based on the provisional threshold value, and the sensor is further moved therefrom to perform the detection measurement, whereby the sensor detection amount outside the sheet can be obtained.

【0013】さらに望ましくは、前記用紙外センサ測定
処理は、前記センサ検出量測定処理で測定されたセンサ
検出量が前記暫定しきい値以下あるいは以上に達してい
なかった場合に検出感度が下がるように暫定しきい値を
補正する暫定しきい値補正処理(例えばステップS8)
を行って、この補正された暫定しきい値に基づいて前記
用紙エッジ推定処理(例えばステップS4)と前記用紙
外位置移動処理(例えばステップS5)とセンサ検出量
測定処理(ステップS6)とを再度行うように構成する
と良い。
[0013] More preferably, the out-of-paper sensor measurement processing is performed so that the detection sensitivity is reduced when the sensor detection amount measured in the sensor detection amount measurement processing has not reached the provisional threshold value or less. Provisional threshold value correction processing for correcting the provisional threshold value (for example, step S8)
The paper edge estimation processing (for example, step S4), the out-of-paper position movement processing (for example, step S5), and the sensor detection amount measurement processing (for step S6) are performed again based on the corrected provisional threshold value. It is good to be configured to do so.

【0014】暫定しきい値に基づく用紙エッジの推定で
は、用紙エッジを必ずしも正確に把握することは出来
ず、例えば用紙上に稀に生じる反射率の低い部分を間違
って用紙エッジと推定してしまい、そこから用紙外に外
れる方向に移動した位置も用紙上であると云ったことが
僅かな確率で発生しえる。
In the estimation of the paper edge based on the provisional threshold value, the paper edge cannot always be accurately grasped. For example, a portion having a low reflectance which rarely occurs on the paper is erroneously estimated as the paper edge. However, it can occur with a small probability that the position moved in the direction deviating from the sheet out of the sheet is also on the sheet.

【0015】そこで、上記のように用紙外と推定した位
置でセンサ検出量を測定して間違いがないかを確認し、
間違っていた場合に暫定しきい値を補正することで間違
いを正すので、より確実に最適なしきい値を取得するこ
とが出来る。
Therefore, the sensor detection amount is measured at the position estimated to be outside the paper as described above, and it is checked whether there is any error.
Correcting the tentative threshold value when it is incorrect corrects the error, so that an optimal threshold value can be obtained more reliably.

【0016】また、本発明のもう1つのエッジ検出装置
は、被測定物の表面における所定の物理量を検出するセ
ンサと、セットされた用紙上において前記センサを該用
紙のエッジをまたぐ範囲で搬送可能な搬送手段と、前記
搬送手段の制御および前記センサからのセンサ出力によ
り、セットされた用紙上に前記センサを移動させて用紙
上でのセンサ検出量を測定する用紙上センサ測定処理、
前記用紙上でのセンサ検出量と予め測定された用紙外で
のセンサ検出量とに基づき用紙エッジの検出に使用され
るセンサ検出量のしきい値を決定するしきい値決定処
理、並びに、前記センサを用紙のエッジをまたぐ範囲で
移動させる間に該センサのセンサ検出量が前記しきい値
以下あるいは以上に変化したことに基づき用紙のエッジ
を検出するエッジ検出処理を行う制御手段とを備えてい
る構成とした。
According to another aspect of the present invention, a sensor for detecting a predetermined physical quantity on the surface of an object to be measured, and the sensor can be conveyed over a set sheet over a range across the edge of the sheet. On the paper sensor measurement processing for moving the sensor on the set paper and measuring the sensor detection amount on the paper by controlling the transport means and the sensor output from the sensor by controlling the transport means,
A threshold value determining process for determining a threshold value of a sensor detection amount used for detecting a sheet edge based on a sensor detection amount on the sheet and a sensor detection amount measured outside the sheet measured in advance; and Control means for performing edge detection processing for detecting the edge of the sheet based on the fact that the sensor detection amount of the sensor has changed below or above the threshold value while moving the sensor in the range across the edge of the sheet. Configuration.

【0017】一般的に、用紙外におけるセンサ検出量は
予め測定してしまえば、その後、あまり変化しないと考
えられるので、上記のような手段により、短時間で最適
なしきい値を決定することが可能であり、それにより高
い精度で且つ高速に用紙エッジの検出を行うことが出来
る。
In general, if the sensor detection amount outside the paper is measured in advance, it is considered that there will not be much change thereafter. Therefore, the optimum threshold value can be determined in a short time by the above-described means. It is possible to detect the paper edge with high accuracy and at high speed.

【0018】具体的には、上述の制御手段は、用紙がセ
ットされるたびに上記しきい値を決定する処理を行うよ
うに構成すると望ましい。
More specifically, it is desirable that the control means be configured to perform the process of determining the threshold value each time a sheet is set.

【0019】また、本発明のプリンタ装置は、用紙
(5)をプラテン(53)上に保持しながら間歇的に送
っていくとともに、用紙送り方向と直交する方向に印刷
ヘッド(60)を走査させながら印刷を行っていくプリ
ンタ装置(1)であって、前記プラテン(53)上に保
持された用紙(5)における前記印刷ヘッド(60)の
走査経路と交差するエッジを検出するように上述のエッ
ジ検出装置が設けられている構成とした。
Further, the printer of the present invention intermittently feeds the paper (5) while holding it on the platen (53), and scans the print head (60) in a direction orthogonal to the paper feed direction. A printer device (1) for performing printing, the edge device being configured to detect an edge of a sheet (5) held on the platen (53) that intersects a scanning path of the print head (60). The configuration was such that a detection device was provided.

【0020】具体的には、前記用紙外センサ測定処理
は、用紙(5)から外れたプラテン(53)上に前記セ
ンサ(例えばエッジセンサ40)を移動させ、該プラテ
ン(53)上でのセンサ検出量を測定する処理である。
また、前記センサ(例えばエッジセンサ40)は前記印
刷ヘッド(60)と一体的に配設され、該印刷ヘッド
(60)とともに搬送される構成となる。
More specifically, the out-of-paper sensor measurement process includes moving the sensor (for example, the edge sensor 40) onto the platen (53) that has come off the paper (5), and detecting the sensor on the platen (53). This is a process for measuring the detection amount.
The sensor (for example, the edge sensor 40) is provided integrally with the print head (60), and is conveyed together with the print head (60).

【0021】このようなプリンタ装置によれば、様々な
用紙に対応することが可能であり、高い精度で用紙エッ
ジの検出を行い、それにより用紙幅の検出や用紙上の印
刷位置の設定も精度よく行うことが出来る。
According to such a printer device, it is possible to cope with various types of paper, and to detect the paper edge with high accuracy, thereby detecting the paper width and setting the printing position on the paper with high accuracy. Can do well.

【0022】[0022]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0023】図1は、本発明の実施の形態のプリンタ装
置の主要構成を示すブロック図である。
FIG. 1 is a block diagram showing the main configuration of a printer according to an embodiment of the present invention.

【0024】この実施の形態のプリンタ装置1は、例え
ばA1判やA0判ならびに大判ロール紙など、大判の用
紙を縦方向に間歇的に送っていくとともに、インクをド
ット噴射する印刷ヘッド60を横方向にスキャン(走
査)させながら印刷を行っていく大判用紙用のインクジ
ェットプリンタである。
The printer device 1 of this embodiment intermittently feeds large-size paper such as A1 size, A0 size, and large-size roll paper in the vertical direction, and moves the print head 60 that ejects ink dots in a horizontal direction. This is an ink jet printer for large-format paper that performs printing while scanning in the direction.

【0025】このプリンタ装置1には、図1に示すよう
に、装置の全体的な制御を司る制御手段としてのCPU
10や、用紙を縦方向に送るための紙送りモータ21や
該モータ21の駆動制御を行うサーボドライバ20、並
びに、印刷ヘッド60やこの印刷ヘッド60からインク
をドット噴射させるヘッド制御部65、印刷ヘッド60
を横方向に送るための搬送手段としてのキャリッジ制御
モータ31やそのサーボドライバ30、用紙のエッジを
検出するためのエッジセンサ40や該センサ40からの
アナログ出力信号をデジタル信号に変換してCPU10
に伝えるA/Dコンバータなどを有するセンサ制御回路
45などが設けられている。上記エッジセンサ40は、
例えば用紙やプラテン53の反射光を検出するフォトセ
ンサなどである。
As shown in FIG. 1, the printer 1 has a CPU as control means for controlling the entire apparatus.
10, a paper feed motor 21 for feeding paper in the vertical direction, a servo driver 20 for controlling the driving of the motor 21, a print head 60, a head control unit 65 for ejecting ink from the print head 60 by dot printing, Head 60
Control motor 31 and its servo driver 30 as a transporting means for feeding the paper in the horizontal direction, an edge sensor 40 for detecting the edge of the sheet, and converting an analog output signal from the sensor 40 into a digital signal to convert the CPU 10 into a digital signal.
A sensor control circuit 45 having an A / D converter and the like for transmitting the information to the controller is provided. The edge sensor 40 includes:
For example, it is a photo sensor for detecting the reflected light of the sheet or the platen 53.

【0026】図2はプリンタ装置1の用紙搬送系の機構
を示すもので、プリンタ装置1を上方から眺めた図であ
る。
FIG. 2 shows the mechanism of the paper transport system of the printer 1, and is a view of the printer 1 as viewed from above.

【0027】用紙送りを行う機構は、用紙5を押圧しな
がら回転することで用紙5を送るグリップローラ50や
該グリップローラ50に向って用紙5を押圧する用紙押
え51、印刷ヘッド60がスキャン移動する経路下で用
紙5をバキュームファン54(図3)により吸引して安
定的に固定するプラテン53、並びに、印刷後の用紙5
を巻き取るための巻取ドライバ56や巻取りモータ5
7、印刷後の用紙5のたるみを検出するタルミセンサ5
8、上述の紙送りモータ21やそのサーボドライバ20
などから構成される。そして、グリップローラ50が紙
送りモータ21により回転量を制御可能な状態で間歇的
に回転駆動されることで、プラテン53上にセットされ
た用紙5が縦方向に間歇送りされるようになっている。
The mechanism for feeding the paper is constituted by a grip roller 50 for feeding the paper 5 by rotating while pressing the paper 5, a paper presser 51 for pressing the paper 5 toward the grip roller 50, and a print head 60 for scanning. A platen 53 that sucks the paper 5 down by the vacuum fan 54 (FIG. 3) and stably fixes the paper 5, and a paper 5 after printing.
Driver 56 and winding motor 5 for winding
7. Tarumi sensor 5 for detecting the slack of paper 5 after printing
8, the above-described paper feed motor 21 and its servo driver 20
Etc. When the grip roller 50 is intermittently driven to rotate by the paper feed motor 21 in a state where the rotation amount can be controlled, the paper 5 set on the platen 53 is intermittently fed in the vertical direction. I have.

【0028】プラテン53は、光の反射量が小さい黒色
の部材により形成されるとともに、プリンタ装置1でサ
ポートされている最大の用紙幅より長く形成され、用紙
5がセットされた状態でプラテン53の端が用紙5の両
側方にはみ出した状態で露出されるようになっている。
The platen 53 is formed of a black member having a small amount of light reflection, and is formed to be longer than the maximum sheet width supported by the printer 1. When the sheet 5 is set, the platen 53 The edge is exposed in a state where it protrudes to both sides of the sheet 5.

【0029】また、グリップローラ50より紙搬送方向
上流側には紙の供給の有無を検出する給紙センサ59A
が、プラテン53より下流側には紙の排出の有無を検出
する紙排出センサ59Bが、それぞれ配設されている。
On the upstream side of the grip roller 50 in the paper transport direction, a paper feed sensor 59A for detecting the presence or absence of paper supply is provided.
However, on the downstream side of the platen 53, a paper discharge sensor 59B for detecting the presence or absence of paper discharge is provided.

【0030】図3は印刷ヘッド60の搬送系の機構を示
すもので、プリンタ装置を正面側から眺めた図である。
FIG. 3 shows a mechanism of a transport system of the print head 60, and is a view of the printer apparatus viewed from the front side.

【0031】印刷ヘッド60は、横方向にスライド可能
に構成されているキャリッジ70に取り付けられて、該
キャリッジ70が横方向にスライド移動されることでプ
ラテン53およびプラテン53上にセットされた用紙5
の上方を横方向にスキャン移動するように構成されてい
る。また、キャリッジ70の側端には上記エッジセンサ
40がその検出方向をプラテン53側に向けた状態で取
り付けられ、印刷ヘッド60とともにスキャン移動する
ように構成されている。
The print head 60 is mounted on a carriage 70 which is slidable in the horizontal direction, and the carriage 70 is slid in the horizontal direction, so that the platen 53 and the paper 5 set on the platen 53 are moved.
Is configured to scan and move in the horizontal direction above the. The edge sensor 40 is attached to a side end of the carriage 70 with its detection direction facing the platen 53, and is configured to scan and move with the print head 60.

【0032】キャリッジ70は、搬送手段としての搬送
ベルト機構71のスチールベルト72に固着され、搬送
ベルト機構71の回転プーリ73がキャリッジ制御モー
タ31により回転されることで横方向にスライド移動す
るように構成されている。
The carriage 70 is fixed to a steel belt 72 of a transport belt mechanism 71 as a transport means, and slides laterally by rotating a pulley 73 of the transport belt mechanism 71 by a carriage control motor 31. It is configured.

【0033】また、キャリッジ70には移動量を検出す
るためのリニアセンサ75が設けられ、該リニアセンサ
75によりキャリッジ70の移動方向に沿って固定的に
配設されているリニアスケール76の検出溝を検出して
いくことで、キャリッジ70の移動量が検出可能になっ
ている。リニアセンサ75からの検出出力は、キャリッ
ジ制御モータ31のサーボドライバ30や、印刷ヘッド
60の制御部65に入力され、キャリッジ70の移動量
制御に使用されたり、印刷ヘッド60のインク噴出タイ
ミングの制御に使用される。
The carriage 70 is provided with a linear sensor 75 for detecting the amount of movement, and the linear sensor 75 is provided with a detection groove of a linear scale 76 fixed along the moving direction of the carriage 70. Is detected, the amount of movement of the carriage 70 can be detected. The detection output from the linear sensor 75 is input to the servo driver 30 of the carriage control motor 31 and the control unit 65 of the print head 60, and is used to control the movement amount of the carriage 70, and to control the ink ejection timing of the print head 60. Used for

【0034】また、装置のフレームにはホームポジショ
ンセンサ78が取り付けられており、該センサ78によ
りキャリッジ70の突出片78aを検出することでキャ
リッジ70がホームポジションにあるか否かを検出でき
るようになっている。
Further, a home position sensor 78 is attached to the frame of the apparatus. By detecting the projecting piece 78a of the carriage 70 by the sensor 78, it is possible to detect whether the carriage 70 is at the home position. Has become.

【0035】この実施の形態のプリンタ装置1は、上記
のように構成され、CPU10により実行される以下の
ようなエッジ検出処理フローにより、プラテン53上に
セットされている用紙5のエッジを検出し、それにより
セットされた用紙5の幅長を確認したり、用紙5が僅か
にズレてセットされていた場合にこのズレに合わせて印
刷開始位置をずらすような制御が行われるようになって
いる。
The printer 1 of this embodiment is configured as described above, and detects the edge of the sheet 5 set on the platen 53 by the following edge detection processing flow executed by the CPU 10. Thus, control is performed to check the width of the sheet 5 set, or to shift the printing start position in accordance with the deviation when the sheet 5 is set with a slight deviation. .

【0036】図4は、CPU10により実行されるエッ
ジ検出処理フローの手順を示すフローチャートである。
さらに、図6はエッジ検出処理フローの初期の状態、図
7はその第1段階の状態を示した説明図、図8はこの第
1段階の状態を拡大して示した説明図である。また、図
9はエッジ検出処理フローの第2段階の状態、図10は
その第3段階の状態を示した説明図である。
FIG. 4 is a flowchart showing a procedure of an edge detection processing flow executed by the CPU 10.
6 is an explanatory diagram showing an initial state of the edge detection processing flow, FIG. 7 is an explanatory diagram showing a state of the first stage, and FIG. 8 is an explanatory diagram showing an enlarged state of the first stage. FIG. 9 is an explanatory diagram showing a state of the second stage of the edge detection processing flow, and FIG. 10 is an explanatory diagram showing a state of the third stage.

【0037】このエッジ検出処理フローは、例えば、1
枚の用紙への印刷処理毎にそれら印刷処理の開始前に行
われる処理であり、用紙がセットされた後に印刷指令が
ホストコンピュータ側から入力されることで開始され
る。このエッジ検出処理フローの初期状態においては、
図6に示すようにキャリッジ70はホームポジションに
あり、エッジセンサ40は例えば用紙5やプラテン53
上から外れた位置にある。
This edge detection processing flow is, for example, 1
This process is performed before the start of the printing process for each printing process on a sheet of paper, and is started when a printing command is input from the host computer after the sheet is set. In the initial state of this edge detection processing flow,
As shown in FIG. 6, the carriage 70 is at the home position, and the edge sensor 40 is, for example, a sheet 5 or a platen 53.
It is located off the top.

【0038】この初期状態においてエッジ検出処理フロ
ーが開始されると、先ず、ステップS1においてキャリ
ッジ70を用紙がセットされている方向へ所定量移動さ
せることで、図7や図8に示すようにエッジセンサ40
を用紙上に配置させる。プラテン53上において用紙5
がセットされる位置はある程度決まっており、どのよう
な幅長の用紙がセットされる場合でも用紙が確実にセッ
トされている範囲がある。従って、この範囲へエッジセ
ンサ40を移動させることで確実に用紙上へエッジセン
サ40を配置させることが出来る。
When the edge detection processing flow is started in this initial state, first, in step S1, the carriage 70 is moved by a predetermined amount in the direction in which the sheet is set, thereby obtaining the edge as shown in FIGS. Sensor 40
Is placed on the paper. Paper 5 on platen 53
Is set to some extent, and there is a range in which the paper is reliably set no matter what width of paper is set. Therefore, by moving the edge sensor 40 to this range, the edge sensor 40 can be reliably arranged on the sheet.

【0039】続いて、ステップS2において、エッジセ
ンサ40のセンサ出力電圧V1を測定する。ここで測定
されたセンサ出力電圧は用紙表面からの反射光量に比例
する。このステップS1,S2の処理が、用紙上でのセ
ンサ検出量を測定する用紙上センサ測定処理である。
Subsequently, in step S2, the sensor output voltage V1 of the edge sensor 40 is measured. The sensor output voltage measured here is proportional to the amount of light reflected from the paper surface. The processing in steps S1 and S2 is on-paper sensor measurement processing for measuring the sensor detection amount on paper.

【0040】次に、ステップS3において、上記測定し
た用紙上でのセンサ出力電圧V1に基づいて用紙エッジ
を推定するための暫定しきい値を算出する。暫定しきい
値とは、エッジセンサ40をスキャンさせる間にエッジ
センサ40が用紙5からプラテン53へ移ったと推定す
るときのセンサ出力電圧を示すものであり、例えば、ス
テップS2で取得した用紙上でのセンサ出力電圧の80
%の値として算出する。このステップS3の処理が暫定
しきい値決定処理である。
Next, in step S3, a provisional threshold value for estimating the sheet edge is calculated based on the measured sensor output voltage V1 on the sheet. The provisional threshold value indicates a sensor output voltage when it is estimated that the edge sensor 40 has moved from the sheet 5 to the platen 53 while the edge sensor 40 is being scanned. 80 of the sensor output voltage
Calculate as% value. The process in step S3 is a provisional threshold value determination process.

【0041】次いで、ステップS4において上記の暫定
しきい値を設定しきい値として使用してエッジ検出サブ
ルーチンを実行する。
Next, in step S4, an edge detection subroutine is executed using the above provisional threshold value as a set threshold value.

【0042】図5には、このエッジ検出サブルーチンの
フローチャートを示す。
FIG. 5 shows a flowchart of the edge detection subroutine.

【0043】エッジ検出サブルーチンでは、先ず、キャ
リッジ70を移動させて用紙が必ずセットされている位
置にエッジセンサ40を配置する(ステップS11)。
次に、検出するエッジのある方向に微少量キャリッジ7
0を移動させた後(ステップS12)、エッジセンサ4
0からのセンサ出力を検出し(ステップS13)、この
検出値と設定されたしきい値とを比較する(ステップS
14)。そして、検出値が設定しきい値より大きけれ
ば、再び、ステップS12に戻って、ステップS12〜
S14のループ処理を繰り返すが、検出値が設定しきい
値より小さければ、現在の位置が用紙エッジの位置と判
断してこのエッジ検出サブルーチンを終了し、図4のメ
インフローに戻る。すなわち、エッジ検出サブルーチン
が実行されるとエッジセンサ40が用紙エッジを検出し
た位置でキャリッジ70が停止した状態になる。
In the edge detection subroutine, first, the carriage 70 is moved to dispose the edge sensor 40 at a position where a sheet is always set (step S11).
Next, in the direction of the edge to be detected,
0 (step S12), the edge sensor 4
The sensor output from 0 is detected (step S13), and the detected value is compared with a set threshold value (step S13).
14). If the detected value is larger than the set threshold value, the process returns to step S12, and returns to steps S12 to S12.
The loop process of S14 is repeated. If the detected value is smaller than the set threshold value, the current position is determined to be the position of the paper edge, the edge detection subroutine ends, and the process returns to the main flow of FIG. That is, when the edge detection subroutine is executed, the carriage 70 stops at the position where the edge sensor 40 detects the paper edge.

【0044】したがって、図4のステップS4のエッジ
検出サブルーチンにおいて、エッジ検出が誤検出されて
いなければ、図9に示すように、エッジセンサ40の検
出部(例えばフォトダイオード40aとフォトセンサ4
0bとが並んでいる範囲)の近傍に用紙5のエッジが重
なった状態でキャリッジ70が停止される。すなわち、
このステップS4の処理が用紙エッジ推定処理である。
Therefore, if the edge detection is not erroneously detected in the edge detection subroutine of step S4 in FIG. 4, the detection unit of the edge sensor 40 (for example, the photodiode 40a and the photo sensor 4
The carriage 70 is stopped in a state in which the edge of the sheet 5 overlaps with the vicinity of the range where 0b is arranged. That is,
The processing in step S4 is the paper edge estimation processing.

【0045】用紙エッジが推定されたら、次にステップ
S5に移行して、キャリッジ70を用紙エッジの検出点
より所定距離(例えば3mm)だけ用紙外の方向へ移動
させる。ここで、ステップS4のエッジ検出が誤検出で
ないとすると、図10に示すように、エッジセンサ40
は用紙外のプラテン53上に配置される。すなわち、こ
のステップS5の処理が、用紙外と推定される位置へ上
記センサを移動させる用紙外位置移動処理である。
When the paper edge has been estimated, the process proceeds to step S5, and the carriage 70 is moved in a direction outside the paper by a predetermined distance (for example, 3 mm) from the detection point of the paper edge. Here, assuming that the edge detection in step S4 is not an erroneous detection, as shown in FIG.
Is disposed on a platen 53 outside the sheet. That is, the process of step S5 is an out-of-paper position moving process of moving the sensor to a position estimated to be out of the paper.

【0046】続いて、ステップS6において、用紙外と
推定される位置におけるエッジセンサ40のセンサ出力
電圧V0を測定してステップS7に移行する。すなわ
ち、このステップS6の処理が、用紙外と推定される位
置でのセンサ検出量を測定するセンサ検出量測定処理で
あり、上記のステップS3〜S6までの一連の処理によ
り、用紙外でのセンサ検出量を測定する用紙外センサ測
定処理が構成される。
Subsequently, in step S6, the sensor output voltage V0 of the edge sensor 40 at the position estimated to be out of the sheet is measured, and the flow proceeds to step S7. That is, the process of step S6 is a sensor detection amount measurement process of measuring the sensor detection amount at a position estimated to be out of the sheet, and the sensor outside the sheet is obtained by a series of processes in steps S3 to S6 described above. An out-of-paper sensor measurement process for measuring the detection amount is configured.

【0047】プラテン53上に用紙5がセットされた状
態においては、用紙5の占める範囲に較べて用紙外でプ
ラテン53が露出された範囲は小さくなる場合があるの
で、用紙上にエッジセンサ40を移動させるのに較べ
て、用紙外のプラテン53上にエッジセンサ40を移動
させるのは困難なものとなる。しかしながら、上記のス
テップS3〜S6の用紙外センサ測定処理によりプラテ
ン53上でのセンサ出力電圧を確実に取得することが出
来る。
When the sheet 5 is set on the platen 53, the area where the platen 53 is exposed outside the sheet may be smaller than the area occupied by the sheet 5, so that the edge sensor 40 is provided on the sheet. It is more difficult to move the edge sensor 40 onto the platen 53 outside the sheet than to move it. However, the sensor output voltage on the platen 53 can be reliably obtained by the out-of-paper sensor measurement processing in steps S3 to S6 described above.

【0048】ステップS7では測定したセンサ出力電圧
とステップS4のエッジ検出サブルーチンで用いた暫定
しきい値とを較べて、センサ出力電圧が暫定しきい値よ
り小さければ、エッジセンサ40がプラテン53上にあ
ると判断して次のステップS9に移行するが、センサ出
力電圧が暫定しきい値以上であれば、上記ステップS4
のエッジ検出を誤検出と判断してステップS8に移行す
る。
In step S7, the measured sensor output voltage is compared with the provisional threshold value used in the edge detection subroutine in step S4, and if the sensor output voltage is smaller than the provisional threshold value, the edge sensor 40 is placed on the platen 53. If the sensor output voltage is equal to or higher than the provisional threshold value, the process proceeds to step S9.
Is determined to be erroneous detection, and the routine goes to step S8.

【0049】その結果、誤検出と判断してステップS8
に移行した場合には、暫定しきい値を更に小さくする補
正を行う。例えば、ステップS3で求めた補正前の暫定
しきい値の80%の値を補正後の暫定しきい値として算
出する。そして、再びステップS4からの処理を繰り返
す。
As a result, it is determined that an erroneous detection has occurred, and step S8
If the process has shifted to, a correction is made to further reduce the provisional threshold. For example, a value of 80% of the provisional threshold value before correction obtained in step S3 is calculated as the provisional threshold value after correction. Then, the processing from step S4 is repeated again.

【0050】これらの処理は、次のような理由から行わ
れるものである。すなわち、ステップS4のエッジ検出
サブルーチンでは、例えば用紙上に稀に生じる反射率の
低い部分を間違って用紙エッジと推定してしまい、次の
ステップS5で移動した位置も用紙上であると云ったこ
とが僅かな確率で発生しえる。そこで、上記ステップS
8の暫定しきい値の補正処理を経たステップS4,S5
の繰り返し処理により、ステップS4での用紙エッジの
誤検出の確率を限りなくゼロに近づけられる。
These processes are performed for the following reasons. That is, in the edge detection subroutine of step S4, for example, a portion having a low reflectance that rarely occurs on the sheet is erroneously estimated as the sheet edge, and the position moved in the next step S5 is also on the sheet. Can occur with a small probability. Therefore, step S
Steps S4 and S5 after the correction processing of the provisional threshold value of No. 8
, The probability of erroneous detection of the paper edge in step S4 can be made as close to zero as possible.

【0051】一方、上記ステップS7の判別処理の結
果、エッジセンサ40がプラテン53上にあると判断し
てステップS9に移行すると、ステップS2で測定した
用紙上でのセンサ出力電圧V1と、ステップS6で測定
したプラテン53上でのセンサ出力電圧V0とに基づ
き、用紙エッジを決定するするための最適な確定しきい
値を求める。例えば、用紙上でのセンサ出力電圧V1
と、プラテン53上でのセンサ出力電圧V0との中間の
電圧値(V0+V1)/2を最適な確定しきい値として
算出する。すなわち、このステップS9の処理が、用紙
エッジの検出に使用されるしきい値を決定するしきい値
決定処理である。
On the other hand, as a result of the determination processing in step S7, when the edge sensor 40 determines that it is on the platen 53 and shifts to step S9, the sensor output voltage V1 on the paper measured in step S2 and the step S6 Based on the measured sensor output voltage V0 on the platen 53, an optimum fixed threshold value for determining the paper edge is determined. For example, the sensor output voltage V1 on paper
And an intermediate voltage value (V0 + V1) / 2 between the sensor output voltage V0 on the platen 53 and the sensor output voltage V0 is calculated as an optimal fixed threshold. That is, the process of step S9 is a threshold value determination process for determining the threshold value used for detecting the sheet edge.

【0052】そして、次のステップS10において、上
記算出した確定しきい値をしきい値として設定して図5
のエッジ検出サブルーチンを実行する。エッジ検出サブ
ルーチンの内容はステップS4のものと同様であるが、
ここで設定されているしきい値は、用紙エッジを検出す
るのに最適な値になっているので、エッジセンサ40の
検出部(例えばフォトダイオード40aとフォトセンサ
40bとが並んでいるライン)が用紙5のエッジとちょ
うど重なる位置を検出することが出来る。
Then, in the next step S10, the calculated fixed threshold value is set as a threshold value, and FIG.
Is executed. The content of the edge detection subroutine is the same as that of step S4,
Since the threshold value set here is an optimal value for detecting the paper edge, the detection unit of the edge sensor 40 (for example, the line in which the photodiode 40a and the photosensor 40b are arranged) The position just overlapping the edge of the paper 5 can be detected.

【0053】また、用紙5の幅長を検出する場合には、
このステップS10のエッジ検出サブルーチンを用紙5
の左右で2回行い、両検出点の距離を求めることで用紙
5の幅長を求める。
When the width of the sheet 5 is detected,
The edge detection subroutine of this step S10
Is performed twice on the left and right sides, and the width of the paper 5 is obtained by obtaining the distance between the two detection points.

【0054】そして、ステップS10のエッジ検出サブ
ルーチンにより用紙エッジが検出されたら、このエッジ
検出処理フローを終了する。
When the edge of the sheet is detected by the edge detection subroutine of step S10, the flow of the edge detection processing is terminated.

【0055】以上のように、この実施の形態のプリンタ
装置1によれば、用紙エッジの検出に用いるセンサ出力
電圧のしきい値を、個々の装置毎に求めることが出来る
ので、例えばエッジセンサ40の感度や取付け高さやプ
ラテン53の表面状態など、エッジ検出に関わる部分に
各装置毎のばらつきがあっても、各装置毎の最適なしき
い値を求めて、該しきい値を用いて高い精度で用紙のエ
ッジ検出を行うことが出来る。
As described above, according to the printer device 1 of this embodiment, the threshold value of the sensor output voltage used for detecting the paper edge can be obtained for each device. Even if there are variations in the parts related to edge detection such as sensitivity, mounting height, and surface condition of the platen 53, the optimum threshold value for each device is determined, and the threshold value is used to obtain high accuracy. Can be used to detect the edge of the sheet.

【0056】また、用紙へ印刷を行う毎に最適なしきい
値を決定するので、用紙の種類や各用紙の個体差に応じ
た最適なしきい値が決定され、それにより高い精度でエ
ッジ検出を行うことが出来る。また、印刷毎に毎回しき
い値を決定しなおすので、エッジセンサ40の経年変化
やプラテン53の表面状態の経年変化にも影響されず
に、最適なしきい値を決定して常に高い精度でエッジ検
出を行うことが出来る。
Since an optimum threshold value is determined each time printing is performed on a sheet, an optimum threshold value is determined in accordance with the type of sheet and individual differences of each sheet, thereby performing edge detection with high accuracy. I can do it. In addition, since the threshold value is determined every time printing is performed, the optimum threshold value is determined without being affected by the aging of the edge sensor 40 or the aging of the surface state of the platen 53. Detection can be performed.

【0057】従って、このようなプリンタ装置1によれ
ば、様々な用紙に対応し、多種多様な用紙をサポートす
ることが可能であり、また、高い精度で用紙エッジの検
出を行えることから、用紙幅の検出や用紙上の印刷位置
の設定も精度よく行うことが出来る。
Therefore, according to such a printer 1, it is possible to support various types of paper and to support various types of paper, and to detect the paper edge with high accuracy. The width can be detected and the print position on the paper can be set with high accuracy.

【0058】なお、本発明は、上記実施の形態に限られ
るものではなく、様々な変更が可能である。例えば、実
施の形態では、プラテン53上でのセンサ出力電圧を1
枚の印刷処理毎に測定するように説明したが、プラテン
53上でのセンサ出力は印刷処理毎にあまり変化しない
ため、予めプラテン53上のセンサ出力を測定するとと
もに記憶しておき、この記憶されているプラテン53上
でのセンサ出力の値と、毎回測定する用紙上でのセンサ
出力の値とを用いて、用紙エッジを検出するための最適
なしきい値を求めるようにしても良い。
The present invention is not limited to the above embodiment, but can be variously modified. For example, in the embodiment, the sensor output voltage on the platen 53 is set to 1
Although it has been described that the measurement is performed for each printing process of the sheet, the sensor output on the platen 53 does not change so much for each printing process. Therefore, the sensor output on the platen 53 is measured and stored in advance. The optimum threshold value for detecting the sheet edge may be obtained using the value of the sensor output on the platen 53 and the value of the sensor output on the sheet to be measured each time.

【0059】また、上記実施の形態では、1枚の用紙の
印刷処理毎に最適なしきい値を決定し直すような構成と
したが、例えばユーザのキー操作等により用紙の種類の
変更が確認された場合のみしきい値を決定し直す処理を
行うようにしても良いし、所定期間毎にしきい値を決定
し直す処理を行うようにしても良い。
Further, in the above-described embodiment, the optimum threshold value is determined again for each print processing of one sheet. However, for example, a change in the sheet type is confirmed by a user's key operation or the like. The process of re-determining the threshold may be performed only when the threshold value has been set, or the process of re-determining the threshold may be performed every predetermined period.

【0060】また、上記実施の形態のステップS7によ
り行われる用紙外と推定した位置を確認する処理や、ス
テップS8により行われる用紙外でないと判断された場
合の暫定しきい値の補正処理を省略することも可能であ
る。
Further, the processing of confirming the position estimated to be out of the sheet performed in step S7 of the above embodiment and the correction processing of the provisional threshold value when it is determined that the sheet is not out of paper performed in step S8 are omitted. It is also possible.

【0061】また、本発明のエッジ検出装置は、インク
ジェットプリンタの幅方向の用紙エッジの検出に適用さ
れるのみならず、その他、用紙の位置特定が必要な様々
な装置に有用に適用することが出来る。
The edge detecting apparatus of the present invention can be applied not only to the detection of the paper edge in the width direction of the ink jet printer, but also to other various apparatuses which need to specify the position of the paper. I can do it.

【0062】[0062]

【発明の効果】以上説明したように、本発明に従うと、
用紙エッジの検出に用いるセンサ検出量のしきい値を、
個々の装置毎に求められる構成となっているので、セン
サ感度などエッジ検出に関わる部分に各装置毎のばらつ
きがあっても、各装置毎の最適なしきい値を求めて、該
しきい値を用いて高い精度でエッジ検出を行うことが出
来るという効果がある。
As described above, according to the present invention,
The threshold value of the sensor detection amount used for detecting the paper edge is
Since the configuration is obtained for each device, even if there is a variation in the device related to edge detection such as sensor sensitivity for each device, an optimum threshold value for each device is obtained and the threshold value is determined. There is an effect that edge detection can be performed with high accuracy by using this method.

【0063】また、例えば用紙の種類を変えるたび、或
いは、用紙がセットされるたびにしきい値を決定しなお
すようにすれば、用紙の種類や、個々の用紙の表面状態
のばらつきにも影響されずに、最適なしきい値を決定し
て高い精度でエッジ検出を行うことが出来るという効果
がある。
If the threshold value is determined again each time the type of paper is changed or each time the paper is set, for example, variations in the type of paper and the surface condition of each paper are affected. Instead, it is possible to determine an optimum threshold value and perform edge detection with high accuracy.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態のプリンタ装置の主要構成
を示すブロック図である。
FIG. 1 is a block diagram illustrating a main configuration of a printer device according to an embodiment of the present invention.

【図2】同、プリンタ装置の用紙搬送系の機構を示す構
成図である。
FIG. 2 is a configuration diagram illustrating a mechanism of a paper transport system of the printer device.

【図3】同、プリンタ装置のキャリッジ搬送系の機構を
示す構成図である。
FIG. 3 is a configuration diagram showing a mechanism of a carriage transport system of the printer device.

【図4】実施の形態のプリンタ装置で行われるエッジ検
出処理の手順を示すフローチャートである。
FIG. 4 is a flowchart illustrating a procedure of an edge detection process performed by the printer device according to the embodiment;

【図5】エッジ検出処理のステップS4,S10で実行
されるエッジ検出サブルーチン処理の手順を示すフロー
チャートである。
FIG. 5 is a flowchart showing a procedure of an edge detection subroutine process executed in steps S4 and S10 of the edge detection process.

【図6】エッジ検出処理の初期の状態を示した説明図で
ある。
FIG. 6 is an explanatory diagram showing an initial state of edge detection processing.

【図7】エッジ検出処理の第1段階の状態を示した説明
図である。
FIG. 7 is an explanatory diagram showing a state of a first stage of the edge detection processing.

【図8】図8の第1段階の状態を拡大して示した説明図
である。
FIG. 8 is an explanatory diagram showing an enlarged state of the first stage in FIG. 8;

【図9】エッジ検出処理の第2段階の状態を示した説明
図である。
FIG. 9 is an explanatory diagram showing a state of a second stage of the edge detection processing.

【図10】エッジ検出処理の第3段階の状態を示した説
明図である。
FIG. 10 is an explanatory diagram showing a state of a third stage of the edge detection processing.

【符号の説明】[Explanation of symbols]

1 プリンタ装置 5 用紙 10 CPU 21 紙送りモータ 31 キャリッジ制御モータ 40 エッジセンサ 53 プラテン 60 印刷ヘッド 70 キャリッジ 71 搬送ベルト機構 DESCRIPTION OF SYMBOLS 1 Printer apparatus 5 Paper 10 CPU 21 Paper feed motor 31 Carriage control motor 40 Edge sensor 53 Platen 60 Print head 70 Carriage 71 Transport belt mechanism

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 被測定物の表面における所定の物理量を
検出するセンサと、 セットされた用紙上において前記センサを該用紙のエッ
ジをまたぐ範囲で搬送可能な搬送手段と、 前記搬送手段の制御および前記センサからのセンサ出力
により、セットされた用紙上に前記センサを移動させて
用紙上でのセンサ検出量を測定する用紙上センサ測定処
理、用紙から外れた位置に前記センサを移動させて用紙
外でのセンサ検出量を測定する用紙外センサ測定処理、
前記用紙上でのセンサ検出量と用紙外でのセンサ検出量
とに基づき用紙エッジの検出に使用されるセンサ検出量
のしきい値を決定するしきい値決定処理、並びに、前記
センサを用紙のエッジをまたぐ範囲で移動させる間に該
センサのセンサ検出量が前記しきい値以下あるいは以上
に変化したことに基づき用紙のエッジを検出するエッジ
検出処理を行う制御手段と、 を備えていることを特徴とするエッジ検出装置。
1. A sensor for detecting a predetermined physical quantity on a surface of an object to be measured, a transport unit capable of transporting the sensor over a set sheet over an edge of the sheet, control of the transport unit, On-paper sensor measurement processing for moving the sensor over the set paper by the sensor output from the sensor to measure the amount of sensor detection on the paper, and moving the sensor to a position off the paper and out of the paper Out-of-paper sensor measurement processing to measure the sensor detection amount at
A threshold value determining process for determining a threshold value of a sensor detection amount used for detecting a sheet edge based on the sensor detection amount on the sheet and the sensor detection amount on the outside of the sheet; and Control means for performing edge detection processing for detecting an edge of a sheet based on a change in the sensor detection amount of the sensor below or above the threshold value while moving in a range across the edge. An edge detection device that is a feature.
【請求項2】 前記用紙外センサ測定処理は、 前記用紙上でのセンサ検出量に基づき用紙エッジの推定
に使用する暫定しきい値を決定する暫定しきい値決定処
理と、 前記センサを用紙のエッジをまたぐ範囲で移動させる間
に該センサのセンサ検出量が前記暫定しきい値以下ある
いは以上に変化したことに基づきこの位置を用紙エッジ
と推定する用紙エッジ推定処理と、 この推定された用紙エッジより用紙から外れる方向へ前
記センサを移動させることで用紙外と推定される位置へ
前記センサを移動させる用紙外位置移動処理と、 この用紙外と推定される位置でのセンサ検出量を測定す
るセンサ検出量測定処理とを含み、 前記センサ検出量測定処理で測定されたセンサ検出量を
前記用紙外でのセンサ検出量とすることを特徴とする請
求項1記載のエッジ検出装置。
2. The non-paper sensor measurement process includes: a provisional threshold value determination process for determining a provisional threshold value used for estimating a paper edge based on a sensor detection amount on the paper; A paper edge estimation process for estimating the position as a paper edge based on a change in the sensor detection amount of the sensor below or above the provisional threshold value while moving the sensor over the edge span; Out-of-paper position moving processing for moving the sensor to a position estimated to be out of the sheet by moving the sensor in a direction away from the sheet, and a sensor for measuring a sensor detection amount at the position estimated to be out of the sheet 2. A detection amount measurement process, wherein the sensor detection amount measured in the sensor detection amount measurement process is set as a sensor detection amount outside the paper. Of edge detection device.
【請求項3】 前記用紙外センサ測定処理は、 前記センサ検出量測定処理で測定されたセンサ検出量が
前記暫定しきい値以下あるいは以上に達していなかった
場合に検出感度が下がるように暫定しきい値を補正する
暫定しきい値補正処理を含み、 この補正された暫定しきい値に基づいて前記用紙エッジ
推定処理と前記用紙外位置移動処理とセンサ検出量測定
処理とを再度行うことを特徴とする請求項2記載のエッ
ジ検出装置。
3. The out-of-paper sensor measurement processing is provisionally performed so that the detection sensitivity is reduced when the sensor detection amount measured in the sensor detection amount measurement processing has not reached the provisional threshold or less. A provisional threshold value correction process for correcting a threshold value, wherein the paper edge estimation process, the out-of-paper position movement process, and the sensor detection amount measurement process are performed again based on the corrected provisional threshold value. The edge detecting device according to claim 2, wherein
【請求項4】 被測定物の表面における所定の物理量を
検出するセンサと、 セットされた用紙上において前記センサを該用紙のエッ
ジをまたぐ範囲で搬送可能な搬送手段と、 前記搬送手段の制御および前記センサからのセンサ出力
により、セットされた用紙上に前記センサを移動させて
用紙上でのセンサ検出量を測定する用紙上センサ測定処
理、前記用紙上でのセンサ検出量と予め測定された用紙
外でのセンサ検出量とに基づき用紙エッジの検出に使用
されるセンサ検出量のしきい値を決定するしきい値決定
処理、並びに、前記センサを用紙のエッジをまたぐ範囲
で移動させる間に該センサのセンサ検出量が前記しきい
値以下あるいは以上に変化したことに基づき用紙のエッ
ジを検出するエッジ検出処理を行う制御手段と、 を備えていることを特徴とするエッジ検出装置。
4. A sensor for detecting a predetermined physical quantity on the surface of the object to be measured, a transport unit capable of transporting the sensor over a set sheet over the range of the edge of the sheet, control of the transport unit, On-paper sensor measurement processing for measuring the sensor detection amount on the paper by moving the sensor on the set paper based on the sensor output from the sensor, the sensor detection amount on the paper and the previously measured paper A threshold value determining process for determining a threshold value of a sensor detection amount used for detection of a sheet edge based on the sensor detection amount outside; and Control means for performing an edge detection process for detecting an edge of a sheet based on a change in the sensor detection amount of the sensor below or above the threshold value. An edge detecting device characterized by the above-mentioned.
【請求項5】 前記制御手段は、用紙がセットされるた
びに前記しきい値を決定する処理を行うように構成され
ていることを特徴とする請求項1〜4の何れかに記載の
エッジ検出装置。
5. The edge according to claim 1, wherein the control unit is configured to perform a process of determining the threshold value each time a sheet is set. Detection device.
【請求項6】 用紙をプラテン上に保持しながら間歇的
に送っていくとともに、用紙送り方向と直交する方向に
印刷ヘッドを走査させながら印刷を行っていくプリンタ
装置であって、 前記プラテン上に保持された用紙における前記印刷ヘッ
ドの走査経路と交差するエッジを検出するように請求項
1〜5の何れかに記載のエッジ検出装置が設けられてい
ることを特徴とするプリンタ装置。
6. A printer device for intermittently feeding a sheet while holding it on a platen and performing printing while scanning a print head in a direction orthogonal to the sheet feeding direction, wherein the printing apparatus holds the sheet on the platen. 6. A printer device, comprising: an edge detection device according to claim 1, wherein the edge detection device detects an edge of a sheet that intersects a scanning path of the print head.
【請求項7】 前記用紙外センサ測定処理は、用紙から
外れたプラテン上に前記センサを移動させ、プラテン上
でのセンサ検出量を測定する処理であることを特徴とす
る請求項6記載のプリンタ装置。
7. The printer according to claim 6, wherein the out-of-paper sensor measurement process is a process of moving the sensor onto a platen off the paper and measuring a sensor detection amount on the platen. apparatus.
【請求項8】 前記センサは前記印刷ヘッドと一体的に
配設され、該印刷ヘッドとともに搬送されるように構成
されていることを特徴とする請求項6又は7記載のプリ
ンタ装置。
8. The printer device according to claim 6, wherein the sensor is provided integrally with the print head, and is configured to be conveyed together with the print head.
JP2000331077A 2000-10-30 2000-10-30 Edge detector and printer Pending JP2002127521A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000331077A JP2002127521A (en) 2000-10-30 2000-10-30 Edge detector and printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000331077A JP2002127521A (en) 2000-10-30 2000-10-30 Edge detector and printer

Publications (1)

Publication Number Publication Date
JP2002127521A true JP2002127521A (en) 2002-05-08

Family

ID=18807488

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000331077A Pending JP2002127521A (en) 2000-10-30 2000-10-30 Edge detector and printer

Country Status (1)

Country Link
JP (1) JP2002127521A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130229454A1 (en) * 2012-03-01 2013-09-05 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
JP2013202897A (en) * 2012-03-28 2013-10-07 Seiko Epson Corp Image forming apparatus and method for determining medium end portion
US8714688B2 (en) 2008-07-30 2014-05-06 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer
US8820878B2 (en) 2012-02-21 2014-09-02 Seiko Epson Corporation Liquid ejecting apparatus and sensor sensitivity setting method in liquid ejecting apparatus
US8851612B2 (en) 2012-02-28 2014-10-07 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
US9016828B2 (en) 2012-04-04 2015-04-28 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
US9039164B2 (en) 2011-08-26 2015-05-26 Seiko Epson Corporation Liquid ejecting apparatus
JP2015151233A (en) * 2014-02-14 2015-08-24 セイコーエプソン株式会社 Liquid discharge device, and method for delivering medium
US12038329B2 (en) 2021-03-04 2024-07-16 Seiko Epson Corporation Color measurement apparatus

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8714688B2 (en) 2008-07-30 2014-05-06 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer
US9211734B2 (en) 2008-07-30 2015-12-15 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer
US9039164B2 (en) 2011-08-26 2015-05-26 Seiko Epson Corporation Liquid ejecting apparatus
US8820878B2 (en) 2012-02-21 2014-09-02 Seiko Epson Corporation Liquid ejecting apparatus and sensor sensitivity setting method in liquid ejecting apparatus
US8851612B2 (en) 2012-02-28 2014-10-07 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
US20130229454A1 (en) * 2012-03-01 2013-09-05 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
US9085136B2 (en) 2012-03-01 2015-07-21 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
JP2013202897A (en) * 2012-03-28 2013-10-07 Seiko Epson Corp Image forming apparatus and method for determining medium end portion
US9016828B2 (en) 2012-04-04 2015-04-28 Seiko Epson Corporation Liquid ejecting apparatus and method for detecting medium edge position in liquid ejecting apparatus
JP2015151233A (en) * 2014-02-14 2015-08-24 セイコーエプソン株式会社 Liquid discharge device, and method for delivering medium
US12038329B2 (en) 2021-03-04 2024-07-16 Seiko Epson Corporation Color measurement apparatus

Similar Documents

Publication Publication Date Title
US8672439B2 (en) Printing apparatus
US6869241B2 (en) Printer and printing method for obtaining a remaining printable distance on the rear end side of a paper
JP5183361B2 (en) Recording apparatus and recording method
JP5267776B2 (en) Recording device
JP4360414B2 (en) Image forming apparatus
KR20050008362A (en) Method for detecting an edge portion of printing medium and Edge detection apparatus
US7762659B2 (en) Recording apparatus, computer readable medium storing thereon recording control program and recording method
US7027076B2 (en) Media-position media sensor
JP2002127521A (en) Edge detector and printer
KR20050022647A (en) Method and apparatus for detecting page edge, and borderless printing method thereby
US6929342B2 (en) Media-position sensor system
JP5621323B2 (en) Image recording device
US6863459B2 (en) Medium-edge setting device and image forming apparatus
JP2007098760A (en) Recorder, recording control program
JP5049700B2 (en) Recording device
JP2023175137A (en) recording device
JP4348959B2 (en) Platen gap adjustment device
JP5442141B2 (en) Recording apparatus and recording method
JP2008068952A (en) Printer, and printing method
JP2019077540A (en) Print control device, positioning control device, positioning control method and positioning control program
JP2018183896A (en) Recording device
JP2008105228A (en) Method and device for judging contact of head, and program
JP2020019595A (en) Printing apparatus
JP2006247904A (en) Recording device, and position correcting method for recording device
JP2003231319A (en) Ink jet printer

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040303

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040406

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20040907