JP3297101B2 - Serial printer - Google Patents

Serial printer

Info

Publication number
JP3297101B2
JP3297101B2 JP32486492A JP32486492A JP3297101B2 JP 3297101 B2 JP3297101 B2 JP 3297101B2 JP 32486492 A JP32486492 A JP 32486492A JP 32486492 A JP32486492 A JP 32486492A JP 3297101 B2 JP3297101 B2 JP 3297101B2
Authority
JP
Japan
Prior art keywords
reference voltage
carriage
block
serial printer
printer according
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
JP32486492A
Other languages
Japanese (ja)
Other versions
JPH06143727A (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 JP32486492A priority Critical patent/JP3297101B2/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 JPH06143727A publication Critical patent/JPH06143727A/en
Application granted granted Critical
Publication of JP3297101B2 publication Critical patent/JP3297101B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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】図6は記録媒体と共に示すシリアルプリン
タ装置の要部斜視図である。図6において、一点鎖線で
示すキャリッジ1はインクジェット記録方式などの記録
部2を搭載する一方、外周面上に螺旋溝を形成した案内
軸体3によって案内され、案内軸体3の回転によって係
止部(図示せず)が螺旋溝に沿うように駆動されて、プ
ラテン4の外周面に巻き付けられている記録シート5に
対して図中の矢印方向に往復駆動されながら、記録シー
ト(記録媒体)5上にピッチPでドットDを記録して画
像、文字を形成するいわゆるシリアルプリンタを構成し
ている。
FIG. 6 is a perspective view of a main part of a serial printer shown together with a recording medium. In FIG. 6, a carriage 1 indicated by a dashed line carries a recording unit 2 such as an ink jet recording system, and is guided by a guide shaft 3 having a spiral groove formed on an outer peripheral surface, 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, which records a magnetic pattern on a magnetic material formed on the surface of a wire at a print pitch density corresponding to, for example, 180 dots / inch (dpi) or 360 dpi, or a scale portion of a linear encoder. 6 is fixed to the apparatus main body 7, while a magnetic head main body 101 composed of an MR element or the like is fixed inside the carriage 1, 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】図7は、図6で示すシリアルプリンタ装置
の回路構成例を示すブロック図である。図7において、
キャリッジに搭載されて本体側に固定される磁気式リニ
アエンコーダのスケール部に着磁された情報の検出を行
ってキャリッジの相対移動位置の検出を行う磁気式リニ
アエンコーダの検出部101は、磁気抵抗効果に基づい
て動作するMR素子から成る磁気検出素子102、10
3を内蔵している。また、検出部101は、キャリッジ
に搭載されるキャリッジ基板104(図6で破線で示
す)に接続されている。このキャリッジ基板104は、
定電流回路105、106と、各検出素子によって検出
された各信号を差動増幅する差動増幅器107とを有
し、差動増幅器107から出力信号A0 (または10
8)を出力する。
FIG. 7 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. Further, the detection unit 101 is connected to a carriage substrate 104 (shown by a broken line in FIG. 6) 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(図6参照)に沿
って検出部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. 6) of the magnetic linear encoder fixed to the main body side in which the magnetic pattern is magnetized at predetermined 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 の初期調整
の手順を図8に示すフローチャートを用いて説明する
(Vref 初期調整1)。図8(a)は従来例の参照電圧
refの初期調整のメインルーチンである。図8(a)
において、キャリッジの移動を開始する(ステップS
1)。このときはまだリニアエンコーダからのカウンタ
パルスは正しく出力されていないでの、移動速度はわか
らない。このため、キャリッジや案内軸体などの機構部
品に基づく負荷を移動できる最小のトルクを予め求めて
おき、キャリッジの動きがあまり速過ぎない速度で移動
させるようにCPUが指令する。次に、差動増幅器10
7からの出力信号A0 を検出して、A0 の平均値が参照
電圧Vref となるディジタル値をD/Aコンバータ11
4に出力する(ステップS2)。次に、キャリッジを初
期位置に戻す(ステップS3)。
The procedure of the initial adjustment of the reference voltage V ref in the conventional example will be described below with reference to the flowchart shown in FIG. 8 (V ref initial adjustment 1). FIG. 8A shows a main routine for initial adjustment of the reference voltage Vref in the conventional example. FIG. 8 (a)
, The movement of the carriage is started (step S
1). 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 differential amplifier 10
By detecting the output signal A 0 from 7, A digital value D / A converter 11 the average value as a reference voltage V ref of 0
4 (step S2). Next, the carriage is returned to the initial position (Step S3).

【0015】次に、図8(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. 8 (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 初期調整時
にはキャリッジの移動速度が不明なため、A0 のA/D
変換のサンプリング周期がA0 の疑似サイン波の周期T
A0の整数倍となるような場合には平均値Aave と理想的
な参照電圧Vref 、即ちA0のDC成分との誤差が大き
くなることがある。このような場合を図9に示す。誤差
の大きい平均値Aave を参照電圧Vref としてD/Aコ
ンバータに設定すると、デューティー比が50%から大
きくずれたカウンタパルスが出力されることになる。
[0016] As described above, since the moving speed of the carriage is not known at the time of the reference voltage V ref initial adjustment, the A 0 A / D
The period T of the pseudo sine wave whose conversion sampling period is A 0
Mean value if A0 integral multiples become such a A ave an ideal reference voltage V ref, i.e. there is an error of the DC component of A 0 is increased. FIG. 9 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.

【0017】参照電圧Vref が理想的な参照電圧Vref
の場合と、大きくずれた場合での平均値A0 と参照電圧
ref に相対的なずれΔVが発生した場合を図10に示
す。相対的なずれは、温度変化、リニアエンコーダのス
ケール部と検出部とのギャップの経時変化などによって
発生する。コンバータ出力の立ち下がりエッジに注目し
てみると、理想的なVref の場合のエッジの変動Δtに
比べて誤差の大きい参照電圧Vref の場合のΔt’が大
きいことがわかる。
The reference voltage V ref is an ideal reference voltage V ref
FIG. 10 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 .

【0018】この従来例では、コンパレータの出力のエ
ッジに同期してドットを印字するので、エッジの変動が
大きいとピッチが等間隔でなくなるため、記録結果の濃
度むらが起こる。特にカラープリンタにおいては、カラ
ーレジストレーションのズレが発生するという問題があ
る。
In this conventional example, dots are printed in synchronism with the edge of the output of the comparator. If the fluctuation of the edge is large, the pitch will not be equal, and the density of the recording result will be uneven. In particular, in a color printer, there is a problem that a color registration shift occurs.

【0019】このため、前述の従来例の参照電圧Vref
初期調整方法の欠点を改善した参照電圧初期調整方法を
用いたシリアルプリンタが先願の特許出願(整理番号2
404148)(特願平 − 号)に提案
されている。
For this reason, the above-mentioned conventional reference voltage V ref
A serial printer using the reference voltage initial adjustment method that has improved the disadvantages of the initial adjustment method has been applied for a patent application of the earlier application (reference number 2).
404148) (Japanese Patent Application No. Hei. No. hei 10-294).

【0020】次に、提案されているシリアルプリンタに
ついて説明する。なお、シリアルプリンタのハードウエ
アは図6および図7に関連して既に説明した従来例と同
様な構成であるので、ハードウエアに関する説明は省略
する。図11はコンパレータの参照電圧Vref の初期調
整のシーケンスを示したフローチャートである(Vref
初期調整2)。
Next, the proposed serial printer will be described. Note that the hardware of the serial printer has the same configuration as that of the conventional example already described with reference to FIGS. 6 and 7, and a description of the hardware will be omitted. FIG. 11 is a flowchart showing a sequence of initial adjustment of the reference voltage Vref of the comparator ( Vref
Initial adjustment 2).

【0021】図11において、ステップS21〜S23
は、図8(a)で示した従来例のステップS1〜S3と
同一である。これらのステップS21〜S23で、カウ
ンタパルスA0 としてある程度正常な値が得られる。
In FIG. 11, 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.

【0022】次に、キャリッジを再度移動させる(ステ
ップ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.

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

【0024】この際、TS が可変であれば、TA0を変え
ずに、即ちキャリッジの移動速度を変えずに、Ts のみ
を関係式1が成立するように変えてもよい。
[0024] 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.

【0025】次に、ステップS28では、A0 をTs
間隔でn回測定して平均値Aave を算出する。このステ
ップS28は図8(b)に関連して既に説明した従来例
のステップS11〜S18と同一である。ただし、測定
回数nは以下の関係式2を満足する必要がある。 n=k・2m ・・・・・ (2) (ただし、mは関係式1のmと同一であり、kは1以上
の整数である)。関係式2が成り立つ例がやはり図12
に示されている。この図12の例では、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. This 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). FIG. 12 shows an example in which the relational expression 2 holds.
Is shown in In the example of FIG. 12, m = 2 and k =
2, n = 8.

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

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

【0028】なお、前述の参照電圧Vref 初期調整のシ
ーケンスは、通常、シリアルプリンタが工場から出荷さ
れる前に1度だけ行われるが、A0 出力の経時変化が大
きい場合には、例えば使用時に電源のオン後に初期化シ
ーケンスの中で参照電圧Vref 初期調整のシーケンスを
組み込んでおいてもよい。前述のように、EEPROM
に記憶されたディジタル値はシリアルプリンタの電源オ
ン後の初期化シーケンスの中でD/Aコンバータに設定
される。
[0028] Incidentally, aforementioned reference voltage V ref initial adjustment sequence, 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, use Sometimes, a sequence of initial adjustment of the reference voltage Vref may be incorporated in the initialization sequence after the power is turned on. As mentioned earlier, the EEPROM
Is set in the D / A converter in an initialization sequence after the power of the serial printer is turned on.

【0029】[0029]

【発明が解決しようとする課題】しかしながら、前述の
従来例または先願のシリアルプリンタの参照電圧初期調
整方法には、以下のような欠点があった。この欠点を図
13を参照して説明すると、従来例または先願のシリア
ルプリンタの参照電圧初期調整方法でA0 の平均値を正
確に測定できても、A0 のDC成分がキャリッジの位置
によって変化すると、コンパレータの出力は図13
(b)のようにデューティー比が50%から大きくずれ
てしまうだけでなく、A0 のDC成分の変化量がA0
平均値より大きくずれているキャリッジ位置ではカウン
タパルスAを発生させることができなくなってしまう。
However, the above-mentioned prior art or the prior art method for adjusting the reference voltage of a serial printer has the following disadvantages. This disadvantage will be described with reference to FIG. 13. Even if the average value of A 0 can be accurately measured by the reference voltage initial adjustment method of the conventional example or the prior application, the DC component of A 0 depends on the position of the carriage. When it changes, the output of the comparator becomes
Duty ratio as (b) not only deviates significantly from 50%, the carriage position where the variation of the DC component of A 0 is shifted larger than the average value of A 0 is possible to generate a counter pulse A I can no longer do it.

【0030】このため、印字されるドットの位置や間隔
が乱れ、記録結果の品位を著しく損なうことになる。A
0 のDC成分のキャリッジ位置による変化は主に磁気式
リニアエンコーダのスケール部と検出部のMR素子との
ギャップの変化に起因することが多い。キャリッジの全
移動範囲において、ギャップの変化を抑えることは困難
であり、機構的に高価なものとなる。
For this reason, the positions and intervals of the dots to be printed are disturbed, and the quality of the recorded result is significantly impaired. A
The change due to the carriage position of the DC component of 0 is mainly caused by a change in the gap between the scale section of the magnetic linear encoder and the MR element of the detection section. It is difficult to suppress the change in the gap in the entire moving range of the carriage, and it is mechanically expensive.

【0031】したがって、本発明の目的は、磁気式リニ
アエンコーダのスケール部と検出部のMR素子とのギャ
ップが一定でない場合でもキャリッジの全移動範囲にお
いて理想的な参照電圧を得るように参照電圧を初期調整
できるシリアルプリンタを提供することにある。
Therefore, an object of the present invention is to provide a reference voltage for obtaining an ideal reference voltage over the entire moving range of the carriage even when the gap between the scale section of the magnetic linear encoder and the MR element of the detection section is not constant. An object of the present invention is to provide a serial printer capable of initial adjustment.

【0032】[0032]

【課題を解決するための手段】前述の目的を達成するた
めに、本発明は、装置本体上で往復運動されかつ記録手
段を搭載したキャリッジの移動に対して同期を図りなが
ら記録手段により記録を行うシリアルプリンタ装置にお
いて、装置本体上に設けられたリニアエンコーダのスケ
ール部と、前記スケール部の位置を検出するために前記
キャリッジに搭載されたリニアエンコーダの検出部と、
該検出部から出力される信号を入力信号として受けて参
照電圧と比較して同期信号としてパルス波形の出力信号
を発生する同期信号発生回路手段と、該同期信号発生回
路手段に入力する前記参照電圧を初期調整するための参
照電圧初期調整手段とを有し、該参照電圧初期調整手段
は、前記キャリッジの移動範囲をブロック分けする移動
範囲ブロック化手段と、該移動範囲ブロック化手段によ
ってブロック分けされた各ブロック毎に参照電圧を算出
する参照電圧算出手段とを有することを特徴とするシリ
アルプリンタを採用するものである。
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 adjustment means for initial adjustment of the carriage, wherein the reference voltage initial adjustment means is divided by the movement range blocking means for dividing the movement range of the carriage into blocks, and divided by the movement range blocking means. And a reference voltage calculating means for calculating a reference voltage for each block.

【0033】[0033]

【実施例】次に、本発明の好ましい実施例を説明する。
図1は、本発明のシリアルプリンタの第1実施例の参照
電圧Vref 初期調整方法の動作を示すフローチャートで
ある(Vref 初期調整3)。なお、シリアルプリンタの
ハードウエアは、図6および図7に示す従来例や先願の
ものと同様であるので、ここでは省略する。
Next, preferred embodiments of the present invention will be described.
FIG. 1 is a flowchart showing the operation of the reference voltage V ref initial adjustment method of the first embodiment of the serial printer of the present invention (V ref initial adjustment 3). The hardware of the serial printer is the same as that of the conventional example shown in FIGS.

【0034】図1において、最初に、前述のVref 初期
調整2のステップ(図11に示すステップS21〜S2
9)を行う(ステップS31)。次に、ブロック番号と
して1を設定し、即ちブロック番号を初期化し(ステッ
プS32)、キャリッジの移動を開始し(ステップS3
3)、A0 の加算カウンタと加算エリアASUM を初期化
する(ステップS34)。次いで、A/Dコンバータに
よってA0 電圧を測定し(ステップS35)、加算カウ
ンタをインクレメントし(1を加算し)かつASUM にA
0 を加算し(ステップS36)、カウンタ/タイマから
キャリッジの位置を検出する(ステップS37)。
In FIG. 1, first, the aforementioned Vref initial adjustment 2 steps (steps S21 to S2 shown in FIG. 11)
9) is performed (step S31). Next, 1 is set as the block number, that is, the block number is initialized (step S32), and the movement of the carriage is started (step S3).
3) Initialize the A 0 addition counter and the addition area A SUM (step S34). Then, the A / D converter to measure the A 0 voltage (step S35), the up counter incrementing (adding 1) and A to A SUM
0 is added (step S36), and the position of the carriage is detected from the counter / timer (step S37).

【0035】次いで、キャリッジの位置が次のブロック
に至ったか否かを判断する(ステップS38)。なお、
ここで、ブロックとは、キャリッジの移動範囲を所定の
間隔で予め分けた1単位を意味し、また前述のブロック
番号とは、キャリッジの移動に従ってインクレメントす
るブロック毎に付した連続番号を意味する。ステップS
38において、次のブロックに至ってないと判断された
場合、次のブロックに至るまでステップS35〜S37
を繰り返す。
Next, it is determined whether the position of the carriage has reached the next block (step S38). In addition,
Here, the block means one unit in which the moving range of the carriage is divided at predetermined intervals in advance, and the above-mentioned block number means a continuous number assigned to each block incremented according to the movement of the carriage. . Step S
If it is determined in step S38 that the next block has not been reached, steps S35 to S37 are performed until the next block is reached.
repeat.

【0036】ステップ38において、キャリッジの位置
が次のブロックに至ったと判断されると、ASUM を加算
カウンタで割って平均値Aave を計算する(ステップS
39)。次いで、このようにして得られた現在のブロッ
ク番号で示すキャリッジの位置における平均値Aave
即ち参照電圧Vref としてD/Aコンバータに設定する
ためのディジタル値をEEPROMの現在のブロック番
号に対応するエリアへ格納する(ステップS40)。次
いで、ブロック番号をインクレメントし、即ち更新し
(ステップS41)、更新したブロック番号が予め定め
られた最終ブロック番号(=キャリッジ位置の分割数)
より大きいか否かが判断される(ステップS42)。
If it is determined in step 38 that the carriage position has reached the next block, the average value A ave is calculated by dividing A SUM by an addition counter (step S 38).
39). Next, the average value A ave at the position of the carriage indicated by the current block number thus obtained,
That is, a digital value to be set in the D / A converter as the reference voltage Vref is stored in the area of the EEPROM corresponding to the current block number (step S40). Next, the block number is incremented, that is, updated (step S41), and the updated block number is set to a predetermined final block number (= division number of carriage position).
It is determined whether or not it is larger than (Step S42).

【0037】ステップS42において、現在のブロック
番号が最終ブロック番号より大きくないと判断される
と、最終ブロック番号より大きくなるまで、ステップS
34〜S42まで繰り返す。このようにして、各ブロッ
ク毎の平均値Aave がEEPROMの対応する各エリア
に格納される。そして、ステップS42において、現在
のブロック番号が最終ブロック番号より大きいと判断さ
れると、キャリッジの停止を行い(ステップS43)、
キャリッジを初期位置に戻す(ステップS44)。
If it is determined in step S42 that the current block number is not larger than the last block number, the process proceeds to step S42 until the current block number becomes larger than the last block number.
Repeat from 34 to S42. Thus, the average value A ave for each block is stored in the corresponding area of the EEPROM. If it is determined in step S42 that the current block number is larger than the last block number, the carriage is stopped (step S43),
The carriage is returned to the initial position (Step S44).

【0038】次に、前述した図1に示すフローチャート
の動作を図2のタイミングチャートを参照しながら説明
する。図2は、キャリッジの位置に対する差動増幅器1
07(図7参照)からの出力信号A0 、A0 のDC成分
である理想的な参照電圧Vref 、その場合の理想的なカ
ウンタパルスA(a)、キャリッジ移動範囲全体におけ
るA0 の平均値をVref としたときのカウンタパルスA
(b)、A0 のブロック内の平均値をVref としたとき
のカウンタパルスA(c)の関係を示したタイミングチ
ャートである。この実施例では、キャリッジの移動範囲
を4つのブロックに分けた場合を示している。
Next, the operation of the flowchart shown in FIG. 1 will be described with reference to the timing chart of FIG. FIG. 2 shows the differential amplifier 1 with respect to the position of the carriage.
07 (see FIG. 7), the ideal reference voltage V ref which is a DC component of the output signals A 0 , A 0 , the ideal counter pulse A (a) in that case, the average of A 0 over the entire carriage movement range. Counter pulse A when the value is V ref
5B is a timing chart showing the relationship of the counter pulse A (c) when the average value in the block of A 0 is Vref . This embodiment shows a case where the moving range of the carriage is divided into four blocks.

【0039】図1のステップS31で、カウンタパルス
Aは、図2のA(b)のように、理想的な波形でないも
ののキャリッジ位置のブロック分けには十分な程度に得
ることができる。1ブロックはカウンタパルスAの周期
(例えば360dpi)に比較して十分長くしてもよ
く、ブロックの境界の位置の精度も印字時に必要なキャ
リッジ位置検出精度に比較して大幅に低くてもよいた
め、ステップS31の終了時点でのカウンタパルスAは
あまり正確でなくともよい。
At step S31 in FIG. 1, the counter pulse A can be obtained to a sufficient degree for dividing the carriage position into blocks although the waveform is not an ideal waveform as shown at A (b) in FIG. One block may be sufficiently longer than the period of the counter pulse A (for example, 360 dpi), and the accuracy of the position of the boundary of the block may be significantly lower than the accuracy of detecting the carriage position required for printing. The counter pulse A at the end of step S31 may not be very accurate.

【0040】ステップS32で、ブロック番号を初期化
して、ステップS33で、キャリッジの移動を開始す
る。ステップS34でA0 の加算カウンタと加算エリア
SUMを初期化し、ステップS35〜38で、キャリッ
ジ位置が現在のブロック番号の範囲を越えるまでA0
周期的にサンプリングしてASUM に加算して行き、ステ
ップS39で現在のブロック番号におけるA0 の平均値
ave を求め、ステップS40で、Vref =Aave とす
るためのD/Aコンバータに設定するためのディジタル
値をEEPROMの現在のブロック番号に対応するエリ
アへ格納する。ステップS41でブロック番号をインク
レメントして、ステップS42で現在のブロック番号と
予め定められた最終ブロック番号(図2の実施例では
4)と比較し、現在のブロック番号が最終ブロック番号
を越えないうちはステップS34〜42を繰り返すこと
によって、各ブロックにおけるA0 の平均値をVref
してD/Aコンバータに設定するあめのディジタル値を
EEPROMにそれぞれ格納していく。全ブロックにお
けるVref のディジタル値をEEPROMに格納し終え
たらステップS43でキャリッジを停止し、ステップS
44でキャリッジを元に戻す。
In step S32, the block number is initialized, and in step S33, the movement of the carriage is started. In step S34, the A 0 addition counter and the addition area A SUM are initialized, and in steps S 35 to S 38, A 0 is periodically sampled and added to A SUM until the carriage position exceeds the range of the current block number. In step S39, the average value A ave of A 0 at the current block number is obtained. In step S40, the digital value for setting in the D / A converter for setting V ref = A ave is stored in the current block of the EEPROM. Store in the area corresponding to the number. In step S41, the block number is incremented. In step S42, the current block number is compared with a predetermined final block number (4 in the embodiment of FIG. 2), and the current block number does not exceed the final block number. out by repeating the steps S34~42, continue to store each digital value of the candy to set the average value of a 0 to the D / a converter as V ref in each block in the EEPROM. When the digital values of Vref in all the blocks have been stored in the EEPROM, the carriage is stopped in step S43, and step S43 is performed.
At 44, the carriage is returned.

【0041】図2のA(c)は、各ブロック内のA0
平均値をVref とするようにキャリッジの位置に合わせ
てVref を段階状に変化させたときのカウンタパルスA
であり、Vref をキャリッジ移動範囲全体におけるA0
の平均値とした場合のA(b)の波形に比べて理想的な
A(a)の波形に近づいている。
[0041] in FIG. 2 A (c), the counter pulse A when the average value of A 0 in each block is changed to step form a V ref in accordance with the position of the carriage so that the V ref
And V ref is A 0 in the entire carriage movement range.
Is closer to the ideal waveform of A (a) than the waveform of A (b) when the average value is obtained.

【0042】また、ブロック数については、EEPRO
Mのエリアの余裕とA0 のDC成分の変動量によって最
適値を設定すればよい。例えば、A0 のDC成分の変動
量が大きく、EEPROMのエリアが十分空いていれば
ブロック数は多い方(即ち、ブロックは細かい方)が良
い。ブロックの分け方は一般的には等間隔にするのが良
いが、ソフトウエアの負荷とEEPROMのエリアに余
裕があれば不等間隔でも良い。この場合、ブロックの境
界のキャリッジ位置もEEPROMに記憶しておく必要
があるが、A0 のDC成分に局部的に大きな変動がある
場合などには有効である。
As for the number of blocks, EEPRO
It may be set optimum value by the amount of variation of the DC component of the margin and A 0 of the area of M. For example, large amount of variation in the DC component of A 0, the number of blocks when the area of the EEPROM is long free enough many people (i.e., block the finer one) is better. In general, it is preferable to divide the blocks at regular intervals, but irregular intervals may be used as long as there is room for the load of software and the area of the EEPROM. In this case, it is necessary to store even EEPROM carriage position of the boundary of the block is effective in a case where there is a locally large change in the DC component of A 0.

【0043】次に、図3を参照して本発明の第1実施例
における印字時の動作説明をする。前述のようにキャリ
ッジの移動範囲をブロック分けしてブロック毎の参照電
圧Vref を設定したので、これに対応した印字動作が必
要となる。図3は、そのような場合の1行分の印字のフ
ローチャートを示す。このフローチャート中、ステップ
S51〜52と、ステップS58〜S60が本発明の第
1実施例として追加された部分であり、それ以外のステ
ップは従来例のものと同様である。
Next, an operation at the time of printing in the first embodiment of the present invention will be described with reference to FIG. As described above, since the moving range of the carriage is divided into blocks and the reference voltage Vref is set for each block, a printing operation corresponding to this is required. FIG. 3 shows a flowchart for printing one line in such a case. In this flowchart, steps S51 to S52 and steps S58 to S60 are added as the first embodiment of the present invention, and the other steps are the same as those of the conventional example.

【0044】図3において、ステップS51で、ブロッ
ク番号として1を入れ、即ちブロック番号を初期化し、
ステップS52で、ブロック番号1に対応する参照電圧
ref をD/Aコンバータに設定する。ステップS53
で、キャリッジの移動を開始してステップS54〜S5
6のループでキャリッジ速度を所定の速度に設定する。
即ち、ステップS54で、キャリッジの速度を検出し、
ステップS55で、所定の速度か否かを判断し、所定の
速度でない場合には、ステップS56で、キャリッジの
速度を制御し、その後ステップS54に戻り、所定の速
度になるまで、ステップS54〜S56を繰り返す。次
いで、ステップS57で、所定の位置に印字する。
In FIG. 3, in step S51, 1 is inserted as the block number, that is, the block number is initialized.
In step S52, the reference voltage Vref corresponding to the block number 1 is set in the D / A converter. Step S53
Then, the movement of the carriage is started, and steps S54 to S5 are performed.
In a loop of 6, the carriage speed is set to a predetermined speed.
That is, in step S54, the speed of the carriage is detected,
In step S55, it is determined whether or not the speed is a predetermined speed. If the speed is not the predetermined speed, the speed of the carriage is controlled in step S56, and thereafter, the process returns to step S54, and steps S54 to S56 are performed until the speed becomes the predetermined speed. repeat. Next, in step S57, printing is performed at a predetermined position.

【0045】次に、ステップS58で、キャリッジの位
置を検出し、ステップS59〜S61で、現在どのブロ
ックにキャリッジがあるかを判断し、ブロックの境界を
越えたら参照電圧Vref をブロック番号に応じて設定し
直す。
Next, in step S58, the position of the carriage is detected, and in steps S59 to S61, it is determined which block the carriage is currently in. When the boundary of the block is exceeded, the reference voltage Vref is changed according to the block number. And set again.

【0046】次に、ステップS62で、1行分の印字が
終了したか否かを判断して、終了してない場合には、ス
テップS57〜S62を繰り返す。終了した場合には、
ステップS64で、キャリッジを停止させ、ステップS
65でラインフィードを行う。
Next, at step S62, it is determined whether or not printing for one line has been completed. If printing has not been completed, steps S57 to S62 are repeated. When finished,
In step S64, the carriage is stopped, and in step S64
At 65, a line feed is performed.

【0047】なお、双方向印字の場合には、図3のフロ
ーチャートのステップS51、ステップS59、ステッ
プS60を以下のように変更するだけでよい。 ステップS51 ブロック番号 ← 現在のキャリッジ
位置に応じたブロック番号 ステップS59 前のブロック? ステップS60 ブロック番号 ← ブロック番号−1
In the case of bidirectional printing, steps S51, S59 and S60 in the flowchart of FIG. 3 need only be changed as follows. Step S51 Block number ← Block number corresponding to the current carriage position Step S59 Previous block? Step S60 Block number ← Block number -1

【0048】なお、図4(a)のようにブロックの境界
におけるVref の階段状の変化が急激でカウンタパルス
Aのノイズ発生原因となるような場合には、図4(b)
のようにD/Aコンバータへの設定を複数回に分けて行
うことでVref の変化を穏やかにすることができる。
In the case where the stepwise change of Vref at the boundary of the block is abrupt as shown in FIG. 4A and causes noise of the counter pulse A, FIG.
By setting the D / A converter in a plurality of times as described above, the change of Vref can be made gentle.

