JP5888764B2 - Method for correcting transport distance of marked paper, thermal printer and program - Google Patents
Method for correcting transport distance of marked paper, thermal printer and program Download PDFInfo
- Publication number
- JP5888764B2 JP5888764B2 JP2011049506A JP2011049506A JP5888764B2 JP 5888764 B2 JP5888764 B2 JP 5888764B2 JP 2011049506 A JP2011049506 A JP 2011049506A JP 2011049506 A JP2011049506 A JP 2011049506A JP 5888764 B2 JP5888764 B2 JP 5888764B2
- Authority
- JP
- Japan
- Prior art keywords
- marked
- marked paper
- paper
- printed
- ruled line
- 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.)
- Active
Links
Images
Landscapes
- Electronic Switches (AREA)
- Printers Characterized By Their Purpose (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Description
本発明は、マーク付き用紙の搬送距離の補正方法、サーマルプリンタ及びプログラムに関する。 The present invention relates to a correction method for a conveyance distance of a marked sheet, a thermal printer, and a program.
従来より、レシートや控え(ジャーナル)用途に使用されるサーマルプリンタが知られている(例えば、特許文献1参照)。 2. Description of the Related Art Conventionally, thermal printers used for receipts and records (journals) are known (see, for example, Patent Document 1).
また、用紙内のマークを検出し、自動的に用紙を搬送する位置補正機能を有するサーマルプリンタが知られている。このサーマルプリンタは、罫線の印刷を行う。そして、ユーザが罫線と基準位置との間の距離を定規で測定し、サーマルプリンタは、その測定結果に基づいて、印刷位置のずれを補正している。 There is also known a thermal printer having a position correction function for detecting a mark in a sheet and automatically conveying the sheet. This thermal printer performs ruled line printing. Then, the user measures the distance between the ruled line and the reference position with a ruler, and the thermal printer corrects the printing position deviation based on the measurement result.
また、位置補正機能を有していないサーマルプリンタが知られている。このサーマルプリンタは、印刷機構とマーク検出センサを備え、印刷機構とマーク検出機構との間の距離を構造的に調整することで、印刷位置のずれを補正している。 Thermal printers that do not have a position correction function are also known. This thermal printer includes a printing mechanism and a mark detection sensor, and corrects the displacement of the printing position by structurally adjusting the distance between the printing mechanism and the mark detection mechanism.
しかしながら、罫線と基準位置との間の距離を定規で測定する場合、印刷位置のずれを補正するために定規が必ず必要になる。また、罫線と基準位置との間の距離を定規で測定するのはユーザにとって煩わしい。一方、印刷機構とマーク検出機構との間の距離を構造的に調整する場合、調整機構が必要になり、サーマルプリンタの製造コストが上昇する。 However, when the distance between the ruled line and the reference position is measured with a ruler, a ruler is always necessary to correct the printing position deviation. Also, it is troublesome for the user to measure the distance between the ruled line and the reference position with a ruler. On the other hand, when the distance between the printing mechanism and the mark detection mechanism is structurally adjusted, an adjustment mechanism is required, which increases the manufacturing cost of the thermal printer.
本発明の目的は、安価且つ容易に印刷位置のずれを補正することができるマーク付き用紙の搬送距離の補正方法、サーマルプリンタ及びプログラムを提供することにある。 An object of the present invention is to provide a method for correcting a conveyance distance of a marked sheet, a thermal printer, and a program that can easily and inexpensively correct a printing position shift.
上記目的を達成するため、マーク付き用紙の搬送距離の補正方法は、マーク付き用紙のマークを検出し、当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送した後、前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷し、前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得し、データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算することを特徴とする。かかる構成によれば、安価且つ容易に印刷位置のずれを補正することができる。 In order to achieve the above object, a method for correcting the transport distance of a marked paper is a predetermined distance while detecting a mark of the marked paper and recognizing the transport distance of the marked paper after the detection of the mark. after only by transporting the marked paper, and print a plurality of ruled lines are arranged at regular printing intervals in the conveying direction of the marked sheet on the marked sheet, the mark in the conveying direction of the marked sheet the identifier of the ruled line to be printed on the reference position is a lower end, by multiplying the actual printing interval of the border of the conveying direction of the marked sheet on the difference between the identifier of the ruled lines printed on the reference position, A correction value for the transport distance of the marked paper is acquired, and when the data is printed, the correction value is added to the transport distance of the marked paper. According to such a configuration, it is possible to easily correct the displacement of the printing position at low cost.
好ましくは、前記補正値を不揮発性メモリに保存することを特徴とする。かかる構成によれば、装置の電源が切断された後でも、補正値を保存することができる。 Preferably, the correction value is stored in a nonvolatile memory. According to this configuration, the correction value can be stored even after the apparatus is turned off.
好ましくは、前記基準位置は、前記マーク付き用紙の搬送方向における前記マークの下端に代えて、前記マーク付き用紙に前記マークから一定距離離れた位置にプレ印刷された罫線であることを特徴とする。かかる構成によれば、安価且つ容易に印刷位置のずれを補正することができる。
Preferably, the reference position, and wherein in place of the lower end of the mark in the conveying direction of the marked sheet, which is pre-printed ruled lines at a constant distance away from the mark to the marked paper To do. According to such a configuration, it is possible to easily correct the displacement of the printing position at low cost.
より好ましくは、前記プレ印刷された罫線の色は、前記マーク付き用紙に印刷される複数の罫線の色と異なることを特徴とする。かかる構成によれば、プレ印刷された罫線に重なる罫線を容易に判断することができる。 More preferably, the color of the pre-printed ruled line is different from the color of a plurality of ruled lines printed on the marked paper. According to such a configuration, it is possible to easily determine a ruled line that overlaps a preprinted ruled line.
好ましくは、前記複数の罫線は、前記マーク付き用紙の搬送方向に各罫線の幅に対応する間隔だけずらされ、且つ前記マーク付き用紙の幅方向に罫線同士が重ならないようにずらされて印刷されることを特徴とする。かかる構成によれば、ユーザが定規を使用せずに目視で補正値を把握することができる。 Preferably, the plurality of ruled lines are shifted by an interval corresponding to the width of each ruled line in the transport direction of the marked paper, and are printed so that the ruled lines are not overlapped in the width direction of the marked paper. characterized in that that. According to such a configuration, the user can grasp the correction value visually without using a ruler.
好ましくは、前記複数の罫線は、前記マーク付き用紙の搬送方向に、罫線と当該罫線の幅に対応する間隔とが交互に繰り返されるように印刷されることを特徴とする。かかる構成によれば、ユーザが定規を使用せずに目視で補正値を把握することができる。 Preferably, the plurality of ruled lines are printed such that ruled lines and intervals corresponding to the widths of the ruled lines are alternately repeated in the conveyance direction of the marked paper. According to such a configuration, the user can grasp the correction value visually without using a ruler.
好ましくは、前記複数の罫線は、前記マーク付き用紙の幅方向の長さが異なる複数の罫線であり、当該長さが異なる複数の罫線が前記マーク付き用紙の搬送方向に、交互に繰り返されていることを特徴とする。かかる構成によれば、ユーザが定規を使用せずに目視で補正値を把握することができる。 Preferably, the plurality of ruled lines are a plurality of ruled lines having different lengths in the width direction of the marked paper, and the plurality of ruled lines having different lengths are alternately repeated in the conveyance direction of the marked paper. It is characterized by being. According to such a configuration, the user can grasp the correction value visually without using a ruler.
好ましくは、前記複数の罫線の近傍に各罫線を識別する識別子を印刷することを特徴とする。かかる構成によれば、基準位置に重なっている罫線を容易に識別することができる。 Preferably, an identifier for identifying each ruled line is printed in the vicinity of the plurality of ruled lines. With this configuration, it is possible to easily identify a ruled line that overlaps the reference position.
上記目的を達成するため、サーマルプリンタは、マーク付き用紙のマークを検出する検出手段と、当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送する制御を行う制御手段と、前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷する印刷手段と、前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得する取得手段と、データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する加算手段とを備えることを特徴とする。かかる構成によれば、安価且つ容易に印刷位置のずれを補正することができる。 In order to achieve the above object, the thermal printer detects the mark on the marked paper and, after detecting the mark, recognizes the transport distance of the marked paper and recognizes the transport distance of the marked paper by a predetermined distance. and control means for performing control to convey the sheet, and printing means for printing a plurality of borders to the marked paper to be placed at a fixed print gap in the conveying direction of the marked sheet, the conveying direction of the marked sheet multiplying the identifier of the ruled line to be printed on the reference position is a lower end of the mark, the actual printing interval of the border of the conveying direction of the marked sheet on the difference between the identifier of the ruled lines printed on the reference position in the An acquisition means for acquiring a correction value for the conveyance distance of the marked paper, and the correction to the conveyance distance of the marked paper when printing the data. Characterized by an adding means for adding. According to such a configuration, it is possible to easily correct the displacement of the printing position at low cost.
上記目的を達成するため、プログラムは、コンピュータを、マーク付き用紙のマークを検出する検出手段、当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送する制御を行う制御手段、前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷する印刷手段、前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得する取得手段、及びデータを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する加算手段として機能させることを特徴とする。 In order to achieve the above object, the program causes the computer to detect the mark on the marked paper, and after detecting the mark, the program recognizes the transport distance of the marked paper and recognizes the mark by a predetermined distance. control means for controlling for conveying paper attached, printing means for printing a plurality of borders to the marked paper to be placed at a fixed print gap in the conveying direction of the marked sheet, the conveying direction of the marked sheet the identifier of the ruled line to be printed on the reference position is a lower end of the mark, multiplying the actual printing interval of the border of the conveying direction of the marked sheet on the difference between the identifier of the ruled lines printed on the reference position The acquisition means for acquiring the correction value for the transport distance of the marked paper, and the print distance before the marked paper when printing the data. Characterized in that to function as addition means for adding the correction value.
本発明によれば、安価且つ容易に印刷位置のずれを補正することができる。 According to the present invention, it is possible to correct the displacement of the printing position inexpensively and easily.
以下、図面を参照しながら本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本実施の形態に係るサーマルプリンタの概略構成図である。 FIG. 1 is a schematic configuration diagram of a thermal printer according to the present embodiment.
図1では、サーマルプリンタ1は、印刷手段として機能する印刷機構11、搬送手段として機能する用紙搬送機構12、検出手段として機能するマーク検出機構13、及び制御回路20を備えている。印刷機構11は、用紙搬送方向と垂直な方向(即ち、マーク付き用紙30の幅方向)に、感熱用紙であるマーク付き用紙30を発色させる複数の発熱体11Aを有している。用紙搬送機構12は、ローラ12A及びステッピングモータ12Bを有している。マーク検出機構13は、赤外線の発光ダイオードと赤外線を受光して電流を増幅させるフォトトランジスタとで構成される反射型フォトセンサ13Aをマーク検出センサとして備えている。
In FIG. 1, the thermal printer 1 includes a
サーマルプリンタ1の制御回路20は、MCU(Micro Controller Unit)21、印刷制御部22、用紙搬送制御部23、マーク検出制御部24、不揮発性メモリ25、及び入力部27を有している。MCU21は、サーマルプリンタ1の全体の動作を制御する。また、MCU21は、取得手段及び加算手段の一例として機能する。印刷制御部22は、印刷機構11の複数の発光体11Aに流す電流を制御することで、印刷データを印刷機構11に送信する。用紙搬送制御部23は、MCU21から指令に応じて、用紙搬送機構12のステッピングモータ12Bの動作を制御する。マーク検出制御部24は、反射型フォトセンサ13Aの出力電流を電圧に変換する。不挿発性メモリ25は、後述する印刷位置のずれを補正するための補正値を格納する。入力部27は、データを入力するためのインターフェースであり、表示装置とボタンとを含むインターフェース又はコンピュータ35に接続されるインターフェースである。
The
印刷動作は、印刷機構11と用紙搬送機構12によって行われ、マーク付き用紙30が印刷機構11と用紙搬送機構12との間で搬送される。MCU21の指令によって印刷制御部22が複数の発熱体11Aに電流を流すことで、印刷機構11は、マーク付き用紙30の幅方向にドット形状の印刷を行う。用紙搬送機構12は、用紙搬送制御部23を介してMCU21の指令を受信し、1ドットの画素に相当する距離の用紙搬送を繰り返して、画像や文字を形成する。
The printing operation is performed by the
一方、マーク検出動作は用紙搬送機構12とマーク検出機構13によって行われる。マーク検出機構13は、マーク付き用紙30に赤外光を反射し、フォトダイオードで発生した電流量を検知することで、マーク付き用紙30のマークが反射型フォトセンサ13A上を通過したか否かを検出する。
On the other hand, the mark detection operation is performed by the
また、マーク付き用紙30では、マークが黒色であり、用紙自体は白色である。反射型フォトセンサ13Aでは、用紙の白部に対応する出力電力が大きくなり、用紙の黒部(即ちマーク)に対応する出力電力が小さくなる。反射型フォトセンサ13Aの出力電流はマーク検出制御部24によって電圧に変換され、当該電圧はMCU21に含まれるAD変換器26によってデジタル値として読み込まれる。これにより、MCU21はマークの通過を検知している。同時に、MCU21は、用紙搬送制御部23を介してマーク付き用紙30の搬送距離を認識しながら、マーク付き用紙30の搬送制御を行っている。従って、MCU21は、マークの通過を検知した後のマーク付き用紙30の搬送距離を認識することが可能である。
In the
図2(A)は、印刷前のマーク付き用紙30の一例を示す図である。図2(B)は、印刷後に位置ずれが生じていない場合のマーク付き用紙30の一例を示す図である。図2(C)は、印刷後に位置ずれが生じている場合のマーク付き用紙30の一例を示す図である。
FIG. 2A is a diagram illustrating an example of the
図2(A)に示すように、マーク付き用紙30には、所定のフォーマットでマーク31と表32のような下地が予め印刷されている。マーク付き用紙30は、マークによって決められている位置に停止される。表32には、図2(B)に示すように、予め決められたデータが印刷される。尚、下地は、表32に限定されず、下地はなくてもよい。
As shown in FIG. 2A, a
ところで、同一機種のサーマルプリンタでもマーク検出機構13と印刷機構11との間の距離が異なる場合がある。これは、サーマルプリンタの製造工程において、マーク検出機構13、印刷機構11、又は反射型フォトセンサ13Aなどの取り付け位置がわずかにずれることがあるからである。このため、図2(C)に示すように、データが適正な位置に印刷されない場合がある。
Incidentally, the distance between the
そこで、本実施の形態のサーマルプリンタ1では、安価で且つ容易な方法で印刷位置のずれを補正する。 Therefore, the thermal printer 1 according to the present embodiment corrects the printing position deviation by an inexpensive and easy method.
まず、従来の印刷位置のずれを補正する方法を説明する。 First, a conventional method of correcting a printing position shift will be described.
従来の印刷位置のずれを補正する方法では、ユーザが罫線を書く位置をサーマルプリンタ1に設定する。例えば、ユーザは、マーク31から1cm離れた位置をサーマルプリンタ1に設定する。その後、サーマルプリンタ1は、実際にマーク付き用紙30に罫線を印刷する。具体的には、サーマルプリンタ1は、マーク31を検出した後、マーク付き用紙30を1cm搬送して、罫線を印刷する。罫線の印刷結果の一例を図3(A)に示す。ユーザは、マーク31と罫線との距離を定規で計測する。
In the conventional method of correcting the deviation of the printing position, the position where the user writes a ruled line is set in the thermal printer 1. For example, the user sets a position 1 cm away from the
例えば、計測値が0.9cmである場合には、上記の設定値(1cm)と計測値(例えば、0.9cm)との差分が補正値(0.1cm)になる。また、計測値が1.1cmである場合には、補正値は−0.1cmになる。ユーザは、補正値をサーマルプリンタ1に設定する。これにより、サーマルプリンタ1は、マーク検出時に、用紙搬送距離に補正値を加算してマーク付き用紙30を搬送するので、印刷位置のずれが補正される。
For example, when the measured value is 0.9 cm, the difference between the set value (1 cm) and the measured value (for example, 0.9 cm) is the correction value (0.1 cm). Further, when the measured value is 1.1 cm, the correction value is −0.1 cm. The user sets the correction value in the thermal printer 1. Thereby, the thermal printer 1 adds the correction value to the paper conveyance distance and conveys the marked
次に、本実施の形態の印刷位置のずれを補正する方法を説明する。 Next, a method for correcting a printing position shift according to the present embodiment will be described.
図4は、第1の補正処理を示すフローチャートである。ここでは、マーク検出機構13と印刷機構11との間の距離をXaとする。
FIG. 4 is a flowchart showing the first correction process. Here, the distance between the
まず、マーク検出機構13がマーク31を検出すると(ステップS1)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa−1)mmだけ搬送する(ステップS2)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS3)。
First, when the
ここで、印刷されるべき罫線の一例を図3(B)に示す。マーク付き用紙30上に印刷された罫線の一例を図3(C)に示す。図3(B)では、16本の罫線51A〜51Pがマーク付き用紙30上に印刷されている。マーク31及び罫線51A〜51Pは黒色である。また、罫線51A〜51Pは用紙搬送方向に0.125mm間隔でずれており、用紙幅方向に罫線同士が重ならないようにずらされている。
Here, an example of ruled lines to be printed is shown in FIG. An example of ruled lines printed on the
また、図3(C)ではマーク31の下端が基準位置になる。基準位置とは、印刷位置のずれを検出するための位置である。上述したように、マーク付き用紙30が(Xa−1)mmだけ搬送された後に、罫線が0.125mm間隔で印刷されるので、印刷位置のずれがない場合には、罫線51Hがマーク31の下端(即ち、基準位置)と重なる。しなかしながら、図3(C)では、基準位置が罫線51Fに重なっている。従って、距離Xaよりも罫線2本分だけ短い位置に罫線が印刷されているので、0.25mm(=0.125mm*2)が補正値となる。このように、罫線51A〜51Pは、用紙搬送方向に等間隔で印刷され、且つ用紙幅方向に罫線同士が重ならないように印刷されるので、ユーザは定規を使用せずに、目視で補正値を把握することができる。尚、図3(C)では、罫線51Fを説明のために白色で表示しているが、実際の罫線51Fは、他の罫線と同じように黒色である。
In FIG. 3C, the lower end of the
図4に戻り、ユーザは、基準位置に重なっている罫線の番号を入力部27を介してMCU21に設定する(ステップS4)。尚、罫線51A〜51Pには、予め1〜16の番号がそれぞれ割り当てられている。図3(C)では、基準位置が罫線51Fに重なっているので、ユーザは罫線51Fの番号「6」をMCU21に設定する。尚、図3(D)に示すように、罫線の印刷時に、各罫線の上又は下に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。また、罫線の印刷時に、各罫線の左又は右に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。これにより、基準位置に重なっている罫線の番号を容易に識別することができる。
Returning to FIG. 4, the user sets the number of the ruled line overlapping the reference position in the
その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS5)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図3(C)では、0.25mm)を不揮発性メモリ25に保存し(ステップS6)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。
Thereafter, the
図4の第1の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。
In the first correction process of FIG. 4, the
図5は、印刷処理を示すフローチャートである。ここでは、サーマルプリンタ1は、マーク31の下端(基準位置)からXb及びXcmmだけ離れた位置に複数のデータを印刷するものとする。
FIG. 5 is a flowchart showing the printing process. Here, it is assumed that the thermal printer 1 prints a plurality of data at positions separated from the lower end (reference position) of the
まず、MCU21は補正値を不揮発性メモリ25から読み出す(ステップS11)。マーク検出機構13がマーク31を検出すると(ステップS12)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa+Xb+補正値)mmだけ搬送する(ステップS13)。用紙搬送機構12はマーク付き用紙30上に最初のデータを印刷する(ステップS14)。その後、用紙搬送機構12はMCU21からの指令によってマーク付き用紙30をXcmmだけ搬送する(ステップS15)。用紙搬送機構12はマーク付き用紙30上に次のデータを印刷する(ステップS16)。このように、最初のデータを印刷する際に(ステップS13)、用紙搬送距離(ここではXa+Xb)に補正値が付加されるので、最初のデータ及び次のデータの印刷位置は正確に補正される。
First, the
そして、MCU21は印刷終了の条件を満たすか否かを判断する(ステップS17)。印刷終了の条件は、例えば、予め設定された部数の印刷が完了したこと、又は印刷終了指示がMCU21に入力されたことである。ステップS17でYESの場合には、本処理を終了する。一方、ステップS17でNOの場合には、手順はステップS12に戻る。
Then, the
次に、第2の補正処理を説明する。第2の補正処理は、基準位置がプレ印刷された淡い色の罫線である点で第1の補正処理とは異なる。 Next, the second correction process will be described. The second correction process is different from the first correction process in that the reference position is a light-colored ruled line pre-printed.
マーク付き用紙30上にプレ印刷された罫線の一例を図6(A)に示す。また、図6(A)のプレ印刷された罫線上に印刷位置を補正するための罫線が印刷される例を図6(B)に示す。図6(A)に示すマーク31は黒色であり、プレ印刷された罫線61は淡い色(例えば、薄い青色)である。また、図6(B)に示す16本の罫線は、黒色であり、図3(B)の罫線51A〜51Pと同様である。プレ印刷された罫線61は、基準位置を示し、マーク31の下端から一定距離Xdだけ(例えば1cm)離れた位置に予め印刷されているものとする。
An example of ruled lines preprinted on the
図7は、第2の補正処理を示すフローチャートである。ここでは、マーク検出機構13と印刷機構11との間の距離をXaとする。
FIG. 7 is a flowchart showing the second correction process. Here, the distance between the
まず、マーク検出機構13がマーク31を検出すると(ステップS31)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa+Xd−1)mmだけ搬送する(ステップS32)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS33)。
First, when the
上述したように、マーク付き用紙30が(Xa+Xd−1)mmだけ搬送された後に、罫線が0.125mm間隔で印刷されるので、印刷位置のずれがない場合には、罫線51Hがプレ印刷された罫線61(基準位置)と重なる。しなかしながら、図6(B)では、基準位置が罫線51Fに重なっている。従って、距離Xa+Xdよりも罫線2本分だけ短い位置に罫線が印刷されているので、0.25mm(=0.125mm*2)が補正値となる。図7に戻り、ユーザは、基準位置に重なっている罫線の番号を入力部27を介してMCU21に設定する(ステップS34)。尚、罫線51A〜51Pには、予め1〜16の番号がそれぞれ割り当てられている。図6(B)では、基準位置が罫線51Fに重なっているので、ユーザは罫線51Fの番号「6」をMCU21に設定する。尚、図3(D)に示すように、罫線の印刷時に、各罫線の上又は下に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。また、罫線の印刷時に、各罫線の左又は右に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。これにより、基準位置に重なっている罫線の番号を容易に識別することができる。
As described above, the ruled lines are printed at intervals of 0.125 mm after the
その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS35)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図6(B)では、0.25mm)を不揮発性メモリ25に保存し(ステップS36)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。
Thereafter, the
図7の第2の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。
In the second correction process of FIG. 7, the
また、第2の補正処理では、罫線61は淡い色(例えば、薄い青色)であり、罫線51A〜51Pは黒色であるので、罫線61に重なる罫線を容易に判断することができる。また、第2の補正処理では、マーク付き用紙30に罫線61がプレ印刷されるので、マーク31が用紙の裏面に印刷され、罫線51A〜51P及び罫線61が用紙の表面に印刷される場合でも、基準位置を規定することができる。
Further, in the second correction process, the ruled
次に、第3の補正処理を説明する。第3の補正処理は、基準位置がマーク付き用紙30上のラベルの切れ目である点で第1の補正処理とは異なる。
Next, the third correction process will be described. The third correction process is different from the first correction process in that the reference position is a label break on the
マーク付き用紙30上に印刷された罫線の一例を図8に示す。図8のマーク付き用紙30は、下地が剥離紙であり、印刷領域がラベル34である。このマーク付き用紙30には、一定長のラベル34が繰り返し形成されている。第3の補正処理では、ラベル34間の切れ目71を基準位置とする。ラベル34間の切れ目71は、マーク31の下端から一定距離Xeだけ(例えば6cm)離れた位置にあるものとする。図8に示す16本の罫線は、黒色であり、図3(B)の罫線51A〜51Pと同様である。
An example of ruled lines printed on the
図9は、第3の補正処理を示すフローチャートである。ここでは、マーク検出機構13と印刷機構11との間の距離をXaとする。
FIG. 9 is a flowchart showing the third correction process. Here, the distance between the
まず、マーク検出機構13がマーク31を検出すると(ステップS41)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa+Xe−1)mmだけ搬送する(ステップS42)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS43)。
First, when the
上述したように、マーク付き用紙30が(Xa+Xe−1)mmだけ搬送された後に、罫線が0.125mm間隔で印刷されるので、印刷位置のずれがない場合には、罫線51Hがラベル34間の切れ目71(基準位置)と重なる。しなかしながら、図8では、基準位置が罫線51Fに重なっている。従って、距離Xa+Xeよりも罫線2本分だけ短い位置に罫線が印刷されているので、0.25mm(=0.125mm*2)が補正値となる。 図9に戻り、ユーザは、基準位置に重なっている罫線の番号を入力部27を介してMCU21に設定する(ステップS44)。尚、罫線51A〜51Pには、予め1〜16の番号がそれぞれ割り当てられている。図8では、基準位置が罫線51Fに重なっているので、ユーザは罫線51Fの番号「6」をMCU21に設定する。尚、図3(D)に示すように、罫線の印刷時に、各罫線の上又は下に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。また、罫線の印刷時に、各罫線の左又は右に罫線を識別する識別子(例えば番号又は記号)を印刷してもよい。これにより、基準位置に重なっている罫線の番号を容易に識別することができる。
As described above, the ruled lines are printed at intervals of 0.125 mm after the
その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS45)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図8では、0.25mm)を不揮発性メモリ25に保存し(ステップS46)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。
Thereafter, the
図9の第3の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。
In the third correction process of FIG. 9, the
また、第3の補正処理では、ラベル34間の切れ目71を基準位置として利用するので、第2の補正処理に示す淡い色の罫線のプレ印刷が不要である。また、第3の補正処理では、マーク31が用紙の裏面に印刷され、罫線51A〜51Pが用紙の表面に印刷される場合でも、基準位置を規定することができる。
In the third correction process, since the
第1〜第3の補正処理では、図3(B)、図6(B)及び図8に示すように、罫線51A〜51Pが用紙幅方向にずれるようにマーク付き用紙30に印刷されている。マーク付き用紙30に印刷される罫線は、例えば、図10(A)に示すように、0.125mm間隔で印刷される部分と印刷されない部分が繰り返される構成でもよい。また、図10(B)に示すように、マーク付き用紙30に印刷される罫線は、千鳥格子状に形成されてもよい。さらに、図10(C)に示すように、マーク付き用紙30に印刷される罫線は、長さの違う罫線が繰り返されるように形成されてもよい、即ち、櫛歯状に形成されてもよい。
In the first to third correction processes, as shown in FIGS. 3B, 6B, and 8, the ruled
また、第1〜第3の補正処理では、各罫線の幅は0.125mmであるが、これに限定されるものではない。 In the first to third correction processes, the width of each ruled line is 0.125 mm, but the present invention is not limited to this.
以上説明したように、本実施の形態によれば、サーマルプリンタ1は、マーク付き用紙のマークを検出するマーク検出機構13と、当該マークの検出後、予め決められた距離だけマーク付き用紙を搬送する用紙搬送機構12と、マーク付き用紙に複数の罫線を印刷する印刷機構11と、基準位置に印刷されるべき罫線の識別子と実際に基準位置に印刷された罫線の識別子との差分に各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得すると共にデータを印刷する際に、マーク付き用紙の搬送距離に補正値を加算するMCU21とを備える。よって、印刷位置のずれを定規で計測することなく、安価且つ容易に印刷位置のずれを補正することができる。
As described above, according to the present embodiment, the thermal printer 1 conveys the marked paper by a predetermined distance after the
尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。 The present invention is not limited to the above-described embodiment, and can be implemented with various modifications within a range not departing from the gist thereof.
1 サーマルプリンタ
11 印刷機構
11A 発熱体
12 用紙搬送機構
12A ローラ
12B ステッピングモータ
13 マーク検出機構
13A 反射型フォトセンサ
20 制御回路
21 MCU
22 印刷制御部
23 用紙搬送制御部
24 マーク検出制御部
25 不揮発性メモリ
26 AD変換器
27 入力部
DESCRIPTION OF SYMBOLS 1
DESCRIPTION OF
Claims (10)
当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送した後、前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷し、
前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得し、
データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する
ことを特徴とするマーク付き用紙の搬送距離の補正方法。 Detect marks on marked paper,
After the mark is detected, the marked paper is transported by a predetermined distance while recognizing the transport distance of the marked paper, and then a plurality of prints are arranged at a constant printing interval in the transport direction of the marked paper. Printed on the marked paper,
The difference between the identifier of the ruled line to be printed at the reference position that is the lower end of the mark in the transport direction of the marked paper and the identifier of the ruled line actually printed at the reference position is the difference in the transport direction of the marked paper. By multiplying the printing interval of each ruled line, obtain the correction value of the transport distance of marked paper,
A correction method for the transport distance of a marked paper, wherein the correction value is added to the transport distance of the marked paper when printing data.
当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送する制御を行う制御手段と、
前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷する印刷手段と、
前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得する取得手段と、
データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する加算手段と
を備えることを特徴とするサーマルプリンタ。 Detection means for detecting marks on the marked paper;
Control means for performing control to convey the marked paper by a predetermined distance while recognizing the conveyance distance of the marked paper after detection of the mark;
Printing means for printing a plurality of ruled lines arranged at a constant printing interval in the transport direction of the marked paper on the marked paper;
The difference between the identifier of the ruled line to be printed at the reference position that is the lower end of the mark in the transport direction of the marked paper and the identifier of the ruled line actually printed at the reference position is the difference in the transport direction of the marked paper. An obtaining means for obtaining a correction value of the transport distance of the marked paper by multiplying the printing interval of each ruled line;
An addition unit that adds the correction value to the transport distance of the marked sheet when printing data.
マーク付き用紙のマークを検出する検出手段、
当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送する制御を行う制御手段、
前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷する印刷手段、
前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得する取得手段、及び データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する加算手段として機能させることを特徴とするプログラム。 Computer
Detection means for detecting marks on marked paper,
A control means for performing control for conveying the marked paper by a predetermined distance while recognizing the conveyance distance of the marked paper after the detection of the mark;
Printing means for printing a plurality of ruled lines arranged at a constant printing interval in the conveyance direction of the marked paper on the marked paper;
The difference between the identifier of the ruled line to be printed at the reference position that is the lower end of the mark in the transport direction of the marked paper and the identifier of the ruled line actually printed at the reference position is the difference in the transport direction of the marked paper. An acquisition unit that acquires a correction value for the conveyance distance of the marked paper by multiplying the printing interval of each ruled line, and an addition unit that adds the correction value to the conveyance distance of the marked paper when printing data A program characterized by functioning as
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011049506A JP5888764B2 (en) | 2011-03-07 | 2011-03-07 | Method for correcting transport distance of marked paper, thermal printer and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011049506A JP5888764B2 (en) | 2011-03-07 | 2011-03-07 | Method for correcting transport distance of marked paper, thermal printer and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012183767A JP2012183767A (en) | 2012-09-27 |
JP5888764B2 true JP5888764B2 (en) | 2016-03-22 |
Family
ID=47014279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011049506A Active JP5888764B2 (en) | 2011-03-07 | 2011-03-07 | Method for correcting transport distance of marked paper, thermal printer and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5888764B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7374603B2 (en) | 2019-03-29 | 2023-11-07 | キヤノン株式会社 | Information processing device, control method for information processing device, program, and system |
JP7242385B2 (en) * | 2019-03-29 | 2023-03-20 | キヤノン株式会社 | IMAGE POSITION SETTING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09164749A (en) * | 1995-12-18 | 1997-06-24 | Suzuka Fuji Xerox Kk | Printing start position adjustment method for image forming device |
JPH1035054A (en) * | 1996-07-22 | 1998-02-10 | Pfu Ltd | Paper margin adjusting method |
JP2989561B2 (en) * | 1997-02-01 | 1999-12-13 | コクヨ株式会社 | Form printing system and alignment sheet |
JPH11192772A (en) * | 1997-12-27 | 1999-07-21 | Canon Aptex Inc | Recorder and method for recording test pattern |
JP2004009713A (en) * | 2002-06-11 | 2004-01-15 | Canon Inc | Recording system, recorder, recording medium, and method of correcting deviation in recording |
-
2011
- 2011-03-07 JP JP2011049506A patent/JP5888764B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2012183767A (en) | 2012-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5803093B2 (en) | Printing apparatus and control method thereof | |
RU2598289C2 (en) | Printing device, control method and storage medium | |
JP4771023B1 (en) | Long medium | |
EP3033235B1 (en) | System and method for determining receiver type in a thermal printer | |
JP5888764B2 (en) | Method for correcting transport distance of marked paper, thermal printer and program | |
JP2010064271A (en) | Thermal printer and control method thereof | |
JP5419205B2 (en) | Label detection device | |
CN113085383B (en) | Thermal printer and storage medium | |
JP2004223815A (en) | Device for detecting side edge of recording paper and printer sheet | |
US20170039459A1 (en) | Control Method of a Printer, Program, and Recording medium | |
JP2012183671A (en) | Printer and its control program | |
JP6399308B2 (en) | Thermal processing machine | |
JPH09164749A (en) | Printing start position adjustment method for image forming device | |
JP5030288B2 (en) | Printer | |
JP2006289868A (en) | Method and device of adjusting margin, line printer and printing system | |
JP5117907B2 (en) | Master status detection device | |
JP5951298B2 (en) | Thermal printer and printing paper position correction method | |
JP2019077540A (en) | Print control device, positioning control device, positioning control method and positioning control program | |
WO2023100534A1 (en) | Printer, printer control method, and program | |
JP6697956B2 (en) | Image forming device | |
JP5617772B2 (en) | Long media | |
JP5994565B2 (en) | Image forming apparatus | |
JP2005131912A (en) | Printing apparatus | |
JP5716658B2 (en) | Image forming apparatus | |
KR200380004Y1 (en) | Device for inspecting a printed surface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20131204 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140908 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140916 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20141111 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20150526 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150821 |
|
A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20150828 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20151020 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151217 |
|
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: 20160209 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160212 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5888764 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |