JPH0712725B2 - Print head position detection method - Google Patents

Print head position detection method

Info

Publication number
JPH0712725B2
JPH0712725B2 JP38286A JP38286A JPH0712725B2 JP H0712725 B2 JPH0712725 B2 JP H0712725B2 JP 38286 A JP38286 A JP 38286A JP 38286 A JP38286 A JP 38286A JP H0712725 B2 JPH0712725 B2 JP H0712725B2
Authority
JP
Japan
Prior art keywords
print head
detector
specific distance
length
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP38286A
Other languages
Japanese (ja)
Other versions
JPS62158070A (en
Inventor
安彦 村本
Original Assignee
株式会社精工舎
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 株式会社精工舎 filed Critical 株式会社精工舎
Priority to JP38286A priority Critical patent/JPH0712725B2/en
Publication of JPS62158070A publication Critical patent/JPS62158070A/en
Publication of JPH0712725B2 publication Critical patent/JPH0712725B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、キャリッジに搭載された印字ヘッドが記録媒
体の幅方向に移動しながら印字を行なうシリアルプリン
タにおける印字ヘッドの位置検出方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a print head position detection method in a serial printer that prints while a print head mounted on a carriage moves in the width direction of a recording medium.

[従来の技術] 公知のシリアルプリンタは、一般に、フォトスイッチな
どの検出器がプリンタ本体側(例えば、プリンタの機械
体支持フレームを構成する底板)の左端部寄りの位置に
固定的に設置され、印字ヘッドを搭載したキャリッジ側
に設けてある遮蔽板が検出器を横切ることによってホー
ム位置を検出する構成のものであった。
[Prior Art] In a known serial printer, in general, a detector such as a photo switch is fixedly installed at a position near a left end portion of a printer main body side (for example, a bottom plate constituting a mechanical support frame of the printer). The shield plate provided on the side of the carriage on which the print head is mounted traverses the detector to detect the home position.

[発明が解決しようとする問題点] 上記従来の技術によれば、プリンタへの電源投入時など
のイニシャライズ時に印字ヘッドの位置を検出する必要
があるとき、印字ヘッドをホーム位置まで移動させなけ
ればならない。このイニシャライズ時に印字ヘッドがホ
ーム位置にあるときは、印字ヘッドを一旦ホーム位置か
ら脱出させてから印字ヘッドをホーム位置へ戻してい
た。印字ヘッドのホーム位置への移動は、印字ヘッドが
1パルス分移動する毎に検出器が反転したか否かを判断
する必要があり、このため印字ヘッドの移動速度をあま
り速くするには限界があるのが実情である。したがって
印字ヘッドがホーム位置から遠く離れた右端部寄りの位
置に位置していると(このような状態は通常の印字終了
後に頻繁に発生する。)、印字ヘッドの位置検出に時間
が掛かる問題点があった。
[Problems to be Solved by the Invention] According to the above conventional technique, when it is necessary to detect the position of the print head at the time of initialization such as power-on of the printer, the print head must be moved to the home position. I won't. When the print head is at the home position at the time of this initialization, the print head is once returned from the home position and then returned to the home position. When moving the print head to the home position, it is necessary to judge whether or not the detector is reversed every time the print head moves by one pulse. Therefore, there is a limit in moving the print head too fast. The reality is. Therefore, when the print head is located at a position near the right end far away from the home position (such a condition frequently occurs after normal printing is completed), it takes time to detect the position of the print head. was there.

そこで本発明は、印字ヘッドの位置検出に要する時間を
短縮することができる新規な印字ヘッドの位置検出方法
を提供することを目的とする。
Therefore, it is an object of the present invention to provide a novel print head position detection method capable of shortening the time required to detect the print head position.

[問題点を解決するための手段] 上記目的を達成するために、本発明による印字ヘッドの
位置検出方法は、つぎの工程〜からなることを特徴
とする。
[Means for Solving Problems] In order to achieve the above object, the method for detecting the position of the print head according to the present invention is characterized by the following steps.

上記印字ヘッドの移動領域を4つの領域R1(長さ
a),R2(長さb),R3(長さc),R4(長さd)の順に
分割する。ただし各領域の長さはa>b>c>dの関係
にある。
The moving area of the print head is divided into four areas R 1 (length a), R 2 (length b), R 3 (length c), R 4 (length d) in this order. However, the lengths of the regions are in the relationship of a>b>c> d.

上記領域に対応して遮蔽部と非遮蔽部とが交互に形
成されている検出板を、上記印字ヘッドの移動方向にそ
って固定的に配置する。
A detection plate, in which shielded portions and non-shielded portions are alternately formed corresponding to the area, is fixedly arranged along the moving direction of the print head.

上記検出板の遮蔽部と非遮蔽部とによってオン・オ
フの信号を出力する検出器を上記キャリッジに固定す
る。
A detector for outputting an on / off signal is fixed to the carriage by the shield portion and the non-shield portion of the detection plate.

ヘッド位置検出の指令を受けたとき、上記検出器の
出力がオンであるかオフであるかを判断する。
When a command for head position detection is received, it is determined whether the output of the detector is on or off.

上記工程における判断結果に基いて上記印字ヘッ
ドを上記検出器の出力が反転する位置まで予め定められ
た方向に移動させる。
The print head is moved in a predetermined direction to a position where the output of the detector is reversed based on the judgment result in the above process.

上記工程の後で、上記印字ヘッドを予め定められ
た方向に特定距離だけ移動させる。ただし、当該特定距
離は、特定距離<aでありかつc<特定距離<(b+
c)の関係に定められている。
After the above steps, the print head is moved in a predetermined direction by a specific distance. However, the specific distance is specific distance <a and c <specific distance <(b +
It is defined in the relationship of c).

上記工程の後で上記検出器の出力がオンであるか
オフであるかを判断する。
After the above steps, it is determined whether the detector output is on or off.

上記工程における判断結果に基いて上記印字ヘッ
ドの位置を検知する。
The position of the print head is detected based on the determination result in the above process.

[実施例] 以下、本発明の詳細を添付図面に示す好適な一実施例に
そって説明する。
[Embodiment] The details of the present invention will be described below with reference to a preferred embodiment shown in the accompanying drawings.

第1図において、平行に位置する側板1,2間に2本のガ
イド軸3,4が固着されており、このガイド軸3,4によって
キャリッジ5が摺動自在に支持されている。キャリッジ
5上には印字ヘッド6が取り付けてあり、その前方に側
板1,2によって回転自在に支持されているプラテン7が
設けられている。印字ヘッド6とプラテン7との間には
紙などの記録媒体8が通され、この記録媒体8はトラク
タ装置9,10によって改行されるようになっている。
In FIG. 1, two guide shafts 3 and 4 are fixed between side plates 1 and 2 positioned in parallel, and a carriage 5 is slidably supported by the guide shafts 3 and 4. A print head 6 is mounted on the carriage 5, and a platen 7 rotatably supported by side plates 1 and 2 is provided in front of the print head 6. A recording medium 8 such as paper is passed between the print head 6 and the platen 7, and the recording medium 8 is fed by the tractor devices 9 and 10.

キャリッジ5の裏面には検出器11が取付けてある。この
検出器11は、この実施例では、発光素子と受光素子(共
に図示せず。)とからなるものが使用されている。一
方、検出器11と協働する検出板12は、底板13上に固定的
に設置されている。検出板12はキャリッジ5の移動方向
と平行に延伸しており、2個の非遮蔽部12a,12cと、こ
れと同数の遮蔽部12b,12dとが交互に形成されている。
A detector 11 is attached to the back surface of the carriage 5. In this embodiment, the detector 11 is composed of a light emitting element and a light receiving element (both not shown). On the other hand, the detection plate 12 that cooperates with the detector 11 is fixedly installed on the bottom plate 13. The detection plate 12 extends parallel to the moving direction of the carriage 5, and two non-shielding portions 12a and 12c and the same number of shielding portions 12b and 12d are alternately formed.

検出器11が非遮蔽部12aまたは12cに対向するときは光が
透過してその出力はオンとなり、また検出器11が遮蔽部
12bまたは12dと対向しているときは光が遮蔽されてその
出力はオフとなる。したがって、検出器11は、印字ヘッ
ド6の移動領域にそって交互にオン,オフを繰り返し、
オン状態またはオフ状態となる区間が検出板12の非遮蔽
部12a,12cと遮蔽部12b,12dのそれぞれの長さに対応す
る。この実施例では、非遮蔽部12a,遮蔽部12b,非遮蔽部
12cおよび遮蔽部12dはこの順にそってそれぞれ長さa,b,
cおよびdに設定されており、それぞれの長さはa>b
>c>dの関係にある。
When the detector 11 faces the unshielded portion 12a or 12c, light is transmitted and the output is turned on, and the detector 11 is shielded by the shield portion 12a or 12c.
When facing 12b or 12d, the light is blocked and the output is turned off. Therefore, the detector 11 is repeatedly turned on and off alternately along the moving area of the print head 6,
The sections in the ON state or the OFF state correspond to the lengths of the non-shielding portions 12a, 12c and the shielding portions 12b, 12d of the detection plate 12, respectively. In this embodiment, the non-shielding portion 12a, the shielding portion 12b, the non-shielding portion
The lengths a, b, and 12c and the shield 12d are arranged in this order, respectively.
It is set to c and d, and the length of each is a> b
>C> d.

なお、第1図において、R1,R2,R3およびR4は、非遮蔽部
12a,遮蔽部12b,非遮蔽部12cおよび遮蔽部12dに対応する
領域である。
In FIG. 1, R 1 , R 2 , R 3 and R 4 are unshielded parts.
It is a region corresponding to 12a, shield 12b, non-shield 12c, and shield 12d.

検出器11と検出板12とを上記のような配置構成とするこ
とで、第2図にしたがった本発明の位置検出方法によっ
て、イニシャライズ時の印字ヘッド6の位置検出を短時
間で完了できる。
By arranging the detector 11 and the detection plate 12 as described above, the position detection method of the present invention according to FIG. 2 can complete the position detection of the print head 6 at the time of initialization.

イニシャライズのために印字ヘッド6の位置検出の指令
を受けると、印字ヘッド6がどの位置に停止していよう
と、先ず検出器11がオンであるか否かが判断される(ス
テップI)。このとき検出器11がオン状態にあれば、印
字ヘッド6が第1図において領域R1または領域R3に停止
していたことになる。そこで、印字ヘッド6を右方へ検
出器11の出力がオフに反転する位置まで移動させて停止
する(ステップII)。この後、直に印字ヘッド6を左方
へ特定距離yだけ移動させて停止し、そこで検出器11の
出力がオンか否かを判断する(ステップIII)。
When receiving a command to detect the position of the print head 6 for initialization, it is first determined whether or not the detector 11 is on, no matter where the print head 6 is stopped (step I). If the detector 11 is in the ON state at this time, it means that the print head 6 has stopped at the area R 1 or the area R 3 in FIG. Therefore, the print head 6 is moved to the right to a position where the output of the detector 11 is turned off and then stopped (step II). After that, the print head 6 is immediately moved to the left by a specific distance y and stopped, and then it is determined whether or not the output of the detector 11 is on (step III).

ここに、印字ヘッド6の移動のための特定距離yは、 y<aでありかつc<y<(b+c) …… なる関係に設定されている。Here, the specific distance y for moving the print head 6 is set such that y <a and c <y <(b + c).

このステップIIIにおいて、検出器11がオン状態にあっ
たとすると、これは印字ヘッド6が最初は領域R1に位置
していた場合であり、最終的には、特定距離yなる移動
後にも印字ヘッド6は領域R1に位置していることにな
る。したがって、印字ヘッド6の最終的停止位置は移動
領域の左端部Lから(a−y)なる位置である。
In this step III, assuming that the detector 11 is in the ON state, this means that the print head 6 is initially located in the region R 1 and, finally, even after the print head 6 moves by the specific distance y. 6 is located in the region R 1 . Therefore, the final stop position of the print head 6 is a position (a-y) from the left end portion L of the moving area.

また、ステップIIIにおいて、検出器11がオフ状態にあ
ったとすると、これは最初に印字ヘッド6が領域R3に位
置していた場合であり、最終的には、特定距離yなる移
動後には印字ヘッド6は領域に停止していることにな
る。したがって、印字ヘッド6の最終的停止位置は移動
領域の左端部Lから(a+b+c−y)なる位置であ
る。
In step III, if the detector 11 is in the off state, this means that the print head 6 is initially located in the region R 3 , and finally, after the movement of the specific distance y, printing is performed. The head 6 is stopped in the area 2 . Therefore, the final stop position of the print head 6 is a position (a + b + c−y) from the left end portion L of the moving area.

前述のステップIにおいて、検出器11がオフ状態にあっ
たとすると、印字ヘッド6は第1図において領域R2また
はR4に停止していたことになる。そこで、今度は、印字
ヘッド6を左方へ検出器11の出力がオンに反転する位置
まで移動させる(ステップII′)。そして検出器11の出
力がオンに反転した位置から、さらに特定距離zだけ印
字ヘッド6を同方向へ移動させて停止し、検出器11の出
力がオンか否かを判断する(ステップIII′)。
If the detector 11 is in the off state in the above step I, the print head 6 has stopped at the region R 2 or R 4 in FIG. Therefore, this time, the print head 6 is moved to the left to the position where the output of the detector 11 is turned on (step II '). Then, from the position where the output of the detector 11 is turned on, the print head 6 is further moved in the same direction by the specific distance z and stopped, and it is judged whether or not the output of the detector 11 is on (step III '). .

ここに、印字ヘッド6の移動のための特定距離zは、 z<aでありかつc<z<(b+c) …… なる関係に設定されている。Here, the specific distance z for moving the print head 6 is set such that z <a and c <z <(b + c).

このステップIII′において、検出器11がオフ状態にあ
ったとすると、これは最初に印字ヘッド6が領域R4に位
置していた場合であり、最終的には、特定距離zなる移
動後には、印字ヘッド6は領域R2に位置していることに
なる。したがって、印字ヘッド6の最終的停止位置は移
動領域の左端部Lから(a+b+c−z)なる位置であ
る。
In this step III ', when the detector 11 is that there off, which is the first when the print head 6 is located in the region R 4, eventually, after moving made certain distance z, The print head 6 is located in the area R 2 . Therefore, the final stop position of the print head 6 is a position (a + b + c−z) from the left end portion L of the moving area.

また、ステップIII′において、検出器11がオン状態に
あったとすると、これは最初に印字ヘッド6が領域R2
位置していた場合であり、最終的には、距離zなる移動
後には、印字ヘッド6は領域R1に停止していることにな
る。したがって、印字ヘッド6の最終的停止位置は移動
領域の左端部Lから(a−z)なる位置である。
Further, in step III ′, if the detector 11 is in the ON state, this means that the print head 6 is initially located in the region R 2 , and finally, after the movement of the distance z, The print head 6 is stopped in the area R 1 . Therefore, the final stop position of the print head 6 is a position (az) from the left end portion L of the moving area.

なお、ステップIIまたはII′における印字ヘッド6の移
動方向は、印字ヘッド6が最外側の領域R1または領域R4
にあるときに印字ヘッド6を内側へ移動させるように決
定される。ステップIIIまたはIII′における印字ヘッド
6の移動方向は、印字ヘッド6がヘッド6の全移動領域
から逸脱することのないように決定される。
In addition, the moving direction of the print head 6 in step II or II ′ is such that the print head 6 is in the outermost region R 1 or region R 4
Is determined to move the print head 6 inward. The moving direction of the print head 6 in step III or III 'is determined so that the print head 6 does not deviate from the entire moving area of the head 6.

また、特定距離y,zは同じ値としてもよいことは、本発
明による位置検出方法の原理から容易に理解できるであ
ろう。
Further, it can be easily understood from the principle of the position detecting method according to the present invention that the specific distances y and z may have the same value.

さらに、検出器11はフォトスイッチに代えて磁気感応型
スイッチを使用してもよい。この場合、検出板12または
112は磁性材料で形成する必要がある。
Further, the detector 11 may use a magnetic sensitive switch instead of the photo switch. In this case, the detection plate 12 or
112 must be formed of a magnetic material.

[発明の効果] 以上詳細に説明した本発明に係る印字ヘッドの位置検出
方式によれば、イニシャライズのために要する印字ヘッ
ドの最大移動距離が短くなり、それに伴って印字ヘッド
の位置検出に要する平均時間を公知のものと比較して短
縮することができる。
[Effects of the Invention] According to the print head position detection method according to the present invention described in detail above, the maximum movement distance of the print head required for the initialization is shortened, and accordingly, the average required for the print head position detection is reduced. The time can be shortened compared to the known ones.

また、1個の検出器と1個の検出板の組合せで対処でき
るから、コスト的には公知のものと殆ど変わりはなく、
したがってコストアップを招くことがない。
Also, since it can be dealt with by the combination of one detector and one detection plate, there is almost no difference in cost from the known one,
Therefore, there is no increase in cost.

また、この位置検出方式は、印字ヘッドを最左端のホー
ム位置まで移動する必要がないから、プリンタに対する
セット位置および印字幅などが連続紙を使用する場合と
異なるカットフィーダ装置付きのプリンタにおけるヘッ
ド位置検出に最適である。
In addition, this position detection method does not require the print head to move to the leftmost home position, so the set position and print width for the printer are different from those when a continuous paper is used. Best for detection.

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

図面は本発明の好適な実施例を示すものであって、第1
図は本発明が適用されているシリアルプリンタの斜視
図、第2図は本発明による印字ヘッドの位置検出方法の
フローチャートである。 5……キャリッジ、6……印字ヘッド、8……記録媒
体、11……検出器、12……検出板、12a,12c……非遮蔽
部、12b,12d……遮蔽部、R1,R2,R3,R4……領域、a,b,c,
d……領域の長さ、y,z……特定距離。
The drawings show a preferred embodiment of the present invention.
FIG. 1 is a perspective view of a serial printer to which the present invention is applied, and FIG. 2 is a flow chart of a print head position detecting method according to the present invention. 5 ... Carriage, 6 ... Print head, 8 ... Recording medium, 11 ... Detector, 12 ... Detection plate, 12a, 12c ... Non-shielding portion, 12b, 12d ... Shielding portion, R 1 , R 2 , R 3 , R 4 …… area, a, b, c,
d …… length of area, y, z …… specific distance.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】キャリッジに搭載された印字ヘッドが記録
媒体の幅方向に移動しながら印字を行なうシリアルプリ
ンタにおける印字ヘッドの位置検出方法であって、つぎ
の工程〜からなることを特徴とする印字ヘッドの位
置検出方法。 上記印字ヘッドの移動領域を4つの領域R1(長さ
a),R2(長さb),R3(長さc),R4(長さd)の順に
分割する。ただし各領域の長さはa>b>c>dの関係
にある。 上記領域に対応して遮蔽部と非遮蔽部とが交互に形
成されている検出板を、上記印字ヘッドの移動方向にそ
って固定的に配置する。 上記検出板の遮蔽部と非遮蔽部とによってオン・オ
フの信号を出力する検出器を上記キャリッジに固定す
る。 ヘッド位置検出の指令を受けたとき、上記検出器の
出力がオンであるかオフであるかを判断する。 上記工程における判断結果に基いて上記印字ヘッ
ドを上記検出器の出力が反転する位置まで予め定められ
た方向に移動させる。 上記工程の後で、上記印字ヘッドを予め定められ
た方向に特定距離だけ移動させる。ただし、当該特定距
離は、特定距離<aでありかつc<特定距離<(b+
c)の関係に定められている。 上記工程の後で上記検出器の出力がオンであるか
オフであるかを判断する。 上記工程における判断結果に基いて上記印字ヘッ
ドの位置を検知する。
1. A method for detecting the position of a print head in a serial printer, which prints while a print head mounted on a carriage moves in the width direction of a recording medium, comprising: Head position detection method. The moving area of the print head is divided into four areas R 1 (length a), R 2 (length b), R 3 (length c), R 4 (length d) in this order. However, the lengths of the regions are in the relationship of a>b>c> d. A detection plate, in which shielded portions and non-shielded portions are alternately formed corresponding to the area, is fixedly arranged along the moving direction of the print head. A detector for outputting an on / off signal is fixed to the carriage by the shield portion and the non-shield portion of the detection plate. When a command for head position detection is received, it is determined whether the output of the detector is on or off. The print head is moved in a predetermined direction to a position where the output of the detector is reversed based on the judgment result in the above process. After the above steps, the print head is moved in a predetermined direction by a specific distance. However, the specific distance is specific distance <a and c <specific distance <(b +
It is defined in the relationship of c). After the above steps, it is determined whether the detector output is on or off. The position of the print head is detected based on the determination result in the above process.
JP38286A 1986-01-06 1986-01-06 Print head position detection method Expired - Lifetime JPH0712725B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP38286A JPH0712725B2 (en) 1986-01-06 1986-01-06 Print head position detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP38286A JPH0712725B2 (en) 1986-01-06 1986-01-06 Print head position detection method

Publications (2)

Publication Number Publication Date
JPS62158070A JPS62158070A (en) 1987-07-14
JPH0712725B2 true JPH0712725B2 (en) 1995-02-15

Family

ID=11472247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP38286A Expired - Lifetime JPH0712725B2 (en) 1986-01-06 1986-01-06 Print head position detection method

Country Status (1)

Country Link
JP (1) JPH0712725B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6000865A (en) * 1995-08-22 1999-12-14 Seiko Epson Corporation Printing apparatus and a control method thereof
JPH0958083A (en) * 1995-08-22 1997-03-04 Seiko Epson Corp Printing device and controlling method thereof

Also Published As

Publication number Publication date
JPS62158070A (en) 1987-07-14

Similar Documents

Publication Publication Date Title
CA1118696A (en) Automatic margin setting apparatus for a scanned sheet of paper
EP0280699B1 (en) Precision paper transport system
US4655624A (en) Ink ribbon cassette
US4893951A (en) Ink ribbon positioning system for color printing apparatus
GB1589360A (en) Printing apparatus with printing strip material non-motion detector
EP0138444B1 (en) Image printing apparatus
GB2224830A (en) Sheet detection apparatus
US4265556A (en) Apparatus for setting proportional margins based upon the width of a scanned sheet of paper
EP0659572B1 (en) Printer and method of controlling it
GB2170934A (en) Automatic printer margin setting device
EP0292102B1 (en) Device for monitoring the thickness of printing sheets in a printer
JPH0712725B2 (en) Print head position detection method
JP3061091B2 (en) Serial printer
JPH0712724B2 (en) Print head position detection method
JPS6325953B2 (en)
JP2694884B2 (en) Printer
JP3506345B2 (en) Printing method, printer and recording paper roll
JPS61199976A (en) Detection of width of paper for printer
JPS61217278A (en) Printing-controlling system for printer
JPH03197162A (en) Serial printer
JPS61172784A (en) System for automatically discriminating ink ribbon
US6074114A (en) Color printer for repetitively printing a document
JPH0216703B2 (en)
JPH02139271A (en) Printer
JP2582429B2 (en) Recording device