JP2017222084A - Printer and control method for the same - Google Patents

Printer and control method for the same Download PDF

Info

Publication number
JP2017222084A
JP2017222084A JP2016119029A JP2016119029A JP2017222084A JP 2017222084 A JP2017222084 A JP 2017222084A JP 2016119029 A JP2016119029 A JP 2016119029A JP 2016119029 A JP2016119029 A JP 2016119029A JP 2017222084 A JP2017222084 A JP 2017222084A
Authority
JP
Japan
Prior art keywords
print
detection unit
print medium
image
detection
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.)
Withdrawn
Application number
JP2016119029A
Other languages
Japanese (ja)
Inventor
有弥 岩佐
Yuya Iwasa
有弥 岩佐
孝子 春日
Takako Kasuga
孝子 春日
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2016119029A priority Critical patent/JP2017222084A/en
Publication of JP2017222084A publication Critical patent/JP2017222084A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a printer capable of inhibiting characters, figures and the like to be printed from being printed with deviation from a position where being originally printed even when a platen roller slips with respect to a printing medium, and the like.SOLUTION: A printer comprises: a first detection section 44 detecting a mark on a printing medium; a second detection section 46 being provided at a downstream side in a printing medium conveyance direction of the first detection section 44, and detecting the mark detected by the first detection section 44; a storage section 26a storing a number of logic steps corresponding to a length between the first detection section 44 and the second detection section 46; a reception section 48 receiving print data; and a control section 20 correcting positional information included in the print data based on a slip ratio calculated by the number of logic steps stored in the storage section 26a and a number of actual measurement steps obtained from a detection value of the first detection section 44 and a detection value of the second detection section 46, developing an image to be printed in a print buffer 24a based on the positional information corrected, controlling a thermal head 30, and printing the image.SELECTED DRAWING: Figure 3

Description

本発明は、プリンター、及びプリンターの制御方法に関する。   The present invention relates to a printer and a printer control method.

従来、長手方向に所定間隔をおいて設けられた複数のマークを含む長尺状の用紙を、印刷ヘッドとプラテンローラーとの間に挟持して搬送するプリンターにおいては、プラテンローラーが用紙に対してスリップすることに起因して、用紙に含まれるマークが印刷ヘッドに到達する前に印刷が開始されてしまうという課題があった。   Conventionally, in a printer that transports a long sheet containing a plurality of marks provided at predetermined intervals in the longitudinal direction between a print head and a platen roller, the platen roller is Due to the slip, there is a problem that printing is started before the mark included in the paper reaches the print head.

これに対して、用紙搬送方向上流側の2つのマーク検出用センサの検出値等に基づきスリップ率を算出し、当該スリップ率に基づき印刷開始位置までの用紙の搬送量を補正することが提案されている(特許文献1参照)。   On the other hand, it has been proposed to calculate the slip rate based on the detection values of the two mark detection sensors on the upstream side in the paper transport direction and to correct the paper transport amount to the print start position based on the slip rate. (See Patent Document 1).

特開2002−321410号公報JP 2002-321410 A

しかしながら、特許文献1によれば、用紙に含まれるマークが印刷ヘッドに到達する前に印刷が開始されるのを防止できるものの、上記のようにプラテンローラーが用紙に対してスリップすることに起因して、用紙に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうという課題があった。   However, according to Patent Document 1, although printing can be prevented before the mark included in the paper reaches the print head, the platen roller slips with respect to the paper as described above. Thus, there has been a problem that characters, graphics, and the like printed on the paper are printed out of position from which they should be printed.

特に、マーク間の長さが比較的長いバゲッジタグ用の用紙を用い、当該用紙に複数の文字や図形等を印刷する場合、用紙搬送方向下流側に印刷される文字や図形等程、本来印刷されるべき位置から大きくズレて印刷されてしまうこととなる。   In particular, when using baggage tag paper with a relatively long length between marks and printing a plurality of characters and graphics on the paper, the characters and graphics printed on the downstream side in the paper transport direction are originally printed. The printing will be greatly deviated from the position to be printed.

本発明は、上記事情に鑑みてなされたものであり、プラテンローラーが印刷媒体に対してスリップしても、当該印刷媒体に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンター等を提供することを目的とする。   The present invention has been made in view of the above circumstances, and even if the platen roller slips with respect to the print medium, the characters and figures printed on the print medium are shifted from the positions where they should be printed. An object of the present invention is to provide a printer or the like that can suppress the occurrence of the problem.

上記目的を達成するために、本発明の一つの側面は、所定間隔をおいて設けられた複数のマークを含む印刷媒体を、印刷ヘッドとプラテンローラーとの間に挟持して搬送するプリンターであって、前記印刷媒体のマークを検出する第1検出部と、前記第1検出部の印刷媒体搬送方向下流側に設けられ、前記第1検出部で検出されたマークを検出する第2検出部と、前記第1検出部と前記第2検出部との間の長さに対応する論理ステップ数を記憶する記憶部と、印刷する画像をプリントバッファに展開するときの位置情報を含む印刷データを受信する受信部と、前記記憶部に記憶された論理ステップ数と、前記第1検出部の検出値及び前記第2検出部の検出値から求められる実測ステップ数と、によって算出されるすべり率に基づき、前記印刷データに含まれる位置情報を補正し、前記補正した位置情報に基づいて前記印刷する画像を前記プリントバッファに展開し、前記プリントバッファに展開される画像に基づき前記印刷ヘッドを制御して画像を印刷する制御部、とを備える。   In order to achieve the above object, one aspect of the present invention is a printer that conveys a print medium including a plurality of marks provided at predetermined intervals between a print head and a platen roller. A first detection unit that detects a mark of the print medium, and a second detection unit that is provided downstream of the first detection unit in the print medium conveyance direction and detects the mark detected by the first detection unit; A storage unit that stores the number of logical steps corresponding to the length between the first detection unit and the second detection unit; and print data that includes position information when an image to be printed is developed in a print buffer. Based on the slip rate calculated by the receiving unit, the number of logical steps stored in the storage unit, and the actually measured number of steps obtained from the detection value of the first detection unit and the detection value of the second detection unit. The printing The position information included in the data is corrected, the image to be printed is expanded in the print buffer based on the corrected position information, and the print head is controlled on the basis of the image expanded in the print buffer. A control unit for printing.

この側面によれば、プラテンローラーが印刷媒体に対してスリップしても、当該印刷媒体に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンターを提供することができる。   According to this aspect, even if the platen roller slips with respect to the printing medium, the printer that can suppress the characters, graphics, and the like printed on the printing medium from being shifted from the position where they should be printed is printed. Can be provided.

これは、すべり率に基づき、印刷データに含まれる位置情報を補正して、当該補正した位置情報に基づいて、印刷する画像をプリントバッファに展開すること、そして、プリントバッファに展開された画像に基づき印刷ヘッドを制御して画像を印刷すること、によるものである。   This is based on correcting the position information included in the print data based on the slip ratio, developing the image to be printed in the print buffer based on the corrected position information, and then converting the image developed in the print buffer to Based on this, the print head is controlled to print an image.

また、上記発明において、好ましい態様は、前記第1検出部は、前記印刷ヘッドに対して印刷媒体搬送方向上流側に設けられ、前記第2検出部は、前記印刷ヘッドに対して印刷媒体搬送方向下流側に設けられる。   In the invention described above, a preferable aspect is that the first detection unit is provided on the upstream side in the print medium conveyance direction with respect to the print head, and the second detection unit is in the print medium conveyance direction with respect to the print head. Provided on the downstream side.

この態様によれば、第2検出部によって印刷媒体の先端を検出すること、及び当該先端が検出されたタイミングで印刷媒体の搬送を停止すること、が可能となるため、一枚目の紙片が無駄になるのを防止できる。   According to this aspect, it is possible to detect the leading edge of the printing medium by the second detection unit and to stop the conveyance of the printing medium at the timing when the leading edge is detected. It can be prevented from being wasted.

また、上記発明において、好ましい態様は、前記第2検出部は、前記印刷媒体の先端を検出する。   In the above invention, a preferred aspect is that the second detection unit detects the leading edge of the print medium.

この態様によれば、第2検出部によって、第1検出部によって検出されたマーク、及び印刷媒体の先端を検出できる。   According to this aspect, the mark detected by the first detection unit and the leading edge of the print medium can be detected by the second detection unit.

また、上記発明において、好ましい態様は、前記記憶部は前記印刷媒体の種類と前記すべり率とを対応付けて記憶し、前記制御部は、前記印刷媒体が別の印刷媒体に交換された場合、前記記憶部を参照して、前記交換後の印刷媒体に対応するすべり率に基づいて、前記印刷データに含まれる位置情報を補正する。   Further, in the above invention, a preferable aspect is that the storage unit stores the type of the print medium and the slip rate in association with each other, and the control unit, when the print medium is replaced with another print medium, With reference to the storage unit, the position information included in the print data is corrected based on the slip rate corresponding to the exchanged print medium.

この態様によれば、プラテンローラーが印刷媒体(一枚目の紙片)に対してスリップしても、当該印刷媒体(一枚目の紙片)に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できる。   According to this aspect, even if the platen roller slips with respect to the print medium (first piece of paper), characters, graphics, and the like that are printed on the print medium (first piece of paper) should be originally printed. It is possible to suppress printing from being shifted from the position.

また、上記発明において、好ましい態様は、前記位置情報は、前記印刷媒体の幅方向の位置を示すx座標と、前記印刷媒体の搬送方向の位置を示すy座標とを含む座標情報であって、前記制御部は、前記すべり率に基づいて、前記y座標を補正する。   In the above invention, a preferable aspect is that the position information is coordinate information including an x coordinate indicating a position in the width direction of the print medium and a y coordinate indicating a position in the transport direction of the print medium, The control unit corrects the y coordinate based on the slip rate.

この態様によれば、プラテンローラーが印刷媒体に対してスリップしても、当該印刷媒体に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンターを提供することができる。   According to this aspect, even when the platen roller slips with respect to the print medium, the printer that can suppress the characters, graphics, and the like printed on the print medium from being shifted from the positions where they should be printed is prevented. Can be provided.

これは、すべり率に基づき、印刷データに含まれる位置情報(印刷媒体の搬送方向の位置を示すy座標)を補正して、当該補正した位置情報に基づいて、印刷する画像をプリントバッファに展開すること、そして、プリントバッファに展開された画像に基づき印刷ヘッドを制御して画像を印刷すること、によるものである。   This is based on the slip rate and corrects the position information (y-coordinate indicating the position in the transport direction of the print medium) included in the print data, and develops an image to be printed in the print buffer based on the corrected position information. And printing the image by controlling the print head based on the image developed in the print buffer.

また、上記発明において、好ましい態様は、前記印刷ヘッドに対して印刷媒体搬送方向下流側に設けられ、前記印刷媒体を切断するカッター部を備え、前記制御部は、前記カッター部までの前記印刷媒体の搬送量を、前記すべり率に基づき補正する。   Moreover, in the said invention, a preferable aspect is provided in the printing medium conveyance direction downstream with respect to the said print head, It equips with the cutter part which cut | disconnects the said printing medium, The said control part is the said printing medium to the said cutter part. Is corrected based on the slip rate.

この態様によれば、プラテンローラーが印刷媒体に対してスリップしても、当該印刷媒体が本来切断されるべき位置からズレて切断されてしまうのを抑制できる。   According to this aspect, even if the platen roller slips with respect to the print medium, it is possible to suppress the print medium from being cut out of the original position.

これは、カッター部までの印刷媒体の搬送量を、すべり率に基づき補正することで、印刷媒体を、カッター部の切断位置まで搬送することができることによるものである。   This is because the print medium can be transported to the cutting position of the cutter unit by correcting the transport amount of the print medium to the cutter unit based on the slip rate.

また、上記発明において、好ましい態様は、前記印刷媒体は、ロール紙である。   In the above invention, a preferable aspect is that the print medium is roll paper.

この態様によれば、プラテンローラーがロール紙に対してスリップしても、当該ロール紙に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンターを提供することができる。   According to this aspect, even if the platen roller slips with respect to the roll paper, the printer that can suppress the characters, graphics, and the like printed on the roll paper from being shifted from the positions where they should be printed is printed. Can be provided.

これは、すべり率に基づき、印刷データに含まれる位置情報を補正して、当該補正した位置情報に基づいて、印刷する画像をプリントバッファに展開すること、そして、プリントバッファに展開された画像に基づき印刷ヘッドを制御して画像をロール紙に印刷すること、によるものである。   This is based on correcting the position information included in the print data based on the slip ratio, developing the image to be printed in the print buffer based on the corrected position information, and then converting the image developed in the print buffer to Based on this, the print head is controlled to print an image on roll paper.

本発明の別の側面は、所定間隔をおいて設けられた複数のマークを含む印刷媒体を、印刷ヘッドとプラテンローラーとの間に挟持して搬送するプリンターの制御方法であって、前記印刷媒体のマークを第1検出部によって検出する第1検出工程と、前記第1検出部の印刷媒体搬送方向下流側に設けられた第2検出部によって、前記第1検出部によって検出したマークを検出する第2検出工程と、印刷する画像をプリントバッファに展開するときの位置情報を含む印刷データを受信する受信工程と、前記第1検出部と前記第2検出部との間の長さに対応する論理ステップ数と、前記第1検出部の検出値及び前記第2検出部の検出値から求められる実測ステップ数と、によって算出されるすべり率に基づき、前記印刷データに含まれる位置情報を補正し、前記補正した位置情報に基づいて前記印刷する画像を前記プリントバッファに展開し、前記プリントバッファに展開された画像に基づき前記印刷ヘッドを制御して画像を印刷する制御工程と、を含む。   Another aspect of the present invention is a method for controlling a printer that conveys a print medium including a plurality of marks provided at predetermined intervals between a print head and a platen roller, the print medium being The mark detected by the first detection unit is detected by a first detection step of detecting the mark by the first detection unit and a second detection unit provided downstream of the first detection unit in the print medium conveyance direction. Corresponding to the length of the second detection step, the reception step of receiving print data including position information when the image to be printed is developed in the print buffer, and the length between the first detection unit and the second detection unit The position information included in the print data is calculated based on the slip rate calculated by the number of logical steps and the number of actual steps obtained from the detection value of the first detection unit and the detection value of the second detection unit. And a control step of developing the image to be printed on the print buffer based on the corrected position information and printing the image by controlling the print head based on the image developed on the print buffer. .

この側面によれば、プラテンローラーが印刷媒体に対してスリップしても、当該印刷媒体に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンターの制御方法を提供することができる。   According to this aspect, even if the platen roller slips with respect to the printing medium, the printer can suppress the characters and graphics printed on the printing medium from being shifted from the position where printing should be originally performed. A control method can be provided.

これは、すべり率に基づき、印刷データに含まれる位置情報を補正して、当該補正した位置情報に基づいて、印刷する画像をプリントバッファに展開すること、そして、プリントバッファに展開された画像に基づき印刷ヘッドを制御して画像を印刷すること、によるものである。   This is based on correcting the position information included in the print data based on the slip ratio, developing the image to be printed in the print buffer based on the corrected position information, and then converting the image developed in the print buffer to Based on this, the print head is controlled to print an image.

本発明のプリンター、及びプリンターの制御方法が適用されるプリンター10の概略構成を示す図である。1 is a diagram illustrating a schematic configuration of a printer 10 to which a printer of the present invention and a printer control method are applied. 感熱ロール紙Paの一例である。It is an example of thermal roll paper Pa. プリンター10のハード構成の一例を示す図である。2 is a diagram illustrating an example of a hardware configuration of a printer. FIG. プリンター10の動作(プリンターの制御方法)の一例を説明するためのフローチャートである。4 is a flowchart for explaining an example of the operation of the printer (printer control method). 起点座標に基づいてプリントバッファ24aに展開された画像を含む印刷イメージの一例である。It is an example of the print image containing the image expand | deployed by the print buffer 24a based on the origin coordinate. 補正した起点座標に基づいてプリントバッファ24aに展開された画像を含む印刷イメージの一例である。It is an example of the print image containing the image expand | deployed by the print buffer 24a based on the corrected starting point coordinate. 感熱ロール紙Paの種類(又は当該種類の感熱ロール紙Paを使用する航空会社の識別情報)とすべり率とを対応づけて記憶した例である。This is an example in which the type of thermal roll paper Pa (or identification information of an airline that uses the type of thermal roll paper Pa) and the slip rate are stored in association with each other.

以下、本発明の実施形態について添付図面を参照しながら説明する。各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In each figure, corresponding components are denoted by the same reference numerals, and redundant description is omitted.

図1は、本発明のプリンター、及びプリンターの制御方法が適用されるプリンター10の概略構成を示す図である。   FIG. 1 is a diagram illustrating a schematic configuration of a printer 10 to which a printer of the present invention and a printer control method are applied.

プリンター10は、空港における航空会社のサービスカウンター等に設けられ、バゲッジタグを発行する。バゲッジタグには、プリンター10により、飛行機の便番号や荷物の所有者の氏名が印刷される。   The printer 10 is provided at an airline service counter at an airport and issues a baggage tag. On the baggage tag, the flight number of the airplane and the name of the owner of the luggage are printed by the printer 10.

図1に示すように、プリンター10は、サーマルヘッド30(印刷ヘッド)とプラテンローラー34との間に挟持された感熱ロール紙Pa(印刷媒体)を、プラテンローラー34を回転させることで印刷媒体搬送方向へ搬送しつつ、サーマルヘッド30を駆動することで感熱ロール紙Paの印刷面に熱を与えて、感熱ロール紙Paの印刷面にドットを形成することにより、文字や図形等の画像を印刷するサーマルプリンターである。   As shown in FIG. 1, the printer 10 conveys the print medium by rotating the thermal roll paper Pa (print medium) sandwiched between the thermal head 30 (print head) and the platen roller 34 by rotating the platen roller 34. While printing in the direction, the thermal head 30 is driven to apply heat to the printing surface of the thermal roll paper Pa, and dots are formed on the printing surface of the thermal roll paper Pa to print images such as characters and figures. It is a thermal printer.

図2は、感熱ロール紙Paの一例である。   FIG. 2 is an example of the thermal roll paper Pa.

図2に示すように、感熱ロール紙Paは、印刷媒体搬送方向(長手方向)に所定間隔をおいて設けられた複数のマークM、及び複数の紙片52を含む。マークMは、例えば、感熱ロール紙Paの幅方向(短手方向)に所定間隔をおいて設けられた複数の貫通穴である。   As shown in FIG. 2, the heat-sensitive roll paper Pa includes a plurality of marks M and a plurality of paper pieces 52 provided at predetermined intervals in the print medium conveyance direction (longitudinal direction). The marks M are, for example, a plurality of through holes provided at a predetermined interval in the width direction (short direction) of the thermal roll paper Pa.

図3は、プリンター10のハード構成の一例を示す図である。   FIG. 3 is a diagram illustrating an example of a hardware configuration of the printer 10.

図3に示すように、プリンター10は、ハード構成として、制御部20、サーマルヘッド30、サーマルヘッド30に接続されたヘッド駆動回路32、プラテンローラー34、搬送モーター36、カッターユニット38(カッター部)、カッター駆動モーター40、搬送モーター36及びカッター駆動モーター40に接続されたモーター駆動回路42、第1センサ44(第1検出部)、第2センサ46(第2検出部)、通信I/F48(受信部)等を備える。   As shown in FIG. 3, the printer 10 includes a control unit 20, a thermal head 30, a head drive circuit 32 connected to the thermal head 30, a platen roller 34, a transport motor 36, and a cutter unit 38 (cutter unit) as hardware configurations. , Cutter drive motor 40, transport motor 36, motor drive circuit 42 connected to cutter drive motor 40, first sensor 44 (first detection unit), second sensor 46 (second detection unit), communication I / F 48 ( Receiving section).

ヘッド駆動回路32、モーター駆動回路42、第1センサ44、第2センサ46、及び通信I/F48は、制御部20に接続される。   The head drive circuit 32, the motor drive circuit 42, the first sensor 44, the second sensor 46, and the communication I / F 48 are connected to the control unit 20.

制御部20は、CPU22、RAM24、ROM26(記憶部)等を含む。RAM24は、プリントバッファ24aを含む。ROM26は、例えば、フラッシュROM等の書き換え可能な不揮発性メモリーで、制御プログラム等のファームウエアが記憶される。ROM26は、論理ステップ数記憶部26a、及びすべり率記憶部26bを含む。   The control unit 20 includes a CPU 22, a RAM 24, a ROM 26 (storage unit), and the like. The RAM 24 includes a print buffer 24a. The ROM 26 is a rewritable nonvolatile memory such as a flash ROM, for example, and stores firmware such as a control program. The ROM 26 includes a logical step number storage unit 26a and a slip rate storage unit 26b.

論理ステップ数記憶部26aには、第1センサ44と第2センサ46との間の長さに対応する論理ステップ数が記憶される。第1センサ44と第2センサ46との間の長さは、図1に示すように、第1センサ44によるマークMの検出位置P1と第2センサ46によるマークMの検出位置P2との間の距離Lである。第1センサ44と第2センサ46との間の長さに対応する論理ステップ数は、プラテンローラー34がスリップしないと仮定した場合に、感熱ロール紙Pa(マークM)を、第1センサ44の検出位置P1から第2センサ46の検出位置P2まで搬送するのに要する搬送モーター36のステップ数である。論理ステップ数は、例えば、プリンター10の製造段階で測定されて、予め論理ステップ数記憶部26aに記憶される。   The logical step number storage unit 26 a stores a logical step number corresponding to the length between the first sensor 44 and the second sensor 46. As shown in FIG. 1, the length between the first sensor 44 and the second sensor 46 is between the detection position P1 of the mark M by the first sensor 44 and the detection position P2 of the mark M by the second sensor 46. Distance L. Assuming that the platen roller 34 does not slip, the number of logical steps corresponding to the length between the first sensor 44 and the second sensor 46 is the same as the thermal roll paper Pa (mark M). This is the number of steps of the transport motor 36 required for transport from the detection position P1 to the detection position P2 of the second sensor 46. The number of logical steps is measured, for example, at the manufacturing stage of the printer 10 and stored in advance in the logical step number storage unit 26a.

すべり率記憶部26bには、後述のように算出されるすべり率が記憶される。   The slip rate storage unit 26b stores a slip rate calculated as described later.

サーマルヘッド30は、これに接続されたヘッド駆動回路32によって駆動される。制御部20がヘッド駆動回路32を制御してサーマルヘッド30を駆動すると、当該サーマルヘッド30が感熱ロール紙Paの印刷面に熱を与えて、感熱ロール紙Paの印刷面にドットを形成する。これにより、感熱ロール紙Paの印刷面に文字や図形等の画像が印刷される。   The thermal head 30 is driven by a head drive circuit 32 connected thereto. When the control unit 20 controls the head driving circuit 32 to drive the thermal head 30, the thermal head 30 applies heat to the printing surface of the thermal roll paper Pa to form dots on the printing surface of the thermal roll paper Pa. As a result, images such as characters and graphics are printed on the printing surface of the thermal roll paper Pa.

プラテンローラー34は、図示しない伝達機構(例えば、減速歯車列)を介して搬送モーター36に連結される。搬送モーター36は、例えば、ステッピングモーターである。搬送モーター36は、これに接続されたモーター駆動回路42によって駆動される。制御部20がモーター駆動回路42を制御して搬送モーター36を駆動すると、搬送モーター36の回転が伝達機構を介してプラテンローラー34に伝達され、プラテンローラー34が回転する。これにより、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paが、印刷媒体搬送方向(図1参照)へ搬送される。   The platen roller 34 is connected to the transport motor 36 via a transmission mechanism (not shown) (for example, a reduction gear train). The transport motor 36 is, for example, a stepping motor. The transport motor 36 is driven by a motor drive circuit 42 connected thereto. When the control unit 20 controls the motor drive circuit 42 to drive the transport motor 36, the rotation of the transport motor 36 is transmitted to the platen roller 34 through the transmission mechanism, and the platen roller 34 rotates. As a result, the thermal roll paper Pa sandwiched between the thermal head 30 and the platen roller 34 is conveyed in the print medium conveyance direction (see FIG. 1).

第1センサ44は、感熱ロール紙PaのマークMを検出する検出部で、例えば、透過型フォトインタラプタ等の透過型の光センサによって構成される。第1センサ44は、サーマルヘッド30に対して印刷媒体搬送方向上流側に設けられる。制御部20は、感熱ロール紙PaのマークMが第1センサ44の検出位置P1を通過する際の第1センサ44の検出値の変化に基づいて、感熱ロール紙PaのマークMを検出する。   The first sensor 44 is a detection unit that detects the mark M on the thermal roll paper Pa, and is configured by a transmissive optical sensor such as a transmissive photo interrupter, for example. The first sensor 44 is provided upstream of the thermal head 30 in the print medium conveyance direction. The control unit 20 detects the mark M on the thermal roll paper Pa based on the change in the detection value of the first sensor 44 when the mark M on the thermal roll paper Pa passes the detection position P1 of the first sensor 44.

第2センサ46は、感熱ロール紙PaのマークM(第1センサ44によって検出されたのと同じマークM)、及び感熱ロール紙Paの先端を検出する検出部で、例えば、透過型フォトインタラプタ等の透過型の光センサによって構成される。第2センサ46は、例えばサーマルヘッド30に対して印刷媒体搬送方向下流側に設けられる。制御部20は、感熱ロール紙Paの先端、又はマークMが第2センサ46の検出位置P2を通過する際の第2センサ46の検出値の変化に基づいて、感熱ロール紙Paの先端、又は感熱ロール紙PaのマークMを検出する。   The second sensor 46 is a detection unit that detects the mark M of the thermal roll paper Pa (the same mark M detected by the first sensor 44) and the leading end of the thermal roll paper Pa. For example, a transmissive photo interrupter or the like. The transmission type optical sensor. The second sensor 46 is provided, for example, downstream of the thermal head 30 in the print medium conveyance direction. Based on the change in the detection value of the second sensor 46 when the mark M passes the detection position P2 of the second sensor 46, the control unit 20 The mark M of the thermal roll paper Pa is detected.

カッターユニット38は、可動刃38aを固定刃38bに対して直線的に(図1中上下方向に)進退させるカッター駆動機構(図示せず)を備えており、第2センサ46に対して印刷媒体搬送方向下流側に設けられる。カッター駆動機構は、カッター駆動モーター40を含む。カッター駆動モーター40は、これに接続されたモーター駆動回路42によって駆動される。制御部20がモーター駆動回路42を制御してカッター駆動モーター40を駆動すると、可動刃38aが固定刃38bに対して近づく方向に直線的に移動される。これにより、カッターユニット38の切断位置P3(図1参照)に位置した感熱ロール紙Paが切断される。   The cutter unit 38 includes a cutter driving mechanism (not shown) that linearly moves the movable blade 38a with respect to the fixed blade 38b (in the vertical direction in FIG. 1). Provided downstream in the transport direction. The cutter driving mechanism includes a cutter driving motor 40. The cutter drive motor 40 is driven by a motor drive circuit 42 connected thereto. When the control unit 20 controls the motor drive circuit 42 to drive the cutter drive motor 40, the movable blade 38a is linearly moved in a direction approaching the fixed blade 38b. Thereby, the thermal roll paper Pa located in the cutting position P3 (refer FIG. 1) of the cutter unit 38 is cut | disconnected.

通信I/F48には、通信ケーブル等を介してホストコンピューター50が接続される。通信I/F48は、ホストコンピューター50から送信される印刷データを受信する受信部として機能する。印刷データは、感熱ロール紙Paに文字や図形等の画像を印刷するためのデータで、印刷する画像をプリントバッファ24aに展開するときの位置情報を含む。位置情報は、感熱ロール紙Paの幅方向(図5中x軸方向)の位置を示すx座標と、感熱ロール紙Paの搬送方向(図5中y軸方向)の位置を示すy座標とを含む座標情報で、印刷する画像をプリントバッファ24aに展開する際の起点となる。以下、位置情報のことを、起点座標という。   A host computer 50 is connected to the communication I / F 48 via a communication cable or the like. The communication I / F 48 functions as a receiving unit that receives print data transmitted from the host computer 50. The print data is data for printing images such as characters and graphics on the thermal roll paper Pa, and includes position information when the image to be printed is developed in the print buffer 24a. The position information includes an x coordinate indicating a position in the width direction (x-axis direction in FIG. 5) of the thermal roll paper Pa and a y coordinate indicating a position in the transport direction (y-axis direction in FIG. 5) of the thermal roll paper Pa. The coordinate information included serves as a starting point when an image to be printed is developed in the print buffer 24a. Hereinafter, the position information is referred to as a starting point coordinate.

次に、プリンター10の動作(プリンターの制御方法)の一例について図面を参照しながら説明する。   Next, an example of the operation of the printer 10 (printer control method) will be described with reference to the drawings.

図4は、プリンター10の動作(プリンターの制御方法)の一例を説明するためのフローチャートである。   FIG. 4 is a flowchart for explaining an example of the operation of the printer 10 (printer control method).

以下の処理は、主に、制御部20がROM26から読み込まれたファームウエアを実行することにより実現される。   The following processing is realized mainly by executing the firmware read from the ROM 26 by the control unit 20.

まず、制御部20は、モーター駆動回路42を制御して搬送モーター36を駆動し、プラテンローラー34を回転させることで、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paを、印刷媒体搬送方向へ搬送する(ステップS10)。   First, the control unit 20 controls the motor drive circuit 42 to drive the transport motor 36 and rotate the platen roller 34, so that the thermal roll paper Pa sandwiched between the thermal head 30 and the platen roller 34 is removed. Then, it is conveyed in the print medium conveyance direction (step S10).

次に、制御部20は、第2センサ46の検出結果に基づき、感熱ロール紙Paの先端を検出したか否かを判定する(ステップS12)。   Next, the control unit 20 determines whether or not the leading edge of the thermal roll paper Pa is detected based on the detection result of the second sensor 46 (step S12).

制御部20は、感熱ロール紙Paの先端を検出したと判定した場合(ステップS12:Yes)、モーター駆動回路42を制御して搬送モーター36の駆動を停止することで、感熱ロール紙Paの搬送を停止する(ステップS14)。   When it determines with the control part 20 having detected the front-end | tip of the thermal roll paper Pa (step S12: Yes), the conveyance of the thermal roll paper Pa is controlled by controlling the motor drive circuit 42 and stopping the drive of the conveyance motor 36. Is stopped (step S14).

次に、通信I/F48が、ホストコンピューター50から送信される、一枚目の紙片52に印刷するための印刷データを受信する(ステップS16)。これは、本発明の受信工程に相当する。   Next, the communication I / F 48 receives print data transmitted from the host computer 50 for printing on the first piece of paper 52 (step S16). This corresponds to the reception process of the present invention.

次に、制御部20は、すべり率があるか否か、具体的には、すべり率記憶部26bにすべり率が記憶されているか否かを判定する(ステップS18)。   Next, the control unit 20 determines whether or not there is a slip rate, specifically, whether or not the slip rate is stored in the slip rate storage unit 26b (step S18).

ここでは、すべり率記憶部26bにすべり率が記憶されていないため、制御部20は、すべり率記憶部26bにすべり率が記憶されていないと判定する(ステップS18:No)。   Here, since the slip rate is not stored in the slip rate storage unit 26b, the control unit 20 determines that the slip rate is not stored in the slip rate storage unit 26b (step S18: No).

制御部20は、すべり率記憶部26bにすべり率が記憶されていないと判定した場合(ステップS18:No)、ホストコンピューター50から受信した印刷データに基づいて文字や図形等の画像を含む印刷イメージをプリントバッファ24aに展開する(ステップS20)。その際、制御部20は、図5に示すように、印刷データに含まれる起点座標に基づいて文字や図形等の画像を含む印刷イメージをプリントバッファ24aに展開する。図5は、起点座標に基づいてプリントバッファ24aに展開された画像を含む印刷イメージの一例である。   When it is determined that the slip rate is not stored in the slip rate storage unit 26b (step S18: No), the control unit 20 includes a print image including images such as characters and graphics based on the print data received from the host computer 50. Is expanded in the print buffer 24a (step S20). At that time, as shown in FIG. 5, the control unit 20 develops a print image including an image such as a character or a graphic in the print buffer 24a based on the starting point coordinates included in the print data. FIG. 5 is an example of a print image including an image developed in the print buffer 24a based on the starting point coordinates.

図5中、符号D1は、起点座標(x1、y1)に基づいてプリントバッファ24aに展開された画像を表し、符号D2は、起点座標(x2、y2)に基づいてプリントバッファに24aに展開された画像を表す。また、符号S1は、感熱ロール紙Paの印刷領域に対応する領域を表し、位置(x0、y0)は、x−y座標系の原点を表す。なお、図5中、x軸は、感熱ロール紙Paの幅方向に延びており、y軸は、感熱ロール紙Paの搬送方向に延びている。   In FIG. 5, a symbol D1 represents an image developed in the print buffer 24a based on the starting point coordinates (x1, y1), and a symbol D2 is developed in the print buffer 24a based on the starting point coordinates (x2, y2). Represents an image. Symbol S1 represents an area corresponding to the print area of the thermal roll paper Pa, and the position (x0, y0) represents the origin of the xy coordinate system. In FIG. 5, the x-axis extends in the width direction of the thermal roll paper Pa, and the y-axis extends in the conveyance direction of the thermal roll paper Pa.

次に、制御部20は、プリントバッファ24aに展開された画像(印刷イメージ)に基づきサーマルヘッド30等を制御して文字や図形等の画像(例えば、図5に示す画像D1、D2)を感熱ロール紙Paに印刷する(ステップS22)。これは、本発明の印刷工程に相当する。その際、制御部20は、印字開始位置を調整するため、モーター駆動回路42を制御して搬送モーター36を駆動し、プラテンローラー34を逆回転させることで、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paを、印刷媒体搬送方向とは逆方向へ所定量搬送する。その後、制御部20は、プラテンローラー34を正回転させることで、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paを、印刷媒体搬送方向へ搬送して印刷動作を継続する。   Next, the control unit 20 controls the thermal head 30 and the like based on the image (print image) developed in the print buffer 24a, and heats images such as characters and figures (for example, images D1 and D2 shown in FIG. 5). Printing on the roll paper Pa (step S22). This corresponds to the printing process of the present invention. At that time, the control unit 20 controls the motor drive circuit 42 to drive the transport motor 36 and reversely rotate the platen roller 34 in order to adjust the print start position, whereby the thermal head 30 and the platen roller 34 are rotated. The thermal roll paper Pa sandwiched between them is transported by a predetermined amount in the direction opposite to the print medium transport direction. Thereafter, the control unit 20 rotates the platen roller 34 in the forward direction, thereby conveying the thermal roll paper Pa sandwiched between the thermal head 30 and the platen roller 34 in the printing medium conveyance direction and continuing the printing operation. .

次に、制御部20は、第1センサ44の検出結果に基づき、感熱ロール紙PaのマークMを検出したか否かを判定する(ステップS24)。これは、本発明の第1検出工程に相当する。   Next, the control unit 20 determines whether or not the mark M of the thermal roll paper Pa is detected based on the detection result of the first sensor 44 (step S24). This corresponds to the first detection step of the present invention.

制御部20は、感熱ロール紙PaのマークMを検出したと判定した場合(ステップS24:Yes)、モーター駆動回路42を制御して搬送モーター36を駆動し、プラテンローラー34を回転させることで、感熱ロール紙Pa(マークM)を、カッターユニット38の切断位置P3まで搬送する(ステップS26)。具体的には、制御部20は、感熱ロール紙Pa(マークM)を第1センサ44の検出位置P1からカッターユニット38の切断位置P3まで搬送するのに必要なステップ数、搬送モーター36が回転するように、モーター駆動回路42を制御して搬送モーター36を駆動する。   When it is determined that the mark M of the thermal roll paper Pa is detected (step S24: Yes), the control unit 20 controls the motor drive circuit 42 to drive the transport motor 36 and rotate the platen roller 34. The thermal roll paper Pa (mark M) is transported to the cutting position P3 of the cutter unit 38 (step S26). Specifically, the control unit 20 rotates the transport motor 36 by the number of steps necessary to transport the thermal roll paper Pa (mark M) from the detection position P1 of the first sensor 44 to the cutting position P3 of the cutter unit 38. In this manner, the motor drive circuit 42 is controlled to drive the transport motor 36.

また、制御部20は、感熱ロール紙PaのマークMを検出したと判定した場合(ステップS24:Yes)、搬送モーター36のステップ数のカウントを開始する。   Further, when it is determined that the mark M of the thermal roll paper Pa is detected (step S24: Yes), the control unit 20 starts counting the number of steps of the transport motor 36.

次に、制御部20は、第2センサ46の検出結果に基づき、感熱ロール紙PaのマークM(第1センサ44が検出したのと同じマークM)を検出したか否かを判定する(ステップS28)。これは、本発明の第2検出工程に相当する。   Next, the control unit 20 determines based on the detection result of the second sensor 46 whether or not the mark M of the thermal roll paper Pa (the same mark M as detected by the first sensor 44) has been detected (step). S28). This corresponds to the second detection step of the present invention.

制御部20は、感熱ロール紙PaのマークMを検出したと判定した場合(ステップS28:Yes)、搬送モーター36のステップ数のカウントを終了し、当該カウントしたステップ数をROM26等の記憶部に記憶する。このカウントしたステップ数は、感熱ロール紙Pa(マークM)を第1センサ44の検出位置P1から第2センサ46の検出位置P2まで搬送するのに要した搬送モーター36の実測ステップ数を表す。   When it is determined that the mark M on the thermal roll paper Pa is detected (step S28: Yes), the control unit 20 finishes counting the number of steps of the transport motor 36, and stores the counted number of steps in a storage unit such as the ROM 26. Remember. The counted number of steps represents the actually measured number of steps of the transport motor 36 required to transport the thermal roll paper Pa (mark M) from the detection position P1 of the first sensor 44 to the detection position P2 of the second sensor 46.

次に、制御部20は、論理ステップ数記憶部26aに記憶された論理ステップ数とROM26等の記憶部に記憶された実測ステップ数とによってすべり率を算出し(ステップS30)、当該算出したすべり率をすべり率記憶部26bに記憶する(ステップS32)。すべり率は、次の式で算出される。なお、すべり率は、一枚目の紙片52に印刷している最中に算出される。   Next, the control unit 20 calculates the slip rate based on the number of logical steps stored in the logical step number storage unit 26a and the actually measured number of steps stored in the storage unit such as the ROM 26 (step S30). The rate is stored in the slip rate storage unit 26b (step S32). The slip rate is calculated by the following formula. Note that the slip ratio is calculated during printing on the first piece of paper 52.

すべり率=実測ステップ数/論理ステップ数 ・・・(式1)
例えば、実測ステップ数が110で、論理ステップ数が100の場合、すべり率=110/100=1.1が算出される。
Slip rate = Number of actually measured steps / Number of logical steps (Equation 1)
For example, when the number of actually measured steps is 110 and the number of logical steps is 100, the slip ratio = 110/100 = 1.1 is calculated.

次に、制御部20は、モーター駆動回路42を制御してカッター駆動モーター40を駆動し、カッターユニット38により、カッターユニット38の切断位置P3に位置した印刷後の感熱ロール紙Paを切断する(ステップS34)。この切断された紙片52が、バゲッジタグとして用いられる。   Next, the control unit 20 controls the motor driving circuit 42 to drive the cutter driving motor 40, and the cutter unit 38 cuts the thermal roll paper Pa after printing located at the cutting position P3 of the cutter unit 38 ( Step S34). This cut piece of paper 52 is used as a baggage tag.

次に、通信I/F48が、ホストコンピューター50から送信される、二枚目の紙片52に印刷するための印刷データを受信する(ステップS16)。これは、本発明の受信工程に相当する。   Next, the communication I / F 48 receives print data transmitted from the host computer 50 for printing on the second piece of paper 52 (step S16). This corresponds to the reception process of the present invention.

次に、制御部20は、すべり率があるか否か、具体的には、すべり率記憶部26bに滑り率が記憶されているか否かを判定する(ステップS18)。   Next, the control unit 20 determines whether or not there is a slip rate, specifically, whether or not the slip rate is stored in the slip rate storage unit 26b (step S18).

ここでは、ステップS32においてすべり率記憶部26bにすべり率が記憶されているため、制御部20は、すべり率記憶部26bにすべり率が記憶されていると判定する(ステップS18:Yes)。   Here, since the slip rate is stored in the slip rate storage unit 26b in step S32, the control unit 20 determines that the slip rate is stored in the slip rate storage unit 26b (step S18: Yes).

制御部20は、すべり率記憶部26bにすべり率が記憶されていると判定した場合(ステップS18:Yes)、すべり率記憶部26bに記憶されたすべり率に基づき、印刷データに含まれる起点座標のうちy座標を補正する(ステップS36)。具体的には、印刷データに含まれる起点座標のうちy座標にすべり率記憶部26bに記憶されたすべり率を乗じる補正を行う。   When it is determined that the slip rate is stored in the slip rate storage unit 26b (step S18: Yes), the control unit 20 starts the coordinates included in the print data based on the slip rate stored in the slip rate storage unit 26b. Among them, the y coordinate is corrected (step S36). Specifically, correction is performed by multiplying the y coordinate of the starting point coordinates included in the print data by the slip rate stored in the slip rate storage unit 26b.

例えば、図5に示す例では、起点座標(x1、y1)を(x1、y1×すべり率)と補正し、起点座標(x2、y2)を(x2、y2×すべり率)と補正する。   For example, in the example shown in FIG. 5, the starting point coordinates (x1, y1) are corrected as (x1, y1 × slip rate), and the starting point coordinates (x2, y2) are corrected as (x2, y2 × slip rate).

次に、制御部20は、ホストコンピューター50から受信した印刷データに基づいて文字や図形等の画像を含む印刷イメージをプリントバッファ24aに展開する(ステップS20)。その際、制御部20は、図6に示すように、上記のように補正した起点座標に基づいて文字や図形等の画像を含む印刷イメージをプリントバッファ24aに展開する。これは、本発明の展開工程に相当する。図6は、補正した起点座標に基づいてプリントバッファ24aに展開された画像を含む印刷イメージの一例である。   Next, the control unit 20 develops a print image including images such as characters and graphics on the print buffer 24a based on the print data received from the host computer 50 (step S20). At that time, as shown in FIG. 6, the control unit 20 develops a print image including an image such as a character or a graphic in the print buffer 24a based on the starting point coordinates corrected as described above. This corresponds to the development process of the present invention. FIG. 6 is an example of a print image including an image developed in the print buffer 24a based on the corrected starting point coordinates.

図6中、符号D1は、補正した起点座標(x1、y1×すべり率)に基づいてプリントバッファ24aに展開された画像を表し、符号D2は、補正した起点座標(x2、y2×すべり率)に基づいてプリントバッファに24aに展開された画像を表す。   In FIG. 6, reference numeral D1 represents an image developed in the print buffer 24a based on the corrected starting point coordinates (x1, y1 × slip rate), and reference numeral D2 represents the corrected starting point coordinates (x2, y2 × slip rate). Represents the image developed in 24a in the print buffer.

次に、制御部20は、プリントバッファ24aに展開された画像(印刷イメージ)に基づきサーマルヘッド30等を制御して文字や図形等の画像(例えば、図6に示す画像D1、D2)を感熱ロール紙Paに印刷する(ステップS22)。これは、本発明の制御工程に相当する。その際、制御部20は、印字開始位置を調整するため、モーター駆動回路42を制御して搬送モーター36を駆動し、プラテンローラー34を逆回転させることで、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paを、印刷媒体搬送方向とは逆方向へ所定量搬送する。その後、制御部20は、プラテンローラー34を正回転させることで、サーマルヘッド30とプラテンローラー34との間に挟持された感熱ロール紙Paを、印刷媒体搬送方向へ搬送して印刷動作を継続する。   Next, the control unit 20 controls the thermal head 30 and the like based on the image (printed image) developed in the print buffer 24a to heat images such as characters and figures (for example, images D1 and D2 shown in FIG. 6). Printing on the roll paper Pa (step S22). This corresponds to the control process of the present invention. At that time, the control unit 20 controls the motor drive circuit 42 to drive the transport motor 36 and reversely rotate the platen roller 34 in order to adjust the print start position, whereby the thermal head 30 and the platen roller 34 are rotated. The thermal roll paper Pa sandwiched between them is transported by a predetermined amount in the direction opposite to the print medium transport direction. Thereafter, the control unit 20 rotates the platen roller 34 in the forward direction, thereby conveying the thermal roll paper Pa sandwiched between the thermal head 30 and the platen roller 34 in the printing medium conveyance direction and continuing the printing operation. .

以下、上記と同様に、ステップS24〜ステップS34を実行して、感熱ロール紙Pa(マークM)を、カッターユニット38の切断位置P3まで搬送し、カッターユニット38により、カッターユニット38の切断位置P3に位置した印刷後の感熱ロール紙Paを切断する。この切断された紙片52が、バゲッジタグとして用いられる。なお、三枚目以降の紙片52についても、上記と同様にして、印刷することができる。   Thereafter, similarly to the above, Steps S24 to S34 are executed, and the thermal roll paper Pa (mark M) is conveyed to the cutting position P3 of the cutter unit 38, and the cutting position P3 of the cutter unit 38 is cut by the cutter unit 38. The heat-sensitive roll paper Pa after printing located in is cut. This cut piece of paper 52 is used as a baggage tag. The third and subsequent paper pieces 52 can be printed in the same manner as described above.

以上説明したように、本実施形態によれば、プラテンローラー34が感熱ロール紙Paに対してスリップしても、当該感熱ロール紙Paに印刷される文字や図形等の画像が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できるプリンター10、及びプリンターの制御方法を提供することができる。   As described above, according to the present embodiment, even if the platen roller 34 slips with respect to the thermal roll paper Pa, images such as characters and figures printed on the thermal roll paper Pa should be originally printed. It is possible to provide a printer 10 and a printer control method that can suppress printing from being displaced from the position.

これは、すべり率記憶部26bに記憶されたすべり率に基づき、印刷データに含まれる起点座標(印刷媒体の搬送方向の位置を示すy座標)を補正して、当該補正した起点座標に基づいて、印刷する画像をプリントバッファ24aに展開すること、そして、プリントバッファ24aに展開された画像に基づきサーマルヘッド30を制御して画像を感熱ロール紙Paに印刷すること、によるものである。   This is based on the corrected starting point coordinates by correcting the starting point coordinates (y coordinate indicating the position in the transport direction of the print medium) included in the print data based on the sliding ratios stored in the sliding rate storage unit 26b. This is because the image to be printed is developed in the print buffer 24a, and the thermal head 30 is controlled based on the image developed in the print buffer 24a to print the image on the thermal roll paper Pa.

また、本実施形態によれば、第2センサ46によって感熱ロール紙Paの先端を検出すること、及び当該先端が検出されたタイミングで感熱ロール紙Paの搬送を停止すること、が可能となるため、一枚目の紙片52が無駄になるのを防止できる。   Further, according to the present embodiment, it is possible to detect the leading edge of the thermal roll paper Pa by the second sensor 46 and to stop the conveyance of the thermal roll paper Pa at the timing when the leading edge is detected. The first piece of paper 52 can be prevented from being wasted.

また、本実施形態によれば、第2センサ46によって、第1センサ44によって検出されたのと同じマークM、及び感熱ロール紙Paの先端を検出できる。   Further, according to the present embodiment, the second sensor 46 can detect the same mark M detected by the first sensor 44 and the leading edge of the thermal roll paper Pa.

次に、変形例について説明する。   Next, a modified example will be described.

上記実施形態では、二枚目以降の紙片52に印刷する際に、起点座標を補正するように説明したが、これに限らない。例えば、一枚目の紙片52に印刷する前に、すべり率記憶部26bにすべり率を記憶しておいてもよい。例えば、前回のプリンター10使用時に記憶されたすべり率を消去せずに残しておき、今回一枚目の紙片52に印刷する際に、当該すべり率を用いて起点座標を補正するようにしてもよい。   In the above embodiment, the description has been made such that the starting point coordinates are corrected when printing on the second and subsequent paper pieces 52, but the present invention is not limited to this. For example, before printing on the first piece of paper 52, the slip rate may be stored in the slip rate storage unit 26b. For example, the slip rate stored when the printer 10 was used last time is left without being erased, and the origin coordinate is corrected using the slip rate when printing on the first piece of paper 52 this time. Good.

また、すべり率は、次のようにして、一枚目の紙片52に印刷する前に、すべり率記憶部26bに記憶してもよい。   The slip rate may be stored in the slip rate storage unit 26b before printing on the first piece of paper 52 as follows.

例えば、航空会社aと航空会社bとがプリンター10を共同利用する前提であり、かつ航空会社bが、プリンター10を利用するため、航空会社aがセットしていた感熱ロール紙Pa(種類A)を、別の種類の感熱ロール紙Pa(種類B)に交換した場合を想定する。なお、ROM26等の記憶部には、図7に示すように、感熱ロール紙Paの種類(又は当該種類の感熱ロール紙Paを使用する航空会社の識別情報)とすべり率とが予め対応づけて記憶されているものとする。   For example, it is assumed that the airline a and the airline b jointly use the printer 10, and the airline b uses the printer 10, so the thermal roll paper Pa (type A) set by the airline a is used. Is replaced with another type of thermal roll paper Pa (type B). In the storage unit such as the ROM 26, as shown in FIG. 7, the type of thermal roll paper Pa (or identification information of an airline that uses the thermal roll paper Pa of that type) is associated with the slip rate in advance. It shall be remembered.

この場合、図4に示すステップS10より前に、交換後の感熱ロール紙Paの種類B(又は当該種類Bの感熱ロール紙Paを使用する航空会社bの識別情報)を、ホストコンピューター50等から入力し、ROM26等の記憶部を参照して、当該入力した交換後の感熱ロール紙Paの種類B(又は当該種類Bの感熱ロール紙Paを使用する航空会社bの識別情報)に対応付けられたすべり率を、ROM26等の記憶部から読み出し、すべり率記憶部26bに記憶する。   In this case, before step S10 shown in FIG. 4, the type B of the thermal roll paper Pa after replacement (or the identification information of the airline b that uses the thermal roll paper Pa of the type B) is obtained from the host computer 50 or the like. Input, referring to the storage unit such as the ROM 26 and the like, is associated with the input type B of the thermal paper roll Pa after replacement (or identification information of the airline b using the type B thermal paper Pa). The sliding rate is read from the storage unit such as the ROM 26 and stored in the sliding rate storage unit 26b.

以上のようにして、一枚目の紙片52に印刷する前に、すべり率をすべり率記憶部26bに記憶することができる。   As described above, the slip rate can be stored in the slip rate storage unit 26b before printing on the first piece of paper 52.

本変形例によれば、プラテンローラー34が一枚目の紙片52に対してスリップしても、当該一枚目の紙片52に印刷される文字や図形等が本来印刷されるべき位置からズレて印刷されてしまうのを抑制できる。   According to this modification, even if the platen roller 34 slips with respect to the first paper piece 52, characters, graphics, etc. printed on the first paper piece 52 are shifted from the positions where they should be printed. It is possible to suppress printing.

また、上記実施形態では、紙片52に印刷するごとに、すべり率を算出するステップS30を実行するように説明したが、これに限らない。例えば、最初の紙片52に印刷する際にすべり率を算出するステップS30を実行し、それ以降の紙片52に印刷する際にすべり率を算出するステップS30を実行しないようにしてもよい。なお、紙片52に印刷するごとに、すべり率を算出するステップS30を実行すれば、補正の精度をより高くすることができる。   In the above-described embodiment, the description has been made so that the step S30 for calculating the slip rate is executed every time the paper piece 52 is printed. However, the present invention is not limited to this. For example, step S30 for calculating the slip rate when printing on the first piece of paper 52 may be executed, and step S30 for calculating the slip rate when printing on the subsequent piece of paper 52 may not be executed. It should be noted that the accuracy of correction can be further increased by executing step S30 for calculating the slip ratio each time printing is performed on the piece of paper 52.

また、上記実施形態では、第1センサ44をサーマルヘッド30に対して印刷媒体搬送方向上流側に設け、第2センサ46をサーマルヘッド30に対して印刷媒体搬送方向下流側に設けた例について説明したが、これに限定されない。   In the above embodiment, an example in which the first sensor 44 is provided upstream of the thermal head 30 in the print medium conveyance direction and the second sensor 46 is provided downstream of the thermal head 30 in the print medium conveyance direction will be described. However, it is not limited to this.

すなわち、第2センサ46が第1センサ44より印刷媒体搬送方向下流側に設けられていればよく、例えば、第1センサ44、及び第2センサ46は、いずれも、サーマルヘッド30に対して印刷媒体搬送方向上流側に設けられていてもよいし、サーマルヘッド30に対して印刷媒体搬送方向下流側に設けられていてもよい。   That is, it is only necessary that the second sensor 46 is provided downstream of the first sensor 44 in the print medium conveyance direction. For example, both the first sensor 44 and the second sensor 46 print on the thermal head 30. It may be provided on the upstream side in the medium conveyance direction, or may be provided on the downstream side in the print medium conveyance direction with respect to the thermal head 30.

また、上記実施形態では、制御部20は、感熱ロール紙Pa(マークM)を第1センサ44の検出位置P1からカッターユニット38の切断位置P3まで搬送するのに必要なステップ数、搬送モーター36が回転するように、モーター駆動回路42を制御して搬送モーター36を駆動するように説明したが、これに限らない。   Further, in the above embodiment, the control unit 20 includes the number of steps necessary to transport the thermal roll paper Pa (mark M) from the detection position P1 of the first sensor 44 to the cutting position P3 of the cutter unit 38, and the transport motor 36. In the above description, the motor driving circuit 42 is controlled so as to drive the transport motor 36 so as to rotate, but the present invention is not limited thereto.

例えば、制御部20は、感熱ロール紙Pa(マークM)を第1センサ44の検出位置P1からカッターユニット38の切断位置P3まで搬送するのに必要なステップ数(印刷媒体の搬送量)を、すべり率記憶部26bに記憶されたすべり率に基づき補正し、当該補正後のステップ数、搬送モーター36が回転するように、モーター駆動回路42を制御して搬送モーター36を駆動するようにしてもよい。なお、このすべり率に基づく補正は、感熱ロール紙Pa(マークM)を第1センサ44の検出位置P1からカッターユニット38の切断位置P3まで搬送するのに必要なステップ数に、すべり率記憶部26bに記憶されたすべり率を乗じる補正である。   For example, the control unit 20 calculates the number of steps (print medium conveyance amount) necessary to convey the thermal roll paper Pa (mark M) from the detection position P1 of the first sensor 44 to the cutting position P3 of the cutter unit 38. Correction may be performed based on the slip rate stored in the slip rate storage unit 26b, and the transport motor 36 may be driven by controlling the motor drive circuit 42 so that the transport motor 36 rotates by the number of steps after the correction. Good. The correction based on the slip rate is performed by adding the slip rate storage unit to the number of steps necessary to transport the thermal roll paper Pa (mark M) from the detection position P1 of the first sensor 44 to the cutting position P3 of the cutter unit 38. The correction is to multiply the slip rate stored in 26b.

このようにすれば、プラテンローラー34が感熱ロール紙Pa(印刷媒体)に対してスリップしても、感熱ロール紙Pa(マークM)が本来切断されるべき位置、すなわち、カッターユニット38の切断位置P3からズレて切断されてしまうのを抑制できる。   In this way, even if the platen roller 34 slips with respect to the thermal roll paper Pa (printing medium), the position where the thermal roll paper Pa (mark M) should be cut, that is, the cutting position of the cutter unit 38. It can suppress that it shifts | deviates from P3 and is cut | disconnected.

これは、カッターユニット38(カッター部)までの感熱ロール紙Paの搬送量を、すべり率に基づき補正することで、感熱ロール紙Pa(マークM)を、カッターユニット38の切断位置P3まで搬送することができることによるものである。   This corrects the conveyance amount of the thermal roll paper Pa to the cutter unit 38 (cutter part) based on the slip rate, thereby conveying the thermal roll paper Pa (mark M) to the cutting position P3 of the cutter unit 38. It is because it can be.

また、上記実施形態では、印刷媒体として、感熱ロール紙Paを用いた例について説明したが、これに限らず、他の用紙を用いてもよいのは無論である。   In the above-described embodiment, an example in which the heat-sensitive roll paper Pa is used as the print medium has been described. However, the present invention is not limited to this, and other paper may of course be used.

上記実施形態で示した各数値は全て例示であり、これと異なる適宜の数値を用いることができるのは無論である。   All the numerical values shown in the above embodiment are exemplifications, and it is needless to say that appropriate numerical values different from these can be used.

上記実施形態はあらゆる点で単なる例示にすぎず、上記実施形態の記載によって本発明は限定的に解釈されるものではない。本発明はその思想または主要な特徴から逸脱することなく他の様々な形で実施することができる。   The said embodiment is only an illustration in all the points, and this invention is not interpreted limitedly by description of the said embodiment. The present invention can be implemented in various other forms without departing from the spirit or main features thereof.

10…プリンター、20…制御部、22…CPU、24…RAM、24a…プリントバッファ、26…ROM、26a…論理ステップ数記憶部、26b…すべり率記憶部、30…サーマルヘッド、32…ヘッド駆動回路、34…プラテンローラー、36…搬送モーター、38…カッターユニット、38a…可動刃、38b…固定刃、40…カッター駆動モーター、42…モーター駆動回路、44…第1センサ、46…第2センサ、48…通信I/F、50…ホストコンピューター、52…紙片、A、B…種類、D1、D2…画像、L…距離、M…マーク、P1、P2…検出位置、P3…切断位置、Pa…感熱ロール紙、a、b…航空会社。   DESCRIPTION OF SYMBOLS 10 ... Printer, 20 ... Control part, 22 ... CPU, 24 ... RAM, 24a ... Print buffer, 26 ... ROM, 26a ... Logic step number memory | storage part, 26b ... Sliding rate memory | storage part, 30 ... Thermal head, 32 ... Head drive Circuit 34 ... Platen roller 36 ... Conveyance motor 38 ... Cutter unit 38a ... Movable blade 38b ... Fixed blade 40 ... Cutter drive motor 42 ... Motor drive circuit 44 ... First sensor 46 ... Second sensor 48 ... Communication I / F, 50 ... Host computer, 52 ... Paper, A, B ... Type, D1, D2 ... Image, L ... Distance, M ... Mark, P1, P2 ... Detection position, P3 ... Cut position, Pa ... thermal roll paper, a, b ... airline.

Claims (8)

所定間隔をおいて設けられた複数のマークを含む印刷媒体を、印刷ヘッドとプラテンローラーとの間に挟持して搬送するプリンターであって、
前記印刷媒体のマークを検出する第1検出部と、
前記第1検出部の印刷媒体搬送方向下流側に設けられ、前記第1検出部で検出されたマークを検出する第2検出部と、
前記第1検出部と前記第2検出部との間の長さに対応する論理ステップ数を記憶する記憶部と、
印刷する画像をプリントバッファに展開するときの位置情報を含む印刷データを受信する受信部と、
前記記憶部に記憶された論理ステップ数と、前記第1検出部の検出値及び前記第2検出部の検出値から求められる実測ステップ数と、によって算出されるすべり率に基づき、前記印刷データに含まれる位置情報を補正し、前記補正した位置情報に基づいて前記印刷する画像を前記プリントバッファに展開し、前記プリントバッファに展開される画像に基づき前記印刷ヘッドを制御して画像を印刷する制御部、とを備える、プリンター。
A printer that conveys a print medium including a plurality of marks provided at predetermined intervals between a print head and a platen roller,
A first detector for detecting a mark on the print medium;
A second detection unit that is provided downstream of the first detection unit in the print medium conveyance direction and detects a mark detected by the first detection unit;
A storage unit that stores the number of logical steps corresponding to the length between the first detection unit and the second detection unit;
A receiving unit that receives print data including position information when an image to be printed is developed in a print buffer;
Based on the slip rate calculated by the number of logical steps stored in the storage unit and the actual number of steps obtained from the detection value of the first detection unit and the detection value of the second detection unit, the print data is added to the print data. Control for correcting the position information included, expanding the image to be printed in the print buffer based on the corrected position information, and controlling the print head based on the image expanded in the print buffer to print the image A printer.
前記第1検出部は、前記印刷ヘッドに対して印刷媒体搬送方向上流側に設けられ、
前記第2検出部は、前記印刷ヘッドに対して印刷媒体搬送方向下流側に設けられる、請求項1に記載のプリンター。
The first detection unit is provided on the upstream side in the print medium conveyance direction with respect to the print head,
The printer according to claim 1, wherein the second detection unit is provided on the downstream side in the print medium conveyance direction with respect to the print head.
前記第2検出部は、前記印刷媒体の先端を検出する、請求項2に記載のプリンター。   The printer according to claim 2, wherein the second detection unit detects a leading edge of the print medium. 前記記憶部は前記印刷媒体の種類と前記すべり率とを対応付けて記憶し、
前記制御部は、
前記印刷媒体が別の印刷媒体に交換された場合、前記記憶部を参照して、前記交換後の印刷媒体に対応するすべり率に基づいて、前記印刷データに含まれる位置情報を補正する、請求項1乃至3のいずれか1項に記載のプリンター。
The storage unit stores the type of the print medium and the slip rate in association with each other,
The controller is
When the print medium is replaced with another print medium, the storage unit is referred to correct position information included in the print data based on a slip rate corresponding to the replaced print medium. Item 4. The printer according to any one of Items 1 to 3.
前記位置情報は、前記印刷媒体の幅方向の位置を示すx座標と、前記印刷媒体の搬送方向の位置を示すy座標とを含む座標情報であって、
前記制御部は、
前記すべり率に基づいて、前記y座標を補正する請求項1乃至4のいずれか1項に記載のプリンター。
The position information is coordinate information including an x coordinate indicating a position in the width direction of the print medium and a y coordinate indicating a position in the transport direction of the print medium,
The controller is
The printer according to claim 1, wherein the y coordinate is corrected based on the slip ratio.
前記印刷ヘッドに対して印刷媒体搬送方向下流側に設けられ、前記印刷媒体を切断するカッター部を備え、
前記制御部は、
前記カッター部までの前記印刷媒体の搬送量を、前記すべり率に基づき補正する請求項1乃至5のいずれか1項に記載のプリンター。
Provided on the downstream side in the print medium conveyance direction with respect to the print head, comprising a cutter unit for cutting the print medium,
The controller is
The printer according to claim 1, wherein the conveyance amount of the print medium to the cutter unit is corrected based on the slip rate.
前記印刷媒体は、ロール紙である、請求項1乃至6のいずれか1項に記載のプリンター。   The printer according to claim 1, wherein the print medium is roll paper. 所定間隔をおいて設けられた複数のマークを含む印刷媒体を、印刷ヘッドとプラテンローラーとの間に挟持して搬送するプリンターの制御方法であって、
前記印刷媒体のマークを第1検出部によって検出する第1検出工程と、
前記第1検出部の印刷媒体搬送方向下流側に設けられた第2検出部によって、前記第1検出部によって検出したマークを検出する第2検出工程と、
印刷する画像をプリントバッファに展開するときの位置情報を含む印刷データを受信する受信工程と、
前記第1検出部と前記第2検出部との間の長さに対応する論理ステップ数と、前記第1検出部の検出値及び前記第2検出部の検出値から求められる実測ステップ数と、によって算出されるすべり率に基づき、前記印刷データに含まれる位置情報を補正し、前記補正した位置情報に基づいて前記印刷する画像を前記プリントバッファに展開し、前記プリントバッファに展開された画像に基づき前記印刷ヘッドを制御して画像を印刷する制御工程と、を含むプリンターの制御方法。
A control method for a printer that conveys a print medium including a plurality of marks provided at a predetermined interval, sandwiched between a print head and a platen roller,
A first detection step of detecting a mark on the print medium by a first detection unit;
A second detection step of detecting a mark detected by the first detection unit by a second detection unit provided downstream of the first detection unit in the print medium conveyance direction;
A receiving step for receiving print data including position information when an image to be printed is developed in a print buffer;
The number of logical steps corresponding to the length between the first detection unit and the second detection unit, the number of actual measurement steps obtained from the detection value of the first detection unit and the detection value of the second detection unit, The position information included in the print data is corrected based on the slip rate calculated by the above, the image to be printed is developed in the print buffer based on the corrected position information, and the image developed in the print buffer And a control step of controlling the print head to print an image.
JP2016119029A 2016-06-15 2016-06-15 Printer and control method for the same Withdrawn JP2017222084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016119029A JP2017222084A (en) 2016-06-15 2016-06-15 Printer and control method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016119029A JP2017222084A (en) 2016-06-15 2016-06-15 Printer and control method for the same

Publications (1)

Publication Number Publication Date
JP2017222084A true JP2017222084A (en) 2017-12-21

Family

ID=60687588

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016119029A Withdrawn JP2017222084A (en) 2016-06-15 2016-06-15 Printer and control method for the same

Country Status (1)

Country Link
JP (1) JP2017222084A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535099A (en) * 2021-05-08 2021-10-22 南京富士通电子信息科技股份有限公司 Print head driving method and apparatus, storage medium, and electronic apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04194956A (en) * 1990-11-27 1992-07-14 Matsushita Graphic Commun Syst Inc Multicolor image recorder
JP2002321410A (en) * 2001-04-27 2002-11-05 Sato Corp Method and apparatus for processing control of band-like substance
JP2003260833A (en) * 2002-03-08 2003-09-16 Seiko Epson Corp Cutter position controller, recorder, and method for adjusting cutting position
JP2006123509A (en) * 2004-09-27 2006-05-18 Seiko Epson Corp Printer, and method and program for controlling print controller
US20120069075A1 (en) * 2010-09-22 2012-03-22 Pawlik Thomas D Optical sensor for printer media motion detection
JP2012116133A (en) * 2010-12-02 2012-06-21 Seiko Epson Corp Printing device, and control method therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04194956A (en) * 1990-11-27 1992-07-14 Matsushita Graphic Commun Syst Inc Multicolor image recorder
JP2002321410A (en) * 2001-04-27 2002-11-05 Sato Corp Method and apparatus for processing control of band-like substance
JP2003260833A (en) * 2002-03-08 2003-09-16 Seiko Epson Corp Cutter position controller, recorder, and method for adjusting cutting position
JP2006123509A (en) * 2004-09-27 2006-05-18 Seiko Epson Corp Printer, and method and program for controlling print controller
US20120069075A1 (en) * 2010-09-22 2012-03-22 Pawlik Thomas D Optical sensor for printer media motion detection
JP2012116133A (en) * 2010-12-02 2012-06-21 Seiko Epson Corp Printing device, and control method therefor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535099A (en) * 2021-05-08 2021-10-22 南京富士通电子信息科技股份有限公司 Print head driving method and apparatus, storage medium, and electronic apparatus
CN113535099B (en) * 2021-05-08 2024-01-02 南京富士通电子信息科技股份有限公司 Print head driving method and apparatus, storage medium, and electronic apparatus

Similar Documents

Publication Publication Date Title
JP5803093B2 (en) Printing apparatus and control method thereof
JP5657461B2 (en) Printer
JP2009226716A (en) Image forming apparatus, cutting device, image forming system image forming program and cutting program
EP3325361B1 (en) Detecting misalignment
CA2972255C (en) Printing method
JP2017222084A (en) Printer and control method for the same
CN108928139B (en) Printing apparatus and control method of printing apparatus
JP2010221574A (en) Printer, printing position correction method, printing position correction program, and program recording medium
JP2013184324A (en) Image forming apparatus and image forming method
JP2016034725A (en) Label printer and method of controlling label printer
JP6312043B2 (en) Image forming apparatus, cutting processing apparatus, printing system, and program
JP4143001B2 (en) Label continuum and printer
JP4798153B2 (en) Sheet-like member cutting device
JP2004058337A (en) Printer
JP2008055604A (en) Printer
JP2002321410A (en) Method and apparatus for processing control of band-like substance
JP2019048690A (en) Printer and program
JP5951298B2 (en) Thermal printer and printing paper position correction method
JP2002361954A (en) Label printer
JP2005125536A (en) Printer
JPWO2017199409A1 (en) Printer device, printer control device, and printer driver program
JP6327457B2 (en) Image forming apparatus, cutting processing apparatus, printing system, and program
JP5095789B2 (en) Printing apparatus and conveying method of printing apparatus
JP2017226484A (en) Printer and control method
JP2006076032A (en) Printer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190419

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200225

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200303

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20200309