JP6264978B2 - Printing control apparatus, printing system, and printing control method - Google Patents
Printing control apparatus, printing system, and printing control method Download PDFInfo
- Publication number
- JP6264978B2 JP6264978B2 JP2014057687A JP2014057687A JP6264978B2 JP 6264978 B2 JP6264978 B2 JP 6264978B2 JP 2014057687 A JP2014057687 A JP 2014057687A JP 2014057687 A JP2014057687 A JP 2014057687A JP 6264978 B2 JP6264978 B2 JP 6264978B2
- Authority
- JP
- Japan
- Prior art keywords
- command
- unit
- printing
- response
- printer
- 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.)
- Expired - Fee Related
Links
Images
Description
本発明は、印刷制御装置、印刷システム、及び、印刷制御方法に関する。 The present invention relates to a print control apparatus, a print system, and a print control method.
従来、印刷装置をコマンドにより制御するシステムが知られている。この種のシステムでは、制御側の装置から印刷装置にコマンドを送信すると、印刷装置は受信した順にコマンドを実行する。ところで、印刷装置が実行する処理の中には、優先度の高い処理がある。このような処理を実行させる場合、コマンドを送信する制御側の装置が、優先度の高い処理を示すコマンドを先に送信するなどの制御を行うことがあった(例えば、特許文献1参照)。 Conventionally, a system for controlling a printing apparatus by a command is known. In this type of system, when a command is transmitted from the control-side device to the printing device, the printing device executes the commands in the order received. By the way, among the processes executed by the printing apparatus, there is a process with high priority. When such a process is executed, a control-side apparatus that transmits a command may perform control such as transmitting a command indicating a process with high priority first (for example, see Patent Document 1).
上記従来のシステムのように、優先度の高いコマンドと、優先度の低いコマンドとを送信する場合、制御側の装置がコマンドの送信順序を細かく制御する必要があった。このため、制御側の装置の動作が複雑になっていた。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置を制御する装置が印刷装置をコマンドで制御する場合に、印刷装置におけるコマンドの実行順序を制御できるようにすることを目的とする。
When transmitting a command having a high priority and a command having a low priority as in the conventional system described above, it is necessary for the control-side device to finely control the command transmission order. This complicates the operation of the control-side device.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to make it possible to control the execution order of commands in a printing apparatus when the apparatus that controls the printing apparatus controls the printing apparatus with commands. To do.
上記目的を達成するために、本発明は、印刷装置に接続される印刷制御装置であって、前記印刷装置にコマンドを送信する送信部と、前記印刷装置から送信される応答を受信する受信部と、を備え、前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記第2のコマンドを送信する前に応答要求コマンドを送信し、この応答要求コマンドに対する応答を前記受信部により受信してから、前記第2のコマンドを送信すること、を特徴とする。
本発明によれば、優先度の異なる複数のコマンドを送信する動作の間に、応答要求コマンドを送信することで、印刷装置がコマンドを送信順に実行するように、制御できる。これにより、印刷装置におけるコマンドの実行順序を適切に制御できる。
In order to achieve the above object, the present invention provides a printing control apparatus connected to a printing apparatus, a transmission section that transmits a command to the printing apparatus, and a reception section that receives a response transmitted from the printing apparatus. And when the printer transmits a plurality of commands including a first command executed by the printing device and a second command executed by the printing device in preference to the first command, A response request command is transmitted before the second command is transmitted, and a response to the response request command is received by the receiving unit, and then the second command is transmitted.
According to the present invention, by transmitting a response request command during an operation of transmitting a plurality of commands having different priorities, it is possible to control the printing apparatus to execute the commands in the order of transmission. Thereby, the execution order of the commands in the printing apparatus can be appropriately controlled.
また、本発明は、上記印刷制御装置において、前記第1のコマンド及び前記第2のコマンドの送信を指示するコマンド生成部と、前記コマンド生成部により前記第1のコマンド及び前記第2のコマンドを含む複数のコマンドの送信が指示された場合に、コマンドの送信順序を決定し、前記応答要求コマンドを生成して前記第2のコマンドの前に配置する送信制御部と、を備えることを特徴とする。
本発明によれば、優先度の異なる複数のコマンドを印刷装置に送信する場合に、応答要求コマンドを生成することにより、容易に、印刷装置におけるコマンドの実行順序を制御できる。
According to the present invention, in the print control apparatus, a command generation unit that instructs transmission of the first command and the second command, and the first command and the second command are transmitted by the command generation unit. A transmission control unit that determines a command transmission order and generates the response request command and places the response request command before the second command when transmission of a plurality of commands is instructed. To do.
According to the present invention, when a plurality of commands having different priorities are transmitted to the printing apparatus, the execution order of the commands in the printing apparatus can be easily controlled by generating a response request command.
また、本発明は、上記印刷制御装置において、プログラムを実行するプログラム実行部を備え、前記コマンド生成部は、前記プログラム実行部が出力するデータに基づき前記印刷装置に対して印刷を指示する前記第1のコマンドを生成し、前記印刷装置の設定に係る前記第2のコマンドを生成すること、を特徴とする。
本発明によれば、プログラムを実行して生成されたデータを印刷装置に印刷させる場合に、コマンドによって印刷装置の設定を実行させることができ、設定と印刷動作の実行順序を適切に制御できる。
In the print control apparatus, the present invention further includes a program execution unit that executes a program, and the command generation unit instructs the printing apparatus to perform printing based on data output from the program execution unit. 1 command is generated, and the second command related to the setting of the printing apparatus is generated.
According to the present invention, when printing data generated by executing a program is printed on a printing apparatus, the setting of the printing apparatus can be executed by a command, and the execution order of the setting and the printing operation can be appropriately controlled.
また、本発明は、上記印刷制御装置において、前記送信制御部は、前記第1のコマンドまたは前記第2のコマンドに応答して前記印刷装置から送信される応答を、前記受信部により受信した場合に、受信した応答に対応するデータを前記コマンド生成部に出力し、前記応答要求コマンドに応答して前記印刷装置から送信される応答を、前記受信部により受信した場合は、前記データの前記コマンド生成部への出力を行わないこと、を特徴とする。
本発明によれば、応答要求コマンドを利用して印刷装置のコマンドの実行順序を制御し、この制御の影響を、他の機能部に与えないようにすることができる。このため、印刷装置のコマンドの実行順序を制御する機能部を、他の機能部とは独立して実装できる。
In the printing control apparatus according to the aspect of the invention, the transmission control unit may receive a response transmitted from the printing apparatus in response to the first command or the second command. In addition, when data corresponding to the received response is output to the command generation unit and a response transmitted from the printing apparatus in response to the response request command is received by the reception unit, the command of the data The output to a production | generation part is not performed, It is characterized by the above-mentioned.
According to the present invention, the response execution command is used to control the execution order of the commands of the printing apparatus, and the influence of this control can be prevented from being given to other functional units. For this reason, the function part which controls the execution order of the command of a printing apparatus can be mounted independently of another function part.
また、上記目的を達成するために、本発明は、印刷装置と印刷制御装置とを通信可能に接続した印刷システムであって、前記印刷制御装置は、前記印刷装置にコマンドを送信する送信部と、前記印刷装置から送信される応答を受信する受信部と、を備え、前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記第2のコマンドを送信する前に応答要求コマンドを送信し、この応答要求コマンドに対する応答を前記受信部により受信してから、前記第2のコマンドを送信し、前記印刷装置は、前記印刷制御装置から送信されるコマンドを受信するコマンド受信部と、前記コマンド受信部により受信されたコマンドを受信順に解析するコマンド解析部と、コマンドを実行するコマンド実行部と、を備え、前記コマンド解析部は前記コマンド受信部により受信されたコマンドを解析して前記コマンド実行部に出力すると、前記コマンド実行部がコマンドを実行中に次のコマンド解析可能であり、前記応答要求コマンドを解析した場合には前記応答要求コマンドへの応答を前記印刷装置に送信すること、を特徴とする印刷システム。
本発明によれば、印刷制御装置が、優先度の異なる複数のコマンドを送信する動作の間に、応答要求コマンドを送信することで、印刷装置がコマンドを送信順に実行するように、制御できる。これにより、印刷装置におけるコマンドの実行順序を適切に制御できる。
In order to achieve the above object, the present invention provides a printing system in which a printing apparatus and a printing control apparatus are communicably connected, and the printing control apparatus includes a transmission unit that transmits a command to the printing apparatus. A receiving unit that receives a response transmitted from the printing apparatus, and a first command that the printing apparatus executes, and a second command that the printing apparatus executes in preference to the first command Are transmitted before the second command is transmitted, a response to the response request command is received by the receiving unit, and then the second command is transmitted. The printing apparatus receives a command transmitted from the print control apparatus, and analyzes the commands received by the command receiving section in the order received. A command analysis unit that executes a command, and the command analysis unit analyzes the command received by the command reception unit and outputs the command to the command execution unit. A printing system capable of analyzing a next command during execution and transmitting a response to the response request command to the printing apparatus when the response request command is analyzed.
According to the present invention, it is possible to control the printing apparatus to execute the commands in the order of transmission by transmitting the response request command during the operation of transmitting the plurality of commands having different priorities. Thereby, the execution order of the commands in the printing apparatus can be appropriately controlled.
また、上記目的を達成するために、本発明は、印刷装置にコマンドを送信して実行させ、前記印刷装置から送信される応答を受信する印刷制御方法であって、前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記第2のコマンドを送信する前に応答要求コマンドを送信し、この応答要求コマンドに対する応答を受信してから、前記第2のコマンドを送信すること、を特徴とする。
本発明によれば、優先度の異なる複数のコマンドを送信する動作の間に、応答要求コマンドを送信することで、印刷装置がコマンドを送信順に実行するように、制御できる。これにより、印刷装置におけるコマンドの実行順序を適切に制御できる。
In order to achieve the above object, the present invention provides a printing control method for transmitting a command to a printing apparatus and executing the command, and receiving a response transmitted from the printing apparatus. When a plurality of commands including one command and a second command executed by the printing apparatus with priority over the first command are transmitted, a response request command is transmitted before the second command is transmitted. The second command is transmitted after transmitting and receiving a response to the response request command.
According to the present invention, by transmitting a response request command during an operation of transmitting a plurality of commands having different priorities, it is possible to control the printing apparatus to execute the commands in the order of transmission. Thereby, the execution order of the commands in the printing apparatus can be appropriately controlled.
本発明によれば、優先度の異なる複数のコマンドを送信する場合に、印刷装置におけるコマンドの実行順序を適切に制御できる。 According to the present invention, when a plurality of commands having different priorities are transmitted, the execution order of the commands in the printing apparatus can be appropriately controlled.
以下、図面を参照して本発明の実施形態について説明する。
図1は、第1の実施形態に係る印刷システム8の機能ブロック図である。
印刷システム8は、プリンター5(印刷装置)と、プリンター5を制御するホストコンピューター1(印刷制御装置)とを接続して構成される。
印刷システム8は、オペレーターの操作によりホストコンピューター1が印刷コマンド及び印刷データをプリンター5に出力し、プリンター5が、印刷コマンド及び印刷データに基づいて印刷媒体に印刷するシステムである。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a functional block diagram of a
The
The
ホストコンピューター1は、ホストコンピューター1の各部を制御するホスト制御部45を備える。ホスト制御部45は、アプリケーション実行部45aと、プリンタードライバー実行部45bと、プリントモニター部45cと、を備える。
アプリケーション実行部45a(プログラム実行部)は、文書作成プログラム、画像編集プログラム、POSアプリケーション、或いはラベル作成プログラム等のアプリケーションプログラムを実行する。アプリケーション実行部45aは、オペレーターの操作により印刷実行が指示された場合に、作成した文書や画像を印刷するための印刷データを生成して出力する。プリンタードライバー実行部45bは、プリンター5を制御するためのデバイスドライバープログラムを実行する。プリンタードライバー実行部45b(コマンド生成部)は、プリンター5を制御するコマンドと、このコマンドに関連するデータとを生成して出力することにより、プリンター5の動作を制御する。例えば、プリンタードライバー実行部45bは、アプリケーション実行部45aが出力する印刷データをもとに、プリンター5に対して印刷を指示する印刷コマンドと印刷データを生成する。なお、プリンタードライバー実行部45bが実行するデバイスドライバープログラムは、プリンター5に最適化されたプログラムに限らず、汎用のデバイスドライバープログラムであってもよい。また、他の機種のプリンター向けのデバイスドライバープログラムであってもよい。この場合、プリンター5は、他の機種のプリンターに対応したプリンタードライバー実行部45bが出力するコマンドやデータを、処理可能な構成であればよい。
The host computer 1 includes a
The
また、プリンタードライバー実行部45bは、ホスト入力部47の操作に応じて、設定用のユーザーインターフェイスをホスト表示部46に表示する機能を有する。このユーザーインターフェイスでは、例えば、プリンター5における画像の登録、印刷速度や印刷解像度を含む印刷機能に係る設定などを行うことができる。プリンタードライバー実行部45bは、ユーザーインターフェイスで入力された内容に従って、プリンター5の機能を設定する設定コマンドを生成する。
Further, the printer
プリントモニター部45c(送信部、受信部、送信制御部)は、プリンター5をモニターするモニタープログラムを実行する。プリントモニター部45cは、プリンター5の動作状態を検出し、プリンタードライバー実行部45bが生成するコマンドの送信制御、及び、プリンター5に送信したコマンドの応答を監視する制御を行う。
The
具体的には、プリントモニター部45cはプリンタードライバー実行部45bが出力するコマンドを順次取得して、プリンター5に送信する。また、プリントモニター部45cは、複数のコマンドをプリンター5に送信する場合、所定の順序でプリンター5にコマンドを実行させるために、コマンドの送信順序や送信タイミングを調整する。この場合、プリントモニター部45cは、例えばプリンター5にコマンドを送信し、このコマンドに対する応答を受信してから、次のコマンドを送信する等の制御を行う。
また、プリントモニター部45cは、アプリケーション実行部45aがコマンドを出力した場合には、このコマンドを取得して、プリンタードライバー実行部45bが出力するコマンドと同様に、送信制御を行う。
さらに、プリントモニター部45cは、プリンタードライバー実行部45bが生成したコマンドをプリンター5に送信し、プリンター5から応答を受信した場合、受信したコマンドを、もとのコマンドの生成元に返す。このため、プリンタードライバー実行部45bは、生成したコマンドに対する応答を取得できる。また、プリンタードライバー実行部45bは、アプリケーション実行部45aの指示により生成したコマンドの応答をプリントモニター部45cから受けた場合に、アプリケーション実行部45aに応答を返すことができる。この場合、アプリケーション実行部45aは、プリンタードライバー実行部45bに出力した指示の結果を取得できる。
Specifically, the
When the
Furthermore, when the
ところで、プリンタードライバー実行部45bは、複数のコマンドを生成してプリントモニター部45cに出力することがある。例えば、アプリケーション実行部45aの指示に基づき印刷コマンドを生成するとともに、ユーザーインターフェイスの操作に応じてプリンター5の設定に関するコマンドを生成することがある。このように、プリンタードライバー実行部45bが複数のコマンドを生成した場合、プリントモニター部45cは、これら複数のコマンドを一括してプリンター5に送信することができ、コマンドを個別に送信することもできる。この場合、プリントモニター部45cは、プリンター5が複数のコマンドを適切な順序で実行するように、コマンドの送信制御を行う。この送信制御の内容については後述する。
プリントモニター部45cは、一般に、LM(Language Monitor)やポートモニターと呼ばれるプログラムモジュールを実行し、上記の制御を行う。プリントモニター部45cは、ホストコンピューター1のオペレーティングシステムまたはプリンタードライバー実行部45bの一部を構成するモジュールであってもよい。
Incidentally, the printer
The
ホストコンピューター1は、各種情報を表示するホスト表示部46、接続された入力デバイスに対する操作を検出するホスト入力部47、各種データを記憶するホスト記憶部48、及びプリンター5に接続される通信インターフェース(I/F)49を備える。ホスト表示部46及びホスト入力部47はオペレーターの操作に供される。ホスト記憶部48は、ホスト制御部45が実行する制御プログラム、アプリケーションプログラム、デバイスドライバープログラム等の各種のプログラム、及び、これらのプログラムに関するデータ等を不揮発的に記憶する。
The host computer 1 includes a
本実施形態のプリンター5は、一例として、インクジェット式のプリンターを示す。プリンター5は、インクを吐出するノズルを有するラインインクジェットヘッド12(印刷部)を備える。ラインインクジェットヘッド12は、搬送方向に直交する方向において印刷範囲全体にわたって、ノズルが列をなして配置されたラインヘッドである。ラインインクジェットヘッド12は、シアン(C)、マゼンダ(M)、イエロー(Y)、及びブラック(K)の4色の色毎にノズル列を有し、フルカラーで印刷媒体に印刷を行うことができる。また、ラインインクジェットヘッド12が、さらに多色のインクを使用する構成であってもよいし、2色またはモノクロのインクを使用する構成であってもよい。
The printer 5 of this embodiment shows an inkjet printer as an example. The printer 5 includes a line inkjet head 12 (printing unit) having nozzles that eject ink. The
プリンター5で使用する印刷媒体は、所定サイズにカットされたカットシートまたは連続シートであり、これらのシートは紙または合成樹脂製であって、表面加工が施されていてもよい。連続シートは、例えばロール紙やファンフォールド紙である。本実施形態では、プリンター5が、裏面に粘着剤が付された定型サイズのラベルを、剥離紙(台紙)に並べてロール状に巻いたラベル用紙、及び、ロール紙を用いる例を説明する。
プリンター5で使用されるラベル用紙及びロール紙には複数の種類がある。例えば、普通紙、ファイン紙、普通紙ラベル、ファイン紙ラベル、合成紙ラベル、及び光沢紙ラベルが挙げられる。普通紙及び普通紙ラベルは印刷面が普通紙であり、ファイン紙及びファイン紙ラベルはインクの吸収能および定着性に優れたファイン紙となっている。合成紙ラベルは合成樹脂性のシートを用いて構成されるラベル用紙である。光沢紙ラベルはインクの吸収能、定着性、及び発色性に優れ、インクを吸収した後も光沢を有する光沢紙を用いたラベル用紙である。
The printing medium used in the printer 5 is a cut sheet or a continuous sheet cut into a predetermined size. These sheets are made of paper or synthetic resin, and may be subjected to surface processing. The continuous sheet is, for example, roll paper or fanfold paper. In the present embodiment, an example will be described in which the printer 5 uses label paper and roll paper in which a standard-sized label with a pressure-sensitive adhesive on the back surface is placed on a release paper (mounting paper) and wound in a roll shape.
There are a plurality of types of label paper and roll paper used in the printer 5. Examples include plain paper, fine paper, plain paper label, fine paper label, synthetic paper label, and glossy paper label. The plain paper and the plain paper label have a printing surface of plain paper, and the fine paper and the fine paper label are fine paper excellent in ink absorption and fixing ability. The synthetic paper label is a label paper configured using a synthetic resin sheet. A glossy paper label is a label paper using glossy paper that is excellent in ink absorbability, fixability, and color developability and has gloss even after absorbing ink.
プリンター5は、プリンター5の各部を制御するプリンター制御部27を備える。プリンター制御部27は、図示しない演算実行部としてのCPU、及び、ROM、RAM等を備える。プリンター制御部27のROMには、CPUによって実行可能なファームウェア、ファームウェアに係るデータ等が不揮発的に記憶される。また、RAMにはCPUが実行するファームウェアに係るデータ等が一時的に記憶される。プリンター制御部27は、その他の周辺回路等を備えていてもよい。
The printer 5 includes a
プリンター制御部27には、上述したラインインクジェットヘッド12の他、紙送りモーター36、プリンター表示部39、プリンター入力部40、通信インターフェース41、ブラックマークセンサー42、及び、プリンター記憶部50の各部が接続される。
プリンター表示部39は、プリンター制御部27の制御によりプリンター5の動作状態等を表示するLEDインジケーターや液晶表示パネルを備える。プリンター入力部40は、各種スイッチを備え、これらスイッチの操作に応じた信号をプリンター制御部27に出力する。通信インターフェース41は、ホストコンピューター1に接続される。ブラックマークセンサー42は、プリンター5の内部で印刷媒体(ラベル用紙及びロール紙)が搬送される搬送経路上に設けられ、印刷媒体に付された位置合わせ用のブラックマーク(図示略)を検出する光センサーである。通信インターフェース(I/F)41(インターフェイス)は、プリンター制御部27の制御の下、ホストコンピューター1との間で所定のプロトコルに準拠した通信を行う。
In addition to the
The
紙送りモーター36は、プリンター制御部27の制御に従って搬送ローラー(図示略)を回転させて、ラベル用紙14を搬送する。紙送りモーター36は、例えばステッピングモーターにより構成され、プリンター制御部27によって紙送りモーター36の回転量及び回転方向を制御できる。紙送りモーター36を、ラインインクジェットヘッド12とともに印刷部に含めることもできる。ブラックマークセンサー42は、ラベル用紙14の搬送中にブラックマークの検出を行い、検出値をプリンター制御部27に出力する。
The
プリンター制御部27は、機能を実行する実行部として、コマンド受信部27a、コマンド解析部27b、設定部27c、印刷制御部27d、及び画像処理部27eを備える。これらの実行部は、CPUがファームウェアを実行した場合に実現される機能に相当する。また、プリンター制御部27を構成するRAM(図示略)の記憶領域に、受信バッファー27f及びプリントバッファー27g(バッファーメモリー)が設けられる。受信バッファー27f及びプリントバッファー27gのいずれか、または両方を、プリンター記憶部50に設けることも、プリンター制御部27に外部接続されるRAMに設けることも可能である。
プリンター記憶部50は、EEPROMやフラッシュメモリー等の半導体記憶素子、或いは、ハードディスク等の記憶媒体を備え、各種データを書き換え可能に不揮発的に記憶する。プリンター記憶部50は、プリンター制御部27が実行するプログラム、プリンター制御部27が処理するフォントデータ等の各種データを記憶する。
The
The
コマンド受信部27aは、プリンター5から送信されたコマンド及びデータを、通信インターフェース41を介して受信し、受信バッファー27fに記憶させる。受信バッファー27fには、コマンド受信部27aの書き込み位置を示す書き込みポインターが設けられる。コマンド受信部27aは、書き込みポインターを移動させて、受信したコマンド及びデータを受信バッファー27fに書き込む。これにより、コマンド受信部27aが受信したコマンド及びデータが受信順に蓄積される。
コマンド解析部27bは、受信バッファー27fで、アドレスに従って読み出しポインターを移動させ、受信バッファー27fに蓄積されたデータを順に読み出し、解析して、コマンドを検出する。受信バッファー27fにはコマンド及びデータが受信順に蓄積されるので、これらのコマンド及びデータは受信順に、コマンド解析部27bにより解析される。コマンド解析部27bは、検出したコマンドを実行してデータを処理する実行部を特定する。例えば、コマンド解析部27bは、解析したコマンドが、設定部27cにより実行すべきコマンドである場合、設定部27cにコマンドを渡す。また、例えば、コマンド解析部27bは、後述する解像度を設定するコマンドを設定部27cに渡して、設定部27cに実行させる。コマンド解析部27bは、検出したコマンドが印刷制御部27dにより実行すべきコマンドである場合、印刷制御部27dにコマンドとデータを渡す。コマンド解析部27bは、検出したコマンドが、画像処理部27eにより実行すべきコマンドである場合、画像処理部27eにコマンド及びデータを渡す。設定部27c、印刷制御部27d、及び画像処理部27eはコマンド実行部に相当する。
The
The
設定部27cは、コマンド解析部27bから入力されるコマンドに従って、プリンター5の印刷動作に係る設定を実行する。設定部27cは、プリンター記憶部50に記憶された設定データ50aを、コマンドに従って更新する。また、設定部27cは、コマンドにより画像の登録が指示された場合には、指示された画像のデータを登録画像データ50bとしてプリンター記憶部50に記憶させる。印刷システム8では、予め画像データをプリンター5に登録することができる。画像が登録された後は、ホストコンピューター1が登録画像の印刷を指示すると、この画像データをその都度送受信することなく、登録画像データに用いて印刷できる。この機能に関し、設定部27cは、画像データをプリンター記憶部50に記憶させることができる。
印刷制御部27dは、コマンド解析部27bから渡されるコマンドを実行し、データを処理する。具体的には、印刷制御部27dは、印刷コマンドに従って印刷動作を実行し、印刷データに基づく文字や画像を印刷する。印刷動作において、印刷制御部27dは、紙送りモーター36を制御してラベル用紙14を搬送させるとともに、ラインインクジェットヘッド12を駆動してインクを吐出させる。
印刷制御部27dは、ホストコンピューター1から入力された印刷データを処理する際に画像処理部27eを呼び出す。画像処理部27eは、印刷データをプリントバッファー27gにラスターデータとして展開する。プリントバッファー27gは、ラインインクジェットヘッド12の印刷解像度、及び、プリンター5の印刷可能領域のサイズに合わせて形成された記憶領域である。
The
The
The
プリンター記憶部50(記憶部)は、EEPROMやフラッシュメモリー等の半導体記憶素子、或いは、ハードディスク等の記憶媒体を備え、各種データを書き換え可能に不揮発的に記憶する。プリンター記憶部50は、プリンター制御部27が実行するプログラム、プリンター制御部27が処理するフォントデータ等の各種データを記憶する。また、プリンター記憶部50の記憶領域には、プリンター5の印刷動作に関する各種の設定項目について、設定値を示す設定データ50aが記憶される。また、プリンター記憶部50には登録画像データ50bが記憶される。
The printer storage unit 50 (storage unit) includes a semiconductor storage element such as an EEPROM or a flash memory, or a storage medium such as a hard disk, and stores various data in a rewritable manner. The
ここで、印刷システム8で送受信されるコマンドについて説明する。
本実施形態の印刷システム8で使用されるコマンドは、<プレフィックス文字>、<コマンド識別子>、及び<パラメーター>で構成される。
プレフィックス文字は、例えば1文字のASCIIコードからなり、コマンドの分類を示す。印刷システム8では、フォーマットコマンドとコントロールコマンドの2種類のコマンドを使用できる。フォーマットコマンドは、プリンター5が印刷する印刷態様や印刷動作を指示するコマンドである。コントロールコマンドは、プリンター5の制御に関するコマンドである。ここでは、コントロールコマンドのプレフィックス文字を半角の「/」、コントロールコマンドのプレフィックス文字を半角の「*」とする。
Here, commands transmitted and received by the
A command used in the
The prefix character is composed of, for example, a single ASCII code, and indicates a command classification. The
コマンド識別子は、コマンドの種類を示し、例えば1〜3文字のASCIIコードで構成される。パラメーターは、コマンドの機能を制御する値であり、例えば1文字以上のASCIIコードで値を指定する。パラメーターはコマンドの種類に対応して、数値を用いる場合、文字を用いる場合、文字と数値の両方を用いる場合がある。また、数値パラメーターについては、コマンドの種類に対応付けて上限と下限が決まっている。パラメーターの値が上限を超える場合、コマンド解析部27bは、上限値が指定されたとみなし、パラメーターの値が下限より小さい場合は、下限値が指定されたとみなす。また、パラメーターが省略された場合、コマンド解析部27bはデフォルトのパラメーターが指定されたとみなす。
The command identifier indicates the type of command and is composed of, for example, 1 to 3 ASCII codes. The parameter is a value that controls the function of the command. For example, the value is specified by an ASCII code of one or more characters. The parameter corresponds to the type of command, and when using a numerical value, when using a character, both a character and a numerical value may be used. For numeric parameters, the upper and lower limits are determined according to the type of command. When the parameter value exceeds the upper limit, the
例えば、印刷システム8において補正パラメーターを指定するコマンドは、フォーマットコマンドとコントロールコマンドの両方で定義できる。ここで、バーコードを印刷する場合の補正パラメーターを指定するコマンドを例に挙げて、フォーマットコマンドを下記式(1)で示し、コントロールコマンドを下記式(2)で示す。
/FDCX(パラメーター) …(1)
*HDCX(パラメーター) …(2)
この例で、パラメーターは補正パラメーターを示す数値である。
このほかに、印刷システム8では、印刷を指示するコマンド、ラベルにおける印刷開始位置を指定するコマンド、画像データの登録を指示するコマンド等を使用できる。
For example, a command for specifying a correction parameter in the
/ FDCX (parameter) (1)
* HDX (parameter) (2)
In this example, the parameter is a numerical value indicating a correction parameter.
In addition, the
フォーマットコマンドは構文が定められており、先頭にラベルフォーマット開始の符号を有し、終端にラベルフォーマット終了を示す符号を有するコマンド群の形態で記述できる。このコマンド群は先頭の符号と終端の符号の間に、<プレフィックス文字>、<コマンド識別子>、及び<パラメーター>を含むコマンドを、複数配置できる。この構文に従い、複数のコマンドをホストコンピューター1からプリンター5に送信できる。
例えば、バーコードの印刷範囲(フィールド)の先頭位置を指定するコマンドと、バーコードを指定するコマンドと、印刷範囲の終端を指定するコマンドとが記述されると、プリンター5はコマンドを解析してバーコードを印刷する。さらに、上記先頭の符号と終端の符号の間に、バーコードの補正パラメーターを指定するコマンド「/FDCX(パラメーター)」を記述できる。この場合、設定部27cは、コマンドで指定された補正パラメーターに基づき設定データ50aを更新し、印刷制御部27dは、更新後の設定データ50aに基づきバーコードを印刷させる。
また、コマンド受信部27aは、フォーマットコマンドを受信した場合に、上記先頭の符号と終端の符号の間に記述されたコマンド群のコマンドを、記述順に受信して受信バッファー27fに記憶させる。このため、上記先頭の符号と終端の符号の間に記述されたコマンドは、コマンド解析部27bにより、コマンド群で記述された順に解析される。
なお、フォーマットコマンドの構文を用いて1つのコマンドのみをホストコンピューター1からプリンター5に送信して実行させることも、勿論可能である。
The format command has a defined syntax, and can be described in the form of a command group having a label format start code at the beginning and a code indicating the end of the label format at the end. In this command group, a plurality of commands including <prefix character>, <command identifier>, and <parameter> can be arranged between the first code and the last code. A plurality of commands can be transmitted from the host computer 1 to the printer 5 according to this syntax.
For example, when a command for specifying the start position of the barcode printing range (field), a command for specifying the barcode, and a command for specifying the end of the printing range are described, the printer 5 analyzes the command. Print the barcode. Furthermore, a command “/ FDXX (parameter)” for designating a barcode correction parameter can be described between the first code and the last code. In this case, the
Further, when receiving a format command, the
Of course, it is possible to send only one command from the host computer 1 to the printer 5 and execute it using the syntax of the format command.
一方、コントロールコマンドでは構文の定義がなく、コマンドが単独でホストコンピューター1からプリンター5に送信される。例えば、プリントモニター部45cが、補正パラメーターを指定するコマンドをコントロールコマンドとして送信する場合、ホストコンピューター1から「*HDCX(パラメーター)」が単独でプリンター5に送信される。この場合、コマンド受信部27aは1つのコマンドを受信バッファー27fに記憶させ、コマンド解析部27bは、「*HDCX(パラメーター)」コマンドを検出して、このコマンドを設定部27cに渡して設定させる。
このように、印刷システム8では、フォーマットコマンドを用いることで印刷を指示するコマンドとともに印刷に係る設定を行うことができる。また、コントロールコマンドによって、随時、設定を行うことができる。
On the other hand, there is no syntax definition in the control command, and the command is transmitted from the host computer 1 to the printer 5 alone. For example, when the
In this way, the
ところで、印刷システム8では、各コマンドの優先度を設定可能であり、優先度の高いコマンドはプリンター5によって他のコマンドより優先して実行される。具体的には、フォーマットコマンド(第1のコマンド)とコントロールコマンド(第2のコマンド)フォーマットコマンドの優先度が異なっており、プリンター5は、コントロールコマンドを、フォーマットコマンドよりも優先して実行する。従って、ホストコンピューター1が、コントロールコマンドとフォーマットコマンドとを続けてプリンター5に送信した場合、プリンター5は、優先度に従ってコマンドを順次実行する。このような優先度の違いは、例えばプリンター5の印刷動作に係る設定等を速やかに反映することができ、有用である。
By the way, in the
図5は、参考例としての印刷システム8の動作を示すフローチャートであり、(A)はホストコンピューター1の動作を示し、(B)はプリンター5の動作を示す。
参考例では、アプリケーション実行部45aで生成された文書の印刷がユーザーにより指示され、プリンタードライバー実行部45bが印刷コマンドを生成し、プリンタードライバー実行部45bのユーザーインターフェイスで画像の登録が指示された場合を示す。プリントモニター部45cは、プリンタードライバー実行部45bから印刷コマンドを取得し(ステップSA21)、続いて、画像登録コマンドを取得する(ステップSA22)。プリントモニター部45cは、プリンタードライバー実行部45bから取得した複数のコマンドを取得した順に配置し(ステップSA23)、配置順に、プリンター5に送信する(ステップSA24)。ここで、プリントモニター部45cは、印刷コマンドをフォーマットコマンドとしてプリンター5に送信し、次に、画像登録コマンドをコントロールコマンドとしてプリンター5に送信する。印刷コマンドは、例えば、印刷する文字のデータ、印刷するラベルの枚数等のデータ、登録画像データ50bのうち印刷する画像の名称を示すデータ等を伴う。また、画像登録コマンドは、画像の登録名称、画像データ等のデータを伴う。
FIG. 5 is a flowchart showing the operation of the
In the reference example, when the user instructs printing of the document generated by the
プリンター5は、ホストコンピューター1から送信されたコマンドをコマンド受信部27aにより受信して受信バッファー27fに記憶する(ステップSB21)。コマンド解析部27bは受信バッファー27fのコマンドを解析し、印刷コマンドを検出すると(ステップSB22)、印刷コマンドと印刷するデータとを印刷制御部27dに渡し、印刷制御部27dが印刷を開始する(ステップSB23)。
コマンド解析部27bは、印刷コマンドとデータを印刷制御部27dに渡した後で、印刷制御部27dが印刷を実行中であっても、受信バッファー27fの解析を行う。つまり、コマンド解析部27bは、印刷制御部27dにコマンドとデータを渡すことで解放され、次のコマンドを解析可能な状態になる。このため、印刷制御部27dが印刷動作中、または、印刷の準備のために画像処理部27eが画像をプリントバッファー27gに展開している間に、コマンド解析部27bが次のコマンドを検出することもある。
コマンド解析部27bは、受信バッファー27fで画像登録コマンドを検出すると(ステップSB24)、画像登録コマンドと登録する画像データとを設定部27cに渡す。ここで、設定部27cは画像データを登録画像データ50bとしてプリンター記憶部50に記憶させる処理を行う(ステップSB25)。
The printer 5 receives the command transmitted from the host computer 1 by the
The
When the
印刷制御部27dが画像処理部27eを呼び出す間、画像処理部27eが登録画像データ50bを取得する間、或いは、画像処理部27eが画像を展開している間であっても、設定部27cはステップSB25の処理を実行できる。このため、登録画像データ50bが新たにプリンター記憶部50に記憶される。また、画像登録コマンドで指定された登録名称が、既にプリンター記憶部50に記憶された登録画像データ50bと同じ名称である場合、プリンター記憶部50cは登録画像データ50bを上書きし、更新する。
この参考例では、印刷制御部27dの印刷動作中に登録画像データ50bが別の画像データに更新されることがあり得る。このため、印刷制御部27dが登録画像データ50bを使用してラベルを印刷する場合に、画像処理部27eが登録画像データ50bを取得する前に登録画像データ50bが変更され、ユーザーが意図しない画像が印刷される可能性がある。
Even when the
In this reference example, the registered
そこで、本実施形態では、ホストコンピューター1が備えるプリントモニター部45cにより、複数のコマンドを送信する場合に応答要求コマンドを利用して、プリンター5に適切な順序でコマンドを実行させる。
応答要求コマンドは、コントロールコマンドの形式で、例えば下記式(3)のように記述される。
*HF(パラメーター) …(3)
パラメーターは任意の数値及び文字であり、パラメーターの上限の桁数が定められている。
この応答要求コマンドをプリンター5に送信すると、コマンド解析部27bが応答要求コマンドを検出して、応答コマンドを生成し、ホストコンピューター1に送信する。このとき、コマンド解析部27bは、応答要求コマンドに含まれるパラメーターと同じパラメーターを含む応答コマンドを生成する。従って、プリントモニター部45cは、プリンター5から応答コマンドを受信した場合に、どの応答要求コマンドに対する応答であるかを、パラメーターにより識別できる。
Therefore, in this embodiment, the
The response request command is described in the form of a control command, for example, as in the following formula (3).
* HF (parameter) (3)
The parameter is an arbitrary numerical value and character, and the upper limit number of digits of the parameter is determined.
When this response request command is transmitted to the printer 5, the
図2は、ホストコンピューター1の動作を示すフローチャートであり、特に、プリントモニター部45cがコマンドを送信する場合の動作を示す。
プリントモニター部45cは、プリンタードライバー実行部45bからコマンドを取得した場合に(ステップS11)、プリンター5に複数のコマンドを送信するか否かを判定する(ステップS12)。例えば、予め設定された時間内にプリンタードライバー実行部45bから複数のコマンドを取得した場合、プリントモニター部45cはこれら複数のコマンドをまとめて送信する処理を行う。
プリンター5に1つのコマンドを送信する場合(ステップS12;No)、プリントモニター部45cは取得したコマンドをプリンター5に送信し(ステップS13)、本処理を終了する。
FIG. 2 is a flowchart showing the operation of the host computer 1, and particularly shows the operation when the
When the
When one command is transmitted to the printer 5 (step S12; No), the
複数のコマンドを送信する場合(ステップS12;Yes)、プリントモニター部45cは、送信する複数のコマンドの中に、優先度が異なるコマンドが混在しているか否かを判定する(ステップS14)。優先度の違いがない場合(ステップS14;No)、プリントモニター部45cは、取得した複数のコマンドをプリンター5に送信し(ステップS15)、本処理を終了する。ステップS15で、プリントモニター部45cは、複数のコントロールコマンドを順に送信してもよいし、複数のフォーマットコマンドをコマンド群として送信してもよい。
When transmitting a plurality of commands (step S12; Yes), the
また、送信する複数のコマンドの優先度に違いがある場合(ステップS14;Yes)、プリントモニター部45cは、コマンドを実行順に配列する(ステップS16)。コマンドの実行順とはプリンタードライバー実行部45bからコマンドを取得した順を指すが、コマンドの実行順序が別に指定された場合は、この指定に従う。
次に、プリントモニター部45cは、フォーマットコマンドとコントロールコマンドとの間に応答要求コマンドを挿入する(ステップS17)。すなわち、優先度の低いコマンドの次に優先度が高いコマンドが並ぶ場合に、応答要求コマンドを間に挿入する。プリントモニター部45cは、実行順に並んだコマンドのうち、先頭のコマンドから応答要求コマンドまでのコマンドを抽出し(ステップS18)、プリンター5に送信する(ステップS19)。ステップS19では、コントロールコマンドを順に送信してもよいし、複数のフォーマットコマンドをコマンド群として送信してもよいし、コントロールコマンドとフォーマットコマンドを順に送信してもよい。
If there is a difference in priority among the plurality of commands to be transmitted (step S14; Yes), the
Next, the
プリントモニター部45cは、ステップS19で送信した応答要求コマンドに対する応答がプリンター5から送信されるまで、待機する(ステップS20)。応答要求コマンドを受信した場合には、プリントモニター部45cは、応答コマンドのパラメーターに基づき、ステップS19で送信した応答要求コマンドに対応する応答コマンドか否かを判定してもよい。
The
ステップS19で送信した応答要求コマンドに対応する応答コマンドを受信した場合(ステップS20;Yes)、プリントモニター部45cは、ステップS18で抽出した残りのコマンドを抽出する(ステップS21)。プリントモニター部45cは抽出したコマンドをプリンター5に送信し(ステップS22)、本処理を終了する。
なお、プリントモニター部45cは、ステップS19で送信した応答要求コマンドに対する応答コマンドを受信した場合、この応答コマンドの受信に係るデータをプリンタードライバー実行部45bに出力しない。
上記のように、プリントモニター部45cは、プリンタードライバー実行部45bが生成したコマンドをプリンター5に送信した場合に、プリンター5から応答を受信すると、受信したコマンドをプリンタードライバー実行部45bに返す。しかしながら、応答要求コマンドはプリントモニター部45cが生成するコマンドであるから、この応答要求コマンドへの応答は、プリンタードライバー実行部45bに出力しない。従って、プリントモニター部45cが応答要求コマンドを生成する機能に関して、プリンタードライバー実行部45bに影響を与えない。このため、ホストコンピューター1が汎用的なプリンタードライバー実行部45bを実装している場合であっても、プリントモニター部45cに応答要求コマンドの生成機能を持たせて、本発明を実現できる。
When the response command corresponding to the response request command transmitted in step S19 is received (step S20; Yes), the
When the
As described above, when the
図3は、プリンター5の動作を示すフローチャートであり、特に、ホストコンピューター1からコマンドを受信した場合の動作を示す。
コマンド受信部27aは、ホストコンピューター1からコマンドやデータを受信する毎に受信バッファー27fに記憶させる。この動作は上述した通りである。
コマンド解析部27bは、受信バッファー27fの読み出しポインターを移動してコマンドを検出する(ステップS31)。コマンド解析部27bは、未処理のコマンドの有無を判定し(ステップS32)、受信バッファー27fに未処理のコマンドがない場合(ステップS32;No)、本処理を終了する。
FIG. 3 is a flowchart showing the operation of the printer 5, and particularly shows the operation when a command is received from the host computer 1.
The
The
受信バッファー27fで未処理のコマンドを検出した場合(ステップS32;Yes)、コマンド解析部27bは、検出したコマンドの種類と、コマンドを実行する実行部とを特定する(ステップS33)。コマンド解析部27bは、検出したコマンドが応答要求コマンドであるか否かを判定し(ステップS34)、応答要求コマンドであれば(ステップS34;Yes)、応答コマンドを生成してホストコンピューター1に送信する(ステップS35)。ステップS35で、コマンド解析部27bは、応答要求コマンドのパラメーターと同じパラメーターを、応答コマンドに設定する。
When an unprocessed command is detected in the
一方、受信バッファー27fで検出したコマンドが応答要求コマンドでない場合(ステップS34;No)、コントロールコマンドであるか否かを判定する(ステップS36)。
検出したコマンドが優先度の低いフォーマットコマンドである場合(ステップS36;No)、コマンド解析部27bは、ステップS33で特定した実行部にコマンドとデータを出力する(ステップS38)。コマンド解析部27bは、コマンドとデータを出力した実行部、すなわち、設定部27c、印刷制御部27dまたは画像処理部27eのいずれかに対し、コマンドの実行を指示し(ステップS38)、コマンドが実行される(ステップS39)。その後、コマンド解析部27bはステップS31に戻ってコマンドの検出を続ける。
On the other hand, when the command detected in the
When the detected command is a format command with low priority (step S36; No), the
また、検出したコマンドが、優先度の高いコントロールコマンドである場合(ステップS36;Yes)、コマンド解析部27bは、ステップS33で特定した実行部にコマンドとデータを出力する(ステップS40)。コマンド解析部27bは、コマンドとデータを出力した実行部に対し、他の実行部が実行するコマンドに優先して実行するよう指示する(ステップS41)。他の実行部が実行するコマンドに優先して実行する指示とは、他の実行部の実行完了を待たずに、コマンドの実行を開始する旨の指示である。これにより、コマンドが実行され(ステップS39)、コマンド解析部27bはステップS31に戻ってコマンドの検出を続ける。
If the detected command is a control command with a high priority (step S36; Yes), the
これら図2及び図3の動作をまとめたシーケンスを図4に示す。図4において(A)はホストコンピューター1の動作を示し、(B)はプリンター5の動作を示す。図4には、図5の参考例と同様の具体的な例を示す。この例では、アプリケーション実行部45aで生成された文書の印刷がユーザーにより指示され、プリンタードライバー実行部45bが印刷コマンドを生成し、プリンタードライバー実行部45bのユーザーインターフェイスで画像の登録が指示された場合を示す。
プリントモニター部45cは、プリンタードライバー実行部45bから印刷コマンドを取得し(ステップSA11)、続いて、画像登録コマンドを取得する(ステップSA12)。プリントモニター部45cは、プリンタードライバー実行部45bから取得した複数のコマンドを取得した順に配置する(ステップSA13)。
ここで、印刷コマンドがフォーマットコマンドであり、画像登録コマンドがコントロールコマンドである。このため、プリントモニター部45cは、印刷コマンドと画像登録コマンドとの間に応答要求コマンドを挿入する(ステップSA14)。
FIG. 4 shows a sequence in which the operations of FIGS. 2 and 3 are summarized. 4A shows the operation of the host computer 1, and FIG. 4B shows the operation of the printer 5. FIG. 4 shows a specific example similar to the reference example of FIG. In this example, when the user instructs printing of the document generated by the
The
Here, the print command is a format command, and the image registration command is a control command. For this reason, the
プリントモニター部45cは、プリンタードライバー実行部45bから取得した印刷コマンドと応答要求コマンドをプリンター5に送信し(ステップS15)、応答コマンドを受信するまで待機する(ステップSA16)。
The
一方、プリンター5のコマンド受信部27aは、ホストコンピューター1から送信されたコマンドをコマンド受信部27aにより受信して受信バッファー27fに記憶する(ステップSB11)。コマンド解析部27bは、受信バッファー27fから印刷コマンドを検出し(ステップSB12)、印刷コマンドとデータを印刷制御部27dに渡して印刷を開始させる(ステップSB13)。
コマンド解析部27bは、印刷コマンドとデータを印刷制御部27dに渡した後、受信バッファー27fから応答要求コマンドを検出する(ステップSB14)。コマンド解析部27bは応答コマンドを生成して、ホストコンピューター1に送信する(ステップSB15)。
On the other hand, the
The
プリントモニター部45cは、プリンター5から送信された応答コマンドを受信し(ステップSA16;Yes)、画像登録コマンドをプリンター5に送信する(ステップS17)。
コマンド受信部27aは、ホストコンピューター1から送信された画像登録コマンドを受信して受信バッファー27fに記憶する(ステップSB16)。
そして、コマンド解析部27bは受信バッファー27fから画像登録コマンドを検出して(ステップSB17)、検出した画像登録コマンドとデータを設定部27cに渡して、設定部27cが登録画像データ50bを記憶させる(ステップSB18)。このとき、印刷制御部27d及び画像処理部27eは印刷を開始しているため、登録画像データ50bは既に読み出されている。従って、設定部27cが登録画像データ50bを記憶させ、或いは更新しても、印刷制御部27dによる印刷結果に影響しない。
The
The
Then, the
以上説明したように、本実施形態に係る印刷システム8は、プリンター5に接続されるホストコンピューター1を備える。ホストコンピューター1は、プリンター5にコマンドを送信し、プリンター5から送信される応答を受信するプリントモニター部45cを備える。プリントモニター部45cは、プリンター5が実行するフォーマットコマンド(第1のコマンド)と、プリンター5がフォーマットコマンドより優先して実行するコントロールコマンド(第2のコマンド)を送信できる。フォーマットコマンドとコントロールコマンドとを含む複数のコマンドを送信する場合に、コントロールコマンドの前に応答要求コマンドを送信し、この応答要求コマンドに対する応答である応答コマンドを受信してから、コントロールコマンドを送信する。これにより、プリンター5がコマンドを送信順に実行するように、プリンター5におけるコマンドの実行順序を適切に制御できる。
As described above, the
また、ホストコンピューター1は、フォーマットコマンド及びコントロールコマンドを生成するプリンタードライバー実行部45bを備える。プリントモニター部45cは、プリンタードライバー実行部45bによりフォーマットコマンドとコントロールコマンドを含む複数のコマンドの送信が指示された場合に、コマンドの送信順序を決定し、応答要求コマンドを生成して配置する。このように、優先度の異なる複数のコマンドをプリンター5に送信する場合に、応答要求コマンドを生成することにより、容易に、プリンター5におけるコマンドの実行順序を制御できる。
また、ホストコンピューター1はアプリケーション実行部45aを備える。プリンタードライバー実行部45bは、アプリケーション実行部45aが出力するデータに基づきフォーマットコマンドである印刷コマンドを生成し、プリンター5の設定に係るコントロールコマンドを生成する。このため、プログラムを実行して生成されたデータをプリンター5に印刷させる場合に、コマンドによってプリンター5の設定を実行させることができ、設定と印刷動作の実行順序を適切に制御できる。
The host computer 1 also includes a printer
The host computer 1 includes an
また、プリントモニター部45cは、コマンドの実行後にプリンター5から送信される応答を受信した場合に、受信した応答に対応するデータをプリンタードライバー実行部45bに出力することもできる。また、プリントモニター部45cは、応答要求コマンドに対する応答コマンドを受信した場合は、プリンタードライバー実行部45bにコマンドを返さない。このため、応答要求コマンドを利用してプリンター5のコマンドの実行順序を制御し、この制御の影響を、プリンタードライバー実行部45bに与えないようにすることができる。このため、プリンター5のコマンドの実行順序を制御するプリントモニター部45cを、プリンタードライバー実行部45bとは独立して実装できる。
また、上記実施形態では、プリンター5のコマンド解析部27bが応答コマンドを生成して、ホストコンピューター1に送信する構成としたが、本発明はこれに限定されない。すなわち、プリンター5が送信する応答は、応答コマンドの形式に限定されず、例えば、コマンド形式の応答コマンドであってもよいし、ステータスの通知の形式であってもよいし、他の形式のデータであってもよく、これらを含んでもよい。従って、プリントモニター部45cは、応答コマンド、ステータス等の通知、その他の形式のデータの少なくともいずれかを、応答として受信できればよい。
Further, when the
In the above embodiment, the
なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、コントロールコマンドとフォーマットコマンドの優先度が異なる場合を例に挙げて説明したが、本発明はこれに限定されない。例えば、フォーマットコマンドであるかコントロールコマンドであるかに関わらず、コマンドに対応する機能に基づき、優先度が設定されていてもよい。例えば、プリンター5の機能の設定に関するコマンドについて、フォーマットコマンドであってもコントロールコマンドであっても、優先度を高く設定してもよい。また、コマンドのパラメーターに、コマンドの優先度を示すパラメーターを含めることが可能な構成としてもよい。この場合、コマンドの優先度をプリンタードライバー実行部45bが決定し、指定できる。
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 above-described embodiment, the case where the priority of the control command and the format command is different has been described as an example, but the present invention is not limited to this. For example, the priority may be set based on the function corresponding to the command regardless of whether it is a format command or a control command. For example, the command relating to the function setting of the printer 5 may be set to a high priority regardless of whether it is a format command or a control command. The command parameter may include a parameter indicating the priority of the command. In this case, the priority level of the command can be determined and specified by the printer
また、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、ホストコンピューター1、プリンター5の各機能を、これら装置に外部接続される別の装置に持たせるようにしてもよい。また、ホストコンピューター1、プリンター5は、外部接続される記憶媒体に記憶させたプログラムを実行することにより、各種動作を実行してもよい。また、プリンター5は、インクジェット式のプリンターに限定されず、ドットインパクト式、レーザー式、サーマル式等の各種の印刷装置、及び、この種の印刷ユニットを内蔵した複合機等にも本発明を適用可能である。 Each functional block shown in FIG. 1 can be arbitrarily realized by cooperation of hardware and software, and does not suggest a specific hardware configuration. Further, each function of the host computer 1 and the printer 5 may be provided in another device externally connected to these devices. Further, the host computer 1 and the printer 5 may execute various operations by executing a program stored in an externally connected storage medium. In addition, the printer 5 is not limited to an ink jet printer, and the present invention is also applied to various printing apparatuses such as a dot impact type, a laser type, a thermal type, and a multi-function machine incorporating this type of printing unit. Is possible.
1…ホストコンピューター(印刷制御装置)、5…プリンター(印刷装置)、8…印刷システム、12…ラインインクジェットヘッド、14…ラベル用紙、27…プリンター制御部、27a…コマンド受信部、27b…コマンド解析部、27c…設定部(コマンド実行部)、27d…印刷制御部(コマンド実行部)、27e…画像処理部(コマンド実行部)、27f…受信バッファー、27g…プリントバッファー、41…通信インターフェース、45…ホスト制御部、45a…アプリケーション実行部(プログラム実行部)、45b…プリンタードライバー実行部(コマンド生成部)、45c…プリントモニター部(送信部、受信部、送信制御部)、50…プリンター記憶部。
DESCRIPTION OF SYMBOLS 1 ... Host computer (printing control apparatus), 5 ... Printer (printing apparatus), 8 ... Printing system, 12 ... Line inkjet head, 14 ... Label paper, 27 ... Printer control part, 27a ... Command receiving part, 27b ...
Claims (6)
前記印刷装置にコマンドを送信する送信部と、
前記印刷装置から送信される応答を受信する受信部と、
前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記送信部により前記第2のコマンドを送信する前に応答要求コマンドを送信させ、この応答要求コマンドに対する応答を前記受信部が受信するまで待機し、前記受信部が前記応答を受信してから、前記送信部により前記第2のコマンドを送信させる制御部を備えること、
を特徴とする印刷制御装置。 A printing control device connected to the printing device,
A transmission unit for transmitting a command to the printing apparatus;
A receiving unit for receiving a response transmitted from the printing apparatus;
When transmitting the first command before Symbol printing apparatus executes a plurality of commands and a second command that the printing device is executed with priority than the first command, the by the transmitting unit first to transmit the response request command before sending the second command, a response to the response request command waits to receive said reception unit, from the reception unit receives the response, the second by the transmission unit A control unit for transmitting the command of 2 ;
A printing control apparatus characterized by the above.
前記第1のコマンド及び前記第2のコマンドの送信を指示するコマンド生成部と、
前記コマンド生成部により前記第1のコマンド及び前記第2のコマンドを含む前記複数のコマンドの送信が指示された場合に、前記コマンドの送信順序を決定し、前記応答要求コマンドを生成して前記第2のコマンドの前に配置する送信制御部と、
を備えることを特徴とする請求項1記載の印刷制御装置。 The controller is
A command generator for instructing transmission of the first command and the second command;
If the transmission of the plurality of commands including a first command and the second command is instructed by the command generating unit, determines the transmission order of the command, the generated the response request command first A transmission control unit arranged before the command of 2;
The print control apparatus according to claim 1, further comprising:
プログラムを実行するプログラム実行部を備え、
前記コマンド生成部は、前記プログラム実行部が出力するデータに基づき前記印刷装置に対して印刷を指示する前記第1のコマンドを生成し、前記印刷装置の設定に係る前記第2のコマンドを生成し、前記第1のコマンドの後に前記第2のコマンドを送信しようとする場合に前記応答要求コマンドを生成すること、
を特徴とする請求項2記載の印刷制御装置。 The controller is
A program execution unit for executing the program;
The command generating unit generates the first command for instructing printing to the printing device based on the data the program execution unit is output, and generates the second command according to a setting of the printing device Generating the response request command when attempting to send the second command after the first command ;
The print control apparatus according to claim 2.
前記応答要求コマンドに応答して前記印刷装置から送信される前記応答を、前記受信部により受信した場合は、前記データの前記コマンド生成部への出力を行わないこと、
を特徴とする請求項2または3記載の印刷制御装置。 The transmission control unit, a different response sent from the printing apparatus in response to the first command or the second command, when received by the reception unit, corresponding to the different responses received Output data to the command generator,
The response sent from the printing apparatus in response to the response request command, when received by the receiver, it does not output to the command generating unit of the data,
The print control apparatus according to claim 2, wherein the print control apparatus is a print control apparatus.
前記印刷制御装置は、
前記印刷装置にコマンドを送信する送信部と、
前記印刷装置から送信される応答を受信する受信部と、
前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記送信部により前記第2のコマンドを送信する前に応答要求コマンドを送信させ、この応答要求コマンドに対する応答を前記受信部が受信するまで待機し、前記受信部が前記応答を受信してから、前記送信部により前記第2のコマンドを送信させる制御部を備え、
前記印刷装置は、
前記印刷制御装置から送信される前記コマンドを受信するコマンド受信部と、
前記コマンド受信部により受信された前記コマンドを受信順に解析するコマンド解析部と、
前記コマンドを実行するコマンド実行部と、を備え、
前記コマンド解析部は前記コマンド受信部により受信された前記コマンドを解析して前記コマンド実行部に出力すると、前記コマンド実行部が前記コマンドを実行中に次のコマンドを解析可能であり、
前記コマンド解析部が前記応答要求コマンドを解析した場合には、前記コマンド実行部による前記応答要求コマンドに対する前記応答を前記印刷装置に送信する応答送信部を備えること、
を特徴とする印刷システム。 A printing system in which a printing device and a printing control device are connected to be communicable,
The print control device includes:
A transmission unit for transmitting a command to the printing apparatus;
A receiving unit for receiving a response transmitted from the printing apparatus;
When transmitting the first command before Symbol printing apparatus executes a plurality of commands and a second command that the printing device is executed with priority than the first command, the by the transmitting unit first to transmit the response request command before sending the second command, a response to the response request command waits to receive said reception unit, from the reception unit receives the response, the second by the transmission unit A control unit for transmitting the command of 2,
The printing apparatus includes:
A command receiving unit that receives the command transmitted from the print control apparatus,
A command analysis unit for analyzing the command received by the command receiving unit in the order received,
And a command execution unit for executing the command,
When the command analyzing unit outputs the command executing unit analyzes the command received by the command receiving unit, said command execution unit is capable analyzing the next command while executing the command,
When said command analysis unit has analyzed the response request command, it comprises a response transmission unit that transmits the response to the response request command by the command execution unit to the printing apparatus,
A printing system featuring.
前記印刷装置が実行する第1のコマンドと、前記印刷装置が前記第1のコマンドより優先して実行する第2のコマンドとを含む複数のコマンドを送信する場合に、前記第2のコマンドを送信する前に応答要求コマンドを送信し、この応答要求コマンドに対する前記応答を受信してから、前記第2のコマンドを送信すること、
を特徴とする印刷制御方法。 A printing control method for sending a command to a printing device to execute it and receiving a response sent from the printing device,
The second command is transmitted when a plurality of commands including a first command executed by the printing apparatus and a second command executed by the printing apparatus with priority over the first command are transmitted. it sends a response request command before, after receiving the response to the response request command, and transmits the second command,
A printing control method characterized by the above.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014057687A JP6264978B2 (en) | 2014-03-20 | 2014-03-20 | Printing control apparatus, printing system, and printing control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014057687A JP6264978B2 (en) | 2014-03-20 | 2014-03-20 | Printing control apparatus, printing system, and printing control method |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2015184697A JP2015184697A (en) | 2015-10-22 |
JP2015184697A5 JP2015184697A5 (en) | 2017-03-30 |
JP6264978B2 true JP6264978B2 (en) | 2018-01-24 |
Family
ID=54351217
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014057687A Expired - Fee Related JP6264978B2 (en) | 2014-03-20 | 2014-03-20 | Printing control apparatus, printing system, and printing control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6264978B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6808929B2 (en) * | 2015-11-09 | 2021-01-06 | セイコーエプソン株式会社 | Network system, printing device, and control method of printing device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000267830A (en) * | 1999-03-18 | 2000-09-29 | Seiko Epson Corp | Printer, information processor, their controlling method and information recording medium |
JP3812216B2 (en) * | 1999-04-12 | 2006-08-23 | セイコーエプソン株式会社 | Control method of printing apparatus |
JP4496594B2 (en) * | 1999-03-18 | 2010-07-07 | セイコーエプソン株式会社 | Control method of printing apparatus |
JP2011238090A (en) * | 2010-05-12 | 2011-11-24 | Seiko Epson Corp | Printing device and method for controlling the same |
-
2014
- 2014-03-20 JP JP2014057687A patent/JP6264978B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2015184697A (en) | 2015-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10752021B2 (en) | Print control device, printing device, and specifying print objects to determine an attribute for replacing the print objects with a different print object | |
JP6102604B2 (en) | Printing apparatus and printing apparatus control method | |
JP6241327B2 (en) | Printing apparatus, printing system, and printing apparatus control method | |
JP2011062835A (en) | Device and method for controlling the same, and program | |
JP6264978B2 (en) | Printing control apparatus, printing system, and printing control method | |
US20230166535A1 (en) | Non-transitory computer-readable medium and control method | |
JP6651902B2 (en) | Printing system, driver program, and printer | |
KR102051276B1 (en) | Printing control device, printing system, and printing control method | |
JP6372170B2 (en) | Printer control apparatus, print system, control method, and control program | |
US10417536B2 (en) | Printer with a diversified printed output and control method of a printer | |
US9582231B2 (en) | Printer control device, printing system, and control method that deletes unnecessary data due to interruption | |
JP6387752B2 (en) | Printer control device, printer control program | |
JP2015168201A (en) | Printing equipment, image processing apparatus, printing system, and control method for printing equipment | |
JP2016055595A (en) | Printer and control method of the same | |
JP6390652B2 (en) | Printing device | |
JP2016181103A (en) | Printing control device, printing system, and printing control method | |
US20230315350A1 (en) | Printing apparatus, printing method, and printing control program | |
JP2023080476A (en) | program | |
JP6265053B2 (en) | Printing control apparatus, printing system, and printing control method | |
JP6368991B2 (en) | Printing apparatus, printing control apparatus, and printing apparatus control method | |
JP2014056583A (en) | Recording apparatus, control method of recording apparatus and program | |
JP2022044443A (en) | Printer and control method | |
JP2020100054A (en) | Printer and control method of printer | |
KR101576306B1 (en) | Recording device and control method for a recording device | |
JP2017087732A (en) | Printing device, control method of printing device, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20160617 |
|
RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20160628 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170221 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170221 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20171116 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20171128 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20171211 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6264978 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |