JP2017226484A - Printer and control method - Google Patents

Printer and control method Download PDF

Info

Publication number
JP2017226484A
JP2017226484A JP2016121440A JP2016121440A JP2017226484A JP 2017226484 A JP2017226484 A JP 2017226484A JP 2016121440 A JP2016121440 A JP 2016121440A JP 2016121440 A JP2016121440 A JP 2016121440A JP 2017226484 A JP2017226484 A JP 2017226484A
Authority
JP
Japan
Prior art keywords
printing
print medium
unit
inclination
print
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.)
Pending
Application number
JP2016121440A
Other languages
Japanese (ja)
Inventor
僚太 近藤
Ryota Kondo
僚太 近藤
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 JP2016121440A priority Critical patent/JP2017226484A/en
Publication of JP2017226484A publication Critical patent/JP2017226484A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Handling Of Sheets (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Electronic Switches (AREA)
  • Registering, Tensioning, Guiding Webs, And Rollers Therefor (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a printer capable of suppressing an imbalance between characters or an image printed in a left portion and characters or an image printed in a right portion out of a printing medium, and the like.SOLUTION: A printer comprises: a transportation section being disposed with rollers 34a and 34b at both ends in a width direction of a printing medium and transporting the printing medium; detection sections 44a and 44b detecting inclination of the printing medium; a printing section 30 performing printing onto the printing medium; and a control section 20 controlling a rotational speed of at least one of the rollers 34a and 34b, and executing correction processing for correcting the inclination of the printing medium based on detection results of the detection sections 44a and 44b. The control section 20 does not execute the correction processing while characters or an image is being printed on the printing medium by the printing section 30.SELECTED DRAWING: Figure 1

Description

本発明は、プリンター、及び制御方法に関し、特に、印刷媒体のうち、左部分(印刷媒体のうち、印刷媒体搬送方向に向かって左側の部分)に印字される文字又は画像と、右部分(印刷媒体のうち、印刷媒体搬送方向に向かって右側の部分)に印字される文字又は画像とのバランスが崩れるのを抑制することができるプリンター、及び制御方法に関する。   The present invention relates to a printer and a control method, and in particular, a character or image printed on a left portion (a left portion of a print medium in a print medium conveyance direction) and a right portion (printing) of a print medium. The present invention relates to a printer and a control method that can prevent the balance with characters or images printed on the right side of the medium in the print medium conveyance direction from being lost.

従来、左右両側に各々に配置された紙送りローラー及び当該紙送りローラーを回転させる駆動モーター、各紙送りローラーによって紙送りされる印刷媒体の傾きを検出するためのセンサ等を備え、印刷媒体の傾きが検出された場合、一方の紙送りローラー(駆動モーター)の回転速度を他方の紙送りローラー(駆動モーター)の回転速度より高速にすることで、印刷媒体の傾きを補正することが提案されている(例えば、特許文献1参照)。   Conventionally, a paper feed roller arranged on each of the left and right sides, a drive motor for rotating the paper feed roller, a sensor for detecting the tilt of the print medium fed by each paper feed roller, etc. Is detected, it is proposed to correct the inclination of the print medium by making the rotation speed of one paper feed roller (drive motor) faster than the rotation speed of the other paper feed roller (drive motor). (For example, refer to Patent Document 1).

特開平6−103009号公報JP-A-6-103090

しかしながら、特許文献1においては、例えば、左側に印刷媒体が傾いたことが検出されて、左側の紙送りローラー(駆動モーター)の回転速度を相対的に高速にして補正を行う場合、印刷媒体のうち、左部分(印刷媒体のうち、印刷媒体搬送方向に向かって左側の部分)が右部分(印刷媒体のうち、印刷媒体搬送方向に向かって右側の部分)と比較して高速で紙送りされることになる。その結果、上記補正が文字又は画像の印字中に行われると、印刷媒体のうち、左部分に印字される文字又は画像と、右部分に印字される文字又は画像とのバランスが崩れるという課題がある。   However, in Patent Document 1, for example, when it is detected that the print medium is tilted to the left side and the correction is performed by relatively increasing the rotation speed of the left paper feed roller (drive motor), Of these, the left part (the left part of the print medium in the print medium transport direction) is fed at a higher speed than the right part (the right part of the print medium in the print medium transport direction). Will be. As a result, when the correction is performed during printing of characters or images, there is a problem in that the balance between the characters or images printed on the left portion and the characters or images printed on the right portion of the print medium is lost. is there.

本発明は、上記事情に鑑みてなされたものであり、印刷媒体のうち、左部分に印字される文字、又は画像と右部分に印字される文字、又は画像とのバランスが崩れるのを抑制することができるプリンター等を提供することを目的とする。   The present invention has been made in view of the above circumstances, and suppresses the balance between the characters printed on the left part or the characters printed on the right part and the image or the balance of the print medium. An object is to provide a printer or the like that can be used.

上記目的を達成するために、本発明の一つの側面は、印刷媒体の幅方向両端にローラーが配置され、前記印刷媒体を搬送する搬送部と、前記印刷媒体の傾きを検出する検出部と、前記印刷媒体に印刷する印刷部と、前記検出部の検出結果に基づき、前記ローラーの少なくとも一方の回転速度を制御して前記印刷媒体の傾きを補正する補正処理を実行する制御部と、を備え、前記制御部は、前記印刷部によって前記印刷媒体に文字又は画像が印刷されている間は、前記補正処理を実行しないことを特徴とする。   In order to achieve the above object, according to one aspect of the present invention, rollers are disposed at both ends in the width direction of a print medium, a transport unit that transports the print medium, a detection unit that detects an inclination of the print medium, A printing unit that prints on the printing medium; and a control unit that executes a correction process for correcting the inclination of the printing medium by controlling the rotation speed of at least one of the rollers based on the detection result of the detection unit. The control unit does not execute the correction process while characters or images are printed on the print medium by the printing unit.

この側面によれば、印刷媒体のうち、左部分に印字される文字、又は画像と右部分に印字される文字、又は画像とのバランスが崩れるのを抑制することができるプリンターを提供することができる。   According to this aspect, it is possible to provide a printer capable of suppressing the balance between the characters printed on the left portion or the characters printed on the right portion and the images or the image of the print medium. it can.

これは、印刷媒体に文字又は画像が印刷されている間は、印刷媒体の傾きを補正する補正処理を実行しないことによるものである。   This is because correction processing for correcting the inclination of the print medium is not executed while characters or images are printed on the print medium.

また、上記発明において、好ましい態様は、ホストコンピューターと接続可能であって
、前記印刷媒体を切断する切断部と、前記ホストコンピューターから送信されるコマンドを含む印刷データを受信する受信部と、をさらに備え、前記制御部は、前記受信部によって前記印刷媒体の切断を指示するカットコマンドが受信された場合、前記切断部を制御して前記印刷媒体を切断後、前記補正処理を実行することを特徴とする。
Further, in the above invention, a preferred aspect is further provided with a cutting unit that is connectable to a host computer, cuts the print medium, and a receiving unit that receives print data including a command transmitted from the host computer. The controller is configured to control the cutting unit to cut the print medium and execute the correction process when a cut command for instructing cutting of the print medium is received by the receiving unit. And

この態様によれば、印刷媒体に文字又は画像が印刷されていない間、すなわち、印刷媒体を切断後、次の印刷を開始する前に、印刷媒体の傾きを補正する補正処理を実行することができる。   According to this aspect, the correction process for correcting the inclination of the print medium is executed while characters or images are not printed on the print medium, that is, after the print medium is cut and before the next printing is started. it can.

また、上記発明において、好ましい態様は、前記制御部は、前記印刷部によって空白行又は余白が空印刷されている間に、前記補正処理を実行することを特徴とする。   In the above invention, a preferable aspect is characterized in that the control unit performs the correction process while blank lines or blanks are blank printed by the printing unit.

この態様によれば、印刷媒体に文字又は画像が印刷されていない間、すなわち、空白行又は余白が空印刷されている間に、印刷媒体の傾きを補正する補正処理を実行することができる。   According to this aspect, it is possible to execute the correction process for correcting the inclination of the print medium while characters or images are not printed on the print medium, that is, while blank lines or blanks are blank printed.

また、上記発明において、好ましい態様は、ホストコンピューターと接続可能であって、記ホストコンピューターから送信されるコマンドを含む印刷データを受信する受信部と、前記受信部によって受信された前記印刷データを記憶する受信バッファと、をさらに備え、前記制御部は、前記受信バッファに記憶された前記印刷データに所定数以上の空白行又は所定長さ以上の余白があると判別した場合、前記印刷部によって空印刷されている間に、前記補正処理を実行することを特徴とする。   In the above-mentioned invention, a preferred aspect is a connection unit that can be connected to a host computer, and that receives print data including a command transmitted from the host computer, and stores the print data received by the reception unit. And when the control unit determines that the print data stored in the reception buffer has a predetermined number or more of blank lines or a margin of a predetermined length or more, the control unit The correction process is performed during printing.

この態様によれば、印刷媒体に文字又は画像が印刷されていない間、すなわち、空白行又は余白が空印刷されている間に、印刷媒体の傾きを補正する補正処理を実行することができる。   According to this aspect, it is possible to execute the correction process for correcting the inclination of the print medium while characters or images are not printed on the print medium, that is, while blank lines or blanks are blank printed.

また、上記発明において、好ましい態様は、前記制御部は、前記印刷部によって前記印刷媒体に文字又は画像が印刷されている間に前記検出部によって前記印刷媒体の傾きが検出された場合、前記印刷部による印刷を中断させ、前記補正処理を実行し、当該補正処理の実行が完了後、前記印刷媒体が前記補正処理の実行前の位置に戻るように前記ローラーを制御し、前記印刷部による印刷を再開させることを特徴とする。   In the above invention, a preferable aspect is that the control unit is configured to print the print medium when the detection unit detects an inclination of the print medium while characters or an image are printed on the print medium. Printing by the printing unit is interrupted, the correction process is executed, and after the execution of the correction process is completed, the roller is controlled so that the printing medium returns to the position before the correction process is executed. It is characterized by restarting.

この態様によれば、印刷媒体に文字又は画像が印刷されていない間、すなわち、印刷媒体に文字又は画像が印刷されている間に印刷媒体の傾きが検出され、印刷を中断後、残りの文字、又は画像の印刷を再開する前に、印刷媒体の傾きを補正する補正処理を実行することができる。   According to this aspect, while characters or images are not printed on the print medium, that is, while the characters or images are printed on the print medium, the inclination of the print medium is detected, and after printing is interrupted, the remaining characters Alternatively, a correction process for correcting the inclination of the print medium can be executed before the printing of the image is resumed.

また、上記発明において、好ましい態様は、前記印刷部が第1印刷ジョブに基づく印刷に続けて第2印刷ジョブに基づく印刷を実行する場合、前記第1印刷ジョブに基づく印刷が実行されている間に前記検出部によって前記印刷媒体の傾きが検出されたとき、前記制御部は、前記印刷部が前記第2印刷ジョブに基づく印刷を実行する前に前記補正処理を実行することを特徴とする。   In the above invention, a preferable aspect is that, when the printing unit executes printing based on the second print job following printing based on the first print job, the printing based on the first print job is being performed. When the inclination of the print medium is detected by the detection unit, the control unit executes the correction process before the printing unit executes printing based on the second print job.

この態様によれば、印刷媒体に文字又は画像が印刷されていない間、すなわち、第1印刷ジョブに基づく印刷が実行されている間に印刷媒体の傾きが検出された後、第2印刷ジョブに基づく印刷を実行する前に、印刷媒体の傾きを補正する補正処理を実行することができる。   According to this aspect, while the character or image is not printed on the print medium, that is, while the printing based on the first print job is being executed, the second print job is detected after the inclination of the print medium is detected. A correction process for correcting the inclination of the print medium can be executed before executing the printing based on the print medium.

本発明の別の側面は、印刷媒体の幅方向両端に配置されたローラーによって前記印刷媒
体を搬送する搬送工程と、前記印刷媒体の傾きを検出する検出工程と、前記印刷媒体に印刷する印刷工程と、前記検出工程の検出結果に基づき、前記ローラーのうち少なくとも一方の回転速度を制御して前記印刷媒体の傾きを補正する補正処理を実行する補正処理工程と、を含み、前記補正処理工程は、前記印刷工程によって前記印刷媒体に文字又は画像が印刷されている間は、前記補正処理を実行しないことを特徴とする。
Another aspect of the present invention is a transport process for transporting the print medium by rollers arranged at both ends in the width direction of the print medium, a detection process for detecting the inclination of the print medium, and a printing process for printing on the print medium. And a correction processing step for executing correction processing for correcting the inclination of the printing medium by controlling the rotational speed of at least one of the rollers based on the detection result of the detection step, and the correction processing step The correction process is not executed while a character or an image is printed on the print medium by the printing process.

この側面によれば、印刷媒体のうち、左部分に印字される文字、又は画像と右部分に印字される文字、又は画像とのバランスが崩れるのを抑制することができる制御方法を提供することができる。   According to this aspect, there is provided a control method capable of suppressing the balance between the characters printed on the left portion or the characters printed on the right portion and the images or images on the right portion of the print medium. Can do.

これは、印刷媒体に文字又は画像が印刷されている間は、印刷媒体の傾きを補正する補正処理を実行しないことによるものである。   This is because correction processing for correcting the inclination of the print medium is not executed while characters or images are printed on the print medium.

本発明のプリンター、及び制御方法が適用されるプリンター10の概略構成を示す図である。1 is a diagram illustrating a schematic configuration of a printer and a printer 10 to which a control method of the present invention is applied. 図1中矢印A方向から見たプリンター10の概略構成を示す図である。FIG. 2 is a diagram illustrating a schematic configuration of the printer 10 as viewed from the direction of arrow A in FIG. 1. プリンター10のハード構成の一例を示す図である。2 is a diagram illustrating an example of a hardware configuration of a printer. FIG. 感熱ロール紙Paを切断後、次の印刷を開始する前に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process which performs the correction process which correct | amends the inclination of the thermal roll paper Pa, before cutting the thermal roll paper Pa and before starting the next printing. 空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。10 is a flowchart for explaining a process of executing a correction process for correcting the inclination of the thermal roll paper Pa while a blank line is blank printed. 感熱ロール紙Paに文字又は画像が印刷されている間に感熱ロール紙Paの傾きが検出され、印刷を中断後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。The inclination of the thermal roll paper Pa is detected while characters or images are being printed on the thermal roll paper Pa. After the printing is interrupted, the inclination of the thermal roll paper Pa is resumed before the printing of the remaining characters or images is resumed. It is a flowchart for demonstrating the process which performs the correction process which correct | amends.

以下、本発明の実施形態について添付図面を参照しながら説明する。各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。   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の概略構成を示す図である。図2は、図1中矢印A方向から見たプリンター10の概略構成を示す図である。なお、図2中、サーマルヘッド30、及びカッターユニット38は、省略されている。   FIG. 1 is a diagram showing a schematic configuration of a printer 10 according to the present invention and a printer 10 to which a control method is applied. FIG. 2 is a diagram showing a schematic configuration of the printer 10 viewed from the direction of arrow A in FIG. In FIG. 2, the thermal head 30 and the cutter unit 38 are omitted.

図1、図2に示すように、プリンター10は、サーマルヘッド30と各プラテンローラー34a、34bとの間に挟持された感熱ロール紙Pa(印刷媒体)を、各プラテンローラー34a、34bを回転させることで印刷媒体搬送方向へ搬送しつつ、サーマルヘッド30を駆動することで感熱ロール紙Paの印刷面に熱を与えて、感熱ロール紙Paの印刷面にドットを形成することにより、文字又は画像を印刷するレシートプリンターである。   As shown in FIG. 1 and FIG. 2, the printer 10 rotates each platen roller 34a, 34b with a thermal roll paper Pa (printing medium) sandwiched between the thermal head 30 and each platen roller 34a, 34b. By driving the thermal head 30 while transporting in the print medium transport direction, the print surface of the thermal roll paper Pa is heated to form dots on the print surface of the thermal roll paper Pa. Is a receipt printer for printing.

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

図3に示すように、プリンター10は、ハード構成として、制御部20、サーマルヘッド30、サーマルヘッド30に接続されたヘッド駆動回路32、左側プラテンローラー34a、左側紙送りモーター36a、右側プラテンローラー34b、右側紙送りモーター36b、カッターユニット38、カッター駆動モーター40、各紙送りモーター36a、36b及びカッター駆動モーター40に接続されたモーター駆動回路42、左側センサ44a、右側センサ44b、通信I/F48等を備える。   As shown in FIG. 3, the printer 10 includes a control unit 20, a thermal head 30, a head driving circuit 32 connected to the thermal head 30, a left platen roller 34 a, a left paper feed motor 36 a, and a right platen roller 34 b as hardware configurations. , Right paper feed motor 36b, cutter unit 38, cutter drive motor 40, motor drive circuit 42 connected to each paper feed motor 36a, 36b and cutter drive motor 40, left sensor 44a, right sensor 44b, communication I / F 48, etc. Prepare.

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

制御部20は、CPU22、RAM24、ROM26等を含む。RAM24は、受信バッファ24aを含む。ROM26は、例えば、フラッシュROM等の書き換え可能な不揮発性メモリーで、制御プログラム等のファームウエアが記憶される。   The control unit 20 includes a CPU 22, a RAM 24, a ROM 26, and the like. The RAM 24 includes a reception 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.

サーマルヘッド30は、感熱ロール紙Paに文字又は画像を印刷する印刷部で、これに接続されたヘッド駆動回路32によって駆動される。制御部20がヘッド駆動回路32を制御してサーマルヘッド30を駆動すると、当該サーマルヘッド30が感熱ロール紙Paの印刷面に熱を与えて、感熱ロール紙Paの印刷面にドットを形成する。これにより、感熱ロール紙Paの印刷面に文字又は画像が印刷される。   The thermal head 30 is a printing unit that prints characters or images on the thermal roll paper Pa, and 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. Thereby, a character or an image is printed on the printing surface of the thermal roll paper Pa.

各プラテンローラー34a、34bは、図示しない伝達機構(例えば、減速歯車列)を介して各紙送りモーター36a、36bに連結される。各プラテンローラー34a、34bは、例えば、感熱ロール紙Paの幅方向両端に配置され(図2参照)、感熱ロール紙Paを搬送する。各紙送りモーター36a、36bは、例えば、ステッピングモーターによって構成される。各紙送りモーター36a、36bは、これに接続されたモーター駆動回路42によって個別に駆動される。制御部20がモーター駆動回路42を制御して各紙送りモーター36a、36bを駆動すると、各紙送りモーター36a、36bの回転が伝達機構を介して各プラテンローラー34a、34bに伝達され、各プラテンローラー34a、34bが回転する。これにより、サーマルヘッド30と各プラテンローラー34a、34bとの間に挟持された感熱ロール紙Paが、印刷媒体搬送方向(図1、図2参照)へ搬送される。各プラテンローラー34a、34b、及び各紙送りモーター36a、36bが、主に、本発明の搬送部を構成する。   Each platen roller 34a, 34b is connected to each paper feed motor 36a, 36b via a transmission mechanism (for example, a reduction gear train) (not shown). Each platen roller 34a, 34b is disposed, for example, at both ends in the width direction of the thermal roll paper Pa (see FIG. 2), and conveys the thermal roll paper Pa. Each of the paper feed motors 36a and 36b is constituted by a stepping motor, for example. Each paper feed motor 36a, 36b is individually driven by a motor drive circuit 42 connected thereto. When the control unit 20 controls the motor drive circuit 42 to drive the paper feed motors 36a and 36b, the rotations of the paper feed motors 36a and 36b are transmitted to the platen rollers 34a and 34b via the transmission mechanism, and the platen rollers 34a. , 34b rotate. As a result, the thermal roll paper Pa sandwiched between the thermal head 30 and the platen rollers 34a and 34b is conveyed in the print medium conveyance direction (see FIGS. 1 and 2). Each of the platen rollers 34a and 34b and each of the paper feed motors 36a and 36b mainly constitutes a transport unit of the present invention.

各センサ44a、44bは、感熱ロール紙Paの傾きを検出する検出部で、例えば、マイクロスイッチ等の接触型のセンサによって構成される。各センサ44a、44bは、例えば、図1、図2に示すように、感熱ロール紙Paの幅方向両端、かつサーマルヘッド30に対して印刷媒体搬送方向上流側に設けられる。これに限らず、各センサ44a、44bは、サーマルヘッド30に対して印刷媒体搬送方向下流側に設けてもよい。   Each of the sensors 44a and 44b is a detection unit that detects the inclination of the thermal roll paper Pa, and is configured by a contact-type sensor such as a microswitch, for example. For example, as shown in FIGS. 1 and 2, the sensors 44 a and 44 b are provided at both ends of the thermal roll paper Pa in the width direction and upstream of the thermal head 30 in the print medium conveyance direction. Not only this but each sensor 44a, 44b may be provided in the printing medium conveyance direction downstream side with respect to the thermal head 30. FIG.

制御部20は、各センサ44a、44bの検出結果に基づき、プラテンローラー34a、34bの少なくとも一方の回転速度を制御して感熱ロール紙Paの傾きを補正する補正処理(以下、単に補正処理ともいう)を実行する。なお、制御部20は、サーマルヘッド30によって感熱ロール紙Paに文字又は画像が印刷されている間は、補正処理を実行しない。この制御部20の動作については、後に詳述する。   The control unit 20 corrects the tilt of the thermal roll paper Pa by controlling the rotational speed of at least one of the platen rollers 34a and 34b based on the detection results of the sensors 44a and 44b (hereinafter also simply referred to as a correction process). ). The control unit 20 does not perform the correction process while characters or images are printed on the thermal roll paper Pa by the thermal head 30. The operation of the control unit 20 will be described in detail later.

カッターユニット38は、感熱ロール紙Paを切断する切断部で、可動刃38aを固定刃38bに対して直線的に(図1中上下方向に)進退させるカッター駆動機構(図示せず)を備えており、サーマルヘッド30に対して印刷媒体搬送方向下流側に設けられる。カッター駆動機構は、カッター駆動モーター40を含む。カッター駆動モーター40は、これに接続されたモーター駆動回路42によって駆動される。制御部20がモーター駆動回路42を制御してカッター駆動モーター40を駆動すると、可動刃38aが固定刃38bに対して近づく方向に直線的に移動される。これにより、カッターユニット38の位置に位置した感熱ロール紙Paが切断される。   The cutter unit 38 is a cutting unit that cuts the thermal roll paper Pa, and includes a cutter driving mechanism (not shown) that moves the movable blade 38a forward and backward (in the vertical direction in FIG. 1) relative to the fixed blade 38b. And provided downstream of the thermal head 30 in the print medium conveyance 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 at the position of the cutter unit 38 is cut.

通信I/F48には、通信ケーブル等を介してホストコンピューター50が接続される。通信I/F48は、ホストコンピューター50から送信される印刷データ(印刷ジョブ
)を受信する受信部として機能する。通信I/F48によって受信された印刷データは、受信バッファ24aに記憶される。印刷データは、感熱ロール紙Paに文字又は画像を印刷するためのデータで、文字等の印字を指示する印字コマンド、改行を指示する改行コマンド、感熱ロール紙Paの切断を指示するカットコマンド等を含む。なお、印刷データは、グラフィックデータに基づく画像の印刷を指示するグラフィックコマンド、及びグラフィックデータを含む場合もある。
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 (print job) transmitted from the host computer 50. The print data received by the communication I / F 48 is stored in the reception buffer 24a. The print data is data for printing characters or images on the thermal roll paper Pa, and includes a print command for instructing printing of characters, a line feed command for instructing line feed, a cut command for instructing cutting of the thermal roll paper Pa, and the like. Including. Note that the print data may include a graphic command for instructing printing of an image based on the graphic data, and graphic data.

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

図4は、感熱ロール紙Paを切断後、次の印刷を開始する前に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。   FIG. 4 is a flowchart for explaining a process of executing a correction process for correcting the inclination of the thermal roll paper Pa after cutting the thermal roll paper Pa and before starting the next printing.

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

通信I/F48は、ホストコンピューター50から送信される印刷データ(第1印刷ジョブ)を受信した場合(ステップS10:Yes)、当該受信した印刷データを受信バッファ24aに記憶する。   When receiving the print data (first print job) transmitted from the host computer 50 (step S10: Yes), the communication I / F 48 stores the received print data in the reception buffer 24a.

次に、制御部20は、受信バッファ24aに記憶された印刷データを順次解析し、その解析結果に基づいて、サーマルヘッド30や紙送りモーター36a、36bを制御して文字又は画像を感熱ロール紙Paに印刷する(ステップS12)。具体的には、制御部20は、モーター駆動回路42を制御して各紙送りモーター36a、36bを駆動し、各プラテンローラー34a、34bを同一速度で回転させることで、感熱ロール紙Paを印刷媒体搬送方向へ搬送する。これは、本発明の搬送工程に相当する。これとともに、制御部20は、ヘッド駆動回路32を制御してサーマルヘッド30を駆動し、文字又は画像を感熱ロール紙Paに印刷する。これは、本発明の印刷工程に相当する。   Next, the control unit 20 sequentially analyzes the print data stored in the reception buffer 24a, and controls the thermal head 30 and the paper feed motors 36a and 36b on the basis of the analysis result to display characters or images on the thermal roll paper. Printing is performed on Pa (step S12). Specifically, the control unit 20 controls the motor drive circuit 42 to drive the paper feed motors 36a and 36b and rotate the platen rollers 34a and 34b at the same speed, so that the thermal roll paper Pa is printed on the printing medium. Transport in the transport direction. This corresponds to the conveying step of the present invention. At the same time, the control unit 20 drives the thermal head 30 by controlling the head drive circuit 32 to print characters or images on the thermal roll paper Pa. This corresponds to the printing process of the present invention.

次に、制御部20は、解析したコマンドがカッタコマンドの場合、カッターユニット38を制御して感熱ロール紙Paを切断する(ステップS14)。   Next, when the analyzed command is a cutter command, the control unit 20 controls the cutter unit 38 to cut the thermal roll paper Pa (step S14).

次に、制御部20は、各センサ44a、44bの検出結果に基づき、感熱ロール紙Paの傾きを検出する(ステップS16、S20)。これは、本発明の検出工程に相当する。そして、制御部20は、感熱ロール紙Paの傾きを検出した場合(ステップS16:Yes、ステップS20:Yes)、各プラテンローラー34a、34bの回転速度を制御して感熱ロール紙Paの傾きを補正する補正処理(ステップS18、S22)を実行する。これは、本発明の補正処理工程に相当する。   Next, the control unit 20 detects the inclination of the thermal roll paper Pa based on the detection results of the sensors 44a and 44b (steps S16 and S20). This corresponds to the detection step of the present invention. When the controller 20 detects the inclination of the thermal roll paper Pa (step S16: Yes, step S20: Yes), the controller 20 controls the rotational speed of the platen rollers 34a and 34b to correct the inclination of the thermal roll paper Pa. Correction processing (steps S18 and S22) to be executed is executed. This corresponds to the correction processing step of the present invention.

以下、この補正処理について説明する。   Hereinafter, this correction process will be described.

まず、制御部20は、左側センサ44aの検出結果がオンか否かを判定する(ステップS16)。   First, the control unit 20 determines whether or not the detection result of the left sensor 44a is on (step S16).

そして、制御部20は、左側センサ44aの検出結果がオンと判定した場合(ステップS16:Yes)、すなわち、感熱ロール紙Paの左側への傾きを検出した場合、モーター駆動回路42を制御して、右側紙送りモーター36bの出力を「中」、左側紙送りモーター36aの出力を「強」とする(ステップS18)。すなわち、左側プラテンローラー34aの回転速度が右側プラテンローラー34bの回転速度より相対的に速くなるように、各紙送りモーター36a、36bの回転速度を制御する。これにより、感熱ロール紙P
aのうち、左部分が右部分と比較して高速で紙送りされることとなり、感熱ロール紙Paの左側への傾きが補正される。感熱ロール紙Paのうち、左部分は、図2に示すように、感熱ロール紙Paのうち、印刷媒体搬送方向に向かって左側の部分PaLである。同様に、感熱ロール紙Paのうち、右部分は、図2に示すように、感熱ロール紙Paのうち、印刷媒体搬送方向に向かって右側の部分PaRである。
When the detection result of the left sensor 44a is determined to be on (step S16: Yes), that is, when the inclination of the thermal roll paper Pa to the left is detected, the control unit 20 controls the motor drive circuit 42. The output of the right paper feed motor 36b is set to “medium”, and the output of the left paper feed motor 36a is set to “strong” (step S18). That is, the rotation speeds of the paper feed motors 36a and 36b are controlled so that the rotation speed of the left platen roller 34a is relatively higher than the rotation speed of the right platen roller 34b. As a result, the thermal roll paper P
Among a, the left portion is fed at a higher speed than the right portion, and the leftward inclination of the thermal roll paper Pa is corrected. As shown in FIG. 2, the left portion of the thermal roll paper Pa is the left portion PaL of the thermal roll paper Pa in the print medium conveyance direction. Similarly, the right portion of the thermal roll paper Pa is the right portion PaR of the thermal roll paper Pa in the print medium conveyance direction, as shown in FIG.

なお、感熱ロール紙Paの左側への傾きを検出した場合、左側のプラテンローラー34aの回転速度が右側のプラテンローラー34bの回転速度より相対的に速くなるように各紙送りモーター36a、36bの回転速度を制御すればよく、例えば、左側のプラテンローラー34aの回転速度が中速度、右側プラテンローラー34bの回転速度が低速度になるようにしてもよいし、左側のプラテンローラー34aの回転速度が高速度、右側プラテンローラー34bの回転速度が中速度になるようにしてもよいし、左側のプラテンローラー34aの回転速度が高速度、右側プラテンローラー34bの回転速度が低速度になるようにしてもよい。   When the left-side inclination of the thermal roll paper Pa is detected, the rotation speeds of the paper feed motors 36a and 36b are set so that the rotation speed of the left platen roller 34a is relatively higher than the rotation speed of the right platen roller 34b. For example, the rotation speed of the left platen roller 34a may be medium, the rotation speed of the right platen roller 34b may be low, or the rotation speed of the left platen roller 34a may be high. The rotation speed of the right platen roller 34b may be medium, the rotation speed of the left platen roller 34a may be high, and the rotation speed of the right platen roller 34b may be low.

一方、制御部20は、左側センサ44aの検出結果がオフと判定した場合(ステップS16:No)、さらに、右側センサ44bの検出結果がオンか否かを判定する(ステップS20)。   On the other hand, when it is determined that the detection result of the left sensor 44a is off (step S16: No), the control unit 20 further determines whether the detection result of the right sensor 44b is on (step S20).

そして、制御部20は、右側センサ44bの検出結果がオンと判定した場合(ステップS20:Yes)、すなわち、感熱ロール紙Paの右側への傾きを検出した場合、モーター駆動回路42を制御して、右側紙送りモーター36bの出力を「強」、左側紙送りモーター36aの出力を「中」とする(ステップS22)。すなわち、右側プラテンローラー34bの回転速度が左側プラテンローラー34aの回転速度より相対的に速くなるように、各紙送りモーター36a、36bの回転速度を制御する。これにより、感熱ロール紙Paのうち、右部分が左部分と比較して高速で紙送りされることとなり、感熱ロール紙Paの右側への傾きが補正される。   When the detection result of the right sensor 44b is determined to be on (step S20: Yes), that is, when the inclination of the thermal roll paper Pa to the right is detected, the control unit 20 controls the motor drive circuit 42. The output of the right paper feed motor 36b is set to “strong” and the output of the left paper feed motor 36a is set to “medium” (step S22). That is, the rotation speeds of the paper feed motors 36a and 36b are controlled so that the rotation speed of the right platen roller 34b is relatively higher than the rotation speed of the left platen roller 34a. Thus, the right part of the thermal roll paper Pa is fed at a higher speed than the left part, and the inclination of the thermal roll paper Pa to the right is corrected.

なお、感熱ロール紙Paの右側への傾きを検出した場合、右側のプラテンローラー34bの回転速度が左側のプラテンローラー34aの回転速度より相対的に速くなるように各紙送りモーター36a、36bの回転速度を制御すればよく、例えば、右側プラテンローラー34bの回転速度が中速度、左側プラテンローラーの回転速度が低速度になるようにしてもよいし、右側プラテンローラー34bの回転速度が高速度、左側プラテンローラーの回転速度が中速度になるようにしてもよいし、右側プラテンローラー34bの回転速度が高速度、左側プラテンローラー34aの回転速度が低速度になるようにしてもよい。   When the right-side inclination of the thermal roll paper Pa is detected, the rotation speeds of the paper feed motors 36a and 36b are set so that the rotation speed of the right platen roller 34b is relatively higher than the rotation speed of the left platen roller 34a. For example, the rotation speed of the right platen roller 34b may be medium and the rotation speed of the left platen roller may be low. Alternatively, the rotation speed of the right platen roller 34b may be high and the left platen roller 34b. The rotation speed of the roller may be a medium speed, the rotation speed of the right platen roller 34b may be high, and the rotation speed of the left platen roller 34a may be low.

以上のようにして、補正処理が実行される。   The correction process is executed as described above.

次に、制御部20は、上記補正処理の実行が完了し、感熱ロール紙Paの傾きを検出しなくなった場合(ステップS16:No、ステップS20:No)、感熱ロール紙Paを上記補正処理の実行前の元の位置に戻す(ステップS24)。これは、例えば、制御部20が、モーター駆動回路42を制御して各紙送りモーター36a、36bを駆動し、各プラテンローラー34a、34bを同一速度で逆回転させて、感熱ロール紙Paを印刷媒体搬送方向とは逆方向へ所定量搬送することで実現される。   Next, when the execution of the correction process is completed and the inclination of the thermal roll paper Pa is no longer detected (step S16: No, step S20: No), the control unit 20 converts the thermal roll paper Pa to the correction process. It returns to the original position before execution (step S24). For example, the control unit 20 controls the motor drive circuit 42 to drive the paper feed motors 36a and 36b, reversely rotate the platen rollers 34a and 34b at the same speed, and transfer the thermal roll paper Pa to the printing medium. This is realized by transporting a predetermined amount in the direction opposite to the transport direction.

以後、制御部20は、通信I/F48がホストコンピューター50から送信される印刷データを受信するごとに(ステップS10:Yes)、上記ステップS12〜ステップS24を繰り返し実行する。   Thereafter, whenever the communication I / F 48 receives print data transmitted from the host computer 50 (step S10: Yes), the control unit 20 repeatedly executes the above steps S12 to S24.

以上説明したように、本実施形態によれば、感熱ロール紙Paのうち、左部分に印字さ
れる文字又は画像と、右部分に印字される文字又は画像とのバランスが崩れるのを抑制することができるプリンター10を提供することができる。
As described above, according to this embodiment, in the thermal roll paper Pa, the balance between the character or image printed on the left portion and the character or image printed on the right portion is prevented from being lost. It is possible to provide a printer 10 that can

これは、第1に、感熱ロール紙Paに文字又は画像が印刷されている間は、感熱ロール紙Paの傾きを補正する補正処理を実行しないこと、第2に、感熱ロール紙Paに文字又は画像が印刷されていない間、すなわち、感熱ロール紙Paを切断後、次の印刷を開始する前に、感熱ロール紙Paの傾きを補正する補正処理を実行すること、によるものである。   This is because, firstly, while the characters or images are printed on the thermal roll paper Pa, the correction process for correcting the inclination of the thermal roll paper Pa is not executed. This is by executing a correction process for correcting the inclination of the thermal roll paper Pa while the image is not printed, that is, after cutting the thermal roll paper Pa and before starting the next printing.

なお、上記実施形態では、印刷完了後(例えば、感熱ロール紙Paを切断後)、感熱ロール紙Paの傾きを検出する例について説明したが、これに限らず、第1印刷データ(第1印刷ジョブ)に基づく印刷を実行中に、各センサ44a、44bで傾きを検出するようにしてもよい。例えば、サーマルヘッド30が第1印刷データ(第1印刷ジョブ)に基づく印刷に続けて第2印刷データ(第2印刷ジョブ)に基づく印刷を実行する場合、第1印刷データに基づく印刷が実行されている間に各センサ44a、44bによって感熱ロール紙Paの傾きを検出し、傾きが検出されたとき、制御部20は、サーマルヘッド30が第2印刷データに基づく印刷を実行する前に、補正処理を実行するようにしてもよい。   In the above-described embodiment, an example in which the inclination of the thermal roll paper Pa is detected after completion of printing (for example, after cutting the thermal roll paper Pa) is not limited to this, but the first print data (first print The inclination may be detected by the sensors 44a and 44b during printing based on the job. For example, when the thermal head 30 executes printing based on the second print data (second print job) subsequent to printing based on the first print data (first print job), printing based on the first print data is executed. While detecting the inclination of the thermal roll paper Pa by the sensors 44a and 44b, the control unit 20 corrects the inclination before the thermal head 30 executes printing based on the second print data. Processing may be executed.

次に、プリンター10の動作(制御方法)の変形例として、空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理について図面を参照しながら説明する。   Next, as a modification of the operation (control method) of the printer 10, a process for executing a correction process for correcting the inclination of the thermal roll paper Pa while a blank line is blank printed will be described with reference to the drawings. .

図5は、空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。以下、図4に示すフローチャートとの相違点を中心に説明し、図4に示すフローチャートと同じステップについては同じ符号を付し、適宜説明を省略する。   FIG. 5 is a flowchart for explaining a process of executing a correction process for correcting the inclination of the thermal roll paper Pa while a blank line is blank printed. In the following, differences from the flowchart shown in FIG. 4 will be mainly described, and the same steps as those in the flowchart shown in FIG.

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

通信I/F48は、ホストコンピューター50から送信される印刷データを受信した場合(ステップS10:Yes)、当該受信した印刷データを受信バッファ24aに記憶する。   When the print data transmitted from the host computer 50 is received (step S10: Yes), the communication I / F 48 stores the received print data in the reception buffer 24a.

次に、制御部20は、受信バッファ24aに記憶された印刷データを順次解析し(ステップS32)、その解析結果に基づいて、感熱ロール紙Paに印刷する(ステップS36、S40)。   Next, the control unit 20 sequentially analyzes the print data stored in the reception buffer 24a (step S32), and prints on the thermal roll paper Pa based on the analysis result (steps S36 and S40).

例えば、制御部20は、解析したコマンドが印字コマンドの場合(ステップS34:Yes)、サーマルヘッド30や各紙送りモーター36a、36bを制御して文字を感熱ロール紙Paに印刷する(ステップS36)。一方、制御部20は、解析したコマンドが改行コマンドの場合(ステップS34:No、ステップS38:Yes)、主に、各紙送りモーター36a、36bを制御して1行分の紙送りを実行する(ステップS40)。すなわち、1行分の空白行の空印刷を実行する。   For example, when the analyzed command is a print command (step S34: Yes), the control unit 20 controls the thermal head 30 and the paper feed motors 36a and 36b to print characters on the thermal roll paper Pa (step S36). On the other hand, when the analyzed command is a line feed command (step S34: No, step S38: Yes), the control unit 20 mainly controls the paper feed motors 36a and 36b to execute one line of paper feed ( Step S40). That is, blank printing of one blank line is executed.

次に、制御部20は、サーマルヘッド30によって空白行が空印刷されている間に、各センサ44a、44bの検出結果に基づき、感熱ロール紙Paの傾きを検出する(ステップS16、S20)。そして、制御部20は、感熱ロール紙Paの傾きを検出した場合(ステップS16:Yes、ステップS20:Yes)、上記実施形態と同様、各プラテンローラー34a、34bの回転速度を制御して感熱ロール紙Paの傾きを補正する補正処
理(ステップS18、S22)を実行する。
Next, the control unit 20 detects the inclination of the thermal roll paper Pa based on the detection results of the sensors 44a and 44b while blank lines are blank printed by the thermal head 30 (steps S16 and S20). And the control part 20 controls the rotational speed of each platen roller 34a, 34b similarly to the said embodiment, when the inclination of the thermal roll paper Pa is detected (step S16: Yes, step S20: Yes). Correction processing (steps S18 and S22) for correcting the inclination of the paper Pa is executed.

次に、制御部20は、空白行の紙送りが終了したか否かを判定し(ステップS50)、終了していないと判定した場合(ステップS50:No)、上記ステップS40〜ステップS50を繰り返し実行する。一方、制御部20は、空白行の紙送りが終了したと判定した場合(ステップS50:Yes)、ステップS32以下のステップを実行し、例えば、空白行に続く残りの文字、又は画像の印刷を継続する。   Next, the control unit 20 determines whether or not the blank line paper feed has been completed (step S50). When it is determined that the blank line has not been completed (step S50: No), the above steps S40 to S50 are repeated. Run. On the other hand, when the control unit 20 determines that the paper feed of the blank line has been completed (step S50: Yes), the control unit 20 executes the steps after step S32, for example, printing the remaining characters or images following the blank line. continue.

そして、制御部20は、受信バッファ24aに記憶された印刷データの解析が終了したか否かを判定し(ステップS52)、終了していないと判定した場合(ステップS52:No)、ステップS32以下のステップを繰り返し実行し、例えば、残りの文字、又は画像の印刷を継続する。一方、制御部20は、受信バッファ24aに記憶された印刷データの解析が終了したと判定した場合(ステップS52:Yes)、図5に示す処理を終了する。   Then, the control unit 20 determines whether or not the analysis of the print data stored in the reception buffer 24a has been completed (step S52). When it is determined that the analysis has not been completed (step S52: No), the control unit 20 and subsequent steps This step is repeatedly executed, for example, printing of the remaining characters or images is continued. On the other hand, when the control unit 20 determines that the analysis of the print data stored in the reception buffer 24a is finished (step S52: Yes), the process shown in FIG. 5 is finished.

以後、制御部20は、通信I/F48がホストコンピューター50から送信される印刷データを受信するごとに(ステップS10:Yes)、上記ステップS10〜ステップS52を繰り返し実行する。   Thereafter, whenever the communication I / F 48 receives print data transmitted from the host computer 50 (step S10: Yes), the control unit 20 repeatedly executes the above steps S10 to S52.

以上説明したように、本変形例によれば、感熱ロール紙Paのうち、左部分に印字される文字、又は画像と右部分に印字される文字、又は画像とのバランスが崩れるのを抑制することができるプリンター10を提供することができる。   As described above, according to the present modified example, it is possible to prevent the balance between the character printed on the left part or the character printed on the right part and the image or the image of the thermal roll paper Pa from being lost. It is possible to provide a printer 10 that can be used.

これは、第1に、感熱ロール紙Paに文字又は画像が印刷されている間は、感熱ロール紙Paの傾きを補正する補正処理を実行しないこと、第2に、感熱ロール紙Paに文字又は画像が印刷されていない間、すなわち、空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行すること、によるものである。   This is because, firstly, while the characters or images are printed on the thermal roll paper Pa, the correction process for correcting the inclination of the thermal roll paper Pa is not executed. This is because the correction process for correcting the inclination of the thermal roll paper Pa is executed while the image is not printed, that is, while the blank line is blank printed.

なお、本変形例では、1行分の空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行する例について説明したが、これに限らない。   In this modification, an example is described in which correction processing for correcting the inclination of the thermal roll paper Pa is performed while one blank line is blank printed. However, the present invention is not limited to this.

例えば、所定数以上の空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行するようにしてもよい。これは、例えば、制御部20が、受信バッファ24aを参照して、当該受信バッファ24aに記憶されている印刷データに所定数以上の空白行があると判別した場合、当該所定数以上の空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行することで実現される。   For example, a correction process for correcting the inclination of the thermal roll paper Pa may be executed while a predetermined number or more of blank lines are blank printed. For example, when the control unit 20 refers to the reception buffer 24a and determines that the print data stored in the reception buffer 24a has a predetermined number or more of blank lines, the control unit 20 determines that the predetermined number or more of blank lines. This is realized by executing a correction process for correcting the inclination of the thermal roll paper Pa while is being printed blank.

また、本変形例では、解析したコマンドが改行コマンドの場合、空白行を空印刷し、当該空白行が空印刷されている間に、感熱ロール紙Paの傾きを補正する例について説明したが、これに限らない。   Further, in the present modification, when the analyzed command is a line feed command, a blank line is blank printed, and the example in which the inclination of the thermal roll paper Pa is corrected while the blank line is blank printed has been described. Not limited to this.

例えば、解析したコマンドがグラフィックコマンドの場合、サーマルヘッド30や紙送りモーター36a、36bを制御してグラフィックデータに基づく画像を感熱ロール紙Paに印刷し、当該画像中の余白(例えば、所定長さ以上の余白)が空印刷されている間に、感熱ロール紙Paの傾きを補正するようにしてもよい。これは、例えば、制御部20が、受信バッファ24aを参照して、当該受信バッファ24aに記憶されている印刷データ(例えば、グラフィックデータ)に余白(例えば、所定長さ以上の余白)があると判別した場合、当該余白が空印刷されている間に、感熱ロール紙Paの傾きを補正する補正処理を実行することで実現される。   For example, when the analyzed command is a graphic command, the thermal head 30 and the paper feed motors 36a and 36b are controlled to print an image based on the graphic data on the thermal roll paper Pa, and a margin (for example, a predetermined length) in the image is printed. While the above margin) is blank printed, the inclination of the thermal roll paper Pa may be corrected. For example, when the control unit 20 refers to the reception buffer 24a and print data (for example, graphic data) stored in the reception buffer 24a has a margin (for example, a margin of a predetermined length or more). When the determination is made, this is realized by executing a correction process for correcting the inclination of the thermal roll paper Pa while the margin is blank printed.

また、本変形例では、制御部20が、受信バッファ24aを参照して、受信バッファ24aに記憶された印刷データに所定数以上の空白行又は所定長さ以上の余白があると判別した場合、空印刷されている間に、補正処理を実行するように説明したが、これに限らない。   Further, in this modification, when the control unit 20 refers to the reception buffer 24a and determines that the print data stored in the reception buffer 24a has a predetermined number or more of blank lines or a margin of a predetermined length or more, Although it has been described that the correction process is executed during the blank printing, the present invention is not limited to this.

例えば、制御部20が、プリントバッファ(図示せず)を参照して、当該プリントバッファに記憶された印刷イメージ(印刷データに基づく印刷イメージ)に空白行又は余白(例えば、所定数以上の空白行又は所定長さ以上の余白)があると判別した場合、空印刷されている間に、補正処理を実行するようしてもよい。   For example, the control unit 20 refers to a print buffer (not shown) and adds a blank line or a margin (for example, a predetermined number or more blank lines) to a print image (print image based on print data) stored in the print buffer. Alternatively, the correction process may be executed while the blank printing is performed.

次に、プリンター10の動作(制御方法)の変形例として、感熱ロール紙Paに文字又は画像が印刷されている間に感熱ロール紙Paの傾きが検出され、印刷を中断後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理について図面を参照しながら説明する。   Next, as a modification of the operation (control method) of the printer 10, the inclination of the thermal roll paper Pa is detected while characters or images are being printed on the thermal roll paper Pa, and after printing is interrupted, the remaining characters, Alternatively, a process of executing a correction process for correcting the inclination of the thermal roll paper Pa before restarting image printing will be described with reference to the drawings.

図6は、感熱ロール紙Paに文字又は画像が印刷されている間に感熱ロール紙Paの傾きが検出され、印刷を中断後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正する補正処理を実行する処理を説明するためのフローチャートである。以下、図4に示すフローチャートとの相違点を中心に説明し、図4に示すフローチャートと同じステップについては同じ符号を付し、適宜説明を省略する。   FIG. 6 shows a state in which the inclination of the thermal roll paper Pa is detected while characters or images are printed on the thermal roll paper Pa, and after the printing is interrupted, before the printing of the remaining characters or images is resumed, 6 is a flowchart for explaining a process of executing a correction process for correcting the inclination of paper Pa. In the following, differences from the flowchart shown in FIG. 4 will be mainly described, and the same steps as those in the flowchart shown in FIG.

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

通信I/F48は、ホストコンピューター50から送信される印刷データを受信した場合(ステップS10:Yes)、当該受信した印刷データを受信バッファ24aに記憶する。   When the print data transmitted from the host computer 50 is received (step S10: Yes), the communication I / F 48 stores the received print data in the reception buffer 24a.

次に、制御部20は、受信バッファ24aに記憶された印刷データを順次解析し(ステップS62)、その解析結果に基づいて、感熱ロール紙Paに印刷する(ステップS66)。   Next, the control unit 20 sequentially analyzes the print data stored in the reception buffer 24a (step S62), and prints on the thermal roll paper Pa based on the analysis result (step S66).

例えば、制御部20は、解析したコマンドが印字コマンドの場合(ステップS64:Yes)、サーマルヘッド30や各紙送りモーター36a、36bを制御して文字を感熱ロール紙Paに印刷する(ステップS66)。なお、制御部20は、解析したコマンドが印字コマンド以外のコマンドの場合(ステップS64:No)、当該コマンドに応じた処理を実行する(ステップS84)。   For example, when the analyzed command is a print command (step S64: Yes), the control unit 20 controls the thermal head 30 and the paper feed motors 36a and 36b to print characters on the thermal roll paper Pa (step S66). In addition, when the analyzed command is a command other than the print command (step S64: No), the control unit 20 executes processing according to the command (step S84).

次に、制御部20は、サーマルヘッド30によって文字が印刷されている間に、各センサ44a、44bの検出結果に基づき、感熱ロール紙Paの傾きを検出する(ステップS16、S20)。そして、制御部20は、感熱ロール紙Paの傾きを検出した場合(ステップS16:Yes、ステップS20:Yes)、印刷を中断し(ステップS70、S76)、各プラテンローラー34a、34bの回転速度を制御して感熱ロール紙Paの傾きを補正する補正処理(ステップS18、S22)を実行する。   Next, the control unit 20 detects the inclination of the thermal roll paper Pa based on the detection results of the sensors 44a and 44b while characters are printed by the thermal head 30 (steps S16 and S20). And the control part 20 interrupts printing (step S70, S76), when the inclination of the thermal roll paper Pa is detected (step S16: Yes, step S20: Yes), and sets the rotational speed of each platen roller 34a, 34b. Correction processing (steps S18 and S22) for controlling and correcting the inclination of the thermal roll paper Pa is executed.

次に、制御部20は、上記補正処理の実行が完了し、感熱ロール紙Paの傾きを検出しなくなった場合(ステップS16:No、ステップS20:No)、感熱ロール紙Paを上記補正処理の実行前の元の位置に戻す(ステップS24)。これは、例えば、制御部20が、モーター駆動回路42を制御して各紙送りモーター36a、36bを駆動し、各プラテンローラー34a、34bを同一速度で逆回転させることで、感熱ロール紙Paを印
刷媒体搬送方向とは逆方向へ所定量搬送することで実現される。
Next, when the execution of the correction process is completed and the inclination of the thermal roll paper Pa is no longer detected (step S16: No, step S20: No), the control unit 20 converts the thermal roll paper Pa to the correction process. It returns to the original position before execution (step S24). This is because, for example, the controller 20 controls the motor drive circuit 42 to drive the paper feed motors 36a and 36b and reversely rotate the platen rollers 34a and 34b at the same speed, thereby printing the thermal roll paper Pa. This is realized by transporting a predetermined amount in the direction opposite to the medium transport direction.

そして、制御部20は、受信バッファ24aに記憶された印刷データの解析が終了したか否かを判定し(ステップS82)、終了していないと判定した場合(ステップS82:No)、ステップS62以下のステップを繰り返し実行し、例えば、残りの文字、又は画像の印刷を継続する。一方、制御部20は、受信バッファ24aに記憶された印刷データの解析が終了したと判定した場合(ステップS82:Yes)、図6に示す処理を終了する。   Then, the control unit 20 determines whether or not the analysis of the print data stored in the reception buffer 24a has been completed (step S82). If it is determined that the analysis has not ended (step S82: No), the control unit 20 and subsequent steps This step is repeatedly executed, for example, printing of the remaining characters or images is continued. On the other hand, when the control unit 20 determines that the analysis of the print data stored in the reception buffer 24a has been completed (step S82: Yes), the process illustrated in FIG.

以後、制御部20は、通信I/F48がホストコンピューター50から送信される印刷データを受信するごとに(ステップS10:Yes)、上記ステップS10〜ステップS82を繰り返し実行する。   Thereafter, whenever the communication I / F 48 receives print data transmitted from the host computer 50 (step S10: Yes), the control unit 20 repeatedly executes the above steps S10 to S82.

以上説明したように、本変形例によれば、感熱ロール紙Paのうち、左部分に印字される文字、又は画像と右部分に印字される文字、又は画像とのバランスが崩れるのを抑制することができるプリンター10を提供することができる。   As described above, according to the present modified example, it is possible to prevent the balance between the character printed on the left part or the character printed on the right part and the image or the image of the thermal roll paper Pa from being lost. It is possible to provide a printer 10 that can be used.

これは、第1に、感熱ロール紙Paに文字又は画像が印刷されている間は、感熱ロール紙Paの傾きを補正する補正処理を実行しないこと、第2に、感熱ロール紙Paに文字又は画像が印刷されていない間、すなわち、感熱ロール紙Paに文字又は画像が印刷されている間に感熱ロール紙Paの傾きが検出され、印刷を中断後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正する補正処理を実行すること、によるものである。   This is because, firstly, while the characters or images are printed on the thermal roll paper Pa, the correction process for correcting the inclination of the thermal roll paper Pa is not executed. While the image is not printed, that is, while the character or image is printed on the thermal roll paper Pa, the inclination of the thermal roll paper Pa is detected, and after printing is interrupted, printing of the remaining characters or image is resumed. This is because a correction process for correcting the inclination of the thermal roll paper Pa is performed before the process.

なお、本変形例では、解析したコマンドが印字コマンドで、当該印字コマンドに基づく文字が印刷されている間に感熱ロール紙Paの傾きが検出された場合、印刷を中断し、その後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正する例について説明したが、これに限らない。   In this modification, if the analyzed command is a print command and the inclination of the thermal roll paper Pa is detected while the character based on the print command is being printed, the printing is interrupted, and then the remaining characters Although an example in which the inclination of the thermal roll paper Pa is corrected before the printing of the image is resumed has been described, the present invention is not limited to this.

例えば、解析したコマンドがグラフィックコマンドで、グラフィックデータに基づく画像が印刷されている間に感熱ロール紙Paの傾きが検出された場合、印刷を中断し、その後、残りの文字、又は画像の印刷を再開する前に、感熱ロール紙Paの傾きを補正するようにしてもよい。   For example, if the analyzed command is a graphic command and the inclination of the thermal roll paper Pa is detected while an image based on graphic data is being printed, the printing is interrupted, and then the remaining characters or images are printed. You may make it correct | amend the inclination of the thermal roll paper Pa before restarting.

なお、上記実施形態、及び各変形例では、レシートプリンターに本発明を適用した例について説明したが、これに限らず、レシートプリンター以外のジャーナルプリンター等の他のプリンターにも、本発明を適用してもよいのは無論である。   In the above embodiment and each modified example, the example in which the present invention is applied to a receipt printer has been described. However, the present invention is not limited to this, and the present invention is also applied to other printers such as a journal printer other than a receipt printer. Of course, it is possible.

また、上記実施形態、及び各変形例では、印刷媒体として、感熱ロール紙Paを用いた例について説明したが、これに限らず、感熱ロール紙Pa以外のカット紙等の用紙を用いてもよいのは無論である。   Further, in the above-described embodiment and each modified example, the example in which the thermal roll paper Pa is used as the printing medium has been described. Of course.

また、上記実施形態、及び各変形例では、各センサ44a、44bとして、マイクロスイッチ等の接触型のセンサを用いた例について説明したが、これに限らず、接触型のセンサ以外の光センサ等の非接触型のセンサを用いてもよいのは無論である。   Further, in the above-described embodiment and each modified example, an example in which a contact type sensor such as a microswitch is used as each sensor 44a and 44b has been described. However, the present invention is not limited to this, and an optical sensor other than the contact type sensor may be used. Of course, the non-contact type sensor may 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 above embodiment is merely an example in all respects. The present invention is not construed as being limited by the description of the above 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、30…サーマルヘッド、32…ヘッド駆動回路、34a…左側プラテンローラー、34b…右側プラテンローラー、36a…左側紙送りモーター、36b…右側紙送りモーター、38…カッターユニット、38a…可動刃、38b…固定刃、40…カッター駆動モーター、42…モーター駆動回路、44a…左側センサ、44b…右側センサ、48…通信I/F、50…ホストコンピューター、Pa…感熱ロール紙。   DESCRIPTION OF SYMBOLS 10 ... Printer, 20 ... Control part, 22 ... CPU, 24 ... RAM, 24a ... Reception buffer, 26 ... ROM, 30 ... Thermal head, 32 ... Head drive circuit, 34a ... Left platen roller, 34b ... Right platen roller, 36a ... left paper feed motor, 36b ... right paper feed motor, 38 ... cutter unit, 38a ... movable blade, 38b ... fixed blade, 40 ... cutter drive motor, 42 ... motor drive circuit, 44a ... left sensor, 44b ... right sensor, 48 ... Communication I / F, 50 ... Host computer, Pa ... Thermal roll paper.

Claims (7)

印刷媒体の幅方向に2つのローラーが配置され、前記印刷媒体を搬送する搬送部と、
前記印刷媒体の傾きを検出する検出部と、
前記印刷媒体に印刷する印刷部と、
前記検出部の検出結果に基づき、前記ローラーの少なくとも一方の回転速度を制御して前記印刷媒体の傾きを補正する補正処理を実行する制御部と、を備え、
前記制御部は、前記印刷部を制御して前記印刷媒体に文字又は画像を印刷している間は、前記補正処理を実行しない、プリンター。
Two rollers are arranged in the width direction of the print medium, and a transport unit that transports the print medium;
A detection unit for detecting the inclination of the print medium;
A printing unit for printing on the print medium;
A control unit that executes a correction process for correcting the inclination of the print medium by controlling the rotation speed of at least one of the rollers based on the detection result of the detection unit;
The control unit is a printer that does not execute the correction process while printing characters or images on the print medium by controlling the printing unit.
ホストコンピューターと接続可能であって、
前記印刷媒体を切断する切断部と、
前記ホストコンピューターから送信されるコマンドを含む印刷データを受信する受信部と、をさらに備え、
前記制御部は、前記受信部によって前記印刷媒体の切断を指示するカットコマンドが受信された場合、前記切断部を制御して前記印刷媒体を切断後、前記補正処理を実行する、請求項1に記載のプリンター。
It can be connected to the host computer and
A cutting section for cutting the print medium;
A receiving unit that receives print data including a command transmitted from the host computer,
2. The control unit according to claim 1, wherein when the cut command instructing cutting of the print medium is received by the receiving unit, the control unit executes the correction process after controlling the cutting unit to cut the print medium. The printer described.
前記制御部は、前記印刷部を制御して空白行又は余白を空印刷している間に、前記補正処理を実行する、請求項1又は2に記載のプリンター。   The printer according to claim 1, wherein the control unit executes the correction process while the blanking line or a blank is blank printed by controlling the printing unit. ホストコンピューターと接続可能であって、
前記ホストコンピューターから送信されるコマンドを含む印刷データを記憶する受信バッファをさらに備え、
前記制御部は、前記受信バッファに記憶された前記印刷データに所定数以上の空白行又は所定長さ以上の余白があると判別した場合、前記印刷部を制御して空印刷している間に、前記補正処理を実行する、請求項3に記載のプリンター。
It can be connected to the host computer and
A reception buffer for storing print data including a command transmitted from the host computer;
When the control unit determines that the print data stored in the reception buffer has a predetermined number or more of blank lines or a margin of a predetermined length or more, the control unit controls the printing unit to perform blank printing. The printer according to claim 3, wherein the correction process is executed.
前記制御部は、
前記印刷部によって前記印刷媒体に文字又は画像が印刷されている間に前記検出部によって前記印刷媒体の傾きが検出された場合、前記印刷部による印刷を中断させ、前記補正処理を実行する、請求項1から4のいずれか1項に記載のプリンター。
The controller is
When the inclination of the printing medium is detected by the detection unit while characters or images are being printed on the printing medium by the printing unit, printing by the printing unit is interrupted and the correction process is executed. Item 5. The printer according to any one of Items 1 to 4.
前記印刷部が第1印刷ジョブに基づく印刷に続けて第2印刷ジョブに基づく印刷を実行する場合、前記第1印刷ジョブに基づく印刷が実行されている間に前記検出部によって前記印刷媒体の傾きが検出されたとき、前記制御部は、前記印刷部が前記第2印刷ジョブに基づく印刷を実行する前に前記補正処理を実行する、請求項1から5のいずれか1項に記載のプリンター。   When the printing unit executes printing based on the second print job following printing based on the first print job, the detection unit tilts the printing medium while printing based on the first print job is being performed. The printer according to any one of claims 1 to 5, wherein the control unit executes the correction process before the printing unit executes printing based on the second print job when the printing unit is detected. 印刷媒体の幅方向に配置された2つのローラーによって前記印刷媒体を搬送する搬送工程と、
前記印刷媒体の傾きを検出する検出工程と、
前記印刷媒体に印刷する印刷工程と、
前記検出工程の検出結果に基づき、前記ローラーのうち少なくとも一方の回転速度を制御して前記印刷媒体の傾きを補正する補正処理を実行する補正処理工程と、を含み、
前記補正処理工程は、前記印刷工程によって前記印刷媒体に文字又は画像が印刷されている間は、前記補正処理を実行しない、プリンターの制御方法。
A transport step of transporting the print medium by two rollers arranged in the width direction of the print medium;
A detection step of detecting the inclination of the print medium;
A printing process for printing on the printing medium;
A correction processing step of executing a correction processing for correcting the inclination of the print medium by controlling the rotational speed of at least one of the rollers based on the detection result of the detection step,
The printer control method, wherein the correction processing step does not execute the correction processing while characters or images are printed on the print medium in the printing step.
JP2016121440A 2016-06-20 2016-06-20 Printer and control method Pending JP2017226484A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016121440A JP2017226484A (en) 2016-06-20 2016-06-20 Printer and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016121440A JP2017226484A (en) 2016-06-20 2016-06-20 Printer and control method

Publications (1)

Publication Number Publication Date
JP2017226484A true JP2017226484A (en) 2017-12-28

Family

ID=60890888

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016121440A Pending JP2017226484A (en) 2016-06-20 2016-06-20 Printer and control method

Country Status (1)

Country Link
JP (1) JP2017226484A (en)

Similar Documents

Publication Publication Date Title
KR100811165B1 (en) Printing Position Error Reduction Method and Printer
WO2011013190A1 (en) Printer cutter
JP5617466B2 (en) Recording apparatus and recording / cutting control method
JP2012179882A (en) Label writer
JP5630174B2 (en) Recording apparatus and recording / cutting control method
JP7346058B2 (en) Recording device, recording method, and program
JP2007145577A (en) Recording device and recording control program
US20200307273A1 (en) Printing apparatus, control method of printing apparatus, and storage medium
JP2004002019A (en) Image forming device, and correcting method of vertical alignment of image forming device
JP2017226484A (en) Printer and control method
US20180072075A1 (en) Serial-type recording apparatus
JP4822984B2 (en) RECORDING MEDIUM CONVEYING DEVICE, CONVEYING METHOD, AND RECORDING DEVICE
JP6131714B2 (en) Image forming system
JP2006051610A (en) Recording apparatus and recording method
JP4198025B2 (en) Printing device
JP2017222084A (en) Printer and control method for the same
JP7499086B2 (en) Thermal printer and program
JP2010052282A (en) Printing apparatus and printing-medium transportation control method in printing apparatus
JP2019185590A (en) Bar code generation device and bar code generation method
US20240007577A1 (en) Image Recording Device, Method of Controlling Image Recording Device, and Non-Transitory Computer-Readable Recording Medium Therefor
JP4662864B2 (en) Printing device
JP7110071B2 (en) Printing system, media feeding device and printing device
JP2021133503A (en) Printer, control method, and program
JP6297450B2 (en) Printer and recording method
JP6198052B2 (en) Cutting device, cutting control device, cutting control method, cutting control program, and printing device

Legal Events

Date Code Title Description
RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180907

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181120