JPH04168075A - Printer - Google Patents

Printer

Info

Publication number
JPH04168075A
JPH04168075A JP29368990A JP29368990A JPH04168075A JP H04168075 A JPH04168075 A JP H04168075A JP 29368990 A JP29368990 A JP 29368990A JP 29368990 A JP29368990 A JP 29368990A JP H04168075 A JPH04168075 A JP H04168075A
Authority
JP
Japan
Prior art keywords
photosensor
paper
sheet
positional relationship
period
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
JP29368990A
Other languages
Japanese (ja)
Inventor
Yuuji Watabe
渡部 友師
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP29368990A priority Critical patent/JPH04168075A/en
Publication of JPH04168075A publication Critical patent/JPH04168075A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to precisely transport a sheet to a printing position by calculating the positional relationship between the center position of a photosensor and a sheet end position based on a period when an output signal from the photosensor changes, and correcting the positional relationship between a printing position and the sheet using the calculation value. CONSTITUTION:When the end of a sheet transported passes through a photosensor 11, an output signal from the photosensor 11 changes. A change period detection device 12 detects a period from the start to the end of a change in this output signal, and a position calculation device 13 divides the number of pulses corresponding to the change period by 1/2 so that the matching of a sheet end position to the center position of the photosensor is ensured by calculation. After that, a correction device 14 corrects the positional relationship between a printing position and the sheet by using as a required number of pulses a value obtained by subtracting 1/2 of the number of pulses during the change period from the number of pulses for transporting the sheet to a printing position. Subsequently, the positional relationship between the sheet and a printing position can be correctly determined, if there are variations of photosensor properties and sheet reflection factor.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明はプリンタ装置に関し、特に、搬送される用紙と
印刷位置との位置関係の補正に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a printer device, and more particularly to correction of the positional relationship between a conveyed sheet and a printing position.

(従来の技術) 一般にプリンタ装置は、搬送される印刷用紙の印字開始
位置を決定するため、用紙の先端位置を検出し、この先
端位置に基づいて印刷用紙を所定位置に搬送している。
(Prior Art) In general, a printer device detects the leading edge position of the paper in order to determine the printing start position of the printing paper being transported, and transports the printing paper to a predetermined position based on this leading edge position.

第2図に従来のプリンタ装置の要部を示す。FIG. 2 shows the main parts of a conventional printer device.

図の装置は、フォトセンサ1と、A/D変換部2と、逐
次比較部3と、制御部4と、メモリ5と、LFパルスモ
ータ駆動回路6と、LFパルスモータ7とからなる。
The illustrated device includes a photosensor 1, an A/D conversion section 2, a successive approximation section 3, a control section 4, a memory 5, an LF pulse motor drive circuit 6, and an LF pulse motor 7.

フォトセンサ1は、フォトカプラ等からなり、用紙搬送
路上に設置されている。
The photosensor 1 is made of a photocoupler or the like, and is installed on the paper conveyance path.

A/D (アナログ/ディジタル)変換部2は、フォト
センサ1から出力されたアナログ信号をディジタル信号
に変換するA/D変換回路で構成されている。
The A/D (analog/digital) converter 2 includes an A/D converter circuit that converts an analog signal output from the photosensor 1 into a digital signal.

逐次比較部3は、A/D変換部2から入力されたデータ
と、それ以前に入力されたデータとを逐次比較する回路
である。
The successive approximation unit 3 is a circuit that successively compares the data input from the A/D conversion unit 2 and the data input previously.

制御部4は、逐次比較部3の出力データに基づき、図示
しない用紙の端部とフォトセンサ1との相対位置を算出
し、この算出結果とメモリ5に格納されているデータに
基づいてLFパルスモータ駆動回路6の制御を行う制御
回路である。
The control unit 4 calculates the relative position between the edge of the paper (not shown) and the photosensor 1 based on the output data of the successive approximation unit 3, and generates an LF pulse based on this calculation result and data stored in the memory 5. This is a control circuit that controls the motor drive circuit 6.

メモリ5には、用紙端がフォトセンサ1を通過してから
所定の印刷位置まで用紙を搬送するための予め決められ
たデータが格納されている。
The memory 5 stores predetermined data for transporting the paper from the end of the paper past the photosensor 1 to a predetermined printing position.

LPパルスモータ駆動回路(以下、モータ駆動回路とい
う)6は、制御部5からの駆動パルスに基づき、LFパ
ルスモータ7を駆動制御する駆動制御回路である。
The LP pulse motor drive circuit (hereinafter referred to as motor drive circuit) 6 is a drive control circuit that drives and controls the LF pulse motor 7 based on drive pulses from the control section 5.

LF(ラインフィード)パルスモータ(以下、モータと
称す)は、モータ駆動回路6から出力された駆動パルス
に基づいて回転し、用紙を搬送するモータである。
The LF (line feed) pulse motor (hereinafter referred to as a motor) is a motor that rotates based on drive pulses output from the motor drive circuit 6 and conveys paper.

次に動作について説明する。Next, the operation will be explained.

フォトセンサ1からはアナログ信号Aが送出され、この
信号AはA/D変換部2でディジタル信号Bに数値化さ
れる。
An analog signal A is sent from the photosensor 1, and this signal A is digitized into a digital signal B by the A/D converter 2.

逐次比較部3は、このディジタル信号Bを入力し、現在
人力されたデータがそれ以前の入力データに対し増加ま
たは減少しているか否かを逐次比較し、現在入力データ
が増加または減少している場合は検出パルスCを出力す
る。
The successive approximation unit 3 inputs this digital signal B and successively compares whether the current manually input data increases or decreases with respect to the previous input data, and determines whether the current input data increases or decreases. If so, a detection pulse C is output.

制御部4は、検出パルスCが入力されている間はフォト
センサ1上を用紙端が通過していると判断し、検出パル
スCがオフとなった時は用紙先端がフォトセンサ1を通
過しきったと判断する。そして、制御部4は用紙がフォ
トセンサ1を通過したと判断した時、メモリ5に予めセ
ットされている一定値分のモータ駆動パルスEをモータ
駆動回路6に出力する。
The control unit 4 determines that the edge of the paper has passed over the photosensor 1 while the detection pulse C is input, and when the detection pulse C is turned off, the edge of the paper has completely passed the photosensor 1. I judge that. When the control unit 4 determines that the paper has passed the photosensor 1, it outputs motor drive pulses E of a certain value preset in the memory 5 to the motor drive circuit 6.

メモリ5にセットされている一定値は、フォトセンサ1
位置から図示しない印字ヘッド部まで用紙を搬送するの
に必要なモータ7の回転量に対応するパルス数に対応し
た値となっている。
The constant value set in the memory 5 is the photo sensor 1
The value corresponds to the number of pulses corresponding to the amount of rotation of the motor 7 necessary to convey the paper from the position to the print head section (not shown).

モータ駆動回路6からパルスFが出力されると、モータ
7はこのパルスFに対応した回転量だけ回転し、用紙を
印字ヘッド部まで搬送する。
When a pulse F is output from the motor drive circuit 6, the motor 7 rotates by an amount of rotation corresponding to the pulse F, and conveys the paper to the print head section.

(発明が解決しようとする課題) 以上のように上記従来の装置では、フォトセンサ1の出
力変化において所定のスライスレベルを設け、このスラ
イスレベルを越えた時が用紙端位置とフォトセンサ1の
中心位置とが一致した時と判断し、この判断結果に基づ
いて用紙を搬送していた。
(Problems to be Solved by the Invention) As described above, in the conventional apparatus described above, a predetermined slice level is set for the output change of the photosensor 1, and when this slice level is exceeded, the paper edge position and the center of the photosensor 1 are set. It is determined that the position matches the position, and the paper is conveyed based on the result of this determination.

しかしながら、搬送される用紙の反射率または透過率の
違い及びフォトセンサ1自体の感度のばらつき等により
フォトセンサ1の出力の立上がりまたは立ち下がり時の
変化率は一定ではない。
However, the rate of change of the output of the photosensor 1 at the time of rising or falling is not constant due to differences in the reflectance or transmittance of the paper being conveyed and variations in the sensitivity of the photosensor 1 itself.

従って、このような変化率の異なる信号に基づいて用紙
端位置を算出すると、実際の用紙端位置と算出した用紙
端位置とが一致しない場合がある。
Therefore, when the paper edge position is calculated based on signals having such different rates of change, the actual paper edge position and the calculated paper edge position may not match.

この結果、用紙端位置に誤差を含んだ状態で用紙が搬送
されることになり、予め定められた用紙の印刷位置と実
際の印刷を行う印字ヘッド部との位置がずれてしまうと
いう問題があった。
As a result, the paper is conveyed with an error in the paper edge position, and there is a problem that the predetermined printing position of the paper and the position of the print head that performs the actual printing are misaligned. Ta.

また、このような用紙と印字ヘッド部とのずれを補正す
るためには、オペレータが用紙や各プリンタ装置に合わ
せて上記スライスレベルやモータ7の駆動量の設定値を
変えてやる必要があり、この場合も操作性が悪いという
問題点があった。
In addition, in order to correct such misalignment between the paper and the print head, the operator must change the slice level and drive amount of the motor 7 according to the paper and each printer device. In this case as well, there was a problem of poor operability.

本発明は上記従来の問題点を解決するためになされたも
ので、用紙と印刷位置との位置関係を正確に決定するこ
とのできるプリンタ装置を提供することを目的とする。
The present invention has been made to solve the above-mentioned conventional problems, and an object of the present invention is to provide a printer device that can accurately determine the positional relationship between paper and a printing position.

(課題を解決するための手段) 本発明のプリンタ装置は、搬送される用紙の用紙端通過
時にその出力信号が変化するフォトセンサと、前記フォ
トセンサの出力信号変化の開始時から終了時までの期間
を検出する変化期間検出手段と、前記変化期間検出手段
で検出された期間に基づき、用紙端位置と前記フォトセ
ンサの検出基準位置との位置関係を算出する位置算出手
段と、前記位置算出手段で算出された位置関係に基づき
、印刷位置と前記用紙との位置関係を補正する補正手段
とを設けたものである。
(Means for Solving the Problems) A printer device of the present invention includes a photosensor whose output signal changes when the sheet being conveyed passes the paper edge, and a photo sensor whose output signal changes from the start to the end of the change in the output signal of the photosensor. a changing period detecting means for detecting a period, a position calculating means for calculating a positional relationship between a paper edge position and a detection reference position of the photosensor based on the period detected by the changing period detecting means, and the position calculating means A correction means is provided for correcting the positional relationship between the print position and the paper based on the positional relationship calculated in .

(作用) 本発明装置は、搬送される用紙の用紙端がフォトセンサ
を通過する時、フォトセンサの出力信号が変化する。
(Function) In the apparatus of the present invention, when the edge of the paper being conveyed passes the photosensor, the output signal of the photosensor changes.

変化期間検出手段は、この出力信号変化の開始から終了
までの期間を検出し、位置算出手段はこの期間に基づい
て用紙端位置とフォトセンサの検出基準位置との位置関
係を算出する。例えば、位置算出手段は前記期間に対応
したパルス数を1/2に除算することで用紙端位置がフ
ォトセンサの中心位置に一致していることを算出する。
The change period detection means detects the period from the start to the end of this output signal change, and the position calculation means calculates the positional relationship between the paper edge position and the detection reference position of the photosensor based on this period. For example, the position calculation means calculates that the paper edge position matches the center position of the photosensor by dividing the number of pulses corresponding to the period by 1/2.

そして、補正手段は、印刷位置と用紙との位置関係の補
正を、例えば、印刷位置まで用紙を搬送するためのパル
ス数から前記変化期間内のパルス数の1/2を減算した
値を搬送に必要なパルス数とすることで行う。
Then, the correction means corrects the positional relationship between the printing position and the paper by, for example, subtracting 1/2 of the number of pulses within the change period from the number of pulses for transporting the paper to the printing position. This is done by setting the required number of pulses.

従って、フォトセンサの特性や用紙反射率等のばらつき
があっても、用紙端位置とフォトセンサの中心位置との
位置関係は常に正確に算出でき、その結果、用紙と印刷
位置との位置関係も正確に決定することができる。
Therefore, even if there are variations in photosensor characteristics, paper reflectance, etc., the positional relationship between the paper edge position and the center position of the photosensor can always be accurately calculated, and as a result, the positional relationship between the paper and the printing position can also be calculated accurately. can be determined accurately.

(実施例) 以下、本発明のプリンタ装置を図の実施例を用いて詳細
に説明する。
(Embodiments) Hereinafter, the printer device of the present invention will be explained in detail using the embodiments shown in the drawings.

第1図は本発明のプリンタ装置を示すブロック図である
FIG. 1 is a block diagram showing a printer device of the present invention.

図の装置は、フォトセンサ11と、変化期間検出手段1
2と、位置算出手段13と、補正手段14と、LFパル
スモータ駆動回路15とLFパルスモータ16とからな
る。
The device shown in the figure includes a photosensor 11 and a change period detection means 1.
2, a position calculation means 13, a correction means 14, an LF pulse motor drive circuit 15, and an LF pulse motor 16.

フォトセンサ11は、後述する第4図でも示すように、
用紙搬送路上に設置され、用紙の透過光または反射光を
検出する光学的センサである。
As shown in FIG. 4, which will be described later, the photosensor 11 is
This is an optical sensor that is installed on the paper conveyance path and detects transmitted light or reflected light from the paper.

変化期間検出手段12は、フォトセンサ11の出力信号
変化の開始時から終了時までの期間を検出する機能を有
している。
The change period detection means 12 has a function of detecting a period from the start to the end of change in the output signal of the photosensor 11.

位置算出手段13は、変化期間検出手段12で検出され
た期間に基づき、用紙端位置とフォトセンサ11の検出
基準位置である中心位置との位置関係を算出する機能を
有している。
The position calculation means 13 has a function of calculating the positional relationship between the paper edge position and the center position, which is the detection reference position of the photosensor 11, based on the period detected by the change period detection means 12.

補正手段14は、位置算出手段13で算出された位置関
係に基づき、印刷位置と用紙との位置関係を補正する機
能を有している。
The correction unit 14 has a function of correcting the positional relationship between the print position and the paper based on the positional relationship calculated by the position calculation unit 13.

LFパルスモータ駆動回路(以下、モータ駆動回路とい
う)15及びLFパルスモータ(以下、モータという)
16は、補正手段14からの信号に基づきモータ16を
駆動制御する回路及び、モータ駆動回路15から出力さ
れた駆動パルスに基づいて回転し用紙を搬送するモータ
である。
LF pulse motor drive circuit (hereinafter referred to as motor drive circuit) 15 and LF pulse motor (hereinafter referred to as motor)
Reference numeral 16 denotes a circuit that drives and controls the motor 16 based on a signal from the correction means 14, and a motor that rotates based on a drive pulse output from the motor drive circuit 15 and conveys the paper.

次に本発明のプリンタ装置の具体的な構成を説明する。Next, a specific configuration of the printer device of the present invention will be explained.

第3図は第1図に示したプリンタ装置の具体的な構成を
示すブロック図である。
FIG. 3 is a block diagram showing a specific configuration of the printer device shown in FIG. 1.

図において、変化期間検出手段12は、A/D変換部1
7と、逐次比較部18と、カウンタ19とで構成されて
いる。
In the figure, the change period detecting means 12 includes the A/D converter 1
7, a successive approximation section 18, and a counter 19.

位置算出手段13は、制御部2o内の算出部21と、1
/2除算器22とから構成されている。
The position calculation means 13 includes a calculation section 21 in the control section 2o and a
/2 divider 22.

補正手段14は、制御部20の補正部23と、減算器2
4とメモリ25とから構成されている。
The correction unit 14 includes a correction unit 23 of the control unit 20 and a subtracter 2.
4 and a memory 25.

A/D変換部17は、従来と同様にフォトセンサ11か
らのアナログ信号Aをディジタル信号Bに変換するA/
D変換回路である。
The A/D converter 17 converts the analog signal A from the photosensor 11 into a digital signal B as in the conventional case.
This is a D conversion circuit.

逐次比較部18は、3段以上のバッファを備え、A/D
変換部17から人、力された数値に対し、それ以前の入
力データ及びそれ以後の入力データとの比較を行い、入
力データに値の増加また。は減少が続く場合、その増加
または減少期間中にイネーブル信号Cを出力する回路で
ある。
The successive approximation unit 18 includes three or more stages of buffers, and has an A/D
The input numerical value from the conversion unit 17 is compared with previous input data and subsequent input data, and the value is increased or increased in the input data. is a circuit that outputs an enable signal C during the period of increase or decrease if the decrease continues.

カウンタ19は、後述する制御部から出力されるモータ
駆動パルスDのパルス数をイネーブル信号Cが入力され
ている間に計数を行う計数回路である。
The counter 19 is a counting circuit that counts the number of motor drive pulses D output from a control section, which will be described later, while an enable signal C is being input.

制御部20はプロセッサ等から構成され、1/2除算器
22の出力信号Fに基づき用紙端位置とフォトセンサ1
1の中心位置との位置関係を算出する算出部21と後述
する補正部23とを有している。
The control unit 20 is composed of a processor, etc., and determines the paper edge position and the photo sensor 1 based on the output signal F of the 1/2 divider 22.
It has a calculation section 21 that calculates the positional relationship with the center position of 1 and a correction section 23 that will be described later.

1/2除算器22は、カウンタ19の出力する計数デー
タEを入力し、その値の1/2の値を出力する除算器で
ある。
The 1/2 divider 22 is a divider that inputs the count data E output from the counter 19 and outputs 1/2 of the value.

メモリ25には、フォトセンサ11の中心位置から印字
ヘッド部まで用紙搬送を行うために必要とされるモータ
駆動パルスDの理論値データGが格納されている。
The memory 25 stores theoretical value data G of the motor drive pulse D required to transport the paper from the center position of the photosensor 11 to the print head section.

減算器24は、メモリ25からの理論値データGと1/
2除算器22の出力する信号Fを入力し、これらの値を
減算する回路である。
The subtracter 24 divides the theoretical value data G from the memory 25 and 1/
This circuit inputs the signal F output from the divider 22 and subtracts these values.

補正部23は、減算器24から出力された減算値データ
Hに基づき、印刷位置と用紙との位置関係を補正する機
能を有している。
The correction unit 23 has a function of correcting the positional relationship between the printing position and the paper based on the subtraction value data H output from the subtractor 24.

また、第4図に上記プリンタ装置の要部の構造を示す。Further, FIG. 4 shows the structure of the main parts of the printer device.

図において、26は用紙であり、この用紙26は搬送路
27上をフィードローラ28aで搬送されるよう構成さ
れている。
In the figure, 26 is a sheet of paper, and this sheet of paper 26 is configured to be conveyed on a conveyance path 27 by a feed roller 28a.

フォトセンサ11は、搬送路27の下面側に設けられ、
用紙26の搬送状態を検出するよう構成されている。
The photosensor 11 is provided on the lower surface side of the conveyance path 27,
It is configured to detect the conveyance state of the paper 26.

また、用紙26の搬送方向前方にはプラテン29が設け
られ、モータ16の駆動軸とドライブベルト30を介し
て連結されている。そして、プラテン29には用紙をプ
ラテン29に沿って搬送させるためのフィードローラ2
8bが回転自在に接触状態で設置されている。更に、プ
ラテン29の上方には、用紙26への印刷を行う印字ヘ
ッド31が設けられている。
Further, a platen 29 is provided in front of the sheet 26 in the transport direction, and is connected to the drive shaft of the motor 16 via a drive belt 30. The platen 29 is provided with a feed roller 2 for conveying the paper along the platen 29.
8b are rotatably installed in contact with each other. Further, above the platen 29, a print head 31 for printing on the paper 26 is provided.

次に上記構成のプリンタ装置の動作について説明する。Next, the operation of the printer device having the above configuration will be explained.

第5図はプリンタ装置各部の動作を示すタイムチャート
であり、A−Hは第3図に示した各部の出力信号A−H
に対応している。
FIG. 5 is a time chart showing the operation of each part of the printer device, and A-H are output signals A-H of each part shown in FIG.
It corresponds to

先ず、制御部20からモータ駆動パルスDが出力される
ことによって、モータ16が駆動される。これにより、
図示しない駆動機構によってフィードローラ28aが駆
動され、用紙26を矢印方向(第4図参照)に搬送する
First, the motor 16 is driven by outputting a motor drive pulse D from the control section 20. This results in
The feed roller 28a is driven by a drive mechanism (not shown) and conveys the paper 26 in the direction of the arrow (see FIG. 4).

また、モータ駆動パルスDに同期してフォトセンサ11
の出力はサンプリングされ、逐次比較部18で逐次比較
が行われる。
Also, in synchronization with the motor drive pulse D, the photo sensor 11
The output of is sampled, and successive approximation is performed in the successive approximation section 18.

搬送される用紙の26の先端がフォトセンサ11上にか
かると、フォトセンサ11の出力信号が変化する。そし
て、用紙26先端がフォトセンサ11上を通過する時点
で逐次比較部18はセンサ出力の変化を検出し、カウン
タ19に対しイネーブル信号Cを出力する(第5図時刻
1+)。
When the leading edge of the sheet 26 being conveyed touches the photosensor 11, the output signal of the photosensor 11 changes. Then, when the leading edge of the paper 26 passes over the photosensor 11, the successive approximation section 18 detects a change in the sensor output and outputs an enable signal C to the counter 19 (time 1+ in FIG. 5).

これにより、カウンタ19はモータ駆動パルスDのパル
ス数のカウントを開始する。
As a result, the counter 19 starts counting the number of motor drive pulses D.

その後、用紙26の搬送によりその先端がフォトセンサ
11上を完全に通過すると、フォトセンサ11の出力は
一定値となる。逐次比較部18はこれを検出してイネー
ブル信号Cをオフ状態としく時刻t2)、その結果、カ
ウンタ19はモータ駆動パルスDのパルス数のカウント
を終了する。
Thereafter, when the leading edge of the paper 26 completely passes over the photosensor 11 as the paper 26 is conveyed, the output of the photosensor 11 becomes a constant value. The successive approximation unit 18 detects this and turns off the enable signal C at time t2), and as a result, the counter 19 finishes counting the number of motor drive pulses D.

カウンタ19からのカウントデータEは1/2除算器2
2で、1/2に除算され、この除算データFが減算器2
4に入力される。
Count data E from counter 19 is 1/2 divider 2
2 is divided into 1/2, and this division data F is sent to subtracter 2.
4 is input.

即ち、時刻ts””t2の間にカウントされたパルス数
は、用紙26先端のフォトセンサ11通過前位置と通過
後位置の用紙搬送量に対応した値であり、モータ16の
駆動量である。
That is, the number of pulses counted during time ts""t2 is a value corresponding to the amount of paper conveyance at the position before and after the leading edge of the paper 26 passes the photosensor 11, and is the drive amount of the motor 16.

そしてこの値は、用紙26の反射率やフォトセンサ11
の感度により異なる値である。しかしながら、この値(
用紙搬送量)の1/2の値に対応する用紙26の位置は
、変化期間のパルス数にかかわらず常にその先端がフォ
トセンサ11の中心位置に一致した場合である。従って
、変化期間のパルス数を1/2にすることによって、セ
ンサの中心位置と用紙との正確な位置関係を算出できる
ことになる。
This value is determined by the reflectance of the paper 26 and the photo sensor 11.
The value differs depending on the sensitivity. However, this value (
The position of the paper 26 corresponding to 1/2 of the paper conveyance amount is the case where the leading edge of the paper 26 always coincides with the center position of the photosensor 11 regardless of the number of pulses during the change period. Therefore, by reducing the number of pulses during the change period to 1/2, it is possible to calculate an accurate positional relationship between the center position of the sensor and the paper.

第6図にパルス数と用紙26との関係を示す。FIG. 6 shows the relationship between the number of pulses and the paper 26.

即ち、フォトセンサ11の出力変化期間りにカウントさ
れたパルス数を2aとすると、その1/2の値aでは必
ず用紙26先端がフォトセンサ11の中心位置に一致し
ていることになる。
That is, if the number of pulses counted during the output change period of the photosensor 11 is 2a, then the leading edge of the paper 26 will always coincide with the center position of the photosensor 11 at a value a that is 1/2 of that number.

制御部20の補正部23は、イネーブル信号Cのオフを
検出すると、用紙26の印刷開始部が印字ヘッド31に
達するのに必要なだけモータ駆動パルスDを出力し、L
Fパルスモータ16の駆動によって用紙26を所定位置
まで搬送する。
When the correction unit 23 of the control unit 20 detects that the enable signal C is turned off, it outputs the motor drive pulse D as much as necessary for the printing start part of the paper 26 to reach the print head 31, and
The paper 26 is conveyed to a predetermined position by driving the F-pulse motor 16.

即ち、これを第6図を用いて説明すると、補正部23が
出力する駆動パルスは、メモリ25に格納されている理
論値データG−(変化期間の駆動パルス数2a/2・a
)を減算した値(=減算器24の出力データの値H)と
なる。
That is, to explain this using FIG. 6, the drive pulse outputted by the correction unit 23 is calculated based on the theoretical value data G-(number of drive pulses in the change period 2a/2·a) stored in the memory 25.
) is subtracted (=value H of the output data of the subtracter 24).

尚、上記実施例では、用紙26と印刷位置との位置関係
の補正として、印刷を開始する用紙26の先端部の補正
を行ったが、同様の構成で用紙26の後端部と印刷終了
位置との位置関係の補正も可能である。
In the above embodiment, as a correction of the positional relationship between the paper 26 and the print position, the leading edge of the paper 26 where printing starts is corrected, but with the same configuration, the trailing edge of the paper 26 and the printing end position are corrected. It is also possible to correct the positional relationship with.

また、上記実施例では、フォトセンサ11出力の変化期
間のパルス数を172とすることで、用紙26先端とフ
ォトセンサ11の中心位置との一致を検出したが、この
除算値は1/2だけでなく、フォトセンサ11の特性等
によって異なることは勿論である。
Further, in the above embodiment, the number of pulses during the change period of the output of the photosensor 11 is set to 172 to detect the coincidence between the leading edge of the paper 26 and the center position of the photosensor 11, but this division value is only 1/2. Of course, it differs depending on the characteristics of the photosensor 11, etc.

(発明の効果) 以上詳細に説明したように、本発明によれば、フォトセ
ンサの出力信号変化期間に基づいてフォトセンサの中心
位置と用紙端位置との位置関係を算出し、この算出値を
用いて印刷位置と用紙との位置関係を補正するようにし
たので、フォトセンサの特性や用紙の反射率等とは無関
係に用紙を印刷位置に正確に搬送することができる。
(Effects of the Invention) As described above in detail, according to the present invention, the positional relationship between the center position of the photosensor and the paper edge position is calculated based on the output signal change period of the photosensor, and this calculated value is calculated. Since the positional relationship between the printing position and the paper is corrected using the above-described method, the paper can be accurately transported to the printing position regardless of the characteristics of the photosensor, the reflectance of the paper, and the like.

従って、各プリンタ装置や用紙毎にオペレータが用紙と
印刷位置との調整を行う必要もなく、操作性向上を図る
ことができる。
Therefore, there is no need for the operator to adjust the paper and printing position for each printer device or paper, and operability can be improved.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明のプリンタ装置の機能ブロック図、第2
図は従来のプリンタ装置のブロック図、第3図は本発明
装置の具体的な構成を示すブロック図、第4図は本発明
装置の要部の構造を示す斜視図、第5図は本発明装置の
各部の動作タイムチャート、第6図は本発明装置の用紙
搬送の説明図である。 11・・・フォトセンサ、12・・・変化期間検出手段
、13・・・位置算出手段、14・・・補正手段。 11:フォトセンサ 本発明装置のブロック図 第  1  図 従来装置のブロック図 第  2  図 本発明i5置の具体的なブロック図 第  3  図
FIG. 1 is a functional block diagram of the printer device of the present invention, and FIG.
The figure is a block diagram of a conventional printer device, FIG. 3 is a block diagram showing a specific configuration of the device of the present invention, FIG. 4 is a perspective view showing the structure of the main part of the device of the present invention, and FIG. 5 is a block diagram of the device of the present invention. The operation time chart of each part of the apparatus, FIG. 6 is an explanatory diagram of paper conveyance in the apparatus of the present invention. DESCRIPTION OF SYMBOLS 11... Photo sensor, 12... Change period detection means, 13... Position calculation means, 14... Correction means. 11: Photosensor Block diagram of the device of the present invention Fig. 1 Block diagram of the conventional device Fig. 2 Specific block diagram of the i5 device of the present invention Fig. 3

Claims (1)

【特許請求の範囲】 搬送される用紙の用紙端通過時にその出力信号が変化す
るフォトセンサと、 前記フォトセンサの出力信号変化の開始時から終了時ま
での期間を検出する変化期間検出手段と、 前記変化期間検出手段で検出された期間に基づき、用紙
端位置と前記フォトセンサの検出基準位置との位置関係
を算出する位置算出手段と、前記位置算出手段で算出さ
れた位置関係に基づき、印刷位置と前記用紙との位置関
係を補正する補正手段とを設けたことを特徴とするプリ
ンタ装置。
[Scope of Claims] A photosensor whose output signal changes when the sheet of paper being conveyed passes the edge of the sheet; a change period detection means for detecting a period from the start to the end of the change in the output signal of the photosensor; a position calculation means for calculating the positional relationship between the paper edge position and the detection reference position of the photosensor based on the period detected by the change period detection means; A printer apparatus comprising: a correction means for correcting a position and a positional relationship between the paper and the paper.
JP29368990A 1990-11-01 1990-11-01 Printer Pending JPH04168075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29368990A JPH04168075A (en) 1990-11-01 1990-11-01 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29368990A JPH04168075A (en) 1990-11-01 1990-11-01 Printer

Publications (1)

Publication Number Publication Date
JPH04168075A true JPH04168075A (en) 1992-06-16

Family

ID=17797961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29368990A Pending JPH04168075A (en) 1990-11-01 1990-11-01 Printer

Country Status (1)

Country Link
JP (1) JPH04168075A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05147310A (en) * 1991-11-30 1993-06-15 Nec Corp Printing-medium positioning controller

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05147310A (en) * 1991-11-30 1993-06-15 Nec Corp Printing-medium positioning controller

Similar Documents

Publication Publication Date Title
JPH02178146A (en) Print positioning control method and controller as well as printer
JP4136124B2 (en) Method for detecting end position of recording paper using reflection type optical sensor and image forming apparatus
JPH04168075A (en) Printer
JPH06255840A (en) Skew correcting method
JP2004276396A (en) Method for calculating positional shift correction amount of heading and printer
JP4585261B2 (en) Stencil printing machine
JP3129835B2 (en) Image reading device
JP3127982B2 (en) Abnormal paper detection device for printing press
JPH0825699A (en) Raster type recording apparatus
JPH0281869A (en) Method for controlling servo
JPS5882780A (en) Recording paper detector for printer
JP2572855B2 (en) Paper detection device for automatic document feeder
JPH1081432A (en) Image processing device
JP3332976B2 (en) Sheet feeder
JPS63139852A (en) Paper detecting system
KR950001535B1 (en) Automatically correcting method of a document size in automatic document feeder
JPH0797133A (en) Detecting method for printing-position in long paper printing device
JPS63112186A (en) Control of printing by detection of printing paper
JPH088628B2 (en) Image reader
JPH0692512A (en) Image forming device
JPS62105662A (en) Bankbook printer
JPH04223182A (en) Recording medium-positioning device
JPH0344656A (en) Automatic document feeder
JP2763842B2 (en) Paper transport control method for thermal printer
JPH05191583A (en) Method for correcting form carrier speed for form driving-type scanner