JPH07101101A - Serial printer - Google Patents
Serial printerInfo
- Publication number
- JPH07101101A JPH07101101A JP5245100A JP24510093A JPH07101101A JP H07101101 A JPH07101101 A JP H07101101A JP 5245100 A JP5245100 A JP 5245100A JP 24510093 A JP24510093 A JP 24510093A JP H07101101 A JPH07101101 A JP H07101101A
- Authority
- JP
- Japan
- Prior art keywords
- printing
- pattern
- width
- output voltage
- phototransistor
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 230000003287 optical effect Effects 0.000 claims abstract description 40
- 238000012360 testing method Methods 0.000 claims description 38
- 238000001514 detection method Methods 0.000 claims description 14
- 238000012937 correction Methods 0.000 claims description 6
- 230000002457 bidirectional effect Effects 0.000 claims description 4
- 239000006071 cream Substances 0.000 abstract description 6
- 238000007689 inspection Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 4
- 102100027340 Slit homolog 2 protein Human genes 0.000 description 2
- 101710133576 Slit homolog 2 protein Proteins 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003292 diminished effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
- Dot-Matrix Printers And Others (AREA)
- Character Spaces And Line Spaces In Printers (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、正逆両方向印字が可能
なシリアルプリンタに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer capable of bidirectional printing.
【0002】[0002]
【従来の技術】シリアルプリンタでは、印字ヘッドを紙
送り方向と直交する方向に移動して正逆両方向印字でき
るようになっている。2. Description of the Related Art In a serial printer, a print head can be moved in a direction orthogonal to the paper feed direction to perform bidirectional printing.
【0003】ところで、この種のプリンタでは、印字ヘ
ッドを紙送り方向と直交する方向に移動させるための歯
車機構のバックラッシュやタイミングベルトの弛みなど
に起因して正方向印字時と逆方向印字時とで印字位置に
ずれが生じる。By the way, in this kind of printer, due to backlash of a gear mechanism for moving the print head in a direction orthogonal to the paper feed direction, slack of a timing belt, etc., during forward direction printing and reverse direction printing. And the print position is misaligned.
【0004】この印字位置のずれに対処する技術として
は、例えば特公平5−28669号に開示されている。
この技術では、縦罫線を正方向印字するとともに当該縦
罫線に連続する縦罫線を逆方向印字し、これらの各縦罫
線上を通過するように光センサを走査し、ドットの有無
に応じて変動する光センサの出力電圧値を2値化して各
縦罫線位置を検出し、この検出データに基づいて各縦罫
線位置を比較して正逆方向の印字位置のずれ量を算出
し、そのずれ量に基づいて正方向印字時の印字タイミン
グと逆方向印字時の印字タイミングとを相対的にずらし
て正逆方向の印字位置のずれを補正するようになってい
る。A technique for coping with the deviation of the printing position is disclosed in, for example, Japanese Patent Publication No. 5-286669.
In this technology, vertical ruled lines are printed in the forward direction, vertical ruled lines that are continuous with the vertical ruled lines are printed in the reverse direction, the optical sensor is scanned so as to pass over each of these vertical ruled lines, and it changes depending on the presence or absence of dots. The output voltage value of the optical sensor is binarized, each vertical ruled line position is detected, each vertical ruled line position is compared based on the detected data, and the shift amount of the printing position in the forward and reverse directions is calculated. Based on the above, the print timing for forward printing and the print timing for backward printing are relatively shifted to correct the deviation of the printing position in forward and backward directions.
【0005】[0005]
【発明が解決しようとする課題】ところが、上記従来の
技術では、インクリボンを用いるインパクト式プリンタ
のように印字濃度が次第に薄くなったり、あるいは白色
以外のグレーやクリーム色等の用紙に印字した場合など
には、光センサの出力電圧の変動幅が小さく、光センサ
の出力電圧値を2値化すると、縦罫線位置を検出でき
ず、正逆方向の印字位置のずれを検出できないという問
題がある。However, according to the above-mentioned conventional technique, when the printing density is gradually reduced as in an impact printer using an ink ribbon, or when printing is performed on a paper such as gray or cream color other than white. And the like, there is a problem that the fluctuation range of the output voltage of the optical sensor is small, and if the output voltage value of the optical sensor is binarized, the vertical ruled line position cannot be detected, and the deviation of the printing position in the forward and reverse directions cannot be detected. .
【0006】また、正逆方向の印字位置のずれをドット
幅と同程度の高い精度で補正するには、光センサの出力
電圧値のサンプリング周期をドット幅よりも小さく設定
する必要があり、サンプリング回路および制御回路など
のソフトウェアが複雑化し、高コストになるという問題
がある。Further, in order to correct the deviation of the printing position in the forward and reverse directions with high accuracy as high as the dot width, it is necessary to set the sampling cycle of the output voltage value of the optical sensor to be smaller than the dot width. There is a problem that software such as a circuit and a control circuit becomes complicated and the cost becomes high.
【0007】本発明は、印字濃度が次第に薄くなった
り、グレーやクリーム色等の中間色調の用紙を使用する
場合であっても、正逆方向の印字位置のずれを確実に検
出でき、かつ複雑なソフトウェアを用いることなく正逆
方向の印字位置のずれを高精度に補正できるシリアルプ
リタを得ることを目的とする。The present invention can reliably detect the deviation of the printing position in the forward and reverse directions even when the printing density is gradually reduced or when the paper of an intermediate tone such as gray or cream is used, and it is complicated. An object of the present invention is to obtain a serial printer that can accurately correct the deviation of the printing position in the forward and reverse directions without using various software.
【0008】[0008]
【課題を解決するための手段】本発明は、正逆両方向印
字が可能なシリアルプリンタであって、ドット幅の2倍
よりも大きな検出幅を有し正方向印字された第1のパタ
ーンと当該第1のパターンと同一行上に逆方向印字され
た第2のパターンとからなる所定のテストパターン上を
走査されて当該テストパターンの濃度変化に応じて変動
する電圧を出力する光センサと、光センサの出力電圧値
と光センサの検出幅に基づいて正逆方向の印字位置のず
れ量を算出する演算手段と、演算手段によって算出され
たずれ量に基づいて正方向印字時の印字タイミングと逆
方向印字時の印字タイミングとを相対的にずらして正逆
両方向の印字位置のずれを補正する印字タイミング補正
手段と、を備えていることを特徴としている。SUMMARY OF THE INVENTION The present invention is a serial printer capable of printing in both forward and reverse directions, and has a first pattern which has a detection width larger than twice the dot width and is printed in the forward direction. An optical sensor for scanning a predetermined test pattern, which is composed of a first pattern and a second pattern printed in the opposite direction on the same line, and outputs a voltage that fluctuates according to a change in the density of the test pattern; An arithmetic means for calculating the deviation amount of the printing position in the forward and reverse directions based on the output voltage value of the sensor and the detection width of the optical sensor, and a printing timing reverse to the printing timing in the forward direction printing based on the deviation amount calculated by the arithmetic means. And a print timing correction means for correcting the shift of the print position in both the forward and reverse directions by relatively shifting the print timing at the time of directional printing.
【0009】[0009]
【作用】本発明によれば、正方向印字された第1のパタ
ーンと当該第1のパターンと同一行上に逆方向印字され
た第2のパターンとからなる所定のテストパターン上
に、ドット幅の2倍よりも大きな検出幅を有する光セン
サが走査されてテストパターンの濃度変化に応じて変動
する電圧を出力する。そして、演算手段によって光セン
サの出力電圧値と光センサの検出幅に基づいて正逆方向
の印字位置のずれ量が算出され、このずれ量に基づいて
印字タイミング補正手段が正方向印字時の印字タイミン
グと逆方向印字時の印字タイミングとを相対的にずらし
て正逆両方向の印字位置のずれを補正する。According to the present invention, a dot width is formed on a predetermined test pattern consisting of a first pattern printed in the forward direction and a second pattern printed in the reverse direction on the same line as the first pattern. An optical sensor having a detection width larger than twice the scanning width is scanned to output a voltage that fluctuates according to a change in the density of the test pattern. Then, the calculation means calculates the deviation amount of the printing position in the forward and reverse directions based on the output voltage value of the optical sensor and the detection width of the optical sensor, and the printing timing correction means performs the printing in the forward direction printing based on the deviation amount. The timing and the printing timing at the time of reverse printing are relatively shifted to correct the deviation of the printing position in both the forward and reverse directions.
【0010】したがって、正逆方向の印字位置のずれ量
は、光センサの出力電圧の変動幅の大きさに関係なく算
出される。これにより、印字濃度が次第に薄くなった
り、白色以外のグレーやクリーム色等の用紙に印字した
場合などのように光センサの出力の変動が小さくても、
正逆方向の印字位置のずれを確実に検出できる。Therefore, the shift amount of the printing position in the forward and reverse directions is calculated regardless of the variation width of the output voltage of the optical sensor. As a result, even if the print density is gradually reduced, or the output of the optical sensor fluctuates little, such as when printing on gray or cream color paper other than white,
It is possible to reliably detect the deviation of the printing position in the forward and reverse directions.
【0011】また、光センサの出力電圧値は、ドット幅
の2倍よりも大きな検出幅内でのテストパターンの濃度
変化に応じて変動し、ドット幅よりも大きな範囲内で一
定となる。これにより、光センサの出力電圧値のサンプ
リング周期をドット幅よりも大きく設定しても、正逆方
向の印字位置のずれをドット幅と同程度の高い精度で補
正でき、複雑なソフトウェアを用いる必要がない。Further, the output voltage value of the optical sensor fluctuates according to the density change of the test pattern within the detection width larger than twice the dot width, and becomes constant within the range larger than the dot width. As a result, even if the sampling period of the output voltage value of the optical sensor is set larger than the dot width, the deviation of the printing position in the forward and reverse directions can be corrected with the same high accuracy as the dot width, and complicated software is required There is no.
【0012】[0012]
【実施例】以下、本発明が適用されたシリアルプリンタ
を図面に基づいて説明する。このプリンタでは、図1に
示されるように円柱状のプラテン1に対向して印字ヘッ
ド2が設けられ、プラテン1と印字ヘッド2との間に記
録紙3を給送して印字できるようになっている。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A serial printer to which the present invention is applied will be described below with reference to the drawings. In this printer, as shown in FIG. 1, a print head 2 is provided so as to face a cylindrical platen 1, and a recording paper 3 can be fed between the platen 1 and the print head 2 for printing. ing.
【0013】プラテン1は紙送り方向と直交する方向に
延設され、その外周一部に記録紙3が巻き掛けられるよ
うにして搬送されるようになっている。このプラテン1
は両端部で回転可能に軸支されているとともに改行時等
に図示しない減速機構を介して図示しない紙送りモータ
により回転駆動されて記録紙3の搬送用としても用いら
れるようになっている。The platen 1 is extended in a direction orthogonal to the paper feeding direction, and the recording paper 3 is conveyed such that the recording paper 3 is wound around a part of the outer periphery thereof. This platen 1
Is rotatably supported at both ends, and is also driven to rotate by a paper feed motor (not shown) through a reduction mechanism (not shown) at the time of line feed or the like, and is also used for conveying the recording paper 3.
【0014】印字ヘッド2はキャリア4に搭載され、キ
ャリア4と共にプラテン1に沿って紙送り方向と直交す
る方向へ移動して正逆両方向印字できるようになってい
る。キャリア4は図示しないガイド手段によってプラテ
ン1と平行に案内されるようになっている。キャリア4
には、タイミングベルト5の一部が固着され、このタイ
ミングベルト5を介して移動力が付与されるようになっ
ている。タイミングベルト5はキャリア4の移動方向両
側でタイミングプーリ6、7に巻き掛けられ、一方のタ
イミングプーリ6を介してキャリアモータ8により回転
駆動されてキャリア4を印字ヘッド2と共にプラテン1
に沿って紙送り方向と直交する方向へ移動させるように
なっている。The print head 2 is mounted on the carrier 4 and moves together with the carrier 4 along the platen 1 in a direction orthogonal to the paper feed direction so that printing can be performed in both forward and reverse directions. The carrier 4 is guided parallel to the platen 1 by guide means (not shown). Carrier 4
A part of the timing belt 5 is fixedly attached to, and a moving force is applied via the timing belt 5. The timing belt 5 is wound around the timing pulleys 6 and 7 on both sides in the moving direction of the carrier 4, and is rotationally driven by a carrier motor 8 via one timing pulley 6 to move the carrier 4 together with the print head 2 to the platen 1
It is designed to be moved in a direction orthogonal to the paper feeding direction along the.
【0015】印字ヘッド2の正逆両方向への移動動作お
よび印字動作は、演算手段を構成するCPU(中央処理
装置)9によって制御されるようになっている。すなわ
ち、キャリアモータ8がモータドライバー10を介して
CPU9に接続され、CPU9からモータドライバー1
0に供給される駆動信号によりキャリアモータ8が駆動
されて印字ヘッド2が正逆両方向に移動されるようにな
っている。また、印字ヘッド2がピンドライバー11お
よび印字タイミング補正手段を構成する遅延回路12を
介してCPU9に接続され、CPU9から遅延回路12
を経てピンドライバー11に供給される駆動信号により
印字ヘッド2が所定の印字タイミングで印字動作される
とともにCPU9から遅延回路12を経てピンドライバ
ー11に供給される遅延信号により印字ヘッド2が正方
向印字時の印字タイミングと逆方向印字時の印字タイミ
ングとを相対的にずらして印字動作されるようになって
いる。The movement operation and the printing operation of the print head 2 in both the forward and reverse directions are controlled by a CPU (central processing unit) 9 which constitutes a calculation means. That is, the carrier motor 8 is connected to the CPU 9 via the motor driver 10, and the CPU 9 drives the motor driver 1
The drive signal supplied to 0 drives the carrier motor 8 to move the print head 2 in both forward and reverse directions. Further, the print head 2 is connected to the CPU 9 via a pin driver 11 and a delay circuit 12 which constitutes a print timing correction means, and the CPU 9 delays the delay circuit 12.
The print head 2 performs a printing operation at a predetermined print timing by a drive signal supplied to the pin driver 11 through the print head 2, and the print head 2 prints in the forward direction by a delay signal supplied from the CPU 9 to the pin driver 11 through the delay circuit 12. The printing operation is performed by relatively shifting the printing timing at the time and the printing timing at the time of reverse printing.
【0016】CPU9には、検査モードスイッチ13お
よび記憶回路14が接続され、検査モードスイッチ13
が操作されたときに記憶回路14から所定の記憶情報を
読み込んで記録紙3に図2に示されるようなテストパタ
ーン15が印字ヘッド2を介して印字されるようになっ
ている。The inspection mode switch 13 and the memory circuit 14 are connected to the CPU 9, and the inspection mode switch 13
When a is operated, predetermined storage information is read from the storage circuit 14 and a test pattern 15 as shown in FIG. 2 is printed on the recording paper 3 via the print head 2.
【0017】テストパターン15は、一例としては図2
に示されるように正方向印字される第1のパターン16
と、当該第1のパターン16と同一行上に逆方向印字さ
れる第2のパターン17とで構成される。すなわち、検
査モードスイッチ13が操作されると、印字ヘッド2が
正方向(図1、図2中、矢印A方向)へ移動する間に記
録紙3に第1のパターン16が印字されるとともに印字
ヘッド2が逆方向(図1、図2中、矢印B方向)へ移動
する間に記録紙3の第1のパターン16と同一行上に第
2のパターン17が印字されるようになっている。な
お、図2(a)は、便宜上、第1のパターン16と第2
のパターン17とを別けて図示してある。The test pattern 15 is shown in FIG. 2 as an example.
First pattern 16 printed in the forward direction as shown in FIG.
And a second pattern 17 printed in the opposite direction on the same line as the first pattern 16. That is, when the inspection mode switch 13 is operated, the first pattern 16 is printed on the recording paper 3 while the print head 2 is moving in the forward direction (direction of arrow A in FIGS. 1 and 2) and is printed. While the head 2 moves in the opposite direction (the direction of arrow B in FIGS. 1 and 2), the second pattern 17 is printed on the same line as the first pattern 16 of the recording paper 3. . Note that FIG. 2A shows the first pattern 16 and the second pattern 16 for convenience.
The pattern 17 of FIG.
【0018】第1のパターン16は、図2(a)に示さ
れるように複数のパターン16a、16b、16c、1
6d、16eが所定間隔だけ隔てて行方向に断続的にベ
タ印字され、パターン16aとパターン16bとの間、
パターン16bとパターン16cとの間、パターン16
cとパターン16dとの間およびパターン16dとパタ
ーン16eとの間にそれぞれ空白部16f、16g、1
6h、16iが存在する構成となっている。これに対
し、第2のパターン17は、第1のパターン16の空白
部16g、16h、16iと対応する位置に当該空白部
16g、16h、16iと同一幅のパターン17a、1
7b、17cが断続的にベタ印字される構成となってい
る。The first pattern 16 is composed of a plurality of patterns 16a, 16b, 16c, 1 as shown in FIG.
6d and 16e are solidly printed intermittently in the row direction at predetermined intervals, and between the patterns 16a and 16b,
Between the pattern 16b and the pattern 16c, the pattern 16
The blank portions 16f, 16g, 1 are provided between the pattern c and the pattern 16d and between the pattern 16d and the pattern 16e, respectively.
6h and 16i are present. On the other hand, the second pattern 17 has patterns 17a, 1 having the same width as the blank portions 16g, 16h, 16i at positions corresponding to the blank portions 16g, 16h, 16i of the first pattern 16.
7b and 17c are solidly printed intermittently.
【0019】したがって、正逆方向の印字位置にずれを
生じていないときには、図2(b)に示されるようにパ
ターン16bからパターン16eにかけて連続してベタ
印字されてパターン16aとパターン16bとの間にの
み所定幅W0 の空白部16fが残ることになる。Therefore, when there is no deviation in the printing positions in the forward and reverse directions, solid printing is continuously performed from the pattern 16b to the pattern 16e as shown in FIG. 2B, and the pattern is printed between the patterns 16a and 16b. A blank portion 16f having a predetermined width W 0 remains only in the area.
【0020】これに対し、正逆方向の印字位置が正方向
にずれたとき、すなわち第2のパターン17の印字位置
が第1のパターン16の印字位置に対して相対的に正方
向にずれたときには、図2(d)に示されるようにパタ
ーン17aがパターン16c上に一部重複し、パターン
17bがパターン16d上に一部重複し、かつパターン
17cがパターン16e上に一部重複し、パターン16
aとパターン16bとの間に所定幅W0 の空白部16f
が残り、パターン16bとパターン17aとの間、パタ
ーン16cとパターン17bとの間およびパターン16
dとパターン17cとの間にそれぞれ正逆方向の印字位
置のずれ量と一致する幅W00の空白部16g、16h、
16iが残ることになる。なお、パターン17aとパタ
ーン16cとの重複部分、パターン17bとパターン1
6dとの重複部分およびパターン17cとパターン16
eとの重複部分は、いずれも正逆方向の印字位置のずれ
量と一致する幅W00で高濃度部となる。On the other hand, when the printing positions in the forward and reverse directions are displaced in the forward direction, that is, the printing position of the second pattern 17 is displaced in the forward direction relative to the printing position of the first pattern 16. At times, as shown in FIG. 2D, the pattern 17a partially overlaps the pattern 16c, the pattern 17b partially overlaps the pattern 16d, and the pattern 17c partially overlaps the pattern 16e. 16
a blank portion 16f having a predetermined width W 0 between a and the pattern 16b
Between the patterns 16b and 17a, between the patterns 16c and 17b, and between the patterns 16b.
blank portion 16g of the width W 00 that matches the shift amount of the printing positions of forward and reverse directions between the d and the pattern 17c, 16h,
16i will remain. In addition, the overlapping portion of the pattern 17a and the pattern 16c, the pattern 17b and the pattern 1
6d and pattern 17c and pattern 16
The overlapping portion with e is a high density portion with a width W 00 that matches the shift amount of the printing position in the forward and reverse directions.
【0021】反対に、正逆方向の印字位置が逆方向にず
れたとき、すなわち第2のパターン17の印字位置が第
1のパターン16の印字位置に対して相対的に逆方向に
ずれたときには、図2(f)に示されるようにパターン
17aがパターン16b上に一部重複し、パターン17
bがパターン16c上に一部重複し、かつパターン17
cがパターン16d上に一部重複し、パターン16aと
パターン16bとの間に所定幅W0 の空白部16fが残
り、パターン17aとパターン16cとの間、パターン
17bとパターン16dとの間およびパターン17cと
パターン16eとの間に正逆方向の印字位置のずれ量と
一致する幅W00の空白部16g、16h、16iが残る
ことになる。なお、この場合にも、パターン17aとパ
ターン16bとの重複部分、パターン17bとパターン
16cとの重複部分およびパターン17cとパターン1
6dとの重複部分は、いずれも正逆方向の印字位置のず
れ量と一致する幅W00で高濃度部となる。On the contrary, when the print positions in the forward and reverse directions are displaced in the reverse direction, that is, when the print position of the second pattern 17 is displaced in the reverse direction relative to the print position of the first pattern 16. , The pattern 17a partially overlaps the pattern 16b as shown in FIG.
b partially overlaps the pattern 16c, and the pattern 17
c partially overlaps the pattern 16d, and a blank portion 16f having a predetermined width W 0 remains between the patterns 16a and 16b, between the patterns 17a and 16c, between the patterns 17b and 16d, and between the patterns. blank portion 16g of the width W 00 that matches the shift amount of the forward and reverse directions of the printing position between the 17c and the pattern 16e, 16h, so that the 16i remains. Also in this case, the overlapping portion between the pattern 17a and the pattern 16b, the overlapping portion between the pattern 17b and the pattern 16c, and the pattern 17c and the pattern 1
The overlapping portion with 6d is a high density portion with a width W 00 that matches the shift amount of the printing position in the forward and reverse directions.
【0022】CPU9には、光センサ18が接続され、
光センサ18の作動を制御するとともに光センサ18の
出力データが入力されるようになっている。光センサ1
8は記録紙3の印字面と対向し、この実施例では印字ヘ
ッド2よりも1行分だけ下流に位置するようにキャリア
4に搭載されている。このため、光センサ18はテスト
パターン15の印字後の1行分の改行動作によりテスト
パターン15と対向し、その後のキャリア4の移動動作
によりテストパターン15上を走査されることになる。
このときの改行動作およびキャリア4の移動動作は、C
PU9によって制御される。すなわち、CPU9は、検
査モードスイッチ13が操作されたときに印字ヘッド2
を介して記録紙3にテストパターン15を印字させると
ともに、その後に紙送りモータを駆動して1行分だけ改
行して光センサ18をテストパターン15と対向させ、
かつその後にキャリアモータ8を駆動して光センサ18
を走査させるようになっている。An optical sensor 18 is connected to the CPU 9,
The output data of the optical sensor 18 is input while controlling the operation of the optical sensor 18. Optical sensor 1
8 is mounted on the carrier 4 so as to face the printing surface of the recording paper 3, and in this embodiment, it is located one line downstream of the print head 2. Therefore, the optical sensor 18 opposes the test pattern 15 by a line feed operation for one line after the test pattern 15 is printed, and the test pattern 15 is scanned by the subsequent movement operation of the carrier 4.
At this time, the line feed operation and the movement operation of the carrier 4 are C
It is controlled by PU9. That is, the CPU 9 controls the print head 2 when the inspection mode switch 13 is operated.
The test pattern 15 is printed on the recording paper 3 via the, and then the paper feed motor is driven to feed one line so that the optical sensor 18 faces the test pattern 15.
Then, after that, the carrier motor 8 is driven to drive the optical sensor 18
To scan.
【0023】光センサ18には、図3に示されるように
赤外発光ダイオード18aおよびフォトトランジスタ1
8bが設けられ、テストパターン15上を走査されたと
きにCPU9からの駆動信号により赤外発光ダイオード
18aからテストパターン15に光を照射するとともに
その反射光をフォトトランジスタ18bで受光し、その
受光量に応じた電圧がフォトトランジスタ18bから出
力されるようになっている。すなわち、フォトトランジ
スタ18bの出力電圧は、テストパターン15の濃度変
化に応じて変動する。なお、赤外発光ダイオード18a
からテストパターン15に照射される光は、赤外発光ダ
イオード18aの先端の凸状部により集束されてテスト
パターン15に無駄なく照射されるようになっている。The optical sensor 18 includes an infrared light emitting diode 18a and a phototransistor 1 as shown in FIG.
8b is provided, and when the test pattern 15 is scanned, the infrared light emitting diode 18a irradiates the test pattern 15 with a drive signal from the CPU 9 and the reflected light is received by the phototransistor 18b. Is output from the phototransistor 18b. That is, the output voltage of the phototransistor 18b changes according to the density change of the test pattern 15. The infrared light emitting diode 18a
The light radiated from the test pattern 15 to the test pattern 15 is focused by the convex portion at the tip of the infrared light emitting diode 18a and radiated to the test pattern 15 without waste.
【0024】赤外発光ダイオード18aおよびフォトト
ランジスタ18bは、フォトトランジスタ18bに外乱
光が入射しないようにハウジング20で覆われている。
ハウジング20には、記録紙3の印字面と対向する部分
にスリット20aが形成され、このスリット20aを通
して赤外発光ダイオード18aからテストパターン15
に光が照射されるとともに、その反射光がスリット20
aを通してフォトトランジスタ18bに受光されるよう
になっている。すなわち、スリット20aの幅Dは光セ
ンサ18の検出幅となっている。The infrared light emitting diode 18a and the phototransistor 18b are covered with a housing 20 so that ambient light does not enter the phototransistor 18b.
A slit 20a is formed in a portion of the housing 20 facing the printing surface of the recording paper 3, and the infrared light emitting diode 18a to the test pattern 15 are passed through the slit 20a.
The light is emitted to the slit 20 and the reflected light is reflected by the slit 20.
The phototransistor 18b receives light through a. That is, the width D of the slit 20a is the detection width of the optical sensor 18.
【0025】スリット20aの幅Dは、図4(a)に示
されるように、空白部16fの幅W0 よりも小さく設定
され、かつスリット20aの長さLはテストパターン1
5の高さHよりも小さく設定されている。また、スリッ
ト20aの幅Dは、ドット幅の2倍よりも大きく設定さ
れており、この幅D内でのテストパターン15の濃度変
化に応じてフォトトランジスタ18bの出力電圧が変動
することになる。As shown in FIG. 4A, the width D of the slit 20a is set smaller than the width W 0 of the blank portion 16f, and the length L of the slit 20a is set to the test pattern 1.
It is set to be smaller than the height H of 5. Further, the width D of the slit 20a is set to be larger than twice the dot width, and the output voltage of the phototransistor 18b changes according to the density change of the test pattern 15 within this width D.
【0026】例えば、スリット20aの幅Dよりも大き
な幅W0 の空白部16fの前後に亘って光センサ18が
走査されたときには、図4(a)に二点鎖線で示される
ようにスリット20aの全域が印字部と対向した位置で
は赤外発光ダイオード18aから印字部分にのみ光が照
射されて光の反射率が低いため、フォトトランジスタ1
7bがオンせず、フォトトランジスタ17bの出力電圧
値は図4(b)に示されるように「VB 」と高くなる。
そして、スリット20aの一部が空白部に達すると、フ
ォトトランジスタ18bに徐々に電流が流れ始め、これ
に伴ってフォトトランジスタ18bの出力電圧値が図4
(b)に示されるように徐々に低下する。その後、スリ
ット20aがその幅寸法Dに等しい距離だけ移動する
と、スリット20aの全域が空白部と対向し(破線状態
参照)、赤外発光ダイオード18aから空白部分にのみ
光が照射されてフォトトランジスタ18bの出力電圧値
が図4(B)に示されるように「VB 」よりも低い「V
W 」となる。この状態からスリット20aが(W0 −幅
D)だけ移動すると(一点鎖線状態)、フォトトランジ
スタ18bの出力電圧値は徐々に上昇して「VB 」に戻
る。したがって、スリット20aの全域が印字部と対向
したときのフォトトランジスタ18bの出力電圧値が
「VB 」となり、スリット20aの全域が空白部と対向
したときのフォトトランジスタ18bの出力電圧値が
「VB 」よりも低い「VW 」となり、また出力電圧値が
「VB 」から「VW 」に至る間のフォトトランジスタ1
8bの出力電圧波形はスリット20aの幅Dの範囲で傾
斜し、かつその間のフォトトランジスタ18bの出力電
圧波形は空白部の幅W0 からスリット20aの幅Dを減
じた範囲で一定となる。For example, when the optical sensor 18 is scanned in front of and behind the blank portion 16f having a width W 0 larger than the width D of the slit 20a, the slit 20a is indicated by a chain double-dashed line in FIG. 4A. Of the phototransistor 1 at the position where the whole area of the phototransistor faces the printing portion, the infrared light emitting diode 18a irradiates only the printing portion with light and the light reflectance is low.
7b is not turned on, and the output voltage value of the phototransistor 17b becomes as high as "V B " as shown in FIG. 4 (b).
Then, when a part of the slit 20a reaches a blank portion, a current gradually starts to flow in the phototransistor 18b, and accordingly, the output voltage value of the phototransistor 18b is changed to that in FIG.
It gradually decreases as shown in (b). After that, when the slit 20a moves by a distance equal to the width dimension D, the entire area of the slit 20a faces the blank portion (see the broken line state), and the infrared light emitting diode 18a irradiates only the blank portion with light to cause the phototransistor 18b. The output voltage value of V is lower than "V B " as shown in FIG.
W ". When the slit 20a moves from this state by (W 0 −width D) (dashed line state), the output voltage value of the phototransistor 18b gradually increases and returns to “V B ”. Therefore, the output voltage value of the phototransistor 18b when the entire area of the slit 20a faces the printing portion is "V B ", and the output voltage value of the phototransistor 18b when the entire area of the slit 20a faces the blank portion is "V B ". The phototransistor 1 has “V W ”, which is lower than B ”, and the output voltage value is between“ V B ”and“ V W ”.
The output voltage waveform of 8b inclines in the range of the width D of the slit 20a, and the output voltage waveform of the phototransistor 18b in the meantime becomes constant in the range of the width W 0 of the blank portion minus the width D of the slit 20a.
【0027】同様に、図2(d)、(f)に示されるよ
うに正逆方向の印字位置がずれてスリット20aの幅D
よりも小さな幅W00の空白部16gが残り、この前後に
亘って光センサ18が走査されたときには、図5(b)
に示されるようにスリット20aの全域が印字部と対向
したときのフォトトランジスタ18bの出力電圧値が
「VB 」となり、スリット20aが空白部を跨いで両側
の印字部と対向したときのフォトトランジスタ18bの
出力電圧値が「VB 」よりも低くかつ「VW 」(図4
(b)参照)よりも高い「V」となり、また出力電圧値
が「VB 」から「V」に至る間のフォトトランジスタ1
8bの出力電圧波形は空白部の幅W00の範囲で傾斜し、
かつその間のフォトトランジスタ18bの出力電圧波形
はスリット20aの幅Dから空白部の幅W00を減じた範
囲で一定となる。Similarly, as shown in FIGS. 2D and 2F, the print positions in the forward and reverse directions are displaced and the width D of the slit 20a is changed.
A blank portion 16g having a width W 00 smaller than that remains, and when the optical sensor 18 is scanned before and after the blank portion 16g, FIG.
As shown in FIG. 7, the output voltage value of the phototransistor 18b when the entire area of the slit 20a faces the printing portion is "V B ", and the phototransistor when the slit 20a faces the printing portions on both sides across the blank portion. and lower the output voltage value of 18b is than "V B", "V W" (FIG. 4
The phototransistor 1 has a higher “V” than that in (b) and the output voltage value is between “V B ” and “V”.
The output voltage waveform of 8b is inclined in the range of the width W 00 of the blank portion,
And the output voltage waveform in between the phototransistor 18b is constant in a range obtained by subtracting the width W 00 of the blank portion from the width D of the slit 20a.
【0028】フォトトランジスタ18bはA/D変換器
19を介してCPU9と接続され、CPU9に出力電圧
値が入力されるようになっている。CPU9はフォトト
ランジスタ18bの出力電圧値を所定のタイミングでサ
ンプリングし、このときのフォトトランジスタ18bの
出力電圧値とスリット20aの幅Dに基づいて正逆方向
の印字位置のずれ量を算出し、このずれ量に基づいて遅
延回路12に遅延信号を供給し、遅延回路12により正
方向印字時の印字タイミングと逆方向印字時の印字タイ
ミングとを相対的にずらして正逆両方向の印字位置にず
れを生じないように補正させるようになっている。The phototransistor 18b is connected to the CPU 9 through the A / D converter 19, and the output voltage value is input to the CPU 9. The CPU 9 samples the output voltage value of the phototransistor 18b at a predetermined timing, calculates the deviation amount of the printing position in the forward and reverse directions based on the output voltage value of the phototransistor 18b and the width D of the slit 20a at this time, and A delay signal is supplied to the delay circuit 12 based on the deviation amount, and the delay circuit 12 relatively shifts the printing timing in the forward direction printing and the printing timing in the backward direction printing to shift the printing position in both the forward and reverse directions. It is designed to be corrected so that it does not occur.
【0029】ここで、正逆方向の印字位置のずれ量を算
出する際には、フォトトランジスタ18bの出力電圧値
とスリット20aの幅Dに基づいて正逆方向の印字位置
のずれの絶対量を算出するとともに所定位置でのフォト
トランジスタ18bの出力電圧値に基づいて正逆方向の
印字位置のずれの方向を判別し、正逆方向の印字位置の
ずれの絶対量と正逆方向の印字位置のずれの方向とから
正逆方向の印字位置のずれ量を算出するようになってい
る。Here, when the shift amount of the printing position in the forward and reverse directions is calculated, the absolute amount of the shift of the printing position in the forward and reverse directions is calculated based on the output voltage value of the phototransistor 18b and the width D of the slit 20a. The direction of deviation of the printing position in the forward and reverse directions is calculated based on the output voltage value of the phototransistor 18b at the predetermined position, and the absolute amount of the deviation of the printing position in the forward and reverse directions and the printing position in the forward and reverse directions are determined. The deviation amount of the printing position in the forward and reverse directions is calculated from the deviation direction.
【0030】ここにおいて、スリット20aの幅Dと、
スリット20aの幅Dよりも小さい空白部分の幅W
00と、フォトトランジスタ17bの出力電圧値Vとの関
係に着目する。スリット20aの全域がスリット20a
の幅Dよりも大きな幅W0 の空白部16fにのみ対向し
たとき(図4(a)の破線状態)の照度をEW とし、ス
リット20aの全域が印字部分にのみ対向したとき(図
4(a)の鎖線状態)の照度をEB としたときに、スリ
ット20aが幅W00の空白部を跨いで両側の印字部と対
向したときのスリット18a内の平均照度Eは、 E=(W00/D)×EW +(1−(W00/D))×EB ・・・(1) となり、テストパターン15の空白部分の幅W00とスリ
ット20aの幅Dとの比は、(1)式より、 W00/D=(E−EB )/(EW −EB )・・・(2) となる。Here, the width D of the slit 20a,
Width W of a blank portion smaller than width D of slit 20a
Attention is paid to the relationship between 00 and the output voltage value V of the phototransistor 17b. The entire area of the slit 20a is the slit 20a
When only the blank portion 16f having a width W 0 larger than the width D of the slit 20a (broken line in FIG. 4A) is set to E W, and the entire area of the slit 20a faces only the printed portion (FIG. 4). Assuming that the illuminance in the (chain line state of (a)) is E B , the average illuminance E in the slit 18a when the slit 20a faces the print portions on both sides across the blank portion of the width W 00 is E = ( W 00 / D) × EW + (1- (W 00 / D)) × E B ··· (1) , and the ratio of the width D of the width W 00 and the slit 20a of the blank portion of the test pattern 15, From the equation (1), W 00 / D = (E−E B ) / (E W −E B ) ... (2)
【0031】一方、フォトトランジスタの特性から一般
にフォトトランジスタ18bの出力電圧値Vは、On the other hand, from the characteristics of the phototransistor, the output voltage value V of the phototransistor 18b is generally
【0032】[0032]
【数1】 [Equation 1]
【0033】であるので、EW での出力電圧値をVW と
し、EB での出力電圧値をVB とすると、スリット20
aの幅Dと、空白部分の幅W00と、フォトトランジスタ
17bの出力電圧値Vとの関係は、(2)式より、Therefore, if the output voltage value at E W is V W and the output voltage value at E B is V B , the slit 20
The relationship between the width D of a, the width W 00 of the blank portion, and the output voltage value V of the phototransistor 17b is
【0034】[0034]
【数2】 [Equation 2]
【0035】となる。[0035]
【0036】そして、上記(4)式に基づき、スリット
20aの全域がスリット20aの幅Dよりも大きな幅W
0 の空白部16fにのみ対向したときのフォトトランジ
スタ18bの出力電圧値VW と、スリット20aの全域
が印字部分にのみ対向したときのフォトトランジスタ1
8bの出力電圧値VB と、スリット20aがスリット2
0aの幅Dよりも小さな幅W00の空白部を跨いで両側の
印字部と対向したときのフォトトランジスタ18bの出
力電圧値Vと、スリット20aの幅Dとに基づいて算出
される空白部分の幅W00より、正逆方向の印字位置のず
れの絶対量を検知できる。なお、(3)式の定数βの値
は、およそ「1」であるので、例えば、スリット20a
の幅寸法Dを2mmに設定すれば、W00=0.1mmの空白
部分を検出するには5%程度の電圧変動を検知できれば
よく、安値な回路構成で正逆方向の印字位置のずれの絶
対量を検知できる。Based on the equation (4), the width W of the entire area of the slit 20a is larger than the width D of the slit 20a.
The output voltage value V W of the phototransistor 18b when facing only the blank portion 16f of 0 , and the phototransistor 1 when the entire area of the slit 20a faces only the printed portion.
8b output voltage value V B and slit 20a is slit 2
The width V 00 of the phototransistor 18b across the blank portion having a width W 00 smaller than the width D 0a and the output voltage value V of the phototransistor 18b, and the width D of the blank portion calculated based on the width D of the slit 20a. From the width W 00, it is possible to detect the absolute amount of deviation of the printing position in the forward and reverse directions. Since the value of the constant β in the equation (3) is approximately “1”, for example, the slit 20a
If the width dimension D of 2 is set to 2 mm, it is only necessary to detect a voltage fluctuation of about 5% in order to detect a blank portion of W 00 = 0.1 mm. Absolute quantity can be detected.
【0037】また、正逆方向の印字位置がずれたときの
テストパターン15に着目し、図2に示されるように空
白部16fの中心位置を基準としてX1 およびX2 だけ
隔てた位置P1(空白部16gの始点位置)および位置
P2(空白部16gの終点位置)でのフォトトランジス
タ18bの出力電圧値を比較すると、図2(e)、
(f)に示されるように一方が出力電圧値VB (赤外発
光ダイオード18aから印字部分にのみ光が照射された
ときの出力電圧値)よりも低くなり、他方がドットの重
なりにより出力電圧値VB よりも高くなる。Further, paying attention to the test pattern 15 when the forward and reverse directions of the printing position is displaced, they were separated by X 1 and X 2 with respect to the center position of the blank portions 16f as shown in FIG. 2 position P1 ( Comparing the output voltage values of the phototransistor 18b at the starting point position of the blank portion 16g) and the position P2 (ending point position of the blank portion 16g), FIG.
As shown in (f), one becomes lower than the output voltage value V B (the output voltage value when the infrared light emitting diode 18a irradiates only the printed portion with light), and the other becomes the output voltage due to the dot overlap. It becomes higher than the value V B.
【0038】そして、この特性に基づき、位置P1での
フォトトランジスタ18bの出力電圧値を出力電圧値V
B と比較し、図2(e)に示されるように位置P1での
フォトトランジスタ18bの出力電圧値が出力電圧値V
B よりも低いときには、正逆方向の印字位置が正方向に
ずれていると判定する。逆に、図2(f)に示されるよ
うに位置P1でのフォトトランジスタ18bの出力電圧
値が出力電圧値VB よりも高いときには、正逆方向の印
字位置が逆方向にずれていると判定するようになってい
る。Based on this characteristic, the output voltage value of the phototransistor 18b at the position P1 is set to the output voltage value V
Compared by B, the output voltage value is output voltage of the phototransistor 18b value at the position P1 as shown in FIG. 2 (e) V
When it is lower than B, it is determined that the printing positions in the forward and reverse directions are displaced in the forward direction. On the contrary, as shown in FIG. 2F, when the output voltage value of the phototransistor 18b at the position P1 is higher than the output voltage value V B , it is determined that the forward and reverse printing positions are displaced in the reverse direction. It is supposed to do.
【0039】次に作用を説明する。正逆両方向の印字位
置にずれが生じたときには、検査モードスイッチ13を
操作すれば、正逆両方向の印字位置のずれが自動的に補
正されて適正な印字が可能となる。Next, the operation will be described. When the printing positions in both the forward and reverse directions are deviated, the inspection mode switch 13 is operated to automatically correct the deviation of the printing positions in the bidirectional and forward and reverse directions to enable proper printing.
【0040】すなわち、検査モードスイッチ13を操作
すると、印字ヘッド2が正方向へ移動しつつ印字駆動さ
れて記録紙3に第1のパターン16が印字されるととも
に印字ヘッド2が逆方向へ移動しつつ印字駆動されて記
録紙3に第2のパターン16が印字され、図2(d)ま
たは(f)に示されるようなテストパターン15が印字
される。That is, when the inspection mode switch 13 is operated, the print head 2 is driven while moving in the positive direction, the first pattern 16 is printed on the recording paper 3, and the print head 2 moves in the reverse direction. While being printed, the second pattern 16 is printed on the recording paper 3, and the test pattern 15 as shown in FIG. 2D or 2F is printed.
【0041】テストパターン15の印字後は、記録紙3
が1行分だけ改行され、その後にキャリア4が走査され
て光センサ18がテストパターン15上を走査される。
この走査時には、スリット20aを通して赤外発光ダイ
オード18aからテストパターン15に光が照射される
とともにその反射光がスリット20aを通してフォトト
ランジスタ18bに受光され、ドット幅の2倍よりも大
きなスリット20aの幅D内でのテストパターン15の
濃度変化に応じてフォトトランジスタ18bの出力電圧
が変動する。After printing the test pattern 15, the recording paper 3
Is line-fed for one line, then the carrier 4 is scanned and the optical sensor 18 is scanned on the test pattern 15.
At the time of this scanning, the infrared light emitting diode 18a irradiates the test pattern 15 with light through the slit 20a, and the reflected light is received by the phototransistor 18b through the slit 20a, and the width D of the slit 20a larger than twice the dot width is detected. The output voltage of the phototransistor 18b changes in accordance with the change in the density of the test pattern 15 inside.
【0042】そして、フォトトランジスタ18bの出力
電圧は、A/D変換器19を介してCPU9に入力さ
れ、CPU9ではフォトトランジスタ18bの出力電圧
値を所定のタイミングでサンプリングし、このときのフ
ォトトランジスタ18bの出力電圧値とスリット20a
の幅Dに基づいて正逆方向の印字位置のずれ量を算出
し、このずれ量に基づいて遅延回路12に遅延信号を供
給し、遅延回路12により正方向印字時の印字タイミン
グと逆方向印字時の印字タイミングとを相対的にずら
し、これにより正逆両方向の印字位置のずれが補正され
る。Then, the output voltage of the phototransistor 18b is input to the CPU 9 through the A / D converter 19, and the CPU 9 samples the output voltage value of the phototransistor 18b at a predetermined timing, and the phototransistor 18b at this time is sampled. Output voltage value and slit 20a
The amount of deviation of the printing position in the forward and reverse directions is calculated on the basis of the width D, and a delay signal is supplied to the delay circuit 12 based on this deviation so that the delay circuit 12 prints in the forward direction and in the reverse direction. The printing timing at that time is relatively shifted, and thereby the deviation of the printing position in both the forward and reverse directions is corrected.
【0043】ここで、正逆方向の印字位置のずれ量を算
出する際には、スリット20aの全域がスリット20a
の幅Dよりも大きな幅W0 の基準空白部16fにのみ対
向したときのフォトトランジスタ18bの出力電圧値V
W と、スリット20aの全域が印字部分にのみ対向した
ときのフォトトランジスタ18bの出力電圧値VB と、
スリット20aがスリット20aの幅Dよりも小さな幅
W00の空白部を跨いで両側の印字部と対向したときのフ
ォトトランジスタ18bの出力電圧値Vと、スリット2
0aの幅Dとにより、上記(4)式に基づいて空白部分
の幅W00、すなわち正逆方向の印字位置のずれの絶対量
を算出する。Here, when the shift amount of the printing position in the forward and reverse directions is calculated, the entire area of the slit 20a is the slit 20a.
Output voltage value V of the phototransistor 18b when facing only the reference blank portion 16f having a width W 0 larger than the width D of
W and the output voltage value V B of the phototransistor 18b when the entire area of the slit 20a faces only the printed portion,
An output voltage value V of the phototransistor 18b when the slit 20a has both sides of the opposite the printing unit across a blank portion of smaller width W 00 than the width D of the slit 20a, the slit 2
With the width D of 0a, the width W 00 of the blank portion, that is, the absolute amount of deviation of the printing position in the forward and reverse directions is calculated based on the above equation (4).
【0044】また、位置P1でのフォトトランジスタ1
8bの出力電圧値をサンプリングして出力電圧値VB と
比較し、図2(e)に示されるように位置P1でのフォ
トトランジスタ18bの出力電圧値が出力電圧値VB よ
りも低いときには、正逆方向の印字位置が正方向にずれ
ていると判定し、逆に図2(f)に示されるように位置
P1でのフォトトランジスタ18bの出力電圧値が出力
電圧値VB よりも高いときには、正逆方向の印字位置が
逆方向にずれていると判定し、正逆方向の印字位置のず
れの絶対量と正逆方向の印字位置のずれの方向とから正
逆方向の印字位置のずれ量を算出する。Further, the phototransistor 1 at the position P1
The output voltage value of 8b is sampled and compared with the output voltage value V B, and when the output voltage value of the phototransistor 18b at the position P1 is lower than the output voltage value V B as shown in FIG. 2 (e), It is determined that the printing positions in the forward and reverse directions are shifted in the forward direction, and conversely, when the output voltage value of the phototransistor 18b at the position P1 is higher than the output voltage value V B as shown in FIG. 2 (f). , It is determined that the print position in the forward / reverse direction is shifted in the reverse direction, and the print position in the forward / reverse direction is deviated from the absolute amount of the print position in the forward / reverse direction and the direction in which the print position in the forward / reverse direction is deviated. Calculate the amount.
【0045】したがって、フォトトランジスタ18bの
出力電圧値とスリット20aの幅Dに基づいて正逆方向
の印字位置のずれ量が算出されるので、正逆方向の印字
位置のずれ量をフォトトランジスタ18bの出力電圧の
変動幅の大きさに関係なく算出でき、これにより印字濃
度が次第に薄くなったり、白色以外のグレーやクリーム
色等の用紙に印字した場合であっても、正逆方向の印字
位置のずれを確実に検出できる。Therefore, since the shift amount of the print position in the forward and reverse directions is calculated based on the output voltage value of the phototransistor 18b and the width D of the slit 20a, the shift amount of the print position in the forward and reverse directions is calculated by the phototransistor 18b. It can be calculated regardless of the size of the fluctuation range of the output voltage.This makes it possible to reduce the print density in the forward and reverse directions, even when the print density is gradually diminished or when it is printed on paper other than white such as gray or cream. The deviation can be detected reliably.
【0046】また、スリット20aの幅Dがドット幅の
2倍よりも大きく設定されているので、フォトトランジ
スタ18bの出力電圧値がドット幅よりも大きな範囲内
で一定となり、フォトトランジスタ18bの出力電圧の
サンプリング周期をドット幅よりも大きく設定しても、
正逆方向の印字位置のずれをドット幅と同程度の高い精
度(高分解能)で検知でき、複雑なソフトウェアを用い
る必要がない。例えば、スリット20aの幅Dを2mmに
設定したときに空白部分の幅W00が0.1mmであるとき
には、スリット20aが幅W00の空白部を跨いで両側の
印字部と対向したときのフォトトランジスタ18bの出
力電圧値がD−W00=1.9mmの範囲内で一定となり
(図5参照)、この範囲内でフォトトランジスタ18b
の出力電圧値をサンプリングすればよく、フォトトラン
ジスタ18bの出力電圧のサンプリング周期をドット印
字周期よりもはるかに大きく設定できる。また、この範
囲で複数回だけフォトトランジスタ18bの出力電圧を
サンプリングし、その出力電圧値の平均値から正逆方向
の印字位置のずれの絶対量を算出すれば、より正確な検
出結果が得られる。Further, since the width D of the slit 20a is set to be larger than twice the dot width, the output voltage value of the phototransistor 18b becomes constant within the range larger than the dot width, and the output voltage of the phototransistor 18b is constant. Even if the sampling cycle of is set larger than the dot width,
The deviation of the printing position in the forward and reverse directions can be detected with high accuracy (high resolution) as high as the dot width, and there is no need to use complicated software. For example, when the width W 00 of the blank portion is 0.1 mm when the width D of the slit 20 a is set to 2 mm, the photo when the slit 20 a faces the printing portions on both sides across the blank portion of the width W 00. The output voltage value of the transistor 18b becomes constant within the range of D−W 00 = 1.9 mm (see FIG. 5), and the phototransistor 18b within this range.
The sampling period of the output voltage of the phototransistor 18b can be set to be much larger than the dot printing period. If the output voltage of the phototransistor 18b is sampled a plurality of times within this range and the absolute amount of the deviation of the printing position in the forward and reverse directions is calculated from the average value of the output voltage values, a more accurate detection result can be obtained. .
【0047】また、光センサ18は、ドット幅の2倍よ
りも大きな検出幅を有するもので十分に対応できるの
で、低分解能の安値なセンサを使用することができる。Further, since the optical sensor 18 having a detection width larger than twice the dot width can suffice, it is possible to use an inexpensive sensor with low resolution.
【0048】[0048]
【発明の効果】以上説明したように、本発明に係るシリ
アルプリンタでは、ドット幅の2倍よりも大きな検出幅
を有し正方向印字された第1のパターンと当該第1のパ
ターンと同一行上に逆方向印字された第2のパターンと
からなる所定のテストパターン上を走査されて当該テス
トパターンの濃度変化に応じて変動する電圧を出力する
光センサと、光センサの出力電圧値と光センサの検出幅
に基づいて正逆方向の印字位置のずれ量を算出する演算
手段と、演算手段によって算出されたずれ量に基づいて
正方向印字時の印字タイミングと逆方向印字時の印字タ
イミングとを相対的にずらして正逆両方向の印字位置の
ずれを補正する印字タイミング補正手段と、を備えてい
るので、印字濃度が次第に薄くなったり、グレーやクリ
ーム色等の中間色調の用紙を使用する場合であっても、
正逆方向の印字位置のずれを確実に検出でき、かつ複雑
なソフトウェアを用いることなく正逆方向の印字位置の
ずれを高精度に補正することができるという優れた効果
を有する。As described above, in the serial printer according to the present invention, the first pattern which has the detection width larger than twice the dot width and is printed in the normal direction and the same line as the first pattern are printed. An optical sensor that scans a predetermined test pattern consisting of a second pattern printed in the reverse direction and outputs a voltage that fluctuates according to a change in the density of the test pattern, and an output voltage value of the optical sensor and an optical sensor. Calculation means for calculating the deviation amount of the printing position in the forward and reverse directions based on the detection width of the sensor, and the printing timing for the forward direction printing and the printing timing for the reverse direction printing based on the deviation amount calculated by the calculating means. And the print timing correction means for correcting the deviation of the print position in both the forward and reverse directions by relatively shifting the print density, so that the print density becomes gradually lighter or an intermediate color such as gray or cream color is obtained. Even if you use the paper,
It has an excellent effect that the deviation of the printing position in the forward and reverse directions can be surely detected, and the deviation of the printing position in the forward and reverse directions can be corrected with high accuracy without using complicated software.
【図1】本発明が適用されたシリアルプリンタの概略構
成図である。FIG. 1 is a schematic configuration diagram of a serial printer to which the present invention is applied.
【図2】テストパターンの変化の態様とそのときの光セ
ンサの出力電圧波形との対応関係図である。FIG. 2 is a diagram showing a correspondence relationship between a change pattern of a test pattern and an output voltage waveform of an optical sensor at that time.
【図3】光センサの断面図である。FIG. 3 is a cross-sectional view of an optical sensor.
【図4】テストパターンに光センサの検出幅よりも大き
な空白部が存在するときのテストパターンと光センサの
出力電圧波形との関係図である。FIG. 4 is a relationship diagram between a test pattern and an output voltage waveform of an optical sensor when a blank portion larger than a detection width of the optical sensor exists in the test pattern.
【図5】テストパターンに光センサの検出幅よりも小さ
な空白部が存在するときのテストパターンと光センサの
出力電圧波形との関係図である。FIG. 5 is a relationship diagram between the test pattern and the output voltage waveform of the optical sensor when there is a blank portion smaller than the detection width of the optical sensor in the test pattern.
2 印字ヘッド 3 記録紙 9 CPU(演算手段) 12 遅延回路(印字タイミング補正手段) 15 テストパターン 16 第1のパターン 17 第2のパターン 2 print head 3 recording paper 9 CPU (calculation means) 12 delay circuit (print timing correction means) 15 test pattern 16 first pattern 17 second pattern
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 B41J 29/46 D ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI technical display location B41J 29/46 D
Claims (1)
タであって、 ドット幅の2倍よりも大きな検出幅を有し、正方向印字
された第1のパターンと当該第1のパターンと同一行上
に逆方向印字された第2のパターンとからなる所定のテ
ストパターン上を走査されて当該テストパターンの濃度
変化に応じて変動する電圧を出力する光センサと、 上記光センサの出力電圧値と上記光センサの検出幅に基
づいて正逆方向の印字位置のずれ量を算出する演算手段
と、 上記演算手段によって算出された上記ずれ量に基づいて
正方向印字時の印字タイミングと逆方向印字時の印字タ
イミングとを相対的にずらして正逆両方向の印字位置の
ずれを補正する印字タイミング補正手段と、 を備えていることを特徴とするシリアルプリンタ。1. A serial printer capable of forward / reverse bidirectional printing, having a detection width larger than twice the dot width, and the first pattern printed in the forward direction and the same line as the first pattern. An optical sensor that scans on a predetermined test pattern consisting of a second pattern printed in the reverse direction and outputs a voltage that fluctuates according to the density change of the test pattern; and an output voltage value of the optical sensor. A calculating means for calculating the deviation amount of the printing position in the forward and reverse directions based on the detection width of the optical sensor, and a printing timing for the forward direction printing and the reverse direction printing based on the deviation amount calculated by the calculating means. And a print timing correction means for correcting the deviation of the print position in both the forward and reverse directions by relatively shifting the print timing of the serial printer.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5245100A JP2791349B2 (en) | 1993-09-30 | 1993-09-30 | Serial printer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5245100A JP2791349B2 (en) | 1993-09-30 | 1993-09-30 | Serial printer |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH07101101A true JPH07101101A (en) | 1995-04-18 |
| JP2791349B2 JP2791349B2 (en) | 1998-08-27 |
Family
ID=17128617
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5245100A Expired - Fee Related JP2791349B2 (en) | 1993-09-30 | 1993-09-30 | Serial printer |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2791349B2 (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0947323A3 (en) * | 1998-04-03 | 2000-05-31 | Canon Kabushiki Kaisha | An adjustment method of dot printing positions and a printing apparatus |
| EP0953452A3 (en) * | 1998-04-03 | 2000-05-31 | Canon Kabushiki Kaisha | An adjustment method of dot printing positions and a printing apparatus |
| US6416151B1 (en) * | 1998-04-03 | 2002-07-09 | Canon Kabushiki Kaisha | Printing apparatus performing print registration |
| US6426765B1 (en) | 1998-04-03 | 2002-07-30 | Canon Kabushiki Kaisha | Printing apparatus and head driving method |
| US6532026B2 (en) | 1998-04-03 | 2003-03-11 | Canon Kabushiki Kaisha | Adjustment method of dot printing positions and a printing apparatus |
| JP2009177988A (en) * | 2008-01-28 | 2009-08-06 | Canon Inc | Motor driving device and optical apparatus |
-
1993
- 1993-09-30 JP JP5245100A patent/JP2791349B2/en not_active Expired - Fee Related
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0947323A3 (en) * | 1998-04-03 | 2000-05-31 | Canon Kabushiki Kaisha | An adjustment method of dot printing positions and a printing apparatus |
| EP0953452A3 (en) * | 1998-04-03 | 2000-05-31 | Canon Kabushiki Kaisha | An adjustment method of dot printing positions and a printing apparatus |
| US6416151B1 (en) * | 1998-04-03 | 2002-07-09 | Canon Kabushiki Kaisha | Printing apparatus performing print registration |
| US6426765B1 (en) | 1998-04-03 | 2002-07-30 | Canon Kabushiki Kaisha | Printing apparatus and head driving method |
| US6454390B1 (en) | 1998-04-03 | 2002-09-24 | Canon Kabushiki Kaisha | Adjustment method of dot printing positions and a printing apparatus |
| US6474767B1 (en) | 1998-04-03 | 2002-11-05 | Canon Kabushiki Kaisha | Calibration method for an optical sensor, an adjustment method of dot printing positions using the calibration method, and a printing apparatus |
| US6532026B2 (en) | 1998-04-03 | 2003-03-11 | Canon Kabushiki Kaisha | Adjustment method of dot printing positions and a printing apparatus |
| US6994413B2 (en) | 1998-04-03 | 2006-02-07 | Canon Kabushiki Kaisha | Printing apparatus performing print registration |
| EP1681168A3 (en) * | 1998-04-03 | 2008-03-12 | Canon Kabushiki Kaisha | An adjustment method of dot printing positions and a printing apparatus |
| JP2009177988A (en) * | 2008-01-28 | 2009-08-06 | Canon Inc | Motor driving device and optical apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2791349B2 (en) | 1998-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4734868A (en) | Precision paper transport system | |
| JP3772759B2 (en) | Printing apparatus, printing method, computer program, and computer system | |
| JP4110907B2 (en) | Recording apparatus, recording method, program, and computer system | |
| US6872017B2 (en) | Image-forming device | |
| JPH07101101A (en) | Serial printer | |
| WO2004022346A1 (en) | Liquid ejecting device, computer system, and liquid ejecting method | |
| JP5115521B2 (en) | Printing apparatus and printing method | |
| JP3149174B2 (en) | Printer | |
| US7883202B2 (en) | Image-forming device | |
| JPH01218865A (en) | Printer | |
| JP4389432B2 (en) | Liquid ejecting apparatus, computer system, and liquid ejecting method | |
| JP4803129B2 (en) | Printing apparatus and printing method | |
| US5196679A (en) | Method and apparatus for printing and reading electronically readable indicia, by shifting a scanner position during scanning | |
| JP4542303B2 (en) | Liquid ejection device and computer system | |
| JP4019730B2 (en) | Printing apparatus, printing medium lower end determination method, computer program, and computer system | |
| JP4192928B2 (en) | Tilt detection method and printing method | |
| JP3838171B2 (en) | Liquid ejection device and computer system | |
| JP3972953B2 (en) | Liquid ejection device | |
| JP4348922B2 (en) | Liquid ejection apparatus and liquid ejection method | |
| JPH0546374Y2 (en) | ||
| JP2004034612A (en) | Liquid ejection device and computer system | |
| JPH0924653A (en) | Printing device having function of correcting printing position | |
| JP2004050680A (en) | Liquid ejection device and computer system | |
| JPH01267250A (en) | Print position detection device for tags |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |