JPH1123323A - Method and apparatus for judgment of suitability of detection by encoder slit - Google Patents

Method and apparatus for judgment of suitability of detection by encoder slit

Info

Publication number
JPH1123323A
JPH1123323A JP9176662A JP17666297A JPH1123323A JP H1123323 A JPH1123323 A JP H1123323A JP 9176662 A JP9176662 A JP 9176662A JP 17666297 A JP17666297 A JP 17666297A JP H1123323 A JPH1123323 A JP H1123323A
Authority
JP
Japan
Prior art keywords
carriage
encoder
initial value
slit
encoder slit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9176662A
Other languages
Japanese (ja)
Inventor
Goji Kushida
剛司 櫛田
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP9176662A priority Critical patent/JPH1123323A/en
Publication of JPH1123323A publication Critical patent/JPH1123323A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)
  • Optical Transform (AREA)
  • Testing Of Optical Devices Or Fibers (AREA)
  • Facsimile Scanning Arrangements (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a method and an apparatus in which whether an encoder slit is contaminated or not is detected and in which the damage due to the collision of the encoder slit can be prevented by a method wherein, when the difference between an initial value and a detected value is outside a prescribed range, the reading operation of the encoder slit is judged to be improper. SOLUTION: A position in which a carriage 5 is brought into contact with the end part on the left side of a body frame 2 is used as a reference position, and an initial value 0 is set. Then, the carriage 5 is moved back and forth, a print head 7 performs a printing treatment, the carriage 5 is returned again to the reference position, and a counted value after the printing treatment is detected. At this time, when an encoder slit 18 is contaminated due to the adhesion of dust particles, an ink or the like, an encoder cannot detect the number of slits of the encoder slit 18 precisely. As a result, the counted value generates a deviation, and the initial value does not become 0. Consequently, when the difference between the initial value and a detected value is outside a prescribed range, the reading operation of the encoder slit 18 is judged to be improper. Thereby, when a stuck substance is cleaned, it is possible to prevent the carriages 5 from begin damaged when it exceeds the range of its back-and-forth operating range so as to collide with the body frame 3.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、往復移動されるキ
ャリッジの位置を認識させるためのエンコーダスリット
の読み取りが、適正に行なわれているか否かを判定する
方法、およびこの方法を実施する装置に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a method for judging whether reading of an encoder slit for recognizing a position of a carriage reciprocally moved is performed properly, and an apparatus for implementing the method. .

【0002】[0002]

【従来の技術】印字ヘッドやスキャナヘッドなどを搭載
し、往復動作によって印字動作やスキャナ動作を行なう
ようにされたキャリッジには、往復移動されるキャリッ
ジの現在位置を認識するための、エンコーダが備えられ
ている。一方、キャリッジの往復移動経路には、エンコ
ーダに対向するように、光学的に読み取り可能なスリッ
トが長手方向に多数分布するエンコーダスリットが配設
されている。そして、キャリッジの往復移動に従って、
エンコーダがエンコーダスリット上のスリットを順次読
み取り、スリット間の間隔に対応するパルス周期であっ
て、スリットの数に対応するパルス数のエンコーダ信号
を発生させ、この信号を入力として受けたアップダウン
カウンタ(CPUによるソフト的なカウンタを含む。)
が、このエンコーダ信号をカウントすることにより、キ
ャリッジの現在位置を認識するようにしている。
2. Description of the Related Art A carriage equipped with a print head, a scanner head and the like and performing a printing operation and a scanning operation by a reciprocating operation is provided with an encoder for recognizing a current position of the reciprocating carriage. Have been. On the other hand, an encoder slit in which a number of optically readable slits are distributed in the longitudinal direction is provided on the reciprocating path of the carriage so as to face the encoder. Then, according to the reciprocation of the carriage,
The encoder sequentially reads the slits on the encoder slit, generates an encoder signal having a pulse period corresponding to the interval between the slits and the number of pulses corresponding to the number of slits, and receives an up-down counter (こ の) as an input. (Includes software counter by CPU.)
However, the present position of the carriage is recognized by counting the encoder signal.

【0003】[0003]

【発明が解決しようとする課題】しかし、キャリッジの
往復動作中において、エンコーダスリットに、ほこりや
手垢などが付着し、あるいは、印字を行なうための往復
動作によって、インクが付着するなどして、エンコーダ
スリット上のスリットが汚れてしまう場合がある。この
ような場合には、エンコーダが、汚れたスリットを読み
飛ばしてしまうことがあり、正確にスリットの数がカウ
ントされないことがある。そのため、CPUがキャリッ
ジの適正な位置を認識せずに、印字動作やスキャナ動作
の出力をし、処理にずれが生じたり、あるいは、キャリ
ッジが往復動作範囲を越えて作動してしまい、フレーム
に勢いよくぶつかって損傷するという虞がある。
However, during reciprocating operation of the carriage, dust or dirt adheres to the encoder slit, or ink adheres to the encoder slit due to reciprocating operation for printing. The slit on the slit may be dirty. In such a case, the encoder may skip the dirty slit, and the number of slits may not be accurately counted. Therefore, the CPU outputs a printing operation or a scanner operation without recognizing an appropriate position of the carriage, causing a shift in processing, or causing the carriage to operate beyond the reciprocating operation range, and the frame is momentarily urged. There is a danger that it will collide and be damaged.

【0004】本発明の目的は、上記した問題点を解決す
るためになされたものであり、エンコーダスリットの読
み取りが、適正に行なわれているか否かを判定して、処
理のずれの原因が、エンコーダスリットの汚れであるこ
とを検知したり、あるいは、キャリッジが往復動作範囲
を越えて作動して、フレームに衝突して損傷することを
防止するための、エンコーダスリットの検出適否判定方
法、およびその方法を実施するための装置を提供するこ
とにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problem. It is determined whether or not reading of an encoder slit is performed properly, and the cause of a processing shift is determined. Detecting whether the encoder slit is dirty, or operating the carriage beyond the reciprocating operation range to prevent the frame from colliding and being damaged, and a method for determining whether or not the encoder slit is properly detected, and It is to provide an apparatus for performing the method.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
め、請求項1に記載の発明は、往復移動されるキャリッ
ジの位置を認識させるためのエンコーダスリットの読み
取りが、適正に行なわれているか否かを判定する方法で
あって、前記キャリッジが予め決められた基準位置にあ
る状態において、予め設定されている値を初期値として
設定する初期値設定工程と、前記初期値設定工程の後
に、キャリッジの往復動作によって所定の処理動作を行
ない、再び前記基準位置においてエンコーダのカウント
値を検出する検出工程と、前記初期値と前記検出工程に
おいて検出された検出値とを比較して、その差が所定の
範囲外であるときに、前記エンコーダスリットの読み取
りが適正に行なわれていないと判定する判定工程とを備
えることを特徴としている。
According to a first aspect of the present invention, an encoder slit for recognizing a position of a reciprocating carriage is properly read. A method of determining whether or not, in a state where the carriage is at a predetermined reference position, an initial value setting step of setting a preset value as an initial value, after the initial value setting step, A predetermined process operation is performed by the reciprocating operation of the carriage, and a detection step of detecting the count value of the encoder again at the reference position is compared with the initial value and the detection value detected in the detection step. A determination step of determining that reading of the encoder slit is not performed properly when the distance is outside a predetermined range. There.

【0006】このような方法によると、たとえば、初期
値設定工程から検出工程までの間における、キャリッジ
の往復動作中に、エンコーダスリットに、ほこりや手垢
などが付着し、あるいは、印字を行なうための往復動作
によって、インクが付着するなどして、エンコーダスリ
ット上のスリットが汚れた場合には、エンコーダが、汚
れたスリットを読み飛ばすので、正確にスリットの数が
カウントされず、検出値と初期値とのずれを生じるよう
になる。そのため、初期値と検出値とを比較することに
より、容易にエンコーダスリットの読み取りが適正に行
なわれているか否か、すなわち、エンコーダスリットが
汚れているか否かを判断することができる。
According to such a method, for example, during the reciprocating operation of the carriage from the initial value setting step to the detecting step, dust or dirt adheres to the encoder slit or prints for printing. If the slits on the encoder slit become dirty due to reciprocation of ink, etc., the encoder skips the dirty slit, so the number of slits is not counted accurately, and the detected value and the initial value are not counted. And a deviation from the above occurs. Therefore, by comparing the initial value and the detected value, it can be easily determined whether the reading of the encoder slit is properly performed, that is, whether the encoder slit is dirty.

【0007】また、請求項2に記載の発明は、往復移動
されるキャリッジの位置を認識させるためのエンコーダ
スリットの読み取りが、適正に行なわれているか否かを
判定する方法であって、前記キャリッジが予め決められ
た複数の基準位置のうちの少なくとも1つの基準位置に
ある状態において、予め設定されている値を初期値とし
て設定する初期値設定工程と、前記初期値設定工程の後
に、キャリッジの往復動作によって所定の処理動作を行
ない、前記基準位置とは異なる基準位置においてエンコ
ーダのカウント値を検出する検出工程と、前記初期値と
前記検出工程において検出された検出値とを比較して、
その差が所定の範囲外であるときに、前記エンコーダス
リットの読み取りが適正に行なわれていないと判定する
判定工程とを備えることを特徴としている。
According to a second aspect of the present invention, there is provided a method for judging whether or not reading of an encoder slit for recognizing a position of a carriage reciprocated is performed properly. In a state where is at least one of a plurality of predetermined reference positions, an initial value setting step of setting a preset value as an initial value, and after the initial value setting step, Performing a predetermined processing operation by reciprocating operation, a detection step of detecting the count value of the encoder at a reference position different from the reference position, comparing the initial value and the detection value detected in the detection step,
A determining step of determining that the reading of the encoder slit is not properly performed when the difference is out of a predetermined range.

【0008】このような方法によると、エンコーダスリ
ットに、たまたま付着したごみ等が、正規のエンコーダ
スリットとして間違えられるような場合であっても、エ
ンコーダスリットの汚れを確実に検出することができ
る。また、請求項3に記載の発明は、請求項1または2
に記載の発明において、前記初期値設定工程が、前記キ
ャリッジによる所定の処理動作が行なわれる前に行われ
ることを特徴としている。所定の処理動作を行なう前に
初期値を設定しておくと、キャリッジの往復動作中にお
ける、ほこりや手垢、あるいはインクの付着がない状態
で、初期値を設定することができる。
According to such a method, even if dust or the like which happens to adhere to the encoder slit is mistaken as a regular encoder slit, it is possible to reliably detect the contamination of the encoder slit. In addition, the invention described in claim 3 is based on claim 1 or 2
Wherein the initial value setting step is performed before a predetermined processing operation by the carriage is performed. By setting an initial value before performing a predetermined processing operation, the initial value can be set in a state where dust, dirt, or ink does not adhere during the reciprocating operation of the carriage.

【0009】また、請求項4に記載の発明は、請求項1
ないし3のいずれかに記載の発明において、前記検出工
程および前記判定工程が、所定の処理動作毎に行なわれ
ることを特徴としている。検出工程および判定工程を定
期的に行なうことにより、エンコーダスリットの読み取
りが適正に行なわれているか否か、すなわち、エンコー
ダスリットが汚れているか否かを、頻繁にチェックする
ことができる。
The invention described in claim 4 is the first invention.
In the invention according to any one of the first to third aspects, the detecting step and the determining step are performed every predetermined processing operation. By periodically performing the detection step and the determination step, it is possible to frequently check whether or not the encoder slit is properly read, that is, whether or not the encoder slit is dirty.

【0010】また、請求項5に記載の発明は、請求項1
ないし4のいずれかに記載の発明において、前記キャリ
ッジが、フレームの両側端部間において、往復移動が許
容されており、前記キャリッジが、前記フレームの側端
部に位置した位置を、前記基準位置としていることを特
徴としている。キャリッジがフレームの側端部に位置し
た位置を基準位置にすると、キャリッジがフレームの側
端部に当接する位置を基準位置にでき、この当接位置
は、機械的に容易に決定することができる。
[0010] The invention described in claim 5 is the first invention.
In the invention described in any one of (1) to (4), the carriage is allowed to reciprocate between both side ends of the frame, and the position where the carriage is located at the side end of the frame is referred to as the reference position. It is characterized by that. When the position where the carriage is located at the side end of the frame is set as the reference position, the position where the carriage abuts on the side end of the frame can be set as the reference position, and this abutment position can be easily determined mechanically. .

【0011】また、請求項6に記載の発明は、往復移動
されるキャリッジと、前記キャリッジの位置を認識させ
るためのエンコーダスリットと、前記エンコーダスリッ
トを読み取るためのエンコーダとを備える、装置におい
て、前記キャリッジが予め決められた基準位置にある状
態において、予め設定されている値を初期値として設定
する初期値設定手段と、前記初期値を設定した後に、キ
ャリッジの往復動作によって所定の処理動作を行ない、
再び前記基準位置において、エンコーダのカウント値を
検出する検出手段と、前記初期値と前記検出手段により
検出された検出値とを比較して、その差が所定の範囲外
であるときに、前記エンコーダスリットの読み取りが適
正に行なわれていないと判定する判定手段とを備えるこ
とを特徴としている。
According to a sixth aspect of the present invention, there is provided an apparatus comprising: a reciprocating carriage; an encoder slit for recognizing a position of the carriage; and an encoder for reading the encoder slit. In a state where the carriage is at a predetermined reference position, initial value setting means for setting a preset value as an initial value, and after setting the initial value, perform a predetermined processing operation by reciprocating operation of the carriage. ,
Again at the reference position, the detection means for detecting the count value of the encoder, the initial value and the detection value detected by the detection means are compared, and when the difference is outside a predetermined range, the encoder Determining means for determining that the reading of the slit is not properly performed.

【0012】このような判定手段を備えることで、たと
えば、初期値設定工程から検出工程までの間における、
キャリッジの往復動作中に、エンコーダスリットに、ほ
こりや手垢などが付着し、あるいは、印字を行なうため
の往復動作によって、インクが付着するなどして、エン
コーダスリット上のスリットが汚れた場合には、エンコ
ーダが、汚れたスリットを読み飛ばすので、正確にスリ
ットの数がカウントされず、検出値と初期値とのずれを
生じるようになる。そのため、初期値と検出値とを比較
することにより、容易にエンコーダスリットの読み取り
が適正に行なわれているか否か、すなわち、エンコーダ
スリットが汚れているか否かを判断することができる。
By providing such a determination means, for example, during the period from the initial value setting step to the detection step,
During the reciprocating operation of the carriage, if dust or dirt adheres to the encoder slit, or ink adheres due to reciprocating operation for printing, and the slit on the encoder slit becomes dirty, Since the encoder skips the dirty slit, the number of slits is not accurately counted, and a deviation between the detected value and the initial value occurs. Therefore, by comparing the initial value and the detected value, it can be easily determined whether the reading of the encoder slit is properly performed, that is, whether the encoder slit is dirty.

【0013】また、請求項7に記載の発明は、往復移動
されるキャリッジと、前記キャリッジの位置を認識させ
るためのエンコーダスリットと、前記エンコーダスリッ
トを読み取るためのエンコーダとを備える、装置におい
て、前記キャリッジが予め決められた複数の基準位置の
うちの少なくとも1つの基準位置にある状態において、
予め設定されている値を初期値として設定する初期値設
定手段と、前記初期値を設定した後に、キャリッジの往
復動作によって所定の処理動作を行ない、前記基準位置
とは異なる基準位置において、エンコーダのカウント値
を検出する検出手段と、前記初期値と前記検出手段によ
り検出された検出値とを比較して、その差が所定の範囲
外であるときに、前記エンコーダスリットの読み取りが
適正に行なわれていないと判定する判定手段とを備える
ことを特徴としている。
According to a seventh aspect of the present invention, there is provided an apparatus comprising: a reciprocating carriage; an encoder slit for recognizing a position of the carriage; and an encoder for reading the encoder slit. In a state where the carriage is at at least one reference position among a plurality of predetermined reference positions,
Initial value setting means for setting a preset value as an initial value, and after setting the initial value, perform a predetermined processing operation by a reciprocating operation of the carriage, and at a reference position different from the reference position, The detection means for detecting the count value, the initial value and the detection value detected by the detection means are compared, and when the difference is out of a predetermined range, reading of the encoder slit is performed properly. And a determination unit that determines that the data is not present.

【0014】このような判定手段を備えることで、エン
コーダスリットに、たまたま付着したごみ等が、正規の
エンコーダスリットとして間違えられるような場合であ
っても、エンコーダスリットの汚れを確実に検出するこ
とができる。また、請求項8に記載の発明は、請求項6
または7に記載の発明において、前記キャリッジに、前
記キャリッジの往復動作によって印字動作を行なうため
の印字ヘッドが搭載されていることを特徴としている。
キャリッジに印字ヘッドを搭載することで、良好な印字
処理を行なえるようにできる。
By providing such a judging means, even if dust or the like which happens to adhere to the encoder slit is mistaken as a regular encoder slit, it is possible to reliably detect the dirt on the encoder slit. it can. The invention according to claim 8 is the same as the claim 6.
Or a print head for performing a printing operation by a reciprocating movement of the carriage is mounted on the carriage.
By mounting the print head on the carriage, good print processing can be performed.

【0015】請求項9に記載の発明の発明は、請求項6
または7に記載の発明において、前記キャリッジに、前
記キャリッジの往復動作によってスキャナ動作を行なう
ためのスキャナヘッドが搭載されていることを特徴とし
ている。キャリッジにスキャナヘッドを搭載すること
で、良好なスキャナ処理を行なえるようにできる。
The invention according to claim 9 is the invention according to claim 6.
In the invention described in Item 7, the scanner is characterized in that a scanner head for performing a scanner operation by reciprocating the carriage is mounted on the carriage. By mounting the scanner head on the carriage, good scanner processing can be performed.

【0016】[0016]

【発明の実施の形態】図1は、この発明のエンコーダス
リットの検出適否判定方法が適用される印字装置の一例
を示す斜視図である。この印字装置は、印字ヘッドから
インクを噴射するインクジェット印字装置1として構成
されている。このインクジェット印字装置1は、仮想線
で示す本体カバー2内に、本体フレーム3が配設されて
おり、この本体フレーム3内に、プラテン4、キャリッ
ジ5を駆動するためのキャリッジ駆動機構6、および用
紙8に向かってインクを印字ヘッド7から噴射させるた
めのインク噴射機構9を備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a perspective view showing an example of a printing apparatus to which a method for judging whether or not to detect an encoder slit according to the present invention is applied. This printing apparatus is configured as an inkjet printing apparatus 1 that ejects ink from a print head. In the inkjet printing apparatus 1, a main body frame 3 is disposed in a main body cover 2 indicated by a virtual line, and a platen 4, a carriage driving mechanism 6 for driving a carriage 5, and a An ink ejecting mechanism 9 for ejecting ink from the print head 7 toward the paper 8 is provided.

【0017】プラテン4は、その両端部において、本体
フレーム3に回転可能に支持されており、プラテン4の
左側端部には、プラテンギヤ10が取り付けられてい
る。このプラテンギヤ10には、図示しないギヤ列を介
してフィードモータ35(図3参照)からの駆動が伝達
され、それによって、プラテン4が用紙8を所定の方向
に送るように回転される。
The platen 4 is rotatably supported at both ends by the main body frame 3, and a platen gear 10 is attached to a left end of the platen 4. Drive from a feed motor 35 (see FIG. 3) is transmitted to the platen gear 10 via a gear train (not shown), whereby the platen 4 is rotated so as to feed the sheet 8 in a predetermined direction.

【0018】キャリッジ5は、プラテン4により近い側
において、ガイドロッド11に移動自由に支持され、か
つ、プラテン4からより遠い側において、ガイドレール
12によって移動自由に支持されている。ガイドロッド
11は、その両端部において、本体フレーム3に支持さ
れており、また、ガイドレール12は、本体フレーム3
の一部を構成している。
The carriage 5 is supported by a guide rod 11 on a side closer to the platen 4 and is freely supported by a guide rail 12 on a side farther from the platen 4. The guide rod 11 is supported at both ends by the main body frame 3, and the guide rail 12 is connected to the main body frame 3.
Is part of.

【0019】また、キャリッジ5は、その下面側におい
て、エンドレスベルト13の所定の部位に固定されてお
り、エンドレスベルト13は、ガイドロッド11および
ガイドレール12と平行に延びるように、本体フレーム
3の両側端部に配置されたプーリ14および15の間に
掛け渡される。一方のプーリ15は、たとえばステッピ
ングモータからなるキャリッジモータ16の駆動軸上に
設けられ、キャリッジモータ16の駆動により、プーリ
25に回転が与えられて、エンドレスベルト13を介し
て、キャリッジ5が、ガイドロッド11およびガイドレ
ール12に沿って、所望の方向に移動する。
The carriage 5 is fixed to a predetermined portion of an endless belt 13 on the lower surface thereof. The endless belt 13 extends in parallel with the guide rods 11 and the guide rails 12 so that the carriage 5 extends. It is bridged between pulleys 14 and 15 arranged at both ends. One pulley 15 is provided on a drive shaft of a carriage motor 16 composed of, for example, a stepping motor. When the carriage motor 16 is driven, the pulley 25 is rotated, and the carriage 5 is guided through the endless belt 13 to guide the carriage 5. It moves in a desired direction along the rod 11 and the guide rail 12.

【0020】また、キャリッジ5には、印字ヘッド7が
搭載されている。印字ヘッド7は、インクカートリッジ
17から供給されたインクを収容するインク室(図示せ
ず。)の容積を圧電素子等で変化させることにより、こ
のインク室内のインクをノズルから用紙8に向かって噴
射させて印字を行なう、インクジェットヘッドとして構
成されている。この印字ヘッド7に適用されるインク
は、当初から液体であるインクであっても、固形のイン
クペレットを加熱溶融して液状のインクとするホットメ
ルトタイプのインクであってもよい。
Further, a print head 7 is mounted on the carriage 5. The print head 7 changes the volume of an ink chamber (not shown) for accommodating the ink supplied from the ink cartridge 17 with a piezoelectric element or the like, thereby ejecting the ink in the ink chamber from the nozzles toward the paper 8. The ink jet head is configured to perform printing by causing the ink jet head to perform printing. The ink applied to the print head 7 may be a liquid ink from the beginning, or may be a hot-melt type ink obtained by heating and melting solid ink pellets into a liquid ink.

【0021】また、キャリッジ5の往復移動経路に沿っ
て、エンコーダスリット18が配設される。このエンコ
ーダスリット18は、後で説明する図2に示すように、
光学的に読み取り可能なスリットが、たとえば1インチ
あたり600個の密度で、その長手方向に分布するよう
に形成されている。一方、キャリッジ5には、エンコー
ダスリット18上のスリットを読み取って、キャリッジ
5の速度に対応するエンコーダ信号、すなわち、スリッ
トの間隔に対応するパルス周期であって、スリットの数
に対応するパルス数のエンコーダ信号を発するエンコー
ダ20(図3参照)が設けられている。このエンコーダ
20は、たとえば、2個の発光素子間および2個の受光
素子間において、互いの位相が3/4周期ずらされてい
て、2個の受光素子から出力されるパルスの位相差によ
って、キャリッジ5の移動方向(往方向および復方向)
を検出できるように構成されている。
An encoder slit 18 is provided along the reciprocating path of the carriage 5. As shown in FIG. 2, which will be described later,
Optically readable slits are formed, for example, at a density of 600 per inch and distributed in the longitudinal direction. On the other hand, the carriage 5 reads a slit on the encoder slit 18 and reads an encoder signal corresponding to the speed of the carriage 5, that is, a pulse cycle corresponding to the interval between the slits and the number of pulses corresponding to the number of slits. An encoder 20 (see FIG. 3) that emits an encoder signal is provided. This encoder 20 has, for example, a phase difference of / period between two light emitting elements and between two light receiving elements, and a phase difference between pulses output from the two light receiving elements. Moving direction of carriage 5 (forward direction and backward direction)
Is configured to be detected.

【0022】図3には、インクジェット印字装置1の制
御系のブロック図が示されている。図3に示すように、
CPU21は、データバスやアドレスバス等のバス22
を介して、外部の電子機器23との間で種々のデータの
授受を行なうための通信インターフェイス24、LCD
の表示やLEDの表示ランプ等からなる表示部25と入
力スイッチ26とからなる操作パネル27、印字にかか
わるモータ類を駆動する駆動回路28、印字ヘッド7を
駆動する印字ヘッド駆動回路29、エンコーダ20から
の信号に基づいて各種のタイミングを発生させるタイミ
ングパルス発生回路30、ROM32、RAM33、不
揮発性メモリ(RAM)34、必要に応じて設けられる
基準センサー40等の各部と接続されている。
FIG. 3 is a block diagram of a control system of the ink jet printing apparatus 1. As shown in FIG.
The CPU 21 includes a bus 22 such as a data bus or an address bus.
Communication interface 24 for exchanging various data with an external electronic device 23 through the
, An operation panel 27 including an input switch 26, a driving circuit 28 for driving motors for printing, a printing head driving circuit 29 for driving the printing head 7, and an encoder 20. Are connected to various parts such as a timing pulse generation circuit 30 for generating various timings based on signals from the CPU, a ROM 32, a RAM 33, a nonvolatile memory (RAM) 34, and a reference sensor 40 provided as needed.

【0023】ROM32には、外部の電子機器23から
画像データや制御データを受信する受信制御プログラ
ム、作成した記録データに基づいてフィードモータ35
の紙送り駆動回路36やキャリッジモータ16のキャリ
ッジ駆動回路37や印字ヘッド7の印字ヘッド駆動回路
29を駆動制御する制御ヘッドプログラム、操作パネル
27への表示や入力を制御するプログラム、画像データ
の印字制御を行なう印刷制御プログラムや、後述するエ
ンコーダスリットの検出適否を判定するプログラム等を
記録している。
The ROM 32 has a receiving control program for receiving image data and control data from the external electronic device 23, and a feed motor 35 based on the created recording data.
A control head program for driving and controlling the paper feed drive circuit 36, the carriage drive circuit 37 for the carriage motor 16, and the print head drive circuit 29 for the print head 7, a program for controlling display and input to the operation panel 27, and printing of image data. A printing control program for performing control, a program for determining whether or not to detect an encoder slit described later, and the like are recorded.

【0024】また、RAM33には、外部の電子機器2
3から受信した画像データや制御データ等を格納するた
めのバッファや、印刷制御を行なうための各種のメモリ
やバッファや、エンコーダスリットの検出適否を判定す
るプログラムを実行するための一時記憶としてのワーク
エリアが設定されている。図4は、図3に示した制御系
において、キャリッジ5の駆動制御系をさらに詳細に示
すブロック図である。図4においては、タイミングパル
ス発生回路30は、印字タイミング発生回路38とエッ
ジ検出回路39とを含むゲートアレーとして構成されて
いる。エッジ検出回路39は、エンコーダ20から出力
されたエンコーダ信号のエッジを検出するとともに、そ
の検出タイミングで基準パルスを発生する。印字タイミ
ング発生回路38は、エッジ検出回路39から出力され
た基準パルスに基づいて、印字タイミング信号を発生す
る。
The RAM 33 stores external electronic equipment 2
A buffer for storing image data and control data received from the printer 3, various memories and buffers for performing print control, and a work as a temporary storage for executing a program for judging whether or not to detect an encoder slit. Area is set. FIG. 4 is a block diagram showing the drive control system of the carriage 5 in more detail in the control system shown in FIG. 4, the timing pulse generation circuit 30 is configured as a gate array including a print timing generation circuit 38 and an edge detection circuit 39. The edge detection circuit 39 detects an edge of the encoder signal output from the encoder 20, and generates a reference pulse at the detection timing. The print timing generation circuit 38 generates a print timing signal based on the reference pulse output from the edge detection circuit 39.

【0025】CPU21は、印字タイミング発生回路3
8から出力された速度データ(エンコーダ信号のパルス
幅のカウント値)を入力として受け、キャリッジ15の
移動速度を規定する、キャリッジモータ16のためのキ
ャリッジ駆動回路37へ与えられるべき駆動信号のパル
ス幅の演算を行なう。また、CPU30は、エッジ検出
回路39から出力された位置制御用パルス(基準パル
ス)を入力として受け、キャリッジ5の現在位置の演算
(ソフトウエアによるアップダウンの計数動作)を行な
う。そして、CPU21から、キャリッジ駆動回路37
には、所望の速度で所望の位置にキャリッジ5が移動さ
れるためのデータが出力される。
The CPU 21 includes a print timing generation circuit 3
8 receives the speed data (the count value of the pulse width of the encoder signal) output from the controller 8 and determines the moving speed of the carriage 15, and determines the pulse width of the drive signal to be supplied to the carriage drive circuit 37 for the carriage motor 16. Is performed. The CPU 30 receives the position control pulse (reference pulse) output from the edge detection circuit 39 as an input, and calculates the current position of the carriage 5 (up / down counting operation by software). Then, the carriage drive circuit 37 is sent from the CPU 21.
Is output data for moving the carriage 5 to a desired position at a desired speed.

【0026】印字タイミング発生回路38から出力され
たタイミングパルスとしての印字タイミング信号は、印
字ヘッド駆動回路29に入力される。印字ヘッド駆動回
路29は、この印字タイミング信号が与えるタイミング
に従って、CPU21により与えられる印字データに基
づいて印字ヘッド7を駆動させるために必要なパルス幅
および電圧条件を満たす印字ヘッド駆動パルスを発生す
る。印字ヘッド7は、この印字ヘッド駆動パルスを受け
て、所望のタイミングでインクを用紙8へ噴射する。
A print timing signal as a timing pulse output from the print timing generation circuit 38 is input to the print head drive circuit 29. The print head drive circuit 29 generates a print head drive pulse that satisfies the pulse width and voltage conditions necessary to drive the print head 7 based on print data provided by the CPU 21 in accordance with the timing given by the print timing signal. The print head 7 receives the print head drive pulse and ejects ink onto the paper 8 at a desired timing.

【0027】図2は、エンコーダスリット18と基準パ
ルスとの関係を示す説明図である。図2を用いてキャリ
ッジ5の往復動作をさらに詳述する。まず、このインク
ジェット印字装置1の使用を開始するときには、電源投
入時に、キャリッジ5が、本体フレーム3の左側端部側
にゆっくりと移動され、本体フレーム3の左側端部に当
接する。そして、この当接したを基準位置(ホームポジ
ション)として、この基準位置において、CPU21に
おけるキャリッジ5の位置を演算するためのカウント値
が0にリセットされる。次に、キャリッジ5の往復移動
によって、印字ヘッド7が所定の印字処理動作を行なう
ときには、図2に示すように、たとえば、キャリッジ5
が往方向へ移動すると、エンコーダ20が、エンコーダ
スリット18上に形成されたスリットのエッジを順次検
出して、スリットのエッジが検出される毎に、エッジ検
出回路39が基準パルスを発生させてCPU21に送
り、CPU21がこの基準パルスを積算してカウントし
ていく。一方、キャリッジ5が、復方向に移動するとき
にも、エンコーダ20が、エンコーダスリット18上に
形成されたスリットのエッジを順次検出し、スリットの
エッジが検出される毎に、エッジ検出回路39が基準パ
ルスを発生させてCPU21に送る。このとき、エンコ
ーダ20は、前述したように、2個の受光素子から出力
されるパルスの位相差によって、復方向を認識して検出
しているので、CPU21は、この復方向の基準パルス
を減算してカウントしていく。したがって、再びキャリ
ッジ5が基準位置に位置されたときには、カウント値
は、リセット値と同じ0の値となる。このようにして、
キャリッジ5は、エンコーダスリット18上に形成され
たスリットのエッジの数がカウントされることにより、
CPU21において、その現在位置が認識されている。
FIG. 2 is an explanatory diagram showing the relationship between the encoder slit 18 and the reference pulse. The reciprocating operation of the carriage 5 will be described in further detail with reference to FIG. First, when the use of the inkjet printing apparatus 1 is started, when the power is turned on, the carriage 5 is slowly moved to the left end of the main body frame 3 and abuts on the left end of the main body frame 3. The contact position is defined as a reference position (home position), and the count value for calculating the position of the carriage 5 in the CPU 21 is reset to 0 at this reference position. Next, when the print head 7 performs a predetermined print processing operation by reciprocating the carriage 5, as shown in FIG.
Move in the forward direction, the encoder 20 sequentially detects the edges of the slit formed on the encoder slit 18, and every time the edge of the slit is detected, the edge detection circuit 39 generates a reference pulse and the CPU 21 And the CPU 21 accumulates and counts this reference pulse. On the other hand, also when the carriage 5 moves in the backward direction, the encoder 20 sequentially detects the edges of the slit formed on the encoder slit 18, and the edge detection circuit 39 is activated every time the edge of the slit is detected. A reference pulse is generated and sent to the CPU 21. At this time, since the encoder 20 recognizes and detects the backward direction based on the phase difference between the pulses output from the two light receiving elements as described above, the CPU 21 subtracts the reference pulse in the backward direction. And count. Therefore, when the carriage 5 is again positioned at the reference position, the count value becomes the same value of 0 as the reset value. In this way,
The carriage 5 counts the number of edges of the slit formed on the encoder slit 18 so that
In the CPU 21, the current position is recognized.

【0028】次に、この発明の一実施形態によるエンコ
ーダスリットの検出適否判定方法について以下に説明す
る。図5は、このエンコーダスリットの検出適否判定方
法を示すフロー図である。以下このフロー図を参照しつ
つ説明する。このエンコーダスリットの検出適否判定方
法では、先ず、初期値設定工程において、キャリッジ5
が予め決められた基準位置にある状態において、予め設
定されている値を初期値として設定する。この初期値設
定工程は、所定の印字処理動作の終了後、次の印字動作
を行なう前に行なってもよいが、好ましくは、使用を開
始する電源投入時に行なう。印字処理動作を行なう前に
初期値を設定しておくと、キャリッジ5の往復動作中に
おける、ほこりや手垢、あるいはインクの付着がない状
態で、初期値を設定することができ、適正な初期値を設
定でき、正確な処理動作を確保できる。この初期値の設
定は、前述したように、キャリッジ5を、本体フレーム
3の左側端部側に移動させて(S1)、本体フレーム3
の左側端部に当接した位置を基準位置(ホームポジショ
ン)として、この基準位置において、CPU21におけ
るキャリッジ5の位置を演算するためのカウント値を0
にリセット、すなわち、初期値として0を設定すること
により行なう(S2)。キャリッジ5が本体フレーム3
の側端部に当接する位置を基準位置とすると、この当接
位置は、たとえば、キャリッジ5がどの位置にあろうと
も基準位置まで移動するのに必要な時間以上にわたって
キャリッジモータ16を駆動するようにしたり、あるい
は、キャリッジ5を基準位置方向へゆっくり移動させ、
エンコーダ信号の変化が観測されなくなった時に、キャ
リッジ5が側端部に到達したと認識するようにしたり、
あるいは、本体フレーム3の左側端部に当接スイッチな
どを備えることにより、容易に検知できるため、基準位
置の設定を容易かつ正確確実に行なえて、判定の精度を
向上させることができる。
Next, a method for judging the propriety of detection of the encoder slit according to an embodiment of the present invention will be described below. FIG. 5 is a flowchart showing a method for determining whether or not to detect the encoder slit. Hereinafter, description will be made with reference to this flowchart. In this method of determining whether or not the encoder slit is appropriate, first, in the initial value setting step, the carriage 5
Is set at a predetermined reference position, a preset value is set as an initial value. This initial value setting step may be performed after the end of the predetermined print processing operation and before the next print operation, but is preferably performed when the power supply for starting use is turned on. If the initial value is set before performing the print processing operation, the initial value can be set in a state where there is no dust, dirt, or ink adhered during the reciprocating operation of the carriage 5, and an appropriate initial value can be set. Can be set, and an accurate processing operation can be secured. As described above, the initial value is set by moving the carriage 5 to the left end of the main body frame 3 (S1).
The position in contact with the left end of the carriage 21 is defined as a reference position (home position). At this reference position, the count value for calculating the position of the carriage 5 in the CPU 21 is set to 0.
, That is, by setting 0 as an initial value (S2). The carriage 5 is the main body frame 3
Assuming that the position abutting on the side end of the carriage 5 is the reference position, the abutment position is such that the carriage motor 16 is driven for more than the time necessary for the carriage 5 to move to the reference position regardless of the position. Or move the carriage 5 slowly toward the reference position,
When the change in the encoder signal is no longer observed, it is recognized that the carriage 5 has reached the side end,
Alternatively, by providing a contact switch or the like at the left end of the main body frame 3, the detection can be easily performed. Therefore, the reference position can be set easily, accurately, and reliably, and the accuracy of the determination can be improved.

【0029】そして、この初期値設定工程の後に、キャ
リッジ5の往復動作により、印字ヘッド7の所定の印字
処理動作が行なわれ(S3)、その後に、検出工程が開
始される(S4)。この検出工程においては、キャリッ
ジ5を再び、本体フレーム3の左側端部に当接する位置
に位置させた後(S5)、所定の印字処理動作が行なわ
れた後のカウント値を検出する(S6)。
After the initial value setting step, a predetermined print processing operation of the print head 7 is performed by the reciprocating operation of the carriage 5 (S3), and thereafter, a detection step is started (S4). In this detection step, after the carriage 5 is again positioned at a position where it comes into contact with the left end of the main body frame 3 (S5), a count value after a predetermined printing processing operation is performed is detected (S6). .

【0030】検出されたカウント値は、初期値設定工程
と検出工程との間における、キャリッジ5の往復動作に
おいて、エンコーダ20が、正確にエンコーダスリット
18のスリット数(エッジ数)を読み取っていれば、初
期値と同じ値、すなわち、0となる。一方、たとえば、
エンコーダスリット18が、ほこりや手垢などの付着、
あるいは、インクの付着などにより、汚れているような
場合には、エンコーダ20がスリットのエッジを正確に
検出することができず、汚れたスリットを読み飛ばして
しまうことがある。この場合、キャリッジ5の往方向お
よび復方向の両方向において、読み飛ばしてしまう場合
には、カウント値は相殺されて、往復動作におけるカウ
ント値のずれを生じないが、多くの汚れは、スリットに
安定して付着することはなく、そのため、往方向および
復方向のいずれかにおいて、カウント値にずれが生じ、
キャリッジ5が再び基準位置に位置したときには、初期
値と同じ0の値にはならない。
The detected count value is determined if the encoder 20 accurately reads the number of slits (the number of edges) of the encoder slit 18 during the reciprocating operation of the carriage 5 between the initial value setting step and the detecting step. , The same value as the initial value, that is, 0. On the other hand, for example,
Encoder slit 18 adheres to dust and dirt,
Alternatively, in the case where the slit is dirty due to ink adhesion or the like, the encoder 20 may not be able to accurately detect the edge of the slit and may skip the dirty slit. In this case, if the reading is skipped in both the forward direction and the backward direction of the carriage 5, the count value is canceled, and the count value does not shift in the reciprocating operation. Does not adhere, and therefore, the count value is shifted in either the forward direction or the backward direction,
When the carriage 5 is again located at the reference position, the value does not become 0, which is the same as the initial value.

【0031】そして、判定工程において、初期値と検出
値とを比較して、その差が所定の範囲外であるときに
は、エンコーダスリット18の読み取りが適正に行なわ
れていないと判定する(S7)。この判定工程において
は、たとえば、所定の値として、キャリッジ5のずれが
2mmとなる値を入力しておき、初期値から検出値を差
し引いた値の絶対値が、この入力値よりも小さい場合に
は、エンコーダスリット18の読み取りが適正に行なわ
れていると判断させて、印字処理動作を続行するように
し、また、この入力値よりも大きい場合には、エンコー
ダスリット18の読み取りが適正に行なわれていないと
判断させて、表示部25において、アラーム等の表示を
行なって、ユーザーに、エンコーダスリット18が汚れ
ていることを知らせる(S8)。
In the determining step, the initial value and the detected value are compared, and if the difference is out of the predetermined range, it is determined that the reading of the encoder slit 18 is not properly performed (S7). In this determination step, for example, a value at which the displacement of the carriage 5 is 2 mm is input as a predetermined value, and the absolute value of the value obtained by subtracting the detection value from the initial value is smaller than this input value. Makes the determination that the reading of the encoder slit 18 is performed properly, and continues the print processing operation. When the input value is larger than this input value, the reading of the encoder slit 18 is performed properly. It is determined that the encoder slit 18 is not present, and an alarm or the like is displayed on the display unit 25 to notify the user that the encoder slit 18 is dirty (S8).

【0032】このような、エンコーダスリットの検出適
否判定方法においては、初期値と検出値とを比較するこ
とで、容易にエンコーダスリット18の読み取りが適正
に行なわれているか否か、すなわち、エンコーダスリッ
トが汚れているか否かを判断することができるので、印
字出力がずれている場合には、その原因が、エンコーダ
スリットの汚れであることをユーザーに知らせることが
でき、ユーザーはエンコーダスリットを清掃するなどし
て、直ちに、正常な状態に回復させるように対処するこ
とができる。また、エンコーダスリットの汚れをユーザ
ーに知らせて、常に、正常な状態で作動するようにして
おくことにより、エンコーダの読み取りの誤りに起因し
て、キャリッジ5が往復動作範囲を越えて作動して、本
体フレーム3に衝突して損傷するようなことを事前に防
止することができる。
In such a method for judging whether or not the encoder slit is properly detected, the initial value and the detected value are compared to determine whether or not the reading of the encoder slit 18 is easily performed properly, ie, whether the encoder slit 18 is properly read. It is possible to judge whether or not is dirty, so if the print output is shifted, it is possible to inform the user that the cause is dirt on the encoder slit, and the user cleans the encoder slit. For example, it is possible to take measures to immediately restore the normal state. Also, by notifying the user of the dirt on the encoder slit and always operating in a normal state, the carriage 5 operates beyond the reciprocating operation range due to an error in reading of the encoder. It is possible to prevent the collision with the main body frame 3 and damage in advance.

【0033】また、この検出工程および判定工程は、ユ
ーザーによる入力スイッチ26からの入力により、適宜
行なってもよいが、設定印字枚数毎、たとえば用紙を1
00枚印字する毎、または、設定時間毎、たとえば2時
間毎、または、定期的に行なわれる印字ヘッド7のメン
テナンス処理毎など、定期的に行なうようにされている
ことが好ましい。検出工程および判定工程を定期的に行
なうことにより、エンコーダスリット18の読み取りが
適正に行なわれているか否か、すなわち、エンコーダス
リット18が汚れているか否かを、頻繁にチェックでき
るので、キャリッジ5の正常な作動を常に確保すること
ができる。
The detecting step and the judging step may be appropriately performed by an input from the input switch 26 by a user.
It is preferable that the printing operation is performed periodically, for example, every time printing is performed on 00 sheets, every set time, for example, every two hours, or every time the maintenance processing of the print head 7 is performed regularly. By periodically performing the detection step and the determination step, it is possible to frequently check whether or not the encoder slit 18 is properly read, that is, whether or not the encoder slit 18 is dirty. Normal operation can always be ensured.

【0034】さらに、初期値設定工程では、基準位置に
おいて、初期値として0が設定されたときには、本体フ
レーム3の両側端の間の距離が決まっているため、言い
換えると、エンコーダスリット18の長さが決まってい
るため、右側端部が、いくらの値になるかが必然的に決
定される。(図2においては、たとえば右側端部が、1
800となるように設定されている。)したがって、検
出工程において、左側端部の基準位置に位置されたとき
のカウント値を検出するだけでなく、次いで、キャリッ
ジ5を本体フレーム3の右側端部にゆっくりと移動して
当接させて、かかる右側端部をも基準位置としてカウン
ト値を検出し、そして、判定工程において、左側端部の
基準位置での判定に加えて、右側端部の基準位置で検出
されたカウント値を、予め決定されている右側端部の値
と比較して、その差が所定の範囲内にあるか否かを判定
してもよい。このように、本体フレーム3の両側端部に
おいてカウント値を検出して、初期値および予め決定さ
れている値と、それぞれ比較することにより、左側端部
のみで判定する場合より、精度よく判定でき、キャリッ
ジ5をより正確に作動させることができる。なお、初期
値設定工程において、本体フレーム3の左側端部の基準
位置において、初期値として0を設定し、検出工程にお
いて、右側端部の基準位置のみで、エンコーダ20のカ
ウント値を検出してもよい。この方法によれば、エンコ
ーダスリットの汚れが正規のスリットとして間違えるよ
うな汚れであったとしても、この汚れを確実に検知する
ことができる。また、本体フレーム3の右側端部に当接
する位置を初期値が設定される基準位置としてもよい。
Further, in the initial value setting step, when 0 is set as an initial value at the reference position, the distance between both side ends of the main body frame 3 is determined. Is determined, it is inevitably determined how much the right end becomes. (In FIG. 2, for example, the right end is 1
It is set to be 800. Therefore, in the detection step, not only is the count value detected at the reference position at the left end portion detected, but also the carriage 5 is slowly moved to abut on the right end portion of the main body frame 3 to make contact therewith. The count value detected at the reference position of the right end in addition to the determination at the reference position of the left end in the determination step, the count value detected at the reference position of the right end is also determined in advance in the determination step. It may be compared with the determined value of the right end to determine whether the difference is within a predetermined range. As described above, the count value is detected at both end portions of the main body frame 3 and is compared with the initial value and the predetermined value, respectively, so that the judgment can be made with higher accuracy than when the judgment is made only at the left end portion. , The carriage 5 can be operated more accurately. In the initial value setting step, 0 is set as an initial value at the reference position at the left end of the main body frame 3, and in the detection step, the count value of the encoder 20 is detected only at the reference position at the right end. Is also good. According to this method, even if the dirt on the encoder slit is a dirt that may be mistaken for a regular slit, the dirt can be reliably detected. Further, a position in contact with the right end of the main body frame 3 may be set as a reference position at which an initial value is set.

【0035】また、図6は、基準位置をキャリッジ5の
往復動作途中に設けた場合の、エンコーダスリット18
と基準パルスとの関係を示す説明図である。図6におい
ては、印字ヘッド7の印字領域中央位置(エンコーダの
カウント値として「1000」が設定される領域)を基
準位置としている例を示している。すなわち、キャリッ
ジ5が印字領域中央位置を通過したことを検出する基準
センサ40を設け、この基準センサ40から検出信号が
出力された時点で、エンコーダのカウント値を「100
0」に設定し、以後、その設定値を基準にアップダウン
の計数動作が行なわれるようにしたものである。この図
6に示すように、基準位置は、センサーなどで検出して
確定できる位置であれば、エンコーダスリット18上の
いずれの位置であってもよく、また、その設定値は任意
である。
FIG. 6 shows the encoder slit 18 when the reference position is provided in the middle of the reciprocating operation of the carriage 5.
FIG. 3 is an explanatory diagram showing a relationship between the reference pulse and the reference pulse. FIG. 6 shows an example in which the center position of the print area of the print head 7 (the area where “1000” is set as the count value of the encoder) is set as the reference position. That is, a reference sensor 40 for detecting that the carriage 5 has passed the center position of the print area is provided, and when the detection signal is output from the reference sensor 40, the count value of the encoder is set to "100".
It is set to "0", and thereafter, the up / down counting operation is performed based on the set value. As shown in FIG. 6, the reference position may be any position on the encoder slit 18 as long as it can be detected and determined by a sensor or the like, and its set value is arbitrary.

【0036】なお、本実施形態では、キャリッジ5に印
字ヘッド7を搭載したインクジェット印字装置1を例に
とって説明したが、このエンコーダスリットの検出適否
判定方法は、たとえば、印刷物の原稿等を光学的センサ
によって読み取る画像読取装置において、スキャナヘッ
ドが搭載されるキャリッジにも同様に適用することがで
きる。
In the present embodiment, the ink jet printing apparatus 1 in which the print head 7 is mounted on the carriage 5 has been described as an example. In an image reading apparatus for reading by a scanner, the present invention can be similarly applied to a carriage on which a scanner head is mounted.

【0037】[0037]

【発明の効果】以上述べたように、請求項1に記載の発
明によれば、容易にエンコーダスリットの読み取りが適
正に行なわれているか否か、すなわち、エンコーダスリ
ットが汚れているか否かを判断することができるので、
印字出力などの処理がずれている場合には、その原因
が、エンコーダスリットの汚れであることをユーザーに
知らせることができ、ユーザーはエンコーダスリットを
清掃するなどして、直ちに、正常な状態に回復させるよ
うに対処することができる。また、エンコーダスリット
の汚れをユーザーに知らせて、常に、正常な状態で作動
するようにしておくことにより、エンコーダの読み取り
の誤りに起因して、キャリッジが往復動作範囲を越えて
作動して、フレームに衝突して損傷するようなことを事
前に防止することができる。
As described above, according to the first aspect of the present invention, it is easily determined whether or not the reading of the encoder slit is properly performed, that is, whether or not the encoder slit is dirty. So you can
If processing such as printing output is off, the user can be informed that the cause is dirt on the encoder slit, and the user can recover the normal state immediately by cleaning the encoder slit, etc. Can be dealt with. Also, by notifying the user of the dirt on the encoder slit and always operating in a normal state, the carriage operates beyond the reciprocating operation range due to an error in reading of the encoder, and the frame is moved. It is possible to prevent the vehicle from being damaged by colliding with the vehicle.

【0038】また、請求項2に記載の発明によれば、請
求項1に記載の効果に加えて、エンコーダスリットに付
着したごみ等が正規のエンコーダスリットとして間違え
られるような場合であっても、エンコーダスリットの汚
れを確実に検出することができる。また、請求項3に記
載の発明によれば、キャリッジの往復動作中における、
ほこりや手垢、あるいはインクの付着がない状態で、初
期値を設定することができ、適正な初期値を設定でき、
適正な処理動作を確保することができる。
According to the second aspect of the present invention, in addition to the effect of the first aspect, even if dust attached to the encoder slit is mistaken as a normal encoder slit, Dirt on the encoder slit can be reliably detected. According to the third aspect of the present invention, during the reciprocating operation of the carriage,
With no dust, dirt, or ink adhesion, you can set the initial value, and you can set an appropriate initial value.
Appropriate processing operation can be ensured.

【0039】また、請求項4に記載の発明によれば、エ
ンコーダスリットが汚れているか否かを、頻繁にチェッ
クできるので、キャリッジの正常な作動を常に確保する
ことができる。また、請求項5に記載の発明によれば、
キャリッジがフレームの側端部に当接した位置を基準位
置にできるため、この当接位置を、機械的あるいは電気
的に容易に決定することができる。したがって、基準位
置の設定を容易かつ正確確実に行なえて、判定の精度を
向上させることができる。
According to the fourth aspect of the present invention, it is possible to frequently check whether or not the encoder slit is dirty, so that normal operation of the carriage can always be ensured. According to the invention described in claim 5,
Since the position where the carriage abuts on the side end of the frame can be used as the reference position, this abutment position can be easily determined mechanically or electrically. Therefore, the reference position can be set easily, accurately and reliably, and the accuracy of the determination can be improved.

【0040】また、請求項6に記載の発明によれば、容
易にエンコーダスリットの読み取りが適正に行なわれて
いるか否か、すなわち、エンコーダスリットが汚れてい
るか否かを判断することができるので、印字出力などの
処理がずれている場合には、その原因が、エンコーダス
リットの汚れであることをユーザーに知らせることがで
き、ユーザーはエンコーダスリットを清掃するなどし
て、直ちに、正常な状態に回復させるように対処するこ
とができる。また、エンコーダスリットの汚れをユーザ
ーに知らせて、常に、正常な状態で作動するようにして
おくことにより、エンコーダの読み取りの誤りに起因し
て、キャリッジが往復動作範囲を越えて作動して、フレ
ームに衝突して損傷するようなことを事前に防止するこ
とができる。
According to the sixth aspect of the present invention, it is possible to easily determine whether reading of the encoder slit is properly performed, that is, whether the encoder slit is dirty. If processing such as printing output is off, the user can be informed that the cause is dirt on the encoder slit, and the user can recover the normal state immediately by cleaning the encoder slit, etc. Can be dealt with. Also, by notifying the user of the dirt on the encoder slit and always operating in a normal state, the carriage operates beyond the reciprocating operation range due to an error in reading of the encoder, and the frame is moved. It is possible to prevent the vehicle from being damaged by colliding with the vehicle.

【0041】また、請求項7に記載の発明によれば、請
求項6に記載の効果に加えて、エンコーダスリットに付
着したごみ等が正規のエンコーダスリットとして間違え
られるような場合であっても、エンコーダスリットの汚
れを確実に検出することができる。また、請求項8に記
載の発明によれば、キャリッジに印字ヘッドを搭載する
ことで、良好な印字処理を行なえるようにでき、プリン
タなどの印字装置として好適に用いることができる。
According to the seventh aspect of the present invention, in addition to the effect of the sixth aspect, even when dust attached to the encoder slit is mistaken as a normal encoder slit, Dirt on the encoder slit can be reliably detected. According to the eighth aspect of the present invention, by mounting the print head on the carriage, it is possible to perform good print processing, and it can be suitably used as a printing device such as a printer.

【0042】また、請求項9に記載の発明によれば、キ
ャリッジにスキャナヘッドを搭載することで、良好なス
キャナ処理を行なえるようにでき、イメージスキャナー
などの情報処理装置として好適に用いることができる。
According to the ninth aspect of the present invention, by mounting a scanner head on a carriage, it is possible to perform good scanner processing, and it can be suitably used as an information processing apparatus such as an image scanner. it can.

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

【図1】この発明のエンコーダスリットの検出適否判定
方法が適用される印字装置の一例を示す斜視図である。
FIG. 1 is a perspective view showing an example of a printing apparatus to which an encoder slit detection suitability determination method of the present invention is applied.

【図2】エンコーダスリットと基準パルスとの関係を示
す説明図である。
FIG. 2 is an explanatory diagram showing a relationship between an encoder slit and a reference pulse.

【図3】図1に示すインクジェット印字装置の制御系の
ブロック図である。
FIG. 3 is a block diagram of a control system of the ink jet printing apparatus shown in FIG.

【図4】図3に示した制御系において、キャリッジの駆
動制御系をさらに詳細に示すブロック図である。
FIG. 4 is a block diagram showing a drive control system of a carriage in the control system shown in FIG. 3 in further detail;

【図5】エンコーダスリットの検出適否判定方法を示す
フロー図である。
FIG. 5 is a flowchart showing a method for determining whether or not to detect an encoder slit.

【図6】基準位置をキャリッジの往復動作途中に設けた
場合の、エンコーダスリットと基準パルスとの関係を示
す説明図である。
FIG. 6 is an explanatory diagram showing a relationship between an encoder slit and a reference pulse when a reference position is provided during a reciprocating operation of the carriage.

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

3 本体フレーム 5 キャリッジ 7 印字ヘッド 18 エンコーダスリット 20 エンコーダ 3 Body frame 5 Carriage 7 Print head 18 Encoder slit 20 Encoder

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】 往復移動されるキャリッジの位置を認識
させるためのエンコーダスリットの読み取りが、適正に
行なわれているか否かを判定する方法であって、 前記キャリッジが予め決められた基準位置にある状態に
おいて、予め設定されている値を初期値として設定する
初期値設定工程と、 前記初期値設定工程の後に、キャリッジの往復動作によ
って所定の処理動作を行ない、再び前記基準位置におい
てエンコーダのカウント値を検出する検出工程と、 前記初期値と前記検出工程において検出された検出値と
を比較して、その差が所定の範囲外であるときに、前記
エンコーダスリットの読み取りが適正に行なわれていな
いと判定する判定工程とを備えることを特徴とする、エ
ンコーダスリットの読み取り適否判定方法。
1. A method for judging whether reading of an encoder slit for recognizing a position of a reciprocating carriage is performed properly or not, wherein the carriage is at a predetermined reference position. In the state, an initial value setting step of setting a preset value as an initial value, and after the initial value setting step, a predetermined processing operation is performed by a reciprocating operation of the carriage, and the count value of the encoder at the reference position again. And detecting the encoder slit is not performed properly when the difference between the initial value and the detection value detected in the detection step is outside a predetermined range. A determination step of determining whether or not to read the encoder slit.
【請求項2】 往復移動されるキャリッジの位置を認識
させるためのエンコーダスリットの読み取りが、適正に
行なわれているか否かを判定する方法であって、 前記キャリッジが予め決められた複数の基準位置のうち
の少なくとも1つの基準位置にある状態において、予め
設定されている値を初期値として設定する初期値設定工
程と、 前記初期値設定工程の後に、キャリッジの往復動作によ
って所定の処理動作を行ない、前記基準位置とは異なる
基準位置においてエンコーダのカウント値を検出する検
出工程と、 前記初期値と前記検出工程において検出された検出値と
を比較して、その差が所定の範囲外であるときに、前記
エンコーダスリットの読み取りが適正に行なわれていな
いと判定する判定工程とを備えることを特徴とする、エ
ンコーダスリットの読み取り適否判定方法。
2. A method for determining whether reading of an encoder slit for recognizing a position of a reciprocating carriage is performed properly, wherein the carriage is provided with a plurality of predetermined reference positions. An initial value setting step of setting a preset value as an initial value in a state in which at least one of the reference positions is set; and performing a predetermined processing operation by a reciprocating operation of the carriage after the initial value setting step. A detection step of detecting a count value of an encoder at a reference position different from the reference position, and comparing the initial value with the detection value detected in the detection step, and when the difference is outside a predetermined range. A determining step of determining that reading of the encoder slit is not properly performed. A method for judging whether or not a slit is read.
【請求項3】 前記初期値設定工程は、前記キャリッジ
による所定の処理動作が行なわれる前に行われる、請求
項1または2に記載のエンコーダスリットの読み取り適
否判定方法。
3. The method according to claim 1, wherein the initial value setting step is performed before a predetermined processing operation by the carriage is performed.
【請求項4】 前記検出工程および前記判定工程は、所
定の処理動作毎に行なわれる、請求項1ないし3のいず
れかに記載のエンコーダスリットの読み取り適否判定方
法。
4. The method according to claim 1, wherein said detecting step and said determining step are performed for each predetermined processing operation.
【請求項5】 前記キャリッジは、フレームの両側端部
間において、往復移動が許容されており、前記キャリッ
ジが、前記フレームの側端部に位置した位置を、前記基
準位置としている、請求項1ないし4のいずれかに記載
のエンコーダスリットの読み取り適否判定方法。
5. The frame according to claim 1, wherein the carriage is allowed to reciprocate between both side ends of the frame, and a position where the carriage is located at a side end of the frame is set as the reference position. 5. The method according to any one of claims 1 to 4, wherein the readability of the encoder slit is determined.
【請求項6】 往復移動されるキャリッジと、前記キャ
リッジの位置を認識させるためのエンコーダスリット
と、前記エンコーダスリットを読み取るためのエンコー
ダとを備える、装置において、 前記キャリッジが予め決められた基準位置にある状態に
おいて、予め設定されている値を初期値として設定する
初期値設定手段と、 前記初期値を設定した後に、キャリッジの往復動作によ
って所定の処理動作を行ない、再び前記基準位置におい
て、エンコーダのカウント値を検出する検出手段と、 前記初期値と前記検出手段により検出された検出値とを
比較して、その差が所定の範囲外であるときに、前記エ
ンコーダスリットの読み取りが適正に行なわれていない
と判定する判定手段とを備えることを特徴とする、装
置。
6. An apparatus comprising: a reciprocating carriage; an encoder slit for recognizing a position of the carriage; and an encoder for reading the encoder slit, wherein the carriage is moved to a predetermined reference position. In a certain state, an initial value setting means for setting a preset value as an initial value, and after setting the initial value, perform a predetermined processing operation by a reciprocating operation of the carriage, and again at the reference position, Detecting means for detecting a count value; comparing the initial value with the detection value detected by the detecting means; when the difference is out of a predetermined range, reading of the encoder slit is performed properly. A determination unit that determines that the device has not been detected.
【請求項7】 往復移動されるキャリッジと、前記キャ
リッジの位置を認識させるためのエンコーダスリット
と、前記エンコーダスリットを読み取るためのエンコー
ダとを備える、装置において、 前記キャリッジが予め決められた複数の基準位置のうち
の少なくとも1つの基準位置にある状態において、予め
設定されている値を初期値として設定する初期値設定手
段と、 前記初期値を設定した後に、キャリッジの往復動作によ
って所定の処理動作を行ない、前記基準位置とは異なる
基準位置において、エンコーダのカウント値を検出する
検出手段と、 前記初期値と前記検出手段により検出された検出値とを
比較して、その差が所定の範囲外であるときに、前記エ
ンコーダスリットの読み取りが適正に行なわれていない
と判定する判定手段とを備えることを特徴とする、装
置。
7. An apparatus comprising: a reciprocating carriage; an encoder slit for recognizing a position of the carriage; and an encoder for reading the encoder slit, wherein the carriage has a plurality of predetermined standards. Initial value setting means for setting a preset value as an initial value in a state where the reference position is at least one of the positions; and after setting the initial value, performing a predetermined processing operation by a reciprocating operation of the carriage. Performing, at a reference position different from the reference position, detection means for detecting the count value of the encoder, and comparing the initial value and the detection value detected by the detection means, and the difference is out of a predetermined range. At one time, determining means for determining that reading of the encoder slit is not performed properly. An apparatus, comprising:
【請求項8】 前記キャリッジには、前記キャリッジの
往復動作によって印字動作を行なうための印字ヘッドが
搭載されている、請求項6または7に記載の装置。
8. The apparatus according to claim 6, wherein a print head for performing a printing operation by reciprocating the carriage is mounted on the carriage.
【請求項9】 前記キャリッジには、前記キャリッジの
往復動作によってスキャナ動作を行なうためのスキャナ
ヘッドが搭載されている、請求項6または7に記載の装
置。
9. The apparatus according to claim 6, wherein a scanner head for performing a scanner operation by reciprocating the carriage is mounted on the carriage.
JP9176662A 1997-07-02 1997-07-02 Method and apparatus for judgment of suitability of detection by encoder slit Pending JPH1123323A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9176662A JPH1123323A (en) 1997-07-02 1997-07-02 Method and apparatus for judgment of suitability of detection by encoder slit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9176662A JPH1123323A (en) 1997-07-02 1997-07-02 Method and apparatus for judgment of suitability of detection by encoder slit

Publications (1)

Publication Number Publication Date
JPH1123323A true JPH1123323A (en) 1999-01-29

Family

ID=16017517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9176662A Pending JPH1123323A (en) 1997-07-02 1997-07-02 Method and apparatus for judgment of suitability of detection by encoder slit

Country Status (1)

Country Link
JP (1) JPH1123323A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6371593B1 (en) * 2001-01-05 2002-04-16 Acer Communication And Multimedia Inc. Error detection and correction for printer positioning logic
JP2005313331A (en) * 2004-04-27 2005-11-10 Ricoh Co Ltd Recorder with means for taking counter measure against abnormality of positional information
JP2006320477A (en) * 2005-05-18 2006-11-30 Matsushita Electric Ind Co Ltd Ultrasonic probe
JP2007107892A (en) * 2005-10-11 2007-04-26 Seiko Epson Corp Position detector, rotary scale, and liquid discharger equipped with position detector
JP2019123087A (en) * 2018-01-12 2019-07-25 株式会社リコー Printer, home positioning method, and program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6371593B1 (en) * 2001-01-05 2002-04-16 Acer Communication And Multimedia Inc. Error detection and correction for printer positioning logic
JP2005313331A (en) * 2004-04-27 2005-11-10 Ricoh Co Ltd Recorder with means for taking counter measure against abnormality of positional information
JP2006320477A (en) * 2005-05-18 2006-11-30 Matsushita Electric Ind Co Ltd Ultrasonic probe
JP2007107892A (en) * 2005-10-11 2007-04-26 Seiko Epson Corp Position detector, rotary scale, and liquid discharger equipped with position detector
JP2019123087A (en) * 2018-01-12 2019-07-25 株式会社リコー Printer, home positioning method, and program

Similar Documents

Publication Publication Date Title
US8167425B2 (en) Method of printing an indication of defective printing, an inkjet printer, a printer driver, and a defective printing notification method
JP2007160756A (en) Method of initializing carriage position of recording device, recording device, and control program therefor
US20220097427A1 (en) Carriage apparatus, printing apparatus, and control method thereof
JPH1123323A (en) Method and apparatus for judgment of suitability of detection by encoder slit
JP6217077B2 (en) Driving device and image forming apparatus
KR100449085B1 (en) Sensor cleaning apparatus for an ink-jet printer
JP4461828B2 (en) Printing device
KR0150298B1 (en) The method for sensing & fixing separation of carriage for inkjet printer
JP2009208457A (en) Image forming device
JP5029181B2 (en) Fluid ejecting apparatus and flushing control method for fluid ejecting apparatus
JP7016479B2 (en) Printing equipment, home positioning method, program
JP2004025549A (en) Controlling equipment and control process of motor
JP2007276135A (en) Printer and printing method
JPH05301351A (en) Recording apparatus
US10183507B2 (en) Image recording apparatus and image recording method
JP4144494B2 (en) Inkjet recording device
JP2015085228A (en) Ink discharge type printer, ink discharge type printing system, ink discharge type print control method and ink discharge type print control program
JP2005246858A (en) Image forming apparatus
JP2000118067A (en) Printer
JPH0930008A (en) Recording head cleaning device of ink jet printer
JP6736863B2 (en) Liquid ejector
JP2006272770A (en) Recording device and method of controlling recording device
JP2020128036A (en) Recording device and control method for the same
JP2005246733A (en) Image forming apparatus
JP4288950B2 (en) Inkjet printer

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050322

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050927