【0049】次に、図5を参照して本発明の印字のため
の第2実施例を説明する。図5は第2実施例の回路ブロ
ック図である。図5に示す回路は、図7に示す従来例の
回路と比べてデータセレクタ122が追加されており、
他の構成は同様であるので、以下の説明は主にデータセ
レクタ122を中心に行い、他の構成に関する部分は既
に説明済みであるので省略する。
Next, a second embodiment for printing according to the present invention will be described with reference to FIG. FIG. 5 is a circuit block diagram of the second embodiment. The circuit shown in FIG. 5 is different from the circuit of the conventional example shown in FIG.
Since other configurations are the same, the following description will be mainly focused on the data selector 122, and the portions related to the other configurations have already been described, and will not be described.

【0050】CPU115から書き込まれた複数のブロ
ック分のD/Aコンバータ設定データをカウンタ/タイ
マ113からのセレクタ信号123に応じてデータセレ
クタ122を介して選択し、D/Aコンバータ114に
設定する。これによって、Vref のキャリッジ位置に応
じた設定を、ソフトウエアの負荷を増加させることな
く、即ち、図3の1行分の印字フローチャートにおい
て、ステップS51〜S52、ステップS58〜S61
を除いた従来例と同様のフローチャートで行えるように
したものである。
The D / A converter setting data for a plurality of blocks written from the CPU 115 is selected via the data selector 122 according to the selector signal 123 from the counter / timer 113 and set in the D / A converter 114. Thereby, the setting according to the carriage position of Vref can be performed without increasing the load of software, that is, in steps S51 to S52 and steps S58 to S61 in the printing flowchart for one line in FIG.
This can be performed in the same flowchart as the conventional example except for the above.

【0051】印字動作前の初期状態として、図1の実施
例で得られた各ブロックにおけるVref のディジタルデ
ータを印字動作前にデータセレクタ122に予め設定し
ておくと共に、キャリッジ位置カウンタデータの各ブロ
ックに対応する上位数ビット分をセレクタ信号123と
してカウンタ/タイマ113からデータセレクタ122
に転送するように、カウンタ/タイマ113とデータセ
レクタ122を接続しておく。例えば、ブロックの分割
数を4とすれば、セレクタ信号123は2または3ビッ
トあればよい。
As an initial state before the printing operation, the digital data of Vref in each block obtained in the embodiment of FIG. 1 is preset in the data selector 122 before the printing operation, and each of the carriage position counter data is set. The upper few bits corresponding to the block are used as the selector signal 123 from the counter / timer 113 to the data selector 122.
, The counter / timer 113 and the data selector 122 are connected in advance. For example, if the number of block divisions is 4, the selector signal 123 may have 2 or 3 bits.

【0052】印字動作に入って、キャリッジが移動する
と、それに応じてカウンタ/タイマ113内のキャリッ
ジ位置カウンタがアップ/ダウンすることによってセレ
クタ信号122が変化し、D/Aコンバータ114に与
えられるVref ディジタルデータ124がデータセレク
タ122によって切り換えられる。なお、データセレク
タ122は、複数のデータが記憶できてかつそれらのデ
ータのうちの1つをセレクタ信号によって選択して出力
できる構成であればよいので、データセレクタとしては
例えばデュアルポートRAMを用いてセレクタ信号を片
方のポートのアドレスに接続する構成であってもよい。
When the carriage moves during the printing operation, the carriage position counter in the counter / timer 113 increases / decreases accordingly, so that the selector signal 122 changes, and V ref applied to the D / A converter 114 is changed. Digital data 124 is switched by data selector 122. Note that the data selector 122 may be any configuration that can store a plurality of data and select and output one of the data by a selector signal. For example, a dual-port RAM is used as the data selector. The configuration may be such that the selector signal is connected to the address of one of the ports.

【0053】また、図4(a)のように、ブロックの境
界におけるVref の階段状の変化が急激でカウンタパル
スAのノイズの発生原因となるような場合には、D/A
コンバータ114の出力120をローパスフィルタ(図
示せず)を通してコンパレータ110に入力すればよ
い。
Further, as shown in FIG. 4A, when the stepwise change of Vref at the boundary of the block is abrupt and causes noise of the counter pulse A, D / A
The output 120 of the converter 114 may be input to the comparator 110 through a low-pass filter (not shown).

【0054】[0054]

【発明の効果】以上説明したように、キャリッジ位置に
応じた参照電圧Vref を予め測定して格納するためのソ
フトウエアと、印字動作中にキャリッジ位置に応じて格
納した参照電圧Vref をリアルタイムで選択するソフト
ウエアまたはハードウエアとを設けることによって、キ
ャリッジ位置に起因してコンパレータに入力される差動
増幅器の出力のDC成分が大きく変化してもキャリッジ
の移動範囲全域にわたって良好なコンパレータの出力で
あるカウンタパルスが得られるため、キャリッジの位置
検出精度が向上し、シリアルプリンタの記録結果の品位
を向上させることができる。
As described above, the software for measuring and storing the reference voltage V ref according to the carriage position in advance and the reference voltage V ref stored according to the carriage position during the printing operation are provided in real time. By providing the software or hardware to be selected in the above, even if the DC component of the output of the differential amplifier input to the comparator greatly changes due to the carriage position, the output of the comparator can be excellent over the entire moving range of the carriage. Thus, the accuracy of detecting the position of the carriage is improved, and the quality of the print result of the serial printer can be improved.

【0055】また、カウンタパルスの波形をデューティ
ー比50%の理想的な波形に近づけることができるた
め、差動増幅器出力の経時変化に対して余裕が大きく、
したがって、印字品位の経時的劣化の度合いを低減する
ことができる。このことは参照電圧Vref の初期調整の
シーケンスを実行する頻度を低下してもよいということ
を意味し、ユーザーの使用感を向上させる。
Further, since the waveform of the counter pulse can be made close to an ideal waveform having a duty ratio of 50%, there is a large margin for the temporal change of the output of the differential amplifier.
Therefore, the degree of deterioration of print quality over time can be reduced. This means that the frequency of executing the sequence of the initial adjustment of the reference voltage Vref may be reduced, and the user's feeling of use is improved.

【図面の簡単な説明】[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実施例のキャリッジ位置に対する
コンパレータの入力A0 、参照電圧Vref 、コンパレー
タ出力A間の関係を示すタイミングチャートである。
FIG. 2 is a timing chart showing a relationship among a comparator input A 0 , a reference voltage V ref , and a comparator output A with respect to a carriage position according to the first embodiment.

【図3】図3は、第1実施例の1行分の印字シーケンス
を示すフローチャートである。
FIG. 3 is a flowchart illustrating a print sequence for one line according to the first embodiment.

【図4】図4は、第1実施例の参照電圧Vref の変化量
の低減を方法を説明するためのタイミングチャートであ
る。
FIG. 4 is a timing chart for explaining a method for reducing the amount of change in the reference voltage Vref in the first embodiment.

【図5】図5は、印字のための第2の実施例の回路構成
例を示すブロック図である。
FIG. 5 is a block diagram showing a circuit configuration example of a second embodiment for printing.

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

【図7】図7は、従来例の回路構成例のブロック図であ
る。
FIG. 7 is a block diagram of a circuit configuration example of a conventional example.

【図8】図8は、従来例の参照電圧Vref の初期調整の
シーケンスを示すフローチャートである。
FIG. 8 is a flowchart illustrating a sequence of an initial adjustment of a reference voltage Vref according to a conventional example.

【図9】図9は、従来例のサンプリング周期がコンパレ
ータの入力信号の周期の整数倍のときのカウンタパルス
の波形を示すタイミングチャートである。
FIG. 9 is a timing chart showing a waveform of a counter pulse when the sampling cycle of the conventional example is an integral multiple of the cycle of the input signal of the comparator.

【図10】図10は、従来例のコンパレータの入力信号
と参照電圧の相対的なずれが発生した場合のカウンタパ
ルスのデューテュー比、エッジ位置の変化を示すタイミ
ングチャートである。
FIG. 10 is a timing chart showing changes in the duty ratio and edge position of a counter pulse when a relative shift occurs between the input signal of the comparator of the related art and the reference voltage.

【図11】図11は、先願の参照電圧初期調整シーケン
スのフローチャートである。
FIG. 11 is a flowchart of a reference voltage initial adjustment sequence of the prior application.

【図12】図12は、先願の同期タイミングを示すタイ
ミングチャートである。
FIG. 12 is a timing chart showing the synchronization timing of the prior application.

【図13】図13は、従来例のキャリッジ位置に対する
コンパレータの入力信号、参照電圧、コンパレータの出
力信号の関係を示すタイミングチャートである。
FIG. 13 is a timing chart showing the relationship between the input signal of the comparator, the reference voltage, and the output signal of the comparator with respect to the carriage position in the conventional example.

【符号の説明】[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 122 データセレクタ 123 セレクタ信号 124 D/Aコンバータ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 122 Data selector 123 Selector signal 124 D / A converter

Claims (12)

(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: Moving range blocking means for dividing the moving range of the carriage into blocks, and block dividing by the moving range blocking means Serial printer, characterized in that it comprises a reference voltage calculating means for calculating a reference voltage for each block that.
【請求項2】 請求項1記載のシリアルプリンタにおい
て、前記移動範囲ブロック化手段によってキャリッジの
移動範囲をブロック分けする前に、キャリッジの速度を
制御する速度制御手段をさらに有することを特徴とする
シリアルプリンタ。
2. The serial printer according to claim 1, further comprising speed control means for controlling the speed of the carriage before the moving range of the carriage is divided into blocks by the moving range blocking means. Printer.
【請求項3】 請求項2記載のシリアルプリンタにおい
て、前記速度制御手段は前記キャリッジの移動速度と前
記出力信号をサンプリングするサンプリング周期とを同
期させる速度同期手段から成ることを特徴とするシリア
ルプリンタ。
3. A serial printer according to claim 2, wherein said speed control means comprises speed synchronization means for synchronizing a moving speed of said carriage and a sampling period for sampling said output signal.
【請求項4】 請求項3記載のシリアルプリンタにおい
て、前記速度同期手段が、前記出力信号の周期TA0、サ
ンプリング周期TS 、および測定回数nの間に、TS
A0/2m (mは1以上の整数)、n=k・2m (ただ
し、mは前式のmと同一であり、kは1以上の整数であ
る)の関係式を成立させるように構成されていることを
特徴とするシリアルプリンタ。
4. The serial printer according to claim 3, 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 / 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:
【請求項5】 請求項1記載のシリアルプリンタにおい
て、前記参照電圧算出手段は、各ブロック毎にサンプリ
ングに基づいて所定の測定回数だけ前記出力信号の値を
測定する測定手段と、該測定手段から得られた値をサン
プリング数で平均して参照電圧を得る手段とを有するこ
とを特徴とするシリアルプリンタ。
5. The serial printer according to claim 1, wherein the reference voltage calculating means measures a value of the output signal a predetermined number of times for each block based on sampling, and comprises: Means for obtaining a reference voltage by averaging the obtained values by the number of samplings.
【請求項6】 請求項5記載のシリアルプリンタにおい
て、前記得られた参照電圧を格納する記憶手段をさらに
有することを特徴とするシリアルプリンタ。
6. The serial printer according to claim 5, further comprising storage means for storing the obtained reference voltage.
【請求項7】 請求項1記載のシリアルプリンタにおい
て、各ブロック毎の参照電圧に基づいて1行分を印字す
る印字手段をさらに有することを特徴とするシリアルプ
リンタ。
7. The serial printer according to claim 1, further comprising printing means for printing one line based on a reference voltage for each block.
【請求項8】 請求項7記載のシリアルプリンタにおい
て、前記参照電圧算出手段によって算出された各ブロッ
ク毎の参照電圧を格納する記憶手段をさらに有し、前記
印字手段は、キャリッジ位置を検出するキャリッジ位置
検出手段と、該キャリッジ位置検出手段によって検出さ
れた位置に基づいてどのブロックにキャリッジがあるか
を決定するブロック決定手段と、ブロック毎に前記ブロ
ック決定手段によって決定されたブロックに対応する前
記参照電圧を前記記憶手段から読み出して設定する参照
電圧設定手段とを有し、ブロック毎に前記参照電圧設定
手段によって設定された参照電圧を用いて印字すること
を特徴とするシリアルプリンタ。
8. The serial printer according to claim 7, further comprising storage means for storing a reference voltage for each block calculated by said reference voltage calculation means, wherein said printing means detects a carriage position. Position detecting means, block determining means for determining which block has a carriage based on the position detected by the carriage position detecting means, and the reference corresponding to the block determined by the block determining means for each block. A reference voltage setting means for reading and setting a voltage from the storage means; and printing using a reference voltage set by the reference voltage setting means for each block.
【請求項9】 請求項8記載のシリアルプリンタにおい
て、前記参照電圧設定手段は、ブロック番号を初期化す
るブロック番号初期化手段と、ブロック番号をインクレ
メントするブロック番号インクレメント手段と、キャリ
ッジ位置に基づいてブロック番号がインクレメントする
毎に参照電圧を前記記憶手段から読み出して設定する手
段とを有することを特徴とするシリアルプリンタ。
9. The serial printer according to claim 8, wherein said reference voltage setting means comprises: a block number initializing means for initializing a block number; a block number incrementing means for incrementing a block number; Means for reading out and setting a reference voltage from the storage means every time the block number is incremented based on the serial number.
【請求項10】 請求項8記載のシリアルプリンタにお
いて、前記参照電圧設定手段は、キャリッジ位置を表す
セレクタ信号が入力されて該セレクタ信号に基づいて参
照電圧を前記記憶手段から読み出して出力するデータセ
レクタ回路から成ることを特徴とするシリアルプリン
タ。
10. A serial printer according to claim 8, wherein said reference voltage setting means receives a selector signal indicating a carriage position and reads and outputs a reference voltage from said storage means based on said selector signal. A serial printer comprising a circuit.
【請求項11】 請求項7記載のシリアルプリンタにお
いて、前記印字手段によって印字を行う前に、キャリッ
ジを所定の速度に設定することを特徴とするシリアルプ
リンタ。
11. The serial printer according to claim 7, wherein a carriage is set at a predetermined speed before printing by said printing means.
【請求項12】 請求項1記載のシリアルプリンタにお
いて、前記参照電圧初期調整手段から得られた前記参照
電圧をD/A変換して前記同期信号発生回路の比較手段
に入力するためのD/Aコンバータをさらに有すること
を特徴とするシリアルプリンタ。
12. 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.
JP32486492A 1992-08-31 1992-11-10 Serial printer Expired - Fee Related JP3297101B2 (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
JP32486492A JP3297101B2 (en) 1992-11-10 1992-11-10 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
JP32486492A JP3297101B2 (en) 1992-11-10 1992-11-10 Serial printer

Publications (2)

Publication Number Publication Date
JPH06143727A JPH06143727A (en) 1994-05-24
JP3297101B2 true JP3297101B2 (en) 2002-07-02

Family

ID=18170501

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32486492A Expired - Fee Related JP3297101B2 (en) 1992-08-31 1992-11-10 Serial printer

Country Status (1)

Country Link
JP (1) JP3297101B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4853296A (en) * 1986-10-22 1989-08-01 Toppan Printing Co., Ltd. Electrode plate for color display device

Also Published As

Publication number Publication date
JPH06143727A (en) 1994-05-24

Similar Documents

Publication Publication Date Title
US6111384A (en) Method for controlling motor speed
EP0585881B1 (en) Serial printer
US4652159A (en) Printer
US20060274377A1 (en) Image alignment method and image forming apparatus employing the same
US4332492A (en) Device for controlling the carriage movement in a printer
US6242906B1 (en) Systems and methods for calibrating an absolute position encoder
US6010206A (en) Method and system for detecting the position of a carriage
JP3297101B2 (en) Serial printer
US6042281A (en) Printing apparatus
US6302506B1 (en) Apparatus and method for correcting carriage velocity induced ink drop positional errors
US5331680A (en) Position detecting apparatus
US6654508B1 (en) Correction and interpolation of position encoders
JP3098121B2 (en) Serial printer
US5193013A (en) Scanner with non-linearity compensating pixel clock
US5095315A (en) Multipoint synchronization optical writing apparatus
JP3113696B2 (en) Serial printer device
JP3011555B2 (en) Method and apparatus for correcting signal phase difference
JP3244204B2 (en) Serial printer device
JPH08132680A (en) Serial printer
US6914400B2 (en) Method and apparatus for synchronizing a scan operation with the motion of the scan mechanism
JP3582750B2 (en) Recording device
JPH10164321A (en) Manual scanning type image input device and image signal processing method
JP2589416B2 (en) Image input device
EP0099977A1 (en) Digital servo system for motor control
JPS5912667A (en) Scanning error correcting device of rotary polyhedral mirror

Legal Events

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

Free format text: PAYMENT UNTIL: 20090412

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090412

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100412

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees