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 PDF

Info

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
Application number
JP2011049506A
Other languages
Japanese (ja)
Other versions
JP2012183767A (en
Inventor
千葉 雅史
雅史 千葉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Component Ltd
Original Assignee
Fujitsu Component Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Component Ltd filed Critical Fujitsu Component Ltd
Priority to JP2011049506A priority Critical patent/JP5888764B2/en
Publication of JP2012183767A publication Critical patent/JP2012183767A/en
Application granted granted Critical
Publication of JP5888764B2 publication Critical patent/JP5888764B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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.

特開2009−255348号公報JP 2009-255348 A

しかしながら、罫線と基準位置との間の距離を定規で測定する場合、印刷位置のずれを補正するために定規が必ず必要になる。また、罫線と基準位置との間の距離を定規で測定するのはユーザにとって煩わしい。一方、印刷機構とマーク検出機構との間の距離を構造的に調整する場合、調整機構が必要になり、サーマルプリンタの製造コストが上昇する。   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.

本実施の形態に係るサーマルプリンタの概略構成図である。It is a schematic block diagram of the thermal printer which concerns on this Embodiment. (A)は、印刷前のマーク付き用紙30の一例を示す図である。(B)は、印刷後に位置ずれが生じていない場合のマーク付き用紙30の一例を示す図である。(C)は、印刷後に位置ずれが生じている場合のマーク付き用紙30の一例を示す図である。(A) is a figure which shows an example of the paper 30 with the mark before printing. (B) is a diagram illustrating an example of the marked paper 30 when no positional deviation has occurred after printing. (C) is a diagram illustrating an example of the marked paper 30 when a positional deviation has occurred after printing. (A)は、罫線の印刷結果の一例を示す図である。(B)は、印刷されるべき罫線の一例を示す図である。(C)は、マーク付き用紙30上に印刷された罫線の一例を示す図である。(D)は、罫線及び罫線の番号が印刷される例を示す図である。(A) is a figure which shows an example of the printing result of a ruled line. (B) is a figure which shows an example of the ruled line which should be printed. FIG. 8C is a diagram illustrating an example of ruled lines printed on the marked paper 30. (D) is a diagram showing an example in which ruled lines and ruled line numbers are printed. 第1の補正処理を示すフローチャートである。It is a flowchart which shows a 1st correction process. 印刷処理を示すフローチャートである。It is a flowchart which shows a printing process. (A)はマーク付き用紙30上にプレ印刷された罫線の一例を示す図である。(B)は、(A)のプレ印刷された罫線上に印刷位置を補正するための罫線が印刷される例を示す図である。(A) is a diagram showing an example of ruled lines preprinted on the marked paper 30. FIG. (B) is a diagram showing an example in which a ruled line for correcting the printing position is printed on the preprinted ruled line of (A). 第2の補正処理を示すフローチャートである。It is a flowchart which shows a 2nd correction process. マーク付き用紙30上に印刷された罫線の一例を示す図である。4 is a diagram illustrating an example of ruled lines printed on a marked paper 30. FIG. 第3の補正処理を示すフローチャートである。It is a flowchart which shows a 3rd correction process. (A)〜(C)は、マーク付き用紙30に印刷される罫線の変形例を示す図である。(A)-(C) are figures which show the modification of the ruled line printed on the paper 30 with a mark.

以下、図面を参照しながら本発明の実施の形態を説明する。   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 printing mechanism 11 that functions as a printing unit, a paper conveyance mechanism 12 that functions as a conveyance unit, a mark detection mechanism 13 that functions as a detection unit, and a control circuit 20. The printing mechanism 11 has a plurality of heating elements 11A that color the marked paper 30 as thermal paper in a direction perpendicular to the paper transport direction (that is, the width direction of the marked paper 30). The paper transport mechanism 12 includes a roller 12A and a stepping motor 12B. The mark detection mechanism 13 includes a reflection type photosensor 13A that includes an infrared light emitting diode and a phototransistor that receives infrared rays and amplifies current as a mark detection sensor.

サーマルプリンタ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 control circuit 20 of the thermal printer 1 includes an MCU (Micro Controller Unit) 21, a print control unit 22, a paper transport control unit 23, a mark detection control unit 24, a nonvolatile memory 25, and an input unit 27. The MCU 21 controls the overall operation of the thermal printer 1. The MCU 21 functions as an example of an acquisition unit and an addition unit. The print control unit 22 transmits print data to the printing mechanism 11 by controlling the current that flows through the plurality of light emitters 11 </ b> A of the printing mechanism 11. The paper transport control unit 23 controls the operation of the stepping motor 12B of the paper transport mechanism 12 in response to a command from the MCU 21. The mark detection control unit 24 converts the output current of the reflective photosensor 13A into a voltage. The non-insertion memory 25 stores a correction value for correcting a printing position shift described later. The input unit 27 is an interface for inputting data, and is an interface including a display device and buttons or an interface connected to the computer 35.

印刷動作は、印刷機構11と用紙搬送機構12によって行われ、マーク付き用紙30が印刷機構11と用紙搬送機構12との間で搬送される。MCU21の指令によって印刷制御部22が複数の発熱体11Aに電流を流すことで、印刷機構11は、マーク付き用紙30の幅方向にドット形状の印刷を行う。用紙搬送機構12は、用紙搬送制御部23を介してMCU21の指令を受信し、1ドットの画素に相当する距離の用紙搬送を繰り返して、画像や文字を形成する。   The printing operation is performed by the printing mechanism 11 and the paper transport mechanism 12, and the marked paper 30 is transported between the printing mechanism 11 and the paper transport mechanism 12. The print control unit 22 causes a current to flow through the plurality of heating elements 11 </ b> A in response to an instruction from the MCU 21, so that the printing mechanism 11 performs dot-shaped printing in the width direction of the marked paper 30. The paper transport mechanism 12 receives an instruction from the MCU 21 via the paper transport control unit 23 and repeats paper transport for a distance corresponding to one dot pixel to form an image or a character.

一方、マーク検出動作は用紙搬送機構12とマーク検出機構13によって行われる。マーク検出機構13は、マーク付き用紙30に赤外光を反射し、フォトダイオードで発生した電流量を検知することで、マーク付き用紙30のマークが反射型フォトセンサ13A上を通過したか否かを検出する。   On the other hand, the mark detection operation is performed by the paper transport mechanism 12 and the mark detection mechanism 13. The mark detection mechanism 13 reflects infrared light on the marked paper 30 and detects the amount of current generated by the photodiode, thereby determining whether or not the mark on the marked paper 30 has passed over the reflective photosensor 13A. Is detected.

また、マーク付き用紙30では、マークが黒色であり、用紙自体は白色である。反射型フォトセンサ13Aでは、用紙の白部に対応する出力電力が大きくなり、用紙の黒部(即ちマーク)に対応する出力電力が小さくなる。反射型フォトセンサ13Aの出力電流はマーク検出制御部24によって電圧に変換され、当該電圧はMCU21に含まれるAD変換器26によってデジタル値として読み込まれる。これにより、MCU21はマークの通過を検知している。同時に、MCU21は、用紙搬送制御部23を介してマーク付き用紙30の搬送距離を認識しながら、マーク付き用紙30の搬送制御を行っている。従って、MCU21は、マークの通過を検知した後のマーク付き用紙30の搬送距離を認識することが可能である。   In the marked paper 30, the mark is black and the paper itself is white. In the reflective photosensor 13A, the output power corresponding to the white portion of the paper increases, and the output power corresponding to the black portion (that is, the mark) of the paper decreases. The output current of the reflective photosensor 13A is converted into a voltage by the mark detection control unit 24, and the voltage is read as a digital value by the AD converter 26 included in the MCU 21. Thereby, the MCU 21 detects the passage of the mark. At the same time, the MCU 21 performs transport control of the marked paper 30 while recognizing the transport distance of the marked paper 30 via the paper transport control unit 23. Therefore, the MCU 21 can recognize the transport distance of the marked paper 30 after detecting the passage of the mark.

図2(A)は、印刷前のマーク付き用紙30の一例を示す図である。図2(B)は、印刷後に位置ずれが生じていない場合のマーク付き用紙30の一例を示す図である。図2(C)は、印刷後に位置ずれが生じている場合のマーク付き用紙30の一例を示す図である。   FIG. 2A is a diagram illustrating an example of the marked sheet 30 before printing. FIG. 2B is a diagram illustrating an example of the marked paper 30 when there is no positional deviation after printing. FIG. 2C is a diagram illustrating an example of the marked sheet 30 in a case where a positional deviation has occurred after printing.

図2(A)に示すように、マーク付き用紙30には、所定のフォーマットでマーク31と表32のような下地が予め印刷されている。マーク付き用紙30は、マークによって決められている位置に停止される。表32には、図2(B)に示すように、予め決められたデータが印刷される。尚、下地は、表32に限定されず、下地はなくてもよい。   As shown in FIG. 2A, a mark 31 and a background as shown in Table 32 are printed in advance on the marked paper 30 in a predetermined format. The marked sheet 30 is stopped at a position determined by the mark. In the table 32, predetermined data is printed as shown in FIG. The base is not limited to Table 32, and the base may be omitted.

ところで、同一機種のサーマルプリンタでもマーク検出機構13と印刷機構11との間の距離が異なる場合がある。これは、サーマルプリンタの製造工程において、マーク検出機構13、印刷機構11、又は反射型フォトセンサ13Aなどの取り付け位置がわずかにずれることがあるからである。このため、図2(C)に示すように、データが適正な位置に印刷されない場合がある。   Incidentally, the distance between the mark detection mechanism 13 and the printing mechanism 11 may be different even in the same type of thermal printer. This is because the attachment positions of the mark detection mechanism 13, the printing mechanism 11, the reflective photosensor 13A, and the like may be slightly shifted in the manufacturing process of the thermal printer. For this reason, as shown in FIG. 2C, data may not be printed at an appropriate position.

そこで、本実施の形態のサーマルプリンタ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 mark 31 in the thermal printer 1. Thereafter, the thermal printer 1 actually prints ruled lines on the marked paper 30. Specifically, after detecting the mark 31, the thermal printer 1 conveys the marked paper 30 by 1 cm and prints ruled lines. An example of the ruled line printing result is shown in FIG. The user measures the distance between the mark 31 and the ruled line with a ruler.

例えば、計測値が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 paper 30 when the mark is detected, so that the deviation of the printing position is corrected.

次に、本実施の形態の印刷位置のずれを補正する方法を説明する。   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 mark detection mechanism 13 and the printing mechanism 11 is Xa.

まず、マーク検出機構13がマーク31を検出すると(ステップS1)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa−1)mmだけ搬送する(ステップS2)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS3)。   First, when the mark detection mechanism 13 detects the mark 31 (step S1), the paper transport mechanism 12 transports the marked paper 30 by (Xa-1) mm according to a command from the MCU 21 (step S2). Thereafter, while the paper transport mechanism 12 transports the marked paper 30 at intervals of 0.125 mm, the printing mechanism 11 prints ruled lines on the marked paper 30 at intervals of 0.125 mm (step S3).

ここで、印刷されるべき罫線の一例を図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 marked paper 30 is shown in FIG. In FIG. 3B, 16 ruled lines 51 </ b> A to 51 </ b> P are printed on the marked paper 30. The mark 31 and the ruled lines 51A to 51P are black. Further, the ruled lines 51A to 51P are shifted at intervals of 0.125 mm in the paper transport direction, and are shifted so that the ruled lines do not overlap in the paper width direction.

また、図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 mark 31 is the reference position. The reference position is a position for detecting a printing position shift. As described above, the ruled lines are printed at intervals of 0.125 mm after the marked sheet 30 is conveyed by (Xa-1) mm. Therefore, if there is no shift in the printing position, the ruled lines 51H are marked with the marks 31. It overlaps with the lower end (that is, the reference position). However, in FIG. 3C, the reference position overlaps the ruled line 51F. Accordingly, since the ruled line is printed at a position shorter than the distance Xa by two ruled lines, the correction value is 0.25 mm (= 0.125 mm * 2). Thus, the ruled lines 51A to 51P are printed at equal intervals in the paper transport direction and printed so that the ruled lines do not overlap in the paper width direction, so that the user can visually correct the correction value without using a ruler. Can be grasped. In FIG. 3C, the ruled line 51F is displayed in white for the sake of explanation, but the actual ruled line 51F is black as in the other ruled lines.

図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 MCU 21 via the input unit 27 (step S4). The ruled lines 51A to 51P are assigned numbers 1 to 16 in advance. In FIG. 3C, since the reference position overlaps the ruled line 51F, the user sets the number “6” of the ruled line 51F in the MCU 21. As shown in FIG. 3D, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed above or below each ruled line when printing the ruled line. Further, when printing the ruled line, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed on the left or right of each ruled line. Thereby, the number of the ruled line that overlaps the reference position can be easily identified.

その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS5)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図3(C)では、0.25mm)を不揮発性メモリ25に保存し(ステップS6)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。   Thereafter, the MCU 21 calculates a correction value for the sheet conveyance distance based on the set number (step S5). Specifically, the MCU 21 determines the difference between the number of the ruled line to be printed at the reference position (number 8 of the ruled line 51H) and the number of the ruled line actually printed at the reference position (number 6 of the ruled line 51F). Is multiplied by the printing interval (0.125 mm) to calculate a correction value for the paper transport distance. The MCU 21 stores the calculated correction value (0.25 mm in FIG. 3C) in the nonvolatile memory 25 (step S6), and this process ends. The MCU 21 uses the difference between the number of the ruled line to be printed at the reference position and the number of the ruled line actually printed at the reference position when calculating the correction value of the sheet conveyance distance. A difference between a ruled line symbol to be printed (for example, H) and a ruled line symbol (for example, F) actually printed at the reference position may be used. In this case, the difference between the symbol F and the symbol H is 2.

図4の第1の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。   In the first correction process of FIG. 4, the MCU 21 calculates the correction value for the paper conveyance distance, but the computer 35 may calculate the correction value for the paper conveyance distance. In this case, the user sets the number of the ruled line that overlaps the reference position in the computer 35, and the computer 35 calculates the correction value of the sheet conveyance distance, and the calculated correction value is input to the MCU 21 via the input unit 27. Send.

図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 mark 31 by Xb and Xcmm.

まず、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 MCU 21 reads a correction value from the nonvolatile memory 25 (step S11). When the mark detection mechanism 13 detects the mark 31 (step S12), the paper transport mechanism 12 transports the marked paper 30 by (Xa + Xb + correction value) mm according to a command from the MCU 21 (step S13). The paper transport mechanism 12 prints the first data on the marked paper 30 (step S14). Thereafter, the paper transport mechanism 12 transports the marked paper 30 by Xcmm in response to a command from the MCU 21 (step S15). The paper transport mechanism 12 prints the next data on the marked paper 30 (step S16). As described above, when the first data is printed (step S13), the correction value is added to the sheet transport distance (here, Xa + Xb), so that the print positions of the first data and the next data are accurately corrected. .

そして、MCU21は印刷終了の条件を満たすか否かを判断する(ステップS17)。印刷終了の条件は、例えば、予め設定された部数の印刷が完了したこと、又は印刷終了指示がMCU21に入力されたことである。ステップS17でYESの場合には、本処理を終了する。一方、ステップS17でNOの場合には、手順はステップS12に戻る。   Then, the MCU 21 determines whether or not the condition for ending printing is satisfied (step S17). The condition for ending printing is, for example, that printing of a preset number of copies has been completed or that a printing end instruction has been input to the MCU 21. If YES in step S17, the process ends. On the other hand, if NO in step S17, the procedure returns to step S12.

次に、第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 marked paper 30 is shown in FIG. FIG. 6B shows an example in which a ruled line for correcting the printing position is printed on the preprinted ruled line in FIG. The mark 31 shown in FIG. 6A is black, and the preprinted ruled line 61 is a light color (for example, light blue). Further, the 16 ruled lines shown in FIG. 6B are black and are the same as the ruled lines 51A to 51P in FIG. 3B. The pre-printed ruled line 61 indicates a reference position, and is preprinted at a position away from the lower end of the mark 31 by a certain distance Xd (for example, 1 cm).

図7は、第2の補正処理を示すフローチャートである。ここでは、マーク検出機構13と印刷機構11との間の距離をXaとする。   FIG. 7 is a flowchart showing the second correction process. Here, the distance between the mark detection mechanism 13 and the printing mechanism 11 is Xa.

まず、マーク検出機構13がマーク31を検出すると(ステップS31)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa+Xd−1)mmだけ搬送する(ステップS32)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS33)。   First, when the mark detection mechanism 13 detects the mark 31 (step S31), the paper transport mechanism 12 transports the marked paper 30 by (Xa + Xd-1) mm according to a command from the MCU 21 (step S32). Thereafter, while the paper transport mechanism 12 transports the marked paper 30 at intervals of 0.125 mm, the printing mechanism 11 prints ruled lines on the marked paper 30 at intervals of 0.125 mm (step S33).

上述したように、マーク付き用紙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 marked paper 30 is conveyed by (Xa + Xd-1) mm. Therefore, if there is no shift in the printing position, the ruled lines 51H are preprinted. It overlaps with the ruled line 61 (reference position). However, in FIG. 6B, the reference position overlaps the ruled line 51F. Accordingly, since the ruled line is printed at a position shorter than the distance Xa + Xd by two ruled lines, 0.25 mm (= 0.125 mm * 2) is the correction value. Returning to FIG. 7, the user sets the number of the ruled line overlapping the reference position in the MCU 21 via the input unit 27 (step S34). The ruled lines 51A to 51P are assigned numbers 1 to 16 in advance. In FIG. 6B, since the reference position overlaps the ruled line 51F, the user sets the number “6” of the ruled line 51F in the MCU 21. As shown in FIG. 3D, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed above or below each ruled line when printing the ruled line. Further, when printing the ruled line, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed on the left or right of each ruled line. Thereby, the number of the ruled line that overlaps the reference position can be easily identified.

その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS35)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図6(B)では、0.25mm)を不揮発性メモリ25に保存し(ステップS36)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。   Thereafter, the MCU 21 calculates a correction value for the sheet transport distance based on the set number (step S35). Specifically, the MCU 21 determines the difference between the number of the ruled line to be printed at the reference position (number 8 of the ruled line 51H) and the number of the ruled line actually printed at the reference position (number 6 of the ruled line 51F). Is multiplied by the printing interval (0.125 mm) to calculate a correction value for the paper transport distance. The MCU 21 stores the calculated correction value (0.25 mm in FIG. 6B) in the nonvolatile memory 25 (step S36), and this process ends. The MCU 21 uses the difference between the number of the ruled line to be printed at the reference position and the number of the ruled line actually printed at the reference position when calculating the correction value of the sheet conveyance distance. A difference between a ruled line symbol to be printed (for example, H) and a ruled line symbol (for example, F) actually printed at the reference position may be used. In this case, the difference between the symbol F and the symbol H is 2.

図7の第2の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。   In the second correction process of FIG. 7, the MCU 21 calculates the correction value for the paper conveyance distance, but the computer 35 may calculate the correction value for the paper conveyance distance. In this case, the user sets the number of the ruled line that overlaps the reference position in the computer 35, and the computer 35 calculates the correction value of the sheet conveyance distance, and the calculated correction value is input to the MCU 21 via the input unit 27. Send.

また、第2の補正処理では、罫線61は淡い色(例えば、薄い青色)であり、罫線51A〜51Pは黒色であるので、罫線61に重なる罫線を容易に判断することができる。また、第2の補正処理では、マーク付き用紙30に罫線61がプレ印刷されるので、マーク31が用紙の裏面に印刷され、罫線51A〜51P及び罫線61が用紙の表面に印刷される場合でも、基準位置を規定することができる。   Further, in the second correction process, the ruled line 61 is a light color (for example, light blue) and the ruled lines 51A to 51P are black. Therefore, the ruled line overlapping the ruled line 61 can be easily determined. In the second correction process, the ruled line 61 is preprinted on the marked paper 30, so that the mark 31 is printed on the back side of the paper, and the ruled lines 51 </ b> A to 51 </ b> P and the ruled line 61 are printed on the front surface of the paper. The reference position can be defined.

次に、第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 marked paper 30.

マーク付き用紙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 marked paper 30 is shown in FIG. The marked paper 30 in FIG. 8 has a base as a release paper and a printing area as a label 34. A fixed-length label 34 is repeatedly formed on the marked paper 30. In the third correction process, the break 71 between the labels 34 is set as a reference position. The cut 71 between the labels 34 is assumed to be at a position away from the lower end of the mark 31 by a certain distance Xe (for example, 6 cm). The 16 ruled lines shown in FIG. 8 are black and are the same as the ruled lines 51A to 51P in FIG.

図9は、第3の補正処理を示すフローチャートである。ここでは、マーク検出機構13と印刷機構11との間の距離をXaとする。   FIG. 9 is a flowchart showing the third correction process. Here, the distance between the mark detection mechanism 13 and the printing mechanism 11 is Xa.

まず、マーク検出機構13がマーク31を検出すると(ステップS41)、用紙搬送機構12がMCU21からの指令によってマーク付き用紙30を(Xa+Xe−1)mmだけ搬送する(ステップS42)。その後、用紙搬送機構12がマーク付き用紙30を0.125mm間隔で搬送しながら、印刷機構11は罫線を0.125mm間隔でマーク付き用紙30上に印刷する(ステップS43)。   First, when the mark detection mechanism 13 detects the mark 31 (step S41), the paper transport mechanism 12 transports the marked paper 30 by (Xa + Xe-1) mm according to a command from the MCU 21 (step S42). Thereafter, while the paper transport mechanism 12 transports the marked paper 30 at intervals of 0.125 mm, the printing mechanism 11 prints ruled lines on the marked paper 30 at intervals of 0.125 mm (step S43).

上述したように、マーク付き用紙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 marked paper 30 is conveyed by (Xa + Xe-1) mm. This overlaps with the cut 71 (reference position). However, in FIG. 8, the reference position overlaps the ruled line 51F. Accordingly, the ruled line is printed at a position shorter than the distance Xa + Xe by two ruled lines, so that the correction value is 0.25 mm (= 0.125 mm * 2). Returning to FIG. 9, the user sets the number of the ruled line that overlaps the reference position in the MCU 21 via the input unit 27 (step S44). The ruled lines 51A to 51P are assigned numbers 1 to 16 in advance. In FIG. 8, since the reference position overlaps the ruled line 51F, the user sets the number “6” of the ruled line 51F in the MCU 21. As shown in FIG. 3D, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed above or below each ruled line when printing the ruled line. Further, when printing the ruled line, an identifier (for example, a number or a symbol) for identifying the ruled line may be printed on the left or right of each ruled line. Thereby, the number of the ruled line that overlaps the reference position can be easily identified.

その後、MCU21は、設定された番号に基づいて、用紙搬送距離の補正値を算出する(ステップS45)。具体的には、MCU21は、基準位置に印刷されるべき罫線の番号(罫線51Hの番号8)と実際に基準位置に印刷された罫線の番号(罫線51Fの番号6)との差分に各罫線の印刷間隔(0.125mm)を乗算することにより、用紙搬送距離の補正値を算出する。MCU21は、算出された補正値(図8では、0.25mm)を不揮発性メモリ25に保存し(ステップS46)、本処理は終了する。尚、MCU21は、用紙搬送距離の補正値を算出する際に、基準位置に印刷されるべき罫線の番号と実際に基準位置に印刷された罫線の番号との差分を利用するが、基準位置に印刷されるべき罫線の記号(例えば、H)と実際に基準位置に印刷された罫線の記号(例えば、F)との差分を利用してもよい。この場合、記号Fと記号Hの差分は2になる。   Thereafter, the MCU 21 calculates a correction value for the sheet conveyance distance based on the set number (step S45). Specifically, the MCU 21 determines the difference between the number of the ruled line to be printed at the reference position (number 8 of the ruled line 51H) and the number of the ruled line actually printed at the reference position (number 6 of the ruled line 51F). Is multiplied by the printing interval (0.125 mm) to calculate a correction value for the paper transport distance. The MCU 21 stores the calculated correction value (0.25 mm in FIG. 8) in the nonvolatile memory 25 (step S46), and this process ends. The MCU 21 uses the difference between the number of the ruled line to be printed at the reference position and the number of the ruled line actually printed at the reference position when calculating the correction value of the sheet conveyance distance. A difference between a ruled line symbol to be printed (for example, H) and a ruled line symbol (for example, F) actually printed at the reference position may be used. In this case, the difference between the symbol F and the symbol H is 2.

図9の第3の補正処理では、MCU21が用紙搬送距離の補正値を算出しているが、コンピュータ35が、用紙搬送距離の補正値を算出してもよい。この場合、ユーザは、基準位置に重なっている罫線の番号をコンピュータ35に設定し、コンピュータ35が、用紙搬送距離の補正値を算出し、算出された補正値を入力部27を介してMCU21に送信する。   In the third correction process of FIG. 9, the MCU 21 calculates the correction value for the paper conveyance distance, but the computer 35 may calculate the correction value for the paper conveyance distance. In this case, the user sets the number of the ruled line that overlaps the reference position in the computer 35, and the computer 35 calculates the correction value of the sheet conveyance distance, and the calculated correction value is input to the MCU 21 via the input unit 27. Send.

また、第3の補正処理では、ラベル34間の切れ目71を基準位置として利用するので、第2の補正処理に示す淡い色の罫線のプレ印刷が不要である。また、第3の補正処理では、マーク31が用紙の裏面に印刷され、罫線51A〜51Pが用紙の表面に印刷される場合でも、基準位置を規定することができる。   In the third correction process, since the cut 71 between the labels 34 is used as a reference position, it is not necessary to pre-print a light-colored ruled line as shown in the second correction process. In the third correction process, the reference position can be defined even when the mark 31 is printed on the back surface of the paper and the ruled lines 51A to 51P are printed on the front surface of the paper.

第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 lines 51A to 51P are printed on the marked paper 30 so as to be shifted in the paper width direction. . For example, as shown in FIG. 10A, the ruled lines printed on the marked paper 30 may be configured such that a portion printed at intervals of 0.125 mm and a portion not printed are repeated. Also, as shown in FIG. 10B, the ruled lines printed on the marked paper 30 may be formed in a staggered pattern. Further, as shown in FIG. 10C, the ruled lines printed on the marked paper 30 may be formed such that ruled lines having different lengths are repeated, that is, may be formed in a comb-like shape. .

また、第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 mark detection mechanism 13 that detects the mark of the marked paper and the detection of the mark. A paper transport mechanism 12 that performs printing, a printing mechanism 11 that prints a plurality of ruled lines on a marked sheet, and a ruled line that has a difference between a ruled line identifier that should be printed at the reference position and a ruled line identifier that is actually printed at the reference position. And an MCU 21 that obtains a correction value for the transport distance of the marked paper and multiplies the correction distance to the transport distance of the marked paper when printing data. Therefore, it is possible to correct the printing position deviation inexpensively and easily without measuring the printing position deviation with a ruler.

尚、本発明は、上述した実施の形態に限定されるものではなく、その要旨を逸脱しない範囲内で種々変形して実施することが可能である。   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 Thermal printer 11 Printing mechanism 11A Heat generating body 12 Paper conveyance mechanism 12A Roller 12B Stepping motor 13 Mark detection mechanism 13A Reflection type photo sensor 20 Control circuit 21 MCU
DESCRIPTION OF SYMBOLS 22 Print control part 23 Paper conveyance control part 24 Mark detection control part 25 Nonvolatile memory 26 AD converter 27 Input part

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.
前記補正値を不揮発性メモリに保存することを特徴とする請求項1に記載のマーク付き用紙の搬送距離の補正方法。   The method of correcting a transport distance of a marked sheet according to claim 1, wherein the correction value is stored in a nonvolatile memory. 前記基準位置は、前記マーク付き用紙の搬送方向における前記マークの下端に代えて、前記マーク付き用紙に前記マークから一定距離離れた位置にプレ印刷された罫線であることを特徴とする請求項1又は2に記載のマーク付き用紙の搬送距離の補正方法。 Claim wherein the reference position, in place of the lower end of the mark in the conveying direction of the marked sheet, characterized in that it is a pre-printed ruled lines at a constant distance away from the mark to the marked paper 3. A method for correcting a conveyance distance of a marked sheet according to 1 or 2. 前記プレ印刷された罫線の色は、前記マーク付き用紙に印刷される複数の罫線の色と異なることを特徴とする請求項3に記載のマーク付き用紙の搬送距離の補正方法。   4. The method for correcting a transport distance of marked paper according to claim 3, wherein the color of the pre-printed ruled line is different from the color of a plurality of ruled lines printed on the marked paper. 前記複数の罫線は、前記マーク付き用紙の搬送方向に各罫線の幅に対応する間隔だけずらされ、且つ前記マーク付き用紙の幅方向に罫線同士が重ならないようにずらされて印刷されることを特徴とする請求項1乃至4のいずれか1項に記載のマーク付き用紙の搬送距離の補正方法。   The plurality of ruled lines are printed by being shifted in the conveyance direction of the marked paper by an interval corresponding to the width of each ruled line, and shifted so that the ruled lines do not overlap in the width direction of the marked paper. 5. The method for correcting a transport distance of a marked sheet according to claim 1, 前記複数の罫線は、前記マーク付き用紙の搬送方向に、罫線と当該罫線の幅に対応する間隔とが交互に繰り返されるように印刷されることを特徴とする請求項1乃至4のいずれか1項に記載のマーク付き用紙の搬送距離の補正方法。   5. 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 transport direction of the marked paper. The correction method of the conveyance distance of the marked paper as described in claim | item. 前記複数の罫線は、前記マーク付き用紙の幅方向の長さが異なる複数の罫線であり、当該長さが異なる複数の罫線が前記マーク付き用紙の搬送方向に、交互に繰り返されていることを特徴とする請求項1乃至4のいずれか1項に記載のマーク付き用紙の搬送距離の補正方法。   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. 5. The method for correcting a transport distance of a marked sheet according to claim 1, 前記複数の罫線の近傍に各罫線を識別する識別子を印刷することを特徴とする請求項1乃至7のいずれか1項に記載のマーク付き用紙の搬送距離の補正方法。   8. The method for correcting a transport distance of a marked sheet according to claim 1, wherein an identifier for identifying each ruled line is printed in the vicinity of the plurality of ruled lines. マーク付き用紙のマークを検出する検出手段と、
当該マークの検出後、前記マーク付き用紙の搬送距離を認識しながら、予め決められた距離だけ前記マーク付き用紙を搬送する制御を行う制御手段と、
前記マーク付き用紙の搬送方向に一定の印刷間隔で配置される複数の罫線を前記マーク付き用紙に印刷する印刷手段と、
前記マーク付き用紙の搬送方向における前記マークの下端である基準位置に印刷されるべき罫線の識別子と、実際に前記基準位置に印刷された罫線の識別子との差分に前記マーク付き用紙の搬送方向の各罫線の印刷間隔を乗算することによって、マーク付き用紙の搬送距離の補正値を取得する取得手段と、
データを印刷する際に、前記マーク付き用紙の搬送距離に前記補正値を加算する加算手段と
を備えることを特徴とするサーマルプリンタ。
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
JP2011049506A 2011-03-07 2011-03-07 Method for correcting transport distance of marked paper, thermal printer and program Active JP5888764B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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
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
JP5198753B2 (en) Printing device
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
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
JP2014176981A (en) Calibration method and image formation device

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