JP6264978B2 - Printing control apparatus, printing system, and printing control method - Google Patents

Printing control apparatus, printing system, and printing control method Download PDF

Info

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
Application number
JP2014057687A
Other languages
Japanese (ja)
Other versions
JP2015184697A5 (en
JP2015184697A (en
Inventor
友晴 貴福
友晴 貴福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2014057687A priority Critical patent/JP6264978B2/en
Publication of JP2015184697A publication Critical patent/JP2015184697A/en
Publication of JP2015184697A5 publication Critical patent/JP2015184697A5/ja
Application granted granted Critical
Publication of JP6264978B2 publication Critical patent/JP6264978B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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).

特開2013−201566号公報JP 2013-201566 A

上記従来のシステムのように、優先度の高いコマンドと、優先度の低いコマンドとを送信する場合、制御側の装置がコマンドの送信順序を細かく制御する必要があった。このため、制御側の装置の動作が複雑になっていた。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置を制御する装置が印刷装置をコマンドで制御する場合に、印刷装置におけるコマンドの実行順序を制御できるようにすることを目的とする。
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 is a functional block diagram of a printing system according to an embodiment. ホストコンピューターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a host computer. プリンターの動作を示すフローチャートである。3 is a flowchart illustrating an operation of a printer. 実施形態における印刷システムの動作を示すフローチャートである。6 is a flowchart illustrating an operation of the printing system according to the embodiment. 参考例における印刷システムの動作を示すフローチャートである。6 is a flowchart illustrating an operation of a printing system according to a reference example.

以下、図面を参照して本発明の実施形態について説明する。
図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 printing system 8 according to the first embodiment.
The printing system 8 is configured by connecting a printer 5 (printing apparatus) and a host computer 1 (printing control apparatus) that controls the printer 5.
The printing system 8 is a system in which the host computer 1 outputs a print command and print data to the printer 5 by an operator's operation, and the printer 5 prints on a print medium based on the print command and print data.

ホストコンピューター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 host control unit 45 that controls each unit of the host computer 1. The host control unit 45 includes an application execution unit 45a, a printer driver execution unit 45b, and a print monitor unit 45c.
The application execution unit 45a (program execution unit) executes an application program such as a document creation program, an image editing program, a POS application, or a label creation program. The application execution unit 45a generates and outputs print data for printing the created document or image when printing execution is instructed by an operator's operation. The printer driver execution unit 45 b executes a device driver program for controlling the printer 5. The printer driver execution unit 45b (command generation unit) controls the operation of the printer 5 by generating and outputting a command for controlling the printer 5 and data related to the command. For example, the printer driver execution unit 45b generates a print command and print data for instructing the printer 5 to print based on the print data output from the application execution unit 45a. The device driver program executed by the printer driver execution unit 45b is not limited to a program optimized for the printer 5, but may be a general-purpose device driver program. Further, it may be a device driver program for other types of printers. In this case, the printer 5 may be configured to be able to process commands and data output from the printer driver execution unit 45b corresponding to printers of other models.

また、プリンタードライバー実行部45bは、ホスト入力部47の操作に応じて、設定用のユーザーインターフェイスをホスト表示部46に表示する機能を有する。このユーザーインターフェイスでは、例えば、プリンター5における画像の登録、印刷速度や印刷解像度を含む印刷機能に係る設定などを行うことができる。プリンタードライバー実行部45bは、ユーザーインターフェイスで入力された内容に従って、プリンター5の機能を設定する設定コマンドを生成する。   Further, the printer driver execution unit 45 b has a function of displaying a setting user interface on the host display unit 46 in response to an operation of the host input unit 47. In this user interface, for example, registration of an image in the printer 5 and settings relating to a printing function including a printing speed and a printing resolution can be performed. The printer driver execution unit 45b generates a setting command for setting the function of the printer 5 according to the content input through the user interface.

プリントモニター部45c(送信部、受信部、送信制御部)は、プリンター5をモニターするモニタープログラムを実行する。プリントモニター部45cは、プリンター5の動作状態を検出し、プリンタードライバー実行部45bが生成するコマンドの送信制御、及び、プリンター5に送信したコマンドの応答を監視する制御を行う。   The print monitor unit 45c (transmission unit, reception unit, transmission control unit) executes a monitor program for monitoring the printer 5. The print monitor unit 45 c detects the operation state of the printer 5, and performs transmission control of a command generated by the printer driver execution unit 45 b and control of monitoring a response of the command transmitted to the printer 5.

具体的には、プリントモニター部45cはプリンタードライバー実行部45bが出力するコマンドを順次取得して、プリンター5に送信する。また、プリントモニター部45cは、複数のコマンドをプリンター5に送信する場合、所定の順序でプリンター5にコマンドを実行させるために、コマンドの送信順序や送信タイミングを調整する。この場合、プリントモニター部45cは、例えばプリンター5にコマンドを送信し、このコマンドに対する応答を受信してから、次のコマンドを送信する等の制御を行う。
また、プリントモニター部45cは、アプリケーション実行部45aがコマンドを出力した場合には、このコマンドを取得して、プリンタードライバー実行部45bが出力するコマンドと同様に、送信制御を行う。
さらに、プリントモニター部45cは、プリンタードライバー実行部45bが生成したコマンドをプリンター5に送信し、プリンター5から応答を受信した場合、受信したコマンドを、もとのコマンドの生成元に返す。このため、プリンタードライバー実行部45bは、生成したコマンドに対する応答を取得できる。また、プリンタードライバー実行部45bは、アプリケーション実行部45aの指示により生成したコマンドの応答をプリントモニター部45cから受けた場合に、アプリケーション実行部45aに応答を返すことができる。この場合、アプリケーション実行部45aは、プリンタードライバー実行部45bに出力した指示の結果を取得できる。
Specifically, the print monitor unit 45 c sequentially acquires commands output from the printer driver execution unit 45 b and transmits them to the printer 5. When transmitting a plurality of commands to the printer 5, the print monitor unit 45 c adjusts the command transmission order and transmission timing in order to cause the printer 5 to execute the commands in a predetermined order. In this case, the print monitor unit 45c performs control such as transmitting a command to the printer 5 and receiving a response to the command and then transmitting the next command, for example.
When the application execution unit 45a outputs a command, the print monitor unit 45c acquires this command and performs transmission control in the same manner as the command output by the printer driver execution unit 45b.
Furthermore, when the print monitor unit 45c transmits the command generated by the printer driver execution unit 45b to the printer 5 and receives a response from the printer 5, the print monitor unit 45c returns the received command to the generation source of the original command. Therefore, the printer driver execution unit 45b can acquire a response to the generated command. Further, the printer driver execution unit 45b can return a response to the application execution unit 45a when receiving a response of the command generated by the instruction of the application execution unit 45a from the print monitor unit 45c. In this case, the application execution unit 45a can acquire the result of the instruction output to the printer driver execution unit 45b.

ところで、プリンタードライバー実行部45bは、複数のコマンドを生成してプリントモニター部45cに出力することがある。例えば、アプリケーション実行部45aの指示に基づき印刷コマンドを生成するとともに、ユーザーインターフェイスの操作に応じてプリンター5の設定に関するコマンドを生成することがある。このように、プリンタードライバー実行部45bが複数のコマンドを生成した場合、プリントモニター部45cは、これら複数のコマンドを一括してプリンター5に送信することができ、コマンドを個別に送信することもできる。この場合、プリントモニター部45cは、プリンター5が複数のコマンドを適切な順序で実行するように、コマンドの送信制御を行う。この送信制御の内容については後述する。
プリントモニター部45cは、一般に、LM(Language Monitor)やポートモニターと呼ばれるプログラムモジュールを実行し、上記の制御を行う。プリントモニター部45cは、ホストコンピューター1のオペレーティングシステムまたはプリンタードライバー実行部45bの一部を構成するモジュールであってもよい。
Incidentally, the printer driver execution unit 45b may generate a plurality of commands and output them to the print monitor unit 45c. For example, a print command may be generated based on an instruction from the application execution unit 45a, and a command related to setting of the printer 5 may be generated in accordance with an operation of a user interface. As described above, when the printer driver execution unit 45b generates a plurality of commands, the print monitor unit 45c can collectively transmit the plurality of commands to the printer 5, and can also transmit the commands individually. . In this case, the print monitor unit 45c performs command transmission control so that the printer 5 executes a plurality of commands in an appropriate order. The contents of this transmission control will be described later.
The print monitor unit 45c generally executes a program module called an LM (Language Monitor) or a port monitor to perform the above control. The print monitor unit 45c may be a module constituting a part of the operating system of the host computer 1 or the printer driver execution unit 45b.

ホストコンピューター1は、各種情報を表示するホスト表示部46、接続された入力デバイスに対する操作を検出するホスト入力部47、各種データを記憶するホスト記憶部48、及びプリンター5に接続される通信インターフェース(I/F)49を備える。ホスト表示部46及びホスト入力部47はオペレーターの操作に供される。ホスト記憶部48は、ホスト制御部45が実行する制御プログラム、アプリケーションプログラム、デバイスドライバープログラム等の各種のプログラム、及び、これらのプログラムに関するデータ等を不揮発的に記憶する。   The host computer 1 includes a host display unit 46 that displays various information, a host input unit 47 that detects an operation on a connected input device, a host storage unit 48 that stores various data, and a communication interface ( I / F) 49. The host display unit 46 and the host input unit 47 are provided for operator operation. The host storage unit 48 stores various programs such as control programs, application programs, and device driver programs executed by the host control unit 45, and data related to these programs in a nonvolatile manner.

本実施形態のプリンター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 line inkjet head 12 is a line head in which nozzles are arranged in rows over the entire printing range in a direction orthogonal to the transport direction. The line inkjet head 12 has nozzle rows for each of four colors of cyan (C), magenta (M), yellow (Y), and black (K), and can print on a print medium in full color. . Further, the line inkjet head 12 may be configured to use more multi-colored inks, or may be configured to use two-color or monochrome inks.

プリンター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 printer control unit 27 that controls each unit of the printer 5. The printer control unit 27 includes a CPU as a calculation execution unit (not shown), a ROM, a RAM, and the like. In the ROM of the printer control unit 27, firmware that can be executed by the CPU, data related to the firmware, and the like are stored in a nonvolatile manner. The RAM temporarily stores data related to firmware executed by the CPU. The printer control unit 27 may include other peripheral circuits.

プリンター制御部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 line inkjet head 12 described above, the printer control unit 27 is connected to the paper feed motor 36, the printer display unit 39, the printer input unit 40, the communication interface 41, the black mark sensor 42, and the printer storage unit 50. Is done.
The printer display unit 39 includes an LED indicator and a liquid crystal display panel that display the operation state of the printer 5 under the control of the printer control unit 27. The printer input unit 40 includes various switches, and outputs a signal corresponding to the operation of these switches to the printer control unit 27. The communication interface 41 is connected to the host computer 1. The black mark sensor 42 is provided on a transport path through which the print medium (label paper and roll paper) is transported inside the printer 5 and detects an alignment black mark (not shown) attached to the print medium. It is a light sensor. A communication interface (I / F) 41 (interface) performs communication based on a predetermined protocol with the host computer 1 under the control of the printer control unit 27.

紙送りモーター36は、プリンター制御部27の制御に従って搬送ローラー(図示略)を回転させて、ラベル用紙14を搬送する。紙送りモーター36は、例えばステッピングモーターにより構成され、プリンター制御部27によって紙送りモーター36の回転量及び回転方向を制御できる。紙送りモーター36を、ラインインクジェットヘッド12とともに印刷部に含めることもできる。ブラックマークセンサー42は、ラベル用紙14の搬送中にブラックマークの検出を行い、検出値をプリンター制御部27に出力する。   The paper feed motor 36 rotates the transport roller (not shown) under the control of the printer control unit 27 to transport the label paper 14. The paper feed motor 36 is configured by, for example, a stepping motor, and the printer control unit 27 can control the rotation amount and the rotation direction of the paper feed motor 36. A paper feed motor 36 may be included in the printing unit along with the line inkjet head 12. The black mark sensor 42 detects a black mark during conveyance of the label paper 14 and outputs a detection value to the printer control unit 27.

プリンター制御部27は、機能を実行する実行部として、コマンド受信部27a、コマンド解析部27b、設定部27c、印刷制御部27d、及び画像処理部27eを備える。これらの実行部は、CPUがファームウェアを実行した場合に実現される機能に相当する。また、プリンター制御部27を構成するRAM(図示略)の記憶領域に、受信バッファー27f及びプリントバッファー27g(バッファーメモリー)が設けられる。受信バッファー27f及びプリントバッファー27gのいずれか、または両方を、プリンター記憶部50に設けることも、プリンター制御部27に外部接続されるRAMに設けることも可能である。
プリンター記憶部50は、EEPROMやフラッシュメモリー等の半導体記憶素子、或いは、ハードディスク等の記憶媒体を備え、各種データを書き換え可能に不揮発的に記憶する。プリンター記憶部50は、プリンター制御部27が実行するプログラム、プリンター制御部27が処理するフォントデータ等の各種データを記憶する。
The printer control unit 27 includes a command reception unit 27a, a command analysis unit 27b, a setting unit 27c, a print control unit 27d, and an image processing unit 27e as execution units that execute functions. These execution units correspond to functions realized when the CPU executes firmware. A reception buffer 27f and a print buffer 27g (buffer memory) are provided in a storage area of a RAM (not shown) constituting the printer control unit 27. Either or both of the reception buffer 27f and the print buffer 27g can be provided in the printer storage unit 50 or in a RAM externally connected to the printer control unit 27.
The printer storage unit 50 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 printer storage unit 50 stores various data such as a program executed by the printer control unit 27 and font data processed by the printer control unit 27.

コマンド受信部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 command receiving unit 27a receives commands and data transmitted from the printer 5 via the communication interface 41 and stores them in the reception buffer 27f. The reception buffer 27f is provided with a write pointer indicating the write position of the command reception unit 27a. The command receiving unit 27a moves the write pointer and writes the received command and data to the reception buffer 27f. As a result, the commands and data received by the command receiving unit 27a are accumulated in the order of reception.
The command analysis unit 27b moves the read pointer according to the address in the reception buffer 27f, sequentially reads and analyzes the data stored in the reception buffer 27f, and detects a command. Since commands and data are stored in the reception buffer 27f in the order of reception, these commands and data are analyzed by the command analysis unit 27b in the order of reception. The command analysis unit 27b identifies an execution unit that executes the detected command and processes data. For example, if the analyzed command is a command to be executed by the setting unit 27c, the command analysis unit 27b passes the command to the setting unit 27c. Further, for example, the command analysis unit 27b passes a command for setting a resolution to be described later to the setting unit 27c and causes the setting unit 27c to execute the command. When the detected command is a command to be executed by the print control unit 27d, the command analysis unit 27b passes the command and data to the print control unit 27d. When the detected command is a command to be executed by the image processing unit 27e, the command analysis unit 27b passes the command and data to the image processing unit 27e. The setting unit 27c, the print control unit 27d, and the image processing unit 27e correspond to a command execution unit.

設定部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 setting unit 27c executes setting related to the printing operation of the printer 5 in accordance with the command input from the command analysis unit 27b. The setting unit 27c updates the setting data 50a stored in the printer storage unit 50 according to the command. In addition, when an image registration is instructed by a command, the setting unit 27c stores the instructed image data in the printer storage unit 50 as registered image data 50b. In the printing system 8, image data can be registered in the printer 5 in advance. After the image is registered, when the host computer 1 instructs printing of the registered image, the image data can be printed using the registered image data without transmitting / receiving each time. With regard to this function, the setting unit 27 c can store image data in the printer storage unit 50.
The print control unit 27d executes the command passed from the command analysis unit 27b and processes the data. Specifically, the print control unit 27d executes a print operation according to the print command, and prints characters and images based on the print data. In the printing operation, the print control unit 27d controls the paper feed motor 36 to convey the label paper 14, and drives the line inkjet head 12 to eject ink.
The print control unit 27d calls the image processing unit 27e when processing the print data input from the host computer 1. The image processing unit 27e develops the print data as raster data in the print buffer 27g. The print buffer 27g is a storage area formed in accordance with the print resolution of the line inkjet head 12 and the size of the printable area of the printer 5.

プリンター記憶部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 printer storage unit 50 stores various data such as a program executed by the printer control unit 27 and font data processed by the printer control unit 27. The storage area of the printer storage unit 50 stores setting data 50a indicating setting values for various setting items related to the printing operation of the printer 5. The printer storage unit 50 stores registered image data 50b.

ここで、印刷システム8で送受信されるコマンドについて説明する。
本実施形態の印刷システム8で使用されるコマンドは、<プレフィックス文字>、<コマンド識別子>、及び<パラメーター>で構成される。
プレフィックス文字は、例えば1文字のASCIIコードからなり、コマンドの分類を示す。印刷システム8では、フォーマットコマンドとコントロールコマンドの2種類のコマンドを使用できる。フォーマットコマンドは、プリンター5が印刷する印刷態様や印刷動作を指示するコマンドである。コントロールコマンドは、プリンター5の制御に関するコマンドである。ここでは、コントロールコマンドのプレフィックス文字を半角の「/」、コントロールコマンドのプレフィックス文字を半角の「*」とする。
Here, commands transmitted and received by the printing system 8 will be described.
A command used in the printing system 8 of the present embodiment includes <prefix character>, <command identifier>, and <parameter>.
The prefix character is composed of, for example, a single ASCII code, and indicates a command classification. The printing system 8 can use two types of commands: a format command and a control command. The format command is a command for instructing the printing mode and printing operation that the printer 5 prints. The control command is a command related to control of the printer 5. Here, the prefix character of the control command is “/” and the prefix character of the control command is “*”.

コマンド識別子は、コマンドの種類を示し、例えば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 command analysis unit 27b considers that the upper limit value has been designated, and when the parameter value is smaller than the lower limit, the command analysis unit 27b assumes that the lower limit value has been designated. If a parameter is omitted, the command analysis unit 27b assumes that a default parameter has been specified.

例えば、印刷システム8において補正パラメーターを指定するコマンドは、フォーマットコマンドとコントロールコマンドの両方で定義できる。ここで、バーコードを印刷する場合の補正パラメーターを指定するコマンドを例に挙げて、フォーマットコマンドを下記式(1)で示し、コントロールコマンドを下記式(2)で示す。
/FDCX(パラメーター) …(1)
*HDCX(パラメーター) …(2)
この例で、パラメーターは補正パラメーターを示す数値である。
このほかに、印刷システム8では、印刷を指示するコマンド、ラベルにおける印刷開始位置を指定するコマンド、画像データの登録を指示するコマンド等を使用できる。
For example, a command for specifying a correction parameter in the printing system 8 can be defined by both a format command and a control command. Here, taking a command for specifying a correction parameter when printing a barcode as an example, a format command is represented by the following formula (1), and a control command is represented by the following formula (2).
/ FDCX (parameter) (1)
* HDX (parameter) (2)
In this example, the parameter is a numerical value indicating a correction parameter.
In addition, the printing system 8 can use a command for instructing printing, a command for designating a printing start position on a label, a command for instructing registration of image data, and the like.

フォーマットコマンドは構文が定められており、先頭にラベルフォーマット開始の符号を有し、終端にラベルフォーマット終了を示す符号を有するコマンド群の形態で記述できる。このコマンド群は先頭の符号と終端の符号の間に、<プレフィックス文字>、<コマンド識別子>、及び<パラメーター>を含むコマンドを、複数配置できる。この構文に従い、複数のコマンドをホストコンピューター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 setting unit 27c updates the setting data 50a based on the correction parameter specified by the command, and the print control unit 27d causes the barcode to be printed based on the updated setting data 50a.
Further, when receiving a format command, the command receiving unit 27a receives commands in a command group described between the first code and the last code in the order of description and stores them in the reception buffer 27f. Therefore, the commands described between the first code and the last code are analyzed in the order described in the command group by the command analysis unit 27b.
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 print monitor unit 45 c transmits a command specifying a correction parameter as a control command, “* HDX (parameter)” is transmitted from the host computer 1 to the printer 5 alone. In this case, the command receiving unit 27a stores one command in the receiving buffer 27f, and the command analyzing unit 27b detects the “* HDX (parameter)” command and passes this command to the setting unit 27c for setting.
In this way, the printing system 8 can make settings related to printing together with a command for instructing printing by using a format command. In addition, settings can be made at any time by a control command.

ところで、印刷システム8では、各コマンドの優先度を設定可能であり、優先度の高いコマンドはプリンター5によって他のコマンドより優先して実行される。具体的には、フォーマットコマンド(第1のコマンド)とコントロールコマンド(第2のコマンド)フォーマットコマンドの優先度が異なっており、プリンター5は、コントロールコマンドを、フォーマットコマンドよりも優先して実行する。従って、ホストコンピューター1が、コントロールコマンドとフォーマットコマンドとを続けてプリンター5に送信した場合、プリンター5は、優先度に従ってコマンドを順次実行する。このような優先度の違いは、例えばプリンター5の印刷動作に係る設定等を速やかに反映することができ、有用である。   By the way, in the printing system 8, the priority of each command can be set, and a command having a higher priority is executed by the printer 5 with priority over other commands. Specifically, the priority of the format command (first command) and the control command (second command) format command is different, and the printer 5 executes the control command with priority over the format command. Therefore, when the host computer 1 continuously transmits a control command and a format command to the printer 5, the printer 5 sequentially executes the commands according to the priority. Such a difference in priority is useful because it can quickly reflect, for example, settings related to the printing operation of the printer 5.

図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 printing system 8 as a reference example, where (A) shows the operation of the host computer 1 and (B) shows the operation of the printer 5.
In the reference example, when the user instructs printing of the document generated by the application execution unit 45a, the printer driver execution unit 45b generates a print command, and the user interface of the printer driver execution unit 45b instructs image registration Indicates. The print monitor unit 45c acquires a print command from the printer driver execution unit 45b (step SA21), and then acquires an image registration command (step SA22). The print monitor unit 45c arranges the plurality of commands acquired from the printer driver execution unit 45b in the order of acquisition (step SA23), and transmits them to the printer 5 in the arrangement order (step SA24). Here, the print monitor unit 45c transmits a print command to the printer 5 as a format command, and then transmits an image registration command to the printer 5 as a control command. The print command includes, for example, character data to be printed, data such as the number of labels to be printed, data indicating the name of an image to be printed among the registered image data 50b, and the like. The image registration command is accompanied by data such as an image registration name and image data.

プリンター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 command reception unit 27a and stores it in the reception buffer 27f (step SB21). When the command analysis unit 27b analyzes the command in the reception buffer 27f and detects a print command (step SB22), it passes the print command and data to be printed to the print control unit 27d, and the print control unit 27d starts printing (step). SB23).
The command analysis unit 27b analyzes the reception buffer 27f even after the print control unit 27d is executing printing after passing the print command and data to the print control unit 27d. That is, the command analysis unit 27b is released by passing the command and data to the print control unit 27d, and is ready to analyze the next command. For this reason, the command analysis unit 27b detects the next command while the print control unit 27d is performing a printing operation or while the image processing unit 27e develops an image in the print buffer 27g in preparation for printing. There is also.
When the command analysis unit 27b detects an image registration command in the reception buffer 27f (step SB24), it passes the image registration command and the image data to be registered to the setting unit 27c. Here, the setting unit 27c performs processing for storing the image data in the printer storage unit 50 as the registered image data 50b (step SB25).

印刷制御部27dが画像処理部27eを呼び出す間、画像処理部27eが登録画像データ50bを取得する間、或いは、画像処理部27eが画像を展開している間であっても、設定部27cはステップSB25の処理を実行できる。このため、登録画像データ50bが新たにプリンター記憶部50に記憶される。また、画像登録コマンドで指定された登録名称が、既にプリンター記憶部50に記憶された登録画像データ50bと同じ名称である場合、プリンター記憶部50cは登録画像データ50bを上書きし、更新する。
この参考例では、印刷制御部27dの印刷動作中に登録画像データ50bが別の画像データに更新されることがあり得る。このため、印刷制御部27dが登録画像データ50bを使用してラベルを印刷する場合に、画像処理部27eが登録画像データ50bを取得する前に登録画像データ50bが変更され、ユーザーが意図しない画像が印刷される可能性がある。
Even when the print control unit 27d calls the image processing unit 27e, the image processing unit 27e acquires the registered image data 50b, or the image processing unit 27e develops an image, the setting unit 27c The process of step SB25 can be executed. Therefore, the registered image data 50b is newly stored in the printer storage unit 50. If the registered name specified by the image registration command is the same name as the registered image data 50b already stored in the printer storage unit 50, the printer storage unit 50c overwrites and updates the registered image data 50b.
In this reference example, the registered image data 50b may be updated to another image data during the printing operation of the print control unit 27d. Therefore, when the print control unit 27d prints a label using the registered image data 50b, the registered image data 50b is changed before the image processing unit 27e acquires the registered image data 50b, and an image that is not intended by the user. May be printed.

そこで、本実施形態では、ホストコンピューター1が備えるプリントモニター部45cにより、複数のコマンドを送信する場合に応答要求コマンドを利用して、プリンター5に適切な順序でコマンドを実行させる。
応答要求コマンドは、コントロールコマンドの形式で、例えば下記式(3)のように記述される。
*HF(パラメーター) …(3)
パラメーターは任意の数値及び文字であり、パラメーターの上限の桁数が定められている。
この応答要求コマンドをプリンター5に送信すると、コマンド解析部27bが応答要求コマンドを検出して、応答コマンドを生成し、ホストコンピューター1に送信する。このとき、コマンド解析部27bは、応答要求コマンドに含まれるパラメーターと同じパラメーターを含む応答コマンドを生成する。従って、プリントモニター部45cは、プリンター5から応答コマンドを受信した場合に、どの応答要求コマンドに対する応答であるかを、パラメーターにより識別できる。
Therefore, in this embodiment, the print monitor unit 45c included in the host computer 1 causes the printer 5 to execute commands in an appropriate order by using response request commands when transmitting a plurality of commands.
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 command analysis unit 27 b detects the response request command, generates a response command, and transmits it to the host computer 1. At this time, the command analysis unit 27b generates a response command including the same parameters as the parameters included in the response request command. Therefore, when the print monitor unit 45c receives a response command from the printer 5, the print monitor unit 45c can identify which response request command is the response to the parameter.

図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 print monitor unit 45c transmits a command.
When the print monitor unit 45c acquires a command from the printer driver execution unit 45b (step S11), the print monitor unit 45c determines whether to send a plurality of commands to the printer 5 (step S12). For example, when a plurality of commands are acquired from the printer driver execution unit 45b within a preset time, the print monitor unit 45c performs a process of transmitting the plurality of commands together.
When one command is transmitted to the printer 5 (step S12; No), the print monitor unit 45c transmits the acquired command to the printer 5 (step S13), and this process ends.

複数のコマンドを送信する場合(ステップS12;Yes)、プリントモニター部45cは、送信する複数のコマンドの中に、優先度が異なるコマンドが混在しているか否かを判定する(ステップS14)。優先度の違いがない場合(ステップS14;No)、プリントモニター部45cは、取得した複数のコマンドをプリンター5に送信し(ステップS15)、本処理を終了する。ステップS15で、プリントモニター部45cは、複数のコントロールコマンドを順に送信してもよいし、複数のフォーマットコマンドをコマンド群として送信してもよい。   When transmitting a plurality of commands (step S12; Yes), the print monitor unit 45c determines whether or not commands having different priorities are mixed among the plurality of commands to be transmitted (step S14). If there is no difference in priority (step S14; No), the print monitor unit 45c transmits the acquired plurality of commands to the printer 5 (step S15), and ends this process. In step S15, the print monitor unit 45c may transmit a plurality of control commands in order, or may transmit a plurality of format commands as a command group.

また、送信する複数のコマンドの優先度に違いがある場合(ステップ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 print monitor unit 45c arranges the commands in the execution order (step S16). The command execution order refers to the order in which commands are acquired from the printer driver execution unit 45b. If the command execution order is specified separately, this specification is followed.
Next, the print monitor unit 45c inserts a response request command between the format command and the control command (step S17). That is, when a command with a higher priority is arranged next to a command with a lower priority, a response request command is inserted between them. The print monitor unit 45c extracts commands from the top command to the response request command from the commands arranged in the execution order (step S18), and transmits the command to the printer 5 (step S19). In step S19, a control command may be transmitted in order, a plurality of format commands may be transmitted as a command group, or a control command and a format command may be transmitted in order.

プリントモニター部45cは、ステップS19で送信した応答要求コマンドに対する応答がプリンター5から送信されるまで、待機する(ステップS20)。応答要求コマンドを受信した場合には、プリントモニター部45cは、応答コマンドのパラメーターに基づき、ステップS19で送信した応答要求コマンドに対応する応答コマンドか否かを判定してもよい。   The print monitor unit 45c waits until a response to the response request command transmitted in step S19 is transmitted from the printer 5 (step S20). When the response request command is received, the print monitor unit 45c may determine whether or not the response command corresponds to the response request command transmitted in step S19 based on the response command parameter.

ステップ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 print monitor unit 45c extracts the remaining commands extracted in step S18 (step S21). The print monitor unit 45c transmits the extracted command to the printer 5 (step S22), and ends this process.
When the print monitor unit 45c receives a response command to the response request command transmitted in step S19, the print monitor unit 45c does not output data related to reception of the response command to the printer driver execution unit 45b.
As described above, when the print monitor unit 45c receives the response from the printer 5 when the command generated by the printer driver execution unit 45b is transmitted to the printer 5, the print monitor unit 45c returns the received command to the printer driver execution unit 45b. However, since the response request command is a command generated by the print monitor unit 45c, the response to the response request command is not output to the printer driver execution unit 45b. Therefore, the printer driver execution unit 45b is not affected by the function of the print monitor unit 45c generating the response request command. Therefore, even if the host computer 1 is equipped with a general-purpose printer driver execution unit 45b, the print monitor unit 45c can have a response request command generation function to realize the present invention.

図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 command receiving unit 27a stores a command or data from the host computer 1 in the reception buffer 27f each time it receives a command or data. This operation is as described above.
The command analysis unit 27b detects the command by moving the read pointer of the reception buffer 27f (step S31). The command analysis unit 27b determines whether or not there is an unprocessed command (step S32), and if there is no unprocessed command in the reception buffer 27f (step S32; No), the process ends.

受信バッファー27fで未処理のコマンドを検出した場合(ステップS32;Yes)、コマンド解析部27bは、検出したコマンドの種類と、コマンドを実行する実行部とを特定する(ステップS33)。コマンド解析部27bは、検出したコマンドが応答要求コマンドであるか否かを判定し(ステップS34)、応答要求コマンドであれば(ステップS34;Yes)、応答コマンドを生成してホストコンピューター1に送信する(ステップS35)。ステップS35で、コマンド解析部27bは、応答要求コマンドのパラメーターと同じパラメーターを、応答コマンドに設定する。   When an unprocessed command is detected in the reception buffer 27f (step S32; Yes), the command analysis unit 27b specifies the type of the detected command and the execution unit that executes the command (step S33). The command analysis unit 27b determines whether or not the detected command is a response request command (step S34), and if it is a response request command (step S34; Yes), generates a response command and transmits it to the host computer 1. (Step S35). In step S35, the command analysis unit 27b sets the same parameter as the response request command parameter in the response command.

一方、受信バッファー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 reception buffer 27f is not a response request command (step S34; No), it is determined whether or not it is a control command (step S36).
When the detected command is a format command with low priority (step S36; No), the command analysis unit 27b outputs the command and data to the execution unit identified in step S33 (step S38). The command analysis unit 27b instructs the execution unit that has output the command and data, that is, the setting unit 27c, the print control unit 27d, or the image processing unit 27e (step S38) to execute the command. (Step S39). Thereafter, the command analysis unit 27b returns to step S31 and continues to detect the command.

また、検出したコマンドが、優先度の高いコントロールコマンドである場合(ステップ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 command analysis unit 27b outputs the command and data to the execution unit identified in step S33 (step S40). The command analysis unit 27b instructs the execution unit that has output the command and data to execute the command in preference to the command executed by the other execution unit (step S41). An instruction to be executed in preference to a command executed by another execution unit is an instruction to start execution of the command without waiting for completion of execution of the other execution unit. Thereby, the command is executed (step S39), and the command analysis unit 27b returns to step S31 and continues to detect the command.

これら図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 application execution unit 45a, the printer driver execution unit 45b generates a print command, and registration of an image is instructed by the user interface of the printer driver execution unit 45b Indicates.
The print monitor unit 45c acquires a print command from the printer driver execution unit 45b (step SA11), and then acquires an image registration command (step SA12). The print monitor unit 45c arranges a plurality of commands acquired from the printer driver execution unit 45b in the order of acquisition (step SA13).
Here, the print command is a format command, and the image registration command is a control command. For this reason, the print monitor unit 45c inserts a response request command between the print command and the image registration command (step SA14).

プリントモニター部45cは、プリンタードライバー実行部45bから取得した印刷コマンドと応答要求コマンドをプリンター5に送信し(ステップS15)、応答コマンドを受信するまで待機する(ステップSA16)。   The print monitor unit 45c transmits the print command and response request command acquired from the printer driver execution unit 45b to the printer 5 (step S15), and waits until a response command is received (step SA16).

一方、プリンター5のコマンド受信部27aは、ホストコンピューター1から送信されたコマンドをコマンド受信部27aにより受信して受信バッファー27fに記憶する(ステップSB11)。コマンド解析部27bは、受信バッファー27fから印刷コマンドを検出し(ステップSB12)、印刷コマンドとデータを印刷制御部27dに渡して印刷を開始させる(ステップSB13)。
コマンド解析部27bは、印刷コマンドとデータを印刷制御部27dに渡した後、受信バッファー27fから応答要求コマンドを検出する(ステップSB14)。コマンド解析部27bは応答コマンドを生成して、ホストコンピューター1に送信する(ステップSB15)。
On the other hand, the command receiving unit 27a of the printer 5 receives the command transmitted from the host computer 1 by the command receiving unit 27a and stores it in the reception buffer 27f (step SB11). The command analysis unit 27b detects a print command from the reception buffer 27f (step SB12), passes the print command and data to the print control unit 27d, and starts printing (step SB13).
The command analysis unit 27b detects the response request command from the reception buffer 27f after passing the print command and data to the print control unit 27d (step SB14). The command analysis unit 27b generates a response command and transmits it to the host computer 1 (step SB15).

プリントモニター部45cは、プリンター5から送信された応答コマンドを受信し(ステップSA16;Yes)、画像登録コマンドをプリンター5に送信する(ステップS17)。
コマンド受信部27aは、ホストコンピューター1から送信された画像登録コマンドを受信して受信バッファー27fに記憶する(ステップSB16)。
そして、コマンド解析部27bは受信バッファー27fから画像登録コマンドを検出して(ステップSB17)、検出した画像登録コマンドとデータを設定部27cに渡して、設定部27cが登録画像データ50bを記憶させる(ステップSB18)。このとき、印刷制御部27d及び画像処理部27eは印刷を開始しているため、登録画像データ50bは既に読み出されている。従って、設定部27cが登録画像データ50bを記憶させ、或いは更新しても、印刷制御部27dによる印刷結果に影響しない。
The print monitor unit 45c receives the response command transmitted from the printer 5 (step SA16; Yes), and transmits an image registration command to the printer 5 (step S17).
The command receiving unit 27a receives the image registration command transmitted from the host computer 1 and stores it in the reception buffer 27f (step SB16).
Then, the command analysis unit 27b detects the image registration command from the reception buffer 27f (step SB17), passes the detected image registration command and data to the setting unit 27c, and the setting unit 27c stores the registered image data 50b ( Step SB18). At this time, since the print control unit 27d and the image processing unit 27e have started printing, the registered image data 50b has already been read. Therefore, even if the setting unit 27c stores or updates the registered image data 50b, the print result by the print control unit 27d is not affected.

以上説明したように、本実施形態に係る印刷システム8は、プリンター5に接続されるホストコンピューター1を備える。ホストコンピューター1は、プリンター5にコマンドを送信し、プリンター5から送信される応答を受信するプリントモニター部45cを備える。プリントモニター部45cは、プリンター5が実行するフォーマットコマンド(第1のコマンド)と、プリンター5がフォーマットコマンドより優先して実行するコントロールコマンド(第2のコマンド)を送信できる。フォーマットコマンドとコントロールコマンドとを含む複数のコマンドを送信する場合に、コントロールコマンドの前に応答要求コマンドを送信し、この応答要求コマンドに対する応答である応答コマンドを受信してから、コントロールコマンドを送信する。これにより、プリンター5がコマンドを送信順に実行するように、プリンター5におけるコマンドの実行順序を適切に制御できる。   As described above, the printing system 8 according to this embodiment includes the host computer 1 connected to the printer 5. The host computer 1 includes a print monitor unit 45 c that transmits a command to the printer 5 and receives a response transmitted from the printer 5. The print monitor unit 45c can transmit a format command (first command) executed by the printer 5 and a control command (second command) executed by the printer 5 with priority over the format command. When a plurality of commands including a format command and a control command are transmitted, a response request command is transmitted before the control command, and a control command is transmitted after receiving a response command that is a response to the response request command. . Thereby, the execution order of the commands in the printer 5 can be appropriately controlled so that the printer 5 executes the commands in the order of transmission.

また、ホストコンピューター1は、フォーマットコマンド及びコントロールコマンドを生成するプリンタードライバー実行部45bを備える。プリントモニター部45cは、プリンタードライバー実行部45bによりフォーマットコマンドとコントロールコマンドを含む複数のコマンドの送信が指示された場合に、コマンドの送信順序を決定し、応答要求コマンドを生成して配置する。このように、優先度の異なる複数のコマンドをプリンター5に送信する場合に、応答要求コマンドを生成することにより、容易に、プリンター5におけるコマンドの実行順序を制御できる。
また、ホストコンピューター1はアプリケーション実行部45aを備える。プリンタードライバー実行部45bは、アプリケーション実行部45aが出力するデータに基づきフォーマットコマンドである印刷コマンドを生成し、プリンター5の設定に係るコントロールコマンドを生成する。このため、プログラムを実行して生成されたデータをプリンター5に印刷させる場合に、コマンドによってプリンター5の設定を実行させることができ、設定と印刷動作の実行順序を適切に制御できる。
The host computer 1 also includes a printer driver execution unit 45b that generates a format command and a control command. When the printer driver execution unit 45b instructs the transmission of a plurality of commands including a format command and a control command, the print monitor unit 45c determines the command transmission order and generates and arranges a response request command. As described above, when a plurality of commands having different priorities are transmitted to the printer 5, the command execution order in the printer 5 can be easily controlled by generating a response request command.
The host computer 1 includes an application execution unit 45a. The printer driver execution unit 45b generates a print command that is a format command based on the data output from the application execution unit 45a, and generates a control command related to the setting of the printer 5. For this reason, when data generated by executing the program is printed on the printer 5, the setting of the printer 5 can be executed by a command, and the execution order of the setting and the printing operation can be appropriately controlled.

また、プリントモニター部45cは、コマンドの実行後にプリンター5から送信される応答を受信した場合に、受信した応答に対応するデータをプリンタードライバー実行部45bに出力することもできる。また、プリントモニター部45cは、応答要求コマンドに対する応答コマンドを受信した場合は、プリンタードライバー実行部45bにコマンドを返さない。このため、応答要求コマンドを利用してプリンター5のコマンドの実行順序を制御し、この制御の影響を、プリンタードライバー実行部45bに与えないようにすることができる。このため、プリンター5のコマンドの実行順序を制御するプリントモニター部45cを、プリンタードライバー実行部45bとは独立して実装できる。
また、上記実施形態では、プリンター5のコマンド解析部27bが応答コマンドを生成して、ホストコンピューター1に送信する構成としたが、本発明はこれに限定されない。すなわち、プリンター5が送信する応答は、応答コマンドの形式に限定されず、例えば、コマンド形式の応答コマンドであってもよいし、ステータスの通知の形式であってもよいし、他の形式のデータであってもよく、これらを含んでもよい。従って、プリントモニター部45cは、応答コマンド、ステータス等の通知、その他の形式のデータの少なくともいずれかを、応答として受信できればよい。
Further, when the print monitor unit 45c receives a response transmitted from the printer 5 after executing the command, the print monitor unit 45c can also output data corresponding to the received response to the printer driver execution unit 45b. Further, when the print monitor unit 45c receives a response command to the response request command, the print monitor unit 45c does not return the command to the printer driver execution unit 45b. For this reason, it is possible to control the execution order of the commands of the printer 5 using the response request command, and to prevent the influence of this control from being given to the printer driver execution unit 45b. For this reason, the print monitor unit 45c that controls the command execution order of the printer 5 can be implemented independently of the printer driver execution unit 45b.
In the above embodiment, the command analysis unit 27b of the printer 5 generates a response command and transmits it to the host computer 1, but the present invention is not limited to this. That is, the response transmitted by the printer 5 is not limited to the response command format, and may be, for example, a command format response command, a status notification format, or other types of data. These may be included. Accordingly, the print monitor unit 45c only needs to receive at least one of a response command, a notification of status, etc., or other types of data as a response.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、コントロールコマンドとフォーマットコマンドの優先度が異なる場合を例に挙げて説明したが、本発明はこれに限定されない。例えば、フォーマットコマンドであるかコントロールコマンドであるかに関わらず、コマンドに対応する機能に基づき、優先度が設定されていてもよい。例えば、プリンター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 driver execution unit 45b.

また、図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 ... Command analysis 27c: Setting unit (command execution unit), 27d ... Print control unit (command execution unit), 27e ... Image processing unit (command execution unit), 27f ... Reception buffer, 27g ... Print buffer, 41 ... Communication interface, 45 ... host control unit, 45a ... application execution unit (program execution unit), 45b ... printer driver execution unit (command generation unit), 45c ... print monitor unit (transmission unit, reception unit, transmission control unit), 50 ... printer storage unit .

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.
前記送信制御部は、前記第1のコマンドまたは前記第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.
JP2014057687A 2014-03-20 2014-03-20 Printing control apparatus, printing system, and printing control method Expired - Fee Related JP6264978B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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