JPH0512053Y2 - - Google Patents

Info

Publication number
JPH0512053Y2
JPH0512053Y2 JP1986153657U JP15365786U JPH0512053Y2 JP H0512053 Y2 JPH0512053 Y2 JP H0512053Y2 JP 1986153657 U JP1986153657 U JP 1986153657U JP 15365786 U JP15365786 U JP 15365786U JP H0512053 Y2 JPH0512053 Y2 JP H0512053Y2
Authority
JP
Japan
Prior art keywords
printer head
home sensor
printer
start position
turned
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
JP1986153657U
Other languages
Japanese (ja)
Other versions
JPS6360647U (en
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 filed Critical
Priority to JP1986153657U priority Critical patent/JPH0512053Y2/ja
Publication of JPS6360647U publication Critical patent/JPS6360647U/ja
Application granted granted Critical
Publication of JPH0512053Y2 publication Critical patent/JPH0512053Y2/ja
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Spaces And Line Spaces In Printers (AREA)

Description

【考案の詳細な説明】 産業上の利用分野 本考案は、シリアルプリンタにおいて、電源投
入時、又はリセツト時に自動的にプリンタヘツド
を印字打出し位置に位置決めする制御装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a control device for automatically positioning a printer head to a printing position in a serial printer when the power is turned on or when the printer is reset.

従来の技術 第5図は従来のプリンタにおける電源投入時又
はリセツト時にプリンタヘツドを印字打出し位置
(以下ホームポジシヨンという)に位置決めする
方式の説明図で、第6図はそのときの動作処理フ
ローチヤートである。第5図において、LSは左
端ストツパ、RSは右端ストツパ、Lはプリンタ
ヘツドの可動範囲、Sは制御基板に取付けられた
ホトセンサ等で構成されたホームセンサで、プリ
ンタヘツドに取付けられた金属片を検出するもの
である。該ホームセンサSはその左端が左端スト
ツパLSと同位置に位置づけられており、該ホー
ムセンサSの右端よりnの距離左側へ移動した点
がホームポジシヨンHPと決められている。
Prior Art Figure 5 is an explanatory diagram of a method for positioning the printer head at the printing position (hereinafter referred to as the home position) when the power is turned on or reset in a conventional printer, and Figure 6 is the operational processing flow at that time. It's a chat. In Fig. 5, LS is the left end stopper, RS is the right end stopper, L is the movable range of the printer head, and S is the home sensor consisting of a photo sensor attached to the control board, which detects the metal piece attached to the printer head. It is something to detect. The left end of the home sensor S is positioned at the same position as the left end stopper LS, and a point moved to the left by a distance n from the right end of the home sensor S is determined as the home position HP.

このような構成において、電源投入時又はリセ
ツト時にプリンタヘツドをホームポジシヨンHP
に位置づけるには、プリンタの制御装置であるマ
イクロプロセツサ(以下CPUという)は第6図
の動作フローチヤートで示す処理を行う。
In such a configuration, the printer head is set to the home position HP when the power is turned on or reset.
To do this, a microprocessor (hereinafter referred to as CPU), which is a control device of the printer, performs the processing shown in the operational flowchart of FIG.

まず、ホームセンサSがプリンタヘツドに取付
けられた金属片を検出しオンしているか否か判断
し(ステツプ200)、オンしていれば、ホームセン
サSがオフするまでプリンタヘツドの駆動手段で
あるパルスモータを単位パルス毎移動させ、プリ
ンタヘツドを右方向へ移動させ(ステツプ201,
202)、ステツプS203へ移行する。又、ステツプ
200でホームセンサSがオフであれば、プリンタ
ヘツドがホームセンサSの右端から右端ストツパ
RS間に位置していることを意味するから直接ス
テツプ203へ移行し、プリンタヘツドを左方向へ
単位パルス移動させホームセンサSがオンしたか
否か判断し(ステツプ204)、ホームセンサSがオ
ンするまで左方向へプリンタヘツドを移動させ
る。ホームセンサSがオンとなり、プリンタヘツ
ドがホームセンサSの右端位置に来たとき、この
位置から左方向へ設定された距離nだけプリンタ
ヘツドを移動させ停止させる(ステツプ205)。こ
れによりプリンタヘツドはホームプジシヨンHP
に位置決めされたこととなる。
First, it is determined whether the home sensor S detects a metal piece attached to the printer head and is turned on (step 200). If it is turned on, the home sensor S acts as a driving means for the printer head until it is turned off. The pulse motor is moved per unit pulse, and the printer head is moved to the right (step 201,
202), proceed to step S203. Also, step
200 and the home sensor S is off, the printer head moves from the right end of the home sensor S to the right end stopper.
Since this means that the home sensor S is located between RS, the process moves directly to step 203, moves the printer head to the left in unit pulses, and determines whether or not the home sensor S is turned on (step 204). Move the printer head to the left until the When the home sensor S is turned on and the printer head reaches the right end position of the home sensor S, the printer head is moved leftward from this position by a set distance n and then stopped (step 205). This allows the printer head to connect to the home page.
This means that it has been positioned.

考案が解決しようとする問題点 上述したような動作を行う従来のプリンタにお
いてはホームセンサSを必ずプリンタヘツドの可
動範囲Lの左エンド、即ち左端ストツパLSに接
して配置せねばならない。それは、電源投入時や
リセツト時にホームセンサSがオンでなければ、
プリンタヘツドは必ずホームセンサSの右側に位
置ずけられているという前提で制御が行われるか
らである。
Problems to be Solved by the Invention In the conventional printer that operates as described above, the home sensor S must be placed at the left end of the printer head's movable range L, that is, in contact with the left end stopper LS. That is, unless the home sensor S is turned on when the power is turned on or reset.
This is because control is performed on the assumption that the printer head is always positioned to the right of the home sensor S.

一方、プリンタは1行印字する最大文字数が
136文字、80文字等異なる種類のものがあり、プ
リンタヘツドの可動範囲Lが長いもの短いものが
ある。これら各種のプリンタを標準化し、共通化
できるものは共通化して製造コストを下げるため
に制御基板もその外形、レイアウト等を共通化し
ようとすると、ホームセンサSの位置を従来のよ
うに左端ストツパLS位置に配置する方式である
と、ホームセンサSが左端ストツパLSの位置に
来るように制御基板を配置せねばならず、その位
置が規制され、プリンタの他の機械的構成、配列
に影響を与え、他の部材を標準化することかでき
なくなると共にプリンタの組立ても標準作業が少
なくなり効率を悪くするという欠点がある。例え
ば、1行印字する最大文字数の異なる(プリンタ
ヘツドの可動範囲Lの異なる)2種以上のプリン
タにおいて、プリンタの各種機械装置や制御基板
等を取付ける基盤は共通のものを使用できるの
が、該基盤に取付ける制御基板の位置が一定位置
に規制されてしまうと、該基盤に取付ける機械装
置の取付位置も規制されてしまい、最適配置がで
きなくなつてしまうという欠点がある。特に、制
御基板の位置が規制されなければ、種類の異なる
プリンタに対し、両プリンタにおける最適機械装
置の配置を決め、共通した機械、装置は共通した
位置に配置することができるが、制御基板の位置
が規制されることにより、これらの共通化、標準
化した配置が不可能となつてしまう。
On the other hand, printers have a maximum number of characters that can be printed on one line.
There are different types such as 136 characters and 80 characters, and some have a long movable range L of the printer head, while others have a short range. In order to standardize these various printers, standardize the parts that can be made common, and standardize the control board's external shape, layout, etc. in order to reduce manufacturing costs, the position of the home sensor S should be changed to the left end stopper LS as in the past. In the position placement method, the control board must be placed so that the home sensor S is located at the left end stopper LS, and its position is regulated, which affects other mechanical configurations and arrangements of the printer. However, it is not possible to standardize other parts, and the standard work required to assemble the printer is reduced, resulting in poor efficiency. For example, in two or more types of printers that differ in the maximum number of characters that can be printed in one line (with different movable ranges L of the printer head), it is possible to use a common base for mounting the printer's various mechanical devices and control boards. If the position of the control board attached to the base is restricted to a fixed position, the mounting position of the mechanical devices attached to the base will also be restricted, resulting in a disadvantage that optimal arrangement will not be possible. In particular, if the position of the control board is not regulated, it is possible to determine the optimal mechanical device placement for both printers for different types of printers, and to place common machines and devices in the common position. By restricting the location, it becomes impossible to share and standardize these arrangements.

そこで、本考案の目的は従来問題点を改善し、
ホームセンサの位置を任意の位置に配置すること
を可能にすることによつてプリント基板の取付位
置を任意に選択できるようにすることにある。
Therefore, the purpose of this invention is to improve the conventional problems,
The object of the present invention is to enable the mounting position of a printed circuit board to be arbitrarily selected by making it possible to arrange a home sensor at an arbitrary position.

問題点を解決するための手段 本考案によるプリンタヘツドの印字打出し位置
制御装置は、ホームセンサをプリンタヘツドの可
動範囲の両端以外の任意の位置に配すると共に、
プリンタヘツドの移動方向および上記ホームセン
サからの検出出力の立上りまたは立下りとにより
予め定められた上記ホームセンサの検出領域の一
方の端部である位置決め開始位置を検出する位置
決め開始位置検出手段と、電源投入時又はリセツ
ト時に上記ホームセンサがプリンタヘツドを検出
しているときはプリンタヘツドを予め定められた
方向へ移動させて位置決め開始位置検出手段で位
置決め開始位置を検出させ、電源投入時又はリセ
ツト時に上記ホームセンサがプリンタヘツドを検
出していないときは上記プリンタヘツドを予め定
められた方向へ所定量移動させて上記位置決め開
始位置検出手段で位置決め開始位置を検出させ、
検出されないときはプリンタヘツドを逆方向に移
動させて上記位置決め開始位置検出手段で位置決
め開始位置を検出させ、該位置決め開始位置から
プリンタヘツドを所定方向へ所定量移動させてプ
リンタヘツドを印字打出し位置に位置決めするよ
うにした制御手段とを備えたことを特徴とする構
成を有する。
Means for Solving the Problems The printer head printing position control device according to the present invention has a home sensor located at any position other than both ends of the printer head's movable range, and
positioning start position detection means for detecting a positioning start position that is one end of a detection area of the home sensor predetermined based on the moving direction of the printer head and the rise or fall of the detection output from the home sensor; When the home sensor detects the printer head when the power is turned on or reset, the printer head is moved in a predetermined direction and the positioning start position is detected by the positioning start position detection means. When the home sensor does not detect the printer head, move the printer head a predetermined amount in a predetermined direction and cause the positioning start position detection means to detect the positioning start position;
If the positioning start position is not detected, move the printer head in the opposite direction so that the positioning start position is detected by the positioning start position detection means, and then move the printer head from the positioning start position by a predetermined amount in a predetermined direction to move the printer head to the print ejection position. It has a configuration characterized in that it is equipped with a control means for positioning.

作 用 電源投入またはリセツト動作が行われると制御
手段が作動し、ホームセンサがプリンタヘツドを
検出しているか否かを判定する。
Operation When the power is turned on or a reset operation is performed, the control means is activated and determines whether or not the home sensor is detecting the printer head.

ホームセンサがプリンタヘツドを検出している
場合にはプリンタヘツドがホームセンサ上に位置
するので、プリンタヘツドを予め定められた方向
へ移動させて位置決め開始位置検出手段でホーム
センサからの検出出力の立上りまたは立下りを検
出することにより、ホームセンサの検出領域の一
方の端部である位置決め開始位置を検出すること
ができる。よつて、この場合、制御手段はプリン
タヘツドを予め定められた方向へ移動させ、位置
決め開始位置検出手段に位置決め開始位置を検出
させる。
When the home sensor is detecting the printer head, the printer head is located on the home sensor, so the printer head is moved in a predetermined direction and the positioning start position detection means detects the rise of the detection output from the home sensor. Alternatively, by detecting the falling edge, the positioning start position, which is one end of the detection area of the home sensor, can be detected. Therefore, in this case, the control means moves the printer head in a predetermined direction and causes the positioning start position detection means to detect the positioning start position.

また、ホームセンサがプリンタヘツドを検出し
ていない場合にはプリンタヘツドがホームセンサ
上に位置せず、ホームセンサの検出領域によつて
2分されるプリンタヘツドの可動範囲のいずれか
一方に該プリンタヘツドが位置することを意味す
る。そこで、制御手段は、まず、位置決め開始位
置検出手段にホームセンサの検出領域の一方の端
部である位置決め開始位置を検出させるべく、プ
リンタヘツドを予め定められた方向へ所定量移動
させる。予め定められたプリンタヘツドの移動方
向と、電源投入またはリセツト時におけるホーム
センサに対するプリンタヘツドの位置が逆方向で
あつた場合には、プリンタヘツドを予め定められ
た方向へ所定量移動させる間に位置決め開始位置
検出手段が位置決め開始位置を検出する。
Also, if the home sensor is not detecting the printer head, the printer head is not located on the home sensor, and the printer is located on either side of the printer head's movable range, which is divided into two by the detection area of the home sensor. It means that the head is located. Therefore, the control means first moves the printer head by a predetermined amount in a predetermined direction so that the positioning start position detection means detects the positioning start position which is one end of the detection area of the home sensor. If the predetermined moving direction of the printer head is opposite to the position of the printer head with respect to the home sensor at the time of power-on or reset, positioning is performed while the printer head is moved a predetermined amount in the predetermined direction. A start position detection means detects a positioning start position.

これに対し、予め定められたプリンタヘツドの
移動方向と、電源投入またはリセツト時における
ホームセンサに対するプリンタヘツドの位置が同
方向であつた場合には、プリンタヘツドを予め定
められた方向へ移動させても位置決め開始位置検
出手段は位置決め開始位置を検出しない。そこで
この場合、制御手段はプリンタヘツドを上記予め
定められたプリンタヘツドの移動方向と逆方向に
移動させて上記位置決め開始位置検出手段で位置
決め開始位置を検出させる。
On the other hand, if the predetermined moving direction of the printer head is the same as the position of the printer head relative to the home sensor when the power is turned on or reset, the printer head is moved in the predetermined direction. In this case, the positioning start position detecting means does not detect the positioning start position. Therefore, in this case, the control means moves the printer head in a direction opposite to the predetermined moving direction of the printer head, and causes the positioning start position detecting means to detect the positioning start position.

位置決め開始位置検出手段が位置決め開始位置
を検出すると、制御手段は、該位置決め開始位置
からプリンタヘツドを所定方向へ所定量移動さ
せ、プリンタヘツドを印字打出し位置に位置決め
する。
When the positioning start position detecting means detects the positioning start position, the control means moves the printer head by a predetermined amount in a predetermined direction from the positioning start position to position the printer head at the print embossing position.

実施例 第1図は本考案の一実施例の要部ブロツク図
で、1はシリアルプリンタを制御するマイクロコ
ンピユータ(以下CPUという)、2はプリンタ制
御のプログラムを記憶するROM、3はデータの
一時記憶等に利用されるRAM、4は各種指令、
データを入力する手動データ入力装置、5は入力
回路でホームセンサSに接続されている。6は出
力回路で、該出力回路6にはプリンタヘツドをプ
ラテンに対し左右方向へ移動させるヘツド移動用
のパルスモータ8を駆動するドライバ7が接続さ
れている。又、CPU1と要素2〜5はバス接続
されている。
Embodiment Figure 1 is a block diagram of the main parts of an embodiment of the present invention, in which 1 is a microcomputer (hereinafter referred to as CPU) that controls a serial printer, 2 is a ROM that stores a printer control program, and 3 is a temporary data storage. RAM is used for storage etc. 4 is for various commands,
A manual data input device 5 for inputting data is connected to the home sensor S by an input circuit. Reference numeral 6 denotes an output circuit, and a driver 7 is connected to the output circuit 6 for driving a pulse motor 8 for moving the printer head in the left and right directions with respect to the platen. Further, the CPU 1 and elements 2 to 5 are connected by a bus.

そして、発光素子と受光素子が対向して制御基
板に取付けられたダークオン型のホームセンサS
は第2図に示すように、制御基板がプリンタの基
盤に取付けられる位置に応じて決まるプリンタヘ
ツドの可動範囲上のある位置(但し、可動範囲の
両端は除く)に位置づけられており、プリンタの
種類に応じてこの位置は一定位置であり、その結
果、プリンタヘツドのホームポジシヨンHPの位
置はこのホームセンサSの位置よりプリンタ種類
毎にある一定距離にある。本実施例では、ホーム
センサSの右端よりnの位置にホームポジシヨン
HPがあるものとしている。
A dark-on type home sensor S with a light emitting element and a light receiving element facing each other and mounted on the control board.
As shown in Figure 2, the control board is located at a certain position within the printer head's movable range (excluding both ends of the movable range), which is determined by the position where the control board is attached to the printer's base. This position is a fixed position depending on the type of printer, and as a result, the position of the home position HP of the printer head is a certain fixed distance from the position of this home sensor S for each type of printer. In this embodiment, the home position is set at a position n from the right end of the home sensor S.
It is assumed that there is HP.

このようなプリンタにおいて、電源投入時やリ
セツト時には、CPU1は第3図の動作処理フロ
ーチヤートに示す動作を行う。
In such a printer, when the power is turned on or reset, the CPU 1 performs the operations shown in the operational processing flowchart of FIG.

まず、プリンタヘツドに取付けられた遮光板に
よつてホームセンサSの受光素子が遮光されるこ
とによりその検出出力がオンとなつているか否
か、即ち、ホームセンサS上にプリンタヘツドが
位置しているか否かを判断し(ステツプ100)、オ
ンであれば、パルスモータ8を単位パルスだけ駆
動し、プリンタヘツドを右方向へ移動させる(ス
テツプ101)。ここでいう右方向とは、予め定めら
れたプリンタヘツドの第1の移動方向のことであ
る。
First, check whether the light receiving element of the home sensor S is blocked by the light shielding plate attached to the printer head and its detection output is turned on. If it is on, the pulse motor 8 is driven by a unit pulse to move the printer head to the right (step 101). The rightward direction here refers to a predetermined first direction of movement of the printer head.

そして、ホームセンサSがオフになつたか否か
を判断し(ステツプ102)、ホームセンサSがオフ
になるまで、プリンタヘツドを右方向へ単位パル
ス量だけ順次移動させ、オフになるとステツプ
103へ移行する。
Then, it is determined whether or not the home sensor S has turned off (step 102), and the printer head is sequentially moved to the right by a unit pulse amount until the home sensor S is turned off.
Move to 103.

また、電源投入またはリセツト直後におけるス
テツプ100の処理でホームセンサSがオフである
と判断された場合には、電源投入時またはリセツ
ト時に、プリンタヘツドが、ホームセンサSの検
出領域によつて2分されるプリンタヘツドの可動
範囲のいずれか一方、即ち、ホームセンサSの左
側又は右側に位置していたことを意味する。
Furthermore, if it is determined that the home sensor S is off in the process of step 100 immediately after the power is turned on or reset, the printer head may be This means that the printer head is located at either one of the movable ranges of the printer head, that is, to the left or right of the home sensor S.

この場合、本実施例では、RAM3内に設けら
れたカウンタKをリセツトし(ステツプ103)、パ
ルスモータを駆動して、予め定められた第2の移
動方向である左に向けてプリンタヘツドを単位パ
ルス量だけ移動させ(ステツプ104)、カウンタK
をインクリメントし(ステツプ105)、該カウンタ
Kの値がプリンタヘツドの可動範囲量Lに対応す
るパルスモータ7のパルス数Lに達しているか否
か、即ち、予め定められた第2の移動方向への移
動によつて位置決め開始位置を検出するための所
定の移動量Lに対応するパルス数の値Lにカウン
タKの値が達しているか否かを判断する(ステツ
プ106)。
In this case, in this embodiment, the counter K provided in the RAM 3 is reset (step 103), and the pulse motor is driven to move the printer head unit by unit toward the left, which is the second predetermined direction of movement. Move by the amount of pulses (step 104), counter K
is incremented (step 105), and it is determined whether the value of the counter K has reached the number of pulses L of the pulse motor 7 corresponding to the movable range L of the printer head, that is, in a predetermined second movement direction. It is determined whether the value of the counter K has reached a value L of the number of pulses corresponding to a predetermined movement amount L for detecting the positioning start position by movement of the counter K (step 106).

即ち、プリンタヘツドが可動範囲L以上のある
設定値以上に移動したか否か判断し、その設定値
まで達していなければ、ホームセンサSがオンし
たか否かを判断し(ステツプ107)、オンしていな
ければ、再びステツプ104以下の処理を繰り返す。
かくして、プリンタヘツドが、予め定められた第
2の移動方向である左方向へ移動すると、プリン
タヘツドは左側ストツパLSに当接するか、又は
ホームセンサSがオンになるかする。先にホーム
センサSがオンになつた場合はプリンタヘツドが
始めホームセンサSの右側、つまり、ホームセン
サSを基準として、予め定められた第2の移動方
向と逆方向に位置していたことを意味し、上述の
ようにして、ステツプ107の処理で位置決め開始
位置が検出される。
That is, it is determined whether the printer head has moved beyond the movable range L or above a certain set value, and if the set value has not been reached, it is determined whether the home sensor S is turned on (step 107), and the printer head is turned on. If not, repeat the process from step 104 onwards.
Thus, when the printer head moves to the left, which is the second predetermined movement direction, the printer head contacts the left stopper LS or the home sensor S is turned on. If the home sensor S is turned on first, it means that the printer head was initially located on the right side of the home sensor S, that is, in the opposite direction to the predetermined second movement direction with the home sensor S as a reference. This means that the positioning start position is detected in the process of step 107 as described above.

また、先にカウンタKの値が可動範囲Lのパル
ス量L以上になつた場合はプリンタヘツドがホー
ムセンサSの左側、つまり、予め定められた第2
の移動方向と同方向に位置していたことを意味
し、該所定量の移動によりプリンタヘツドは左側
ストツパLSに当接することとなり、このままで
は位置決め開始位置を検出することができない。
Also, if the value of the counter K first becomes equal to or greater than the pulse amount L in the movable range L, the printer head is moved to the left side of the home sensor S, that is, at the predetermined second
This means that the printer head is positioned in the same direction as the moving direction of the printer head, and by moving by the predetermined amount, the printer head comes into contact with the left stopper LS, and the positioning start position cannot be detected as it is.

そこで、この時は、プリンタヘツドを予め定め
られた第2の移動方向と逆の右方向にホームセン
サSがオンするまで単位パルス毎移動させる(ス
テツプ108,109)。ステツプ104〜ステツプ107の
処理により、プリンタヘツドが左側ストツパLS
に当接し左側へ移動不能にもかかわらず、パルス
モータ8を可動範囲L分だけ駆動したことによ
り、パルスモータ8は相がずれ脱調状態にある
が、プリンタヘツドを右方向に移動させるように
パルスモータ8を逆転させることにより脱調状態
は解消されることとなり、正確な位置決めが可能
となる。かくして、プリンタヘツドが予め定めら
れた第2の移動方向と逆の右方向へ移動し、ホー
ムセンサSがオンして位置決め開始位置が検出さ
れるとステツプ101へ移行しステツプ101以下の処
理を行う。
Therefore, at this time, the printer head is moved in the right direction, which is opposite to the predetermined second movement direction, every unit pulse until the home sensor S is turned on (steps 108 and 109). Through the processing in steps 104 to 107, the printer head moves to the left stopper LS.
Although the pulse motor 8 is driven by the movable range L even though it is unable to move to the left due to contact with the printer head, the pulse motor 8 is out of phase and out of step. By reversing the pulse motor 8, the out-of-step state is eliminated and accurate positioning becomes possible. In this way, when the printer head moves to the right, which is opposite to the predetermined second movement direction, and the home sensor S is turned on and the positioning start position is detected, the process moves to step 101 and processes from step 101 onwards are performed. .

そしてステツプ107でホームセンサSがオンに
なると、プリンタヘツトはホームセンサSの右端
位置にあることを意味しているので、該位置より
ホームポジシヨンHP位置までの設定された距離
nだけプリンタヘツドを左方向へ移動させて停止
させる(ステツプ110)。このようにしてプリンタ
ヘツドはホームポジシヨン位置に位置づけられ
る。
When the home sensor S is turned on in step 107, it means that the printer head is at the right end position of the home sensor S, so move the printer head a set distance n from this position to the home position HP position. Move it to the left and stop it (step 110). In this way the printer head is positioned at the home position.

なお、上記実施例では電源投入時又はリセツト
時ホームセンサSがオンでないとき、プリンタヘ
ツドをまず、左方向、即ち左端ストツパLS側へ
移動させたが右方向、即ち右端ストツパRS側に
移動させてもよい。この場合ホームポジシヨン
HPの位置をホームセンサSの左端からの距離
n′で設定するようにすれば、第3図の動作処理フ
ローチヤートで、ステツプ104の左方向を右方向
にステツプ101,108の右方向を左方向へ変え、ス
テツプ110でnの値をn′の値にすればよい。
In the above embodiment, when the home sensor S is not on when the power is turned on or reset, the printer head is first moved to the left, that is, toward the left end stopper LS, but it is moved to the right, that is, toward the right end stopper RS. Good too. In this case the home position
The distance of the HP position from the left edge of the home sensor S
If n' is set, in the operation processing flowchart shown in FIG. ’ value.

又、上記実施例においては、第3図におけるス
テツプ106でカウンタKの値と比較する値を可動
範囲Lに相当するパルス数Lとしたが、この比較
する値をホームセンサSの右端より右端ストツパ
RSまでの距離に相当するパルス数にしてもよい。
これは、プリンタヘツドがホームセンサSの右側
にあれば、右端ストツパRSとホームセンサSの
右端間の距離プリンタヘツドが左側へ移動すれ
ば、その間必ずホームセンサSはオンとなるはず
であり、オンとならなければ、プリンタヘツドは
ホームセンサSの左側にあつたことを意味するか
らである。
Further, in the above embodiment, the value to be compared with the value of the counter K in step 106 in FIG. 3 is the number of pulses L corresponding to the movable range L.
The number of pulses may be set to correspond to the distance to the RS.
This means that if the printer head is on the right side of the home sensor S, the distance between the right end stopper RS and the right end of the home sensor S, and the printer head moves to the left, the home sensor S should be turned on during that time. This is because if this is not the case, it means that the printer head is on the left side of the home sensor S.

第4図は本考案の別の実施例のフローチヤート
であり、該実施例は電源投入時又はリセツト時に
ホームセンサがプリンタヘツドを検出していない
場合に、プリンタヘツドを左右どちらか一方へ可
動範囲L以上移動させて、左側又は右側ストツパ
に当接させ位置決めを行うもので、本実施例では
右側ストツパに当接させる場合を示す。
FIG. 4 is a flowchart of another embodiment of the present invention, in which the printer head can be moved within a range of movement to either the left or right when the home sensor does not detect the printer head at power-on or reset. Positioning is performed by moving it by more than L and abutting the left or right stopper, and in this embodiment, the case is shown in which it abuts the right stopper.

電源投入又はリセツト信号が入力されると、
CPU1はホームセンサSがオンか否か判断し
(ステツプ120)、オンならば第3図に示す実施例
と同様、ホームセンサSがオフとなるまで単位パ
ルス毎パルスモータ8を駆動し、プリンタヘツド
を右方向へ移動させ(ステツプ121,122)、ステ
ツプ127へ移行する。一方ホームセンサSがオフ
であると、カウンタKをリセツトし(ステツプ
123)、パルスモータ8をプリンタヘツドの可動範
囲Lに相当するパルス分より以上のあらかじめ設
定したパルス数だけ駆動しプリンタヘツドを右方
向へ移動させる(ステツプ124,125,126)。その
結果、プリンタヘツドは右側ストツパRSに当接
した状態となる。かくして、プリンタヘツドはホ
ームセンサSの検出領域の右側検出領域外に位置
づけられる。続いて、プリンタヘツドを左方向へ
単位パルス分だけ移動させ(ステツプ127)、ホー
ムセンサSがオンとなつたか否か判断し(ステツ
プ128)、オンとなるまでプリンタヘツドを左方向
へ移動させる。そして、オンとなると該ホームセ
ンサSの検出領域の右側端部から決められた規定
量nだけ左方向へプリンタヘツドを移動させてホ
ームポジシヨン位置HPにプリンタヘツドを停止
させ(ステツプ128)、印字打出し位置決めは終了
する。
When the power is turned on or a reset signal is input,
The CPU 1 determines whether the home sensor S is on or not (step 120), and if it is on, drives the pulse motor 8 every unit pulse until the home sensor S turns off, as in the embodiment shown in FIG. is moved to the right (steps 121, 122), and the process moves to step 127. On the other hand, if the home sensor S is off, the counter K is reset (step
123), the pulse motor 8 is driven by a preset number of pulses greater than the number of pulses corresponding to the movable range L of the printer head to move the printer head to the right (steps 124, 125, 126). As a result, the printer head comes into contact with the right stopper RS. Thus, the printer head is positioned outside the detection area to the right of the detection area of the home sensor S. Next, the printer head is moved to the left by a unit pulse (step 127), it is determined whether the home sensor S is turned on (step 128), and the printer head is moved to the left until it is turned on. When it is turned on, the printer head is moved to the left by a predetermined amount n from the right end of the detection area of the home sensor S and stopped at the home position HP (step 128), and prints. The launch positioning is completed.

なお、上記実施例では、電源投入時又はリセツ
ト時にホームセンサSがオフのとき、右側へプリ
ンタヘツドの可動範囲Lたけ移動させたが、左方
向へ可動範囲Lだけ移動させてもよい。この場合
ホームポジシヨンHPとホームセンサSとの距離
nをホームポジシヨンHPとホームセンサSの検
出領域の右端とするよりも左端とした方が便利と
なる。(右端とすれば、プリンタヘツドをホーム
センサS側へ移動させるときホームセンサがオン
し、その後オフする位置を検出しなければならな
い)このときの動作は第4図のフローチヤートに
おいて、ステツプ121,124でプリンタヘツドの移
動方向を左方向に変え、ステツプ127で左方向を
右方向に変え、ステツプ129で移動量nをホーム
ポジシヨンHPとホームセンサSの検出領域の左
端間の距離n′とすればよい。
In the above embodiment, when the home sensor S is off at power-on or reset, the printer head is moved to the right by the movable range L, but it may be moved to the left by the movable range L. In this case, it is more convenient to set the distance n between the home position HP and the home sensor S to the left end of the detection area of the home position HP and the home sensor S rather than to the right end. (If it is the right end, it is necessary to detect the position where the home sensor turns on and then turns off when moving the printer head toward the home sensor S side.) The operation at this time is shown in steps 121 and 121 in the flowchart of FIG. In step 124, the direction of movement of the printer head is changed to the left, in step 127, the left direction is changed to the right direction, and in step 129, the movement amount n is changed to the distance n' between the home position HP and the left edge of the detection area of the home sensor S. do it.

さらに、他の実施例として電源投入時又はリセ
ツト時ホームセンサSがオンか否かにかかわら
ず、プリンタヘツドを可動範囲L以上の設定値だ
け右又は左方向へ駆動し、その後ホームセンサS
の検出領域の一端を検出し、検出した該位置よ
り、ホームポジシヨンHPと上記一端間の距離n
又はn′だけホームポジシヨンHP側にプリンタヘ
ツドを移動させて印字打出し位置決めを行つても
よい。
Furthermore, as another embodiment, when the power is turned on or reset, regardless of whether the home sensor S is on or not, the printer head is driven to the right or left by a set value that is greater than or equal to the movable range L, and then the home sensor S
Detect one end of the detection area, and from the detected position, calculate the distance n between the home position HP and the above one end.
Alternatively, the printing position may be determined by moving the printer head by n' toward the home position HP.

考案の効果 以上のように、本考案はホームセンサの位置が
プリンタヘツドの可動範囲の両端を除くどの位置
にあろうとも、印字打出し位置であるホームポジ
シヨンにプリンタヘツドを位置決めすることがで
きるから、ホームセンサが取付けられた制御基板
の配置位置を特定する必要がない。そのため、プ
リンタの基盤に機械装置や制御基板を配置すると
き、各種プリンタに共通するものは共通した位置
に自由に配置することができ各種プリンタに対
し、標準化した作業工程を組むことができ、組立
て作業を容易にすることができる。
Effects of the invention As described above, the present invention allows the printer head to be positioned at the home position, which is the print ejection position, regardless of the position of the home sensor except at both ends of the printer head's movable range. Therefore, there is no need to specify the location of the control board to which the home sensor is attached. Therefore, when placing mechanical devices and control boards on the printer base, items that are common to various printers can be freely placed in common positions, and standardized work processes can be established for various printers. It can make your work easier.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本考案の一実施例の要部ブロツク図、
第2図は本考案の一実施例のプリンタヘツドの可
動範囲とホームセンサとの関係を説明する説明
図、第3図は同実施例の動作フローチヤート、第
4図は本考案の他の実施例の動作フローチヤー
ト、第5図は従来のプリンタにおけるプリンタヘ
ツドの可動範囲とホームセンサとの関係を説明す
る説明図、第6図は従来のプリンタにおける電源
投入時又はリセツト時の印字打出し位置決めのた
めの動作フローチヤートである。 L……プリンタヘツドの可動範囲、LS……左
側ストツパ、RS……右側ストツパ、S……ホー
ムセンサ、HP……ホームポジシヨン。
FIG. 1 is a block diagram of the main parts of an embodiment of the present invention.
FIG. 2 is an explanatory diagram illustrating the relationship between the movable range of the printer head and the home sensor in one embodiment of the present invention, FIG. 3 is an operation flowchart of the same embodiment, and FIG. 4 is another embodiment of the present invention. An example operation flowchart, Figure 5 is an explanatory diagram explaining the relationship between the movable range of the printer head and the home sensor in a conventional printer, and Figure 6 is the print ejection positioning when power is turned on or reset in a conventional printer. This is an operation flowchart for. L...Movable range of printer head, LS...Left side stopper, RS...Right side stopper, S...Home sensor, HP...Home position.

Claims (1)

【実用新案登録請求の範囲】[Scope of utility model registration request] 電源投入時又はリセツト時にホームセンサでプ
リンタヘツド位置を検出し、該プリンタヘツドを
ヘツド駆動手段によつて移動させて印字打出し位
置に位置決めするシリアルプリンタにおいて、上
記ホームセンサをプリンタヘツドの可動範囲の両
端以外の任意の位置に配すると共に、プリンタヘ
ツドの移動方向および上記ホームセンサからの検
出出力の立上りまたは立下りとにより予め定めら
れた上記ホームセンサの検出領域の一方の端部で
ある位置決め開始位置を検出する位置決め開始位
置検出手段と、電源投入時又はリセツト時に上記
ホームセンサがプリンタヘツドを検出していると
きはプリンタヘツドを予め定められた方向へ移動
させて位置決め開始位置検出手段で位置決め開始
位置を検出させ、電源投入時又はリセツト時に上
記ホームセンサがプリンタヘツドを検出していな
いときは上記プリンタヘツドを予め定められた方
向へ所定量移動させて上記位置決め開始位置検出
手段で位置決め開始位置を検出させ、検出されな
いときはプリンタヘツドを逆方向に移動させて上
記位置決め開始位置検出手段で位置決め開始位置
を検出させ、該位置決め開始位置からプリンタヘ
ツドを所定方向へ所定量移動させてプリンタヘツ
ドを印字打出し位置に位置決めするようにした制
御手段とを備えたことを特徴とするプリンタヘツ
ドの印字打出し位置制御装置。
In a serial printer in which the printer head position is detected by a home sensor when the power is turned on or reset, and the printer head is moved by a head drive means to position it at the print ejection position, the home sensor is used to detect the position of the printer head within the movable range of the printer head. Positioning starts at one end of the detection area of the home sensor, which is placed at any position other than both ends, and is predetermined by the moving direction of the printer head and the rise or fall of the detection output from the home sensor. A positioning start position detection means detects the position, and when the home sensor detects the printer head when the power is turned on or reset, the printer head is moved in a predetermined direction and positioning is started by the positioning start position detection means. The position is detected, and when the home sensor does not detect the printer head when the power is turned on or reset, the printer head is moved by a predetermined amount in a predetermined direction, and the positioning start position is detected by the positioning start position detection means. If the printer head is not detected, the printer head is moved in the opposite direction, the positioning start position is detected by the positioning start position detection means, and the printer head is moved from the positioning start position by a predetermined amount in a predetermined direction to print. 1. A printing embossing position control device for a printer head, comprising: a control means configured to position the printer head at an embossing position.
JP1986153657U 1986-10-08 1986-10-08 Expired - Lifetime JPH0512053Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1986153657U JPH0512053Y2 (en) 1986-10-08 1986-10-08

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1986153657U JPH0512053Y2 (en) 1986-10-08 1986-10-08

Publications (2)

Publication Number Publication Date
JPS6360647U JPS6360647U (en) 1988-04-22
JPH0512053Y2 true JPH0512053Y2 (en) 1993-03-26

Family

ID=31072731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1986153657U Expired - Lifetime JPH0512053Y2 (en) 1986-10-08 1986-10-08

Country Status (1)

Country Link
JP (1) JPH0512053Y2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58157383A (en) * 1982-03-11 1983-09-19 Hitachi Ltd Control system for dc motor
JPS6024979A (en) * 1983-07-20 1985-02-07 Oki Electric Ind Co Ltd Carriage movement controlling system for serial printer
US4541746A (en) * 1983-10-14 1985-09-17 International Business Machines Corporation Initializing apparatus for daisy wheel printer

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58157383A (en) * 1982-03-11 1983-09-19 Hitachi Ltd Control system for dc motor
JPS6024979A (en) * 1983-07-20 1985-02-07 Oki Electric Ind Co Ltd Carriage movement controlling system for serial printer
US4541746A (en) * 1983-10-14 1985-09-17 International Business Machines Corporation Initializing apparatus for daisy wheel printer

Also Published As

Publication number Publication date
JPS6360647U (en) 1988-04-22

Similar Documents

Publication Publication Date Title
US4562756A (en) Numerical control screw tightening machine
US5605407A (en) Printer and its control method
JPH0512053Y2 (en)
US5277506A (en) Printer with paper width detector
US5147143A (en) Printer carriage homing mechanism
JP2598555B2 (en) Serial printer
JPH05210470A (en) Printer and method for processing its type selection
JPH08194808A (en) Picture reader
JPS63280671A (en) Print timing control device of printer
JPS62196167A (en) Printer
JPH04237366A (en) Document editing device
JPH02243376A (en) Serial printer
JPS63134276A (en) Printer
JPH068596A (en) Printer
JP3040420B2 (en) Recording device
US5149215A (en) Carriage position error detection in a serial printer
JPH04226777A (en) Method and device for locating print head of printer through control program
JP4591646B2 (en) Printer control device
JPH0326664B2 (en)
JP2752273B2 (en) Data processing device
JPH0428552B2 (en)
JPH0263775A (en) Printer device
JPH08197894A (en) Image forming apparatus
JP2001113441A (en) Positioning processing method for shaft
JPS6070997A (en) Phase controller