JP2788905B2 - Paper detection device - Google Patents

Paper detection device

Info

Publication number
JP2788905B2
JP2788905B2 JP21348496A JP21348496A JP2788905B2 JP 2788905 B2 JP2788905 B2 JP 2788905B2 JP 21348496 A JP21348496 A JP 21348496A JP 21348496 A JP21348496 A JP 21348496A JP 2788905 B2 JP2788905 B2 JP 2788905B2
Authority
JP
Japan
Prior art keywords
print
platen
sheet
amount
printing
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.)
Expired - Lifetime
Application number
JP21348496A
Other languages
Japanese (ja)
Other versions
JPH1052967A (en
Inventor
幸輝 萩原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TOHOKU NIPPON DENKI KK
Original Assignee
TOHOKU NIPPON DENKI KK
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 TOHOKU NIPPON DENKI KK filed Critical TOHOKU NIPPON DENKI KK
Priority to JP21348496A priority Critical patent/JP2788905B2/en
Publication of JPH1052967A publication Critical patent/JPH1052967A/en
Application granted granted Critical
Publication of JP2788905B2 publication Critical patent/JP2788905B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ドットシリアルプ
リンタなどに用いられる印字用用紙の有無を検出する用
紙検出装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sheet detecting device for detecting the presence or absence of a printing sheet used in a dot serial printer or the like.

【0002】[0002]

【従来の技術】従来、この種の用紙検出装置としては、
例えば特開平03−234696号公報に記載されたも
のがある。図7は同公報に開示された用紙検出装置のブ
ロック図である。図7において、101は印字用紙10
2を検出するためのフォトセンサ、103はフォトセン
サ101の出力であるアナログ信号をデジタル信号に変
換するA/Dコンバータ、104はそのデジタルデータ
を読み込んで用紙102の有無を判断するマイクロプロ
セッサユニット(MPU)である。また、106はMP
U104により書き込み及び読み出しを行い、且つ電源
が断となっても内部にデータが保持される不揮発性メモ
リ、105及び107はMPU104にデジタルデータ
の読み込みタイミングを通知する第1、第2の電圧設定
スイッチである。用紙検出用フォトセンサ101として
は、透過式フォトセンサが使用されている。
2. Description of the Related Art Conventionally, as this type of paper detecting apparatus,
For example, there is one described in JP-A-03-234696. FIG. 7 is a block diagram of a sheet detecting device disclosed in the publication. 7, reference numeral 101 denotes a printing paper 10
2, an A / D converter 103 for converting an analog signal output from the photo sensor 101 into a digital signal, and a microprocessor unit 104 for reading the digital data to determine the presence or absence of the sheet 102 ( MPU). 106 is MP
A non-volatile memory which performs writing and reading by the U104 and retains data internally even when the power is turned off. Numerals 105 and 107 denote first and second voltage setting switches for notifying the MPU 104 of digital data reading timing. It is. As the paper detection photo sensor 101, a transmission type photo sensor is used.

【0003】次に、図7の装置の動作を説明する。ま
ず、印字用紙検出のためのフォトセンサ101に用紙1
02がかからない状態にしておく。その状態では、用紙
検出用フォトセンサ101の発光部への光の伝達効率が
良いため、受光側のトランジスタに流れる電流量が大き
くなり、A/Dコンバータ103へのアナログ入力電圧
は高くなる。A/Dコンバータ103は高いアナログ電
圧をデジタルデータに変換してMPU104に供給す
る。この状態で、第1の電圧設定スイッチ105をオン
すると、MPU104はA/Dコンバータ103からの
デジタルデータを読み込み、印字用紙無しの時の電圧レ
ベルとして、このデータを不揮発性メモリ106に書き
込む。
Next, the operation of the apparatus shown in FIG. 7 will be described. First, the paper 1 is supplied to the photo sensor 101 for detecting the printing paper.
02 is not set. In this state, since the efficiency of transmitting light to the light emitting portion of the sheet detection photosensor 101 is good, the amount of current flowing through the transistor on the light receiving side increases, and the analog input voltage to the A / D converter 103 increases. The A / D converter 103 converts a high analog voltage into digital data and supplies the digital data to the MPU 104. In this state, when the first voltage setting switch 105 is turned on, the MPU 104 reads the digital data from the A / D converter 103 and writes this data to the nonvolatile memory 106 as a voltage level when there is no printing paper.

【0004】次いで、用紙検出フォトセンサ101に用
紙102がかかる状態にする。この状態では、用紙検出
フォトセンサ101の発光部から受光部への光の伝達効
率が光を半通過する薄い紙では半減し、又厚い紙ではほ
とんど零になる。いずれにしても前述した用紙無し状態
よりも受光側のトランジスタに流れる電流値は小さくな
るため、A/Dコンバータ103はこの低いアナログ入
力電圧をデジタルデータに変換し、MPU104に供給
する。この状態で、第2の電圧設定スイッチ107をオ
ンすると、MPU104はA/Dコンバータ103から
のデジタルデータを読み込み、用紙有りの時の電圧レベ
ルとしてこのデータを不揮発性メモリ106に書き込
む。以上の手順で書き込まれた2つのデータの中間値を
用紙有無の判断のためのしきい値レベルとする。
[0006] Next, the sheet 102 is brought into a state where the sheet 102 is applied to the sheet detection photosensor 101. In this state, the transmission efficiency of light from the light-emitting portion to the light-receiving portion of the paper detection photosensor 101 is reduced by half for thin paper that passes light halfway, and almost zero for thick paper. In any case, the value of the current flowing through the transistor on the light receiving side becomes smaller than that in the above-mentioned paper absence state, so that the A / D converter 103 converts this low analog input voltage into digital data and supplies it to the MPU 104. In this state, when the second voltage setting switch 107 is turned on, the MPU 104 reads the digital data from the A / D converter 103 and writes this data to the nonvolatile memory 106 as a voltage level when paper is present. An intermediate value between the two data written in the above procedure is set as a threshold level for determining the presence or absence of a sheet.

【0005】[0005]

【発明が解決しようとする課題】従来の用紙検出方法で
は、反射式フォトセンサを使用し、プラテンからの反射
光を紙無しレベルとして検出し、それに基づいて用紙の
有無を検出するしきい値を設定する場合、実際には紙が
ないのに紙有りと判断し、用紙無しを正しく検出できな
いという問題があった。即ち、ドットシリアルプリンタ
のプラテンは、通常、ゴムで作製されており、その上を
印字ヘッドでたたくと、ゴムの表面が劣化してしまう。
そのため、反射式フォトセンサの反射光の量が増加し、
このとき紙ありと判断するしきい値の方向に変化するの
で、紙有りと誤検出するという問題があった。また、こ
のプラテンの反射光の変化はプラテンの位置によってば
らつきがあり、そのばらつきはユーザが使用する印字デ
ータの印字位置に強く影響されるため、しきい値の設定
を反射光の変化の小さい位置で行うと、反射光の変化が
大きい位置で誤検出を起こしやすいという問題があっ
た。
In the conventional paper detection method, a reflection type photosensor is used, the reflected light from the platen is detected as a paperless level, and a threshold value for detecting the presence or absence of a paper is set based on the detected light. When setting, there is a problem that it is determined that there is paper even though there is actually no paper, and it is not possible to correctly detect the absence of paper. That is, the platen of the dot serial printer is usually made of rubber, and if it is hit with a print head, the surface of the rubber is deteriorated.
Therefore, the amount of reflected light of the reflective photo sensor increases,
At this time, since the direction changes in the direction of the threshold value for determining the presence of paper, there is a problem that the presence of paper is erroneously detected. The change in the reflected light of the platen varies depending on the position of the platen, and the variation is strongly affected by the print position of the print data used by the user. However, there is a problem that erroneous detection is likely to occur at a position where the change of the reflected light is large.

【0006】そこで、本発明は、上記従来の問題点に鑑
み、用紙の誤検出を防止し、正確に用紙の有無を検出す
ることができる用紙検出装置を提供することを目的とし
たものである。
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a paper detecting apparatus capable of preventing erroneous detection of a paper and accurately detecting the presence or absence of a paper in view of the above conventional problems. .

【0007】[0007]

【課題を解決するための手段】本発明の目的は、用紙か
らの反射光を検出するセンサを有し、前記センサの出力
と所定のしきい値を比較することによって、用紙の有無
を検出する用紙検出装置において、印字ヘッドの緩衝材
となるプラテン上の印字量の最も多い位置を検出する手
段と、検出された位置で前記センサの出力を読み込む手
段と、得られたセンサの出力値を基準として前記しきい
値を設定する手段とを有することを特徴とする用紙検出
装置によって達成される。
SUMMARY OF THE INVENTION An object of the present invention is to have a sensor for detecting reflected light from a sheet, and to detect the presence or absence of a sheet by comparing the output of the sensor with a predetermined threshold value. A sheet detecting device for detecting a position on the platen serving as a buffer material of the print head where the amount of printing is the largest, a unit for reading the output of the sensor at the detected position, and a reference to the obtained output value of the sensor. Means for setting the threshold value as described above.

【0008】[0008]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。図1は本発明の第1
の実施形態の構成を示したブロック図である。図1にお
いて、印字データ作成手段1は上位装置9からの送信デ
ータに基づいて、ドットデータ及びそのドットデータの
出力位置等の印字情報を作成し、プリンタ機構制御手段
7と印字量算出手段2に出力する。印字量算出手段2は
ドット列チェック部21と横方向印字量加算部22から
なっていて、ドット列チェック部21において印字デー
タ作成手段1で作成された印字情報を参照し、プラテン
の横方向の各位置における印字量を印字ヘッドを出力す
る場合を1、出力しない場合を0として求め、その結果
に従い、横方向印字量加算部22ではプラテン印字量メ
モリ3の内容を更新する。プラテン印字量メモリ3はプ
ラテンの横方向の各位置における印字量のトータル値を
記憶したテーブルで、電源を切断しても消去しないよう
に不揮発性のメモリが使用されている。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 shows the first embodiment of the present invention.
FIG. 2 is a block diagram showing a configuration of the embodiment. In FIG. 1, a print data creation means 1 creates print data such as dot data and an output position of the dot data based on transmission data from a host device 9, and sends the print data to a printer mechanism control means 7 and a print amount calculation means 2. Output. The print amount calculating means 2 includes a dot string check section 21 and a horizontal print amount adding section 22. The dot string check section 21 refers to the print information created by the print data creating means 1 and checks the horizontal direction of the platen. The print amount at each position is determined as 1 when the print head is output and 0 when not output, and the horizontal print amount adder 22 updates the contents of the platen print amount memory 3 according to the result. The platen printing amount memory 3 is a table storing the total value of the printing amount at each position in the horizontal direction of the platen, and a non-volatile memory is used so as not to be erased even when the power is turned off.

【0009】印字量検索手段4はプラテン印字量メモリ
3としきい値設定手段5の間に設けられ、プラテン印字
量メモリ3の印字量の最大値を検索し、最大値とその最
大値を示すプラテンの横方向位置をしきい値設定手段5
に通知する。しきい値設定手段5はセンサ位置制御部5
1、センサ読み込み部52、しきい値設定部53で構成
され、最大印字量検索手段4からの情報をもとに、コン
パレータ6の比較電圧12を設定する制御を行う。比較
電圧12は詳しく後述するように印字量が最大値を示す
プラテン13の横方向位置における反射式フォトセンサ
8の出力電圧値を基準として設定される。反射式フォト
センサ8は横送り機構15の上に搭載され、左右方向に
移動して対象物の反射光に対し、対数的に電圧値に変換
する。コンパレータ6は反射式フォトセンサ8の出力と
比較電圧12を比較し、比較電圧12が小さい場合には
論理値1を、比較電圧12が大きい場合には論理値0を
プリンタ機構制御手段7に出力する。プリンタ機構制御
手段7では論理値1の時には紙有り、論理値0の時には
紙無しと判断する。
The print amount search means 4 is provided between the platen print amount memory 3 and the threshold value setting means 5, searches the maximum value of the print amount in the platen print amount memory 3, and displays the maximum value and the platen indicating the maximum value. Threshold value setting means 5
Notify. The threshold setting means 5 includes a sensor position control unit 5
1, a sensor reading unit 52 and a threshold setting unit 53, which perform control to set the comparison voltage 12 of the comparator 6 based on information from the maximum printing amount search unit 4. The comparison voltage 12 is set on the basis of the output voltage value of the reflective photosensor 8 at the horizontal position of the platen 13 where the printing amount has the maximum value, as described later in detail. The reflection type photo sensor 8 is mounted on the lateral feed mechanism 15 and moves in the left-right direction to logarithmically convert the reflected light of the object into a voltage value. The comparator 6 compares the output of the reflection type photosensor 8 with the comparison voltage 12, and outputs a logical value 1 to the printer mechanism control means 7 when the comparison voltage 12 is low and a logical value 0 when the comparison voltage 12 is high. I do. The printer mechanism controller 7 determines that there is paper when the logical value is 1, and that there is no paper when the logical value is 0.

【0010】印字ヘッド10は電磁石を駆動力としたn
本のピンで構成され、プラテン13との間に用紙16が
配置されている。また、用紙16と印字ヘッド10の間
にインクを塗布したリボン11が配置されており、その
上にピンを出力することで用紙16にインクが付着し印
刷が行われる。プラテン13は円柱状形状のゴム製から
なるローラで、摩擦力により用紙16を前後方向に送る
機能、及び印字ヘッド10のピンの緩衝材としての機能
を持っている。印字範囲14は印字ヘッド10のピンが
出力されるプラテン13上の範囲で、説明上斜線で示し
ている。プリンタ機構制御手段7は印字データ作成手段
1で作成された印字情報に従って横送り機構15及び印
字ヘッド10等のプリンタ機構を制御し、用紙16上に
印刷を行う。横送り機構15は印字ヘッド10と反射式
フォトセンサ8を搭載して、左右方向に移動させる機構
である。
The print head 10 uses an electromagnet as a driving force.
The paper 16 is arranged between the platen 13 and the paper 16. Further, a ribbon 11 coated with ink is arranged between the paper 16 and the print head 10. By outputting a pin on the ribbon 11, the ink adheres to the paper 16 and printing is performed. The platen 13 is a cylindrical roller made of rubber and has a function of feeding the paper 16 in the front-rear direction by frictional force and a function as a buffer material for pins of the print head 10. The print range 14 is a range on the platen 13 where the pins of the print head 10 are output, and is indicated by diagonal lines for explanation. The printer mechanism control means 7 controls the printer mechanisms such as the horizontal feed mechanism 15 and the print head 10 according to the print information created by the print data creation means 1, and performs printing on the paper 16. The horizontal feed mechanism 15 is a mechanism that mounts the print head 10 and the reflective photosensor 8 and moves the print head 10 in the left-right direction.

【0011】次に、本実施形態の動作を図2に基づいて
説明する。図2において、まず、印字データ作成手段1
で、上位装置9から送信されたデータをもとに印字情報
が作成される(S1)。ドット列チェック部21ではこ
の印字情報から1回の印字における各ドット列の印字量
を求め、横方向印字量加算部22によりプラテン印字量
メモリ3を更新する(S2,S3)。なお、プラテン印
字量メモリ3は書き込み回数の制限がある不揮発性のメ
モリであるため、実際にメモリに書き込むタイミング
は、求めた印字量をある程度揮発性メモリにため込んで
おき、ため込んだ印字量がある基準に達したときに不揮
発性メモリに書き込む等の処置を行った方が望ましい。
Next, the operation of this embodiment will be described with reference to FIG. In FIG. 2, first, the print data creation means 1
Then, print information is created based on the data transmitted from the host device 9 (S1). The dot line check unit 21 calculates the print amount of each dot line in one printing from the print information, and updates the platen print amount memory 3 by the horizontal print amount adding unit 22 (S2, S3). Since the platen print amount memory 3 is a non-volatile memory with a limited number of times of writing, the timing of actually writing the memory is such that the obtained print amount is stored in the volatile memory to some extent, and the stored print amount is It is desirable to take measures such as writing to the non-volatile memory when the standard is reached.

【0012】次いで、印字量検索手段4ではプラテン印
字量メモリ3における印字量の最大値を検索し、印字量
が最大となっている印字範囲14上の位置Pを求める
(S4)。また、プリンタ内に用紙16がセットされて
いるかどうかをチェックし(S5)、用紙16がセット
されていれば、比較電圧12は変更しない(S6)。用
紙16がセットされていない場合は、センサ位置制御部
51により印字量検索手段4で求めた位置Pに反射式フ
ォトセンサ8を移動させ、センサ読み込み部52におい
て位置Pでの反射式フォトセンサ8の出力電圧を読み込
み、しきい値設定部53でその読み込んだ値を基準とし
て、コンパレータ6の比較電圧12を設定する(S
7)。
Next, the print amount searching means 4 searches the maximum value of the print amount in the platen print amount memory 3 to obtain a position P on the print range 14 where the print amount is maximum (S4). Also, it is checked whether the paper 16 is set in the printer (S5). If the paper 16 is set, the comparison voltage 12 is not changed (S6). When the paper 16 is not set, the reflection type photosensor 8 is moved to the position P obtained by the print amount search unit 4 by the sensor position control unit 51, and the reflection type photosensor 8 at the position P is read by the sensor reading unit 52. Is read, and the threshold setting unit 53 sets the comparison voltage 12 of the comparator 6 on the basis of the read value (S
7).

【0013】なお、本実施形態では、印字量が最大値を
示す位置のみで、比較電圧12を決めているが、プラテ
ン上で印字量の多い上位の複数の位置を検出し、この複
数の位置での反射式フォトセンサ8の出力値から比較電
圧12を求める方がよい。即ち、印字量の大きい複数の
位置でフォトセンサ8の出力値を読み込み、最も劣化の
進んでいる位置の出力値を基準として比較電圧12を設
定するのが望ましい。プリンタ機構制御手段7はコンパ
レータ6の出力結果を監視しながら、用紙16がセット
している範囲内で印字を実行する(S8)。
In this embodiment, the comparison voltage 12 is determined only at the position where the printing amount indicates the maximum value. However, a plurality of upper positions having a large printing amount on the platen are detected, and the plurality of positions are detected. It is better to obtain the comparison voltage 12 from the output value of the reflection type photosensor 8 at the step S1. That is, it is desirable to read the output values of the photosensor 8 at a plurality of positions where the print amount is large, and to set the comparison voltage 12 based on the output values of the positions where deterioration has progressed most. The printer mechanism control means 7 executes printing within the range where the paper 16 is set while monitoring the output result of the comparator 6 (S8).

【0014】次に、しきい値設定手段5による比較電圧
の設定方法について説明する。図3は印字範囲14の左
右方向位置における印字量と反射式フォトセンサ8の出
力電圧の変化を示した図である。左右方向の各位置は一
番左側を0とし、ドット分解能毎の間隔で、右方向へ
1,2,3...nと割り振っている。図3では説明上
n=9としている。まず、状態1は初期状態であり、印
字は一度も実施されていないため、各印字位置における
反射式フォトセンサ8の出力は全てX0の値を示してい
る。状態1においては、しきい値設定手段5では比較電
圧12の電圧値として、X2(=X0+Z)の値を設定
する。ここで、Zは次に比較電圧12を設定するまでの
印字面の劣化による反射式フォトセンサ8の出力の変化
に十分対応できる値とする。
Next, a method of setting the comparison voltage by the threshold value setting means 5 will be described. FIG. 3 is a diagram showing changes in the print amount and the output voltage of the reflective photosensor 8 at the left and right positions of the print range 14. Each position in the left-right direction is 0 on the leftmost side, and 1, 2, 3,. . . Assigned to n. In FIG. 3, n = 9 for explanation. First, state 1 is an initial state, and since printing has never been performed, all outputs of the reflective photosensor 8 at each printing position indicate the value of X0. In state 1, the threshold value setting unit 5 sets the value of X2 (= X0 + Z) as the voltage value of the comparison voltage 12. Here, Z is a value that can sufficiently cope with a change in the output of the reflective photosensor 8 due to the deterioration of the printing surface until the comparison voltage 12 is set next time.

【0015】状態2は状態1からT時間印字に使用した
場合の印字量と反射式フォトセンサ8の出力結果で、し
きい値設定手段5では印字量の一番大きい印字位置3の
位置に反射式フォトセンサ8を移動させる。印字位置3
の位置では反射式フォトセンサ8の出力は電圧値X1を
示しているので、しきい値設定手段5では比較電圧12
の電圧値として、X4(=X1+Z)の値を設定する。
次に、状態3は状態2から更にT時間印字に使用した場
合の印字量と反射式フォトセンサ8の出力結果で、印字
量は印字位置3と7が最大値を示している。この場合、
印字量検索手段4ではそれぞれの印字位置の前後の印字
量を比較し、その結果、状態3では印字位置7近辺の印
字密度が高いことから、しきい値設定手段5には、印字
位置7が印字量が最大であることを知らせる。しきい値
設定手段5では印字位置7の位置に反射式フォトセンサ
8を移動させる。印字位置7の位置では反射式フォトセ
ンサ8の出力は電圧値X3を示しているので、比較電圧
12の値としてX6(=X3+Z)の値を設定する。
State 2 shows the print amount and the output result of the reflection type photosensor 8 when used for T-time printing from state 1, and the threshold value setting means 5 reflects the light to the print position 3 where the print amount is the largest. The photosensor 8 is moved. Printing position 3
In the position of, the output of the reflection type photosensor 8 indicates the voltage value X1, so the threshold value setting means 5 sets the comparison voltage 12
Is set to the value of X4 (= X1 + Z).
Next, state 3 shows the print amount and the output result of the reflection type photosensor 8 when printing is further performed for T time from state 2, and the print amount shows the maximum value at print positions 3 and 7. in this case,
The print amount search means 4 compares the print amounts before and after each print position. As a result, in state 3, the print density near the print position 7 is high. Notifies that the printing amount is maximum. The threshold value setting means 5 moves the reflection type photosensor 8 to the position of the printing position 7. At the position of the printing position 7, the output of the reflection type photosensor 8 indicates the voltage value X3, so the value of X6 (= X3 + Z) is set as the value of the comparison voltage 12.

【0016】本実施形態では、プラテンの印字面の劣化
が最も進んでいる位置をプラテン上の左右方向の位置に
おける印字量の最大値を示す位置として求め、その位置
の反射式フォトセンサの出力値を基準として用紙の有無
を識別するしきい値を設定しているので、プラテンが劣
化しても用紙無しを用紙有りと判断することがなく、用
紙の有無を正確に検出することができる。また、プラテ
ン上の最も印字量の多い位置を最も劣化の大きい位置と
し、メモリに蓄積した印字量の合計値に基づいて劣化の
最も大きい位置を検出しているので、プラテンの劣化位
置を高速で検出することができる。
In this embodiment, the position where the deterioration of the printing surface of the platen is most advanced is determined as the position indicating the maximum value of the printing amount in the horizontal position on the platen, and the output value of the reflection type photo sensor at that position is obtained. , The threshold value for identifying the presence / absence of paper is set, so that the presence / absence of paper can be accurately detected without determining that paper is absent even if the platen has deteriorated. In addition, the position with the largest printing amount on the platen is set as the position with the largest deterioration, and the position with the largest deterioration is detected based on the total value of the printing amounts accumulated in the memory. Can be detected.

【0017】次に、本発明の第2の実施形態について説
明する。図4は本実施形態の構成を示したブロック図で
ある。本実施形態では、まず、図1の印字量算出手段2
におけるドット列チェック部21と横方向印字量加算部
22の代わりに、ドットチェック部23と印字面印字量
加算部24が設けられている。また、しきい値設定手段
5の中に回転位置制御部54が設けられ、この回転位置
制御部54はプラテン回転位置制御手段17に接続され
ている。
Next, a second embodiment of the present invention will be described. FIG. 4 is a block diagram showing the configuration of the present embodiment. In the present embodiment, first, the print amount calculation unit 2 in FIG.
, A dot check unit 23 and a print surface print amount addition unit 24 are provided instead of the dot row check unit 21 and the horizontal print amount addition unit 22. Further, a rotation position control unit 54 is provided in the threshold value setting unit 5, and the rotation position control unit 54 is connected to the platen rotation position control unit 17.

【0018】プラテン印字量メモリ3は第1の実施形態
では印字範囲14に対して横方向の印字量のみを記憶し
ていたが、本実施形態では印字範囲14を1つの面とし
て考え、縦横二方向の二次元の座標の位置における印字
量を記憶するものである。ドットチェック部23は1回
の印字において出力するドットの位置を1、出力しない
ドットの位置を0とし、印字面印字量加算部24では印
字範囲14の各座標位置に対応したプラテン印字量メモ
リ3のテーブル位置に、ドットチェック部23の結果を
加算する。プラテン回転位置制御手段17は、エンコー
ダ等を利用してプラテン13の回転方向における任意の
位置を原点とし、縦方向の印字分解能単位で用紙送り方
向に沿って、1,2,3...Nと割り振って、結果的
に印字範囲14の縦方向の位置を管理できるようにして
いる。その他の構成は図1と同じである。
Although the platen printing amount memory 3 stores only the printing amount in the horizontal direction with respect to the printing range 14 in the first embodiment, in the present embodiment, the printing range 14 is considered as one surface, The print amount at the position of the two-dimensional coordinates in the direction is stored. The dot check unit 23 sets the position of the dot to be output in one printing to 1 and the position of the dot not to be output to 0, and the print surface print amount adding unit 24 stores the platen print amount memory 3 corresponding to each coordinate position of the print range 14. The result of the dot check unit 23 is added to the table position. The platen rotation position control means 17 uses an encoder or the like to set an arbitrary position in the rotation direction of the platen 13 as the origin, and along the paper feed direction in units of vertical printing resolution, 1, 2, 3,. . . N is assigned so that the vertical position of the print range 14 can be managed as a result. Other configurations are the same as those in FIG.

【0019】次に、本実施形態の動作を図5に基づいて
説明する。なお、図5のS1,S9の印字データ作成手
段1、プリンタ機構制御手段7の動作は、第1の実施の
形態のS1,S8の動作と同一であるため説明は省略す
る。また、第1の実施の形態では、印字面の縦方向位置
の劣化は同一として扱っていたが、本実施形態では、次
のように印字面の劣化を二次元の座標で管理している。
まず、S1で印字情報を作成した後、ドットチェック部
23では印字データ作成手段1で作成された印字情報か
ら1回の印字における各ドットの印字量(1または0)
を求め、印字面印字量加算部24によりプラテン印字量
メモリ3の内容を更新する(S2,S3)。次いで、印
字量検索手段4においてプラテン印字量メモリ3におけ
る印字量の最大値を検索し、印字量が最大となっている
印字範囲14上の座標Qを求める(S4)。
Next, the operation of this embodiment will be described with reference to FIG. Note that the operations of the print data creation unit 1 and the printer mechanism control unit 7 in S1 and S9 in FIG. 5 are the same as the operations in S1 and S8 in the first embodiment, and a description thereof will be omitted. In the first embodiment, the deterioration of the print surface in the vertical direction is treated as the same, but in the present embodiment, the deterioration of the print surface is managed by two-dimensional coordinates as follows.
First, after the print information is created in S1, the dot check unit 23 calculates the print amount (1 or 0) of each dot in one printing from the print information created by the print data creation unit 1.
Is updated, and the contents of the platen print amount memory 3 are updated by the print surface print amount adder 24 (S2, S3). Next, the print amount searching means 4 searches the maximum value of the print amount in the platen print amount memory 3, and obtains the coordinates Q on the print range 14 where the print amount is maximum (S4).

【0020】続いて、プリンタ内に用紙16がセットさ
れているかどうかチェックし(S5)、用紙16がセッ
トされていれば、比較電圧12は変更しない(S6)。
用紙16がセットされていない場合は、センサ位置制御
部51により印字量検索手段4で求めた座標Qの横方向
位置に反射式フォトセンサ8を移動させ、更に回転位置
制御部54によりプラテン13を回転させて座標Qの縦
方向位置が反射式フォトセンサ8の位置にくるように制
御する(S7)。この後、センサ読み込み部52におい
て座標Qでの反射式フォトセンサ8の出力電圧を読み込
み、しきい値設定部53でその読み込んだ値を基準とし
て、コンパレータ6の比較電圧12を設定する(S
8)。なお、本実施形態においても、第1の実施形態と
同様にプラテン上の印字量の多い上位の複数の位置を検
出し、複数の位置でのセンサ出力からしきい値を設定し
てもよい。
Subsequently, it is checked whether the paper 16 is set in the printer (S5). If the paper 16 is set, the comparison voltage 12 is not changed (S6).
When the paper 16 is not set, the reflection type photosensor 8 is moved by the sensor position control unit 51 to the lateral position of the coordinate Q obtained by the print amount search unit 4, and the platen 13 is moved by the rotation position control unit 54. The rotation is controlled so that the vertical position of the coordinate Q comes to the position of the reflective photosensor 8 (S7). Thereafter, the output voltage of the reflective photosensor 8 at the coordinate Q is read by the sensor reading section 52, and the threshold voltage setting section 53 sets the comparison voltage 12 of the comparator 6 based on the read value (S).
8). In this embodiment, as in the first embodiment, a plurality of upper positions with a large print amount on the platen may be detected, and a threshold value may be set based on sensor outputs at the plurality of positions.

【0021】次に、本実施形態のしきい値の設定方法を
図6を参照して説明する。図6は印字範囲14の二次元
の座標位置における印字量の変化を示した図である。左
右方向の各位置は一番左側を0とし、ドット分解能毎の
間隔で、右方向へ1,2,3...nと割り振ってい
る。同様に、縦方向の各位置はプラテン回転位置制御手
段17の原点を0とし、用紙送り方向に1,2,
3...Nと割り振っている。ここでは、説明上n=
9,N=9としている。図6において、まず、状態1は
初期状態で、印字は一度も実施されていないため、各印
字位置における印字量はすべて0である。このとき、反
射式フォトセンサ8の出力がX0の値を示したとする
と、しきい値設定手段5では比較電圧12の値としてX
2(=X0+Z)の値を設定する。ここで、Zは次に比
較電圧12を設定するまでの印字面の劣化による反射式
フォトセンサ8の出力の変化に十分対応できる値とす
る。
Next, a method of setting a threshold value according to the present embodiment will be described with reference to FIG. FIG. 6 is a diagram showing a change in the print amount at the two-dimensional coordinate position of the print range 14. Each position in the left-right direction is 0 on the leftmost side, and 1, 2, 3,. . . Assigned to n. Similarly, the origin of the platen rotation position control means 17 is set to 0 for each position in the vertical direction, and 1, 2, 2
3. . . Assigned to N. Here, n =
9, N = 9. In FIG. 6, first, state 1 is an initial state, and since printing has never been performed, the print amount at each print position is all zero. At this time, if the output of the reflective photosensor 8 indicates the value of X0, the threshold value setting means 5 sets the value of the comparison voltage 12 to X
2 (= X0 + Z) is set. Here, Z is a value that can sufficiently cope with a change in the output of the reflective photosensor 8 due to the deterioration of the printing surface until the comparison voltage 12 is set next time.

【0022】次に、状態2は状態1からT時間印字に使
用した場合の印字量で、しきい値設定手段5では印字量
の一番大きい座標(3,3)の位置に反射式フォトセン
サ8がくるように横送り機構15及びプラテン13を動
作させる。座標(3,3)の位置で反射式フォトセンサ
8の出力が電圧値X1を示したとすると、比較電圧12
の値としてX4(=X1+Z)の値を設定する。状態3
は状態2から更にT時間印字に使用した場合の印字量と
反射式フォトセンサ8の出力結果で、印字量は座標
(3,3)と(7,7)が最大値を示している。
Next, state 2 is the print amount when used for T-time printing from state 1, and the threshold value setting means 5 sets the reflection type photosensor at the position of the coordinate (3, 3) where the print amount is the largest. The lateral feed mechanism 15 and the platen 13 are operated so that the position 8 comes. Assuming that the output of the reflection type photosensor 8 indicates the voltage value X1 at the position of the coordinates (3, 3), the comparison voltage 12
Is set as the value of X4 (= X1 + Z). State 3
Indicates the print amount and the output result of the reflection type photosensor 8 when used for T-time printing further from the state 2, and the print amount shows the maximum value at the coordinates (3, 3) and (7, 7).

【0023】このように印字量の多い位置が複数ある場
合は、印字量検索手段4はそれぞれの座標の周辺の印字
量を比較する。この場合は、図6から明らかなように状
態3においては座標(3,3)の周辺よりも座標(7,
7)周辺の印字密度が高いので、しきい値設定手段5に
は座標(7,7)が印字量が最大であることを知らせ
る。しきい値設定手段5では座標(7,7)の位置に反
射式フォトセンサ8がくるように横送り機構15及びプ
ラテン13を動作させる。座標(7,7)の位置で反射
式フォトセンサ8の出力が電圧値X3を示したとする
と、比較電圧12の値としてX6(=X3+Z)の値を
設定する。
When there are a plurality of positions having a large print amount, the print amount searching means 4 compares the print amounts around the respective coordinates. In this case, as is clear from FIG. 6, in the state 3, the coordinates (7,
7) Since the peripheral printing density is high, the threshold setting means 5 notifies the coordinates (7, 7) that the printing amount is the maximum. The threshold value setting means 5 operates the traversing mechanism 15 and the platen 13 so that the reflective photosensor 8 comes to the position of the coordinates (7, 7). Assuming that the output of the reflection type photosensor 8 indicates the voltage value X3 at the position of the coordinates (7, 7), the value of X6 (= X3 + Z) is set as the value of the comparison voltage 12.

【0024】本実施形態では、プラテンの印字面の劣化
が最も進んでいる位置をプラテン面の二次元の座標位置
から求め、その位置の反射式フォトセンサの出力値を基
準として、用紙の有無を識別するしきい値を設定してい
るので、プラテンの劣化の最も進んでいる位置を正確に
検出でき、第1の実施形態に比べて更に用紙の検出精度
を向上することができる。
In this embodiment, the position where the deterioration of the printing surface of the platen is most advanced is determined from the two-dimensional coordinate position of the platen surface, and the presence or absence of paper is determined based on the output value of the reflection type photosensor at that position. Since the discrimination threshold is set, the position where the deterioration of the platen is most advanced can be accurately detected, and the detection accuracy of the sheet can be further improved as compared with the first embodiment.

【0025】[0025]

【発明の効果】以上説明したように本発明によれば、プ
ラテン上の印字量の最も多い位置を検出し、その位置の
センサ出力を基準としてしきい値を設定するので、プラ
テンが劣化して用紙が無いのに用紙有りと誤検出するこ
とがなくなり、用紙の有無を正確に検出できるという効
果がある。
As described above, according to the present invention, the position where the printing amount on the platen is the largest is detected, and the threshold value is set based on the sensor output at that position. This eliminates the possibility of erroneously detecting that there is a sheet even though there is no sheet, and has the effect of accurately detecting the presence or absence of a sheet.

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

【図1】本発明の第1の実施形態の構成を示したブロッ
ク図である。
FIG. 1 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】図1の実施形態の動作を示したフローチャート
である。
FIG. 2 is a flowchart showing the operation of the embodiment of FIG.

【図3】図1の実施形態のしきい値の設定方法を説明す
るための図である。
FIG. 3 is a diagram for explaining a method of setting a threshold value in the embodiment of FIG.

【図4】本発明の第2の実施形態を示したブロック図で
ある。
FIG. 4 is a block diagram showing a second embodiment of the present invention.

【図5】図4の実施形態の動作を示したフローチャート
である。
FIG. 5 is a flowchart showing an operation of the embodiment of FIG. 4;

【図6】図4の実施形態のしきい値の設定方法を説明す
るための図である。
FIG. 6 is a diagram for explaining a method for setting a threshold value in the embodiment of FIG. 4;

【図7】従来例の用紙検出装置を示した回路図である。FIG. 7 is a circuit diagram showing a conventional sheet detection device.

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

1 印字データ作成手段 2 印字量算出手段 3 プラテン印字量メモリ 4 印字量検索手段 5 しきい値設定手段 6 コンパレータ 7 プリンタ機構制御手段 8 反射式フォトセンサ 10 印字ヘッド 11 インクリボン 13 プラテン 15 横送り機構 16 用紙 DESCRIPTION OF SYMBOLS 1 Print data creation means 2 Print amount calculation means 3 Platen print amount memory 4 Print amount search means 5 Threshold value setting means 6 Comparator 7 Printer mechanism control means 8 Reflective photo sensor 10 Print head 11 Ink ribbon 13 Platen 15 Lateral feed mechanism 16 paper

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 用紙からの反射光を検出するセンサを有
し、前記センサの出力と所定のしきい値を比較すること
によって、用紙の有無を検出する用紙検出装置におい
て、印字ヘッドの緩衝材となるプラテン上の印字量の最
も多い位置を検出する手段と、検出された位置で前記セ
ンサの出力を読み込む手段と、得られたセンサの出力値
を基準として前記しきい値を設定する手段とを有するこ
とを特徴とする用紙検出装置。
1. A sheet detecting device having a sensor for detecting reflected light from a sheet and comparing the output of the sensor with a predetermined threshold value to detect the presence or absence of a sheet. Means for detecting the position of the largest print amount on the platen, means for reading the output of the sensor at the detected position, and means for setting the threshold value based on the output value of the obtained sensor. A sheet detection device comprising:
【請求項2】 請求項1に記載の用紙検出装置におい
て、前記位置検出手段は、前記プラテンの横方向の位置
における印字量の合計を蓄積する手段を含み、前記蓄積
手段を検索することによってプラテンの横方向で最も印
字量の多い位置を検出することを特徴とする用紙検出装
置。
2. The sheet detecting apparatus according to claim 1, wherein said position detecting means includes means for accumulating a total print amount at a position in a lateral direction of said platen, and said platen is searched by searching said accumulating means. A sheet detection device that detects a position where the amount of printing is the largest in the horizontal direction.
【請求項3】 請求項1に記載の用紙検出装置におい
て、前記位置検出手段は、前記プラテンの横方向と縦方
向における2次元の各座標位置で印字量の合計を蓄積す
る手段を含み、前記蓄積手段を検索することによってプ
ラテンの2次元座標位置で最も印字量の多い位置を検出
することを特徴とする用紙検出装置。
3. The sheet detecting apparatus according to claim 1, wherein said position detecting means includes means for accumulating a total print amount at each of two-dimensional coordinate positions in a horizontal direction and a vertical direction of said platen, A sheet detecting device for detecting a position with the largest print amount among two-dimensional coordinate positions of a platen by searching a storage unit.
【請求項4】 請求項1または請求項2に記載の用紙検
出装置において、前記位置検出手段は、前記プラテン上
で印字量の多い上位の複数の位置を検出し、得られた複
数の位置のセンサ出力からしきい値を設定することを特
徴とする用紙検出装置。
4. The sheet detecting device according to claim 1, wherein said position detecting means detects a plurality of upper positions having a large print amount on said platen, and detects a plurality of obtained positions. A sheet detecting device for setting a threshold value from a sensor output.
JP21348496A 1996-08-13 1996-08-13 Paper detection device Expired - Lifetime JP2788905B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21348496A JP2788905B2 (en) 1996-08-13 1996-08-13 Paper detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21348496A JP2788905B2 (en) 1996-08-13 1996-08-13 Paper detection device

Publications (2)

Publication Number Publication Date
JPH1052967A JPH1052967A (en) 1998-02-24
JP2788905B2 true JP2788905B2 (en) 1998-08-20

Family

ID=16639970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21348496A Expired - Lifetime JP2788905B2 (en) 1996-08-13 1996-08-13 Paper detection device

Country Status (1)

Country Link
JP (1) JP2788905B2 (en)

Also Published As

Publication number Publication date
JPH1052967A (en) 1998-02-24

Similar Documents

Publication Publication Date Title
US5083218A (en) Hand-held image reading apparatus
EP1625941B1 (en) Varying printing speed between porous and swellable media via ink/toner dry time profiles
EP1213150B1 (en) Medium detecting method and device, and printer
US7025517B2 (en) Detecting the print positions of a printing medium and keeping constant positions
KR100193815B1 (en) Paper Feed Error Correction
US7983606B2 (en) Transfer belt driving control method and transfer belt driving control apparatus for color registration correction
JP2788905B2 (en) Paper detection device
KR100474468B1 (en) Apparatus and method of determining type of printing media for image forming apparatus
JPH0421482A (en) Printer with paper width detector
KR100341783B1 (en) Apparatus for detecting of paper size
US20070036602A1 (en) Apparatus and method for detecting the amount of ink ribbon used
JP2738302B2 (en) Printing device
KR20060042733A (en) Method and apparatus of detecting life information of consumable part in image forming device
JPH05319603A (en) Image forming device
JP2004059179A (en) Detecting device, recording device and method for detecting recording medium
KR100186601B1 (en) The number sheets storing method and device for lbp
JPH03138254A (en) Paper sheet body detecting device
JP4093082B2 (en) Image forming apparatus
JP2024041543A (en) Electronic apparatus and program
JP3389900B2 (en) Print processing apparatus and print processing method
US20040263888A1 (en) Apparatus and method for printing an image on a print medium
JP2000081815A (en) Printer controller
KR19980028466A (en) Transfer Environment Retrieval Device and Method of Electrophotographic Development Image Forming Device
JPH01150563A (en) Printing apparatus
JPS57207986A (en) Printer having jam detecting means