JP3098121B2 - Serial printer - Google Patents

Serial printer

Info

Publication number
JP3098121B2
JP3098121B2 JP04314001A JP31400192A JP3098121B2 JP 3098121 B2 JP3098121 B2 JP 3098121B2 JP 04314001 A JP04314001 A JP 04314001A JP 31400192 A JP31400192 A JP 31400192A JP 3098121 B2 JP3098121 B2 JP 3098121B2
Authority
JP
Japan
Prior art keywords
reference voltage
carriage
serial printer
output signal
sampling
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 - Fee Related
Application number
JP04314001A
Other languages
Japanese (ja)
Other versions
JPH06135083A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP04314001A priority Critical patent/JP3098121B2/en
Priority to TW082106819A priority patent/TW226450B/zh
Priority to US08/113,326 priority patent/US5427461A/en
Priority to KR1019930016999A priority patent/KR970003658B1/en
Priority to DE69315284T priority patent/DE69315284T2/en
Priority to AT93113914T priority patent/ATE160317T1/en
Priority to CN93117242A priority patent/CN1035288C/en
Priority to EP93113914A priority patent/EP0585881B1/en
Publication of JPH06135083A publication Critical patent/JPH06135083A/en
Application granted granted Critical
Publication of JP3098121B2 publication Critical patent/JP3098121B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、シリアルプリンタ装置
に関し、特に印字用ヘッドを搭載したキャリッジの移動
と記録ヘッドによる記録動作を同期させる同期信号発生
回路を備えたシリアルプリンタ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial printer, and more particularly to a serial printer having a synchronizing signal generating circuit for synchronizing the movement of a carriage having a print head and the printing operation of a print head.

【0002】[0002]

【従来の技術】シリアルプリンタは、記録手段の印字用
ヘッドを搭載するキャリッジを記録媒体に対して横方向
に走査させながら記録(印字)するものであるが、何ら
かの影響でキャリッジに速度変動が発生すると記録結果
の濃度ムラが起こる。特に、カラープリンタにおいては
カラーレジストレーションのズレが発生して問題とな
る。
2. Description of the Related Art In a serial printer, printing (printing) is performed while scanning a carriage on which a printing head of a printing means is mounted in a horizontal direction with respect to a printing medium. Then, density unevenness of the recording result occurs. In particular, in a color printer, a shift in color registration occurs, which is a problem.

【0003】従来より、これらの問題を解消する1つの
方法として記録手段を搭載したキャリッジの装置本体に
対する移動量の検出を行い、この検出結果との同期を図
りながら記録手段による記録動作を行う構成が知られて
いる。
Conventionally, as one method for solving these problems, a configuration in which the amount of movement of a carriage equipped with recording means with respect to the apparatus main body is detected, and the recording operation is performed by the recording means while synchronizing with the detection result. It has been known.

【0004】即ち、本体側にリニアエンコーダのスケー
ル部を固定し、このスケール部に対して相対移動するキ
ャリッジ上にリニアエンコーダの検出部を搭載する一
方、この検出部からの出力信号を増幅してからキャリッ
ジの外部に取り出して、この増幅信号に同期して記録信
号を発生することにより、印字濃度ムラやカラーレジス
トレーションのズレの発生を防止するものである。
That is, a scale section of a linear encoder is fixed on a main body side, and a detection section of a linear encoder is mounted on a carriage which moves relatively to the scale section, and an output signal from the detection section is amplified. Then, the recording signal is taken out of the carriage and a recording signal is generated in synchronization with the amplified signal, thereby preventing print density unevenness and color registration deviation.

【0005】図4は記録媒体と共に示すシリアルプリン
タ装置の要部斜視図である。図1において、一点鎖線で
示すキャリッジ1はインクジェット記録方式などの記録
部2を搭載する一方、外周面上に螺旋溝を形成した案内
軸体3によって案内され、案内軸体3の回転によって係
止部(図示せず)が螺旋溝に沿うように駆動されて、プ
ラテン4の外周面に巻き付けられている記録シート5に
対して図中の矢印方向に往復駆動されながら、記録シー
ト(記録媒体)5上にピッチPでドットDを記録して画
像、文字を形成するいわゆるシリアルプリンタを構成し
ている。
FIG. 4 is a perspective view of a main part of the serial printer shown together with the recording medium. In FIG. 1, a carriage 1 indicated by an alternate long and short dash line has a recording unit 2 such as an ink jet recording system mounted thereon, and is guided by a guide shaft 3 having a spiral groove formed on an outer peripheral surface thereof, and is locked by the rotation of the guide shaft 3. A portion (not shown) is driven along the spiral groove, and is reciprocally driven in a direction indicated by an arrow in the drawing with respect to the recording sheet 5 wound on the outer peripheral surface of the platen 4, and a recording sheet (recording medium) A so-called serial printer that forms dots and images by printing dots D at a pitch P on the print head 5 is formed.

【0006】このように構成されるキャリッジ1には同
期信号を得るためのエンコーダが内装されている。この
エンコーダは磁気式リニアエンコーダであり、針金の表
面上に形成された磁性体に例えば180ドット/インチ
(dpi)や360dpiに相当する印字ピッチ密度で
磁気パターンを記録したリニアエンコーダのスケール部
6が装置本体7に固定される一方、MR素子などから成
る磁気ヘッド本体101がキャリッジ1の内部に固定さ
れており、キャリッジ1の移動による位置検出を可能に
している。
[0006] The carriage 1 constructed as described above is provided with an encoder for obtaining a synchronization signal. This encoder is a magnetic linear encoder, and a scale part 6 of the linear encoder in which a magnetic pattern is recorded on a magnetic material formed on the surface of the wire at a print pitch density equivalent to, for example, 180 dots / inch (dpi) or 360 dpi. A magnetic head main body 101 composed of an MR element or the like is fixed inside the carriage 1 while being fixed to the apparatus main body 7, and enables position detection by movement of the carriage 1.

【0007】また、検出部101には、磁気ヘッド中の
MR素子からの出力信号を外部に引き出すためのフレキ
シブルプリント基板8が接続されており、コネクタ(図
示せず)に接点部9を接続するようにして、キャリッジ
1上に搭載されるキャリッジ基板104(破線で示す)
に接続するようにしている。
Further, a flexible printed circuit board 8 for extracting an output signal from the MR element in the magnetic head to the outside is connected to the detecting section 101, and a contact section 9 is connected to a connector (not shown). Thus, the carriage substrate 104 (shown by a broken line) mounted on the carriage 1
To connect to.

【0008】このキャリッジ基板104および記録部2
は本体7(概略的に示す)上に固定されているプリンタ
制御回路基板109に対してフレキシブルケーブル10
を介して電気的に接続されている。
The carriage substrate 104 and the recording section 2
Is a flexible cable 10 attached to a printer control circuit board 109 fixed on the main body 7 (shown schematically).
Are electrically connected via

【0009】図5は、図4で示すシリアルプリンタ装置
の回路構成例を示すブロック図である。図5において、
キャリッジに搭載されて本体側に固定される磁気式リニ
アエンコーダのスケール部に着磁された情報の検出を行
ってキャリッジの相対移動位置の検出を行う磁気式リニ
アエンコーダの検出部101は、磁気抵抗効果に基づい
て動作するMR素子から成る磁気検出素子102、10
3を内蔵している。また、検出部101は、キャリッジ
に搭載されるキャリッジ基板104(図4で破線で示
す)に接続されている。このキャリッジ基板104は、
定電流回路105、106と、各検出素子によって検出
された各信号を差動増幅する差動増幅器107とを有
し、差動増幅器107から出力信号A0 (または10
8)を出力する。
FIG. 5 is a block diagram showing an example of a circuit configuration of the serial printer shown in FIG. In FIG.
The detection unit 101 of the magnetic linear encoder which detects the magnetized information on the scale unit of the magnetic linear encoder mounted on the carriage and fixed to the main body side and detects the relative movement position of the carriage has a magnetic resistance. Magnetic sensing elements 102, 10 each composed of an MR element operating based on the effect
3 built-in. The detection unit 101 is connected to a carriage substrate 104 (shown by a broken line in FIG. 4) mounted on the carriage. This carriage substrate 104
It has constant current circuits 105 and 106, and a differential amplifier 107 that differentially amplifies each signal detected by each detection element, and outputs an output signal A 0 (or 10
8) is output.

【0010】プリンタ制御回路基板109は、出力信号
0 をA/D変換するA/Dコンバータ112と、出力
信号A0 と参照電圧を比較してパルス波形のカウンタパ
ルスA(または111)を発生するコンパレータ110
と、コンパレータ110の一方の端子の入力信号である
参照電圧Vref (または120)を発生するD/Aコン
バータ114と、カウンタパルスAをカウントするカウ
ンタ/タイマ113と、システムを制御するCPU11
5と、記憶装置であるEEPROM116、ROM11
7、RAM118と、CPU115のデータ、アドレ
ス、制御信号のバスであるCPUバス119とを有す
る。なお、破線内に示す構成素子のうちの一部または全
部がCPU115内に組み込まれててもよい。
[0010] The printer control circuit board 109, generates an output signal A 0 and A / D converter 112 for converting A / D, the counter pulse A pulse waveform by comparing the reference voltage and the output signal A 0 (or 111) Comparator 110
A D / A converter 114 for generating a reference voltage V ref (or 120) as an input signal of one terminal of the comparator 110, a counter / timer 113 for counting a counter pulse A, and a CPU 11 for controlling the system
5 and storage devices such as EEPROM 116 and ROM 11
7, a RAM 118, and a CPU bus 119 which is a bus for data, addresses, and control signals of the CPU 115. Note that some or all of the components shown in the broken lines may be incorporated in the CPU 115.

【0011】次に、上記回路構成の動作を説明する。磁
気検出素子102、103には各々定電流回路105、
106を介して一定電流が供給されており、一定間隔で
磁気パターンが予め着磁された、本体側に固定された磁
気式リニアエンコーダのスケール部6(図4参照)に沿
って検出部101が移動すると、磁気検出素子102、
103の抵抗値が変化して、その抵抗値の変化量が電圧
変動として検知されて、差動増幅器107において増幅
された後、その増幅信号がコンパレータ110の一方の
入力端子に入力される。
Next, the operation of the above circuit configuration will be described. Each of the magnetic detection elements 102 and 103 has a constant current circuit 105,
A constant current is supplied through the sensor 106, and the detection unit 101 is moved along the scale unit 6 (see FIG. 4) of the magnetic linear encoder fixed to the main body side in which the magnetic pattern is magnetized in advance at regular intervals. When moved, the magnetic sensing element 102,
The resistance value of the resistor 103 changes, and the amount of change in the resistance value is detected as a voltage change, amplified by the differential amplifier 107, and then the amplified signal is input to one input terminal of the comparator 110.

【0012】差動増幅器107からの出力信号A0 は疑
似サイン波であるため、コンパレータ110において、
D/Aコンバータ114から出力される参照電圧Vref
と比較され、同期信号としてカウンタパルスAが得られ
る。カウンタパルスAはカウンタ/タイマ113に入力
されてカウントされ、そのカウント値がキャリッジの位
置を表すものである。なお、CPU115は、システム
を制御するもので、CPUバス119を介して、EEP
ROM116、ROM117、RAM118とのデータ
の転送を行い、またA/Dコンバータ112、カウンタ
/タイマ113、D/Aコンバータ114の制御を行
い、さらにシリアルプリンタとしてのその他の機能(例
えば、ホストとのインターフェース機能、各種モータの
制御、印字動作等)の制御を行う。
The output signal A 0 from the differential amplifier 107 is a pseudo sine wave.
Reference voltage V ref output from D / A converter 114
And a counter pulse A is obtained as a synchronization signal. The counter pulse A is input to the counter / timer 113 and counted, and the count value indicates the position of the carriage. The CPU 115 controls the system.
It transfers data to and from the ROM 116, the ROM 117, and the RAM 118, controls the A / D converter 112, the counter / timer 113, and the D / A converter 114. Other functions as a serial printer (for example, interface with a host) Function, control of various motors, printing operation, etc.).

【0013】以上説明したように、磁気式リニアエンコ
ーダの検出部から得られる出力信号A0 は疑似サイン波
であるため、コンバータ110を用いてディジタル信号
(パルス波形)で表されるカウンタパルスAに変換する
必要がある。一方、変換に用いられるコンパレータに入
力されて出力信号A0 と比較される参照電圧Vref は出
力信号A0 の平均値であることが望ましく、このため、
参照電圧Vref を出力信号A0 の平均値となるように初
期調整する必要がある。
As described above, since the output signal A 0 obtained from the detector of the magnetic linear encoder is a pseudo sine wave, the converter 110 converts the output signal A 0 into a counter pulse A represented by a digital signal (pulse waveform). Need to convert. On the other hand, it is desirable reference voltage V ref to be compared is input to the comparator to be used in the conversion and the output signal A 0 is an average value of the output signal A 0, Therefore,
As the reference voltage V ref is an average value of the output signal A 0 is necessary to initially adjust.

【0014】以下に参照電圧Vref の初期調整の手順を
図6に示すフローチャートを用いて説明する。図6
(a)は従来例の参照電圧Vref の初期調整のメインル
ーチンである。図6(a)において、キャリッジの移動
を開始する(ステップS1)。このときはまだリニアエ
ンコーダからのカウンタパルスは正しく出力されていな
いでの、移動速度はわからない。このため、キャリッジ
や案内軸体などの機構部品に基づく負荷を移動できる最
小のトルクを予め求めておき、キャリッジの動きがあま
り速過ぎない速度で移動させるようにCPUが指令す
る。次に、差動増幅器107からの出力信号A0 を検出
して、A0 の平均値が参照電圧Vref となるディジタル
値をD/Aコンバータ114に出力する(ステップS
2)。次に、キャリッジを初期位置に戻す(ステップS
3)。
The procedure for initial adjustment of the reference voltage Vref will be described below with reference to the flowchart shown in FIG. FIG.
(A) is a main routine for initial adjustment of the reference voltage Vref in the conventional example. In FIG. 6A, the movement of the carriage is started (step S1). At this time, since the counter pulse from the linear encoder has not yet been correctly output, the moving speed is not known. For this reason, the minimum torque that can move the load based on the mechanical components such as the carriage and the guide shaft is obtained in advance, and the CPU instructs the carriage to move at a speed that is not too fast. Next, the output signal A 0 from the differential amplifier 107 is detected, and a digital value whose average value of A 0 becomes the reference voltage Vref is output to the D / A converter 114 (step S).
2). Next, the carriage is returned to the initial position (step S
3).

【0015】次に、図6(b)を参照して前述のステッ
プS2の内容を詳しく説明すると、最初に、初期設定と
して、A0 の測定回数を予め決められた数n(1以上の
整数)をカウンタにセットし、同時にA0 の加算エリア
sum をクリアする(ステップS11)。次に、A/D
コンバータ112を用いてA0 のデータをA/D変換し
た後、RAM118に取り込む(ステップS12)。次
いで、カウンタをデクリメントすると共にASUM にA0
を加算する(ステップS13)。次に、カウンタが0か
否かを判断し(ステップS14)、0でない場合、ステ
ップS12に戻り、0の場合にはステップS15に進
む。即ち、カウンタが0になるまで、ステップS12、
13を繰り返す。ステップS14でカウンタが0になる
と、キャリッジを停止させる(ステップS15)。次い
で、ASUM を測定回数nで割ってA0 の平均値Aave
求める(ステップS16)。次に、Vref =Aave とな
るようなディジタル値をD/Aコンバータ114に設定
する(ステップS17)。最後に、EEPROM116
にステップS17で設定したディジタル値を記憶させ
る。
[0015] Next, with reference to FIG. 6 (b) will be explained in detail the contents of the aforementioned step S2, first, as initial setting, A 0 predetermined number n (1 or more integer number of measurements ) Is set in the counter, and at the same time, the addition area A sum of A 0 is cleared (step S11). Next, A / D
After A / D conversion of the data of A 0 using the converter 112, the data is taken into the RAM 118 (step S12). Next, the counter is decremented and A 0 is added to A SUM.
Is added (step S13). Next, it is determined whether or not the counter is 0 (step S14). If it is not 0, the process returns to step S12, and if it is 0, the process proceeds to step S15. That is, until the counter becomes 0, Step S12,
Repeat step 13. When the counter reaches 0 in step S14, the carriage is stopped (step S15). Next, the average value A ave of A 0 is obtained by dividing A SUM by the number of measurements n (step S16). Next, a digital value such that V ref = A ave is set in the D / A converter 114 (step S17). Finally, the EEPROM 116
To store the digital value set in step S17.

【0016】なお、前述のVref 初期調整のシーケンス
は、通常、シリアルプリンタが工場から出荷される前に
1度だけ行われるが、A0 出力の経時変化が大きい場合
には、例えば使用時に電源のオン後に初期化シーケンス
の中でVref 初期調整のシーケンスを組み込んでおいて
もよい。前述のように、EEPROMに記憶されたディ
ジタル値はシリアルプリンタの電源オン後の初期化シー
ケンスの中でD/Aコンバータに設定される。
[0016] Note that the sequence of V ref initial adjustment described above, usually a serial printer is performed only once before being shipped from the factory, when time course of A 0 output is large, for example, the power at the time of use After turning on, the sequence of Vref initial adjustment may be incorporated in the initialization sequence. As described above, the digital value stored in the EEPROM is set in the D / A converter in the initialization sequence after the power of the serial printer is turned on.

【0017】[0017]

【発明が解決しようとする課題】しかしながら、上記従
来例では、以下のような欠点があった。前述のように、
参照電圧Vref 初期調整時にはキャリッジの移動速度が
不明なため、A0 のA/D変換のサンプリング周期がA
0 の疑似サイン波の周期TA0の整数倍となるような場合
には平均値Aave と理想的な参照電圧Vref 、即ちA0
のDC成分との誤差が大きくなることがある。このよう
な場合を図7に示す。誤差の大きい平均値Aave を参照
電圧Vref としてD/Aコンバータに設定すると、デュ
ーティー比が50%から大きくずれたカウンタパルスが
出力されることになる。
However, the above conventional example has the following disadvantages. As aforementioned,
Since the moving speed of the carriage is unknown at the time of the initial adjustment of the reference voltage V ref , the sampling period of the A / D conversion of A 0 is A
In the case where the period becomes an integral multiple of the period T A0 of the pseudo sine wave of 0, the average value A ave and the ideal reference voltage V ref , that is, A 0
Error with the DC component may increase. FIG. 7 shows such a case. If the average value A ave having a large error is set in the D / A converter as the reference voltage V ref , a counter pulse having a duty ratio greatly deviated from 50% will be output.

【0018】参照電圧Vref が理想的な参照電圧Vref
の場合と、大きくずれた場合での平均値A0 と参照電圧
ref に相対的なずれΔVが発生した場合を図8に示
す。相対的なずれは、温度変化、リニアエンコーダのス
ケール部と検出部とのギャップの経時変化などによって
発生する。コンバータ出力の立ち下がりエッジに注目し
てみると、理想的なVref の場合のエッジの変動Δtに
比べて誤差の大きい参照電圧Vref の場合のΔt’が大
きいことがわかる。
The reference voltage V ref is an ideal reference voltage V ref
FIG. 8 shows a case where the relative deviation ΔV occurs between the average value A 0 and the reference voltage V ref in the case of the case of FIG. The relative displacement occurs due to a temperature change, a temporal change in a gap between the scale unit and the detection unit of the linear encoder, and the like. Paying attention to the falling edge of the converter output, it can be seen that Δt ′ in the case of the reference voltage Vref having a large error is larger than the edge fluctuation Δt in the case of the ideal Vref .

【0019】したがって、本発明の目的は、理想的な参
照電圧を得るように参照電圧を初期調整できるシリアル
プリンタを提供することにある。
Accordingly, it is an object of the present invention to provide a serial printer capable of initially adjusting a reference voltage so as to obtain an ideal reference voltage.

【0020】[0020]

【課題を解決するための手段】前述の目的を達成するた
めに、本発明は、装置本体上で往復運動されかつ記録手
段を搭載したキャリッジの移動に対して同期を図りなが
ら記録手段により記録を行うシリアルプリンタ装置にお
いて、装置本体上に設けられたリニアエンコーダのスケ
ール部と、前記スケール部の位置を検出するために前記
キャリッジに搭載されたリニアエンコーダの検出部と、
該検出部から出力される信号を入力信号として受けて参
照電圧と比較して同期信号としてパルス波形の出力信号
を発生する同期信号発生回路手段と、該同期信号発生回
路手段に入力する前記参照電圧を初期調整するための参
照電圧初期調整手段とを有し、該参照電圧初期調整手段
は、前記キャリッジの移動速度と前記出力信号をサンプ
リングするサンプリング周期とを同期させる速度同期手
段と、前記速度同期手段により前記キャリッジの移動速
度と前記出力信号をサンプリングするサンプリング周期
とを同期した後、サンプリングに基づいて所定の測定回
数だけ前記出力信号の値を測定する測定手段と、該測定
手段から得られた値を平均して参照電圧を得る手段とを
有することを特徴とするシリアルプリンタを採用するも
のである。
SUMMARY OF THE INVENTION In order to achieve the above-mentioned object, the present invention provides a recording apparatus which performs reciprocating motion on an apparatus main body and performs recording by a recording means while synchronizing the movement of a carriage on which the recording means is mounted. In the serial printer device to be performed, a scale section of a linear encoder provided on the apparatus main body, a detection section of a linear encoder mounted on the carriage to detect the position of the scale section,
Synchronizing signal generating circuit means for receiving a signal output from the detection unit as an input signal and comparing the signal with a reference voltage to generate an output signal having a pulse waveform as a synchronizing signal; and the reference voltage input to the synchronizing signal generating circuit means Reference voltage initial adjusting means for initial adjusting the speed, the reference voltage initial adjusting means includes a speed synchronizing means for synchronizing the moving speed of the carriage and a sampling period for sampling the output signal, and the speed synchronizing means. Measuring means for measuring the value of the output signal a predetermined number of times based on the sampling, after synchronizing the moving speed of the carriage and a sampling cycle for sampling the output signal by the means, and obtained from the measuring means. Means for obtaining a reference voltage by averaging the values.

【0021】[0021]

【実施例】次に、図1〜図3を参照して本発明の好まし
い実施例を説明する。なお、これらの実施例のハードウ
エアは図4および図5に関連して既に説明した従来例と
同様な構成であるので、ハードウエアに関する説明は省
略する。図1はコンパレータの参照電圧Vref の初期調
整のシーケンスを示したフローチャートである。
Next, a preferred embodiment of the present invention will be described with reference to FIGS. Note that the hardware of these embodiments has the same configuration as the conventional example already described with reference to FIGS. 4 and 5, and a description of the hardware will be omitted. FIG. 1 is a flowchart showing a sequence of the initial adjustment of the reference voltage Vref of the comparator.

【0022】図1において、ステップS21〜S23
は、図6(a)で示した従来例のステップS1〜S3と
同一である。これらのステップS21〜S23で、カウ
ンタパルスA0 としてある程度正常な値が得られる。
In FIG. 1, steps S21 to S23
Are the same as steps S1 to S3 of the conventional example shown in FIG. These steps S21 to S23, normal values can be obtained to some extent as a counter pulse A 0.

【0023】次に、キャリッジを再度移動させる(ステ
ップS24)。次に、ステップS25〜S27を行う
が、これらのステップはキャリッジの速度制御ループで
ある。即ち、キャリッジの速度を検出し(ステップS2
5)、キャリッジ速度が同期したか否かを判断し(ステ
ップS26)、同期してないときには、キャリッジ速度
を調整して(ステップS27)、ステップS25に戻
り、再度キャリッジの速度検出を行い、再びキャリッジ
速度が同期したか否かの判断を行い、同期するまでステ
ップS25〜S27を繰り返す。キャリッジ速度が同期
した場合には、次のステップであるステップS28に進
む。
Next, the carriage is moved again (step S24). Next, steps S25 to S27 are performed, and these steps are a carriage speed control loop. That is, the speed of the carriage is detected (step S2).
5) It is determined whether or not the carriage speeds are synchronized (step S26). If not, the carriage speed is adjusted (step S27), the process returns to step S25, and the carriage speed is detected again, and again. It is determined whether or not the carriage speeds are synchronized, and steps S25 to S27 are repeated until the carriage speeds are synchronized. When the carriage speeds are synchronized, the process proceeds to the next step, step S28.

【0024】ここで、ステップS27のキャリッジの速
度調整は、カウンタ/タイマのカウンタパルスAのカウ
ント値を読み取って、A/Dコンバータのサンプリング
周期TS に対してMR素子の出力A0 の周期が以下の関
係式1が成り立つようにキャリッジの速度を調整するこ
とによって行う。 TS =TA0/2m (mは1以上の整数) ・・・・・ (1) なお、関係式1が成り立つ例を図2に示す。
[0024] Here, the speed adjustment of the carriage in step S27 reads the count value of the counter pulse A counter / timer, the period of the output A 0 of the MR element with respect to the A / D converter sampling period T S is This is performed by adjusting the speed of the carriage so that the following relational expression 1 holds. T S = T A0 / 2 m (m is an integer of 1 or more) (1) An example in which the relational expression 1 holds is shown in FIG.

【0025】この際、TS が可変であれば、TA0を変え
ずに、即ちキャリッジの移動速度を変えずに、Ts のみ
を関係式1が成立するように変えてもよい。
[0025] If this time, T S is variable, without changing the T A0, i.e. without changing the moving speed of the carriage may be changed so that only the T s equation 1 is satisfied.

【0026】次に、ステップS28では、A0 をTs
間隔でn回測定して平均値Aave を算出する。このステ
ップS28は図6(b)に関連して既に説明した従来例
のステップS11〜S18と同一である。ただし、測定
回数nは以下の関係式2を満足する必要がある。 n=k・2m ・・・・・ (2) (ただし、mは関係式1のmと同一であり、kは1以上
の整数である)。関係式2が成り立つ例がやはり図2に
示されている。この図2の例では、m=2、k=2、n
=8である。
Next, in step S28, by measuring n times A 0 at intervals of T s and calculates an average value A ave. Step S28 is the same as steps S11 to S18 of the conventional example already described with reference to FIG. However, the number of measurements n must satisfy the following relational expression 2. n = k · 2 m (2) (where m is the same as m in the relational expression 1, and k is an integer of 1 or more). An example in which relational expression 2 holds is also shown in FIG. In the example of FIG. 2, m = 2, k = 2, n
= 8.

【0027】n回の測定の平均値Aave とA0 のDC成
分が等しきなるためには、サンプリングのタイミングが
0 の180°位相がずれた点で行えばよく、図2の例
では、点201と点203、点202と点204、点2
05と点207、点206と点208での値がそれぞれ
0 のDCレベルとの誤差を打ち消しあっていることが
わかる。
In order for the average value A ave of the n times of measurement to be equal to the DC component of A 0 , it is sufficient to perform sampling at a point where the phase of A 0 is shifted by 180 °, and in the example of FIG. , Points 201 and 203, points 202 and 204, point 2
It can be seen that the values at points 05 and 207 and the points 206 and 208 cancel out the error with the DC level of A 0 , respectively.

【0028】そして、最後に、キャリッジを戻し(ステ
ップS29)、Vref の初期調整が完了する。
Finally, the carriage is returned (step S29), and the initial adjustment of Vref is completed.

【0029】次に、図3を参照して他の実施例を説明す
る。参照電圧の初期調整のシーケンスは図1と同様であ
る。この実施例は、サンプリング周期Ts がMR素子の
出力A0 の周期TA0よりも短くできない場合、即ち、キ
ャリッジの移動速度を遅くできない場合に適用できる。
即ち、前述の関係式1、2を以下のような関係式
(1’)、(2’)に変更すれば、測定の平均値Aave
の誤差を小さくできる。 TS =TA0(1/2+m) (mは1以上の整数) ・・・・(1’) n=2k (kは1以上の整数) ・・・・(2’) 図3は、m=1、k=2、n=4の場合の例を示し、点
301と点302の値、点303と点304の値がそれ
ぞれ打ち消し合っている。
Next, another embodiment will be described with reference to FIG. The sequence of the initial adjustment of the reference voltage is the same as in FIG. This embodiment, when the sampling period T s can not be shorter than the period T A0 output A 0 of the MR element, i.e., can be applied if it can not slow down the moving speed of the carriage.
That is, if the above-mentioned relational expressions 1 and 2 are changed to the following relational expressions (1 ′) and (2 ′), the average value A ave of the measurement is obtained.
Can be reduced. T S = T A0 (1/2 + m) (m is an integer of 1 or more) (1 ′) n = 2 k (k is an integer of 1 or more) (2 ′) An example where m = 1, k = 2, and n = 4 is shown, and the values of points 301 and 302 and the values of points 303 and 304 cancel each other.

【0030】[0030]

【発明の効果】以上説明したように、キャリッジの移動
速度とMR素子の出力のA/Dコンバータによるサンプ
リング周期を同期させ、かつキャリッジ移動速度とサン
プリング周期から求められる回数だけサンプリングする
シーケンスをVref 初期調整シーケンスに追加すること
により、デューティー比が50%に近いカウンタパルス
が得られることになり、MR素子出力の経時変化による
カウンタパルスの波形の変化が抑えられるために、シリ
アルプリンタの記録結果の濃度むらを低減することがで
きる。
As described above, the sequence of synchronizing the moving speed of the carriage with the sampling period of the output of the MR element by the A / D converter and sampling the number of times obtained from the moving speed of the carriage and the sampling period is V ref. By adding to the initial adjustment sequence, a counter pulse with a duty ratio close to 50% can be obtained, and a change in the waveform of the counter pulse due to a temporal change in the output of the MR element is suppressed. Density unevenness can be reduced.

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

【図1】図1は、本発明のシリアルプリンタの第1実施
例におけるコンパレータ参照電圧の初期調整シーケンス
のフローチャートである。
FIG. 1 is a flowchart of an initial adjustment sequence of a comparator reference voltage in a first embodiment of a serial printer of the present invention.

【図2】図2は、第1実施例の同期タイミングを説明す
るためのコンパレータ入力の波形図である。
FIG. 2 is a waveform diagram of a comparator input for explaining a synchronization timing according to the first embodiment.

【図3】図3は、第2実施例の同期タイミングを説明す
るためのコンパレータ入力の波形図である。
FIG. 3 is a waveform diagram of a comparator input for explaining a synchronization timing according to the second embodiment.

【図4】図4はシリアルプリンタの要部斜視図である。FIG. 4 is a perspective view of a main part of the serial printer.

【図5】図5は、図4の回路構成例を示すブロック図で
ある。
FIG. 5 is a block diagram illustrating an example of a circuit configuration of FIG. 4;

【図6】図6は、従来例のコンパレータ参照電圧の初期
調整シーケンスのフローチャートである。
FIG. 6 is a flowchart of a conventional reference initial adjustment sequence of a comparator reference voltage.

【図7】図7は、サンプリング周期がコンパレータ入力
の周期の整数倍のときのカウンタパルスの波形図であ
る。
FIG. 7 is a waveform diagram of a counter pulse when a sampling cycle is an integral multiple of a cycle of a comparator input.

【図8】図8はコンパレータ入力と参照電圧に相対的な
ずれが発生した場合のカウンタパルスのデューティー
比、エッジ位置の変化を示す波形図である。
FIG. 8 is a waveform diagram showing a change in a duty ratio and an edge position of a counter pulse when a relative shift occurs between a comparator input and a reference voltage.

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

1 キャリッジ 2 記録部 3 案内軸体 4 プラテン 5 記録シート 6 磁気式リニアエンコーダのスケール部 7 本体 8 フレキシブル基板 9 接点部 10 フレキシブルケーブル 101 検出部 102、103 MR素子 104 キャリッジ基板 105、106 定電流回路 107 差動増幅器 108 出力信号A0 109 プリンタ制御回路基板 110 コンパレータ 111 カウンタパルス 112 A/Dコンバータ 113 カウンタ/タイマ 114 D/Aコンバータ 115 CPU 116 EEPROM 117 ROM 118 RAM 119 CPUバス 120 参照電圧Vref DESCRIPTION OF SYMBOLS 1 Carriage 2 Recording part 3 Guide shaft 4 Platen 5 Recording sheet 6 Magnetic linear encoder scale part 7 Main body 8 Flexible substrate 9 Contact part 10 Flexible cable 101 Detecting part 102, 103 MR element 104 Carriage substrate 105, 106 Constant current circuit 107 Differential amplifier 108 Output signal A 0 109 Printer control circuit board 110 Comparator 111 Counter pulse 112 A / D converter 113 Counter / timer 114 D / A converter 115 CPU 116 EEPROM 117 ROM 118 RAM 119 CPU bus 120 Reference voltage V ref

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 装置本体上で往復運動されかつ記録手段
を搭載したキャリッジの移動に対して同期を図りながら
記録手段により記録を行うシリアルプリンタ装置におい
て、 装置本体上に設けられたリニアエンコーダのスケール部
と、 前記スケール部の位置を検出するために前記キャリッジ
に搭載されたリニアエンコーダの検出部と、 該検出部から出力される信号を入力信号として受けて参
照電圧と比較して同期信号としてパルス波形の出力信号
を発生する同期信号発生回路手段と、 該同期信号発生回路手段に入力する前記参照電圧を初期
調整するための参照電圧初期調整手段とを有し、 該参照電圧初期調整手段は、前記キャリッジの移動速度
と前記出力信号をサンプリングするサンプリング周期と
を同期させる速度同期手段と、前記速度同期手段により
前記キャリッジの移動速度と前記出力信号をサンプリン
グするサンプリング周期とを同期した後、サンプリング
に基づいて所定の測定回数だけ前記出力信号の値を測定
する測定手段と、該測定手段から得られた値を平均して
参照電圧を得る手段とを有することを特徴とするシリア
ルプリンタ。
1. A serial printer device which reciprocates on an apparatus main body and performs recording by a recording unit while synchronizing with movement of a carriage on which the recording unit is mounted, wherein a scale of a linear encoder provided on the apparatus main body is provided. And a detection unit of a linear encoder mounted on the carriage to detect the position of the scale unit. A signal output from the detection unit is received as an input signal, compared with a reference voltage, and pulsed as a synchronization signal. Synchronous signal generating circuit means for generating a waveform output signal, and reference voltage initial adjusting means for initially adjusting the reference voltage input to the synchronous signal generating circuit means, wherein the reference voltage initial adjusting means comprises: Speed synchronizing means for synchronizing the moving speed of the carriage and a sampling cycle for sampling the output signal; Measuring means for measuring the value of the output signal a predetermined number of times based on the sampling, after synchronizing the moving speed of the carriage and a sampling cycle for sampling the output signal by the means, and obtained from the measuring means. Means for averaging values to obtain a reference voltage.
【請求項2】 請求項1記載のシリアルプリンタにおい
て、前記速度同期手段が、前記出力信号の周期TA0、サ
ンプリング周期TS 、および測定回数nの間に、TS
A0/2m (mは1以上の整数)、n=k・2m (ただ
し、mは前式のmと同一であり、kは1以上の整数であ
る)の関係式を成立させるように構成されていることを
特徴とするシリアルプリンタ。
2. The serial printer according to claim 1, wherein said speed synchronizing means sets T S = T S0 between a period T A0 , a sampling period T S , and the number of measurements n of said output signal.
T A0 / 2 m (m is an integer of 1 or more), n = k · 2 m (where m is the same as m in the preceding expression, and k is an integer of 1 or more). A serial printer, comprising:
【請求項3】 請求項1記載のシリアルプリンタにおい
て、前記速度同期手段が、前記出力信号の周期TA0、サ
ンプリング周期TS 、および測定回数nの間に、TS
A0(1/2+m)(mは1以上の整数)、n=2
k (kは1以上の整数)の関係式を成立させるように構
成されていることを特徴とするシリアルプリンタ。
3. The serial printer according to claim 1, wherein said speed synchronizing means sets T S = T S0 between the output signal period T A0 , the sampling period T S , and the number of measurements n.
T A0 (1/2 + m) (m is an integer of 1 or more), n = 2
A serial printer characterized in that a relational expression of k (k is an integer of 1 or more) is satisfied.
【請求項4】 請求項1記載のシリアルプリンタにおい
て、前記参照電圧初期調整手段から得られた前記参照電
圧をD/A変換して前記同期信号発生回路の比較手段に
入力するためのD/Aコンバータをさらに有することを
特徴とするシリアルプリンタ。
4. A serial printer according to claim 1, wherein said reference voltage obtained from said reference voltage initial adjusting means is D / A converted and input to a comparing means of said synchronization signal generating circuit. A serial printer further comprising a converter.
JP04314001A 1992-08-31 1992-10-29 Serial printer Expired - Fee Related JP3098121B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP04314001A JP3098121B2 (en) 1992-10-29 1992-10-29 Serial printer
TW082106819A TW226450B (en) 1992-08-31 1993-08-24
KR1019930016999A KR970003658B1 (en) 1992-08-31 1993-08-30 Serial printer
US08/113,326 US5427461A (en) 1992-08-31 1993-08-30 Serial printer with carriage position control
DE69315284T DE69315284T2 (en) 1992-08-31 1993-08-31 Mail merge
AT93113914T ATE160317T1 (en) 1992-08-31 1993-08-31 SERIAL PRINTER
CN93117242A CN1035288C (en) 1992-08-31 1993-08-31 Serial printer
EP93113914A EP0585881B1 (en) 1992-08-31 1993-08-31 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04314001A JP3098121B2 (en) 1992-10-29 1992-10-29 Serial printer

Publications (2)

Publication Number Publication Date
JPH06135083A JPH06135083A (en) 1994-05-17
JP3098121B2 true JP3098121B2 (en) 2000-10-16

Family

ID=18048025

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04314001A Expired - Fee Related JP3098121B2 (en) 1992-08-31 1992-10-29 Serial printer

Country Status (1)

Country Link
JP (1) JP3098121B2 (en)

Also Published As

Publication number Publication date
JPH06135083A (en) 1994-05-17

Similar Documents

Publication Publication Date Title
EP1195247A1 (en) Image forming device
US20110089874A1 (en) Motor drive controller and image forming apparatus incorporating the motor drive controller
EP0585881B1 (en) Serial printer
US4602882A (en) Control system of serial printer
US20080112697A1 (en) Control apparatus using speed estimation for dc motor in image forming apparatus and method thereof
US4332492A (en) Device for controlling the carriage movement in a printer
JP3501737B2 (en) Encoder signal control circuit and control method of the circuit
JP3098121B2 (en) Serial printer
US5331680A (en) Position detecting apparatus
US6042281A (en) Printing apparatus
JP3297101B2 (en) Serial printer
US6654508B1 (en) Correction and interpolation of position encoders
US8890445B2 (en) Drive control device and drive control method
US7006262B2 (en) Reading of information by bidirectional scanning using image reading/printing apparatus
JP3113696B2 (en) Serial printer device
JP3244204B2 (en) Serial printer device
JPH08132680A (en) Serial printer
JP3582750B2 (en) Recording device
JPH01221271A (en) Recording device
JPS6114966A (en) Printing drive control device
JP2002029088A (en) Image recorder
JP3126240B2 (en) Serial printer device
JPH11165440A (en) Ink jet recording apparatus
JPH06255194A (en) Serial printer apparatus
JPH0655795A (en) Printing signal generation method and device in serial printer

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070811

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080811

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees