JP2003145877A - Serial printer - Google Patents

Serial printer

Info

Publication number
JP2003145877A
JP2003145877A JP2001351218A JP2001351218A JP2003145877A JP 2003145877 A JP2003145877 A JP 2003145877A JP 2001351218 A JP2001351218 A JP 2001351218A JP 2001351218 A JP2001351218 A JP 2001351218A JP 2003145877 A JP2003145877 A JP 2003145877A
Authority
JP
Japan
Prior art keywords
carriage
signal
encoder
encoder signal
serial printer
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.)
Withdrawn
Application number
JP2001351218A
Other languages
Japanese (ja)
Inventor
Hisato Tamura
寿人 田村
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 Finetech Nisca Inc
Original Assignee
Copyer 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 Copyer Co Ltd filed Critical Copyer Co Ltd
Priority to JP2001351218A priority Critical patent/JP2003145877A/en
Publication of JP2003145877A publication Critical patent/JP2003145877A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J19/00Character- or line-spacing mechanisms
    • B41J19/18Character-spacing or back-spacing mechanisms; Carriage return or release devices therefor
    • B41J19/20Positive-feed character-spacing mechanisms
    • B41J19/202Drive control means for carriage movement
    • B41J19/205Position or speed detectors therefor
    • B41J19/207Encoding along a bar

Abstract

PROBLEM TO BE SOLVED: To provide a serial printer which can promptly stop a carriage when a desired encoder signal cannot be obtained from an optical type encoder. SOLUTION: A linear scale 41 is arranged parallel along a horizontal scanning direction so as to obtain position information of the carriage 13. The optical type encoder 42 set to the carriage 13 outputs the encoder signal obtained by reading the linear scale 41. A carriage scanning detection means 50 detects that the carriage 13 moves by a fixed distance, and outputs a signal at every time. An abnormality detection means 60 detects that the encoder signal is not normally outputted at the move time of the carriage 13 on the basis of the encoder signal and a signal from the carriage scanning detection means 50. A horizontal scanning motor control means 70 stops driving of a horizontal scanning motor 14 when the abnormality detection means 50 detects that the encoder signal is not normally outputted.

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 such as an ink jet printer which prints by moving a print head back and forth, and more particularly to a linear scale read by an optical encoder. The present invention relates to a serial printer that controls the speed and position of a carriage based on an encoder signal from the encoder.

【0002】[0002]

【従来の技術】インクジェット式プリンタ等のシリアル
プリンタは、プリントヘッドを搭載したキャリッジを主
走査方向に往復移動させることによって印字を行う。図
7に示すように、従来、この種のプリンタは、プリント
ヘッド112と、キャリッジ113と、主走査モータ1
14と、副走査モータ115と、主走査駆動機構200
と、副走査駆動機構300と、リニアスケール410
と、光学式エンコーダ420と、主走査モータ114を
制御する主走査モータ制御手段700と、副走査モータ
115を制御する副走査モータ制御手段800とを備え
ている。
2. Description of the Related Art A serial printer such as an ink jet printer prints by moving a carriage equipped with a print head back and forth in the main scanning direction. As shown in FIG. 7, conventionally, a printer of this type has a print head 112, a carriage 113, and a main scanning motor 1.
14, the sub-scanning motor 115, and the main scanning drive mechanism 200
, Sub-scanning drive mechanism 300, and linear scale 410
An optical encoder 420, a main scanning motor control means 700 for controlling the main scanning motor 114, and a sub scanning motor control means 800 for controlling the sub scanning motor 115.

【0003】プリントヘッド112には、インクを吐出
するためのノズルが副走査方向(主走査方向に直交する
方向)に沿って配置されている。このプリントヘッド1
12はキャリッジ113に搭載されている。キャリッジ
113は、主走査駆動機構200により主走査方向に沿
って往復移動される。主走査駆動機構200は、キャリ
ッジ113に固定されたベルト210と、駆動プーリ2
20と、従動プーリ230と、主走査ギアユニット24
0とを有する。ここで、ベルト210は、駆動プーリ2
20と従動プーリ230とに懸架されている。主走査モ
ータ114が主走査ギアユニット240を介してベルト
210を移動させることにより、キャリッジ113が移
動する。また、副走査モータ115を駆動すると、プリ
ンタ記録紙2は副走査駆動機構300により副走査方向
に沿って移動される。
Nozzles for ejecting ink are arranged in the print head 112 along the sub-scanning direction (direction orthogonal to the main scanning direction). This print head 1
12 is mounted on the carriage 113. The carriage 113 is reciprocally moved in the main scanning direction by the main scanning drive mechanism 200. The main scanning drive mechanism 200 includes a belt 210 fixed to the carriage 113 and a drive pulley 2
20, the driven pulley 230, and the main scanning gear unit 24
Has 0 and. Here, the belt 210 is the drive pulley 2
20 and a driven pulley 230. The carriage 113 moves as the main scanning motor 114 moves the belt 210 via the main scanning gear unit 240. When the sub-scanning motor 115 is driven, the printer recording paper 2 is moved in the sub-scanning direction by the sub-scanning drive mechanism 300.

【0004】リニアスケール410は、キャリッジ11
3の位置情報を得るためのものであり、主走査方向に沿
って平行に配置されている。キャリッジ113には、光
学式エンコーダ420が取り付けられている。リニアス
ケール410は光学式エンコーダ420で読み取られ、
光学式エンコーダ420からは、90°位相のずれた二
つのエンコーダ信号が出力される。主走査モータ制御手
段700は、光学式エンコーダ420からのエンコーダ
信号に基づいて、主走査モータ114を駆動し、キャリ
ッジ113の速度・位置制御を行う。
The linear scale 410 includes the carriage 11
3 for obtaining position information, and are arranged in parallel along the main scanning direction. An optical encoder 420 is attached to the carriage 113. The linear scale 410 is read by the optical encoder 420,
The optical encoder 420 outputs two encoder signals that are 90 ° out of phase with each other. The main scanning motor control means 700 drives the main scanning motor 114 based on the encoder signal from the optical encoder 420 to control the speed / position of the carriage 113.

【0005】[0005]

【発明が解決しようとする課題】ところで、何らかの原
因で光学式エンコーダから所望のエンコーダ信号が得ら
れなくなった場合には、キャリッジの適切な速度・位置
制御ができなくなる。
By the way, when the desired encoder signal cannot be obtained from the optical encoder for some reason, the speed and position of the carriage cannot be controlled properly.

【0006】光学式エンコーダから所望のエンコーダ信
号が得られない原因として、考えられることはいくつか
ある。例えば、リニアスケールの固定位置がずれたりす
ることによって、リニアスケールと光学式エンコーダの
発光面・受光面との位置関係が不適切になることであ
る。あるいはリニアスケールにインク滴や埃などの汚れ
が付着すること等である。他にも光学式エンコーダの発
光面・受光面に汚れが付着した場合、キャリッジは移動
しているにもかかわらず、エンコーダ信号が変化しない
ことがある。
There are several possible causes for the failure of the desired encoder signal from the optical encoder. For example, if the fixed position of the linear scale is displaced, the positional relationship between the linear scale and the light emitting surface / light receiving surface of the optical encoder becomes improper. Alternatively, stains such as ink drops or dust may be attached to the linear scale. In addition, when dirt is attached to the light emitting surface and the light receiving surface of the optical encoder, the encoder signal may not change even though the carriage is moving.

【0007】特に広範囲にわたって光学式エンコーダか
らのエンコーダ信号が変化しない場合には、主走査モー
タ制御手段はキャリッジが移動していないと認識し、主
走査モータの駆動トルクを増加させる。このため、キャ
リッジは暴走し、最悪の場合には本来の走査範囲を越え
て、プリンタ本体構成部品に衝突しプリンタ本体を損傷
するおそれもある。このとき、過電流を検出することに
よって、衝突したことは検出できるものの、衝突自体を
避けることはできない。
Particularly when the encoder signal from the optical encoder does not change over a wide range, the main scanning motor control means recognizes that the carriage is not moving and increases the driving torque of the main scanning motor. For this reason, the carriage may run away, and in the worst case, it may exceed the original scanning range and collide with the printer body constituent parts to damage the printer body. At this time, although the collision can be detected by detecting the overcurrent, the collision itself cannot be avoided.

【0008】このように、従来は、光学式エンコーダか
らエンコーダ信号が入力されない場合、キャリッジが実
際に移動していないのか、移動しているけれども光学式
エンコーダからエンコーダ信号が出力されないのかの判
断を、安価な装置でしかも即座に行うことは難しかっ
た。
As described above, conventionally, when the encoder signal is not input from the optical encoder, it is determined whether the carriage is actually moving or whether the carriage is moving but the encoder signal is not output from the optical encoder. It was difficult to do it immediately with an inexpensive device.

【0009】特に、近年は、印字速度の高速化に対する
必要性から、キャリッジの移動速度が高速になり、キャ
リッジの重量も増してきたので、このようなキャリッジ
の暴走を即座に検知して、対処することが求められる。
In particular, in recent years, the moving speed of the carriage has become faster and the weight of the carriage has increased due to the necessity of increasing the printing speed. Therefore, such runaway of the carriage is immediately detected and a countermeasure is taken. Required to do.

【0010】本発明は上記事情に基づいてなされたもの
であり、光学式エンコーダから所望のエンコーダ信号が
得られなくなった場合に、キャリッジを速やかに停止さ
せ、キャリッジの暴走によりプリンタ本体に与える損傷
を最小限に抑えることができるシリアルプリンタを提供
することを目的とする。
The present invention has been made based on the above circumstances, and when the desired encoder signal cannot be obtained from the optical encoder, the carriage is quickly stopped to prevent damage to the printer body due to the runaway of the carriage. An object is to provide a serial printer that can be minimized.

【0011】[0011]

【課題を解決するための手段】上記の目的を達成するた
めの請求項1記載の発明は、インクの吐出を行うプリン
トヘッドと、前記プリントヘッドを搭載するキャリッジ
とを有し、前記キャリッジを往復移動しながら前記キャ
リッジに搭載された前記プリントヘッドからインクを吐
出することにより記録媒体に画像を形成するシリアルプ
リンタにおいて、前記キャリッジを移動させるための走
査モータと、前記キャリッジの位置情報を得るために前
記キャリッジの移動方向に沿って平行に配置されたリニ
アスケールと、前記キャリッジに取り付けられており、
前記リニアスケールを読み取って得られたエンコーダ信
号を出力する光学式エンコーダと、前記キャリッジが一
定距離だけ移動したことを検出し、その検出をする度に
信号を出力するキャリッジ走査検出手段と、前記光学式
エンコーダからのエンコーダ信号と前記キャリッジ走査
検出手段からの信号とに基づいて、前記キャリッジの移
動時にエンコーダ信号が正常に出力されていないことを
検出するエンコーダ信号異常検出手段と、前記エンコー
ダ信号異常検出手段によりエンコーダ信号が正常に出力
されていないことが検出されたときに、前記走査モータ
の駆動を停止する走査モータ制御手段と、を具備するこ
とを特徴とするものである。
According to a first aspect of the invention for achieving the above object, there is provided a print head for ejecting ink and a carriage for mounting the print head, and the carriage reciprocates. In a serial printer that forms an image on a recording medium by ejecting ink from the print head mounted on the carriage while moving, in order to obtain a scanning motor for moving the carriage and position information of the carriage Linear scales arranged in parallel along the moving direction of the carriage, and attached to the carriage,
An optical encoder that outputs an encoder signal obtained by reading the linear scale; a carriage scanning detection unit that detects that the carriage has moved a predetermined distance and outputs a signal each time the detection is performed; Encoder signal abnormality detecting means for detecting that the encoder signal is not normally output during movement of the carriage based on the encoder signal from the encoder and the signal from the carriage scanning detecting means, and the encoder signal abnormality detecting means. Scanning motor control means for stopping the drive of the scanning motor when it is detected by the means that the encoder signal is not normally output.

【0012】また、請求項2記載の発明は、請求項1記
載のシリアルプリンタにおいて、前記キャリッジ走査検
出手段は、前記走査モータの回転に連動して回転する板
状体と、前記板状体の回転中心から所定の距離だけ離れ
た前記板状体の位置に、前記板状体の回転方向に沿って
等間隔に形成された一又は複数の切欠き部又は突起部
と、前記切欠き部又は前記突起部に対応する位置であっ
て前記板状体を介して互いに対向する位置に設けられた
発光部及び受光部とを有し、前記発光部から発せられた
光が、前記切欠き部を介して前記受光部で受光されたと
き又は前記突起部に遮られて前記受光部で受光されなか
ったときに、信号を発することを特徴とするものであ
る。
According to a second aspect of the present invention, in the serial printer according to the first aspect, the carriage scanning detection means includes a plate-shaped body that rotates in association with rotation of the scanning motor, and the plate-shaped body. At a position of the plate-shaped body separated from the center of rotation by a predetermined distance, one or a plurality of notches or protrusions formed at equal intervals along the rotation direction of the plate-shaped body, and the notch or There is a light emitting portion and a light receiving portion which are provided at positions corresponding to the protruding portions and are opposed to each other via the plate-shaped body, and the light emitted from the light emitting portion passes through the cutout portion. A signal is emitted when the light is received by the light receiving unit via the light receiving unit or when the light is not received by the light receiving unit blocked by the protrusion.

【0013】また、請求項3記載の発明は、請求項1又
は2記載のシリアルプリンタにおいて、前記エンコーダ
信号異常検出手段は、前記キャリッジ走査検出手段から
の信号をトリガ信号とし、1+(n−1)m番目(mは
予め定められた自然数、n=1,2,3,・・・ )のトリ
ガ信号が送られてきたときから1+nm番目のトリガ信
号が送られるまでの間に、前記光学式エンコーダからの
エンコーダ信号のパルス数をカウントするカウンタを有
し、前記カウンタのカウント値が所定の基準値以下であ
るときに、エンコーダ信号が正常に出力されていない旨
の信号を出力することを特徴とするものである。
According to a third aspect of the present invention, in the serial printer according to the first or second aspect, the encoder signal abnormality detecting means uses the signal from the carriage scanning detecting means as a trigger signal, and 1+ (n-1). ) From the time when the m-th (m is a predetermined natural number, n = 1, 2, 3, ...) Trigger signal is sent until the 1 + nm-th trigger signal is sent, It has a counter for counting the number of pulses of the encoder signal from the encoder, and outputs a signal indicating that the encoder signal is not normally output when the count value of the counter is less than or equal to a predetermined reference value. It is what

【0014】更に、請求項4記載の発明は、請求項1、
2又は3記載のシリアルプリンタにおいて、前記エンコ
ーダ信号異常検出手段によりエンコーダ信号が正常に出
力されていないことが検出されたときに、その旨の警告
を表示する表示手段を備えることを特徴とするものであ
る。
Further, the invention according to claim 4 is the invention according to claim 1,
The serial printer according to 2 or 3, further comprising display means for displaying a warning to that effect when the encoder signal abnormality detection means detects that the encoder signal is not normally output. Is.

【0015】[0015]

【発明の実施の形態】以下に本発明の一実施形態につい
て図面を参照して説明する。図1は本発明の一実施形態
であるシリアルプリンタの概略構成図、図2はそのシリ
アルプリンタにおけるキャリッジ走査検出手段の概略側
面図、図3はそのキャリッジ走査検出手段の円盤の概略
平面図である。
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic configuration diagram of a serial printer which is an embodiment of the present invention, FIG. 2 is a schematic side view of a carriage scanning detection means in the serial printer, and FIG. 3 is a schematic plan view of a disk of the carriage scanning detection means. .

【0016】本実施形態のシリアルプリンタは、図1に
示すように、プラテン11と、プリントヘッド12と、
キャリッジ13と、主走査モータ14と、副走査モータ
15と、主走査駆動機構20と、副走査駆動機構30
と、リニアスケール41と、光学式エンコーダ42と、
キャリッジ走査検出手段50と、エンコーダ信号異常検
出手段60と、主走査モータ制御手段70と、副走査モ
ータ制御手段80と、CPU(不図示)と、表示手段
(不図示)とを備えるものである。
As shown in FIG. 1, the serial printer of this embodiment includes a platen 11, a print head 12, and
The carriage 13, the main scanning motor 14, the sub scanning motor 15, the main scanning drive mechanism 20, and the sub scanning drive mechanism 30.
, Linear scale 41, optical encoder 42,
The carriage scanning detection unit 50, the encoder signal abnormality detection unit 60, the main scanning motor control unit 70, the sub scanning motor control unit 80, the CPU (not shown), and the display unit (not shown) are provided. .

【0017】プラテン11は、その上面にプリンタ記録
紙2を載置するものである。プリンタ記録紙2は、プラ
テン11上でプリントヘッド12により記録される。ま
た、副走査駆動機構30は、副走査ギアユニット31
と、紙送りローラ32とを有する。副走査モータ15が
副走査ギアユニット31を介して紙送りローラ32を回
転することにより、プリンタ記録紙2は、副走査方向
(図1における上下方向)に沿って搬送されて、プラテ
ン11上を移動する。
The platen 11 is for mounting the printer recording paper 2 on its upper surface. The printer recording paper 2 is recorded on the platen 11 by the print head 12. The sub-scanning drive mechanism 30 includes a sub-scanning gear unit 31.
And a paper feed roller 32. When the sub-scanning motor 15 rotates the paper feed roller 32 via the sub-scanning gear unit 31, the printer recording paper 2 is conveyed in the sub-scanning direction (vertical direction in FIG. 1) and moves on the platen 11. Moving.

【0018】主走査駆動機構20は、キャリッジ13に
固定されたベルト21と、駆動プーリ22と、従動プー
リ23と、主走査ギアユニット24とを有する。ここ
で、ベルト21は、駆動プーリ22と従動プーリ23と
に懸架されている。このベルト21は、主走査モータ1
4により左右に移動する。これにより、キャリッジ13
は、ベルト21を介して副走査方向と直交する方向(主
走査方向)に沿って往復移動することができる。
The main scanning drive mechanism 20 has a belt 21 fixed to the carriage 13, a drive pulley 22, a driven pulley 23, and a main scanning gear unit 24. Here, the belt 21 is suspended between a drive pulley 22 and a driven pulley 23. This belt 21 is used for the main scanning motor 1
Move left and right by 4. As a result, the carriage 13
Can reciprocate through the belt 21 in a direction (main scanning direction) orthogonal to the sub scanning direction.

【0019】キャリッジ13には、プリントヘッド12
が搭載されている。このため、プリントヘッド12は、
キャリッジ13と一体となって、主走査方向に沿って移
動することができる。また、プリントヘッド12はその
下面に多数のノズルを有し、各ノズルの吐出口から微小
インク滴を吐出する。これらのノズルは、副走査方向に
沿って略直線状に配列されている。
The carriage 13 has a print head 12
Is installed. Therefore, the print head 12
The carriage 13 can move integrally with the carriage 13 along the main scanning direction. The print head 12 has a large number of nozzles on its lower surface, and ejects minute ink droplets from the ejection openings of each nozzle. These nozzles are arranged in a substantially straight line along the sub-scanning direction.

【0020】主走査モータ制御手段70は主走査モータ
14を制御するものであり、一方、副走査モータ制御手
段80は副走査モータ15を制御するものである。CP
Uは、本シリアルプリンタの各部の制御を統括するもの
である。例えば、CPUは、キャリッジ13の移動制御
のための信号を主走査モータ制御手段70に送ったり、
プリンタ記録紙2の搬送制御のための信号を副走査モー
タ制御手段80に送ったりする。また、CPUは、画像
データに基づいてプリントヘッド12のインク吐出を制
御するための信号を作成し、図示しないプリントヘッド
駆動部に送る。更に、CPUは、表示手段に所定の情報
や警告を表示させたりする。
The main scanning motor control means 70 controls the main scanning motor 14, while the sub scanning motor control means 80 controls the sub scanning motor 15. CP
U centralizes the control of each unit of the serial printer. For example, the CPU sends a signal for controlling the movement of the carriage 13 to the main scanning motor control means 70,
A signal for controlling the conveyance of the printer recording paper 2 is sent to the sub-scanning motor control means 80. Further, the CPU creates a signal for controlling the ink ejection of the print head 12 based on the image data, and sends it to a print head drive unit (not shown). Further, the CPU causes the display means to display predetermined information and warnings.

【0021】印字動作を実行する場合には、CPUは、
まず、キャリッジ13の動作を制御して、プリントヘッ
ド12を主走査方向に沿って移動させる。このとき、C
PUがプリントヘッド駆動部に信号を送ると、プリント
ヘッド12のノズルからインク滴が吐出する。これによ
り、プリンタ記録紙2には1バンド分の画像が形成され
る。次に、CPUは、キャリッジ13の動作を制御し
て、プリントヘッド12を所定の位置に戻すと共に、そ
の間に、プリンタ記録紙2を1バンド分だけ副走査方向
に沿って移動させる。かかるインクを吐出する動作とプ
リンタ記録紙2を搬送する動作とを交互に繰り返すこと
により、プリンタ記録紙2の全体に画像が形成される。
When executing the printing operation, the CPU
First, the operation of the carriage 13 is controlled to move the print head 12 along the main scanning direction. At this time, C
When the PU sends a signal to the print head driver, ink droplets are ejected from the nozzles of the print head 12. As a result, an image for one band is formed on the printer recording paper 2. Next, the CPU controls the operation of the carriage 13 to return the print head 12 to a predetermined position, and at the same time, moves the printer recording paper 2 by one band along the sub-scanning direction. An image is formed on the entire printer recording paper 2 by alternately repeating the operation of ejecting the ink and the operation of conveying the printer recording paper 2.

【0022】リニアスケール41は、キャリッジ13の
位置情報を得るためのものであり、主走査方向に沿って
平行に配置されている。このリニアスケール41には、
一定の間隔で多数のスリットが形成されている。例え
ば、かかるスリットは1インチ当たり300ライン形成
される。
The linear scale 41 is for obtaining the position information of the carriage 13, and is arranged in parallel along the main scanning direction. This linear scale 41 has
A large number of slits are formed at regular intervals. For example, such slits are formed at 300 lines per inch.

【0023】また、キャリッジ13には、光学式エンコ
ーダ42が取り付けられている。この光学式エンコーダ
42は、発光部と、受光部とを有する。発光部と受光部
はリニアスケール41を介して互いに対向する位置に配
置されている。発光部から発せられた光がリニアスケー
ル41のスリットを介して受光部で受光されると、光学
式エンコーダ42はエンコーダ信号を主走査モータ制御
手段70及びエンコーダ信号異常検出手段60に出力す
る。一方、発光部から発せられた光がリニアスケール4
1に遮られ、受光部に届かなければ、光学式エンコーダ
42はエンコーダ信号を出力しない。このようにしてリ
ニアスケール41は光学式エンコーダ42で読み取られ
る。かかるエンコーダ信号は、キャリッジ13の速度、
位置を知るために用いられる。主走査モータ制御手段7
0は、光学式エンコーダ42からのエンコーダ信号に基
づいて、キャリッジ13の速度・位置制御を行う。本実
施形態では、光学式エンコーダ42として、90°位相
のずれたA相とB相の、二つのエンコーダ信号を出力す
るものを使用する。これら二つのエンコーダ信号を用い
ると、分解能を四倍に上げることができると共に、キャ
リッジ13の移動方向、すなわち右から左に移動してい
るのか、あるいは左から右に移動しているのかを知るこ
とができる。
An optical encoder 42 is attached to the carriage 13. The optical encoder 42 has a light emitting unit and a light receiving unit. The light emitting section and the light receiving section are arranged at positions facing each other via the linear scale 41. When the light emitted from the light emitting section is received by the light receiving section through the slit of the linear scale 41, the optical encoder 42 outputs an encoder signal to the main scanning motor control means 70 and the encoder signal abnormality detection means 60. On the other hand, the light emitted from the light emitting unit is linear scale 4
If it is blocked by 1 and does not reach the light receiving portion, the optical encoder 42 does not output an encoder signal. In this way, the linear scale 41 is read by the optical encoder 42. The encoder signal is the speed of the carriage 13,
Used to know position. Main scanning motor control means 7
0 controls the speed / position of the carriage 13 based on the encoder signal from the optical encoder 42. In the present embodiment, as the optical encoder 42, an encoder that outputs two encoder signals of A phase and B phase which are 90 ° out of phase is used. By using these two encoder signals, it is possible to increase the resolution four times and to know the moving direction of the carriage 13, that is, whether the carriage 13 is moving from right to left or from left to right. You can

【0024】キャリッジ走査検出手段50は、キャリッ
ジ13が移動しているか否かを検出するものであり、図
2に示すように、円盤(板状体)51と、光センサ52
とを備える。円盤51には、図3に示すように、その周
端から中心に向かって二つのスリット(切欠き部)51
aが形成されている。ここで、二つのスリット51aは
互いに対向する位置に形成されている。また、円盤51
の回転軸に取り付けられたギア51bは、主走査ギアユ
ニット24内のギアと噛み合っている。このため、主走
査モータ14が回転すると、キャリッジ13が移動する
と共に、その主走査モータ14の回転に連動して円盤5
1も回転する。
The carriage scanning detecting means 50 detects whether or not the carriage 13 is moving. As shown in FIG. 2, a disc (plate-like body) 51 and an optical sensor 52 are provided.
With. As shown in FIG. 3, the disk 51 has two slits (notches) 51 from the peripheral edge toward the center.
a is formed. Here, the two slits 51a are formed at positions facing each other. Also, the disc 51
The gear 51 b attached to the rotating shaft of the above gear meshes with the gear in the main scanning gear unit 24. Therefore, when the main scanning motor 14 rotates, the carriage 13 moves, and at the same time as the rotation of the main scanning motor 14, the disk 5 moves.
1 also rotates.

【0025】尚、一般に、円盤51に形成するスリット
は、どのような形状のものでもよく、またいくつ形成し
ても構わない。但し、複数個のスリットを形成する場合
には、それらを円盤51の周に沿って等間隔に配置する
必要がある。
In general, the slits formed on the disk 51 may have any shape and may have any number. However, when forming a plurality of slits, it is necessary to arrange them at equal intervals along the circumference of the disk 51.

【0026】光センサ52は、図2に示すように、発光
部52aと、受光部52bとを有する。発光部52aと
受光部52bとは円盤51の端部を介して互いに対向す
る位置に配置される。発光部52aから発せられた光が
円盤51のスリット51aを介して受光部52bで受光
されると、光センサ52は信号を出力する。一方、発光
部52aから発せられた光が円盤51に遮られ、受光部
52bに達しないと、光センサ52は信号を出力しな
い。特に、本実施形態では、スリット51aを円盤51
の周に沿って等間隔に形成したことにより、光センサ5
2は、スリット51aを検出する度に、すなわちキャリ
ッジ13が一定距離だけ移動する度に、信号を出力する
ことになる。したがって、光センサ52からの信号が経
時的に変化していれば、キャリッジ13は移動してお
り、一方、光センサ52からの信号が経時的に変化しな
ければ、キャリッジ13は停止していることになる。こ
の光センサ52(キャリッジ走査検出手段50)からの
出力信号は、エンコーダ信号異常検出手段60に送られ
る。
As shown in FIG. 2, the optical sensor 52 has a light emitting portion 52a and a light receiving portion 52b. The light emitting portion 52a and the light receiving portion 52b are arranged at positions facing each other with the end portion of the disk 51 interposed therebetween. When the light emitted from the light emitting portion 52a is received by the light receiving portion 52b through the slit 51a of the disk 51, the optical sensor 52 outputs a signal. On the other hand, if the light emitted from the light emitting portion 52a is blocked by the disk 51 and does not reach the light receiving portion 52b, the optical sensor 52 does not output a signal. In particular, in this embodiment, the slit 51a is formed into the disk 51.
Since it is formed at equal intervals along the circumference of the optical sensor 5,
2 outputs a signal each time the slit 51a is detected, that is, each time the carriage 13 moves by a fixed distance. Therefore, if the signal from the optical sensor 52 changes with time, the carriage 13 is moving, while if the signal from the optical sensor 52 does not change with time, the carriage 13 is stopped. It will be. The output signal from the optical sensor 52 (carriage scanning detection means 50) is sent to the encoder signal abnormality detection means 60.

【0027】エンコーダ信号異常検出手段60は、光学
式エンコーダ42からエンコーダ信号が正常に出力され
ていないこと、すなわちエンコーダ信号が異常であるこ
とを検出するものであり、A相カウンタ61と、B相カ
ウンタ62とを有している。A相カウンタ61は光学式
エンコーダ42から送られるA相のエンコーダ信号のパ
ルス数をカウントするものであり、B相カウンタ62は
光学式エンコーダ42から送られるB相のエンコーダ信
号のパルス数をカウントするものである。具体的には、
各カウンタ61,62は、光センサ52からの出力信号
をトリガ信号とし、1+(n−1)m番目(mは予め定
められた自然数、n=1,2,3,・・・)のトリガ信号
が送られてきたときから1+nm番目のトリガ信号が送
られるまでの間に、当該エンコーダ信号のパルス数をカ
ウントする。ここで、本実施形態では、例えば、m=
1、すなわち、各カウンタ61,62は、あるトリガ信
号が送られたときから次のトリガ信号が送られるまでの
間におけるエンコーダ信号のパルス数をカウントするこ
とにする。エンコーダ信号異常検出手段60は、各カウ
ンタ61,62がカウントしたカウント値が所定の基準
値以下であるか否かを判断する。そして、両方のカウン
タ61,62について、そのカウント値が基準値を超え
ている場合には、エンコーダ信号が正常に出力されてい
ると判定し、一方、いずれか一方のカウンタ61,62
のカウント値が基準値以下である場合には、エンコーダ
信号が正常に出力されていないと判定する。
The encoder signal abnormality detecting means 60 detects that the encoder signal is not normally output from the optical encoder 42, that is, that the encoder signal is abnormal, and the A-phase counter 61 and the B-phase counter 61. And a counter 62. The A-phase counter 61 counts the number of pulses of the A-phase encoder signal sent from the optical encoder 42, and the B-phase counter 62 counts the number of pulses of the B-phase encoder signal sent from the optical encoder 42. It is a thing. In particular,
Each of the counters 61, 62 uses the output signal from the optical sensor 52 as a trigger signal and triggers the 1+ (n-1) mth (m is a predetermined natural number, n = 1, 2, 3, ...) Trigger. The number of pulses of the encoder signal is counted from the time the signal is sent to the time the 1 + nmth trigger signal is sent. Here, in the present embodiment, for example, m =
1, that is, each of the counters 61 and 62 counts the number of encoder signal pulses from when a certain trigger signal is sent to when the next trigger signal is sent. The encoder signal abnormality detection means 60 determines whether or not the count value counted by each of the counters 61 and 62 is less than or equal to a predetermined reference value. When the count values of both counters 61 and 62 exceed the reference value, it is determined that the encoder signal is normally output, and one of the counters 61 and 62 is output.
If the count value of is less than or equal to the reference value, it is determined that the encoder signal is not normally output.

【0028】エンコーダ信号異常検出手段60は、エン
コーダ信号が正常に出力されていないことを検出する
と、その旨の信号を主走査モータ制御手段70及びCP
Uに出力する。そして、主走査モータ制御手段70は、
かかる信号を受けた場合に、速やかに主走査モータ14
の駆動を停止させる。一方、CPUは、その信号を受け
ると、エンコーダ信号が異常であるためにキャリッジの
動作を停止した旨の警告を表示手段に表示させる。尚、
当然のことであるが、エンコーダ信号異常検出手段60
は、エンコーダ信号が正常に出力されている場合にのみ
その旨の信号を出力し、エンコーダ信号が正常に出力さ
れていない場合には信号を出力しないようにしてもよ
い。
When the encoder signal abnormality detecting means 60 detects that the encoder signal is not output normally, it outputs a signal to that effect to the main scanning motor control means 70 and the CP.
Output to U. Then, the main scanning motor control means 70
When receiving such a signal, the main scanning motor 14 promptly
Stop driving. On the other hand, when the CPU receives the signal, it causes the display means to display a warning that the operation of the carriage has stopped because the encoder signal is abnormal. still,
As a matter of course, the encoder signal abnormality detecting means 60
May output a signal to that effect only when the encoder signal is normally output, and may not output the signal when the encoder signal is not normally output.

【0029】次に、本実施形態のシリアルプリンタにお
けるエンコーダ信号の異常検出動作について説明する。
図4は本実施形態のシリアルプリンタにおけるエンコー
ダ信号の異常検出動作を説明するためのフローチャート
である。
Next, the abnormality detection operation of the encoder signal in the serial printer of this embodiment will be described.
FIG. 4 is a flow chart for explaining the abnormality detection operation of the encoder signal in the serial printer of this embodiment.

【0030】例えば印字動作が開始されると、まず、エ
ンコーダ信号異常検出手段60は、A相カウンタ61の
カウント値とB相カウンタ62のカウント値とをクリア
する(S01)。次に、主走査モータ制御手段70は、
印字動作を実現するために、主走査モータ14を駆動し
て、キャリッジ13の移動を開始する(S02)。これ
により、キャリッジ13は主走査方向に沿って移動す
る。
For example, when the printing operation is started, the encoder signal abnormality detecting means 60 first clears the count value of the A-phase counter 61 and the count value of the B-phase counter 62 (S01). Next, the main scanning motor control means 70
In order to realize the printing operation, the main scanning motor 14 is driven to start the movement of the carriage 13 (S02). As a result, the carriage 13 moves along the main scanning direction.

【0031】キャリッジ13が移動を開始すると、光学
式エンコーダ42からエンコーダ信号が出力される。図
5及び図6にA相及びB相のエンコーダ信号、トリガ信
号、A相及びB相のカウンタ61,62からの信号につ
いて波形の一例を示す。これらの図は、キャリッジ13
が等速で移動している場合の例である。図5では、A相
のエンコーダ信号とB相のエンコーダ信号のそれぞれに
ついて、各パルスが一定間隔で規則正しく出力されてい
る。すなわち光学式エンコーダ42からエンコーダ信号
は正常に出力されている。一方、図6では、キャリッジ
13が移動しているにもかかわらず、A相及びB相のエ
ンコーダ信号の出力されない状態が一定期間続いてい
る。すなわち、エンコーダ信号が正常に出力されていな
い。
When the carriage 13 starts moving, an encoder signal is output from the optical encoder 42. 5 and 6 show examples of waveforms of the A-phase and B-phase encoder signals, the trigger signal, and the signals from the A-phase and B-phase counters 61 and 62. These figures show carriage 13
This is an example of the case where is moving at a constant speed. In FIG. 5, each pulse is regularly output at regular intervals for each of the A-phase encoder signal and the B-phase encoder signal. That is, the encoder signal is normally output from the optical encoder 42. On the other hand, in FIG. 6, although the carriage 13 is moving, the A phase and B phase encoder signals are not output for a certain period of time. That is, the encoder signal is not output normally.

【0032】次に、エンコーダ信号異常検出手段60
は、キャリッジ走査検出手段50からトリガ信号が送ら
れてきたか否かを判断する(S03)。すなわち、エン
コーダ信号異常検出手段60は、トリガ信号が変化して
いない状態からトリガ信号が変化するのを待つ。そし
て、トリガ信号が変化したら、トリガ信号が送られてき
たと判断し、S04の処理に移行する。S04では、エ
ンコーダ信号異常検出手段60のA相カウンタ61とB
相カウンタ62はそれぞれ、A相のエンコーダ信号のパ
ルス数、B相のエンコーダ信号のパルス数についてのカ
ウント動作を開始する。
Next, the encoder signal abnormality detecting means 60
Determines whether a trigger signal has been sent from the carriage scanning detection means 50 (S03). That is, the encoder signal abnormality detection means 60 waits for the trigger signal to change from the state in which the trigger signal has not changed. When the trigger signal changes, it is determined that the trigger signal has been sent, and the process proceeds to S04. At S04, the A-phase counter 61 and B of the encoder signal abnormality detecting means 60 are detected.
The phase counters 62 start counting operations for the number of pulses of the A-phase encoder signal and the number of pulses of the B-phase encoder signal, respectively.

【0033】その後、エンコーダ信号異常検出手段60
は、主走査モータ制御手段70から、キャリッジ13を
停止させる旨の信号、あるいはキャリッジ13の走査方
向を反転させる旨の信号が送られてきたかどうかを判断
する(S05)。キャリッジ13を停止させると、トリ
ガ信号は経時的に変化しなくなる。一方、キャリッジ1
3の走査方向を反転させると、トリガ信号の変化する時
間間隔が不規則になってしまう。このため、これらの信
号が送られた場合には、A相カウンタ61及びB相カウ
ンタ62は、エンコーダ信号のパルス数のカウント動作
を停止する(S06)。そして、S01の処理に移行す
る。すなわち、当該エンコーダ信号の異常検出動作を最
初から行う。
After that, the encoder signal abnormality detecting means 60
Judges whether or not a signal for stopping the carriage 13 or a signal for reversing the scanning direction of the carriage 13 is sent from the main scanning motor control means 70 (S05). When the carriage 13 is stopped, the trigger signal does not change with time. On the other hand, carriage 1
If the scanning direction of 3 is reversed, the time intervals at which the trigger signal changes become irregular. Therefore, when these signals are sent, the A-phase counter 61 and the B-phase counter 62 stop counting the number of pulses of the encoder signal (S06). Then, the process proceeds to S01. That is, the abnormality detection operation of the encoder signal is performed from the beginning.

【0034】一方、S05において、キャリッジ13を
停止させる旨の信号及びキャリッジ13の走査方向を反
転させる旨の信号が送られてきていない場合には、エン
コーダ信号異常検出手段60は、キャリッジ走査検出手
段50から次のトリガ信号が送られてきたか否かを判断
する(S07)。次のトリガ信号が送られてきていない
場合には、S05の処理に移行する。一方、次のトリガ
信号が送られてきた場合には、S08の処理に移行す
る。
On the other hand, when the signal for stopping the carriage 13 and the signal for reversing the scanning direction of the carriage 13 are not sent in S05, the encoder signal abnormality detecting means 60 determines the carriage scanning detecting means. It is determined whether or not the next trigger signal is sent from 50 (S07). If the next trigger signal has not been sent, the process proceeds to S05. On the other hand, if the next trigger signal is sent, the process proceeds to S08.

【0035】S08では、エンコーダ信号異常検出手段
60は、A相カウンタ61、B相カウンタ62のそれぞ
れについて、カウント値が所定の基準値n以下であるか
否かを判断する。両方のカウンタ61,62についてカ
ウント値が基準値nを超えていると判断すると、エンコ
ーダ信号異常検出手段60は、トリガ信号が送られてき
てから次のトリガ信号が送られるまでの間、すなわち、
キャリッジ13が一定距離だけ移動する間に、光学式エ
ンコーダ42から所定のパルス数以上のエンコーダ信号
が出力されていると認識し、エンコーダ信号が正常に出
力されていると判定する。その後、エンコーダ信号異常
検出手段60は、A相カウンタ61のカウント値及びB
相カウンタ62のカウント値をクリアし(S09)、S
04の処理に移行する。
In S08, the encoder signal abnormality detecting means 60 determines whether the count value of each of the A-phase counter 61 and the B-phase counter 62 is less than or equal to a predetermined reference value n. When it is determined that the count values of both counters 61 and 62 exceed the reference value n, the encoder signal abnormality detection means 60 causes the encoder signal abnormality detection means 60 from the time when the trigger signal is sent to the time when the next trigger signal is sent, that is,
While the carriage 13 moves by a certain distance, it is recognized that the optical encoder 42 outputs an encoder signal of a predetermined number of pulses or more, and it is determined that the encoder signal is normally output. After that, the encoder signal abnormality detection means 60 detects the count value of the A phase counter 61 and the B value.
The count value of the phase counter 62 is cleared (S09), and S
The processing moves to 04.

【0036】一方、S08において、いずれか一方のカ
ウンタ61,62のカウント値が基準値n以下であると
判断すると、エンコーダ信号異常検出手段60は、キャ
リッジ13が一定距離だけ移動する間に、光学式エンコ
ーダ42から出力されたエンコーダ信号のパルス数が少
なすぎると認識し、エンコーダ信号は異常であると判定
する。
On the other hand, if it is determined in S08 that the count value of one of the counters 61 and 62 is less than or equal to the reference value n, the encoder signal abnormality detecting means 60 causes the optical signal to be detected while the carriage 13 moves by a certain distance. It is recognized that the number of pulses of the encoder signal output from the expression encoder 42 is too small, and it is determined that the encoder signal is abnormal.

【0037】尚、図5及び図6の例では、A相カウンタ
61からの信号及びB相カウンタ62からの信号はそれ
ぞれ、トリガ信号がオンに変化したときに、オフにな
り、そして、当該カウンタのカウント値が基準値nを超
えたときに、オフからオンに変化する。すなわち、図5
及び図6の例では、図4のフローにおけるS07の処理
を省略し、エンコーダ信号異常検出手段60は、次のト
リガ信号の有無を判断せずに、各カウンタ61,62の
カウント値が基準値nを超えているか否かを判断するこ
とにしている。この場合には、次のトリガ信号が入力さ
れるタイミングで、各カウンタ61,62からの信号が
オンであるかオフであるかを調べることにより、エンコ
ーダ信号が正常に出力されているか否かを判断すること
ができる。
In the examples of FIGS. 5 and 6, the signal from the A-phase counter 61 and the signal from the B-phase counter 62 are turned off when the trigger signal changes to on, and the counters are turned off. When the count value of exceeds the reference value n, it changes from off to on. That is, FIG.
In the example of FIG. 6, the processing of S07 in the flow of FIG. 4 is omitted, and the encoder signal abnormality detection means 60 does not determine the presence or absence of the next trigger signal, and the count values of the counters 61 and 62 are reference values. It is decided to judge whether it exceeds n. In this case, it is checked whether the encoder signal is normally output by checking whether the signals from the counters 61 and 62 are on or off at the timing when the next trigger signal is input. You can judge.

【0038】図5では、次のトリガ信号が入力されたと
きに、各カウンタ61,62からの信号がオンであるの
で、エンコーダ信号が正常に出力されていると判定され
る。一方、図6では、次のトリガ信号が入力されたとき
に、各カウンタ61,62からの信号がオフであるた
め、エンコーダ信号は異常であると判定される。
In FIG. 5, when the next trigger signal is input, the signals from the counters 61 and 62 are on, so it is determined that the encoder signal is normally output. On the other hand, in FIG. 6, when the next trigger signal is input, since the signals from the counters 61 and 62 are off, it is determined that the encoder signal is abnormal.

【0039】S08においてエンコーダ信号が正常に出
力されていないと判定されると、エンコーダ信号異常検
出手段60は、その旨の信号を主走査モータ制御手段7
0及びCPUに送る。主走査モータ制御手段70は、か
かる信号を受けると、主走査モータ14の駆動を停止
し、キャリッジ13の移動を停止させる(S10)。ま
た、CPUは、エンコーダ信号が正常に出力されていな
いのでキャリッジ13の移動を停止した旨の警告を表示
手段に表示させる(S11)。以上で、図4の処理フロ
ーが終了する。
When it is determined in S08 that the encoder signal is not normally output, the encoder signal abnormality detecting means 60 sends a signal to that effect to the main scanning motor control means 7
0 and send to CPU. Upon receiving such a signal, the main scanning motor control means 70 stops driving the main scanning motor 14 and stops the movement of the carriage 13 (S10). Further, the CPU causes the display means to display a warning that the movement of the carriage 13 has been stopped because the encoder signal is not normally output (S11). This is the end of the processing flow of FIG.

【0040】本実施形態のシリアルプリンタでは、キャ
リッジ走査検出手段と、エンコーダ信号異常検出手段と
を設けたことにより、何らかの原因で光学式エンコーダ
から所望のエンコーダ信号が得られなくなった場合に、
そのエンコーダ信号についての異常を即座に検出し、キ
ャリッジを速やかに停止させることができるので、キャ
リッジの暴走によりプリンタ本体に与える損傷を最小限
に抑えることができる。
In the serial printer of this embodiment, by providing the carriage scanning detection means and the encoder signal abnormality detection means, if the desired encoder signal cannot be obtained from the optical encoder for some reason,
Since the abnormality of the encoder signal can be immediately detected and the carriage can be stopped quickly, damage to the printer body due to the runaway of the carriage can be minimized.

【0041】尚、本発明は上記の実施形態に限定される
ものではなく、その要旨の範囲内において種々の変形が
可能である。
The present invention is not limited to the above embodiment, and various modifications can be made within the scope of the gist thereof.

【0042】上記の実施形態では、エンコーダ信号異常
検出手段に、A相のエンコーダ信号のパルス数をカウン
トするA相カウンタと、B相のエンコーダ信号のパルス
数をカウントするB相カウンタとを設けた場合について
説明したが、例えば、いずれか一方のカウンタだけを設
けるようにしてもよい。但し、A相のエンコーダ信号及
びB相のエンコーダ信号のうち一方だけに異常が発生す
る場合もあるので、エンコーダ信号についての異常を正
確に検出するためには、上記実施形態で説明したように
二つのカウンタを設けることが望ましい。
In the above embodiment, the encoder signal abnormality detecting means is provided with the A-phase counter for counting the number of pulses of the A-phase encoder signal and the B-phase counter for counting the number of pulses of the B-phase encoder signal. Although the case has been described, for example, only one of the counters may be provided. However, an abnormality may occur in only one of the A-phase encoder signal and the B-phase encoder signal. Therefore, in order to accurately detect the abnormality in the encoder signal, it is necessary to use the same method as described in the above embodiment. It is desirable to have two counters.

【0043】また、上記の実施形態では、キャリッジ走
査検出手段として、スリットが形成された円盤と、発光
部及び受光部とを有するものを用いた場合について説明
したが、円盤(円形状の板状体)の代わりに、例えば正
方形状の板状体を用いるようにしてもよい。また、これ
らの板状体にスリットを形成する代わりに、かかる板状
体の回転中心から所定の距離だけ離れた板状体の位置
に、その板状体の回転方向に沿って等間隔に一又は複数
の突起部を形成するようにしてもよい。但し、突起部を
形成したときには、発光部から発せられた光が、突起部
に遮られて受光部で受光されなかったときに、キャリッ
ジ走査検出手段が信号を発することになる。
Further, in the above embodiment, the case where the carriage scanning detection means having the disk having the slit, the light emitting portion and the light receiving portion is used is explained. Instead of the body, for example, a square plate-shaped body may be used. Further, instead of forming slits in these plate-shaped bodies, at the positions of the plate-shaped bodies that are separated from the center of rotation of the plate-shaped bodies by a predetermined distance, they are evenly spaced along the rotation direction of the plate-shaped bodies. Alternatively, a plurality of protrusions may be formed. However, when the protruding portion is formed, the carriage scanning detection means emits a signal when the light emitted from the light emitting portion is blocked by the protruding portion and is not received by the light receiving portion.

【0044】[0044]

【発明の効果】以上説明したように本発明のシリアルプ
リンタは、キャリッジが一定距離だけ移動したことを検
出し、その検出をする度に信号を出力するキャリッジ走
査検出手段と、光学式エンコーダからのエンコーダ信号
とキャリッジ走査検出手段からの信号とに基づいて、キ
ャリッジの移動時にエンコーダ信号が正常に出力されて
いないことを検出するエンコーダ信号異常検出手段と、
エンコーダ信号異常検出手段によりエンコーダ信号が正
常に出力されていないことが検出されたときに、走査モ
ータの駆動を停止する走査モータ制御手段とを備える。
これにより、何らかの原因で光学式エンコーダから所望
のエンコーダ信号が得られなくなった場合に、そのエン
コーダ信号についての異常を即座に検出し、キャリッジ
を速やかに停止させることができるので、キャリッジの
暴走によりプリンタ本体に与える損傷を最小限に抑える
ことができる。
As described above, the serial printer according to the present invention detects the movement of the carriage by a predetermined distance and outputs a signal each time the detection is performed, and a carriage scanning detection means and an optical encoder. Encoder signal abnormality detecting means for detecting that the encoder signal is not normally output during movement of the carriage, based on the encoder signal and the signal from the carriage scanning detecting means,
And a scanning motor control means for stopping the driving of the scanning motor when the encoder signal abnormality detection means detects that the encoder signal is not normally output.
As a result, when the desired encoder signal cannot be obtained from the optical encoder for some reason, an abnormality in the encoder signal can be immediately detected and the carriage can be stopped immediately. The damage to the body can be minimized.

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

【図1】本発明の一実施形態であるシリアルプリンタの
概略構成図である。
FIG. 1 is a schematic configuration diagram of a serial printer that is an embodiment of the present invention.

【図2】そのシリアルプリンタにおけるキャリッジ走査
検出手段の概略側面図である。
FIG. 2 is a schematic side view of carriage scanning detection means in the serial printer.

【図3】そのキャリッジ走査検出手段の円盤の概略平面
図である。
FIG. 3 is a schematic plan view of a disk of the carriage scanning detection means.

【図4】本実施形態のシリアルプリンタにおけるエンコ
ーダ信号の異常検出動作を説明するためのフローチャー
トである。
FIG. 4 is a flowchart for explaining an abnormality detection operation of an encoder signal in the serial printer of this embodiment.

【図5】エンコーダ信号が正常である場合の各信号の波
形を示す図である。
FIG. 5 is a diagram showing the waveform of each signal when the encoder signal is normal.

【図6】エンコーダ信号が異常である場合の各信号の波
形を示す図である。
FIG. 6 is a diagram showing the waveform of each signal when the encoder signal is abnormal.

【図7】従来のシリアルプリンタの概略構成図である。FIG. 7 is a schematic configuration diagram of a conventional serial printer.

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

2・・・ プリンタ記録紙、11・・・ プラテン、12・・・ プ
リントヘッド、13・・・ キャリッジ、14・・・ 主走査モ
ータ、15・・・ 副走査モータ、20・・・ 主走査駆動機
構、21・・・ ベルト、22・・・ 駆動プーリ、23・・・ 従
動プーリ、24・・・ 主走査ギアユニット、30・・・ 副走
査駆動機構、31・・・ 副走査ギアユニット、32・・・ 紙
送りローラ、41・・・ リニアスケール、42・・・ 光学式
エンコーダ、50・・・ キャリッジ走査検出手段、51・・
・ 円盤、51a・・・ スリット、51b・・・ ギア、52・・
・ 光センサ、52a・・・ 発光部、52b・・・ 受光部、6
0・・・ エンコーダ信号異常検出手段、61・・・ A相カウ
ンタ、62・・・ B相カウンタ、70・・・ 主走査モータ制
御手段、80・・・ 副走査モータ制御手段
2 ... Printer recording paper, 11 ... Platen, 12 ... Print head, 13 ... Carriage, 14 ... Main scanning motor, 15 ... Sub scanning motor, 20 ... Main scanning drive Mechanism, 21 ... Belt, 22 ... Drive pulley, 23 ... Driven pulley, 24 ... Main scanning gear unit, 30 ... Sub-scanning drive mechanism, 31 ... Sub-scanning gear unit, 32 ... Paper feed roller, 41 ... Linear scale, 42 ... Optical encoder, 50 ... Carriage scanning detection means, 51 ...
-Disc, 51a ... Slit, 51b ... Gear, 52 ...
-Optical sensor, 52a ... Light emitting part, 52b ... Light receiving part, 6
0 ... Encoder signal abnormality detection means, 61 ... A phase counter, 62 ... B phase counter, 70 ... Main scanning motor control means, 80 ... Sub scanning motor control means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 インクの吐出を行うプリントヘッドと、
前記プリントヘッドを搭載するキャリッジとを有し、前
記キャリッジを往復移動しながら前記キャリッジに搭載
された前記プリントヘッドからインクを吐出することに
より記録媒体に画像を形成するシリアルプリンタにおい
て、 前記キャリッジを移動させるための走査モータと、 前記キャリッジの位置情報を得るために前記キャリッジ
の移動方向に沿って平行に配置されたリニアスケール
と、 前記キャリッジに取り付けられており、前記リニアスケ
ールを読み取って得られたエンコーダ信号を出力する光
学式エンコーダと、 前記キャリッジが一定距離だけ移動したことを検出し、
その検出をする度に信号を出力するキャリッジ走査検出
手段と、 前記光学式エンコーダからのエンコーダ信号と前記キャ
リッジ走査検出手段からの信号とに基づいて、前記キャ
リッジの移動時にエンコーダ信号が正常に出力されてい
ないことを検出するエンコーダ信号異常検出手段と、 前記エンコーダ信号異常検出手段によりエンコーダ信号
が正常に出力されていないことが検出されたときに、前
記走査モータの駆動を停止する走査モータ制御手段と、 を具備することを特徴とするシリアルプリンタ。
1. A print head for ejecting ink,
A serial printer having a carriage on which the print head is mounted, wherein the carriage is moved back and forth to form an image on a recording medium by ejecting ink from the print head mounted on the carriage. A scanning motor for moving the carriage, a linear scale arranged in parallel along the moving direction of the carriage to obtain position information of the carriage, and a linear scale attached to the carriage and obtained by reading the linear scale. An optical encoder that outputs an encoder signal, and detects that the carriage has moved a certain distance,
Based on the carriage scanning detection unit that outputs a signal each time the detection is performed, and the encoder signal from the optical encoder and the signal from the carriage scanning detection unit, the encoder signal is normally output when the carriage moves. An encoder signal abnormality detecting means for detecting that the encoder signal is not normally output, and a scanning motor control means for stopping the driving of the scanning motor when the encoder signal abnormality detecting means detects that the encoder signal is not normally output. A serial printer comprising:
【請求項2】 前記キャリッジ走査検出手段は、前記走
査モータの回転に連動して回転する板状体と、前記板状
体の回転中心から所定の距離だけ離れた前記板状体の位
置に、前記板状体の回転方向に沿って等間隔に形成され
た一又は複数の切欠き部又は突起部と、前記切欠き部又
は前記突起部に対応する位置であって前記板状体を介し
て互いに対向する位置に設けられた発光部及び受光部と
を有し、前記発光部から発せられた光が、前記切欠き部
を介して前記受光部で受光されたとき又は前記突起部に
遮られて前記受光部で受光されなかったときに、信号を
発することを特徴とする請求項1記載のシリアルプリン
タ。
2. The carriage scanning detection means is provided at a position of the plate-like body that rotates in association with the rotation of the scanning motor and a position of the plate-like body that is separated from the center of rotation of the plate-like body by a predetermined distance. One or a plurality of notches or protrusions formed at equal intervals along the rotation direction of the plate-like body, and a position corresponding to the notch or the protrusions at the plate-like body It has a light emitting portion and a light receiving portion provided at positions facing each other, and when the light emitted from the light emitting portion is received by the light receiving portion through the cutout portion or is blocked by the protruding portion. 2. The serial printer according to claim 1, wherein the serial printer emits a signal when no light is received by the light receiving unit.
【請求項3】 前記エンコーダ信号異常検出手段は、前
記キャリッジ走査検出手段からの信号をトリガ信号と
し、1+(n−1)m番目(mは予め定められた自然
数、n=1,2,3,・・・ )のトリガ信号が送られてき
たときから1+nm番目のトリガ信号が送られるまでの
間に、前記光学式エンコーダからのエンコーダ信号のパ
ルス数をカウントするカウンタを有し、前記カウンタの
カウント値が所定の基準値以下であるときに、エンコー
ダ信号が正常に出力されていない旨の信号を出力するこ
とを特徴とする請求項1又は2記載のシリアルプリン
タ。
3. The encoder signal abnormality detecting means uses the signal from the carriage scanning detecting means as a trigger signal, and is the 1+ (n-1) mth (m is a predetermined natural number, n = 1, 2, 3). , ...) from the time the trigger signal is sent to the time the 1 + nmth trigger signal is sent, the counter has a counter that counts the number of pulses of the encoder signal from the optical encoder. 3. The serial printer according to claim 1, wherein when the count value is less than or equal to a predetermined reference value, a signal indicating that the encoder signal is not normally output is output.
【請求項4】 前記エンコーダ信号異常検出手段により
エンコーダ信号が正常に出力されていないことが検出さ
れたときに、その旨の警告を表示する表示手段を備える
ことを特徴とする請求項1、2又は3記載のシリアルプ
リンタ。
4. When the encoder signal abnormality detection means detects that the encoder signal is not normally output, the display means is provided for displaying a warning to that effect. Or the serial printer described in 3.
【請求項5】 前記光学式エンコーダは、90°位相の
ずれた二つのエンコーダ信号を出力するものであること
を特徴とする請求項1、2、3又は4記載のシリアルプ
リンタ。
5. The serial printer according to claim 1, 2, 3, or 4, wherein the optical encoder outputs two encoder signals that are 90 ° out of phase with each other.
JP2001351218A 2001-11-16 2001-11-16 Serial printer Withdrawn JP2003145877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001351218A JP2003145877A (en) 2001-11-16 2001-11-16 Serial printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001351218A JP2003145877A (en) 2001-11-16 2001-11-16 Serial printer

Publications (1)

Publication Number Publication Date
JP2003145877A true JP2003145877A (en) 2003-05-21

Family

ID=19163552

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001351218A Withdrawn JP2003145877A (en) 2001-11-16 2001-11-16 Serial printer

Country Status (1)

Country Link
JP (1) JP2003145877A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011042088A (en) * 2009-08-20 2011-03-03 Mimaki Engineering Co Ltd Printer and control method thereof
US8111409B2 (en) 2007-10-15 2012-02-07 Seiko Epson Corporation Detecting apparatus and recording unit
US20150091957A1 (en) * 2013-09-30 2015-04-02 Brother Kogyo Kabushiki Kaisha Carriage Moving Device, Method and Computer-Readable Recording Medium Containing Instructions to Execute Carriage Moving Method
US9039127B2 (en) 2012-12-05 2015-05-26 Ricoh Company, Ltd. Driver apparatus, image forming apparatus, and method of controlling driver apparatus
CN113002196A (en) * 2019-12-20 2021-06-22 船井电机株式会社 Printing device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8111409B2 (en) 2007-10-15 2012-02-07 Seiko Epson Corporation Detecting apparatus and recording unit
JP2011042088A (en) * 2009-08-20 2011-03-03 Mimaki Engineering Co Ltd Printer and control method thereof
US9039127B2 (en) 2012-12-05 2015-05-26 Ricoh Company, Ltd. Driver apparatus, image forming apparatus, and method of controlling driver apparatus
US20150091957A1 (en) * 2013-09-30 2015-04-02 Brother Kogyo Kabushiki Kaisha Carriage Moving Device, Method and Computer-Readable Recording Medium Containing Instructions to Execute Carriage Moving Method
US9139030B2 (en) * 2013-09-30 2015-09-22 Brother Kogyo Kabushiki Kaisha Carriage moving device, method and computer-readable recording medium containing instructions to execute carriage moving method
CN113002196A (en) * 2019-12-20 2021-06-22 船井电机株式会社 Printing device
EP3838606A1 (en) 2019-12-20 2021-06-23 Funai Electric Co., Ltd. Printing device
US11305528B2 (en) 2019-12-20 2022-04-19 Funai Electric Co., Ltd. Printing device
CN113002196B (en) * 2019-12-20 2022-07-15 船井电机株式会社 Printing device
JP7388173B2 (en) 2019-12-20 2023-11-29 船井電機株式会社 printing device

Similar Documents

Publication Publication Date Title
US7708366B2 (en) Liquid ejection apparatus, liquid ejection system, and liquid ejection method
JP3812288B2 (en) Carriage home position detection device, detection method, and recording medium recording detection program
EP3106313B1 (en) Inkjet printer
JPH0725103A (en) Printer and printing method
US6435641B1 (en) Media movement apparatus
US5803628A (en) Printing apparatus including encoder pending
JP2003145877A (en) Serial printer
US7455380B2 (en) Printing apparatus, media detection apparatus, media detection method, measurement method, computer-readable storage medium, and printing system
JP6217077B2 (en) Driving device and image forming apparatus
JP4461828B2 (en) Printing device
JP3851076B2 (en) Printing device
JP4407397B2 (en) Printing apparatus and printing method
JP2003266652A (en) Printer, printing method, program and computer system
JP3951858B2 (en) Recording apparatus, printing apparatus, recording method, program, and computer system
JP3931688B2 (en) Printing apparatus, printing method, program, and computer system
JP4265141B2 (en) Printing apparatus, printing method, program, and computer system
JP5664095B2 (en) Skew detection method, skew detection apparatus, and printing apparatus including the same
JP4976117B2 (en) Printing device
JP2002254780A (en) Printer control device and printer control method
US20220339928A1 (en) Ink jet recording apparatus
JP5402432B2 (en) Image forming apparatus and program
JP3780768B2 (en) Print control apparatus and print control method
JP2023004564A (en) recording device
JP2003146456A (en) Printer controller and printer control method
JP6152284B2 (en) Recording device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050201