JP2017056562A - Recording device and control method for the same - Google Patents
Recording device and control method for the same Download PDFInfo
- 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
- 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
Links
Images
Abstract
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).
一般的に、記録装置が印刷データを受信して印刷を行う場合、通信速度が十分であれば、記録装置は常に一定の速度で印刷を行うことができる。
しかし、通信速度が遅い場合や通信が不安定である場合、記録装置は印刷速度を維持することができず、印刷速度を低下させたり、あるいは印刷の一時停止をすることがある。このような場合に、印刷中に印刷速度の加減速を行うと、ギアのバックラッシュ等により紙送りに乱れが生じ、色ムラや白スジなどが発生し、印刷品質が低下するという問題がある。
このような印刷品質の低下を防止する手段として、例えば、印刷データを記録装置内にため込み、全印刷データを受信してから印刷を開始する手段がある。しかしながら、通信速度が遅い場合、印刷データをため込むために多くの時間が必要で、印刷完了までの時間が延びてしまうという問題がある。しかも、全印刷データを格納するための大容量の記憶手段が必要となる問題もある。
本発明は、前記した事情に鑑みてなされたものであり、通信速度が遅いあるいは通信が不安定な環境でも、印刷品質の低下を防止し、かつ、印刷終了までの時間の延びを抑制することのできる記録装置および記録装置の制御方法を提供することを目的とする。
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.
以下、図面を参照して本発明の実施形態について説明する。
図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
A
ホストコンピューター3は、売上登録処理および精算処理の処理内容を表示するディスプレイ12、売上登録処理時に商品に付されたバーコードを読み取るバーコードスキャナー13、売上登録キー等の各種キーを備えたキー入力部14、精算用の現金を収容するキャッシュドロワー15等を備える。また、ホストコンピューター3には、売上登録した情報を収集するPOSサーバー16が接続される。
レシート10の発行に際し、ホストコンピューター3は、バーコードスキャナー13からの入力値や、キー入力部14からの入力値に基づいて、適宜、POSサーバー16にアクセスしてレシート10を発行するために必要な情報を取得する。この取得した情報に基づいて、プリンター2にレシート10の発行に必要な印刷データを生成し、プリンター2に出力する。プリンター2は、ホストコンピューター3から入力された印刷データに基づいて、各部を動作させ、レシート10を発行する。
The
When issuing the
また、図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
The
本実施形態においては、プリンター2は、サーマルラインプリンターである。すなわち、プリンター2は、搬送モーター26を駆動してプラテン23を回転させ、感熱ロール紙22を搬送しながら記録ヘッド24を駆動することで、感熱ロール紙22の記録面に熱を与えて、感熱ロール紙22の記録面にドットを形成することにより画像を記録する。
画像が記録された感熱ロール紙22は、本体20の上面に形成された排紙口28から外に向けて搬送され、この排紙口28よりも搬送方向Yの上流側において、カッターユニット25により切断され、レシート10となる。
In the present embodiment, the
The heat-sensitive roll paper 22 on which the image is recorded is conveyed outward from a
図2に示すように、カッターユニット25は、感熱ロール紙22の搬送路の一側に配置された固定刃30と、固定刃30に対向して感熱ロール紙22の搬送路の他側に配置された可動刃31とを備える。可動刃31は、カッター駆動モーター32の駆動により駆動される駆動機構(図示せず)を介して固定刃30に向けて進退自在に設けられる。カッター駆動モーター32の駆動力により、駆動機構を介して可動刃31をカッター駆動モーター32に向けて移動させることで、固定刃30と可動刃31との間に印刷後の感熱ロール紙22が挟まれ、切断される。
As shown in FIG. 2, the
また、図1に示すように、プリンター2の本体20には、開閉可能なカバー35が設けられる。本体20には、カバー35を開くためのレバー36が設けられる。カバー35を開放した状態で、感熱ロール紙22を収容する空間が露出し、感熱ロール紙22の補充や交換が可能になる。また、本体20には、プリンター2の電源をオン/オフさせる電源スイッチ37および手動による感熱ロール紙22の搬送等の操作を行うための紙送りスイッチ38が設けられる。さらに、本体20には、所定の態様で点灯/消灯することによりプリンター2の状態や、エラーの発生の有無等を表示する複数のLED39が設けられる。
As shown in FIG. 1, the
図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
As shown in FIG. 3, the
The host-
ホスト側入力部41は、前述したキー入力部14を含めた各種入力デバイスに接続され、入力デバイスに対する操作を検出し、ホスト側制御部40に出力する。
ホスト側表示部42は、上述したディスプレイ12に接続され、ホスト側制御部40の制御の下、売上登録処理および精算処理の処理内容等の各種情報をディスプレイ12に表示する。
なお、前述したように、ホストコンピューター3は、バーコードスキャナー13や、キャッシュドロワー15等の各種レジスター周辺デバイスが接続される。ホストコンピューター3には、これらデバイスを接続するためのインターフェイスが実装されるとともに、これらデバイスを制御するためのデバイスドライバーが予めインストールされる。
ホスト側記憶部43は、ハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に、不揮発的に記憶する。
ホスト側インターフェイス部44は、ホスト側制御部40の制御の下、プリンター2との間で通信規格に準拠した通信を行う。
The host
The host-side display unit 42 is connected to the
As described above, the
The host-
The host
プリンター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
The
The
この印刷制御部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
The
The
The
The
The
ホスト側制御部40は、ホストコンピューター3に予めインストールされたPOSアプリケーションを実行する。ホスト側制御部40は、取引毎に、POSサーバー16にアクセスして必要な情報を取得した上で、購入された商品を示す情報や、商品の単価を示す情報、合計購入金額を示す情報等のレシート10に記載すべき情報を取得する。そして、ホスト側制御部40は、取得した情報に基づいて、レシート10に印刷すべき画像の情報を含む印刷データを生成し、プリンター2に出力する。
印刷データには、印刷する印刷情報の他、プリンター2にレシート10の発行に係る各種動作を行わせるための制御コマンドが含まれる。
印刷情報は、感熱ロール紙22に印刷すべき文字列、画像などの情報や、その順序を具体的に指定して印刷させる情報である。
制御コマンドには、印刷開始を支持する印刷開始コマンド、印刷データに含まれる文字列データの印刷を指示する文字列印刷指示コマンド、文字列の改行を指示する改行コマンド、画像データの印刷を指示する画像印刷指示コマンド、あるいはカッターユニット25によるによる切断を指示する切断指示コマンド等各種のコマンドが含まれる。
The host-
In addition to print information to be printed, the print data includes control commands for causing the
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
ホストコンピューター3からプリンター2に送信された印刷データは、順次、受信バッファー56に格納される。プリンター2の制御部50の印刷制御部60は、受信バッファー56に格納された印刷データを、順次、読み出して実行することにより、プリントエンジン51を制御して、レシート10の発行に係る各種動作を実行する。すなわち、印刷制御部60は、印刷データに基づいてプリントエンジン51を制御することにより、記録ヘッド24を駆動して感熱ロール紙22への所定の画像の印刷を行うとともに、搬送モーター26を駆動して画像の印刷に伴う必要な搬送を行う。
The print data transmitted from the
次に、プリンター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
As described above, the print data output from the
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
When printing based on the print data stored in the
図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
If printing on the heat-sensitive roll paper 22 is performed in the acceleration region or the deceleration region of the
そのため、本実施形態においては、印刷制御部60は、印刷を行うにあたって、受信バッファー56に格納された印刷データを解析する。印刷制御部60は、印刷データを解析した結果、印刷データに、搬送モーター26によるプラテン23が加減速できる範囲以上に対応する空白領域が含まれているか否かを検出する。印刷制御部60は、プラテン23が加減速できる範囲以上の空白領域が含まれていることを検出した場合、空白領域に至るまで、定速状態で印刷を行い、空白領域の範囲内において、プラテン23の加減速または、停止を行うように制御する。
空白領域としては、例えば、所定以上の改行コマンドを検出した場合や、印刷データに含まれる画像データに所定以上の空白が含まれている場合等が考えられる。
改行コマンドを検出した場合は、印刷制御部60は、改行コマンドによる改行の数に基づいて、感熱ロール紙22の送り量を演算することで、印刷データに改行による送り量を含めた空白領域があるか否か判断する。空白領域は、少なくともプラテン23により感熱ロール紙22が減速して停止し、再度加速することができる送り量が必要である。
Therefore, in the present embodiment, the
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
また、印刷データを解析して、印刷データの最初にトップマージン等の空白領域が検出された場合には、印刷制御部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
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
Therefore, the
印刷を開始する場合、印刷制御部60は、印刷データの最初に空白領域を検出した場合は、最初の空白領域を印刷開始時におけるプラテン23の加速領域として利用する。また、印刷データの最初に空白領域が検出されなかった場合には、印刷制御部60は、搬送モーター26を逆方向に駆動してプラテン23を逆方向に回転させ、感熱ロール紙22を逆送りしてプラテン23の加速領域を確保する。
そして、印刷制御部60は、受信バッファー56に格納された印刷データに基づいて、プリントエンジン51を制御することにより、搬送モーター26を駆動してプラテン23を介して感熱ロール紙22を搬送する。感熱ロール紙22が定速領域に達したら、記録ヘッド24を駆動して感熱ロール紙22への所定の画像の印刷を行う。
When printing is started, the
The
このように、印刷データの先頭において、プラテン23の加速領域を確保して印刷を行うことで、印刷データによる印刷を行う際には、定速領域における印刷が可能となる。そして、印刷制御部60は、印刷データの印刷が終了したら、搬送モーター26を停止させ、プラテン23を空白領域において停止させる。このプラテン23の停止は、印刷終了後、次の印刷データが受信バッファー56に格納されるまでの間における印刷データの受信待機時間に行われる。
なお、本実施形態においては、印刷終了後にプラテン23を停止させるようにしているが、印刷終了後、次の印刷データを受信している場合には、プラテン23を減速させ、停止させることなくプラテン23を再加速させるようにしてもよい。
As described above, by performing printing while securing the acceleration area of the
In this embodiment, the
この間に、ホストコンピューター3からプリンター2に次の印刷データが送信され、プリンター2は、ホストコンピューター3が送信した印刷データを受信して、受信バッファー56に格納する。
During this time, the next print data is transmitted from the
印刷制御部60は、受信のバッファーに格納された次の印刷データを解析し、同様に、印刷データに空白領域が存在するか否かを検出する。
図5に示すように、空白領域が検出された場合には、印刷制御部60は、印刷データに基づいて搬送モーター26を駆動してプラテン23を回転駆動させる。プラテン23は、前回の印刷で停止している空白領域を利用して加速され、空白領域において定速領域に達することになる。これにより、印刷制御部60により印刷を行う際には、定速領域で印刷することが可能となり、次の印刷データの印刷が終了したら、搬送モーター26を停止させ、プラテン23を空白領域に停止させる。
The
As shown in FIG. 5, when a blank area is detected, the
また、図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
印刷制御部60は、すべての印刷データによる印刷が終了した場合に、カッター駆動モーター32を駆動して、カッターユニット25を動作させて感熱ロール紙22を切断し、レシート10を発行する。
When printing with all print data is completed, the
次に、本発明に係る記録装置の制御方法について説明する。
図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
In the following description, the functions of the
まず、プリンター2は、ホストコンピューター3が送信した印刷データを受信して、プリンター2は、受信した印刷データを、受信バッファー56に格納する(ステップS1)。
印刷制御部60は、受信バッファー56に格納された印刷データを解析し、印刷データに空白領域が含まれているか否かを検出する(ステップS2)。
また、印刷データを解析して、印刷データの最初に空白領域が検出されなかった場合には(ステップS3:NO)、印刷制御部60は、搬送モーター26を逆方向に駆動してプラテン23を逆方向に回転させ、感熱ロール紙22を逆送りする(ステップS11)。
First, the
The
When the print data is analyzed and no blank area is detected at the beginning of the print data (step S3: NO), the
次に、印刷制御部60は、印刷データに空白領域が含まれているか否かを検出する(ステップS4)。
印刷制御部60が印刷データに空白領域が含まれていることを検出した場合は(ステップS4:YES)、印刷制御部60は、受信バッファー56に格納された印刷データを、順次、読み出して実行することにより、プリントエンジン51を制御して、レシート10の発行に係る各種動作を実行する。
すなわち、印刷制御部60は、搬送モーター26を駆動して感熱ロール紙22を搬送する際に、印刷データの先頭における空白領域をプラテン23の加速領域として利用する。そして、定速領域に達した状態で、記録ヘッド24を駆動して、空白領域まで感熱ロール紙22への所定の画像の印刷を行う(ステップS5)。
Next, the
If the
That is, the
受信バッファー56に格納された印刷データに基づく印刷が終了したら(ステップS6:YES)、印刷制御部60は、搬送モーター26を停止させてプラテン23を停止させる(ステップS7)。このプラテン23の停止により、感熱ロール紙22は、空白領域において停止する。
When printing based on the print data stored in the
プリンター2は、ホストコンピューター3が送信した次の印刷データを受信し、受信した印刷データは、受信バッファー56に格納される(ステップS8)。
ここで、ホストコンピューター3から送られる印刷データに印刷データの終端を示す切断指示コマンドを検出したら(ステップS9:YES)、印刷データを最後まで読み出して、印刷データの最後まで印刷を行い(ステップS10)、印刷は終了する。印刷データに空白領域が含まれていない場合(ステップS4:NO)、も同様である。
The
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
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
以上説明したように、本実施形態によれば、印刷制御部60は、ホストコンピューター3(制御装置)から印刷データを受信しながら印刷する際、受信した印刷データ内にプラテン23(搬送部)が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、記録ヘッド24およびプラテン23を制御して前記空白領域に至るまで定速で印刷をし、プラテン23を制御して前記空白領域の範囲内でプラテン23の加速または減速、停止のいずれかを行う。
これによれば、感熱ロール紙22の加速または減速、停止のいずれかを空白領域で行い、定速で印刷を行うことができるので、色ムラや白スジといった印刷不良の発生を防止することができる。また、すべての印刷データを受信してから印刷を開始するのではなく、受信バッファー56の容量に従って印刷データを逐次受信して印刷を行うものであるため、受信速度が遅い場合でも印刷終了までの時間が延びてしまうことがない。
As described above, according to the present embodiment, when the
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
また、本実施形態によれば、印刷制御部60は、印刷前に、受信した前記印刷データの最初に空白領域があることを検出した場合は、プラテン23を制御して空白領域の範囲内においてプラテン23の加速を行い、前記記録ヘッド24およびプラテン23を制御して空白領域を超えてから印刷データを定速で印刷する。
これによれば、印刷データの最初に空白領域がある場合は、この空白領域を印刷開始時に加速領域として利用することで、印刷データの印刷を定速で行うことができる。
Also, according to the present embodiment, when the
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
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
According to this, the
また、本実施形態によれば、印刷制御部60は、印刷データに空白領域がなく、印刷データに印刷終端を示す情報があることを検出した場合は、印刷データを定速で印刷する。
これによれば、印刷終端を示す情報がある場合は、印刷データを定速で印刷するので、空白領域を検出することなく、印刷を終了することができる。
Further, according to the present embodiment, when the
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
また、図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
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
In addition, a program that executes each step of the flowchart may be read out and stored in a storage medium external to the
2…プリンター(記録装置)、3…ホストコンピューター(制御装置)、10…レシート、22…感熱ロール紙(記録媒体)、23…プラテン(搬送部)、24…記録ヘッド、25…カッターユニット、26…搬送モーター、32…カッター駆動モーター、40…ホスト側制御部、41…ホスト側入力部、42…ホスト側表示部、43…ホスト側記憶部、44…ホスト側インターフェイス部、50…制御部、51…プリントエンジン、52…入力部、53…表示部、54…記憶部、55…インターフェイス部、56…受信バッファー、60…印刷制御部。
DESCRIPTION OF
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.
前記制御装置から前記印刷データを受信しながら印刷する際、前記印刷データに基づいて、記録ヘッドおよび搬送部を制御して、記録媒体への記録および前記記録媒体の搬送を行い、
受信した前記印刷データ内に前記搬送部が加速または減速できる領域以上の改行を含む空白領域が含まれていることを検出した場合、前記記録ヘッドおよび前記搬送部により、前記空白領域に至るまで前記記録媒体に定速で印刷をし、前記空白領域の範囲内で前記搬送部の加速または減速、停止のいずれかを行うことを特徴とする記録装置の制御方法。 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.
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) |
-
2015
- 2015-09-14 JP JP2015180440A patent/JP2017056562A/en active Pending
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 |