JP4128901B2 - Printer device - Google Patents
Printer device Download PDFInfo
- Publication number
- JP4128901B2 JP4128901B2 JP2003124642A JP2003124642A JP4128901B2 JP 4128901 B2 JP4128901 B2 JP 4128901B2 JP 2003124642 A JP2003124642 A JP 2003124642A JP 2003124642 A JP2003124642 A JP 2003124642A JP 4128901 B2 JP4128901 B2 JP 4128901B2
- Authority
- JP
- Japan
- Prior art keywords
- paper
- print head
- sensor
- printing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Description
【0001】
【発明の属する技術分野】
本発明は、通帳や伝票等の印字に利用されるプリンタ装置の改良、特に、印字位置のズレの補正に関する。
【0002】
【従来の技術】
通帳や伝票等の印字に利用されるプリンタ装置が既に公知である。この種のプリンタ装置には、ローラやベルト等で構成される用紙送り手段や印字ヘッド、更には、用紙の位置等を検出するための各種のセンサが配備されているが、実際には、プリンタ装置を構成する各種部品の寸法誤差や形状誤差あるいは組み立て誤差等によってプリンタ装置に固有の個体差が生じるので、必ずしも、プリンタ装置に設定された初期の駆動条件によって正しい印字位置に文字や罫線等が印字されるといった保証はない。
【0003】
例えば、用紙上の行方向の印字開始位置は、一般に、用紙位置決め用センサが用紙の先端を検出してからの用紙の送り量によって規定されるが、この用紙送り量を設計値に基いて設定したとしても、プリンタ装置の各部が完全に設計値と一致していない以上、印字位置に或る程度の誤差が生じる可能性がある。
【0004】
このような問題に対処するため、従来のプリンタ装置においては、装置の出荷時に試験用の用紙に対して実際の印字動作を行なわせ、印字された文字の理想位置と実位置との偏差を測定し、この偏差が解消されるように駆動条件のパラメータ、例えば、用紙の送り量等の設定値を変更するようにしていた。
【0005】
実際には、行方向の印字開始位置のズレの他にも列方向の印字開始位置のズレや印字ヘッドの往動時/復動時のバックラッシュ補正等の問題もあり、位置ズレの補正作業は煩雑である。
【0006】
このため、位置ズレの測定やパラメータの計算、更には、適正値の設定作業を自動化したいという要求が従来からあった。
【0007】
プリンタ装置自体の用紙搬送機能やセンサによる検出機能等を利用して位置ズレの補正作業を自動化したプリンタ装置としては、特許文献1,特許文献2,特許文献3等に開示されたプリンタ装置が既に公知である。
【0008】
【特許文献1】
特開平4−355174号公報(段落番号0004,0006)
【特許文献2】
特開2001−225518号公報(段落番号0008,図2)
【特許文献3】
特開2000−158773号公報(段落番号0007,0008,図4)
【0009】
【発明が解決しようとする課題】
しかし、これらの公知文献に見られるプリンタ装置は、何れも文字の印字位置や印字位置のズレを検出するためにイメージセンサを利用した画像処理を必要とするものであり、本来は文字や図形の認識を必要としないプリンタ装置、例えば、通帳用のプリンタ装置や伝票用のプリンタ装置等に対して適用するとプリンタ装置のコストが割高となる不都合があった。
【0010】
【発明の目的】
そこで、本発明の目的は、前記従来技術の不都合を改善し、イメージセンサを備えないプリンタ装置においても、印字位置のズレの補正を自動処理によって容易に実施することのできるプリンタ装置を提供することにある。
【0011】
【課題を解決するための手段】
本発明のプリンタ装置は、用紙に送りを掛ける用紙送り手段と、用紙送り方向と交叉する方向に移動する印字ヘッドと、用紙に印刷されたバーコードを読み取る反射型のバーコードリードセンサとを備えたプリンタ装置であり、前記目的を達成するため、特に、
用紙の先端を検出する用紙位置決め用センサと、
用紙の基準送り量を記憶する用紙送り量記憶手段と、
用紙位置決め用センサの作動を検出し、用紙送り量記憶手段に記憶されている基準送り量だけ用紙送り手段を駆動してから印字ヘッドに用紙搬送誤差検出のための印字動作を行なわせる用紙搬送誤差検出用試し印刷制御手段と、
用紙搬送誤差検出用試し印刷制御手段の作動後、前記用紙送り手段を駆動して前記用紙の先端を前記バーコードリードセンサよりも手前に戻し、用紙送り手段を改めて用紙搬送方向に駆動しながら前記バーコードリードセンサからの信号を監視して用紙の先端を検知し、その後の用紙送り手段の駆動量とバーコードリードセンサからの信号とを監視して、用紙先端から用紙搬送誤差検出のための印字位置までの離間距離を求める用紙送り方向実印字距離測定手段と、
用紙送り方向実印字距離測定手段により求められた離間距離と、予め決められた用紙先端から印字位置までの理想的な離間距離との偏差を算出する用紙搬送偏差検出手段と、
用紙搬送偏差検出手段により算出された偏差に基いて用紙送り量記憶手段の基準送り量に補正を加える用紙基準送り量補正手段とを備えたことを特徴とする構成を有する。
【0012】
以上の構成において、用紙送り手段に供給された試験用の用紙の先端を用紙位置決め用センサが検出すると、まず、用紙搬送誤差検出用試し印刷制御手段が作動し、用紙送り量記憶手段に記憶された基準送り量に達するまで用紙送り手段を駆動して、印字ヘッドに用紙搬送誤差検出のための印字動作を実行させる。
次いで、用紙送り方向実印字距離測定手段が作動し、用紙送り手段を駆動しながら用紙送り手段の駆動量とバーコードリードセンサからの信号とを監視して、試験用の用紙先端から用紙搬送誤差検出のための印字位置までの離間距離を求める。
具体的には、試験用の用紙先端から用紙搬送誤差検出のための印字位置までの離間距離は、試験用の用紙がバーコードリードセンサによって検出されなくなるまで用紙送り手段を逆転駆動した後、改めて用紙送り手段を駆動してバーコードリードセンサに試験用の用紙の先端を検出させ、この検出時点から用紙送り手段の駆動量の計測処理を開始し、バーコードリードセンサが印字位置を検出した時点で計測処理を停止することによって求められる。
用紙送り手段の駆動源はステッピングモータであるから、実際には、この離間距離は、バーコードリードセンサが試験用の用紙の先端を検出してからバーコードリードセンサが印字位置を検出するまでの間にステッピングモータに入力されるパルス数によって表される。更に言えば、用紙送り量記憶手段に記憶されている基準送り量も、また、予め決められた用紙先端から印字位置までの理想的な離間距離も、実際には、用紙送り手段の駆動源であるステッピングモータに対するパルス数の値である。
次いで、用紙搬送偏差検出手段が作動し、用紙送り方向実印字距離測定手段によって求められた離間距離と、予め決められた用紙先端から印字位置までの理想的な離間距離との偏差を算出する。この偏差が用紙搬送方向の位置ズレの量に相当するパルス数の値である。
そして、最終的に、用紙基準送り量補正手段が作動して、用紙搬送偏差検出手段が求めた偏差に基いて、用紙送り量記憶手段の基準送り量に補正を加える。
最も簡単な補正は、用紙送り量記憶手段に記憶されている基準送り量の値を書き替えて更新してしまうことであるが、用紙送り量記憶手段に記憶されている基準送り量の値を初期値のままに保持して用紙搬送偏差検出手段が求めた偏差を別に記憶し、次回以降の用紙送り手段の駆動制御の前処理の段階で、その都度、初期値と偏差とに基いて適切な基準送り量を求めるようにしても構わない。
このように、バーコードを読み取る反射型のバーコードリードセンサと用紙送り手段とを併用した処理により用紙送り量記憶手段の基準送り量を補正して用紙搬送方向の印字位置のズレを解消することができるので、イメージセンサを備えていない通帳用のプリンタ装置や伝票用のプリンタ装置等においても、印字位置のズレの補正を自動処理によって容易に実施することができる。
【0013】
また、前記構成に加え、印字ヘッドの基準位置を検出するホームポジションセンサと、
印字ヘッドの基準移動量を記憶するヘッド移動量記憶手段と、
ホームポジションセンサの作動を検出し、ヘッド移動量記憶手段に記憶されている基準移動量だけ印字ヘッドを移動してから印字ヘッドに印字ヘッド移動誤差検出のための印字動作を行なわせるヘッド移動誤差検出用試し印刷制御手段と、
ヘッド移動誤差検出用試し印刷制御手段の作動後、前記バーコードリードセンサを移動させて前記用紙の一側端の外側へ前記バーコードリードセンサを移動させ、バーコードリードセンサを改めて前記ホームポジションセンサに向けて移動させながら前記バーコードリードセンサからの信号を監視して前記用紙の一側端を検知し、その後のバーコードリードセンサの移動量とバーコードリードセンサからの信号とを監視して、用紙の一側端から印字ヘッド移動誤差検出のための印字位置までの離間距離を求めるヘッド移動方向実印字距離測定手段と、
ヘッド移動方向実印字距離測定手段により求められた離間距離と、予め決められた前記一側端から印字位置までの理想的な離間距離との偏差を算出するヘッド移動偏差検出手段と、
ヘッド移動偏差検出手段により算出された偏差に基いてヘッド移動量記憶手段の基準移動量に補正を加えるヘッド基準移動量補正手段とを併設するようにしてもよい。
【0014】
この構成は、印字ヘッド移動方向の印字位置のズレを解消するためのもので、その作用原理に関しては、位置ズレ量の検出方向が異なる点を除き、前記と同様である。
つまり、ホームポジションセンサが印字ヘッドの基準位置を検出してから、ヘッド移動量記憶手段に記憶された基準移動量の分だけ印字ヘッドを移動させて試験用の用紙に印字ヘッド移動誤差検出のための印字動作を行なわせた後、バーコードリードセンサを移動しながらバーコードリードセンサの移動量と前記バーコードリードセンサからの信号とを監視して、用紙の一側端から印字ヘッド移動誤差検出のための印字位置までの離間距離を求め、この離間距離と予め決められた前記一側端から印字位置までの理想的な離間距離との偏差を算出し、この偏差に基いてヘッド移動量記憶手段の基準移動量を補正することによって印字ヘッド移動方向の印字位置のズレを解消するものである。
これにより、イメージセンサを備えていない通帳用のプリンタ装置や伝票用のプリンタ装置等においても、印字ヘッド移動方向に対する印字位置のズレの補正を自動処理によって容易に実施することができるようになった。
【0015】
更に、用紙の一側端から予め記憶された目標位置に向けて印字ヘッドを移動させて印字ヘッドにバックラッシュ検出のための第1回目の印字動作を行なわせた後、前記用紙送り手段の停止状態を保持したまま用紙の他側端から前記予め記憶された目標位置に向けて印字ヘッドを移動させて印字ヘッドにバックラッシュ検出のための第2回目の印字動作を行なわせるバックラッシュ検出用試し印刷制御手段と、
バックラッシュ検出用試し印刷制御手段の作動後、前記用紙送り手段の停止状態を保持したままバーコードリードセンサを移動しながらバーコードリードセンサの移動量とバーコードリードセンサからの信号とを監視して、バックラッシュ検出のための第1回目の印字位置とバックラッシュ検出のための第2回目の印字との離間距離を求めるバックラッシュ検出手段と、
バックラッシュ検出手段によって求められた離間距離をバックラッシュ補正値として記憶するバックラッシュ補正値記憶手段とを併設することができる。
【0016】
以上の構成によれば、まず、試験用の用紙の一側端から予め記憶された目標位置に向けて印字ヘッドを移動させる間に印字ヘッドの動力伝達系のバックラッシュが解消され、この状態で試験用の用紙に対する第1回目の印字動作が行なわれる。
その後、バックラッシュが解消されたままの状態で、第1回目の印字位置から試験用の用紙の他側端まで印字ヘッドが送られる。
次に、前記と同様の目標位置に向けて印字ヘッドを移動させるために印字ヘッドの移動方向が切り替えられるが、動力伝達系にバックラッシュが存在するため、印字ヘッドの駆動源であるステッピングモータの回転方向を逆転しても印字ヘッド自体の移動が直ちに開始されるわけではない。
そして、駆動源であるステッピングモータの逆転によって動力伝達系のバックラッシュが解消された時点で、印字ヘッドが前述の目標位置に向けて移動を開始する。
次いで、印字ヘッドが目標位置に達すると試験用の用紙に対する第2回目の印字動作が行なわれる。しかし、印字ヘッドの移動制御はクローズドループで行なわれているわけではなく、駆動源であるステッピングモータに対するオープンループ制御で行なわれている。従って、ステッピングモータが指令値相当分だけ回転しても、実際には、印字ヘッドは目標位置には到達せず、前述のバックラッシュに相当する分だけ、試験用の用紙の前記他側端に寄った位置で停止し、この位置で第2回目の印字動作が行なわれることになる。
つまり、第1回目の印字位置と第2回目の印字位置との間に生じる位置ズレは動力伝達系のバックラッシュに相当する位置ズレであるから、第1回目の印字位置と第2回目の印字との離間距離、具体的には、この離間距離に対応するステッピングモータの回転量に相当するパルスの値をバックラッシュ補正値記憶手段に補正値として記憶しておくことで、印字ヘッドの移動方向に応じたバックラッシュ補正が可能である。
例えば、用紙の前記一側端から用紙の内部に印字ヘッドを移動させたときに印字ヘッドが適切に目標位置に到達するような調整を行った場合では、用紙の前記一側端から用紙の内部に印字ヘッドを移動させる際の補正量は零、また、用紙の前記他側端から用紙の内部に印字ヘッドを移動させる際にはインクリメンタルな移動指令に対して前述のバックラッシュ補正値を加算するようにする。
【0017】
また、バーコードリードセンサは、印字ヘッドに装着されたプロテクタに配備して印字ヘッドと共に移動させることが望ましい。
【0018】
通常のイメージセンサは、その規模からいって用紙の搬送路中に設置する必要があるが、小規模なバーコードリードセンサは、印字ヘッドに装着されたプロテクタに組み込むことが可能である。
既に述べた通り、印字ヘッド移動方向の位置ズレや印字ヘッドのバックラッシュを解消するための処理を行うためには、バーコードリードセンサを移動させながら信号を監視する必要があるが、バーコードリードセンサを印字ヘッドのプロテクタに組み込むことで両者を一体に移動させることが可能となり、バーコードリードセンサ専用の駆動手段が不要となるので、プリンタ装置の製造コストや故障因子の低減化に役立つ。
【0019】
また、用紙搬送誤差検出用試し印刷制御手段は、用紙搬送誤差検出のための印字動作に際して横罫線を印字させる構成とし、ヘッド移動誤差検出用試し印刷制御手段は、印字ヘッド移動誤差検出のための印字動作に際して縦罫線を印字させるように構成するとよい。
【0020】
このような構成を適用すれば、印字位置を表す罫線の法線方向に沿って接離する方向でバーコードリードセンサが移動しながら印字位置を検出することになる。この走査方向は、バーコードリードセンサがバーコードを読み取る際の走査方向と同一であり、高い検出精度を確保することができる。
【0021】
更に、用紙の種別に応じた複数の用紙挿入口を用紙送り手段に配備し、用紙の種別毎の基準送り量を用紙送り量記憶手段に記憶させるように構成することも可能である。
【0022】
用紙の種別と基準送り量との対応関係が一義的に特定されるため、用紙表面の摩擦の大小や厚み等の相違等に応じた適切な用紙送りが可能となり、用紙送り方向の印字位置のズレを的確に解消することができる。(同一の用紙送り手段を利用しても用紙表面の摩擦の大小や厚み等の相違が位置ズレに影響を与える場合があるため。)
【0023】
【発明の実施の形態】
以下、図面を参照して本発明の実施形態について詳細に説明する。図1は本発明を適用した一実施形態のプリンタ装置1の機械的な構成の概略を示した模式図、また、図2は同実施形態のプリンタ装置1の制御系の要部を簡略化して示した機能ブロック図である。
【0024】
プリンタ装置1は、図1に示されるように、フィードローラ2〜6とピンチローラ7〜11とによって構成される用紙送り手段12を備える。
このうち、フィードローラ2〜5とピンチローラ7〜10は、第一の用紙搬送路13に沿って配備され、通帳用の用紙挿入口14から挿入された通帳(用紙)に矢印a方向の送りを掛ける。
また、フィードローラ6とピンチローラ11は、第一の用紙搬送路13と交叉して設けられた第二の用紙搬送路15に沿って配備され、伝票用の用紙挿入口16から挿入された伝票(用紙)に矢印a方向の送りを掛ける。
フィードローラ2〜6の駆動源は、図2に示されるステッピングモータM1によって構成され、ステッピングモータM1の作動により、フィードローラ2〜6が一斉に同方向に回転駆動されるようになっている。
【0025】
そして、第一の用紙搬送路13と第二の用紙搬送路15とが交叉する部分には、経路切替片17が揺動自在に取り付けられている。経路切替片17の駆動源は図2に示されるロータリーソレノイドSOLによって構成される。図1では、ロータリーソレノイドSOLを非励磁状態として経路切替片17で第二の用紙搬送路15を閉鎖したときの状態、つまり、第一の用紙搬送路13を使用する際の状態について示しているが、ロータリーソレノイドSOLを励磁状態として経路切替片17を図1中の時計方向に揺動させれば、第一の用紙搬送路13を閉鎖して第二の用紙搬送路15を使用状態とすることができる。
【0026】
通帳用の用紙挿入口14の入口には、通帳の挿入を検知するための用紙検出センサS1が設けられ、伝票用の用紙挿入口16の入口には、伝票の挿入を検知するための用紙検出センサS2が設けられている。
【0027】
印字ヘッド18は、用紙搬送方向の下流側に位置するフィードローラ4とフィードローラ5との間に配備され、用紙送り方向と交叉する方向、つまり、図1において紙面と直交する方向に移動するようになっている。印字ヘッド18を移動させるための駆動源は、図2に示されるステッピングモータM2によって構成され、印字ヘッド18は、図示しないリードネジ&ナット式の送り機構、あるいは、タイミングベルト&プーリー式の送り機構等からなる動力伝達系を介して、ステッピングモータM2によって駆動される。
但し、動力伝達系に配備された歯車列の噛合状態、更には、リードネジとナットとの間の螺合状態等には或る程度のバックラッシュがある。
【0028】
用紙に印刷されたバーコードを読み取る反射型のバーコードリードセンサS4は、印字ヘッド18の先端外周部をカバーするプロテクタ19に一体的に埋め込まれるようにして配備され、印字ヘッド18と共に、図1の紙面と直交する方向に移動する。
【0029】
通帳20に印刷されたバーコード21の一例と、このバーコード21を読み取った際にバーコードリードセンサS4が出力する信号との対応関係の一例を図3に示す。
【0030】
バーコードリードセンサS4は、発光部と受光部とを備えた反射型のセンサである。バーコード21が印刷された部分では通帳20の表面が黒色であるために反射光の輝度は低く、従って、バーコードリードセンサS4から出力される信号のレベルはLoとなる。また、バーコード21の各バーの間、あるいは、通帳20の他部では通帳20の表面が明色であるため、反射光の輝度は高く、バーコードリードセンサS4から出力される信号のレベルはHiとなる。
但し、通帳20上の印字位置では通帳20の表面が黒色であるから出力信号のレベルはLoとなり、また、バーコードリードセンサS4が通帳20を全く検出していない状態、つまり、バーコードリードセンサS4によって第一の用紙搬送路13の壁面が検出されている場合にも、発光部から出力される光線の光路の傾きや壁面自体の色の関係等から、バーコードリードセンサS4から出力される信号のレベルはLoとなる。
【0031】
図3においては、矢印aの方向が用紙搬送方向であり、矢印bの方向が印字ヘッド18の移動方向である。また、印字ヘッド18の基準位置を検出するホームポジションセンサS5は、第一の用紙搬送路13における幅方向の端部、つまり、印字ヘッド18のストロークエンドに配備されている。
【0032】
図1に示される通り、用紙の先端を検出するための用紙位置決め用センサS3は、用紙搬送方向において印字ヘッド18よりも僅かに上流側の位置に設置されている。
【0033】
なお、図1中の符号22は、印字ヘッド18に対向して配備されたプラテン、また、符号S6は、通帳20に貼着された磁気テープからデータを読み取るための磁気ヘッドである。
【0034】
図2に示される通り、プリンタ装置1の制御系の要部は、このプリンタ装置1を全体的に駆動制御するためのCPU23と、CPU23の駆動制御プログラム等を記憶したROM24、および、演算データや印字データ等の一時記憶に利用されるRAM25と、プリンタ装置1の駆動制御に必要とされるパラメータ等を記憶する不揮発性メモリ26によって構成される。
【0035】
パラメータを記憶する不揮発性メモリ26は、用紙送り量記憶手段,ヘッド移動量記憶手段,バックラッシュ補正値記憶手段としても機能する。
【0036】
また、CPU23と其の駆動制御プログラムは、用紙搬送誤差検出用試し印刷制御手段,用紙送り方向実印字距離測定手段,用紙搬送偏差検出手段,用紙基準送り量補正手段,ヘッド移動誤差検出用試し印刷制御手段,ヘッド移動方向実印字距離測定手段,ヘッド移動偏差検出手段,ヘッド基準移動量補正手段,バックラッシュ検出用試し印刷制御手段,バックラッシュ検出手段の機能実現手段として機能する。
【0037】
インターフェイス27は、プリンタ装置1とホストコンピュータ(図示せず)との間でのデータの入出力等に利用される。
【0038】
用紙送り手段12の駆動源として機能するステッピングモータM1,印字ヘッド18を移動させるための駆動源として機能するステッピングモータM2,経路切替片17の駆動源として機能するロータリーソレノイドSOL,印字ヘッド18の印字機構は、各々のドライバと入出力回路28を介してCPU23によって駆動制御される。
【0039】
また、用紙検出センサS1,用紙検出センサS2,用紙位置決め用センサS3,バーコードリードセンサS4,ホームポジションセンサS5,磁気ヘッドS6からの信号は、各々のA/D変換器と入出力回路28を介してCPU23によって読み込まれる。
【0040】
次に、プリンタ装置1の出荷時にCPU23によって実行されるキャリブレーション処理の概略を示した図4〜図9のフローチャートと図10および図11の作用原理図を参照して、用紙の基準送り量の調整と印字ヘッド18の基準移動量の調整およびバックラッシュ補正について具体的に説明する。
【0041】
キャリブレーション処理を開始したCPU23は、まず、用紙検出センサS1あるいは用紙検出センサS2がONとなっているか否かを判定し(ステップA1,A2)、何れのセンサもOFFであれば、このままステップA1,A2の判定処理のみを繰り返し実行して、オペレータによる試験用の用紙の挿入を待機する。
【0042】
ここで、用紙検出センサS1がONとなって用紙の挿入が検知された場合には、通帳用の用紙挿入口14から試験用の通帳が挿入されたことを意味するので、CPU23は、用紙特定指標iに通帳の挿入を示す値1をセットする(ステップA3)。この場合はロータリーソレノイドSOLが非励磁の状態に保持されるので、経路切替片17が図1に示されるようにして第二の用紙搬送路15を閉鎖し、第一の用紙搬送路13が使用すべき用紙搬送路として選択される。
【0043】
一方、用紙検出センサS2がONとなって用紙の挿入が検知された場合には、伝票用の用紙挿入口16から試験用の伝票が挿入されたことを意味するので、CPU23は、用紙特定指標iに伝票の挿入を示す値2をセットして(ステップA4)、ロータリーソレノイドSOLを励磁する(ステップA5)。この場合は、ロータリーソレノイドSOLの励磁によって経路切替片17が図1中の時計方向に揺動されて第一の用紙搬送路13を閉鎖するので、第二の用紙搬送路15が使用すべき用紙搬送路として選択されることになる。
【0044】
このようにして用紙挿入口14あるいは用紙挿入口16に試験用の用紙が挿入されたことが検知されると、CPU23は、ステッピングモータM1に対するパルスの出力処理を開始し、フィードローラ2〜6を図1中の反時計方向に回転させて用紙送り手段12による用紙の搬送を始める(ステップA6)。
【0045】
次いで、CPU23は、用紙位置決め用センサS3がONとなっているか否か、つまり、用紙の先端が用紙位置決め用センサS3の位置に到達しているか否かを判定するが(ステップA7)、用紙の先端が用紙位置決め用センサS3の位置に到達していなければ、ステップA7の判定処理を繰り返し実行して、用紙の先端が用紙位置決め用センサS3の位置に到達するのを待機する。
【0046】
そして、用紙の先端が用紙位置決め用センサS3の位置に到達すると、用紙搬送誤差検出用試し印刷制御手段として機能するCPU23がステップA7の判定処理でこれを検出し、カウンタCの値を零にリセットする(ステップA8)。
【0047】
次いで、用紙搬送誤差検出用試し印刷制御手段として機能するCPU23は、ステッピングモータM1に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA9,A10)、カウンタCの現在値が、用紙送り量記憶手段としての不揮発性メモリ26に記憶されている用紙の基準送り量Yiに達しているか否かを判定する(ステップA11)。
【0048】
但し、用紙の基準送り量Yiは長さを単位とした値ではなく、用紙位置決め用センサS3が用紙の先端を検出してから用紙が理想的な印字位置に到達するまでの間にステッピングモータM1に入力されるパルスの設計上の理論値である。しかし、実際には、プリンタ装置1の各部に個体差があるので、設計上の理論値に匹敵するパルスをステッピングモータM1に入力したとしても、用紙が理想的な印字位置に到達する保証はない。
【0049】
用紙の基準送り量Yiは用紙特定指標iの値によって特定される値であり、用紙送り量記憶手段としての不揮発性メモリ26には、通帳に対して適用すべき用紙の基準送り量Y1と、伝票に対して適用すべき用紙の基準送り量Y2とが記憶されている。つまり、この実施形態の用紙送り量記憶手段は、用紙の種別毎の基準送り量を記憶した用紙送り量記憶手段である。ステップA11の判定処理では、用紙特定指標iの現在値に基いて、基準送り量Y1(i=1)あるいは基準送り量Y2(i=2)の何れか一方が選択的に読み込まれる。
【0050】
そして、カウンタCの現在値が用紙の基準送り量Yiに達すると、用紙搬送誤差検出用試し印刷制御手段として機能するCPU23がステップA11の判定処理でこれを検出し、ステッピングモータM1に対するパルスの出力処理を一時的に停止し、フィードローラ2〜6の回転を一時停止して用紙送り手段12による用紙の搬送を停止する(ステップA12)。
【0051】
次いで、用紙搬送誤差検出用試し印刷制御手段として機能するCPU23は、印字ヘッド18の印字機構、および、印字ヘッド18を移動させるステッピングモータM2を駆動して、試験用の用紙に、用紙搬送誤差検出のための横罫線を印字させる(ステップA13)。つまり、この実施形態の用紙搬送誤差検出用試し印刷制御手段は、用紙搬送誤差検出のための印字動作に際して横罫線を印字させる用紙搬送誤差検出用試し印刷制御手段である。
【0052】
試験用の用紙20’に横罫線Yを印字したときの状態を図10の作用原理図に示す。既に述べた通り、プリンタ装置1の各部には個体差があるので、設計上の理論値に匹敵するパルス数YiをステッピングモータM1に入力したとしても、用紙が理想的な印字位置に到達するといった保証はなく、この例では、試験用の用紙20’に対する送りが不足気味となって理想的な横罫線の印字位置Y’よりも用紙20’の先端よりの位置に横罫線Yが印字されてしまっている。
【0053】
次いで、CPU23は、ステッピングモータM1に対するパルスの出力処理を開始し、フィードローラ2〜6を図1中の時計方向に回転させて用紙送り手段12による用紙の逆搬送を開始する(ステップA14)。
【0054】
そして、CPU23は、バーコードリードセンサS4からの信号がLoとなっているか否か、つまり、用紙20’の先端がバーコードリードセンサS4よりも手前に戻されているか否かを判定し(ステップA15)、用紙20’の先端がバーコードリードセンサS4よりも手前に戻るまで待機する。
【0055】
次いで、バーコードリードセンサS4からの信号がLoに転じ、用紙20’の先端がバーコードリードセンサS4よりも手前に戻されたことがステップA15の判定処理で確認されると、CPU23は、再び、フィードローラ2〜6を図1中の反時計方向に回転させて用紙送り手段12による用紙の搬送を開始する(ステップA16)。
【0056】
そして、CPU23は、バーコードリードセンサS4からの信号がHiとなっているか否か、つまり、用紙20’の先端がバーコードリードセンサS4の位置まで戻されたか否かを判定し(ステップA17)、用紙20’の先端がバーコードリードセンサS4によって検出されるまで待機する。
【0057】
次いで、バーコードリードセンサS4からの信号がLoからHiに転じ、用紙20’の先端が再びバーコードリードセンサS4によって検出されたことがステップA17の判定処理で確認されると、用紙送り方向実印字距離測定手段として機能するCPU23は、カウンタCの値を零にリセットする(ステップA18)。
【0058】
そして、用紙送り方向実印字距離測定手段として機能するCPU23は、ステッピングモータM1に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA19,A20)、バーコードリードセンサS4からの信号がHiからLoに転じているか否か、つまり、用紙20’上に印字された横罫線YがバーコードリードセンサS4の位置に到達しているか否かを判定し(ステップA21)、横罫線YがバーコードリードセンサS4の位置に到達するまでの間、ステップA19〜A21の処理を繰り返し実行して待機する。
【0059】
このような処理が繰り返し実行される間に、ステップA21の判定処理において、バーコードリードセンサS4からの信号がHiからLoに転じたことが確認されると、CPU23は、ステッピングモータM1に対するパルスの出力処理を停止し、フィードローラ2〜6の回転を一時停止して用紙送り手段12による用紙の搬送を停止する(ステップA22)。
【0060】
この時点でカウンタCに記憶されているパルス数の値は、用紙20’の先端から用紙搬送誤差検出のための横罫線Yの印字位置までの離間距離に相当するパルス数の値である。
【0061】
つまり、この実施形態では、用紙送り方向実印字距離測定手段として機能するCPU23の処理によって、用紙20’の先端を一旦バーコードリードセンサS4の手前まで戻し、改めて用紙20’に送りを掛けてバーコードリードセンサS4に用紙20’の先端を検出させると同時にカウンタCの値をリセットし、用紙送り手段12の駆動量に相当するステッピングモータM1へのパルスの出力数をカウンタCによって計数し、バーコードリードセンサS4が横罫線Yを検出した時点でカウンタCによる計数を停止させることで、用紙20’の先端から用紙搬送誤差検出のための横罫線Yの印字位置までの離間距離を求めている。この際、バーコードリードセンサS4は、用紙搬送誤差検出のための横罫線Yの法線方向、つまり、用紙搬送方向に沿って相対移動するかたちで横罫線Yの有無を検知するので、通常のバーコードを読み取る場合と同程度の高い検出精度で横罫線Yを認識することができる。このようにして求められた用紙20’の先端から横罫線Yまでの離間距離を図10中にCとして示す。
【0062】
次いで、用紙搬送偏差検出手段として機能するCPU23が、予め決められた用紙20’の先端から横罫線Y’までの理想的な離間距離に相当する理想パルス数(不揮発性メモリ26内に記憶)と離間距離Cとの偏差を求め、この値を補正値ΔYiとして記憶する(ステップA23)。この補正値を図10中にΔYiとして示す。
【0063】
また、用紙基準送り量補正手段として機能するCPU23は、用紙送り量記憶手段としての不揮発性メモリ26に記憶されている用紙の基準送り量Yiを読み込み、この値に補正値ΔYiを加算して適正な用紙の基準送り量Yiを求め、補正された用紙の基準送り量Yiの値を用紙送り量記憶手段としての不揮発性メモリ26に上書きして更新記憶させる(ステップA24)。
【0064】
このようにして、用紙の基準送り量Yiの値それ自体が書き替えられる結果、装置出荷後の通常の使用時においては、図10に示される基準送り量Yi(補正前の値)に補正値ΔYiを加算した基準送り量Yi(補正後の値)に基いてステッピングモータM1が駆動制御されることになるので、図10に示される用紙搬送方向の印字位置のズレΔYiが解消され、理想的な印字位置Y’の位置に適切な印字を行なうことが可能となる。
【0065】
無論、用紙の基準送り量Yiの値それ自体を必ずしも書き替える必要はなく、基準送り量Yi(補正前の値)を用紙送り量記憶手段としての不揮発性メモリ26にそのまま保持し、補正値ΔYiの値を不揮発性メモリ26に別途記憶し、装置出荷後の通常の使用時において、印字動作の前処理として、その都度、ステップA24と同様の処理を実行するようにしても構わない。プリンタ装置1の構造上の問題等により比較的頻繁にキャリブレーションを実施する必要があるような場合では、用紙の基準送り量Yiの初期値を保存しておいた方が便利であろう。
【0066】
次いで、CPU23は、ステッピングモータM2に対するパルスの出力処理を実行し、印字ヘッド18を用紙搬送方向と直交する方向に移動させ、一旦、印字ヘッド18をホームポジションセンサS5に位置決めする(ステップA25)。
【0067】
印字ヘッド18の位置決めが完了したことがホームポジションセンサS5によって確認されると、ヘッド移動誤差検出用試し印刷制御手段として機能するCPU23は、カウンタCの値を零にリセットし(ステップA26)、ステッピングモータM2に対するパルスの出力処理を開始し、ホームポジションセンサS5から離間する方向、つまり、用紙20’の内部に向かう方向への印字ヘッド18の送りを開始する(ステップA27)。
【0068】
そして、ヘッド移動誤差検出用試し印刷制御手段として機能するCPU23は、ステッピングモータM2に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA28,A29)、カウンタCの現在値が、ヘッド移動量記憶手段としての不揮発性メモリ26に記憶されている印字ヘッドの基準移動量Xiに達しているか否かを判定する(ステップA30)。
【0069】
前記と同様、印字ヘッドの基準移動量Xiは長さを単位とした値ではなく、ホームポジションセンサS5が印字ヘッド18のホームポジション復帰を検出してから印字ヘッド18が理想的な印字位置に到達するまでの間にステッピングモータM2に入力されるパルスの設計上の理論値である。しかし、実際には、プリンタ装置1の各部に個体差があるので、設計上の理論値に匹敵するパルスをステッピングモータM2に入力したとしても、印字ヘッド18が理想的な印字位置に到達する保証はない。
【0070】
印字ヘッドの基準移動量Xiは用紙特定指標iの値によって特定される値であり、ヘッド移動量記憶手段としての不揮発性メモリ26には、通帳に対して適用すべき印字ヘッドの基準移動量X1と、伝票に対して適用すべき印字ヘッドの基準移動量X2とが記憶されている。ステップA30の判定処理では、用紙特定指標iの現在値に基いて、基準移動量X1(i=1)あるいは基準移動量X2(i=2)の何れか一方が選択的に読み込まれる。
【0071】
そして、カウンタCの現在値が印字ヘッドの基準移動量Xiに達すると、ヘッド移動誤差検出用試し印刷制御手段として機能するCPU23がステップA30の判定処理でこれを検出し、ステッピングモータM2に対するパルスの出力処理を一時的に停止し、印字ヘッド18の移動を一時停止させる(ステップA31)。
【0072】
次いで、ヘッド移動誤差検出用試し印刷制御手段として機能するCPU23は、印字ヘッド18の印字機構、および、用紙送り手段12を駆動するステッピングモータM1を駆動して、試験用の用紙に、印字ヘッド移動誤差検出のための縦罫線を印字させる(ステップA32)。つまり、この実施形態のヘッド移動誤差検出用試し印刷制御手段は、ヘッド移動誤差検出検出のための印字動作に際して縦罫線を印字させるヘッド移動誤差検出用試し印刷制御手段である。
【0073】
試験用の用紙20’に縦罫線Xを印字したときの状態を図11の作用原理図に示す。既に述べた通り、プリンタ装置1の各部には個体差があるので、設計上の理論値に匹敵するパルス数XiをステッピングモータM2に入力したとしても、印字ヘッド18が理想的な印字位置に到達するといった保証はなく、この例では、ホームポジションを基準とした印字ヘッド18に対する送りが過剰気味となって、理想的な縦罫線の印字位置X’よりも用紙20’の一側端よりの位置に縦罫線Xが印字されてしまっている。
【0074】
次いで、CPU23は、ステッピングモータM2に対するパルスの出力処理を開始し、印字ヘッド18に対してバーコードリードセンサS4を用紙20’の一側端から外側へと移動させる方向の送りを開始する(ステップA33)。
【0075】
そして、CPU23は、バーコードリードセンサS4からの信号がLoとなっているか否か、つまり、印字ヘッド18のプロテクタ19に配備されたバーコードリードセンサS4が用紙20’の一側端よりも外側に送られているか否かを判定し(ステップA34)、バーコードリードセンサS4が用紙20’の一側端よりも外側に送られるまで待機する。
【0076】
次いで、バーコードリードセンサS4からの信号がLoに転じ、バーコードリードセンサS4が用紙20’の一側端よりも外側に送られたことがステップA34の判定処理で確認されると、CPU23は、再び、印字ヘッド18に対してホームポジションセンサS5に接近する方向の送りを掛ける(ステップA35)。
【0077】
そして、CPU23は、バーコードリードセンサS4からの信号がHiとなっているか否か、つまり、バーコードリードセンサS4が用紙20’の外側の領域から用紙20’の一側端に到達したか否かを判定し(ステップA36)、バーコードリードセンサS4が用紙20’の一側端に到達するまでステッピングモータM2にパルスを出力する。
【0078】
次いで、バーコードリードセンサS4からの信号がLoからHiに転じ、バーコードリードセンサS4が用紙20’の一側端に外側から到達したことがステップA36の判定処理で確認されると、ヘッド移動方向実印字距離測定手段として機能するCPU23は、カウンタCの値を零にリセットする(ステップA37)。
【0079】
そして、ヘッド移動方向実印字距離測定手段として機能するCPU23は、ステッピングモータM2に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA38,A39)、バーコードリードセンサS4からの信号がHiからLoに転じているか否か、つまり、バーコードリードセンサS4が用紙20’上に印字された縦罫線Xの位置に到達しているか否かを判定し(ステップA40)、バーコードリードセンサS4が縦罫線Xの位置に到達するまでの間、ステップA38〜A40の処理を繰り返し実行して待機する。
【0080】
このような処理が繰り返し実行される間に、ステップA40の判定処理において、バーコードリードセンサS4からの信号がHiからLoに転じたことが確認されると、CPU23は、ステッピングモータM2に対するパルスの出力処理を一時的に停止し、印字ヘッド18即ちバーコードリードセンサS4に対する送りを停止する(ステップA41)。
【0081】
この時点でカウンタCに記憶されているパルス数の値は、用紙20’の一側端からヘッド移動誤差検出検出のための縦罫線Xの印字位置までの離間距離に相当するパルス数の値である。
【0082】
つまり、この実施形態では、ヘッド移動方向実印字距離測定手段として機能するCPU23の処理によって、バーコードリードセンサS4を一旦用紙20’の一側端よりも外側に移動させ、改めて印字ヘッド18に送りを掛けてバーコードリードセンサS4に用紙20’の一側端を検出させると同時にカウンタCの値をリセットし、バーコードリードセンサS4の移動量に相当するステッピングモータM2へのパルスの出力数をカウンタCによって計数し、バーコードリードセンサS4が縦罫線Xを検出した時点でカウンタCによる計数を停止させることで、用紙20’の一側端からヘッド移動誤差検出検出のための縦罫線Xの印字位置までの離間距離を求めている。この際、バーコードリードセンサS4は、ヘッド移動誤差検出検出のための縦罫線Xの法線方向、つまり、印字ヘッド18の送り方向に沿って相対移動するかたちで縦罫線Xの有無を検知するので、通常のバーコードを読み取る場合と同程度の高い検出精度で縦罫線Xを認識することができる。また、バーコードリードセンサS4は印字ヘッド18のプロテクタ19に一体的に装着されているので、バーコードリードセンサS4を移動させるための格別の装備は不要であり、印字ヘッド18に送りを掛ければ、バーコードリードセンサS4を移動させることができる。このようにして求められた用紙20’の一側端からヘッド移動誤差検出検出のための縦罫線Xの印字位置までの離間距離を図11中にCとして示す。
【0083】
次いで、ヘッド移動偏差検出手段として機能するCPU23が、予め決められた用紙20’の一側端から縦罫線X’までの理想的な離間距離に相当する理想パルス数(不揮発性メモリ26内に記憶)と離間距離Cとの偏差を求め、この値を補正値ΔXiとして記憶する(ステップA42)。この補正値を図11中にΔXiとして示す。
【0084】
また、ヘッド基準移動量補正手段として機能するCPU23は、ヘッド移動量記憶手段としての不揮発性メモリ26に記憶されている印字ヘッドの基準移動量Xiを読み込み、この値から補正値ΔXiを減算して適正な印字ヘッドの基準移動量Xiを求め、補正された印字ヘッドの基準移動量Xiの値をヘッド移動量記憶手段としての不揮発性メモリ26に上書きして更新記憶させる(ステップA43)。
【0085】
このようにして印字ヘッドの基準移動量Xiの値それ自体が書き替えられる結果、装置出荷後の通常の使用時においては、図11に示される基準移動量Xi(補正前の値)から補正値ΔXiを減算した基準移動量Xi(補正後の値)に基いてステッピングモータM2が駆動制御されることになるので、図11に示される印字ヘッド移動方向の印字位置のズレΔXiが解消され、理想的な印字位置X’の位置に適切な印字を行なうことが可能となる。
【0086】
前記と同様、印字ヘッドの基準移動量Xiの値それ自体を必ずしも書き替える必要はなく、基準移動量Xi(補正前の値)をヘッド移動量記憶手段としての不揮発性メモリ26にそのまま保持し、補正値ΔXiの値を不揮発性メモリ26に別途記憶し、装置出荷後の通常の使用時において、印字動作の前処理として、その都度、ステップA43と同様の処理を実行するようにしても構わない。
【0087】
次いで、CPU23は、印字ヘッド18を用紙20’の一側端、例えば、ホームポジションセンサS5側に移動させて停止させる(ステップA44)。
【0088】
そして、バックラッシュ検出用試し印刷制御手段として機能するCPU23が、ステッピングモータM2を駆動し、改めて印字ヘッド18にホームポジションセンサS5から離間する方向の送りを掛けて、印字ヘッド18を予め決められた任意の目標位置、例えば、用紙20’の中央部に位置決めし(ステップA45,A46)、印字ヘッド18の印字機構、および、用紙送り手段12を駆動するステッピングモータM1を駆動して、試験用の用紙20’に、バックラッシュ検出のための第1回目の縦罫線の印字を実行させる(ステップA47)。
【0089】
印字ヘッド18がホームポジションセンサS5側のストロークエンドから用紙20’の中央部に移動するまでの間に印字ヘッド18を駆動する動力伝達系のバックラッシュ、つまり、ステッピングモータM2から印字ヘッド18に至る動力伝達系のバックラッシュが解消され、この状態で試験用の用紙20’に対する第1回目の印字動作が行なわれることになる。
【0090】
次いで、バックラッシュ検出用試し印刷制御手段として機能するCPU23は、印字ヘッド18を用紙20’の他側端つまりホームポジションセンサS5と逆側のストロークエンドに移動させた後(ステップA48)、ステッピングモータM2を駆動し、改めて印字ヘッド18にホームポジションセンサS5に接近する方向の送りを掛けて、印字ヘッド18を前記と同様の目標位置、例えば、用紙20’の中央部に位置決めし(ステップA49,A50)、印字ヘッド18の印字機構、および、用紙送り手段12を駆動するステッピングモータM1を駆動して、試験用の用紙20’に、バックラッシュ検出のための第2回目の縦罫線の印字を実行させる(ステップA51)。
【0091】
印字ヘッド18を用紙20’の他側端に移動させてから移動方向を反転する際には、ステッピングモータM2の回転方向の反転によって動力伝達系のバックラッシュが表面化する。従って、ステッピングモータM2の回転方向を反転しても印字ヘッド18は直ちには移動を開始せず、印字ヘッド18の移動が停止したままステッピングモータM2および動力伝達系の一部のみが駆動される状態が瞬間的に発生する。そして、ステッピングモータM2および動力伝達系の空転によりバックラッシュが解消された時点で、改めて印字ヘッド18の逆方向移動つまり印字目標位置に向かう方向の移動が開始されることになる。
【0092】
従って、ステッピングモータM2に同一の目標位置に向かうための移動指令、つまり、パルスを出力したとしても、用紙20’の一側端から目標位置に向けて印字ヘッド18を移動させた場合と用紙20’の他側端から目標位置に向けて印字ヘッド18を移動させた場合とでは、印字ヘッド18の停止位置に若干の相違が生じる。このため、第1回目の印字動作で印字された縦罫線は相対的に用紙20’の一側端に寄った位置に印字され、また、第2回目の印字動作で印字された縦罫線は相対的に用紙20’の他側端に寄った位置に印字されることになる。この位置ズレがステッピングモータM2から印字ヘッド18に至る動力伝達系のバックラッシュに相当する位置ズレである。
【0093】
よって、このバックラッシュに相当する位置ズレの分だけ印字ヘッド18を移動させるために必要とされるステッピングモータM2へのパルスの入力数を求め、このパルス数を補正値として利用すれば、印字ヘッド18の移動方向の相違によって生じる位置ズレを解消することが可能である。
【0094】
そこで、CPU23は、まず、印字ヘッド18をホームポジションセンサS5側に退避させてバーコードリードセンサS4を用紙20’の一側端から外側へ移動させた後(ステップA52)、改めてステッピングモータM2に対するパルスの出力処理を開始して印字ヘッド18にホームポジションセンサS5から離間する方向の送りを掛け(ステップA53)、バーコードリードセンサS4からの信号がHiとなっているか否か、つまり、バーコードリードセンサS4が用紙20’の一側端に外側から到達したか否かを判定し(ステップA54)、バーコードリードセンサS4が用紙20’の一側端に到達するまでステッピングモータM2にパルスを出力する。
【0095】
次いで、バーコードリードセンサS4からの信号がLoからHiに転じ、バーコードリードセンサS4が用紙20’の一側端に外側から到達したことがステップA54の判定処理で確認されると、CPU23は、バーコードリードセンサS4からの信号がLoとなっているか否か、つまり、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出しているか否かを判定し(ステップA55)、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出するまでステッピングモータM2にパルスを出力する。
【0096】
そして、バーコードリードセンサS4からの信号がHiからLoに転じ、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出したことがステップステップA55の判定処理で確認されると、バックラッシュ検出手段として機能するCPU23が、カウンタCの値を零にリセットする(ステップA56)。
【0097】
そして、バックラッシュ検出手段として機能するCPU23は、ステッピングモータM2に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA57,A58)、バーコードリードセンサS4からの信号がLoからHiに転じているか否か、つまり、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出している状態が終了したか否かを判定する(ステップA59)。縦罫線には或る程度の幅があるからである。
【0098】
そして、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出中であれば、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を検出しなくなるまでステップA57〜A59の処理を繰り返し実行し、この間にもカウンタCによるパルスの計数を継続する。
【0099】
次いで、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線を越えて移動したことがステップA59の判定処理で確認されると、バックラッシュ検出手段として機能するCPU23は、ステッピングモータM2に対するパルスの出力を検出する度にカウンタCの値を1インクリメントし(ステップA60,A61)、バーコードリードセンサS4からの信号がHiからLoに転じたか否か、つまり、バーコードリードセンサS4が第2回目の印字動作で印字された縦罫線を検出したか否かを判定する(ステップA62)。
【0100】
ステップA62の判定結果が偽となっている間は、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線と第2回目の印字動作で印字された縦罫線との間を移動していることを意味する。
【0101】
そして、バーコードリードセンサS4が第2回目の印字動作で印字された縦罫線を検出したことがステップA62の判定処理で検出されると、バックラッシュ検出手段として機能するCPU23は、カウンタCの現在値、つまり、バーコードリードセンサS4が第1回目の印字動作で印字された縦罫線の幅方向の端部(例えばホームポジションセンサS5寄りの端部)を検出してから第2回目の印字動作で印字された縦罫線の幅方向の端部(同じくホームポジションセンサS5寄りの端部)を検出するまでの間にステッピングモータM2に入力されたパルス数の値Cを、バックラッシュ補正値記憶手段として機能する不揮発性メモリ26内のバックラッシュ補正値記憶レジスタΔLに記憶させる(ステップA63)。
【0102】
カウンタCは、第1回目の印字動作で印字された縦罫線の幅方向の端部を検出してから第2回目の印字動作で印字された縦罫線の幅方向の端部を検出するまでの間でパルス数をカウントするので、縦罫線の幅が太いような場合であっても、第1回目の印字動作で印字された縦罫線の中心と第2回目の印字動作で印字された縦罫線の中心との離間距離を精密に測定することができる。
【0103】
この実施形態では、印字ヘッド18をホームポジションセンサS5から離間させる方向に送って位置決めを行なったときに印字ヘッド18が指令通りの位置に到達するように印字ヘッドの基準移動量Xiの値をキャリブレーションしているので、印字ヘッド18をホームポジションセンサS5から離間させる方向に送る際にはバックラッシュ補正は不要である。
【0104】
また、装置出荷後の通常の使用時において、印字ヘッド18をホームポジションセンサS5に接近させる方向に送る際に、移動指令に対応するパルス数にバックラッシュ補正値記憶レジスタΔLのバックラッシュ補正値を加算して出力することにより、送り方向を反転した場合のバックラッシュを適切に解消することができる。但し、バックラッシュ補正値を加算するのは、印字ヘッド18をホームポジションセンサS5から離間させる方向に移動させてから改めて印字ヘッド18をホームポジションセンサS5に接近させる方向に移動させる場合のみである。印字ヘッド18をホームポジションセンサS5に接近させる方向に移動させて一時停止させた後に再び印字ヘッド18をホームポジションセンサS5に接近させる方向に移動させる場合には、バックラッシュ補正値の加算処理は非実行とする。
【0105】
このようにして、各種の位置ズレに関するパラメータの補正処理が終了した後、CPU23は、印字ヘッド18をホームポジションに復帰させ(ステップA64)、用紙送り手段12を逆転駆動して用紙20’を用紙挿入口14あるいは用紙挿入口16から排出した後(ステップA65)、ロータリーソレノイドSOLが作動していれば其の励磁を解除して経路切替片17を初期位置に戻し(ステップA66)、全てのキャリブレーション処理を終了する。
【0106】
【発明の効果】
本発明のプリンタ装置は、用紙送り手段とバーコードリードセンサとを利用して用紙先端から用紙搬送誤差検出のための実印字位置までの離間距離を求め、この離間距離と予め決められた用紙先端から印字位置までの理想的な離間距離との偏差に基いて用紙送り量記憶手段の基準送り量に補正を加えるようにしたので、イメージセンサを備えていない通帳用のプリンタ装置や伝票用のプリンタ装置等においても、用紙搬送方向の印字位置のズレの補正を自動処理によって容易に実施することができる。
【0107】
また、バーコードリードセンサを移動しながらバーコードリードセンサの移動量とバーコードリードセンサからの信号とを監視して、用紙の一側端から印字ヘッド移動誤差検出のための実印字位置までの離間距離を求め、この離間距離と予め決められた用紙の一側端から印字位置までの理想的な離間距離との偏差に基いてヘッド移動量記憶手段の基準移動量を補正するようにしたので、イメージセンサを備えていない通帳用のプリンタ装置や伝票用のプリンタ装置等においても、印字ヘッド移動方向の印字位置のズレの補正を自動処理によって容易に実施することができる。
【0108】
更に、用紙の一側端から予め記憶された目標位置に向けて印字ヘッドを移動させて第1回目の印字動作を行なわせた後、用紙の他側端から予め記憶された目標位置に向けて印字ヘッドを移動させて第2回目の印字動作を行なわせ、第1回目の印字位置と第2回目の印字との離間距離をバーコードリードセンサの移動量とバーコードリードセンサからの信号とを監視して求め、この離間距離をバックラッシュ補正値として記憶するようにしたので、イメージセンサを備えない通帳用のプリンタ装置や伝票用のプリンタ装置等においても、印字ヘッドを移動させる動力伝達系のバックラッシュに起因する印字ヘッド移動方向の印字位置のズレの補正を自動処理によって容易に実施することができる。
【0109】
しかも、バーコードリードセンサを印字ヘッドに装着されたプロテクタに配備して印字ヘッドと共に移動させるようにしているので、バーコードリードセンサ専用の駆動手段が不要であり、プリンタ装置の製造コストや故障因子の低減化に役立つ。
【0110】
また、用紙搬送誤差検出のための印字動作に際して横罫線を印字させる一方、印字ヘッド移動誤差検出のための印字動作に際しては縦罫線を印字させるようにしているので、印字位置を表す罫線の法線方向に沿って接離する方向でバーコードリードセンサを相対移動させながら印字位置を検出することができ、高い検出精度で印字位置のズレを測定して補正処理を行なうことができる。
【0111】
更に、用紙の種別毎の基準送り量を用紙の種別毎に記憶するようにしたので、用紙の摩擦の大小や厚み等の相違等に応じた適切な用紙送りが可能となり、用紙送り方向の印字位置のズレを的確に解消することができる。
【図面の簡単な説明】
【図1】本発明を適用した一実施形態のプリンタ装置の機械的な構成の概略を示した模式図である。
【図2】同実施形態のプリンタ装置の制御系の要部を簡略化して示した機能ブロック図である。
【図3】バーコードリードセンサから出力される信号の一例を示した概念図である。
【図4】同実施形態のプリンタ装置に配備されたCPUによって実行されるキャリブレーション処理の概略を示したフローチャートである。
【図5】キャリブレーション処理の概略を示したフローチャートの続きである。
【図6】キャリブレーション処理の概略を示したフローチャートの続きである。
【図7】キャリブレーション処理の概略を示したフローチャートの続きである。
【図8】キャリブレーション処理の概略を示したフローチャートの続きである。
【図9】キャリブレーション処理の概略を示したフローチャートの続きである。
【図10】用紙の基準送り量の調整を説明した作用原理図である。
【図11】印字ヘッドの基準移動量の調整を説明した作用原理図である。
【符号の説明】
1 プリンタ装置
2,3,4,5,6 フィードローラ
7,8,9,10,11 ピンチローラ
12 用紙送り手段
13 第一の用紙搬送路
14 通帳用の用紙挿入口
15 第二の用紙搬送路
16 伝票用の用紙挿入口
17 経路切替片
18 印字ヘッド
19 プロテクタ
20 通帳(用紙)
20’ 試験用の用紙
21 バーコード
22 プラテン
23 CPU(用紙搬送誤差検出用試し印刷制御手段,用紙送り方向実印字距離測定手段,用紙搬送偏差検出手段,用紙基準送り量補正手段,ヘッド移動誤差検出用試し印刷制御手段,ヘッド移動方向実印字距離測定手段,ヘッド移動偏差検出手段,ヘッド基準移動量補正手段,バックラッシュ検出用試し印刷制御手段,バックラッシュ検出手段)
24 ROM
25 RAM
26 不揮発性メモリ(用紙送り量記憶手段,ヘッド移動量記憶手段,バックラッシュ補正値記憶手段)
27 インターフェイス
28 入出力回路
M1 ステッピングモータ
M2 ステッピングモータ
SOL ロータリーソレノイド
S1 用紙検出センサ
S2 用紙検出センサ
S3 用紙位置決め用センサ
S4 反射型のバーコードリードセンサ
S5 ホームポジションセンサ
S6 磁気ヘッド[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an improvement of a printer device used for printing a passbook, a slip, and the like, and more particularly to correction of a printing position shift.
[0002]
[Prior art]
Printer apparatuses used for printing passbooks and slips are already known. This type of printer device is provided with a sheet feeding means and a print head constituted by rollers, belts, and the like, and various sensors for detecting the position of the sheet. Because there are individual differences inherent to the printer device due to dimensional errors, shape errors, assembly errors, etc. of the various components that make up the printer, characters, ruled lines, etc. are not necessarily printed at the correct print position according to the initial drive conditions set in the printer device. There is no guarantee that it will be done.
[0003]
For example, the print start position in the line direction on the paper is generally defined by the paper feed amount after the paper positioning sensor detects the leading edge of the paper, and this paper feed amount is set based on the design value. However, as long as each part of the printer apparatus does not completely match the design value, a certain degree of error may occur in the print position.
[0004]
In order to deal with such problems, in the conventional printer device, the actual printing operation is performed on the test paper at the time of shipment of the device, and the deviation between the ideal position and the actual position of the printed character is measured. In order to eliminate this deviation, parameters of driving conditions, for example, set values such as a sheet feeding amount are changed.
[0005]
Actually, in addition to misalignment of the print start position in the row direction, there are other problems such as misalignment of the print start position in the column direction and backlash correction when the print head moves forward / backward. Is complicated.
[0006]
For this reason, there has been a demand for automating the measurement of misalignment, the calculation of parameters, and the setting of appropriate values.
[0007]
Printer apparatuses disclosed in
[0008]
[Patent Document 1]
JP-A-4-355174 (paragraph numbers 0004 and 0006)
[Patent Document 2]
JP 2001-225518 A (paragraph number 0008, FIG. 2)
[Patent Document 3]
JP 2000-158773 A (paragraph numbers 0007, 0008, FIG. 4)
[0009]
[Problems to be solved by the invention]
However, all of the printer devices found in these known documents require image processing using an image sensor in order to detect the character printing position and the printing position deviation. When applied to a printer device that does not require recognition, such as a passbook printer device or a slip printer device, the cost of the printer device is disadvantageous.
[0010]
OBJECT OF THE INVENTION
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a printer that can improve the disadvantages of the prior art and can easily carry out correction of misalignment of a printing position by automatic processing even in a printer that does not include an image sensor. It is in.
[0011]
[Means for Solving the Problems]
A printer apparatus according to the present invention includes a sheet feeding unit that feeds a sheet, a print head that moves in a direction crossing the sheet feeding direction, and a reflective barcode read sensor that reads a barcode printed on the sheet. In order to achieve the object,
A paper positioning sensor for detecting the leading edge of the paper;
A sheet feed amount storage means for storing a reference sheet feed amount;
For detecting the paper transport error by detecting the operation of the paper positioning sensor and driving the paper feed means by the reference feed amount stored in the paper feed amount storage means and then causing the print head to perform a printing operation for detecting the paper transport error. Trial printing control means;
After the test printing control means for detecting the paper transport error is activated, The paper feeding means is driven to return the front end of the paper to the near side of the bar code lead sensor. , Paper feeding means Again in the paper transport direction While driving Monitor the signal from the bar code lead sensor to detect the leading edge of the paper, and then A paper feed direction actual print distance measuring means for monitoring a driving amount of the paper feed means and a signal from the bar code read sensor to obtain a separation distance from the front end of the paper to a print position for detecting a paper transport error;
A paper transport deviation detecting means for calculating a deviation between the separation distance obtained by the paper feed direction actual printing distance measuring means and a predetermined ideal separation distance from the front end of the paper to the printing position;
And a paper reference feed amount correcting means for correcting the reference feed amount of the paper feed amount storage means based on the deviation calculated by the paper transport deviation detecting means.
[0012]
In the above configuration, when the paper positioning sensor detects the leading edge of the test paper supplied to the paper feed means, first, the paper transport error detection test print control means is activated, and the reference stored in the paper feed amount storage means. The paper feeding means is driven until the feed amount is reached, and the print head is caused to execute a printing operation for detecting a paper transport error.
Next, the paper feed direction actual print distance measuring means is operated to monitor the drive amount of the paper feed means and the signal from the bar code read sensor while driving the paper feed means to detect the paper transport error from the leading edge of the test paper. The separation distance to the printing position is obtained.
Specifically, the separation distance from the leading edge of the test paper to the print position for detecting the paper conveyance error is determined by rotating the paper feeding means in reverse until the test paper is not detected by the bar code read sensor, and then feeding the paper again. The bar code read sensor detects the leading edge of the test paper and starts the measurement process of the driving amount of the paper feeding means from this detection point. When the bar code read sensor detects the print position, the measurement process is started. Is requested by stopping.
Since the drive source of the paper feeding means is a stepping motor, in actuality, this separation distance is from the time when the bar code read sensor detects the leading edge of the test paper to the time when the bar code read sensor detects the print position. Is represented by the number of pulses input to the stepping motor. More specifically, the reference feed amount stored in the paper feed amount storage means and the ideal separation distance from the front end of the paper to the printing position are actually the stepping that is the drive source of the paper feed means. The number of pulses for the motor.
Next, the paper conveyance deviation detecting means is operated to calculate a deviation between the separation distance obtained by the paper feed direction actual printing distance measuring means and a predetermined ideal separation distance from the front end of the paper to the printing position. This deviation is the value of the number of pulses corresponding to the amount of positional deviation in the paper transport direction.
Finally, the paper reference feed amount correcting means is operated to correct the reference feed amount of the paper feed amount storage means based on the deviation obtained by the paper transport deviation detecting means.
The simplest correction is to rewrite and update the reference feed amount value stored in the paper feed amount storage means, but the reference feed amount value stored in the paper feed amount storage means is set to the initial value. The deviation determined by the paper conveyance deviation detection means is stored separately, and an appropriate reference feed is made based on the initial value and deviation each time in the pre-processing stage of the drive control of the paper feed means from the next time onwards. You may make it ask for quantity.
As described above, it is possible to correct the reference feed amount of the sheet feed amount storage unit by the process using the reflection type barcode read sensor for reading the barcode and the sheet feed unit, and to eliminate the deviation of the print position in the sheet transport direction. Therefore, even in a passbook printer device or a slip printer device that does not include an image sensor, correction of a print position deviation can be easily performed by automatic processing.
[0013]
In addition to the above configuration, a home position sensor that detects a reference position of the print head;
Head movement amount storage means for storing a reference movement amount of the print head;
Head movement error detection that detects the operation of the home position sensor and moves the print head by the reference movement amount stored in the head movement amount storage means, and then causes the print head to perform a printing operation for detecting the print head movement error. Trial print control means,
After the operation of the test printing control means for detecting head movement error, The bar code lead sensor is moved to move the bar code lead sensor to the outside of one side edge of the paper. Bar code lead sensor Move again toward the home position sensor While A signal from the bar code lead sensor is monitored to detect one end of the paper, and then Measurement of the actual print distance in the head movement direction by monitoring the amount of movement of the bar code read sensor and the signal from the bar code read sensor to obtain the separation distance from one side edge of the paper to the print position for print head movement error detection Means,
A head movement deviation detecting means for calculating a deviation between the separation distance obtained by the head movement direction actual printing distance measuring means and a predetermined ideal separation distance from the one side end to the printing position;
A head reference movement amount correction unit that corrects the reference movement amount of the head movement amount storage unit based on the deviation calculated by the head movement deviation detection unit may be provided.
[0014]
This configuration is for eliminating the displacement of the print position in the print head moving direction, and the operation principle thereof is the same as that described above except that the detection direction of the position shift amount is different.
In other words, after the home position sensor detects the reference position of the print head, the print head is moved by the reference movement amount stored in the head movement amount storage means to detect the print head movement error on the test paper. After the printing operation is performed, the movement of the barcode lead sensor and the signal from the barcode lead sensor are monitored while moving the barcode lead sensor, and the print head movement error is detected from one side edge of the paper. The distance between the print position and the print position is calculated, and a deviation between the predetermined distance and the ideal distance from the one side end to the print position is calculated, and the head movement amount is stored based on the deviation. By correcting the reference movement amount of the means, the deviation of the print position in the print head movement direction is eliminated.
As a result, even in a passbook printer device or a slip printer device that is not provided with an image sensor, it is possible to easily carry out correction of the displacement of the print position with respect to the print head moving direction by automatic processing. .
[0015]
Further, after the print head is moved from one side edge of the paper toward a pre-stored target position to cause the print head to perform a first printing operation for backlash detection, While maintaining the stopped state of the paper feeding means Backlash detection test print control means for moving the print head from the other end of the paper toward the previously stored target position and causing the print head to perform a second printing operation for backlash detection;
After the test printing control means for backlash detection is activated, While maintaining the stopped state of the paper feeding means While moving the bar code read sensor, the amount of movement of the bar code read sensor and the signal from the bar code read sensor are monitored, and the first printing position for backlash detection and the second for backlash detection. Backlash detection means for obtaining a separation distance from the second printing;
Backlash correction value storage means for storing the separation distance obtained by the backlash detection means as a backlash correction value can be provided.
[0016]
According to the above configuration, first, the backlash of the power transmission system of the print head is eliminated while the print head is moved from one side edge of the test paper toward the pre-stored target position. A first printing operation is performed on the test paper.
Thereafter, the print head is fed from the first printing position to the other side edge of the test paper while the backlash has been eliminated.
Next, the movement direction of the print head is switched to move the print head toward the target position as described above. However, since backlash exists in the power transmission system, the stepping motor that is the drive source of the print head Even if the rotation direction is reversed, the movement of the print head itself does not start immediately.
Then, when the backlash of the power transmission system is resolved by the reverse rotation of the stepping motor as the drive source, the print head starts to move toward the target position.
Next, when the print head reaches the target position, a second printing operation is performed on the test paper. However, the movement control of the print head is not performed in a closed loop, but is performed in an open loop control for a stepping motor that is a drive source. Therefore, even if the stepping motor rotates by the amount corresponding to the command value, the print head does not actually reach the target position, and the amount corresponding to the backlash described above is set at the other end of the test paper. The robot stops at the approached position, and the second printing operation is performed at this position.
In other words, the positional deviation that occurs between the first printing position and the second printing position is a positional deviation corresponding to the backlash of the power transmission system, so the first printing position and the second printing position. Is stored as a correction value in the backlash correction value storage means, so that the moving direction of the print head is stored in the backlash correction value storage means. It is possible to correct backlash according to the condition.
For example, when adjustment is made so that the print head appropriately reaches the target position when the print head is moved from the one side edge of the paper to the inside of the paper, When the print head is moved to zero, the correction amount is zero, and when the print head is moved from the other side of the paper into the paper, the above-described backlash correction value is added to the incremental movement command. Like that.
[0017]
Further, it is desirable that the bar code lead sensor is disposed on a protector attached to the print head and moved together with the print head.
[0018]
A normal image sensor needs to be installed in the paper conveyance path because of its scale, but a small bar code read sensor can be incorporated in a protector mounted on a print head.
As described above, in order to eliminate the positional deviation in the print head movement direction and the print head backlash, it is necessary to monitor the signal while moving the barcode read sensor. By incorporating the sensor into the protector of the print head, it becomes possible to move both of them together, eliminating the need for a drive means dedicated to the barcode lead sensor, which helps to reduce the manufacturing cost and failure factors of the printer device.
[0019]
Further, the test print control means for detecting the paper transport error is configured to print a horizontal ruled line in the printing operation for detecting the paper transport error, and the test print control means for detecting the head movement error is used to detect the print head movement error. It may be configured to print vertical ruled lines during the printing operation.
[0020]
When such a configuration is applied, the print position is detected while the bar code lead sensor moves in a direction in which the bar code lead sensor moves toward and away from the normal direction of the ruled line representing the print position. This scanning direction is the same as the scanning direction when the barcode read sensor reads the barcode, and high detection accuracy can be ensured.
[0021]
Further, it is possible to arrange a plurality of paper insertion openings corresponding to the paper types in the paper feeding means and store the reference feed amount for each paper type in the paper feeding amount storage means.
[0022]
Since the correspondence between the paper type and the standard feed amount is uniquely specified, it is possible to feed the paper appropriately according to the difference in the friction and thickness of the paper surface, and to shift the print position in the paper feed direction. It can be solved accurately. (Even if the same paper feeding means is used, the difference in the friction or thickness of the paper surface may affect the positional deviation.)
[0023]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram showing an outline of a mechanical configuration of a
[0024]
As shown in FIG. 1, the
Among them, the
Further, the
The drive source of the
[0025]
A path switching piece 17 is swingably attached to a portion where the first
[0026]
A paper detection sensor S1 for detecting insertion of a passbook is provided at the entrance of the passbook
[0027]
The
However, there is a certain amount of backlash in the meshing state of the gear train arranged in the power transmission system, and in the screwing state between the lead screw and the nut.
[0028]
A reflective barcode read sensor S4 that reads a barcode printed on a sheet is provided so as to be integrally embedded in a
[0029]
FIG. 3 shows an example of a correspondence relationship between an example of the
[0030]
The bar code lead sensor S4 is a reflective sensor including a light emitting unit and a light receiving unit. Since the surface of the
However, since the surface of the
[0031]
In FIG. 3, the direction of arrow a is the paper transport direction, and the direction of arrow b is the moving direction of the
[0032]
As shown in FIG. 1, the paper positioning sensor S3 for detecting the leading edge of the paper is installed at a position slightly upstream of the
[0033]
In FIG. 1,
[0034]
As shown in FIG. 2, the main part of the control system of the
[0035]
The
[0036]
The
[0037]
The
[0038]
A stepping motor M1 that functions as a drive source for the paper feeding means 12, a stepping motor M2 that functions as a drive source for moving the
[0039]
Further, the signals from the paper detection sensor S1, the paper detection sensor S2, the paper positioning sensor S3, the bar code read sensor S4, the home position sensor S5, and the magnetic head S6 are transmitted to the respective A / D converters and the input /
[0040]
Next, referring to the flowcharts of FIGS. 4 to 9 showing the outline of the calibration process executed by the
[0041]
The
[0042]
Here, when the paper detection sensor S1 is turned on and the insertion of the paper is detected, it means that the test passbook has been inserted from the passbook
[0043]
On the other hand, when the paper detection sensor S2 is turned on and the insertion of the paper is detected, it means that a test slip has been inserted from the slip
[0044]
When it is detected that the test paper has been inserted into the
[0045]
Next, the
[0046]
When the leading edge of the paper reaches the position of the paper positioning sensor S3, the
[0047]
Next, the
[0048]
However, the sheet reference feed amount Yi is not a value in units of length, but the stepping motor M1 between the time when the sheet positioning sensor S3 detects the leading edge of the sheet and the time when the sheet reaches the ideal printing position. This is the theoretical value of the design of the pulse input to. However, in reality, there are individual differences in each part of the
[0049]
The paper reference feed amount Yi is a value specified by the value of the paper specification index i, and the
[0050]
When the current value of the counter C reaches the paper reference feed amount Yi, the
[0051]
Next, the
[0052]
The state when the horizontal ruled line Y is printed on the
[0053]
Next, the
[0054]
Then, the
[0055]
Next, when the signal from the barcode read sensor S4 turns to Lo and the determination processing in step A15 confirms that the leading edge of the
[0056]
Then, the
[0057]
Next, when the signal from the bar code read sensor S4 changes from Lo to Hi and it is confirmed by the determination processing in step A17 that the leading end of the paper 20 'is detected again by the bar code read sensor S4, the actual paper feed direction printing is performed. The
[0058]
Then, the
[0059]
While such processing is repeatedly executed, in the determination processing of step A21, when it is confirmed that the signal from the barcode read sensor S4 has changed from Hi to Lo, the
[0060]
At this time, the value of the number of pulses stored in the counter C is a value of the number of pulses corresponding to the separation distance from the leading end of the
[0061]
That is, in this embodiment, by the processing of the
[0062]
Next, the
[0063]
Further, the
[0064]
As a result of rewriting the value of the reference feed amount Yi of the sheet in this way, the correction value is set to the reference feed amount Yi (value before correction) shown in FIG. 10 during normal use after the apparatus is shipped. Since the stepping motor M1 is driven and controlled based on the reference feed amount Yi (value after correction) obtained by adding ΔYi, the print position deviation ΔYi shown in FIG. 10 is eliminated, which is ideal. Therefore, it is possible to perform appropriate printing at the position of the correct printing position Y ′.
[0065]
Of course, it is not always necessary to rewrite the value of the reference feed amount Yi of the sheet, and the reference feed amount Yi (value before correction) is held as it is in the
[0066]
Next, the
[0067]
When it is confirmed by the home position sensor S5 that the positioning of the
[0068]
The
[0069]
As described above, the reference movement amount Xi of the print head is not a value in units of length, but the
[0070]
The reference movement amount Xi of the print head is a value specified by the value of the sheet specifying index i, and the reference movement amount X1 of the print head to be applied to the passbook is stored in the
[0071]
When the current value of the counter C reaches the reference movement amount Xi of the print head, the
[0072]
Next, the
[0073]
The state when the vertical ruled lines X are printed on the
[0074]
Next, the
[0075]
Then, the
[0076]
Next, when the signal from the barcode read sensor S4 turns to Lo and it is confirmed in the determination process in step A34 that the barcode read sensor S4 has been sent outside the one side edge of the
[0077]
Then, the
[0078]
Next, when the signal from the bar code read sensor S4 turns from Lo to Hi and the bar code read sensor S4 has reached the one side edge of the paper 20 'from the outside in the determination process in step A36, the head movement is performed. The
[0079]
Then, the
[0080]
While such processing is repeatedly executed, in the determination processing in step A40, when it is confirmed that the signal from the barcode read sensor S4 has changed from Hi to Lo, the
[0081]
At this time, the value of the number of pulses stored in the counter C is a value of the number of pulses corresponding to the separation distance from one side edge of the
[0082]
That is, in this embodiment, the barcode read sensor S4 is once moved outside the one side edge of the
[0083]
Next, the
[0084]
The
[0085]
As a result of rewriting the value of the reference movement amount Xi of the print head in this way, the correction value is calculated from the reference movement amount Xi (value before correction) shown in FIG. Since the stepping motor M2 is driven and controlled based on the reference movement amount Xi (value after correction) obtained by subtracting ΔXi, the deviation ΔXi of the print position in the print head movement direction shown in FIG. Thus, it is possible to perform appropriate printing at the position of the typical printing position X ′.
[0086]
As described above, it is not always necessary to rewrite the value itself of the reference movement amount Xi of the print head, and the reference movement amount Xi (value before correction) is held as it is in the
[0087]
Next, the
[0088]
Then, the
[0089]
Backlash of the power transmission system that drives the
[0090]
Next, the
[0091]
When the direction of movement is reversed after the
[0092]
Accordingly, even when a movement command for moving to the same target position, that is, a pulse, is output to the stepping motor M2, the
[0093]
Therefore, if the number of pulses input to the stepping motor M2 required to move the
[0094]
Therefore, the
[0095]
Next, when the signal from the bar code read sensor S4 changes from Lo to Hi and the bar code read sensor S4 has reached the one end of the
[0096]
Then, the signal from the bar code read sensor S4 changes from Hi to Lo, and it is confirmed by the determination process in step A55 that the bar code read sensor S4 has detected the vertical ruled line printed by the first printing operation. Then, the
[0097]
The
[0098]
If the bar code read sensor S4 is detecting the vertical ruled line printed in the first printing operation, the bar code read sensor S4 does not detect the vertical ruled line printed in the first printing operation. The processing of steps A57 to A59 is repeatedly executed, and the pulse counting by the counter C is continued during this time.
[0099]
Next, when it is confirmed in step A59 that the bar code read sensor S4 has moved beyond the vertical ruled line printed in the first printing operation, the
[0100]
While the determination result in step A62 is false, the barcode read sensor S4 moves between the vertical ruled line printed in the first printing operation and the vertical ruled line printed in the second printing operation. Means that
[0101]
When the bar code read sensor S4 detects that the vertical ruled line printed in the second printing operation is detected in the determination process in step A62, the
[0102]
The counter C detects the end in the width direction of the vertical ruled line printed in the first printing operation until it detects the end in the width direction of the vertical ruled line printed in the second printing operation. Since the number of pulses is counted in between, the center of the vertical ruled line printed by the first printing operation and the vertical ruled line printed by the second printing operation even when the width of the vertical ruled line is thick It is possible to accurately measure the distance from the center of the.
[0103]
In this embodiment, when the
[0104]
Further, when the
[0105]
In this way, after the parameter correction processing regarding various positional deviations is completed, the
[0106]
【The invention's effect】
The printer apparatus according to the present invention obtains a separation distance from the front end of the paper to the actual print position for detecting a paper transport error by using the paper feeding means and the bar code lead sensor, and the separation distance is determined from the predetermined front end of the paper. Since the reference feed amount of the paper feed amount storage means is corrected based on the deviation from the ideal separation distance to the printing position, a passbook printer device or a slip printer device without an image sensor, etc. In this case, the correction of the deviation of the printing position in the paper conveyance direction can be easily performed by automatic processing.
[0107]
Also, while moving the barcode read sensor, the amount of movement of the barcode read sensor and the signal from the barcode read sensor are monitored, and from one side edge of the paper to the actual print position for detecting the print head movement error. Since the separation distance is obtained and the reference movement amount of the head movement amount storage means is corrected based on the deviation between this separation distance and a predetermined ideal separation distance from one side edge of the paper to the printing position. Even in a passbook printer device or a slip printer device that does not include an image sensor, correction of a print position shift in the print head moving direction can be easily performed by automatic processing.
[0108]
Further, after the print head is moved from one side edge of the sheet toward the pre-stored target position to perform the first printing operation, the other side edge of the paper is directed toward the pre-stored target position. The printing head is moved to perform the second printing operation, and the distance between the first printing position and the second printing is determined by the amount of movement of the barcode read sensor and the signal from the barcode read sensor. Since this separation distance is stored as a backlash correction value, the power transmission system for moving the print head is also used in a passbook printer device or a slip printer device without an image sensor. Correction of the print position deviation in the print head movement direction due to backlash can be easily performed by automatic processing.
[0109]
In addition, since the barcode read sensor is arranged on a protector attached to the print head and moved together with the print head, a drive means dedicated to the barcode read sensor is unnecessary, and the manufacturing cost and failure factor of the printer device are not required. It helps to reduce
[0110]
In addition, the horizontal ruled lines are printed during the printing operation for detecting the paper transport error, while the vertical ruled lines are printed during the printing operation for detecting the print head movement error. The print position can be detected while the bar code lead sensor is relatively moved in the direction of contact and separation along the direction, and the correction process can be performed by measuring the shift of the print position with high detection accuracy.
[0111]
Furthermore, since the reference feed amount for each paper type is stored for each paper type, it is possible to feed the paper appropriately according to the difference in the friction of the paper, the thickness, etc., and the print position in the paper feed direction. Misalignment can be eliminated accurately.
[Brief description of the drawings]
FIG. 1 is a schematic diagram showing an outline of a mechanical configuration of a printer apparatus according to an embodiment to which the invention is applied.
FIG. 2 is a functional block diagram schematically illustrating a main part of a control system of the printer apparatus according to the embodiment.
FIG. 3 is a conceptual diagram showing an example of a signal output from a bar code read sensor.
FIG. 4 is a flowchart illustrating an outline of calibration processing executed by a CPU provided in the printer apparatus of the embodiment.
FIG. 5 is a continuation of the flowchart showing an outline of the calibration process.
FIG. 6 is a continuation of the flowchart showing an outline of the calibration process.
FIG. 7 is a continuation of the flowchart showing an outline of the calibration process.
FIG. 8 is a continuation of the flowchart showing an outline of the calibration process.
FIG. 9 is a continuation of the flowchart showing an outline of the calibration process.
FIG. 10 is an operation principle diagram illustrating adjustment of a reference feed amount of a sheet.
FIG. 11 is an operation principle diagram illustrating adjustment of the reference movement amount of the print head.
[Explanation of symbols]
1 Printer device
2,3,4,5,6 Feed roller
7, 8, 9, 10, 11 Pinch roller
12 Paper feeding means
13 First paper transport path
14 Passbook paper insertion slot
15 Second paper transport path
16 Paper slot for slips
17 Route switching piece
18 Print head
19 Protector
20 Passbook (paper)
20 'test paper
21 Barcode
22 Platen
23 CPU (paper transport error detection trial print control means, paper feed direction actual print distance measurement means, paper transport deviation detection means, paper reference feed amount correction means, head movement error detection test print control means, head movement direction actual print distance Measurement means, head movement deviation detection means, head reference movement amount correction means, backlash detection test print control means, backlash detection means)
24 ROM
25 RAM
26 Non-volatile memory (paper feed amount storage means, head movement amount storage means, backlash correction value storage means)
27 Interface
28 I / O circuit
M1 stepping motor
M2 stepping motor
SOL rotary solenoid
S1 Paper detection sensor
S2 Paper detection sensor
S3 Paper positioning sensor
S4 Reflective bar code lead sensor
S5 Home position sensor
S6 Magnetic head
Claims (6)
用紙の先端を検出する用紙位置決め用センサと、
用紙の基準送り量を記憶する用紙送り量記憶手段と、
前記用紙位置決め用センサの作動を検出し、前記用紙送り量記憶手段に記憶されている基準送り量だけ前記用紙送り手段を駆動してから前記印字ヘッドに用紙搬送誤差検出のための印字動作を行なわせる用紙搬送誤差検出用試し印刷制御手段と、
前記用紙搬送誤差検出用試し印刷制御手段の作動後、前記用紙送り手段を駆動して前記用紙の先端を前記バーコードリードセンサよりも手前に戻し、前記用紙送り手段を改めて用紙搬送方向に駆動しながら前記バーコードリードセンサからの信号を監視して用紙の先端を検知し、その後の前記用紙送り手段の駆動量と前記バーコードリードセンサからの信号とを監視して、用紙先端から用紙搬送誤差検出のための印字位置までの離間距離を求める用紙送り方向実印字距離測定手段と、
前記用紙送り方向実印字距離測定手段により求められた離間距離と、予め決められた用紙先端から印字位置までの理想的な離間距離との偏差を算出する用紙搬送偏差検出手段と、
用紙搬送偏差検出手段により算出された偏差に基いて前記用紙送り量記憶手段の基準送り量に補正を加える用紙基準送り量補正手段とを備えたことを特徴とするプリンタ装置。In a printer apparatus comprising a sheet feeding means that feeds a sheet, a print head that moves in a direction crossing the sheet feeding direction, and a reflective barcode read sensor that reads a barcode printed on the sheet,
A paper positioning sensor for detecting the leading edge of the paper;
A sheet feed amount storage means for storing a reference sheet feed amount;
Paper that detects the operation of the paper positioning sensor, drives the paper feed means by a reference feed amount stored in the paper feed amount storage means, and then causes the print head to perform a printing operation for detecting a paper transport error. Test printing control means for detecting conveyance errors;
After operation of the paper transport error detecting test print control means, wherein said paper feed means is driven back to the leading end of the sheet in front of the said bar code read sensor, while driving the paper feed means again to the sheet conveying direction A signal from the bar code read sensor is monitored to detect the leading edge of the paper, and a subsequent drive amount of the paper feeding means and a signal from the bar code lead sensor are monitored to detect a paper transport error from the front edge of the paper. A paper feed direction actual print distance measuring means for obtaining a separation distance to the print position of
A paper conveyance deviation detecting means for calculating a deviation between the separation distance obtained by the paper feed direction actual printing distance measuring means and a predetermined ideal separation distance from the front end of the paper to the printing position;
A printer apparatus comprising: a paper reference feed amount correcting means for correcting the reference feed amount of the paper feed amount storage means based on the deviation calculated by the paper transport deviation detecting means.
印字ヘッドの基準移動量を記憶するヘッド移動量記憶手段と、
前記ホームポジションセンサの作動を検出し、前記ヘッド移動量記憶手段に記憶されている基準移動量だけ前記印字ヘッドを移動してから前記印字ヘッドに印字ヘッド移動誤差検出のための印字動作を行なわせるヘッド移動誤差検出用試し印刷制御手段と、
前記ヘッド移動誤差検出用試し印刷制御手段の作動後、前記バーコードリードセンサを移動させて前記用紙の一側端の外側へ前記バーコードリードセンサを移動させ、前記バーコードリードセンサを改めて前記ホームポジションセンサに向けて移動させながら前記バーコードリードセンサからの信号を監視して前記用紙の一側端を検知し、その後の前記バーコードリードセンサの移動量と前記バーコードリードセンサからの信号とを監視して、用紙の一側端から印字ヘッド移動誤差検出のための印字位置までの離間距離を求めるヘッド移動方向実印字距離測定手段と、
前記ヘッド移動方向実印字距離測定手段により求められた離間距離と、予め決められた前記一側端から印字位置までの理想的な離間距離との偏差を算出するヘッド移動偏差検出手段と、
ヘッド移動偏差検出手段により算出された偏差に基いて前記ヘッド移動量記憶手段の基準移動量に補正を加えるヘッド基準移動量補正手段とを併設したことを特徴とする請求項1記載のプリンタ装置。A home position sensor for detecting a reference position of the print head;
Head movement amount storage means for storing a reference movement amount of the print head;
The operation of the home position sensor is detected, the print head is moved by a reference movement amount stored in the head movement amount storage means, and then the print head is caused to perform a printing operation for detecting a print head movement error. Test print control means for detecting head movement error;
After the test print control means for detecting head movement error is actuated, the bar code lead sensor is moved to move the bar code lead sensor to the outside of one side edge of the paper, and the bar code lead sensor is changed to the home again. A signal from the bar code lead sensor is monitored while moving toward the position sensor to detect one side edge of the paper, and a subsequent movement amount of the bar code lead sensor and a signal from the bar code lead sensor A head movement direction actual print distance measuring means for obtaining a separation distance from one side edge of the paper to a print position for print head movement error detection;
A head movement deviation detecting means for calculating a deviation between the separation distance obtained by the head movement direction actual printing distance measuring means and a predetermined ideal separation distance from the one side end to the printing position;
2. The printer apparatus according to claim 1, further comprising head reference movement amount correction means for correcting the reference movement amount of the head movement amount storage means based on the deviation calculated by the head movement deviation detection means.
前記バックラッシュ検出用試し印刷制御手段の作動後、前記用紙送り手段の停止状態を保持したまま前記バーコードリードセンサを移動しながら前記バーコードリードセンサの移動量と前記バーコードリードセンサからの信号とを監視して、バックラッシュ検出のための第1回目の印字位置とバックラッシュ検出のための第2回目の印字との離間距離を求めるバックラッシュ検出手段と、
バックラッシュ検出手段によって求められた離間距離をバックラッシュ補正値として記憶するバックラッシュ補正値記憶手段とを併設したことを特徴とする請求項2記載のプリンタ装置。After the print head is moved from one side edge of the paper toward a pre-stored target position to cause the print head to perform a first printing operation for backlash detection, the paper feeding means is stopped. For backlash detection, the print head is moved from the other side edge of the sheet toward the previously stored target position while holding the print head, and the print head performs a second printing operation for backlash detection. Trial printing control means;
After the operation of the backlash detection test printing control means, while moving the barcode lead sensor while maintaining the stop state of the paper feeding means, the amount of movement of the barcode lead sensor and the signal from the barcode lead sensor, A backlash detection means for obtaining a separation distance between the first printing position for backlash detection and the second printing for backlash detection;
3. The printer apparatus according to claim 2, further comprising backlash correction value storage means for storing the separation distance obtained by the backlash detection means as a backlash correction value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003124642A JP4128901B2 (en) | 2003-04-30 | 2003-04-30 | Printer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003124642A JP4128901B2 (en) | 2003-04-30 | 2003-04-30 | Printer device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2004322619A JP2004322619A (en) | 2004-11-18 |
JP4128901B2 true JP4128901B2 (en) | 2008-07-30 |
Family
ID=33502119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003124642A Expired - Fee Related JP4128901B2 (en) | 2003-04-30 | 2003-04-30 | Printer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4128901B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4962946B2 (en) * | 2006-10-05 | 2012-06-27 | 株式会社大一商会 | Pachinko machine |
JP2008290268A (en) * | 2007-05-22 | 2008-12-04 | Seiko Epson Corp | Recorder equipped with colorimetric means, method of determining feed amount of recording material of the recorder, and method of determining movement amount of colorimetric light spot |
JP2013039710A (en) | 2011-08-15 | 2013-02-28 | Seiko Epson Corp | Method of controlling printing device, and printing system |
JP2014105055A (en) * | 2012-11-26 | 2014-06-09 | Fujitsu Frontech Ltd | Medium processing device, and skew detection method thereof |
-
2003
- 2003-04-30 JP JP2003124642A patent/JP4128901B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004322619A (en) | 2004-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7830564B2 (en) | Method of obtaining correction value of optical sensor and recording apparatus | |
US7703766B2 (en) | Method for sensing paper skew and method for correcting paper skew | |
KR100449749B1 (en) | Calibrating method of paper feeding of inkjet printer | |
US8967522B2 (en) | Paper sheet receiving/dispensing apparatus | |
US6101426A (en) | Sheet feeding device and correction method of sheet feed amount in the sheet feeding device | |
US20120092402A1 (en) | Inkjet printing apparatus and carriage control method | |
JP2006273580A (en) | Transport control device and image forming apparatus | |
US7703873B2 (en) | Method and apparatus for image registration | |
US9139323B2 (en) | Markless registration system for labels in labelling machines | |
JP4128901B2 (en) | Printer device | |
JP2008028737A (en) | Method of calculating print position of pattern on medium | |
US5853171A (en) | Media level indicator | |
US7654758B2 (en) | Systems and methods for determining media size | |
US7537334B2 (en) | Media linefeed error compensation method | |
JP2004276396A (en) | Method for calculating positional shift correction amount of heading and printer | |
CN113423579B (en) | Printer, control method for printer, and program | |
JP2012088914A (en) | Printer manufacturing method, printer adjustment method and printer | |
US5476328A (en) | Automatic platen gap adjusting device for printer | |
EP3950363A1 (en) | Printer, printer control method, and program | |
CN113348089A (en) | Printer, printer control method, and program | |
JP2008055604A (en) | Printer | |
WO2023100534A1 (en) | Printer, printer control method, and program | |
JP2008034950A (en) | Method for calculating print position of pattern on medium | |
US10421634B2 (en) | Medium feeding apparatus | |
JP2008100404A (en) | Method for calculating forming position of line on medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060303 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20071005 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20071016 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20071122 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20080430 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080515 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110523 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110523 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120523 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120523 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130523 Year of fee payment: 5 |
|
LAPS | Cancellation because of no payment of annual fees |