JP2016055605A - Printing device and method for controlling printing device - Google Patents
Printing device and method for controlling printing device Download PDFInfo
- Publication number
- JP2016055605A JP2016055605A JP2014186292A JP2014186292A JP2016055605A JP 2016055605 A JP2016055605 A JP 2016055605A JP 2014186292 A JP2014186292 A JP 2014186292A JP 2014186292 A JP2014186292 A JP 2014186292A JP 2016055605 A JP2016055605 A JP 2016055605A
- Authority
- JP
- Japan
- Prior art keywords
- unit
- processing
- command
- image data
- 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
Landscapes
- Printers Characterized By Their Purpose (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
本発明は、印刷の連続性を確保しつつ、ファーストプリントの早期化とホスト装置への応答の迅速化を図ることのできる印刷装置及びその制御方法に関する。 The present invention relates to a printing apparatus capable of accelerating first printing and speeding up a response to a host apparatus while ensuring continuity of printing, and a control method therefor.
従来、長尺の用紙に剥離可能に複数形成されたラベルに対して連続して印刷を行うプリンターが用いられる。当該プリンターでは、ホスト装置からのコマンドの受信、受信したコマンドの解析、当該解析結果に従った画像データの生成(展開)、及び、画像データの印刷エンジンへの転送の処理が、上流から下流の処理へ順次、実行される。 2. Description of the Related Art Conventionally, a printer that continuously prints on a plurality of labels formed on a long sheet so as to be peelable is used. In the printer, the processes of receiving a command from the host device, analyzing the received command, generating (developing) image data according to the analysis result, and transferring the image data to the print engine are performed from upstream to downstream. Sequentially executed to processing.
また、かかるプリンターには、制御部を簡素なハードウェア構成とするため、上述した印刷エンジンへの転送以外の処理を、1つのCPUで行い、その際に、上流の処理を優先して実行するものがある。 In addition, since the control unit has a simple hardware configuration in such a printer, processing other than the above-described transfer to the print engine is performed by one CPU, and upstream processing is preferentially executed at that time. There is something.
なお、関連する技術として、下記特許文献1には、プリントエンジン(印刷エンジン)のスループットを落とさずに連続したページの印刷を行う印刷装置の発明について記載されている。当該文献には、プリントエンジンの起動を次のデータ処理時間に基づいて遅延させることなどが記載されている。
As a related technique,
上述した上流の処理を優先して実行するプリンターの場合、印刷要求された画像データの生成処理は、その上流の処理であるコマンドの解析までの処理が全て終了しないと開始されないため、ホスト装置からの印刷要求後、画像データが生成されるまでに時間を要し、ファーストプリント(印刷要求後の最初の印刷出力)が遅くなってしまうという課題がある。 In the case of a printer that preferentially executes the upstream processing described above, the generation processing of the image data requested for printing is not started until all processing up to the command analysis that is upstream processing is completed. After the print request, there is a problem that it takes time until the image data is generated, and the first print (first print output after the print request) is delayed.
また、かかるプリンターにおいては、複数のラベル等に対する連続印刷の装置であるので、印刷要求した印刷物が連続して印刷されずに途中で中断してしまうことは、ユーザーの作業性に対して好ましくない。従って、印刷の連続性を確保したいという要求がある。 In addition, since such a printer is an apparatus for continuous printing on a plurality of labels, it is not preferable for the user's workability that the printed matter requested to be printed is not continuously printed and interrupted in the middle. . Therefore, there is a demand for ensuring continuity of printing.
更に、当該プリンターにおいては、受信したコマンドの中にホスト装置への応答を必要とするものが含まれ、コマンド解析の処理を長く止めてしまうとホスト装置への応答性が遅くなるという問題がある。応答性が遅くなると、コマンドを受信可能であることをホスト装置へ通知するタイミングが遅くなり、これにより、ホスト装置からのコマンドの受信が遅くなるという問題がある。 In addition, the printer includes a command that requires a response to the host device in the received command, and if the command analysis process is stopped for a long time, the response to the host device becomes slow. . When the responsiveness is delayed, there is a problem in that the timing for notifying the host device that the command can be received is delayed, thereby delaying the reception of the command from the host device.
なお、上記特許文献1に記載の提案では、プリントエンジンの動作の連続性は保たれるものの、上述した全ての課題を解決する手段は示していない。
The proposal described in
そこで、本発明の目的は、印刷の連続性を確保しつつ、ファーストプリントの早期化とホスト装置への応答の迅速化を図ることのできる印刷装置及びその制御方法を提供することである。 SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a printing apparatus and a control method for the printing apparatus that can speed up the first print and speed up the response to the host apparatus while ensuring the continuity of printing.
上記の目的を達成するために、本発明の一つの側面は、印刷装置が、受信したコマンドを解析するコマンド解析部と、解析された前記コマンドに基づいて画像データを生成する描画部と、前記画像データに従って印刷処理を実行する印刷実行部と、を備え、前記コマンド解析部は、前記描画部の処理タイミングと処理時間を制御する、ことである。 In order to achieve the above object, according to one aspect of the present invention, there is provided a command analysis unit for analyzing a received command by a printing apparatus, a drawing unit for generating image data based on the analyzed command, A print execution unit that executes print processing according to image data, and the command analysis unit controls processing timing and processing time of the drawing unit.
更に、上記の発明において、その一つの好ましい態様は、前記コマンド解析部は、第1の処理期間、前記コマンドの解析処理を行い、前記描画部は、前記処理タイミングと処理時間で決まる第2の処理期間、前記画像データの生成処理を行い、前記第1の処理期間と前記第2の処理期間は異なる期間である、ことを特徴とする。 Furthermore, in the above-described invention, one preferable aspect thereof is that the command analysis unit performs the command analysis processing for a first processing period, and the drawing unit determines the second timing determined by the processing timing and processing time. The image data generation processing is performed during a processing period, and the first processing period and the second processing period are different periods.
更に、上記の発明において、その一つの好ましい態様は、周期的に前記コマンド解析部の処理と前記描画部の処理を切り替える、ことを特徴とする。 Furthermore, in the above invention, one preferable aspect thereof is characterized in that the processing of the command analysis unit and the processing of the drawing unit are periodically switched.
また、上記の発明において、その一つの好ましい態様は、更に、前記生成された画像データを蓄積する画像データ蓄積部を備え、前記描画部の処理時間は、前記画像データ蓄積部の前記画像データの量によって決定される、ことを特徴とする。 Moreover, in the above invention, one preferable aspect thereof further includes an image data storage unit for storing the generated image data, and the processing time of the drawing unit is the time of the image data of the image data storage unit. It is determined by the quantity.
更に、上記の発明において、その一つの好ましい態様は、更に、前記生成された画像データを前記印刷実行部に転送する転送部を備え、前記転送部は、最初の前記コマンドの受信から、所定時間経過後に転送処理を開始する、ことを特徴とする。 Furthermore, in the above-described invention, one preferable aspect thereof further includes a transfer unit that transfers the generated image data to the print execution unit, and the transfer unit receives a predetermined time from the first reception of the command. A transfer process is started after elapse of time.
更に、上記の発明において、その一つの好ましい態様は、前記転送部は、印刷速度に対応した所定周期で、前記画像データを前記印刷実行部に転送する、ことを特徴とする。 Furthermore, in the above invention, one preferable aspect thereof is characterized in that the transfer unit transfers the image data to the print execution unit at a predetermined cycle corresponding to a printing speed.
更に、上記の発明において、その一つの好ましい態様は、ラインインクジェットヘッドにより、複数のラベルに連続して印刷を実行する、ことを特徴とする。 Furthermore, in the above-mentioned invention, one preferable aspect thereof is characterized in that printing is continuously performed on a plurality of labels by a line inkjet head.
上記の目的を達成するために、本発明の別の側面は、画像データに従って印刷処理を実行する印刷実行部と、受信したコマンドを解析するコマンド解析部と、解析された前記コマンドに基づいて前記画像データを生成する描画部と、を備える印刷装置の制御方法において、前記コマンド解析部によって、前記描画部の処理タイミングと処理時間を制御する、ことである。 In order to achieve the above object, another aspect of the present invention provides a print execution unit that executes a printing process according to image data, a command analysis unit that analyzes a received command, and the command based on the analyzed command. In the control method of a printing apparatus including a drawing unit that generates image data, the command analysis unit controls processing timing and processing time of the drawing unit.
本発明の更なる目的及び、特徴は、以下に説明する発明の実施の形態から明らかになる。 Further objects and features of the present invention will become apparent from the embodiments of the invention described below.
以下、図面を参照して本発明の実施の形態例を説明する。しかしながら、かかる実施の形態例が、本発明の技術的範囲を限定するものではない。なお、図において、同一又は類似のものには同一の参照番号又は参照記号を付して説明する。 Embodiments of the present invention will be described below with reference to the drawings. However, such an embodiment does not limit the technical scope of the present invention. In the drawings, the same or similar elements are denoted by the same reference numerals or reference symbols.
図1は、本発明を適用した印刷装置の実施の形態例に係る外観図である。また、図2は、当該印刷装置の内部構造を示す上面図である。図1に示すプリンター2が本実施の形態例に係る印刷装置であり、当該印刷措置では、受信したコマンドを解析する処理と解析されたコマンドに従って画像データを生成する処理を所定のタイミングで切り替え、さらに、生成された画像データを印刷実行部22(図3を参照)に転送する処理を遅延させることにより、ホスト装置からの印刷要求後の印刷開始時期を早期化(ファーストプリントの早期化)、印刷の連続性の確保、及び、ホスト装置(図3のホストコンピューター1)への応答の迅速化を図る。
FIG. 1 is an external view according to an embodiment of a printing apparatus to which the present invention is applied. FIG. 2 is a top view showing the internal structure of the printing apparatus. The printer 2 shown in FIG. 1 is a printing apparatus according to the present embodiment. In the printing measure, a process for analyzing a received command and a process for generating image data according to the analyzed command are switched at a predetermined timing. Further, by delaying the process of transferring the generated image data to the print execution unit 22 (see FIG. 3), the print start time after the print request from the host device is advanced (early first print), Ensuring continuity of printing and speeding up the response to the host device (
本プリンター2は、一例として、ホストコンピューター1(図3を参照)から送信されるコマンドに基づいてラベルに印刷を行う、ラインインクジェットプリンターである。本プリンター2は、図1に示すような筐体3を備え、その前面3aには排紙口4が備えられる。当該排紙口4から、印刷済みのラベルが排紙される。また、図1に示されるように、プリンター2は、ユーザー操作のための操作パネル5と表示部6を備える。
As an example, the printer 2 is a line inkjet printer that performs printing on a label based on a command transmitted from the host computer 1 (see FIG. 3). The printer 2 includes a housing 3 as shown in FIG. 1, and a paper discharge port 4 is provided on the
また、図2に示されるように、プリンター2は、その内部に、印刷媒体である用紙Sの紙案内部220と印刷部223を備える。用紙Sは、長尺のロール紙としてプリンター2内に収容され、図2に示すように、長尺のロール紙は、複数のラベル紙Rが台紙Dに剥離可能に貼付されたものである。また、用紙Sは、図2の矢印Fで示す方向に上流から下流へ搬送される。プリンター2は、用紙Sの幅方向の両側に、側方紙案内部221を備える。
Further, as shown in FIG. 2, the printer 2 includes a
印刷部223には、用紙Sの下方に配置されるプラテン224と用紙Sの上方に配置されるキャリッジ225が対峙して設けられる。キャリッジ225には印刷ヘッド226が搭載され、印刷ヘッド(インクジェットヘッド)226には、各色のヘッドユニット226が設けられる。本プリンター2では、一例として、CMYK(シアン、マゼンタ、イエロー、ブラック)の4色のインクを用いて印刷を行うため、シアンヘッドユニット226c、マゼンタヘッドユニット226m、イエローヘッドユニット226y、及び、ブラックヘッドユニット226kが設けられる。
The
本プリンター2では、図2の矢印Fの方向に連続して搬送される用紙Sの各ラベル紙Rに対して印刷部223がインクジェット方式で印刷処理を実行し、印刷後のラベルが上述した排紙口4から排紙される。また、排紙口4の手前には、図2に示すように、カッターユニット222が備えられ、当該カッターユニット222は用紙Sを所定の位置で切断する。
In the printer 2, the
図3は、本プリンター2の機能構成図である。図3に示すように、プリンター2は、そのホスト装置であるホストコンピューター1から送信されるコマンドに基づいて印刷を実行する。ホストコンピューター1は、プリンター2と通信可能に接続されるコンピューターであり、印刷を行うラベルの内容を作成するアプリケーション、当該アプリケーションからの指示等に従って上記コマンドを生成するプリンタードライバー等を備える。
FIG. 3 is a functional configuration diagram of the printer 2. As shown in FIG. 3, the printer 2 executes printing based on a command transmitted from the
また、ホストコンピューター1から送信されるコマンドには、ラベルの印刷内容のデータを含んだ、印刷を指示する印刷コマンドのほかに、プリンター2からの応答を要求する各種の制御コマンドが含まれる。制御コマンドには、例えば、ホストコンピューター1からプリンター2へデータ送信を行ってもよいか否かを問う送信可否確認コマンドなどがある。この送信可否確認コマンドは、例えば、ラベル1枚分の印刷コマンド(ラベル紙R1枚分のデータを含む)毎に、その印刷コマンドの送信前に送られ、プリンター2への送信が可能であるか否かが確認される。
The command transmitted from the
本プリンター2は、図3に示すように、その機能構成として、コントローラー21と印刷実行部22を備える。
As illustrated in FIG. 3, the printer 2 includes a controller 21 and a
コントローラー21は、プリンター2の装置全体を制御する部分であり、図示していないが、CPU、RAM、ROM、NVRAM、ASIC等で構成される。 The controller 21 is a part that controls the entire apparatus of the printer 2 and is configured by a CPU, a RAM, a ROM, an NVRAM, an ASIC, and the like (not shown).
コントローラー21は、図3に示すように、機能構成として、受信部211、受信バッファー212、コマンド解析部213、コマンド蓄積部214、描画部215、画像データ蓄積部216、及び転送部217を備える。
As shown in FIG. 3, the controller 21 includes a
受信部211は、ホストコンピューター1から送信される上述したコマンドを受信し、受信したコマンドを受信バッファー212に記憶(格納)する部分である。
The
受信バッファー212は、受信部211が受信したコマンド等を一時的に保持するデータ蓄積部である。ここの空き容量が少なくなった場合には、データの受信ができない旨の通知が、上述した送信可否確認コマンドの応答として、ホストコンピューター1に送信される。
The
次に、コマンド解析部213は、上記受信したコマンドを解析する部分である。具体的には、ホストコンピューター1から送信されるコマンドは通信のためにコード化されているので、コマンド解析部213は、そのコード化されたコマンドを復号し、印刷コマンドについては、復号したコマンドをコマンド蓄積部216に記憶(格納)する。
Next, the
また、制御コマンドについては、復号したコマンドに応じた処理を実行する。制御コマンドが、上述した送信可否確認コマンドである場合には、受信バッファー212の空き容量をチェックし、その結果に応じてホストコンピューター1に対する応答を行う。
For the control command, processing corresponding to the decoded command is executed. When the control command is the above-described transmission enable / disable confirmation command, the free capacity of the
コマンド蓄積部214は、上記復号された印刷コマンドを一時的に保持するデータ蓄積部である。
The
次に、描画部215は、コマンド蓄積部214の印刷コマンドに従って、印刷するラベルの画像データを生成する部分である。生成する画像データは、各画素が各色(例えば、R(レッド)G(グリーン)B(ブラック))の階調値を有するデータであり、描画部215では、いわゆる展開処理(描画処理)がなされる。そして、描画部215は、生成した画像データを画像データ蓄積部216に記憶(格納)する。
Next, the
画像データ蓄積部216は、上記生成された画像データを一時的に保持するデータ蓄積部である。
The image
次に、転送部217は、画像データ蓄積部216の画像データを印刷実行部22に転送する、印刷実行部22とのインターエースを構成する部分である。転送部217は、印刷速度に対応した所定周期で、画像データを印刷実行部22に転送する。具体的には、転送部217は、画像データ蓄積部216から読み出したデータに色変換処理等を加え、印刷実行部22が処理可能なデータとして印刷実行部22へ送信する。なお、色変換処理は、RGBの色空間で表現された画像データを、インク色であるCMYKの色空間で表現された画像データに変換する処理である。
Next, the
なお、上述した受信部211、コマンド解析部213、及び、描画部215は、処理内容を記述したプログラム、当該プログラムに従って処理を実行するCPU、RAM等によって構成される。また、受信バッファー212、コマンド蓄積部214、及び、画像データ蓄積部216は、RAM等のメモリーで構成される。また、転送部217は、ASIC等で構成される。
The
また、受信部211、コマンド解析部213、及び、描画部215は、1つのCPUで動作し、各部を同時に並行して処理を実行させることは難しく、実現するには複雑な構成となる。すなわち、本実施形態では、一つの部分が動作している間は、他の部分は動作しない。なお、転送部217が、ASICで構成され、上記の各部とは同時に並行して処理が実行できる。次に、印刷実行部22は、コントローラー21の指示に従って印刷媒体(用紙S)に対して印刷を実行し、印刷物(ラベル)を出力する部分である。印刷実行部22は、印刷部223と搬送部を備え、印刷部223は、上述した印刷ヘッド226、それを搭載するキャリッジ225などを備える。上述した各色のヘッドユニット226は、各色のインクを吐出する複数のノズルを備える。搬送部は、上述した紙案内部220、カッターユニット222のほか、用紙Sを搬送する搬送ローラー機構などを備える。
In addition, the
以上説明したような構成を有する本プリンター2は、以下のように処理を実行する。図4は、印刷コマンドの受信時の処理手順を例示したフローチャートである。まず、図4に従って、1単位(例えば、1ラベル分)の印刷コマンドがどのような手順で処理されるかを説明する。 The printer 2 having the configuration as described above executes processing as follows. FIG. 4 is a flowchart illustrating a processing procedure when a print command is received. First, according to FIG. 4, a procedure for processing a print command for one unit (for example, one label) will be described.
上述の通り、ホストコンピューター1から送信された印刷コマンドは、受信部211によって受信され(図4のステップS1)、順次、受信バッファー212に記憶される。その後、記憶された印刷コマンドは、コマンド解析部213によって読み出され、復号化(解析)される(図4のステップS2)。復号化された印刷コマンドは、順次、コマンド蓄積部214に記憶される。
As described above, the print command transmitted from the
その後、復号化され記憶された印刷コマンドは、描画部215によって読み出され、展開処理が施される。すなわち、描画部215は、読み出した印刷コマンドに従って上記画像データを生成する(図4のステップS3)。生成された画像データは、画像データ蓄積部216に記憶される。
Thereafter, the decrypted and stored print command is read out by the
次に、記憶された画像データは、転送部217によって読み出され、上述した転送部217の各処理を実行されて、印刷実行部22に転送される(図4のステップS4)。
Next, the stored image data is read by the
その後、転送された画像データに従って、印刷実行部22が動作し、用紙Sに印刷処理が実行される(図4のステップS5)。すなわち、ラベル紙Rにラベルが印刷される。
Thereafter, the
このような手順で1ラベルについての印刷がなされる。 Printing for one label is performed in such a procedure.
次に、受信部211、コマンド解析部213、及び描画部215の処理タイミングについて説明する。上述の通り、これらの各部は同時に処理を実行しないので、処理を行える優先順位が予め定められる。基本的には、従来装置と同様に、上流側の処理が優先して実行されるように、受信部211、コマンド解析部213、描画部215の順で優先順位が高く設計される。すなわち、受信部211に処理対象のデータ(コマンド)が存在すれば、他の部分の状況に関わらず、受信部211が処理を実行する。また、受信部211に処理対象がない場合には、受信部211は休止して、コマンド解析部213に処理を渡し、コマンド解析部213に処理対象コマンドが存在すれば、描画部215の状況に関わらず、コマンド解析部213が処理を実行する。また、受信部211及びコマンド解析部213に処理対象が存在しない時には、受信部211及びコマンド解析部213は休止し、描画部215が処理を実行可能となり、処理対象のコマンドが存在すれば処理を実行する。なお、転送部217は、これらとは独立して処理を実行し、基本的には、画像データ蓄積部216に、印刷処理が可能な画像データがあれば処理を実行する。
Next, processing timings of the
このような基本構成の上で、本プリンター2では、コマンド解析部213が、自らが処理すべきコマンドが存在していても所定のタイミングで処理を描画部215に渡すように構成されており、この点が本プリンター2の大きな特徴である。
With this basic configuration, the printer 2 is configured such that the
図5は、受信部211、コマンド解析部213、及び描画部215の処理タイミングを例示したタイムチャートである。図5では、ホストコンピューター1からコマンドが順次、プリンター2に送られる場合を示し、それ以前のコマンドの処理は完了しているものとする。図5の(A)は、上述した基本構成だけで動作した場合のタイムチャートである。なお、図5の各部のチャートにおいて、上のレベルが処理(動作)中であることを示し、下のレベルが休止(停止)中であることを示す。
FIG. 5 is a time chart illustrating the processing timing of the
図5の(A)に示す基本構成では、受信部211が最優先で処理を実行するので、ホストコンピューター1からコマンドが送信されると、タイミングt1で、受信部211が上述した受信処理を開始し、その処理がタイミングt2で終了する。
In the basic configuration shown in FIG. 5A, since the receiving
その後、次のコマンドが送信されるまでの間、すなわち、タイミングt2からタイミングt6の間、コマンド解析部213が動作して、受信されたコマンドの上記解析処理を実行する。コマンド解析部213は、コマンドが制御コマンドであり、ホストコンピューター1に応答する必要がある場合には、その応答処理を実行する。
Thereafter, until the next command is transmitted, that is, from the timing t2 to the timing t6, the
その後、タイミングt6で、受信部211に処理が戻り、ホストコンピューター1から送信された次のコマンドの受信処理がなされ、タイミングt7で受信処理が終了する。
Thereafter, the process returns to the
その後も、同様に、受信部211とコマンド解析部213の処理が実行され、タイミングt12でコマンド解析部213の処理が終了する。
Thereafter, similarly, the processes of the
そして、タイミングt12で、コマンドの受信及び受信したコマンドの解析がすべて終了すると、換言すれば、ホストコンピューター1からの送信がなくなり、かつ、受信バッファー212にコマンドがなくなれば、この時点で描画部215に処理が渡り、上述した描画処理が開始される。すなわち、タイミングt12以降に、画像データ蓄積部216に画像データが保持され、タイミングt12の直後に(図5(A)の最下段の矢印に示される期間に)転送部217による印刷実行部22への上記転送処理が可能になる。
At time t12, when the command reception and the analysis of the received command are all completed, in other words, when there is no transmission from the
一方、図5の(B)は、本プリンター2における、すなわち、上述した特徴を実行した場合のタイムチャートの例示である。 On the other hand, FIG. 5B is an example of a time chart in the printer 2, that is, when the above-described feature is executed.
図5の(B)では、タイミングt2までは、図5の(A)の場合と同様に推移し、コマンド解析部213に処理が移るが、その後、コマンド解析部213は、処理の開始後、所定時間(T1、例えば、50ms)が経過したタイミングt3で、処理を休止し、描画部215に所定時間(T2)、処理を渡す。これに従って、描画部215がタイミングt3から処理を実行し、所定時間T2が経過したタイミングt4で処理がコマンド解析部213に戻る。なお、コマンド解析部213は、処理中に制御コマンドを処理した場合には、適宜、ホストコンピューター1への応答処理を実行する。
In (B) of FIG. 5, until timing t <b> 2, the same transition as in the case of (A) of FIG. 5 is performed, and the process moves to the
その後、同様に、コマンド解析部213は、自分の処理が完了していなくても、処理を所定時間T1継続した後に、処理を描画部215に渡す。図5の(B)では、コマンド解析部213が所定時間T1、処理を継続したタイミングt5、タイミングt8、タイミングt10などで、処理が描画部215に移る。コマンド解析部213は、処理開始時間(処理タイミング)と処理時間(所定時間T1)で決まる期間(第1の処理期間)、処理を行い、描画部215は、処理開始時間(処理タイミング)と処理時間(所定時間T2)で決まる期間(第2の処理期間)、処理を行う。第1の処理期間と第2の処理期間は異なる期間である。
Thereafter, similarly, the
このように、本プリンター2の場合には、タイミングt3以降に、画像データ蓄積部216に画像データが保持され、タイミングt3の直後に(図5(B)の最下段の矢印に示される期間に)転送部217による印刷実行部22への上記転送処理が可能になる。
Thus, in the case of the printer 2, the image
従って、図5の(A)に示した基本構成だけで動作させた場合よりも、図5の(B)に示した本プリンター2で動作させた場合の方が、早い時期に印刷実行部22による印刷処理を開始でき、ホストコンピューター1において印刷要求を行った後の最初の印刷出力を早くさせることができる。すなわち、ファーストプリントの早期化を図ることができる。
Accordingly, when the printer 2 shown in FIG. 5B is operated with only the basic configuration shown in FIG. 5A, the
なお、コマンド解析部213が描画部215に処理を渡す所定時間T2は、複数用意され、例えば、図5のように、T3も用意される(例えば、T2=200ms、T3=10ms)。連続印刷性を維持するために、画像データ蓄積部216に蓄積されるデータ量に応じて、これらの時間(T2、T3)を切り替えて用いる。当該処理の詳細については後述する。
A plurality of predetermined times T2 during which the
また、本プリンター2は、転送部217の処理タイミングについても特徴を有している。具体的には、ホストコンピューター1から印刷要求があり、プリンター2は、その印刷要求についての最初のコマンドの受信から、所定時間(遅延時間)経過した後に転送部217の処理を開始するように構成される。これは、上述した描画部215の動作タイミングンの早期化により、転送部217の動作タイミングも早くなるが、転送部217の方が描画部215よりも処理が速いため、画像データ蓄積部216に蓄積されるデータ量が少くなり、転送部217が転送処理を行うデータが画像データ蓄積部216になくなることを防ぐためである。このような画像データ蓄積部216にデータがなくなると、転送部217による処理が休止し、すなわち、印刷実行部22による印刷処理が中断して印刷の連続性が損なわれてしまう。従って、これを防止するため、本プリンター2は、ファーストプリントの早期化の要求を満たしながら、できるだけ多くの画像データが画像データ蓄積部216に蓄積された後に転送部217の処理が開始されるように構成される。
The printer 2 is also characterized by the processing timing of the
この転送部217の処理開始を遅延させる所定時間(遅延時間)は、例えば、ユーザーが許容できる印刷要求からファーストプリントまでの許容時間から定めることができる。例えば、当該許容時間を13秒、コマンド受信までの時間を1秒、転送部217による画像テータの転送開始から印刷物が出力されるまでの時間を5秒とすると、当該遅延時間を7秒に定めることができる。
The predetermined time (delay time) for delaying the processing start of the
次に、コマンド解析部213の具体的な処理手順について説明する。図6は、コマンド解析部213における処理手順を例示したフローチャートである。図6に基づいて、コマンド解析部213の処理手順について説明する。図6では、コマンド解析部213より上流の処理(受信部211)は考慮しないものとする。
Next, a specific processing procedure of the
まず、コマンド解析部213は、受信バッファー212に処理対象のデータ、すなわち、未処理のコマンド、があるか否かをチェックする(図6のステップS11)。当該チェックの結果、処理対象のデータがなければ(図6のステップS11のNo)、上述した基本構成に基づき、所定時間T0(例えば、10ms)の間、描画部215に処理を渡す(図6のステップS12)。
First, the
一方、処理対象のデータがあれば(図6のステップS11のYes)、コマンド解析部213は、コマンド蓄積部214に空き容量があるか否かをチェックする(図6のステップS13)。当該チェックの結果、空き容量がなければ(図6のステップS13のNo)、コマンド解析部213は処理ができないので、上述した基本構成に基づき、所定時間T0の間、描画部215に処理を渡す(図6のステップS12)。
On the other hand, if there is data to be processed (Yes in step S11 in FIG. 6), the
一方、空き容量があれば(図6のステップS13のYes)、すなわち、コマンド解析部213が処理できる状況では、上述した解析処理を実行するが、まず、描画部215に処理を渡さずに連続して解析処理を行っている時間が、上述した所定時間T1が経過したか否かをチェックする(図6のステップS14)。
On the other hand, if there is a free space (Yes in step S13 in FIG. 6), that is, in the situation where the
当該チェックの結果、所定時間T1が経過していなければ(図6のステップS14のNo)、コマンド解析部213は上述したコマンドの解析処理を実行する(図6のステップS15)。その後、処理はステップS11に戻る。
If the predetermined time T1 has not elapsed as a result of the check (No in step S14 in FIG. 6), the
一方、当該チェックの結果、所定時間T1が経過していれば(図6のステップS14のYes)、コマンド解析部213は、描画部215に処理を渡すが、まず、画像データ蓄積部216のデータ蓄積量をチェックする(図6のステップS16)。具体的には、例えば、複数のラベルに連続して印刷する場合には、コマンド解析部213は、画像データ蓄積部216に所定枚数N枚(例えば、N=1)分のラベルの画像データが蓄積されているか否かをチェックする。なお、代替として、所定搬送距離分の画像データが蓄積されているか否かをチェックするようにしてもよい。
On the other hand, if the predetermined time T1 has passed as a result of the check (Yes in step S14 in FIG. 6), the
当該チェックの結果、蓄積されている画像データ量が少ない場合、具体的には、例えば、蓄積されているデータ量が、ラベル1枚分の画像データ以下の場合には(図6のステップS16の「少」)、コマンド解析部213は、所定時間T2の間、描画部215に処理を渡す(図6のステップS17)。
As a result of the check, if the amount of stored image data is small, specifically, for example, if the amount of stored data is less than or equal to the image data for one label (step S16 in FIG. 6). “Low”), the
一方、上記チェックの結果、蓄積されている画像データ量が多い場合、具体的には、例えば、蓄積されているデータ量が、ラベル1枚分の画像データを超えている場合には(図6のステップS16の「多」)、コマンド解析部213は、所定時間T3の間、描画部215に処理を渡す(図6のステップS18)。
On the other hand, if the amount of stored image data is large as a result of the check, specifically, for example, if the amount of stored data exceeds the image data for one label (FIG. 6). The
なお、所定時間T2は所定時間T3よりも長く設定される。一例として、300msの周期で印刷実行部22に1ラベル分の画像データを転送する必要がある場合には、所定時間T1=50ms、所定時間T2=200ms、所定時間T3=10msとすることができる。
The predetermined time T2 is set longer than the predetermined time T3. As an example, when it is necessary to transfer image data for one label to the
ステップS17及びS18の後は、処理がステップS11に戻る。なお、描画部215は、処理を渡された際には、処理対象のコマンドがコマンド蓄積部214に存在する限り、上述した描画処理(画像データの生成処理)を実行する。
After steps S17 and S18, the process returns to step S11. Note that the
以上のようにコマンド解析部213が動作することにより、コマンド解析部213の処理が終了していなくても、描画部215が処理を実行して印刷実行部22に転送する画像データが生成されるので、図5に基づいて説明したように、ファーストプリントを早くすることができる。
By operating the
また、コマンド解析部213は、画像データ蓄積部216のデータ蓄積量に応じて、描画部215に渡す時間を変え、それらの時間(所定時間T2、T3)を適切に設定することで、印刷の連続性を確保することができる。
Further, the
また、コマンド解析部213と描画部215の切り替え周期(所定時間T1+所定時間T2又はT3)を短くすることで、また、所定時間T2、T3を必要最小限の時間とすることで、コマンド解析部213が休止している連続時間を短くすることができ、これにより、ホストコンピューター1への応答性を良くすることができる。
Further, by shortening the switching cycle (predetermined time T1 + predetermined time T2 or T3) between the
更に、コマンド解析部213の応答性が良くなることにより、上述した送信可否確認コマンドに対する応答も早くなる。これにより、プリンター2への送信が可能な状態であるにもかかわらず、ホストコンピューター1が上記応答を待つために印刷コマンドの送信を見合わせる機会も減少するので、この点においても印刷の連続性が確保される。
Furthermore, since the response of the
以上説明したように、本実施の形態例に係るプリンター2では、ホストコンピューター1における印刷要求後、初めのラベルが出力されるまでの時間(ファーストプリントまでの時間)を短縮することができる。 As described above, in the printer 2 according to this embodiment, the time until the first label is output after the print request in the host computer 1 (time until the first print) can be shortened.
更に、転送部217の処理開始タイミングを一定時間遅らせることにより、印刷の連続性が確保される。
Furthermore, the continuity of printing is ensured by delaying the processing start timing of the
また、上述の通り、コマンド解析部213と描画部215の動作切り替え周期を適切に設定することで、ホストコンピューター1への応答性を向上させることができると共に、印刷の連続性も確保される。
Further, as described above, by appropriately setting the operation switching period between the
以上から、本プリンター2は、ファーストプリントの早期化、印刷の連続性に関するユーザーニーズを満たすことができる。 As described above, the printer 2 can satisfy the user needs related to accelerating first printing and continuity of printing.
なお、本発明は、ラインインクジェットプリンターによるラベルの印刷に好適であるが、ラベル以外の印刷に対して、また、他の印刷方式のプリンターに対しても適用することができる。 The present invention is suitable for label printing by a line ink jet printer, but can be applied to printing other than labels and also to printers of other printing methods.
本発明の保護範囲は、上記の実施の形態に限定されず、特許請求の範囲に記載された発明とその均等物に及ぶものである。 The protection scope of the present invention is not limited to the above-described embodiment, but covers the invention described in the claims and equivalents thereof.
1 ホストコンピューター、 2 プリンター、 3 筐体、 3a 前面、 4 排紙口、 5 操作パネル、 6 表示部、 21 コントローラー、 22 印刷実行部、 211 受信部、 212 受信バッファー、 213 コマンド解析部、 214 コマンド蓄積部、 215 描画部、 216 画像データ蓄積部、 217 転送部、 220 紙案内部、 221 側方紙案内部、 222 カッターユニット、 223 印刷部、 224 プラテン、 225 キャリッジ、 226 印刷ヘッド、 226c シアンヘッドユニット、 226m マゼンタヘッドユニット、 226y イエローヘッドユニット、 226k ブラックヘッドユニット、 S 用紙、 D 台紙、 R ラベル用紙
DESCRIPTION OF
Claims (8)
解析された前記コマンドに基づいて画像データを生成する描画部と、
前記画像データに従って印刷処理を実行する印刷実行部と、
を備え、
前記コマンド解析部は、前記描画部の処理タイミングと処理時間を制御する
ことを特徴とする印刷装置。 A command analysis unit for analyzing the received command;
A drawing unit that generates image data based on the analyzed command;
A print execution unit that executes print processing according to the image data;
With
The command analysis unit controls processing timing and processing time of the drawing unit.
前記コマンド解析部は、第1の処理期間、前記コマンドの解析処理を行い、
前記描画部は、前記処理タイミングと処理時間で決まる第2の処理期間、前記画像データの生成処理を行い、
前記第1の処理期間と前記第2の処理期間は異なる期間である
ことを特徴とする印刷装置。 In claim 1,
The command analysis unit performs analysis processing of the command during a first processing period,
The drawing unit performs a generation process of the image data during a second processing period determined by the processing timing and processing time,
The printing apparatus, wherein the first processing period and the second processing period are different periods.
周期的に前記コマンド解析部の処理と前記描画部の処理を切り替える
ことを特徴とする印刷装置。 In claim 1 or 2,
A printing apparatus characterized by periodically switching between processing of the command analysis unit and processing of the drawing unit.
前記生成された画像データを蓄積する画像データ蓄積部を備え、
前記描画部の処理時間は、前記画像データ蓄積部の前記画像データの量によって決定される
ことを特徴とする印刷装置。 In any one of Claims 1 thru | or 3, Furthermore,
An image data storage unit for storing the generated image data;
The processing time of the drawing unit is determined by the amount of the image data in the image data storage unit.
前記生成された画像データを前記印刷実行部に転送する転送部を備え、
前記転送部は、最初の前記コマンドの受信から、所定時間経過後に転送処理を開始する
ことを特徴とする印刷装置。 In any one of Claims 1 thru | or 4, Furthermore,
A transfer unit that transfers the generated image data to the print execution unit;
The printing apparatus, wherein the transfer unit starts transfer processing after a predetermined time has elapsed since the first reception of the command.
前記転送部は、印刷速度に対応した所定周期で、前記画像データを前記印刷実行部に転送する
ことを特徴とする印刷装置。 In any one of Claims 1 thru | or 5,
The transfer unit transfers the image data to the print execution unit at a predetermined cycle corresponding to a printing speed.
ラインインクジェットヘッドにより、複数のラベルに連続して印刷を実行する
ことを特徴とする印刷装置。 In any one of Claims 1 thru | or 6,
A printing apparatus that continuously performs printing on a plurality of labels by a line inkjet head.
前記コマンド解析部によって、前記描画部の処理タイミングと処理時間を制御する
ことを特徴とする印刷装置の制御方法。 A control method for a printing apparatus, comprising: a print execution unit that executes print processing according to image data; a command analysis unit that analyzes a received command; and a drawing unit that generates the image data based on the analyzed command. There,
The method for controlling a printing apparatus, wherein the command analysis unit controls processing timing and processing time of the drawing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014186292A JP2016055605A (en) | 2014-09-12 | 2014-09-12 | Printing device and method for controlling printing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014186292A JP2016055605A (en) | 2014-09-12 | 2014-09-12 | Printing device and method for controlling printing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2016055605A true JP2016055605A (en) | 2016-04-21 |
Family
ID=55757078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014186292A Pending JP2016055605A (en) | 2014-09-12 | 2014-09-12 | Printing device and method for controlling printing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2016055605A (en) |
-
2014
- 2014-09-12 JP JP2014186292A patent/JP2016055605A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8928912B2 (en) | Printing control device, image forming system and computer readable medium storing program | |
JP4981596B2 (en) | Printer system | |
JP2011101994A (en) | Recording control device, recorder, control method of recorder, and program | |
US9272544B2 (en) | Control apparatus, control method, and storage medium | |
JP2004164645A (en) | Device, method and program for print control | |
US8508799B2 (en) | Printing apparatus and printing method for forming image using a first print material and a second print material | |
JP2012141919A (en) | Recording system, control method of recording system, recording controller and program | |
JP5929431B2 (en) | Image recording apparatus, control method for image recording apparatus, and control program | |
JP6384259B2 (en) | Image processing apparatus, image forming apparatus, image processing method, and program | |
JP2016055605A (en) | Printing device and method for controlling printing device | |
JP2002091748A (en) | Image processor | |
JP5582302B2 (en) | Image processing apparatus, image output apparatus, and program | |
US11003966B2 (en) | Printing apparatus and module | |
JP6716868B2 (en) | Image forming apparatus and program | |
JP2010020579A (en) | Program, print control method and printing system | |
JP2008009216A (en) | Image forming apparatus and image forming program | |
JP6121341B2 (en) | Inkjet printing device | |
JP2007149035A (en) | Image forming apparatus | |
JP7263830B2 (en) | printer and module | |
JP2012133261A (en) | Printing system and control method for printing system | |
US11535043B2 (en) | Image forming apparatus | |
JP2019006004A (en) | Printer and printer system | |
JP2024013936A (en) | Image forming apparatus, image forming apparatus control method, and program | |
JP2007108861A (en) | Printer | |
JP2007069580A (en) | Image forming device |