JP2017056562A - Recording device and control method for the same - Google Patents

Recording device and control method for the same Download PDF

Info

Publication number
JP2017056562A
JP2017056562A JP2015180440A JP2015180440A JP2017056562A JP 2017056562 A JP2017056562 A JP 2017056562A JP 2015180440 A JP2015180440 A JP 2015180440A JP 2015180440 A JP2015180440 A JP 2015180440A JP 2017056562 A JP2017056562 A JP 2017056562A
Authority
JP
Japan
Prior art keywords
print data
printing
print
blank area
recording
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
JP2015180440A
Other languages
Japanese (ja)
Inventor
聡 大元
Satoshi Omoto
聡 大元
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 JP2015180440A priority Critical patent/JP2017056562A/en
Publication of JP2017056562A publication Critical patent/JP2017056562A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a recording device preventing a reduction in printing quality and being capable of suppressing extension of time until completion of printing even under an environment where a communication speed is slow or communication is unstable.SOLUTION: A recording device comprises: a recording head 24 printing print data onto thermal roll paper; a platen transporting the thermal roll paper; and a printing control section 60 controlling the recording head 24 and the platen and performing recording onto the thermal roll paper and transportation of the thermal roll paper based on the print data. The printing control section 60 controls the recording head 24 and the platen and performs printing at a constant speed until a blank area, and controls the platen and performs any of acceleration, deceleration and stopping of the platen within a range of the blank area upon detection that the blank area including line feed of an area where the platen can be accelerated or decelerated or more is included in the print data received when performing the printing while receiving the print data from a host computer 3.SELECTED DRAWING: Figure 3

Description

本発明は、印刷データを受信して印刷を行う記録装置および記録装置の制御方法に関する。   The present invention relates to a recording apparatus that receives print data and performs printing, and a control method for the recording apparatus.

従来、印字データが空白行データであるか否かを判定する空白行判定手段と、空白行判定手段により空白行データであると判定された場合にはステップモーターのパルスレートが最終パルスレートに達しているか否かを判定するパルスレート判定手段と、空白行判定手段により空白行データでないと判定された場合には印字を行わせる印字制御手段と、パルスレート判定手段により最終パルスレートに達していないと判定された場合にはパルスレートを徐々にアップさせるモータースローアップ手段とを設けた技術が開示されている(例えば、特許文献1参照)。   Conventionally, the blank line determination means for determining whether or not the print data is blank line data, and the step motor pulse rate reaches the final pulse rate when the blank line determination means determines that the print data is blank line data. A pulse rate determining means for determining whether or not the data is blank, a print control means for performing printing when the blank line determining means determines that the data is not blank line data, and a final pulse rate has not been reached by the pulse rate determining means. Has been disclosed, a technique has been disclosed that includes a motor slow-up means for gradually increasing the pulse rate (see, for example, Patent Document 1).

特開平04−301475号公報Japanese Patent Laid-Open No. 04-301475

一般的に、記録装置が印刷データを受信して印刷を行う場合、通信速度が十分であれば、記録装置は常に一定の速度で印刷を行うことができる。
しかし、通信速度が遅い場合や通信が不安定である場合、記録装置は印刷速度を維持することができず、印刷速度を低下させたり、あるいは印刷の一時停止をすることがある。このような場合に、印刷中に印刷速度の加減速を行うと、ギアのバックラッシュ等により紙送りに乱れが生じ、色ムラや白スジなどが発生し、印刷品質が低下するという問題がある。
このような印刷品質の低下を防止する手段として、例えば、印刷データを記録装置内にため込み、全印刷データを受信してから印刷を開始する手段がある。しかしながら、通信速度が遅い場合、印刷データをため込むために多くの時間が必要で、印刷完了までの時間が延びてしまうという問題がある。しかも、全印刷データを格納するための大容量の記憶手段が必要となる問題もある。
本発明は、前記した事情に鑑みてなされたものであり、通信速度が遅いあるいは通信が不安定な環境でも、印刷品質の低下を防止し、かつ、印刷終了までの時間の延びを抑制することのできる記録装置および記録装置の制御方法を提供することを目的とする。
In general, when a recording apparatus receives print data and performs printing, the recording apparatus can always perform printing at a constant speed if the communication speed is sufficient.
However, when the communication speed is slow or the communication is unstable, the recording apparatus cannot maintain the printing speed, and may reduce the printing speed or pause printing. In such a case, if the printing speed is accelerated or decelerated during printing, the paper feed is disturbed due to gear backlash or the like, causing color unevenness, white streaks, etc., resulting in a decrease in print quality. .
As means for preventing such deterioration in print quality, for example, there is means for storing print data in a recording apparatus and starting printing after receiving all print data. However, when the communication speed is low, a lot of time is required to accumulate print data, and there is a problem that the time until printing is completed increases. In addition, there is a problem that a large-capacity storage means for storing all print data is required.
The present invention has been made in view of the above-described circumstances, and prevents deterioration in print quality even in an environment where communication speed is low or communication is unstable, and suppresses an increase in time until the end of printing. An object of the present invention is to provide a recording apparatus and a control method for the recording apparatus.

前記目的を達成するために、本発明は、制御装置に接続可能であり、記録媒体を搬送しながら印刷をする記録装置であって、前記記録媒体に前記印刷データを印刷する記録ヘッドと、前記記録媒体を搬送する搬送部と、前記印刷データに基づいて前記記録ヘッドおよび前記搬送部を制御して、前記記録媒体への記録および前記記録媒体の搬送を行う印刷制御部と、を備え、前記印刷制御部は、前記制御装置から前記印刷データを受信しながら印刷する際、受信した前記印刷データ内に前記搬送部が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、前記記録ヘッドおよび前記搬送部を制御して前記空白領域に至るまで定速で印刷をし、前記搬送部を制御して前記空白領域の範囲内で前記搬送部の加速または減速、停止のいずれかを行うことを特徴とする。
この構成によれば、搬送部の加速または減速を空白領域で行い、記録媒体に定速で印刷を行うことができるので、色ムラや白スジといった印刷不良の発生を防止することができる。また、すべての印刷データを受信してから印刷を開始するのではなく、印刷データを逐次受信して印刷を行うものであるため、受信速度が遅い場合でも印刷終了までの時間が延びてしまうことがない。
In order to achieve the above object, the present invention is a recording apparatus that is connectable to a control apparatus and performs printing while transporting a recording medium, the recording head printing the print data on the recording medium, A transport unit that transports a recording medium; and a print control unit that controls the recording head and the transport unit based on the print data to perform recording on the recording medium and transport of the recording medium, When the print control unit performs printing while receiving the print data from the control device, the received print data includes a blank area including a line break that is greater than or equal to an area where the transport unit can accelerate or decelerate. If detected, printing is performed at a constant speed until reaching the blank area by controlling the recording head and the conveyance section, and the conveyance section is controlled to accelerate the conveyance section within the blank area. And carrying out the deceleration, either stop.
According to this configuration, the conveyance unit can be accelerated or decelerated in the blank area, and printing can be performed on the recording medium at a constant speed, so that it is possible to prevent printing defects such as color unevenness and white stripes. In addition, since printing is not performed after all print data is received, but printing data is sequentially received and printing is performed, even when the reception speed is low, the time until the end of printing is extended. There is no.

また、前記発明の記録装置であって、本発明は、前記印刷制御部は、印刷前に、受信した前記印刷データの最初に前記空白領域があることを検出した場合は、前記搬送部を制御して前記空白領域の範囲内において前記搬送部の加速を行い、前記記録ヘッドおよび前記搬送部を制御して前記空白領域を超えてから前記印刷データを定速で印刷することを特徴とする。
この構成によれば、印刷データの最初に空白領域がある場合は、この空白領域を印刷開始時に加速領域として利用することで、印刷データの印刷を定速で行うことができる。
In the recording apparatus according to the invention, the print control unit controls the transport unit when the print control unit detects that there is the blank area at the beginning of the received print data before printing. Then, the conveyance unit is accelerated within the blank area, and the print data is printed at a constant speed after the blank area is controlled by controlling the recording head and the conveyance unit.
According to this configuration, when there is a blank area at the beginning of the print data, the print area can be printed at a constant speed by using the blank area as an acceleration area at the start of printing.

また、前記発明の記録装置であって、本発明は、前記印刷制御部は、印刷前に、受信した前記印刷データの最初に前記空白領域がないことを検出した場合は、前記搬送部を制御して、前記記録媒体を加速に必要な量を含んで逆送りし、この逆送りした位置から前記搬送部の加速を行い、前記記録ヘッドおよび前記搬送部を制御して前記印刷データを定速で印刷することを特徴とする。
この構成によれば、印刷データの最初に空白領域がない場合は、記録媒体を逆送りすることで、印刷開始時における加速領域を確保することができ、印刷データの印刷を定速で行うことができる。
In the recording apparatus according to the invention, the print control unit controls the transport unit when the print control unit detects that there is no blank area at the beginning of the received print data before printing. Then, the recording medium is reversely fed including an amount necessary for acceleration, the conveyance unit is accelerated from the reversely fed position, and the print head is controlled at a constant speed by controlling the recording head and the conveyance unit. It is characterized by printing with.
According to this configuration, when there is no blank area at the beginning of the print data, it is possible to secure an acceleration area at the start of printing by reversely feeding the recording medium, and print data can be printed at a constant speed. Can do.

また、前記発明の記録装置であって、本発明は、前記印刷制御部は、前記空白領域の次の印刷データがないことを検出した場合は前記搬送部を減速または一時停止し、前記次の印刷データがあることを検出した場合は、前記空白領域の範囲内で前記搬送部を加速した後定速で前記次の印刷データを印刷することを特徴とする。
この構成によれば、次の印刷データの受信を待っている状態で、搬送部を停止させ、次の印刷データがある場合は、搬送部を加速して定速領域で記録媒体に印刷を行うので、印刷終了までの時間が延びてしまうことがない。
Further, in the recording apparatus according to the invention, the print control unit decelerates or temporarily stops the transport unit when detecting that there is no next print data in the blank area, and When it is detected that there is print data, the next print data is printed at a constant speed after accelerating the transport section within the blank area.
According to this configuration, the transport unit is stopped while waiting for reception of the next print data, and when there is next print data, the transport unit is accelerated to print on the recording medium in the constant speed region. Therefore, the time until the end of printing does not increase.

また、前記発明の記録装置であって、本発明は、前記印刷制御部は、前記印刷データに前記空白領域がなく、前記印刷データに印刷終端を示す情報があることを検出した場合は、前記印刷データを定速で印刷することを特徴とする。
この構成によれば、印刷終端を示す情報がある場合は、記録媒体に印刷データを定速で印刷するので、空白領域を検出することなく、印刷を終了することができる。
In the recording apparatus according to the invention, when the print control unit detects that the print data does not include the blank area and the print data includes information indicating a print end, The print data is printed at a constant speed.
According to this configuration, when there is information indicating the end of printing, the print data is printed on the recording medium at a constant speed, so printing can be terminated without detecting a blank area.

また、前記目的を達成するために、本発明は、制御装置に接続可能であり、搬送部により記録媒体を搬送しながら記録ヘッドにより印刷をする記録装置の制御方法であって、前記制御装置から前記印刷データを受信しながら印刷する際、前記印刷データに基づいて、記録ヘッドおよび搬送部を制御して、記録媒体への記録および前記記録媒体の搬送を行い、受信した前記前記印刷データ内に前記搬送部が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、前記記録ヘッドおよび前記搬送部により、前記空白領域に至るまで前記記録媒体に定速で印刷をし、前記空白領域の範囲内で前記搬送部の加速または減速、停止のいずれかを行うことを特徴とする。
この構成によれば、搬送部の加速または減速を空白領域で行い、記録媒体に定速で印刷を行うことができるので、色ムラや白スジといった印刷不良の発生を防止することができる。また、すべての印刷データを受信してから印刷を開始するのではなく、印刷データを逐次受信して印刷を行うものであるため、受信速度が遅い場合でも印刷終了までの時間が延びてしまうことがない。
In order to achieve the above object, the present invention is a control method for a recording apparatus that is connectable to a control apparatus and performs printing by a recording head while transporting a recording medium by a transport unit. When printing while receiving the print data, the recording head and the conveyance unit are controlled based on the print data to perform recording on the recording medium and conveyance of the recording medium, and within the received print data When it is detected that a blank area including a line feed that exceeds the area where the conveyance unit can accelerate or decelerate is included, printing is performed on the recording medium at a constant speed until the blank area is reached by the recording head and the conveyance unit. The conveyance unit is accelerated, decelerated, or stopped within the blank area.
According to this configuration, the conveyance unit can be accelerated or decelerated in the blank area, and printing can be performed on the recording medium at a constant speed, so that it is possible to prevent printing defects such as color unevenness and white stripes. In addition, since printing is not performed after all print data is received, but printing data is sequentially received and printing is performed, even when the reception speed is low, the time until the end of printing is extended. There is no.

本発明の実施形態に係るPOS端末の概略構成を示す図である。It is a figure which shows schematic structure of the POS terminal which concerns on embodiment of this invention. プリンターの本体内部の構成を模式的に示す図である。FIG. 2 is a diagram schematically illustrating an internal configuration of a printer. POS端末の機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a POS terminal. 最初の印刷データによる印刷動作を示す説明図である。It is explanatory drawing which shows the printing operation by the first print data. 次の印刷データによる印刷動作を示す説明図である。It is explanatory drawing which shows the printing operation by the following print data. 最後の印刷データによる印刷動作を示す説明図である。It is explanatory drawing which shows the printing operation by the last print data. プラテン回転速度と感熱ロール紙の送り量との関係を示すグラフである。It is a graph which shows the relationship between a platen rotational speed and the feed amount of a thermal roll paper. 記録装置の制御方法による動作を示すフローチャートである。6 is a flowchart illustrating an operation according to a control method of the recording apparatus.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本発明に係る記録装置を適用したPOS端末1の実施形態を示す概略構成図である。また、図2は、POS端末1が備えるプリンター2(記録装置)の本体内部の構成を模式的に示す概略図である。
図1に示すPOS端末1は、スーパーマーケットやコンビニエンスストア等の店舗に構築された販売時点管理システム(POSシステム)上に設けられた端末である。POS端末1は、売上登録処理および精算処理を行うホストコンピューター3(制御装置)と、このホストコンピューター3に接続され、ホストコンピューター3の制御の下、レシート10を発行するプリンター2と、を備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a schematic configuration diagram showing an embodiment of a POS terminal 1 to which a recording apparatus according to the present invention is applied. FIG. 2 is a schematic diagram schematically showing a configuration inside the main body of the printer 2 (recording apparatus) included in the POS terminal 1.
A POS terminal 1 shown in FIG. 1 is a terminal provided on a point-of-sale management system (POS system) built in a store such as a supermarket or a convenience store. The POS terminal 1 includes a host computer 3 (control device) that performs sales registration processing and settlement processing, and a printer 2 that is connected to the host computer 3 and issues a receipt 10 under the control of the host computer 3.

ホストコンピューター3は、売上登録処理および精算処理の処理内容を表示するディスプレイ12、売上登録処理時に商品に付されたバーコードを読み取るバーコードスキャナー13、売上登録キー等の各種キーを備えたキー入力部14、精算用の現金を収容するキャッシュドロワー15等を備える。また、ホストコンピューター3には、売上登録した情報を収集するPOSサーバー16が接続される。
レシート10の発行に際し、ホストコンピューター3は、バーコードスキャナー13からの入力値や、キー入力部14からの入力値に基づいて、適宜、POSサーバー16にアクセスしてレシート10を発行するために必要な情報を取得する。この取得した情報に基づいて、プリンター2にレシート10の発行に必要な印刷データを生成し、プリンター2に出力する。プリンター2は、ホストコンピューター3から入力された印刷データに基づいて、各部を動作させ、レシート10を発行する。
The host computer 3 has a display 12 for displaying the contents of the sales registration process and the payment process, a bar code scanner 13 for reading a bar code attached to the product during the sales registration process, and a key input including various keys such as a sales registration key. The unit 14 includes a cash drawer 15 for storing cash for settlement. The host computer 3 is connected to a POS server 16 that collects information registered for sales.
When issuing the receipt 10, the host computer 3 is necessary to access the POS server 16 and issue the receipt 10 as appropriate based on the input value from the barcode scanner 13 or the input value from the key input unit 14. Information is obtained. Based on the acquired information, print data necessary for issuing the receipt 10 is generated in the printer 2 and output to the printer 2. The printer 2 operates each unit based on the print data input from the host computer 3 and issues a receipt 10.

また、図1および図2に示すように、記録装置としてのプリンター2は、本体20に記録媒体としての感熱ロール紙22を収容している。本体20は、感熱ロール紙22を搬送するローラー形状のプラテン23(搬送部)と、プラテン23に対向配置された記録ヘッド24と、感熱ロール紙22を切断するカッターユニット25とを備える。記録ヘッド24は、感熱ロール紙22の搬送方向と直交する方向に発熱素子が並べて設けられたラインヘッドである。
プラテン23は、搬送モーター26(図3参照)を駆動することで、感熱ロール紙22を搬送方向Yに搬送するとともに、搬送モーター26を逆方向に回転駆動することで、感熱ロール紙22を搬送方向Yと逆方向にも搬送可能とされる。
As shown in FIGS. 1 and 2, the printer 2 as a recording apparatus houses a thermal roll paper 22 as a recording medium in a main body 20. The main body 20 includes a roller-shaped platen 23 (conveying unit) that conveys the thermal roll paper 22, a recording head 24 that is disposed to face the platen 23, and a cutter unit 25 that cuts the thermal roll paper 22. The recording head 24 is a line head in which heating elements are arranged in a direction orthogonal to the conveyance direction of the thermal roll paper 22.
The platen 23 conveys the thermal roll paper 22 by driving the conveyance motor 26 (see FIG. 3) to convey the thermal roll paper 22 in the conveyance direction Y and rotating the conveyance motor 26 in the reverse direction. It can also be conveyed in the direction opposite to the direction Y.

本実施形態においては、プリンター2は、サーマルラインプリンターである。すなわち、プリンター2は、搬送モーター26を駆動してプラテン23を回転させ、感熱ロール紙22を搬送しながら記録ヘッド24を駆動することで、感熱ロール紙22の記録面に熱を与えて、感熱ロール紙22の記録面にドットを形成することにより画像を記録する。
画像が記録された感熱ロール紙22は、本体20の上面に形成された排紙口28から外に向けて搬送され、この排紙口28よりも搬送方向Yの上流側において、カッターユニット25により切断され、レシート10となる。
In the present embodiment, the printer 2 is a thermal line printer. That is, the printer 2 rotates the platen 23 by driving the transport motor 26 and drives the recording head 24 while transporting the heat-sensitive roll paper 22, thereby applying heat to the recording surface of the heat-sensitive roll paper 22 and heat-sensitive. An image is recorded by forming dots on the recording surface of the roll paper 22.
The heat-sensitive roll paper 22 on which the image is recorded is conveyed outward from a paper discharge port 28 formed on the upper surface of the main body 20, and is upstream of the paper discharge port 28 in the conveyance direction Y by the cutter unit 25. The receipt 10 is cut.

図2に示すように、カッターユニット25は、感熱ロール紙22の搬送路の一側に配置された固定刃30と、固定刃30に対向して感熱ロール紙22の搬送路の他側に配置された可動刃31とを備える。可動刃31は、カッター駆動モーター32の駆動により駆動される駆動機構(図示せず)を介して固定刃30に向けて進退自在に設けられる。カッター駆動モーター32の駆動力により、駆動機構を介して可動刃31をカッター駆動モーター32に向けて移動させることで、固定刃30と可動刃31との間に印刷後の感熱ロール紙22が挟まれ、切断される。   As shown in FIG. 2, the cutter unit 25 is disposed on the other side of the conveyance path of the thermal roll paper 22 so as to face the fixed blade 30 and the fixed blade 30 disposed on one side of the conveyance path of the thermal roll paper 22. The movable blade 31 is provided. The movable blade 31 is provided so as to freely advance and retract toward the fixed blade 30 via a drive mechanism (not shown) driven by the drive of the cutter drive motor 32. By moving the movable blade 31 toward the cutter drive motor 32 via the drive mechanism by the driving force of the cutter drive motor 32, the thermal roll paper 22 after printing is sandwiched between the fixed blade 30 and the movable blade 31. And cut off.

また、図1に示すように、プリンター2の本体20には、開閉可能なカバー35が設けられる。本体20には、カバー35を開くためのレバー36が設けられる。カバー35を開放した状態で、感熱ロール紙22を収容する空間が露出し、感熱ロール紙22の補充や交換が可能になる。また、本体20には、プリンター2の電源をオン/オフさせる電源スイッチ37および手動による感熱ロール紙22の搬送等の操作を行うための紙送りスイッチ38が設けられる。さらに、本体20には、所定の態様で点灯/消灯することによりプリンター2の状態や、エラーの発生の有無等を表示する複数のLED39が設けられる。   As shown in FIG. 1, the main body 20 of the printer 2 is provided with a cover 35 that can be opened and closed. The main body 20 is provided with a lever 36 for opening the cover 35. With the cover 35 opened, the space for accommodating the thermal roll paper 22 is exposed, and the thermal roll paper 22 can be replenished or replaced. Further, the main body 20 is provided with a power switch 37 for turning on / off the power of the printer 2 and a paper feed switch 38 for performing operations such as manual conveyance of the thermal roll paper 22. Further, the main body 20 is provided with a plurality of LEDs 39 for displaying the state of the printer 2 and the presence / absence of an error by turning on / off in a predetermined manner.

図3は、POS端末1の機能的構成を示すブロック図である。
図3に示すように、ホストコンピューター3は、ホスト側制御部40と、ホスト側入力部41と、ホスト側表示部42と、ホスト側記憶部43と、ホスト側インターフェイス部44と、を備える。
ホスト側制御部40は、ホストコンピューター3を中枢的に制御するものである。ホスト側制御部40は、各種プログラムを実行するCPU、CPUにより読み出されて実行される基本制御プログラム等を記憶するROM、CPUが実行するプログラムや処理対象のデータ等を一時的に記憶するワークエリアを形成するRAM、その他周辺回路等を備える。
FIG. 3 is a block diagram showing a functional configuration of the POS terminal 1.
As shown in FIG. 3, the host computer 3 includes a host-side control unit 40, a host-side input unit 41, a host-side display unit 42, a host-side storage unit 43, and a host-side interface unit 44.
The host-side control unit 40 controls the host computer 3 centrally. The host-side control unit 40 includes a CPU that executes various programs, a ROM that stores basic control programs that are read and executed by the CPU, a work that temporarily stores programs executed by the CPU, data to be processed, and the like. It includes a RAM that forms an area, other peripheral circuits, and the like.

ホスト側入力部41は、前述したキー入力部14を含めた各種入力デバイスに接続され、入力デバイスに対する操作を検出し、ホスト側制御部40に出力する。
ホスト側表示部42は、上述したディスプレイ12に接続され、ホスト側制御部40の制御の下、売上登録処理および精算処理の処理内容等の各種情報をディスプレイ12に表示する。
なお、前述したように、ホストコンピューター3は、バーコードスキャナー13や、キャッシュドロワー15等の各種レジスター周辺デバイスが接続される。ホストコンピューター3には、これらデバイスを接続するためのインターフェイスが実装されるとともに、これらデバイスを制御するためのデバイスドライバーが予めインストールされる。
ホスト側記憶部43は、ハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に、不揮発的に記憶する。
ホスト側インターフェイス部44は、ホスト側制御部40の制御の下、プリンター2との間で通信規格に準拠した通信を行う。
The host side input unit 41 is connected to various input devices including the key input unit 14 described above, detects an operation on the input device, and outputs it to the host side control unit 40.
The host-side display unit 42 is connected to the display 12 described above, and displays various types of information such as sales registration processing and payment processing contents on the display 12 under the control of the host-side control unit 40.
As described above, the host computer 3 is connected to various register peripheral devices such as the barcode scanner 13 and the cash drawer 15. An interface for connecting these devices is mounted on the host computer 3 and a device driver for controlling these devices is installed in advance.
The host-side storage unit 43 includes a hard disk, a nonvolatile memory such as an EEPROM, and stores various data in a rewritable manner.
The host side interface unit 44 performs communication based on the communication standard with the printer 2 under the control of the host side control unit 40.

プリンター2は、前述したようにレシート10を発行するサーマルラインプリンターであり、図3に示すように、制御部50と、プリントエンジン51と、入力部52と、表示部53と、記憶部54と、インターフェイス部55と、を備える。
制御部50は、プリンター2の各部を中枢的に制御するものであり、前述したホスト側制御部40と同様、CPUや、ROM、RAM、その他の周辺回路等を備える。制御部は、印刷制御部60を備える。
プリントエンジン51は、制御部50が備える印刷制御部60の制御の下、記録ヘッド24や、搬送モーター26、カッター駆動モーター32等を動作させて、感熱ロール紙22に画像を印刷し、画像を印刷した感熱ロール紙22を切断してレシート10を発行する。
The printer 2 is a thermal line printer that issues the receipt 10 as described above. As shown in FIG. 3, the control unit 50, the print engine 51, the input unit 52, the display unit 53, the storage unit 54, and the like. And an interface unit 55.
The control unit 50 centrally controls each unit of the printer 2 and includes a CPU, a ROM, a RAM, other peripheral circuits, and the like, similar to the host-side control unit 40 described above. The control unit includes a print control unit 60.
The print engine 51 operates the recording head 24, the transport motor 26, the cutter drive motor 32, and the like under the control of the print control unit 60 included in the control unit 50, and prints an image on the thermal roll paper 22. The printed thermal roll paper 22 is cut and a receipt 10 is issued.

この印刷制御部60の機能は、CPUや、ファームウェアとのプログラムを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。
入力部52は、電源スイッチ37および紙送りスイッチ38に接続され、これら操作スイッチに対する操作を検出し、制御部50に出力する。
表示部53は、制御部50の制御の下、LED39に駆動信号を出力し、所定の態様でLED39を点灯/消灯させる。
記憶部54は、EEPROMや、ハードディスク等の不揮発性メモリーを備え、各種データを書き換え可能に、不揮発的に記憶する。
インターフェイス部55は、ホストコンピューター3との間で、通信規格に準拠した通信を行う。このインターフェイス部55と、制御部50とが協働して、ホストコンピューター3から印刷データを受信する受信部として機能する。
プリンター2は、インターフェイス部55を介してホストコンピューター3から受信した印刷データを格納する受信バッファー56(バッファー)を備える。
The function of the print control unit 60 is realized by cooperation of hardware and software, such as reading and executing a program with a CPU and firmware.
The input unit 52 is connected to the power switch 37 and the paper feed switch 38, detects operations on these operation switches, and outputs them to the control unit 50.
The display unit 53 outputs a drive signal to the LED 39 under the control of the control unit 50, and turns on / off the LED 39 in a predetermined manner.
The storage unit 54 includes a nonvolatile memory such as an EEPROM or a hard disk, and stores various data in a rewritable manner.
The interface unit 55 performs communication based on the communication standard with the host computer 3. The interface unit 55 and the control unit 50 cooperate to function as a receiving unit that receives print data from the host computer 3.
The printer 2 includes a reception buffer 56 (buffer) that stores print data received from the host computer 3 via the interface unit 55.

ホスト側制御部40は、ホストコンピューター3に予めインストールされたPOSアプリケーションを実行する。ホスト側制御部40は、取引毎に、POSサーバー16にアクセスして必要な情報を取得した上で、購入された商品を示す情報や、商品の単価を示す情報、合計購入金額を示す情報等のレシート10に記載すべき情報を取得する。そして、ホスト側制御部40は、取得した情報に基づいて、レシート10に印刷すべき画像の情報を含む印刷データを生成し、プリンター2に出力する。
印刷データには、印刷する印刷情報の他、プリンター2にレシート10の発行に係る各種動作を行わせるための制御コマンドが含まれる。
印刷情報は、感熱ロール紙22に印刷すべき文字列、画像などの情報や、その順序を具体的に指定して印刷させる情報である。
制御コマンドには、印刷開始を支持する印刷開始コマンド、印刷データに含まれる文字列データの印刷を指示する文字列印刷指示コマンド、文字列の改行を指示する改行コマンド、画像データの印刷を指示する画像印刷指示コマンド、あるいはカッターユニット25によるによる切断を指示する切断指示コマンド等各種のコマンドが含まれる。
The host-side control unit 40 executes a POS application installed in advance on the host computer 3. For each transaction, the host-side control unit 40 obtains necessary information by accessing the POS server 16, and then information indicating the purchased product, information indicating the unit price of the product, information indicating the total purchase price, etc. Information to be described in the receipt 10 is acquired. Then, the host-side control unit 40 generates print data including information on an image to be printed on the receipt 10 based on the acquired information, and outputs the print data to the printer 2.
In addition to print information to be printed, the print data includes control commands for causing the printer 2 to perform various operations related to the receipt 10 issue.
The print information is information such as character strings and images to be printed on the thermal roll paper 22 and information to be printed by specifically specifying the order.
The control command includes a print start command for supporting the start of printing, a character string print instruction command for instructing printing of character string data included in the print data, a line feed command for instructing a line feed of the character string, and an instruction for printing image data. Various commands such as an image printing instruction command or a cutting instruction command for instructing cutting by the cutter unit 25 are included.

ホストコンピューター3からプリンター2に送信された印刷データは、順次、受信バッファー56に格納される。プリンター2の制御部50の印刷制御部60は、受信バッファー56に格納された印刷データを、順次、読み出して実行することにより、プリントエンジン51を制御して、レシート10の発行に係る各種動作を実行する。すなわち、印刷制御部60は、印刷データに基づいてプリントエンジン51を制御することにより、記録ヘッド24を駆動して感熱ロール紙22への所定の画像の印刷を行うとともに、搬送モーター26を駆動して画像の印刷に伴う必要な搬送を行う。   The print data transmitted from the host computer 3 to the printer 2 is sequentially stored in the reception buffer 56. The print control unit 60 of the control unit 50 of the printer 2 sequentially reads and executes the print data stored in the reception buffer 56 to control the print engine 51 and perform various operations related to the issue of the receipt 10. Run. That is, the print control unit 60 controls the print engine 51 based on the print data, thereby driving the recording head 24 to print a predetermined image on the thermal roll paper 22 and driving the transport motor 26. To carry out the necessary transport accompanying image printing.

次に、プリンター2の制御部50の印刷制御部60による記録制御について説明する。
前述のように、ホストコンピューター3からプリンター2に出力された印刷データは、順次、受信バッファー56に格納される。
図4は、最初の印刷データによる印刷動作を示す説明図である。図5は、次の印刷データによる印刷動作を示す説明図である。図6は、最後の印刷データによる印刷動作を示す説明図である。
図4に示すように、プリンター2の制御部50の印刷制御部60は、受信バッファー56に格納された印刷データを、順次、読み出して実行することにより、プリントエンジン51を制御して、レシート10の発行に係る各種動作を実行する。すなわち、印刷制御部60は、印刷データに基づいてプリントエンジン51を制御することにより、搬送モーター26を駆動して感熱ロール紙22を搬送するとともに、記録ヘッドを駆動して感熱ロール紙22への所定の画像の印刷を行う。
印刷制御部60は、受信バッファー56に格納された印刷データに基づく印刷が終了した場合には、搬送モーター26を停止させてプラテン23の回転駆動を停止させる。
Next, recording control by the print control unit 60 of the control unit 50 of the printer 2 will be described.
As described above, the print data output from the host computer 3 to the printer 2 is sequentially stored in the reception buffer 56.
FIG. 4 is an explanatory diagram showing a printing operation using the first print data. FIG. 5 is an explanatory diagram showing a printing operation using the next print data. FIG. 6 is an explanatory diagram showing a printing operation based on the last print data.
As shown in FIG. 4, the print control unit 60 of the control unit 50 of the printer 2 sequentially reads and executes the print data stored in the reception buffer 56 to control the print engine 51, thereby receiving the receipt 10. Various operations related to issuance are executed. That is, the print control unit 60 controls the print engine 51 based on the print data, thereby driving the transport motor 26 to transport the thermal roll paper 22 and driving the recording head to transfer the thermal roll paper 22 to the thermal roll paper 22. A predetermined image is printed.
When printing based on the print data stored in the reception buffer 56 is completed, the print control unit 60 stops the transport motor 26 and stops the rotation of the platen 23.

図7はプラテン23の回転速度と感熱ロール紙22の送り量との関係を示すグラフである。図7に示すように、一般に、プラテン23を停止した状態から搬送モーター26を駆動させてプラテン23を回転駆動させると、所定の加速領域を経て定速領域に至る。プラテン23が加速領域を経て定速領域に至るまでには、所定の時間、すなわち、感熱ロール紙22の所定の送り量だけ必要となる。また、搬送モーター26を停止してもプラテン23が完全に停止するまでには、所定の減速領域が必要であり、この減速領域において、感熱ロール紙22も減速されながら搬送されることになる。
感熱ロール紙22に対する印刷を、プラテン23の加速領域または減速領域で行うと、色ムラや白スジなどが発生するおそれがあり、印刷品質を低下させるおそれがある。そのため、感熱ロール紙22には、プラテン23の定速領域で印刷することが好ましい。
FIG. 7 is a graph showing the relationship between the rotation speed of the platen 23 and the feed amount of the thermal roll paper 22. As shown in FIG. 7, generally, when the platen 23 is rotated by driving the transport motor 26 from a state where the platen 23 is stopped, the platen 23 reaches a constant speed region through a predetermined acceleration region. It takes a predetermined time, that is, a predetermined feed amount of the thermal roll paper 22 until the platen 23 reaches the constant speed region through the acceleration region. Further, even if the transport motor 26 is stopped, a predetermined deceleration area is required until the platen 23 is completely stopped. In this deceleration area, the thermal roll paper 22 is also transported while being decelerated.
If printing on the heat-sensitive roll paper 22 is performed in the acceleration region or the deceleration region of the platen 23, color unevenness or white stripes may occur, and print quality may be deteriorated. Therefore, it is preferable to print on the thermal roll paper 22 in a constant speed region of the platen 23.

そのため、本実施形態においては、印刷制御部60は、印刷を行うにあたって、受信バッファー56に格納された印刷データを解析する。印刷制御部60は、印刷データを解析した結果、印刷データに、搬送モーター26によるプラテン23が加減速できる範囲以上に対応する空白領域が含まれているか否かを検出する。印刷制御部60は、プラテン23が加減速できる範囲以上の空白領域が含まれていることを検出した場合、空白領域に至るまで、定速状態で印刷を行い、空白領域の範囲内において、プラテン23の加減速または、停止を行うように制御する。
空白領域としては、例えば、所定以上の改行コマンドを検出した場合や、印刷データに含まれる画像データに所定以上の空白が含まれている場合等が考えられる。
改行コマンドを検出した場合は、印刷制御部60は、改行コマンドによる改行の数に基づいて、感熱ロール紙22の送り量を演算することで、印刷データに改行による送り量を含めた空白領域があるか否か判断する。空白領域は、少なくともプラテン23により感熱ロール紙22が減速して停止し、再度加速することができる送り量が必要である。
Therefore, in the present embodiment, the print control unit 60 analyzes the print data stored in the reception buffer 56 when performing printing. As a result of analyzing the print data, the print control unit 60 detects whether or not the print data includes a blank area corresponding to more than the range in which the platen 23 can be accelerated or decelerated by the transport motor 26. When the printing control unit 60 detects that the blank area beyond the range where the platen 23 can be accelerated / decelerated is included, the printing control unit 60 performs printing at a constant speed until reaching the blank area, and within the blank area, 23 is controlled to perform acceleration / deceleration or stop.
As the blank area, for example, a case where a predetermined line feed command or more is detected, or a case where a predetermined blank or more is included in the image data included in the print data can be considered.
When the line feed command is detected, the print control unit 60 calculates the feed amount of the thermal roll paper 22 based on the number of line feeds by the line feed command, so that a blank area including the feed amount by the line feed is included in the print data. Judge whether there is. The blank area needs a feed amount that can be accelerated again at least when the thermal roll paper 22 is decelerated and stopped by the platen 23.

また、印刷データを解析して、印刷データの最初にトップマージン等の空白領域が検出された場合には、印刷制御部60は、最初の空白領域を印刷開始時におけるプラテン23の加速領域として利用する。
また、印刷データを解析して、印刷データの最初に空白領域が検出されなかった場合には、印刷を開始した場合に、プラテン23の加速領域を確保することができず、加速しながら印刷が開始されてしまうおそれがある。
そのため、印刷制御部60は、搬送モーター26を逆方向に駆動してプラテン23を逆方向に回転させ、感熱ロール紙22を逆送りする。この逆送り量は、プラテン23による感熱ロール紙22の加速領域を確保して印刷開始時には定速領域に達するために必要な量を含むものである。
When the print data is analyzed and a blank area such as a top margin is detected at the beginning of the print data, the print control unit 60 uses the first blank area as an acceleration area of the platen 23 at the start of printing. To do.
Further, when the print data is analyzed and no blank area is detected at the beginning of the print data, when printing is started, the acceleration area of the platen 23 cannot be secured, and printing is performed while accelerating. There is a risk of starting.
Therefore, the printing control unit 60 drives the transport motor 26 in the reverse direction to rotate the platen 23 in the reverse direction, and reversely feeds the thermal roll paper 22. This reverse feed amount includes an amount necessary to secure an acceleration area of the thermal roll paper 22 by the platen 23 and reach the constant speed area at the start of printing.

印刷を開始する場合、印刷制御部60は、印刷データの最初に空白領域を検出した場合は、最初の空白領域を印刷開始時におけるプラテン23の加速領域として利用する。また、印刷データの最初に空白領域が検出されなかった場合には、印刷制御部60は、搬送モーター26を逆方向に駆動してプラテン23を逆方向に回転させ、感熱ロール紙22を逆送りしてプラテン23の加速領域を確保する。
そして、印刷制御部60は、受信バッファー56に格納された印刷データに基づいて、プリントエンジン51を制御することにより、搬送モーター26を駆動してプラテン23を介して感熱ロール紙22を搬送する。感熱ロール紙22が定速領域に達したら、記録ヘッド24を駆動して感熱ロール紙22への所定の画像の印刷を行う。
When printing is started, the print control unit 60 uses the first blank area as an acceleration area of the platen 23 at the start of printing when a blank area is detected at the beginning of the print data. If a blank area is not detected at the beginning of the print data, the print control unit 60 drives the transport motor 26 in the reverse direction to rotate the platen 23 in the reverse direction, and reversely feeds the thermal roll paper 22. Thus, an acceleration region of the platen 23 is secured.
The print control unit 60 controls the print engine 51 based on the print data stored in the reception buffer 56 to drive the transport motor 26 and transport the thermal roll paper 22 through the platen 23. When the thermal roll paper 22 reaches the constant speed region, the recording head 24 is driven to print a predetermined image on the thermal roll paper 22.

このように、印刷データの先頭において、プラテン23の加速領域を確保して印刷を行うことで、印刷データによる印刷を行う際には、定速領域における印刷が可能となる。そして、印刷制御部60は、印刷データの印刷が終了したら、搬送モーター26を停止させ、プラテン23を空白領域において停止させる。このプラテン23の停止は、印刷終了後、次の印刷データが受信バッファー56に格納されるまでの間における印刷データの受信待機時間に行われる。
なお、本実施形態においては、印刷終了後にプラテン23を停止させるようにしているが、印刷終了後、次の印刷データを受信している場合には、プラテン23を減速させ、停止させることなくプラテン23を再加速させるようにしてもよい。
As described above, by performing printing while securing the acceleration area of the platen 23 at the head of the print data, printing in the constant speed area is possible when printing with the print data is performed. Then, when printing of the print data is completed, the print control unit 60 stops the transport motor 26 and stops the platen 23 in the blank area. The platen 23 is stopped during the print data reception waiting time after the end of printing until the next print data is stored in the reception buffer 56.
In this embodiment, the platen 23 is stopped after the printing is finished. However, when the next print data is received after the printing is finished, the platen 23 is decelerated and the platen 23 is not stopped. 23 may be reaccelerated.

この間に、ホストコンピューター3からプリンター2に次の印刷データが送信され、プリンター2は、ホストコンピューター3が送信した印刷データを受信して、受信バッファー56に格納する。   During this time, the next print data is transmitted from the host computer 3 to the printer 2, and the printer 2 receives the print data transmitted by the host computer 3 and stores it in the reception buffer 56.

印刷制御部60は、受信のバッファーに格納された次の印刷データを解析し、同様に、印刷データに空白領域が存在するか否かを検出する。
図5に示すように、空白領域が検出された場合には、印刷制御部60は、印刷データに基づいて搬送モーター26を駆動してプラテン23を回転駆動させる。プラテン23は、前回の印刷で停止している空白領域を利用して加速され、空白領域において定速領域に達することになる。これにより、印刷制御部60により印刷を行う際には、定速領域で印刷することが可能となり、次の印刷データの印刷が終了したら、搬送モーター26を停止させ、プラテン23を空白領域に停止させる。
The print control unit 60 analyzes the next print data stored in the reception buffer, and similarly detects whether or not there is a blank area in the print data.
As shown in FIG. 5, when a blank area is detected, the print control unit 60 drives the carry motor 26 based on the print data to rotate the platen 23. The platen 23 is accelerated by using the blank area stopped in the previous printing, and reaches the constant speed area in the blank area. As a result, when printing is performed by the print control unit 60, it is possible to print in the constant speed region. When printing of the next print data is finished, the transport motor 26 is stopped and the platen 23 is stopped in the blank region. Let

また、図6に示すように、印刷データを解析しても空白領域が検出されない場合は、印刷データを、印刷データの終端を示す情報である切断指示コマンドが検出されるまで読み込む。切断指示コマンドが検出された場合には、印刷制御部60は、すべての印刷データを受信したものと判断して、残りの印刷データに基づいて定速で印刷を行う。   Also, as shown in FIG. 6, if the blank area is not detected even after analyzing the print data, the print data is read until a cutting instruction command that is information indicating the end of the print data is detected. When a cutting instruction command is detected, the print control unit 60 determines that all print data has been received, and performs printing at a constant speed based on the remaining print data.

印刷制御部60は、すべての印刷データによる印刷が終了した場合に、カッター駆動モーター32を駆動して、カッターユニット25を動作させて感熱ロール紙22を切断し、レシート10を発行する。   When printing with all print data is completed, the print controller 60 drives the cutter drive motor 32 to operate the cutter unit 25 to cut the thermal roll paper 22 and issue the receipt 10.

次に、本発明に係る記録装置の制御方法について説明する。
図8は本実施形態のプリンター2の動作を示すフローチャートである。なお、図8では、1つのレシート10を発行する場合におけるプリンター2の動作を示している。
また、以下の説明において、制御部50および印刷制御部60の機能は、CPUがファームウェア等のプログラムを読み出して実行する等、ハードウェアとソフトウェアとの協働により実現される。
Next, a method for controlling the recording apparatus according to the present invention will be described.
FIG. 8 is a flowchart showing the operation of the printer 2 of the present embodiment. FIG. 8 shows the operation of the printer 2 when one receipt 10 is issued.
In the following description, the functions of the control unit 50 and the print control unit 60 are realized by the cooperation of hardware and software, such as a CPU reading and executing a program such as firmware.

まず、プリンター2は、ホストコンピューター3が送信した印刷データを受信して、プリンター2は、受信した印刷データを、受信バッファー56に格納する(ステップS1)。
印刷制御部60は、受信バッファー56に格納された印刷データを解析し、印刷データに空白領域が含まれているか否かを検出する(ステップS2)。
また、印刷データを解析して、印刷データの最初に空白領域が検出されなかった場合には(ステップS3:NO)、印刷制御部60は、搬送モーター26を逆方向に駆動してプラテン23を逆方向に回転させ、感熱ロール紙22を逆送りする(ステップS11)。
First, the printer 2 receives the print data transmitted by the host computer 3, and the printer 2 stores the received print data in the reception buffer 56 (step S1).
The print controller 60 analyzes the print data stored in the reception buffer 56 and detects whether or not the print data includes a blank area (step S2).
When the print data is analyzed and no blank area is detected at the beginning of the print data (step S3: NO), the print controller 60 drives the transport motor 26 in the reverse direction to move the platen 23. The heat-sensitive roll paper 22 is reversely fed by rotating in the reverse direction (step S11).

次に、印刷制御部60は、印刷データに空白領域が含まれているか否かを検出する(ステップS4)。
印刷制御部60が印刷データに空白領域が含まれていることを検出した場合は(ステップS4:YES)、印刷制御部60は、受信バッファー56に格納された印刷データを、順次、読み出して実行することにより、プリントエンジン51を制御して、レシート10の発行に係る各種動作を実行する。
すなわち、印刷制御部60は、搬送モーター26を駆動して感熱ロール紙22を搬送する際に、印刷データの先頭における空白領域をプラテン23の加速領域として利用する。そして、定速領域に達した状態で、記録ヘッド24を駆動して、空白領域まで感熱ロール紙22への所定の画像の印刷を行う(ステップS5)。
Next, the print control unit 60 detects whether or not a blank area is included in the print data (step S4).
If the print control unit 60 detects that a blank area is included in the print data (step S4: YES), the print control unit 60 sequentially reads and executes the print data stored in the reception buffer 56. Thus, the print engine 51 is controlled to execute various operations related to the receipt 10 issue.
That is, the print control unit 60 uses the blank area at the head of the print data as the acceleration area of the platen 23 when the conveyance motor 26 is driven to convey the thermal roll paper 22. Then, in a state where the constant speed area has been reached, the recording head 24 is driven to print a predetermined image on the thermal roll paper 22 up to the blank area (step S5).

受信バッファー56に格納された印刷データに基づく印刷が終了したら(ステップS6:YES)、印刷制御部60は、搬送モーター26を停止させてプラテン23を停止させる(ステップS7)。このプラテン23の停止により、感熱ロール紙22は、空白領域において停止する。   When printing based on the print data stored in the reception buffer 56 is completed (step S6: YES), the print control unit 60 stops the transport motor 26 and stops the platen 23 (step S7). By stopping the platen 23, the thermal roll paper 22 stops in the blank area.

プリンター2は、ホストコンピューター3が送信した次の印刷データを受信し、受信した印刷データは、受信バッファー56に格納される(ステップS8)。
ここで、ホストコンピューター3から送られる印刷データに印刷データの終端を示す切断指示コマンドを検出したら(ステップS9:YES)、印刷データを最後まで読み出して、印刷データの最後まで印刷を行い(ステップS10)、印刷は終了する。印刷データに空白領域が含まれていない場合(ステップS4:NO)、も同様である。
The printer 2 receives the next print data transmitted by the host computer 3, and the received print data is stored in the reception buffer 56 (step S8).
If a cutting instruction command indicating the end of the print data is detected in the print data sent from the host computer 3 (step S9: YES), the print data is read to the end and printed to the end of the print data (step S10). ), Printing ends. The same applies when the print data does not include a blank area (step S4: NO).

印刷データに切断指示コマンドが含まれていない場合には(ステップS9:NO)、再度、前述のステップS2からステップS9までの動作を繰り返して行う。
この場合に、印刷制御部60により、搬送モーター26を駆動して感熱ロール紙22を搬送する際に、前回の印刷で停止している空白領域をプラテン23の加速領域として利用する。そして、空白領域内で定速領域に達した状態で、記録ヘッド24を駆動して、感熱ロール紙22への所定の画像の印刷が行われる(ステップS5)。
なお、次の印刷データの場合には印刷データの先頭における空白領域の検出は行わない。
If the print data does not include a cutting instruction command (step S9: NO), the operations from step S2 to step S9 are repeated again.
In this case, when the printing control unit 60 drives the conveyance motor 26 to convey the thermal roll paper 22, the blank area stopped by the previous printing is used as the acceleration area of the platen 23. Then, in a state where the constant speed area is reached in the blank area, the recording head 24 is driven, and a predetermined image is printed on the thermal roll paper 22 (step S5).
In the case of the next print data, the blank area at the head of the print data is not detected.

すべての印刷が終了したら、印刷制御部60は、カッター駆動モーター32を駆動してカッターユニット25により感熱ロール紙22を切断し、レシート10を発行する。   When all printing is completed, the print control unit 60 drives the cutter drive motor 32 to cut the thermal roll paper 22 by the cutter unit 25 and issues the receipt 10.

以上説明したように、本実施形態によれば、印刷制御部60は、ホストコンピューター3(制御装置)から印刷データを受信しながら印刷する際、受信した印刷データ内にプラテン23(搬送部)が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、記録ヘッド24およびプラテン23を制御して前記空白領域に至るまで定速で印刷をし、プラテン23を制御して前記空白領域の範囲内でプラテン23の加速または減速、停止のいずれかを行う。
これによれば、感熱ロール紙22の加速または減速、停止のいずれかを空白領域で行い、定速で印刷を行うことができるので、色ムラや白スジといった印刷不良の発生を防止することができる。また、すべての印刷データを受信してから印刷を開始するのではなく、受信バッファー56の容量に従って印刷データを逐次受信して印刷を行うものであるため、受信速度が遅い場合でも印刷終了までの時間が延びてしまうことがない。
As described above, according to the present embodiment, when the print control unit 60 performs printing while receiving print data from the host computer 3 (control device), the platen 23 (conveyance unit) is included in the received print data. When it is detected that a blank area including a line feed that exceeds the area that can be accelerated or decelerated is included, the recording head 24 and the platen 23 are controlled to perform printing at a constant speed until the blank area is reached, and the platen 23 is controlled. Then, the platen 23 is accelerated, decelerated, or stopped within the blank area.
According to this, since the thermal roll paper 22 can be accelerated, decelerated, or stopped in a blank area and printing can be performed at a constant speed, it is possible to prevent occurrence of printing defects such as color unevenness and white stripes. it can. In addition, printing is not started after all print data is received, but printing is performed by sequentially receiving print data according to the capacity of the reception buffer 56. Therefore, even when the reception speed is low, printing is completed. Time does not increase.

また、本実施形態によれば、印刷制御部60は、印刷前に、受信した前記印刷データの最初に空白領域があることを検出した場合は、プラテン23を制御して空白領域の範囲内においてプラテン23の加速を行い、前記記録ヘッド24およびプラテン23を制御して空白領域を超えてから印刷データを定速で印刷する。
これによれば、印刷データの最初に空白領域がある場合は、この空白領域を印刷開始時に加速領域として利用することで、印刷データの印刷を定速で行うことができる。
Also, according to the present embodiment, when the print control unit 60 detects that there is a blank area at the beginning of the received print data before printing, the print control unit 60 controls the platen 23 to fall within the range of the blank area. The platen 23 is accelerated, and the recording head 24 and the platen 23 are controlled to print the print data at a constant speed after exceeding the blank area.
According to this, when there is a blank area at the beginning of the print data, it is possible to print the print data at a constant speed by using this blank area as an acceleration area at the start of printing.

また、本実施形態によれば、印刷制御部60は、印刷前に、受信した印刷データの最初に空白領域がないことを検出した場合は、プラテン23を制御して、感熱ロール紙22を加速に必要な量を含んで逆送りし、この逆送りした位置からプラテン23の加速を行い、記録ヘッド24およびプラテン23を制御して印刷データを定速で印刷する。
これによれば、印刷データの最初に空白領域がない場合は、感熱ロール紙22を逆送りすることで、印刷開始時における加速領域を確保することができ、印刷データの印刷を定速で行うことができる。
Further, according to the present embodiment, if the print control unit 60 detects that there is no blank area at the beginning of the received print data before printing, the print control unit 60 controls the platen 23 to accelerate the thermal roll paper 22. , The platen 23 is accelerated from the reversely fed position, and the print head 24 and the platen 23 are controlled to print the print data at a constant speed.
According to this, when there is no blank area at the beginning of the print data, the thermal roll paper 22 is reversely fed to secure an acceleration area at the start of printing, and the print data is printed at a constant speed. be able to.

また、本実施形態によれば、印刷制御部60は、空白領域の次の印刷データがないことを検出した場合はプラテン23を減速または一時停止し、次の印刷データがあることを検出した場合は、空白領域の範囲内でプラテン23を加速した後定速で次の印刷データを印刷する。
これによれば、次の印刷データの受信を待っている状態で、プラテン23を停止させ、次の印刷データがある場合は、加速して定速領域で印刷を行うので、印刷終了までの時間が延びてしまうことがない。
Further, according to the present embodiment, when the print control unit 60 detects that there is no next print data in the blank area, the print control unit 60 decelerates or pauses the platen 23 and detects that there is next print data. Prints the next print data at a constant speed after accelerating the platen 23 within the blank area.
According to this, the platen 23 is stopped while waiting for the next print data to be received, and if there is next print data, the printing is accelerated and printing is performed in the constant speed region. Will not extend.

また、本実施形態によれば、印刷制御部60は、印刷データに空白領域がなく、印刷データに印刷終端を示す情報があることを検出した場合は、印刷データを定速で印刷する。
これによれば、印刷終端を示す情報がある場合は、印刷データを定速で印刷するので、空白領域を検出することなく、印刷を終了することができる。
Further, according to the present embodiment, when the print control unit 60 detects that there is no blank area in the print data and there is information indicating the print end in the print data, the print control unit 60 prints the print data at a constant speed.
According to this, when there is information indicating the end of printing, the print data is printed at a constant speed, so printing can be terminated without detecting a blank area.

なお、前述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、前記実施形態においては、印刷データの印刷終端を示す情報として切断指示コマンドを利用した場合について説明したが、印刷終端を示すコマンドであれば、いずれのコマンドを用いるようにしてもよい。
また、前記実施形態においては、記録装置としてPOS端末1に適用される記録装置の例について説明したが、いずれの記録装置に適用するようにしてもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
For example, in the embodiment, the case where the cutting instruction command is used as the information indicating the printing end of the print data has been described. However, any command may be used as long as the command indicates the printing end.
In the embodiment, the example of the recording apparatus applied to the POS terminal 1 as the recording apparatus has been described. However, the recording apparatus may be applied to any recording apparatus.

また、図3に示す各機能部はハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また、前記実施形態においては、プリンター2が印刷制御部60を有する制御部50を備えていたが、例えば、制御部50の機能を、プリンター2に外部接続される別の装置に持たせるようにしてもよい。
また、本発明は、サーマル式のプリンターに限らず、インクジェット式プリンター、ドットインパクト式プリンター、レーザープリンター、熱昇華型プリンター等の任意の形式の記録媒体を搬送しながら印刷するプリンターに適用可能である。また、ATMにおけるプリンター等、他の装置に組み込まれるプリンターであってもよい。また、CDのレーベル面や、DVDのレーベル面等の紙以外の媒体に印刷するものでもよい。
また、本発明を適用可能なプログラムは、ホストコンピューター3に搭載されるプリンタードライバーに含むものであってもよい。
また、前記フローチャートの各ステップを実行するプログラムを、プリンター2の外部の記憶媒体に記憶させたものを読み出して、制御部50により実行させるようにしてもよい。
Each functional unit shown in FIG. 3 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration.
In the above-described embodiment, the printer 2 includes the control unit 50 including the print control unit 60. For example, the function of the control unit 50 is provided to another device externally connected to the printer 2. May be.
The present invention is not limited to a thermal printer, and can be applied to a printer that prints while transporting an arbitrary type of recording medium, such as an ink jet printer, a dot impact printer, a laser printer, or a thermal sublimation printer. . Moreover, the printer incorporated in other apparatuses, such as a printer in ATM, may be used. Further, it may be printed on a medium other than paper, such as a CD label surface or a DVD label surface.
A program to which the present invention is applicable may be included in a printer driver installed in the host computer 3.
In addition, a program that executes each step of the flowchart may be read out and stored in a storage medium external to the printer 2 and executed by the control unit 50.

2…プリンター(記録装置)、3…ホストコンピューター(制御装置)、10…レシート、22…感熱ロール紙(記録媒体)、23…プラテン(搬送部)、24…記録ヘッド、25…カッターユニット、26…搬送モーター、32…カッター駆動モーター、40…ホスト側制御部、41…ホスト側入力部、42…ホスト側表示部、43…ホスト側記憶部、44…ホスト側インターフェイス部、50…制御部、51…プリントエンジン、52…入力部、53…表示部、54…記憶部、55…インターフェイス部、56…受信バッファー、60…印刷制御部。   DESCRIPTION OF SYMBOLS 2 ... Printer (recording apparatus), 3 ... Host computer (control apparatus), 10 ... Receipt, 22 ... Thermal roll paper (recording medium), 23 ... Platen (conveyance part), 24 ... Recording head, 25 ... Cutter unit, 26 DESCRIPTION OF SYMBOLS ... Conveyance motor, 32 ... Cutter drive motor, 40 ... Host side control part, 41 ... Host side input part, 42 ... Host side display part, 43 ... Host side storage part, 44 ... Host side interface part, 50 ... Control part, DESCRIPTION OF SYMBOLS 51 ... Print engine 52 ... Input part 53 ... Display part 54 ... Memory | storage part 55 ... Interface part 56 ... Reception buffer 60 ... Print control part

Claims (6)

制御装置に接続可能であり、記録媒体を搬送しながら印刷をする記録装置であって、
前記記録媒体に印刷データを印刷する記録ヘッドと、
前記記録媒体を搬送する搬送部と、
前記印刷データに基づいて前記記録ヘッドおよび前記搬送部を制御して、前記記録媒体への記録および前記記録媒体の搬送を行う印刷制御部と、を備え、
前記印刷制御部は、前記制御装置から前記印刷データを受信しながら印刷する際、受信した前記印刷データ内に前記搬送部が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、前記記録ヘッドおよび前記搬送部を制御して前記空白領域に至るまで定速で印刷をし、前記搬送部を制御して前記空白領域の範囲内で前記搬送部の加速または減速、停止のいずれかを行うことを特徴とする記録装置。
A recording device that can be connected to a control device and performs printing while conveying a recording medium,
A recording head for printing print data on the recording medium;
A transport unit for transporting the recording medium;
A print control unit that controls the recording head and the transport unit based on the print data to perform recording on the recording medium and transport of the recording medium,
When the print control unit performs printing while receiving the print data from the control device, the received print data includes a blank area including a line feed that is greater than or equal to an area where the transport unit can accelerate or decelerate. Is detected, printing is performed at a constant speed until reaching the blank area by controlling the recording head and the transport section, and the transport section is controlled to accelerate or decelerate the transport section within the blank area. A recording apparatus that performs any one of stop.
前記印刷制御部は、印刷前に、受信した前記印刷データの最初に前記空白領域があることを検出した場合は、前記搬送部を制御して前記空白領域の範囲内において前記搬送部の加速を行い、前記記録ヘッドおよび前記搬送部を制御して前記空白領域を超えてから前記印刷データを定速で印刷することを特徴とする請求項1に記載の記録装置。   When the print control unit detects that there is the blank area at the beginning of the received print data before printing, the print control unit controls the conveyance unit to accelerate the conveyance unit within the range of the blank area. The recording apparatus according to claim 1, wherein the print data is printed at a constant speed after the recording head and the transport unit are controlled to exceed the blank area. 前記印刷制御部は、印刷前に、受信した前記印刷データの最初に前記空白領域がないことを検出した場合は、前記搬送部を制御して、前記記録媒体を加速に必要な量を含んで逆送りし、この逆送りした位置から前記搬送部の加速を行い、前記記録ヘッドおよび前記搬送部を制御して前記印刷データを定速で印刷することを特徴とする請求項1に記載の記録装置。   When the print control unit detects that there is no blank area at the beginning of the received print data before printing, the print control unit controls the transport unit to include an amount necessary for accelerating the recording medium. 2. The recording according to claim 1, wherein the recording unit performs reverse feeding, accelerates the conveyance unit from the reversely fed position, and controls the recording head and the conveyance unit to print the print data at a constant speed. apparatus. 前記印刷制御部は、前記空白領域の次の印刷データがないことを検出した場合は前記搬送部を減速または一時停止し、前記次の印刷データがあることを検出した場合は、前記空白領域の範囲内で前記搬送部を加速した後定速で前記次の印刷データを印刷することを特徴とする請求項1から請求項3のいずれか一項に記載の記録装置。   When the print control unit detects that there is no next print data in the blank area, it decelerates or pauses the transport unit, and when it detects that there is the next print data, the print control unit 4. The recording apparatus according to claim 1, wherein the next print data is printed at a constant speed after accelerating the conveyance unit within a range. 5. 前記印刷制御部は、前記印刷データに前記空白領域がなく、前記印刷データに印刷終端を示す情報があることを検出した場合は、前記印刷データを定速で印刷することを特徴とする請求項1から請求項4のいずれか一項に記載の記録装置。   The print control unit prints the print data at a constant speed when it detects that the print data does not include the blank area and the print data includes information indicating a print end point. The recording apparatus according to any one of claims 1 to 4. 制御装置に接続可能であり、搬送部により記録媒体を搬送しながら記録ヘッドにより印刷をする記録装置の制御方法であって、
前記制御装置から前記印刷データを受信しながら印刷する際、前記印刷データに基づいて、記録ヘッドおよび搬送部を制御して、記録媒体への記録および前記記録媒体の搬送を行い、
受信した前記印刷データ内に前記搬送部が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、前記記録ヘッドおよび前記搬送部により、前記空白領域に至るまで前記記録媒体に定速で印刷をし、前記空白領域の範囲内で前記搬送部の加速または減速、停止のいずれかを行うことを特徴とする記録装置の制御方法。
A control method for a recording apparatus that can be connected to a control apparatus and performs printing by a recording head while conveying a recording medium by a conveying unit,
When printing while receiving the print data from the control device, the recording head and the transport unit are controlled based on the print data, recording to the recording medium and transporting the recording medium,
When it is detected that the received print data includes a blank area including a line feed that is greater than or equal to an area where the transport unit can be accelerated or decelerated, the print head and the transport unit may cause the print area to reach the blank area. A printing apparatus control method, wherein printing is performed on a printing medium at a constant speed, and the conveyance unit is accelerated, decelerated, or stopped within the blank area.
JP2015180440A 2015-09-14 2015-09-14 Recording device and control method for the same Pending JP2017056562A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015180440A JP2017056562A (en) 2015-09-14 2015-09-14 Recording device and control method for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015180440A JP2017056562A (en) 2015-09-14 2015-09-14 Recording device and control method for the same

Publications (1)

Publication Number Publication Date
JP2017056562A true JP2017056562A (en) 2017-03-23

Family

ID=58388881

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015180440A Pending JP2017056562A (en) 2015-09-14 2015-09-14 Recording device and control method for the same

Country Status (1)

Country Link
JP (1) JP2017056562A (en)

Similar Documents

Publication Publication Date Title
US8469477B2 (en) Recording device, recording device control method, and computer-readable recording medium that stores a program executed by a control unit that controls the recording device
JP2007038557A (en) Method of controlling printer, printer and program
EP3360685A1 (en) Printer and printer control method
CN102756568B (en) A recording device and a control method of the recording device
JP2004345210A (en) Printer and method for controlling printer
US20090207444A1 (en) Printer and control method for a printer
JP2012234383A (en) Method and device for issuing double side receipt
US9058133B2 (en) Control device, control method for a control device, and recording medium
JP2017056562A (en) Recording device and control method for the same
JP2013215991A (en) Recording device, control method of recording device and program
JP2011098440A (en) Recorder, control method for recorder, and program
JP2017056561A (en) Recording device and control method for the same
JP2015189104A (en) Printer and control method of the same
JP2012118626A (en) Double side receipt issuing method and double side receipt issuing device
JP4534467B2 (en) Printing method
JP6561673B2 (en) Printing apparatus and printing apparatus control method
JP7427624B2 (en) printing device
JP4251029B2 (en) Printing apparatus and control method thereof
JP5760705B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
US11675555B1 (en) Printer for printing on a long sheet and method therefor
JP6992409B2 (en) Printing device and control method of printing device
JP6003265B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2012206238A (en) Recording device, cutting method, and program
JP2013220588A (en) Recording device, control method of the same, and program
JP2013054492A (en) Control device, control method of control device, and program