JP6202168B2 - Printer and printer control method - Google Patents

Printer and printer control method Download PDF

Info

Publication number
JP6202168B2
JP6202168B2 JP2016170491A JP2016170491A JP6202168B2 JP 6202168 B2 JP6202168 B2 JP 6202168B2 JP 2016170491 A JP2016170491 A JP 2016170491A JP 2016170491 A JP2016170491 A JP 2016170491A JP 6202168 B2 JP6202168 B2 JP 6202168B2
Authority
JP
Japan
Prior art keywords
template
print
printing
command
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.)
Active
Application number
JP2016170491A
Other languages
Japanese (ja)
Other versions
JP2017024418A (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 JP2016170491A priority Critical patent/JP6202168B2/en
Publication of JP2017024418A publication Critical patent/JP2017024418A/en
Application granted granted Critical
Publication of JP6202168B2 publication Critical patent/JP6202168B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、プリンター、及び、プリンターの制御方法に関する。 The present invention relates to a printer and a printer control method.

従来、記録装置を備えたシステムにおいて、予め作成されたテンプレートを利用して記録を行うものが知られている(例えば、特許文献1参照)。この種の記録装置は、制御側のコンピューター等から入力されるデータを、記憶しているテンプレートに従って配置することにより、ラベル等の記録を実行する。   2. Description of the Related Art Conventionally, in a system including a recording apparatus, a system that performs recording using a template created in advance is known (see, for example, Patent Document 1). This type of recording apparatus performs recording of labels and the like by arranging data input from a control computer or the like according to a stored template.

特開2012−048415号公報JP 2012-048415 A

上記従来の記録装置において、ラベル等の記録物の出力表現の改善を図ろうとすると、テンプレートを変更することが考えられる。この場合、制御側のコンピューター等は記録装置が使用するテンプレートに適合するようにデータを出力する必要があるから、テンプレートを変更することは、制御側のコンピューター等のソフトウェアにも変更を加える必要がある。しかしながら、記録装置を制御するコンピューター等が会計処理等の複雑な業務システムを構成している場合等、ソフトウェアの変更が容易でない場合も多く、このような場合は、記録物の出力表現の改善を図ることは困難であった。   In the conventional recording apparatus, it is conceivable to change the template in order to improve the output expression of a recorded matter such as a label. In this case, the computer on the control side needs to output data so that it conforms to the template used by the recording device, so changing the template requires changes to the software on the computer on the control side. is there. However, there are many cases where it is not easy to change the software, such as when the computer that controls the recording device constitutes a complicated business system such as accounting processing. In such a case, the output expression of the recorded matter should be improved. It was difficult to plan.

上記課題を解決するため、本発明は、記録形態を容易に変更できるプリンター、及び、プリンターの制御方法を提供することを目的とする。 To solve the above problems, the present invention provides a printer which can easily change the recording mode, and aims to provide a control method of the printer.

上記目的を達成するために、本発明は、媒体への印刷を実行する印刷実行部と、印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備え、前記制御部は、前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる、ことを特徴とする。
また、本発明は、前記記憶部は前記第1テンプレートを保持し、前記制御部は、前記印刷命令を受信したときに、前記第2テンプレートが前記記憶部に保持されていない場合は、前記第1テンプレートを取得し、前記第1テンプレート及び前記印刷命令に基づいて前記印刷実行部を制御して印刷を実行させることを特徴とする。
また、本発明は、前記第2テンプレートは、変更、または追加された前記印刷形態を指定する情報として、前記第1テンプレートにおける印刷色と異なる印刷色を指定する情報を有することを特徴とする。
また、本発明は、前記テンプレートは、前記印刷要素のデータの印刷形態を指定する情報として、前記媒体の印刷領域における前記印刷要素の位置及びサイズの少なくともいずれかを指定する情報を有することを特徴とする。
また、本発明は、前記制御部は、前記第2テンプレートを、前記第1テンプレートを構成する第1コマンド体系と異なる第2コマンド体系に変換して、前記記憶部に記憶させることを特徴とする。
また、本発明は、前記印刷命令は前記第1コマンド体系で構成され、前記第1テンプレートを指定する情報は、前記第1コマンド体系に含まれるコマンドであることを特徴とする。
また、本発明は、前記第1テンプレートの名称と前記第2テンプレートの名称とは、同一の文字列を含む、ことを特徴とする。
また、本発明は、媒体への印刷を実行する印刷実行部と、印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備えるプリンターの制御方法であって、前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させることを特徴とする。
上記目的を達成するために、本発明の記録装置は、記録手段と、記録要素のデータの記録形態を指定する第1テンプレートを記憶する第1の記憶手段と、前記第1テンプレートに対応付けられ、前記記録要素のデータが変更及び/または追加された第2テンプレートを記憶する第2の記憶手段と、前記第1テンプレートを指定するデータを含む記録指示が入力された場合に、指定された前記第1テンプレートに対応する前記第2テンプレートを前記第2の記憶手段から取得して前記記録手段により記録する記録制御手段と、を備えることを特徴とする。
本発明によれば、記録装置が、第1テンプレートを指定する記録指示が入力された場合に、この第1テンプレートに対応する第2テンプレートを用いて記録を行う。これにより、記録装置に入力される記録指示を変更することなく、異なる記録形態で記録するので、記録物の記録形態の変更を容易に行うことができる。
In order to achieve the above object, the present invention provides a print execution unit that executes printing on a medium, a control unit that acquires a template including information that specifies a print form of data of a print element, and the print execution unit. A storage unit that holds data relating to the printing, and the control unit acquires a first template as the template and changes a command for specifying the printing form included in the first template, or When the command for adding the information specifying the print form to the first template is received, the second information for specifying the print form for the first template is changed or added based on the command. A printing command including information for designating the first template, storing the template in the storage unit in association with the first template When receiving, acquiring the second template from the storage unit, to execute printing by controlling the printing unit based on the acquired and the second template and the print command, and wherein the.
Further, according to the present invention, the storage unit holds the first template, and the control unit receives the print command, and if the second template is not held in the storage unit, One template is acquired, and printing is executed by controlling the print execution unit based on the first template and the print command.
Further, the present invention is characterized in that the second template has information for designating a print color different from the print color in the first template as information for designating the changed or added print form.
In the invention, it is preferable that the template includes information specifying at least one of a position and a size of the print element in a print area of the medium as information specifying a print form of data of the print element. And
Further, the present invention is characterized in that the control unit converts the second template into a second command system different from the first command system constituting the first template and stores the second command system in the storage unit. .
Further, the present invention is characterized in that the print command is configured by the first command system, and the information for designating the first template is a command included in the first command system.
In addition, the present invention is characterized in that the name of the first template and the name of the second template include the same character string.
Further, the present invention provides a print execution unit that executes printing on a medium, a control unit that acquires a template that includes information that specifies a print mode of print element data, and data related to the printing by the print execution unit. A storage unit that holds the first template as the template, and a command for changing the information specifying the printing form included in the first template, or the first When a command for adding information specifying the print form to the template is received, the second template in which the information specifying the print form is changed or added to the first template based on the command is added to the second template. A print command including information specifying the first template is received in association with one template and stored in the storage unit. When acquires the second template from said storage unit, characterized in that to execute printing by controlling the printing unit based on the acquired and the second template and the print command.
In order to achieve the above object, a recording apparatus according to the present invention is associated with a recording unit, a first storage unit that stores a first template that specifies a recording form of data of a recording element, and the first template. The second storage means for storing the second template in which the data of the recording element is changed and / or added, and the recording instruction including the data specifying the first template are input. Recording control means for acquiring the second template corresponding to the first template from the second storage means and recording the second template by the recording means.
According to the present invention, when a recording instruction specifying the first template is input, the recording apparatus performs recording using the second template corresponding to the first template. Thereby, since it records with a different recording form, without changing the recording instruction | indication input into a recording device, the recording form of a recorded matter can be changed easily.

また、本発明は、上記記録装置において、指定された前記第1テンプレートに対応する前記第2テンプレートが無い場合は、前記第1の記憶手段から前記第1テンプレートを取得して記録することを特徴とする。
本発明によれば、指定された第1テンプレートに対応する第2テンプレートが無くても記録を実行できるので、全ての第1テンプレートに対応する第2テンプレートが用意されていなくてもよい。このため、一部の第1テンプレートについてのみ、第2テンプレートを使用するようにして記録形態を変更することが可能となる。従って、記録形態の変更に係る制約を緩和でき、より容易に記録形態を変更できる。
In the recording apparatus, when there is no second template corresponding to the designated first template, the first template is acquired from the first storage unit and recorded. And
According to the present invention, recording can be executed even if there is no second template corresponding to the designated first template. Therefore, the second templates corresponding to all the first templates do not have to be prepared. For this reason, it is possible to change the recording form so as to use the second template only for some of the first templates. Therefore, the restrictions related to the change of the recording form can be relaxed, and the recording form can be changed more easily.

また、本発明は、上記記録装置において、第2テンプレートは、前記記録要素のデータの記録形態を指定するデータを、第1テンプレートに対して新たに追加したものであることを特徴とする。
本発明によれば、記録に際して使用されるテンプレートを、記録形態を指定するデータを新たに追加したテンプレートに置き換えることで、入力される記録指示を変更することなく、出力表現の幅をより一層広げることができる。
Further, the present invention is characterized in that, in the recording apparatus, the second template is obtained by newly adding data designating a recording form of data of the recording element to the first template.
According to the present invention, by replacing a template used for recording with a template in which data specifying a recording form is newly added, the range of output expression is further expanded without changing an input recording instruction. be able to.

また、本発明は、上記記録装置であって、前記第2テンプレートは、前記記録要素のデータの記録形態を指定するデータとして、前記記録要素の記録色を指定するデータを含むことを特徴とする。
本発明によれば、テンプレートを、記録色を指定するデータを新たに追加したテンプレートに置き換えることで、入力される記録指示を変更することなく新たに記録色を指定することが可能になるので、出力表現の幅を一層広げることができる。
The present invention is the above recording apparatus, wherein the second template includes data specifying a recording color of the recording element as data specifying a recording form of data of the recording element. .
According to the present invention, it is possible to newly specify a recording color without changing an input recording instruction by replacing the template with a template in which data specifying the recording color is newly added. The range of output expression can be further expanded.

また、本発明は、上記記録装置において、前記第2テンプレートは、前記記録要素のデータの記録形態を指定するデータとして、記録媒体の記録領域における前記記録要素の位置及びサイズの少なくともいずれかを指定するデータを含むことを特徴とする。
本発明によれば、入力される記録指示を変更することなく、記録要素の位置やサイズを柔軟に変更でき、出力表現の幅をより一層広げることができる。
In the recording apparatus, the second template may specify at least one of a position and a size of the recording element in a recording area of a recording medium as data for specifying a recording form of the data of the recording element. It is characterized by including the data to perform.
According to the present invention, the position and size of a recording element can be flexibly changed without changing the input recording instruction, and the range of output expression can be further increased.

また、本発明は、記録手段と、記録要素のデータの記録形態を指定する第1テンプレートを記憶する第1の記憶手段と、前記第1テンプレートに対応付けられ、前記記録要素のデータが変更及び/または追加された第2テンプレートを記憶する第2の記憶手段と、前記記録手段により記録する記録制御手段と、を備える記録装置の制御方法であって、前記第1テンプレートを指定するデータを含む記録指示が入力された場合に、指定された前記第1テンプレートに対応する前記第2テンプレートを前記第2の記憶手段から取得して前記記録手段に記録させることを特徴とする。
本発明によれば、記録装置により、第1テンプレートを指定する記録指示が入力された場合に、この第1テンプレートに対応する第2テンプレートを用いて記録を行う。これにより、記録装置に入力される記録指示を変更することなく、異なる記録形態で記録することができ、記録物の記録形態の変更を容易に行うことができる。
The present invention also relates to a recording means, a first storage means for storing a first template for designating a recording form of data of the recording element, and the data of the recording element associated with the first template. And / or a recording apparatus control method comprising: a second storage unit that stores the added second template; and a recording control unit that records the added second template, and includes data specifying the first template. When a recording instruction is input, the second template corresponding to the designated first template is acquired from the second storage unit and recorded in the recording unit.
According to the present invention, when a recording instruction specifying the first template is input by the recording apparatus, recording is performed using the second template corresponding to the first template. Thereby, it is possible to record in different recording forms without changing the recording instruction input to the recording apparatus, and the recording form of the recorded matter can be easily changed.

本発明によれば、記録装置に入力される記録指示が変更されなくても、異なる記録形態によって記録を行うことが可能であり、記録物の記録形態の変更を容易に行うことができる。   According to the present invention, even if the recording instruction input to the recording apparatus is not changed, recording can be performed with different recording forms, and the recording form of the recorded matter can be easily changed.

実施形態に係る印刷システムの機能ブロック図である。1 is a functional block diagram of a printing system according to an embodiment. 印刷システムで用いられるテンプレートの一例を示す説明図である。It is explanatory drawing which shows an example of the template used with a printing system. テンプレート変換処理に係る動作を示す説明図である。It is explanatory drawing which shows the operation | movement which concerns on a template conversion process. テンプレート変換処理のシーケンスを示す説明図である。It is explanatory drawing which shows the sequence of a template conversion process. 第1及び第2テンプレートの一例を示す説明図である。It is explanatory drawing which shows an example of a 1st and 2nd template. 印刷処理に係る動作を示す説明図である。It is explanatory drawing which shows the operation | movement which concerns on a printing process. 印刷処理のシーケンスを示す説明図である。It is explanatory drawing which shows the sequence of a printing process. 第1及び第2テンプレートの例を示す説明図である。It is explanatory drawing which shows the example of a 1st and 2nd template. 第1及び第2テンプレートの例を示す説明図である。It is explanatory drawing which shows the example of a 1st and 2nd template. 第1及び第2テンプレートの例を示す説明図である。It is explanatory drawing which shows the example of a 1st and 2nd template. 第1及び第2テンプレートの例を示す説明図である。It is explanatory drawing which shows the example of a 1st and 2nd template. プリンターの印刷処理の説明図である。FIG. 8 is an explanatory diagram of a printing process of a printer.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る印刷システム1の構成を示す機能ブロック図である。
この図1に示すように、印刷システム1(記録システム)は、例えば、ラベルを印刷(記録)出力するシステムであり、印刷命令を印刷指示(記録指示)として出力するホストコンピューター2と、プリンター3(記録装置)と、テンプレート端末5とをネットワーク4により接続して構成される。なお、図1には、印刷システム1が備えていないプリンター6を説明のために図示している。また、印刷システム1は、POSシステムを含んでもよい。
ホストコンピューター2は、プログラムを実行するCPU、CPUにより実行される基本制御プログラムや処理されるデータを記憶するROM、CPUが実行するプログラムや処理されたデータ等を一時的に格納するRAM、プログラムやデータ等を記憶する不揮発性記憶装置等を備えて構成されるコンピューターである。ホストコンピューター2は、アプリケーションプログラム21及びデバイスドライバー23を有し、プリンター6によって印刷させる印刷命令を出力する。本実施形態では、印刷システム1により、裏面に粘着材を有する記録媒体であるラベル用紙の印刷領域に、文字や画像を印刷して、所定サイズのカットシートであるラベルを印刷出力する例について説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a functional block diagram illustrating a configuration of a printing system 1 according to the present embodiment.
As shown in FIG. 1, a printing system 1 (recording system) is a system that prints (records) and outputs a label, for example. A host computer 2 that outputs a print command as a print command (recording command), and a printer 3. (Recording device) and the template terminal 5 are connected by a network 4. In FIG. 1, a printer 6 that is not provided in the printing system 1 is illustrated for explanation. The printing system 1 may include a POS system.
The host computer 2 includes a CPU that executes programs, a ROM that stores basic control programs executed by the CPU and data to be processed, a RAM that temporarily stores programs executed by the CPU, processed data, programs, The computer includes a nonvolatile storage device that stores data and the like. The host computer 2 has an application program 21 and a device driver 23 and outputs a print command to be printed by the printer 6. In the present embodiment, an example will be described in which characters and images are printed on a printing area of a label sheet, which is a recording medium having an adhesive material on the back side, and a label that is a cut sheet of a predetermined size is printed out by the printing system 1. To do.

アプリケーションプログラム21は、予めプリンター6に記憶されているテンプレートを指定して印刷実行を指示する機能を有する。後述するように、印刷システム1では、予め、印刷に使用するテンプレートが複数設定され、例えばプリンター6に記憶されている。アプリケーションプログラム21は、複数のテンプレートの中から、印刷に使用するテンプレートを指定する。デバイスドライバー23は、プリンター6のハードウェア仕様およびソフトウェア仕様に対応して作成された、プリンター6を制御するためのプログラムである。アプリケーションプログラム21が印刷実行を指示すると、デバイスドライバー23は、プリンター6が解釈可能なコマンド体系(以下、第1のコマンド体系とする)のコマンドで構成される印刷命令を作成して出力する。デバイスドライバー23は、アプリケーションプログラム21によりテンプレートが指定されている場合には、指定されたテンプレートの情報を含むコマンドを生成してプリンター6に出力する。   The application program 21 has a function of designating a template stored in advance in the printer 6 and instructing execution of printing. As will be described later, in the printing system 1, a plurality of templates used for printing are set in advance and stored in the printer 6, for example. The application program 21 designates a template to be used for printing from among a plurality of templates. The device driver 23 is a program for controlling the printer 6 created in accordance with the hardware specifications and software specifications of the printer 6. When the application program 21 instructs execution of printing, the device driver 23 creates and outputs a print command composed of commands in a command system (hereinafter referred to as a first command system) that can be interpreted by the printer 6. When a template is designated by the application program 21, the device driver 23 generates a command including information on the designated template and outputs it to the printer 6.

印刷システム1は、実際にはプリンター6を備えておらず、ホストコンピューター2がプリンター6に対して送信する印刷命令は、プリンター3が受信して実行する。プリンター3は、後述するようにプリンター6の機能をエミュレートして、第1のコマンド体系で記述された印刷命令を解釈し、プリンター6が印刷する場合と異なる印刷形態でラベルを印刷する。つまり、印刷システム1は、ホストコンピューター2とプリンター6とを組み合わせていたシステムにおいて、プリンター6を排し、代わりにプリンター3を接続したシステムである。本実施形態では、カラー印刷機能がなく、モノクロ印刷を行うプリンター6を、カラー印刷が可能なプリンター3に置き換える例について説明する。
また、ホストコンピューター2が備えるアプリケーションプログラム21およびデバイスドライバー23は、プリンター6を使用していた状態から変更されていない。
The printing system 1 does not actually include the printer 6, and the printer 3 receives and executes a print command transmitted from the host computer 2 to the printer 6. As will be described later, the printer 3 emulates the functions of the printer 6, interprets the print command described in the first command system, and prints the label in a printing form different from the case where the printer 6 prints. That is, the printing system 1 is a system in which the host computer 2 and the printer 6 are combined and the printer 6 is removed and the printer 3 is connected instead. In the present embodiment, an example will be described in which a printer 6 that does not have a color printing function and performs monochrome printing is replaced with a printer 3 capable of color printing.
Further, the application program 21 and the device driver 23 provided in the host computer 2 are not changed from the state in which the printer 6 is used.

ネットワーク4は、ホストコンピューター2、プリンター3、およびテンプレート端末5を相互に通信可能に接続するネットワークであり、例えばEthernet(登録商標)規格に準拠した有線LANまたは無線LANで構成される。
また、ホストコンピューター2とプリンター3とは、USBやRS−232C規格に準拠したインターフェースを介して相互に通信可能に接続されてもよく、この場合、後述する印刷処理において、ホストコンピューター2とプリンター3とは1対1の通信を実行する。プリンター6に代えてプリンター3をホストコンピューター2に接続する場合、プリンター3のネットワークアドレスを、置き換え前のプリンター6のネットワークアドレスと同じアドレスにすれば、ホストコンピューター2において通信先のプリンターを指定する情報を変更する必要がない。また、プリンター6がホストコンピューター2に対してUSBやRS−232Cにより接続されていた場合には、同じ接続方法によりプリンター3をホストコンピューター2に接続すれば、ホストコンピューター2において通信先のプリンターを指定する情報を変更する必要がない。このようにすれば、ホストコンピューター2に対して一切の変更を加えずに、プリンター6をプリンター3に置き換えることができる。
The network 4 is a network that connects the host computer 2, the printer 3, and the template terminal 5 so that they can communicate with each other, and is configured by, for example, a wired LAN or a wireless LAN compliant with the Ethernet (registered trademark) standard.
In addition, the host computer 2 and the printer 3 may be connected so as to be able to communicate with each other via an interface compliant with the USB or RS-232C standard. In this case, in the printing process described later, the host computer 2 and the printer 3 are connected. Performs one-to-one communication. When connecting the printer 3 to the host computer 2 instead of the printer 6, if the network address of the printer 3 is set to the same address as the network address of the printer 6 before replacement, information for designating the destination printer in the host computer 2 There is no need to change. If the printer 6 is connected to the host computer 2 by USB or RS-232C, the printer 3 is connected to the host computer 2 by the same connection method, and the host computer 2 specifies the printer to communicate with. There is no need to change the information. In this way, the printer 6 can be replaced with the printer 3 without making any changes to the host computer 2.

プリンター3は、印刷ヘッドや搬送ローラー等の印刷を実行するハードウェア、および、これらのハードウェアを制御するコントローラーを備えた印刷実行部(記録手段)39を有し、この印刷実行部39は、ラベル用紙に印刷を行ってラベルを出力する。
また、プリンター3は、プリンター3の各部を制御する制御部30を有する。制御部30は、テンプレート端末5の要求に応じてテンプレートの変換処理を実行するテンプレート変換処理部31と、第1のコマンド体系のコマンドを含む印刷命令がホストコンピューター2から送信された場合に、この印刷命令中のコマンドを解釈して、印刷実行部39に印刷(記録)を実行させる印刷制御部(記録制御手段)32と、を備えている。
また、プリンター3は、プログラムやデータを不揮発的に記憶する記憶部33(記憶手段)を備えている。記憶部33の記憶領域には、それぞれテンプレートを記憶可能な第1テンプレート記憶部34(第1記憶手段)及び第2テンプレート記憶部35(第2記憶手段)と、基本テンプレート記憶部36と、が設けられる。また、記憶部33には、ラベル印刷プログラム37が記憶されている。ラベル印刷プログラム37は、プリンター6のコントローラー(図示略)が実行するプログラムと同様に動作するプログラムであって、印刷制御部32がプリンター6の動作をエミュレートするために使用する。
The printer 3 includes a print execution unit (recording unit) 39 including hardware that executes printing such as a print head and a conveyance roller, and a controller that controls the hardware. The print execution unit 39 includes: Print on label paper and output label.
In addition, the printer 3 includes a control unit 30 that controls each unit of the printer 3. The control unit 30 receives a template conversion processing unit 31 that executes template conversion processing in response to a request from the template terminal 5 and a print command including a command of the first command system from the host computer 2. A printing control unit (recording control unit) 32 that interprets a command in the printing command and causes the printing execution unit 39 to execute printing (recording).
The printer 3 includes a storage unit 33 (storage unit) that stores programs and data in a nonvolatile manner. In the storage area of the storage unit 33, there are a first template storage unit 34 (first storage unit) and a second template storage unit 35 (second storage unit) capable of storing templates, and a basic template storage unit 36, respectively. Provided. The storage unit 33 stores a label printing program 37. The label printing program 37 is a program that operates in the same manner as a program executed by a controller (not shown) of the printer 6, and is used by the print control unit 32 to emulate the operation of the printer 6.

テンプレートとは、プリンター3またはプリンター6が印刷出力する印刷媒体の印刷形態(記録形態)を指定するデータの集合である。本実施形態では、印刷媒体としてラベル用紙を用いる場合について説明する。ラベル用紙は、所定サイズにカットされた粘着材付きのラベルが、長尺の剥離シート上に並べられた用紙であり、例えばロール状に巻かれてプリンター3、6内部に収容される。プリンター3、6は、1枚のラベルに1ページの文字や画像を印刷する。ここで、印刷形態としては、例えばラベルのサイズ、ラベル中の位置、1行あたりの文字数、行数、文字の装飾、フォントサイズ、フォント種類、画像のサイズ、画像の位置、上下左右のマージン等の属性が挙げられ、テンプレートは、これらの属性をそれぞれ指定するコマンドのセットである。すなわち、テンプレートは、ラベルに記録(印刷)する文字や画像といった記録要素(印刷要素)のデータの印刷形態を指定するデータを含む。   A template is a set of data that designates the printing form (recording form) of a print medium printed by the printer 3 or 6. In the present embodiment, a case where label paper is used as a print medium will be described. The label paper is a paper in which labels with an adhesive material cut to a predetermined size are arranged on a long release sheet, and are wound into a roll shape and accommodated in the printers 3 and 6, for example. The printers 3 and 6 print one page of characters and images on one label. Here, as the printing form, for example, the size of the label, the position in the label, the number of characters per line, the number of lines, the decoration of the characters, the font size, the font type, the image size, the image position, the top, bottom, left and right margins, etc. A template is a set of commands that specify each of these attributes. That is, the template includes data that designates a printing form of data of recording elements (printing elements) such as characters and images to be recorded (printed) on the label.

図2は印刷システムで用いられるテンプレートの一例を示す説明図であり、(A)はテンプレートT1に含まれる情報の例を示し、(B)はテンプレートT1に基づいた印刷イメージG1の例を示す。ここで、テンプレートに基づいた印刷イメージとは、テンプレートに従ってラベル用紙に印刷を実行した場合の印刷形態を模式化したものである。
図2(A)に示すように、テンプレートT1は、ラベルの幅を指定するデータである「Label Width」の値、基準位置を指定するデータである「Home Position」の座標を含む。また、テンプレートT1は、ラベルに印刷される印刷要素として、複数の枠(枠a1〜a4)、文字列(文字列b1〜b3)の印刷形態を指定するデータを含んでいる。枠a1〜a4は、文字や画像を配置することが可能な領域であり、図2(A)に例示するように枠の位置、形状、サイズ(幅W1〜W4、高さH1〜H4)により規定される。枠a1〜a4の印刷位置は、ラベルの印刷領域(記録領域)における、ラベルの基準位置を原点とした位置座標(X1〜X4、Y1〜Y4)により指定される。また、図2(A)の例では枠a1〜a4は矩形である。矩形の枠a1〜a4は、その幅方向及び高さ方向を、ラベルの幅方向及び高さ方向に平行にして印刷することが予め規定されており、位置座標(X1〜X4、Y1〜Y4)は、それぞれ印刷イメージG1における枠a1〜a4の左上の角部の位置を表している。これらの枠に何を配置して印刷するかは別途コマンドにより指定できる。また、テンプレートT1で定義された枠のうち、何も配置されない枠があってもよく、この場合、その枠の領域には何も印刷されない。
図2(A)及び(B)の例では、枠a1〜a4には画像が配置される。枠a1〜a4は矩形形状であるため、図2(B)の印刷イメージG1において枠a1〜a4の領域には矩形の画像が印刷される。
2A and 2B are explanatory diagrams showing an example of a template used in the printing system. FIG. 2A shows an example of information included in the template T1, and FIG. 2B shows an example of a print image G1 based on the template T1. Here, the print image based on the template is a schematic representation of a print form when printing is performed on a label sheet according to the template.
As shown in FIG. 2A, the template T1 includes the value of “Label Width” that is data specifying the width of the label and the coordinates of “Home Position” that is data specifying the reference position. Further, the template T1 includes data that designates a printing form of a plurality of frames (frames a1 to a4) and character strings (character strings b1 to b3) as print elements to be printed on the label. Frames a1 to a4 are areas in which characters and images can be placed, and as illustrated in FIG. 2A, depending on the position, shape, and size (width W1 to W4, height H1 to H4) of the frame. It is prescribed. The printing positions of the frames a1 to a4 are designated by position coordinates (X1 to X4, Y1 to Y4) with the reference position of the label as the origin in the label printing area (recording area). In the example of FIG. 2A, the frames a1 to a4 are rectangular. The rectangular frames a1 to a4 are preliminarily specified to be printed with their width direction and height direction parallel to the label width direction and height direction, and position coordinates (X1 to X4, Y1 to Y4). Represents the positions of the upper left corners of the frames a1 to a4 in the print image G1, respectively. What can be placed in these frames and printed can be specified by a separate command. Further, there may be a frame in which nothing is arranged among the frames defined in the template T1, and in this case, nothing is printed in the area of the frame.
In the example of FIGS. 2A and 2B, images are arranged in the frames a1 to a4. Since the frames a1 to a4 have a rectangular shape, a rectangular image is printed in the areas of the frames a1 to a4 in the print image G1 in FIG.

また、テンプレートT1は、ラベルに印刷する文字列b1〜b3のデータ、及び、各文字列の印刷形態を指定するデータを含んでもよい。図2(A)の例では文字列b1〜b3について、文字列に含まれる文字「○○○○」、「△△△△」、「□□□□」のデータ、及び、文字列b1〜b3の印刷形態として、印刷位置(位置座標(X5〜X7、Y5〜Y7))を指定するデータ、及び、フォントサイズ(fs1〜fs3)を指定するデータを含んでいる。
また、図2(A)及び(B)に例示したテンプレートの内容を動的に変更することも可能である。すなわち、既存のテンプレートに含まれる枠に文字や画像を挿入して印刷することや、テンプレートで枠や文字列が定義されていない位置に別の文字や画像を追加して印刷することも可能である。
Further, the template T1 may include data on the character strings b1 to b3 to be printed on the label, and data for designating the printing form of each character string. In the example of FIG. 2 (A), for character strings b1 to b3, data of characters “XXX”, “ΔΔΔΔ”, “□□□□” included in the character string, and character strings b1 to b3 are included. As a printing form of b3, data specifying a printing position (position coordinates (X5 to X7, Y5 to Y7)) and data specifying a font size (fs1 to fs3) are included.
Further, the contents of the template illustrated in FIGS. 2A and 2B can be dynamically changed. In other words, characters and images can be inserted into a frame included in an existing template and printed, or another character or image can be added and printed at a position where no frame or character string is defined in the template. is there.

プリンター3が備える第1テンプレート記憶部34には、第1のコマンド体系のコマンドで構成された第1テンプレートが記憶されている。
第1テンプレートは、図2(A)、(B)に例示したテンプレートを第1のコマンド体系のコマンドを用いて記述したものである。第1テンプレートは、プリンター6が印刷に使用していたテンプレートであり、例えば、プリンター6をプリンター3に置き換える際に、プリンター6が使用していた全てのテンプレートが第1テンプレート記憶部34にコピーされる。
第2テンプレート記憶部35は、第1のコマンド体系とは異なる第2のコマンド体系で定義されたコマンドにより記述された第2テンプレートを記憶する。すなわち、第2テンプレートとは、図2(A)、(B)に例示したテンプレートを、第2のコマンド体系のコマンドで記述したものである。第2のコマンド体系は、第1のコマンド体系と共通のコマンドを含んでいてもよいし、共通でないコマンドを含んでいてもよい。また、第2のコマンド体系は、印刷形態を指定するコマンドとして、第1のコマンド体系では定義されてない属性に関するコマンドを含んでいる。
本実施形態では、第1のコマンド体系はモノクロ印刷用のコマンドで構成されており、印刷要素の印刷色(記録色)は黒及びグレースケールに限られる。これに対し、第2のコマンド体系は、16色、256色、65536色、或いは1677万色のカラー印刷に対応して、印刷要素の印刷色を指定するコマンドを含んでおり、これらのコマンドを使って印刷要素の印刷色を黒及びグレースケール以外にも指定できる。
The first template storage unit 34 included in the printer 3 stores a first template configured with commands of the first command system.
The first template is a template in which the templates illustrated in FIGS. 2A and 2B are described using commands of the first command system. The first template is a template used by the printer 6 for printing. For example, when the printer 6 is replaced with the printer 3, all the templates used by the printer 6 are copied to the first template storage unit 34. The
The second template storage unit 35 stores a second template described by a command defined in a second command system different from the first command system. That is, the second template is obtained by describing the template illustrated in FIGS. 2A and 2B with commands of the second command system. The second command system may include commands common to the first command system, or may include commands that are not common. In addition, the second command system includes commands relating to attributes that are not defined in the first command system, as commands for specifying a printing form.
In the present embodiment, the first command system is composed of commands for monochrome printing, and the printing colors (recording colors) of the printing elements are limited to black and gray scale. On the other hand, the second command system includes commands for specifying the printing colors of the printing elements corresponding to color printing of 16, 256 colors, 65536 colors, or 16.770 million colors. You can use it to specify printing colors for printing elements other than black and grayscale.

また、第2テンプレート記憶部35に記憶される第2テンプレートは、第1テンプレート記憶部34に記憶されている第1テンプレートのいずれかに対応づけられていて、対応する第1テンプレートとは少なくとも一部が異なる印刷形態でラベルを印刷できるよう構成されている。具体的には、第2テンプレートは、対応する第1テンプレートの印刷要素と、印刷要素の属性を指定するデータのうち、少なくとも一部が変更、追加、または削除されたテンプレートである。
本実施形態では、第1テンプレート及び第2テンプレートに名称が付されており、各々の第2テンプレートには、それぞれ対応する第1テンプレートと同じ名称が付与されている。つまり、第1テンプレート記憶部34と、第2テンプレート記憶部35には、同じ名称のテンプレートが記憶されている。ここで、第1テンプレート記憶部34に記憶された第1テンプレートの全てについて、同じ名前の第2テンプレートが第2テンプレート記憶部35に記憶されている必要はない。例えば、第1テンプレート記憶部34に記憶されたいずれかの第1テンプレートについては、同じ名前の第2テンプレートが記憶されていないことも許容される。
Further, the second template stored in the second template storage unit 35 is associated with one of the first templates stored in the first template storage unit 34, and is at least one different from the corresponding first template. The label can be printed in different printing forms. Specifically, the second template is a template in which at least a part of the print element of the corresponding first template and the data specifying the attribute of the print element is changed, added, or deleted.
In the present embodiment, names are assigned to the first template and the second template, and the same name as the corresponding first template is assigned to each second template. That is, templates having the same name are stored in the first template storage unit 34 and the second template storage unit 35. Here, the second template having the same name need not be stored in the second template storage unit 35 for all of the first templates stored in the first template storage unit 34. For example, regarding any of the first templates stored in the first template storage unit 34, the second template having the same name may not be stored.

基本テンプレート記憶部36は、プリンター3がデフォルトのテンプレートとして使用する基本テンプレートを記憶している。ホストコンピューター2が、テンプレートを指定する情報を含まない印刷命令を出力し、この印刷命令を受信した場合、印刷制御部32は、基本テンプレート記憶部36に記憶された基本テンプレートに従って、文字や画像を配置する。   The basic template storage unit 36 stores a basic template that the printer 3 uses as a default template. When the host computer 2 outputs a print command that does not include information specifying a template and receives this print command, the print control unit 32 outputs characters and images according to the basic template stored in the basic template storage unit 36. Deploy.

テンプレート端末5は、ラベルの印刷形態を指定するテンプレートを編集する端末装置であり、例えばパーソナルコンピューターにより構成される。
図3はテンプレート変換処理に係る動作を示す説明図であり、印刷システム1におけるデータの流れを模式的に示している。また、図4はテンプレート変換処理のシーケンスを示す説明図であり、(A)はテンプレート端末5の動作を示し、(B)はプリンター3のテンプレート変換処理部31の動作を示す。これら図3及び図4に従って、テンプレート変換処理について説明する。
テンプレート変換処理では、テンプレート端末5とプリンター3とが相互にデータを送受信する。テンプレート変換処理部31は、例えばWebサーバーの機能を実行し、テンプレート端末5は、例えばWebクライアントの機能を実行する。この場合、テンプレート変換処理部31は、テンプレート端末5のアクセスに応答してテンプレート処理用のWebページのデータを送信し、このWebページに基づいてテンプレート端末5がプリンター3に対してリクエストを送信する形態で処理が行われる。なお、テンプレート端末5の機能は、プリンター5の内部に取り込んでもよい。
The template terminal 5 is a terminal device that edits a template for designating a label printing form, and is composed of, for example, a personal computer.
FIG. 3 is an explanatory diagram showing an operation related to the template conversion process, and schematically shows a data flow in the printing system 1. FIG. 4 is an explanatory diagram showing a sequence of template conversion processing. (A) shows the operation of the template terminal 5 and (B) shows the operation of the template conversion processing unit 31 of the printer 3. The template conversion process will be described with reference to FIGS.
In the template conversion process, the template terminal 5 and the printer 3 exchange data with each other. The template conversion processing unit 31 executes, for example, a Web server function, and the template terminal 5 executes, for example, a Web client function. In this case, the template conversion processing unit 31 transmits data of the template processing Web page in response to the access of the template terminal 5, and the template terminal 5 transmits a request to the printer 3 based on the Web page. Processing is performed in the form. Note that the function of the template terminal 5 may be incorporated into the printer 5.

テンプレート端末5は、ユーザーの操作により、或いは予め設定されたプログラムの動作により、プリンター3のテンプレート変換処理部31に対して、第1テンプレートの送信を要求するテンプレート要求コマンドを送信する(ステップS11)。ここで、テンプレート端末5は、第1テンプレート記憶部34に記憶された第1テンプレートのうちいずれかの送信を要求してもよいし、全ての第1テンプレートの送信を要求してもよい。プリンター3のテンプレート変換処理部31は、テンプレート端末5から送信されたテンプレート要求コマンドを受信する(ステップS21)。テンプレート変換処理部31は、第1テンプレート記憶部34からテンプレート要求コマンドにおいて送信を要求された第1テンプレートを読み出して(ステップS22)、テンプレート端末5に送信する(ステップS23)。図3に示すように、ここでは一例として、“Fragile”の名称が付された第1テンプレートがテンプレート端末5に送信される。   The template terminal 5 transmits a template request command for requesting transmission of the first template to the template conversion processing unit 31 of the printer 3 by a user operation or an operation of a preset program (step S11). . Here, the template terminal 5 may request transmission of any of the first templates stored in the first template storage unit 34, or may request transmission of all the first templates. The template conversion processing unit 31 of the printer 3 receives the template request command transmitted from the template terminal 5 (step S21). The template conversion processing unit 31 reads out the first template requested to be transmitted in the template request command from the first template storage unit 34 (step S22), and transmits it to the template terminal 5 (step S23). As shown in FIG. 3, here, as an example, the first template with the name “Fragile” is transmitted to the template terminal 5.

テンプレート端末5は、プリンター3から送信された第1テンプレートを受信する(ステップS12)。ここで、テンプレート端末5は、必要に応じて、印刷要素のデータ(文字のデータや画像のデータ)を別の印刷要素のデータに差し替えたり、印刷要素のデータを追加したりする。さらに、第1テンプレートで定義されていない属性について追加で設定する(ステップS13)。例えば、テンプレート端末5は、第1テンプレートにおいて、印刷要素のデータの各々に対し、カラー印刷するか否か等の属性を追加で設定する。
テンプレート端末5は、処理中の第1テンプレートに追加する属性の設定内容を確定すると(ステップS14)、この属性を含む新しいテンプレートの保存をプリンター3に行わせるためのテンプレート保存コマンドを送信する(ステップS15)。このステップS15で、テンプレート端末5は、テンプレート保存コマンドとともに、第1テンプレートを構成するコマンドに新たに追加する属性のデータ(コマンドを含む)をプリンター3に送信する。また、ステップS15では、テンプレート端末5は、属性の設定処理を行った処理後の第1テンプレートを合わせて送信してもよい。また、印刷要素のデータの編集または差し替えを行った場合には、テンプレート端末5は、処理後の印刷要素のデータを合わせて送信する。
The template terminal 5 receives the first template transmitted from the printer 3 (step S12). Here, the template terminal 5 replaces the print element data (character data or image data) with another print element data or adds print element data as necessary. Furthermore, an attribute not defined in the first template is additionally set (step S13). For example, the template terminal 5 additionally sets an attribute such as whether or not to perform color printing for each piece of print element data in the first template.
When the template terminal 5 determines the setting contents of the attribute to be added to the first template being processed (step S14), the template terminal 5 transmits a template storage command for causing the printer 3 to store a new template including this attribute (step S14). S15). In step S15, the template terminal 5 transmits to the printer 3 the attribute data (including the command) to be newly added to the command constituting the first template together with the template saving command. In step S15, the template terminal 5 may also transmit the first template after the processing for performing the attribute setting processing. When the print element data is edited or replaced, the template terminal 5 transmits the processed print element data together.

プリンター3のテンプレート変換処理部31は、テンプレート端末5から送信されたテンプレート保存コマンドを受信する(ステップS24)。テンプレート変換処理部31は、テンプレート端末5からテンプレート保存コマンドとともに送信されたデータに基づいて、第2のコマンド体系で定義されるコマンドにより、第2テンプレートを生成して保存する(ステップS25)。詳細には、テンプレート変換処理部31は、テンプレート端末5が処理した第1テンプレートの印刷形態に、テンプレート端末5の処理により追加や変更された属性を反映した印刷形態を、第2のコマンド体系のコマンドによって記述した第2テンプレートを生成する。また、テンプレート端末5から、テンプレートの保存要求とともに、印刷要素のデータが送信された場合には、テンプレート変換処理部31は、これらの印刷要素のデータと、そのデータの印刷形態を指定するデータを含む第2テンプレートを生成する。そして、テンプレート変換処理部31は、生成した第2テンプレートに、テンプレート端末5が処理した第1テンプレートと同じ名称を付して、第2テンプレート記憶部35に格納する。これにより、テンプレート変換処理部31がステップS25で生成した第2テンプレートが、テンプレート端末5が処理した第1テンプレートの代わりに用いられるテンプレートであることが明らかになる。   The template conversion processing unit 31 of the printer 3 receives the template storage command transmitted from the template terminal 5 (step S24). Based on the data transmitted from the template terminal 5 together with the template saving command, the template conversion processing unit 31 generates and saves the second template by a command defined in the second command system (step S25). Specifically, the template conversion processing unit 31 converts a print form in which the attribute added or changed by the process of the template terminal 5 is reflected on the print form of the first template processed by the template terminal 5 to the second command system. A second template described by the command is generated. Further, when print element data is transmitted from the template terminal 5 together with the template save request, the template conversion processing unit 31 receives the data of these print elements and the data for specifying the print form of the data. A second template containing is generated. And the template conversion process part 31 attaches | subjects the same name to the produced | generated 2nd template as the 1st template which the template terminal 5 processed, and stores it in the 2nd template memory | storage part 35. FIG. Thereby, it becomes clear that the 2nd template which template conversion treating part 31 generated at Step S25 is a template used instead of the 1st template which template terminal 5 processed.

以下、対応関係にある第1及び第2テンプレートと、それらのテンプレートに基づいた印刷イメージの例について説明する。
図5は対応関係にある第1テンプレートT2及び第2テンプレートT3の例を示す説明図であり、第1テンプレートT2及び第2テンプレートT3に基づく印刷イメージG2、G3を示す。
“Fragile”の名称を付与された第1テンプレートT2に基づいた印刷イメージG2は、矩形形状の枠a5である印刷要素と、それぞれ、枠a5に配置される「Fragile」という文字列b4及び「↑ up ↑」という文字列b5である印刷要素とを有している。第1テンプレートT2は、枠a5と文字列b4、b5のデータとその印刷形態を指定するデータを含んでいる。なお、第1テンプレートT2は、モノクロのプリンター6用の印刷形態を指定する第1のコマンド体系のコマンドで構成されており、枠a5と文字列b4、b5の印刷色を指定するデータは含まない。
Hereinafter, examples of the first and second templates having a correspondence relationship and examples of print images based on the templates will be described.
FIG. 5 is an explanatory diagram showing an example of the first template T2 and the second template T3 that are in a correspondence relationship, and shows print images G2 and G3 based on the first template T2 and the second template T3.
A print image G2 based on the first template T2 to which the name “Fragile” is assigned includes a print element that is a rectangular frame a5, a character string b4 “Fragile” arranged in the frame a5, and “↑”. and a printing element which is a character string b5 “up ↑”. The first template T2 includes data for a frame a5, character strings b4 and b5, and data for specifying the printing form. The first template T2 is composed of commands of a first command system that designates a printing form for the monochrome printer 6, and does not include data that designates the printing color of the frame a5 and the character strings b4 and b5. .

第1テンプレートT2と同じ“Fragile”の名称を付された第2テンプレートT3は、第1テンプレートT2の文字列b4を、割れ物である注意喚起を促す画像a6に差し替えたものである。また、第2テンプレートT3には、画像a6の印刷色を指定するデータが追加されている。この印刷色は、例えば注意喚起に適した赤が挙げられる。第2テンプレートT3に基づく印刷イメージG3は、印刷イメージG2と比較して、文字「Fragile」が省略され、代わりにカラーの画像a6が印刷される形態となっている。
このように、テンプレート端末5を利用して、プリンター6で使用されていた第1テンプレートを、プリンター3が実行可能な第2のコマンド体系のコマンドで記述された第2テンプレートに変換してプリンター3に保存することにより、プリンター3が、プリンター6では実行できなかったカラー印刷等の機能を利用することが可能になる。
The second template T3 having the same “Fragile” name as the first template T2 is obtained by replacing the character string b4 of the first template T2 with an image a6 that prompts attention that is a crack. Further, data specifying the print color of the image a6 is added to the second template T3. An example of the print color is red suitable for alerting. The print image G3 based on the second template T3 has a form in which the character “Fragile” is omitted and a color image a6 is printed instead of the print image G2.
In this way, by using the template terminal 5, the first template used in the printer 6 is converted into the second template described by the command of the second command system that can be executed by the printer 3, and the printer 3. By storing in the printer 3, it is possible for the printer 3 to use functions such as color printing that could not be executed by the printer 6.

図6は、印刷処理に係る動作を示す説明図であり、印刷システム1におけるデータの流れを模式的に示している。また、図7は、印刷処理のシーケンスを示す説明図であり、(A)はホストコンピューター2の動作を示し、(B)はプリンター3の印刷制御部32の動作を示す。
これら図6及び図7に従って、印刷処理について説明する。
印刷処理では、ホストコンピューター2とプリンター3とが相互にデータを送受信する。なお、ホストコンピューター2とプリンター3とがUSBやRS−232C等の通信路により1対1で接続されている場合には、印刷処理は、この通信路を介して実行される。
FIG. 6 is an explanatory diagram showing an operation related to the printing process, and schematically shows a data flow in the printing system 1. FIG. 7 is an explanatory diagram showing the sequence of the printing process, where (A) shows the operation of the host computer 2 and (B) shows the operation of the print control unit 32 of the printer 3.
The printing process will be described with reference to FIGS.
In the printing process, the host computer 2 and the printer 3 exchange data with each other. Note that when the host computer 2 and the printer 3 are connected on a one-to-one basis via a communication path such as USB or RS-232C, the printing process is executed via this communication path.

印刷処理は、ユーザーの操作或いは予め設定されたプログラムの動作により、ホストコンピューター2がアプリケーションプログラム21を実行することで開始される。アプリケーションプログラム21がラベルの印刷データを生成し、印刷実行を指示すると、デバイスドライバー23によって、第1テンプレートを指定するデータを含み、第1のコマンド体系に基づいた印刷命令が生成されてプリンター3に送信される(ステップS31)。なお、第1テンプレートに印刷要素のデータを追加する場合には、追加する印刷要素のデータが、印刷命令に含まれる。   The printing process is started when the host computer 2 executes the application program 21 by a user operation or a preset program operation. When the application program 21 generates print data for a label and issues a print execution instruction, the device driver 23 generates a print command including data specifying the first template and based on the first command system to the printer 3. It is transmitted (step S31). Note that when adding print element data to the first template, the print element data to be added is included in the print command.

プリンター3の印刷制御部32は、ホストコンピューター2から送信された印刷命令を受信する(ステップS41)。印刷制御部32は、第2テンプレート記憶部35に格納された第2テンプレートのデータを参照し(ステップS42)、第2テンプレート記憶部35に、印刷命令により指定された第1テンプレートに対応する第2テンプレートがあるか否かを確認する(ステップS43)。すなわち、印刷制御部32は、印刷命令に含まれるテンプレートと同じ名称の第2テンプレートが、第1記憶部35にあるか否かを検索する。
印刷制御部32は、該当する第2テンプレートが第2テンプレート記憶部35にない場合には(ステップS43;No)、第1テンプレート記憶部34から、指定された第1テンプレートを読み出して(ステップS44)、ステップS46に移行する。ここで、第1テンプレート記憶部34に該当する第1テンプレートがない場合に、印刷制御部32は、基本テンプレート記憶部36から基本テンプレートを読み出してもよい。また、該当する第2テンプレートが、第2テンプレート記憶部35にあることを確認できた場合(ステップS43;Yes)、第2テンプレート記憶部35から第2テンプレートを読み出し(ステップS45)、ステップS46に移行する。
The print control unit 32 of the printer 3 receives the print command transmitted from the host computer 2 (step S41). The print control unit 32 refers to the data of the second template stored in the second template storage unit 35 (step S42), and the second template storage unit 35 stores the first template corresponding to the first template specified by the print command. It is confirmed whether there are two templates (step S43). In other words, the print control unit 32 searches the first storage unit 35 for a second template having the same name as the template included in the print command.
If there is no corresponding second template in the second template storage unit 35 (step S43; No), the print control unit 32 reads the designated first template from the first template storage unit 34 (step S44). ), The process proceeds to step S46. Here, when there is no corresponding first template in the first template storage unit 34, the print control unit 32 may read out the basic template from the basic template storage unit 36. If it can be confirmed that the corresponding second template is in the second template storage unit 35 (step S43; Yes), the second template is read from the second template storage unit 35 (step S45), and the process proceeds to step S46. Transition.

ステップS46では、印刷制御部32は、読み出したテンプレートに応じた印刷用データを生成する。例えば、印刷命令で指定されている第1テンプレートが“Fragile”の名前を付与されたものであった場合、第2テンプレート記憶部35から、同じテンプレート名“Fragile”を有するテンプレートが読み出され、印刷用データが生成される。上述したように、読み出された第2テンプレートは、第1テンプレート中、「Fragile」という文字列b4のデータが、カラー画像(記録要素)a5のデータに置き換えられたものである。
ステップS42〜S46では、印刷制御部32は、プリンター6のコマンド体系である第1のコマンド体系のコマンドを、プリンター11のコマンド体系である第2のコマンド体系のコマンドに変換して、プリンター11の記録を制御するエミュレーターとして動作する。
その後、印刷制御部32は、印刷実行部39を制御して、第2テンプレートにより指定される印刷形態に基づいて、ラベルの印刷を実行する(ステップS47)。
In step S46, the print control unit 32 generates print data corresponding to the read template. For example, when the first template specified in the print command is given the name “Fragile”, a template having the same template name “Fragile” is read from the second template storage unit 35. Print data is generated. As described above, the read second template is obtained by replacing the data of the character string b4 “Fragile” with the data of the color image (recording element) a5 in the first template.
In steps S <b> 42 to S <b> 46, the print control unit 32 converts the command of the first command system that is the command system of the printer 6 into the command of the second command system that is the command system of the printer 11. Operates as an emulator to control recording.
Thereafter, the print control unit 32 controls the print execution unit 39 to execute label printing based on the print form designated by the second template (step S47).

以上のように、プリンター3は、第1テンプレートを指定する印刷命令が入力された場合に、この第1テンプレートに対応する第2テンプレートに基づいた印刷を行う。すなわち、印刷に際し、プリンター6に対する印刷命令において指定される第1テンプレートを、第2テンプレートに置き換えてプリンター3が印刷を行う。第2テンプレートは、第1テンプレートT2に対して、変更、追加、及び削除の少なくとも一つ以上が施されたテンプレートであるから、プリンター3は、第1テンプレートに基づく印刷形態とは異なる印刷形態で記録を行うことができる。このため、プリンター6をプリンター3で置き換えることにより、ホストコンピューター2が出力する印刷命令を変更することなく、プリンター6が持たない機能を利用してラベルの印刷形態の変更を容易に行うことができる。
また、ホストコンピューター2が指定した第1テンプレートに対応する第2テンプレートが無い場合、プリンター3は、指定された第1テンプレートを取得して記録するので、指定された第1テンプレートに対応する第2テンプレートが無くても印刷を実行できるようになる。従って、必ずしも、全ての第1テンプレートに対応する第2テンプレートが用意されていなくてもよい。このため、一部の第1テンプレートについてのみ、第2テンプレートを使用するようにして印刷形態を変更することが可能となり、印刷形態の変更に係る制約を緩和し、より容易に印刷形態を変更できる。
As described above, the printer 3 performs printing based on the second template corresponding to the first template when a print command designating the first template is input. That is, at the time of printing, the printer 3 performs printing by replacing the first template specified in the print command for the printer 6 with the second template. Since the second template is a template in which at least one of change, addition, and deletion is applied to the first template T2, the printer 3 has a print form different from the print form based on the first template. Recording can be performed. For this reason, by replacing the printer 6 with the printer 3, it is possible to easily change the label printing form using a function that the printer 6 does not have, without changing the print command output by the host computer 2. .
If there is no second template corresponding to the first template designated by the host computer 2, the printer 3 acquires and records the designated first template, and therefore the second template corresponding to the designated first template. Printing can be executed without a template. Accordingly, the second templates corresponding to all the first templates do not necessarily have to be prepared. For this reason, it becomes possible to change the printing form by using the second template only for a part of the first templates, and it is possible to relax restrictions on changing the printing form and change the printing form more easily. .

さらに、第2テンプレートT3において、画像a6のデータの印刷形態を指定するデータとして印刷色を指定するデータが含まれる例を示したように、印刷システム1では、印刷に際して使用されるテンプレートを、印刷色を指定するデータを新たに追加した第2テンプレートに置き換えることにより、ホストコンピューター2が出力する印刷指示を変更しなくても印刷色を指定することが可能になる。これにより、ホストコンピューター2のソフトウェア構成等を変更することなく、出力表現の幅を広げることができる。本実施形態のように、例えば、モノクロのプリンター6に対応した第1テンプレートに代えて、第2テンプレートを用いることで、入力される印刷命令を変更することなく、カラー化により出力表現の幅を広げることが可能になる。   Further, in the second template T3, as shown in the example in which the data specifying the print color is included as the data specifying the print form of the data of the image a6, the printing system 1 prints the template used for printing. By replacing the data specifying the color with the newly added second template, the print color can be specified without changing the print instruction output by the host computer 2. Thereby, the range of output expression can be expanded without changing the software configuration or the like of the host computer 2. As in the present embodiment, for example, by using the second template instead of the first template corresponding to the monochrome printer 6, the width of the output expression can be increased by colorization without changing the input print command. It becomes possible to spread.

また、第2テンプレートは、印刷媒体であるラベルが有する印刷領域における枠a5、画像a6、文字列b5といったデータの位置及びサイズの少なくともいずれかを指定するデータを含む。このため、印刷に際して使用されるテンプレートを第2テンプレートに置き換えることにより、枠a5、画像a6、文字列b5の配置やサイズを柔軟に変更できるので、出力表現の幅をより一層広げることができる。   Further, the second template includes data designating at least one of the position and size of data such as a frame a5, an image a6, and a character string b5 in a print area of a label that is a print medium. Therefore, by replacing the template used for printing with the second template, the arrangement and size of the frame a5, the image a6, and the character string b5 can be flexibly changed, so that the width of the output expression can be further increased.

なお、上記説明では、図5を用いて第1及び第2テンプレートの一例について説明したが、本発明はこれに限定されない。第1テンプレートの他の例と、各第1テンプレートに対応する第2テンプレートの例について、図8〜図12を参照して説明する。   In the above description, an example of the first and second templates has been described with reference to FIG. 5, but the present invention is not limited to this. Another example of the first template and an example of the second template corresponding to each first template will be described with reference to FIGS.

図8には、第1テンプレートT2と、これに対応する第2テンプレートT4の各々に対応する印刷イメージG2、G4を例示する。この例の第1テンプレートT2、印刷イメージG2は、図5を参照して説明したものと同一である。
第2テンプレートT4は、第1テンプレートT2の印刷要素に、割れ物である注意喚起を促す画像a7のデータを印刷要素として加え、さらに、画像a7の印刷形態(印刷色及び印刷位置)を指定するデータを追加したものである。この画像a7の位置は、文字列b4や文字列b5と重ならない位置に指定されている。
このため、第2テンプレートT4に基づいた印刷イメージG4は、印刷イメージG2にないカラーの画像a7を配置したものとなる。
この図8に示す第2テンプレートT4は、画像a7のデータとその印刷形態を指定するデータを、第1テンプレートT2に新たに追加したものである。このため、ホストコンピューター2が出力した印刷命令で指定される第1テンプレートT2を、第2テンプレートT4に置き換えることにより、画像を追加して出力表現の幅を広げることができる。
FIG. 8 illustrates print images G2 and G4 corresponding to the first template T2 and the second template T4 corresponding to the first template T2. The first template T2 and the print image G2 in this example are the same as those described with reference to FIG.
The second template T4 adds the data of the image a7 that calls attention to being a crack to the printing elements of the first template T2, and further specifies the printing form (printing color and printing position) of the image a7. Is added. The position of the image a7 is designated as a position that does not overlap the character string b4 or the character string b5.
Therefore, the print image G4 based on the second template T4 is obtained by arranging a color image a7 that is not in the print image G2.
The second template T4 shown in FIG. 8 is obtained by newly adding data for the image a7 and data for specifying the printing form to the first template T2. Therefore, by replacing the first template T2 specified by the print command output by the host computer 2 with the second template T4, it is possible to add an image and widen the range of output expression.

図9には、第1テンプレートT2と、これに対応する第2テンプレートT6の各々に対応する印刷イメージG2、G5を例示する。この例の第1テンプレートT2、印刷イメージG2は、図5を参照して説明したものと同一である。
第2テンプレートT5は、第1テンプレートT2において、文字列b4の印刷色を指定するデータが追加されたテンプレートである。このため、この第2テンプレートT5に基づいて印刷した場合の印刷イメージG5は、モノクロの印刷イメージG2の文字列b4が、例えば、赤や青といった指定色に色付けられたものとなる。
FIG. 9 illustrates print images G2 and G5 corresponding to the first template T2 and the second template T6 corresponding to the first template T2. The first template T2 and the print image G2 in this example are the same as those described with reference to FIG.
The second template T5 is a template in which data specifying the print color of the character string b4 is added to the first template T2. For this reason, the print image G5 when printed based on the second template T5 is obtained by coloring the character string b4 of the monochrome print image G2 to a designated color such as red or blue.

図10には、第1テンプレートT6と、これに対応する第2テンプレートT7との各々に対応する印刷イメージG6、G7を例示する。
第1テンプレートT6は、図5を参照して説明した第1テンプレートT2において、割れ物である注意喚起を促す画像a8のデータ(印刷要素のデータ)と、その印刷形態を指定するデータが追加されたものである。第1テンプレートT6には印刷色を指定するデータは含まれていない。
また、第1テンプレートT6に対応する第2テンプレートT7は、第1テンプレートT6において、画像a8のデータの印刷色を指定するデータを含ませたものである。
第2テンプレートT7に基づいた印刷イメージG7は、第1テンプレートT6に基づいた印刷イメージG6におけるモノクロの画像a8をカラー化して、画像a9としたものとなる。
FIG. 10 illustrates print images G6 and G7 corresponding to the first template T6 and the second template T7 corresponding to the first template T6.
In the first template T6 described with reference to FIG. 5, the first template T6 is added with data (print element data) of an image a8 that prompts a warning that is a broken object, and data that specifies the print form. Is. The first template T6 does not include data for specifying the print color.
A second template T7 corresponding to the first template T6 includes data specifying the print color of the data of the image a8 in the first template T6.
The print image G7 based on the second template T7 is obtained by coloring the monochrome image a8 in the print image G6 based on the first template T6 into an image a9.

これら図9及び図10の例に示したように、第2テンプレートT5、T7は、第1テンプレートT2、T6において、印刷要素のデータの一部について、第1テンプレートT2、T6にはない印刷形態を指定するデータを新たに追加したものである。これらの例によれば、ホストコンピューター2がプリンター6に対して出力する印刷命令で指定される第1テンプレートT2、T6に代えて、第2テンプレートT5、T7を用いることにより、出力表現の幅を一層広げることができる。   As shown in the examples of FIGS. 9 and 10, the second templates T5 and T7 have a printing form that is not in the first templates T2 and T6 in the first templates T2 and T6. This is a new addition of data that specifies. According to these examples, by using the second templates T5 and T7 instead of the first templates T2 and T6 specified by the print command output from the host computer 2 to the printer 6, the width of the output expression can be increased. It can be expanded further.

図7〜図10には、第2テンプレートが、対応する第1テンプレートにおいて印刷要素の印刷形態を指定するデータの変更、追加、及び削除等を施したものとしたが、本発明はこれらの例に限定されない。
図11には、(A)第1テンプレートT8と、これに対応する(B)第2テンプレートT9と、各テンプレートに対応する印刷イメージG8、G9を例示する。
図11(A)の第1テンプレートT8は、ラベルに印刷する印刷要素として、画像40、文字41、及び枠42を含んでいる。第1テンプレートT8のデータには、画像40の画像データ、画像40のサイズ及び位置を指定するデータが含まれ、文字41の文字コード、フォント、サイズ及び位置を指定するデータが含まれる。また、枠42は文字を挿入するための枠として設けられている。第1テンプレートT8のデータには、枠42に挿入される文字のデータすなわち文字コードは含まれていないが、枠42における文字のフォント、サイズ及び位置を指定するデータが含まれる。
In FIGS. 7 to 10, the second template is obtained by changing, adding, and deleting data specifying the print form of the print element in the corresponding first template. It is not limited to.
FIG. 11 illustrates (A) a first template T8, (B) a second template T9 corresponding to the first template T8, and print images G8 and G9 corresponding to each template.
The first template T8 in FIG. 11A includes an image 40, characters 41, and a frame 42 as print elements to be printed on the label. The data of the first template T8 includes image data of the image 40, data specifying the size and position of the image 40, and data specifying the character code, font, size, and position of the character 41. The frame 42 is provided as a frame for inserting characters. The data of the first template T8 does not include character data to be inserted into the frame 42, that is, character code, but includes data specifying the font, size, and position of the character in the frame 42.

第1テンプレートを使用する場合、ホストコンピューター2は、印刷命令のコマンドとともに、第1テンプレートの名称を指定するデータと、枠42に挿入する文字の文字コードを含むデータとを、出力する。図11(A)の例では、枠42に住所データを挿入可能となっており、ホストコンピューター2は、第1テンプレートT8の名称“Summer”と、枠42に挿入する住所データ“123 XX Street,12345”を、印刷命令とともに出力する。   When using the first template, the host computer 2 outputs the data specifying the name of the first template and the data including the character code of the character to be inserted into the frame 42 together with the print command. In the example of FIG. 11A, the address data can be inserted into the frame 42, and the host computer 2 uses the name “Summer” of the first template T8 and the address data “123 XX Street, 12345 ″ is output together with the print command.

この第1テンプレートT8に対応する第2テンプレートT9は、図11(B)に示すように、印刷要素として、画像50、文字51、及び枠42を含んでいる。第2テンプレートT9のデータには、画像50の画像データと、画像50のサイズ及び位置を指定するデータが含まれ、文字51の文字コード、フォント、サイズ及び位置を指定するデータが含まれる。画像50は画像40を置き換える画像データであり、文字51は文字41を置き換えるデータである。画像50及び文字51は、ラベルのサイズに収まる範囲で配置可能であれば、画像40及び文字41とサイズ、位置、フォントが揃っている必要はなく、任意のサイズ、位置、フォントを設定できる。
さらに、プリンター3はカラー印刷が可能であるから、第2テンプレートT9は、画像50の印刷色を指定するデータ、及び、文字51の印刷色を指定するデータを含む。
As shown in FIG. 11B, the second template T9 corresponding to the first template T8 includes an image 50, characters 51, and a frame 42 as printing elements. The data of the second template T9 includes image data of the image 50 and data specifying the size and position of the image 50, and includes data specifying the character code, font, size, and position of the character 51. The image 50 is image data that replaces the image 40, and the character 51 is data that replaces the character 41. As long as the image 50 and the character 51 can be arranged within the range of the label size, the image 40 and the character 41 do not need to have the same size, position, and font, and an arbitrary size, position, and font can be set.
Furthermore, since the printer 3 can perform color printing, the second template T9 includes data for specifying the print color of the image 50 and data for specifying the print color of the character 51.

また、第2テンプレートT9は、印刷要素として枠52を含む。枠52は第1テンプレートT8が有する枠42と同サイズ、同位置に配置され、文字を挿入可能な枠である。この枠52には、枠42と同じ文字数の文字を挿入して印刷できる。従って、ホストコンピューター2が、第1テンプレートT8の名称と枠42に挿入する文字のデータとを出力した場合に、プリンター3は、枠42に挿入する文字(ここでは住所データ)の全てを、枠52に挿入して印刷できる。このように、第2テンプレートは、ホストコンピューター2が印刷命令とともに出力するデータにより動的にデータが挿入または変更される枠については、第1テンプレートと少なくとも同じデータを挿入可能な枠を有することが好ましい。その上で、テンプレートに固定的に含まれる文字や画像については、ラベルの印刷面の印刷領域を逸脱しない範囲で、変更してもよい。例えば、印刷イメージG8がラベルの半分を占めるサイズである場合に、印刷イメージG9の印刷サイズが、1枚のラベルのほぼ全面となるようにしてもよい。   The second template T9 includes a frame 52 as a printing element. The frame 52 is a frame that is arranged in the same size and the same position as the frame 42 of the first template T8 and into which characters can be inserted. In this frame 52, the same number of characters as the frame 42 can be inserted and printed. Accordingly, when the host computer 2 outputs the name of the first template T8 and the character data to be inserted into the frame 42, the printer 3 converts all the characters to be inserted into the frame 42 (here, address data) into the frame. 52 can be inserted and printed. As described above, the second template may have a frame in which at least the same data as the first template can be inserted with respect to a frame in which the data is dynamically inserted or changed by the data output from the host computer 2 together with the print command. preferable. In addition, characters and images that are fixedly included in the template may be changed without departing from the printing area on the printing surface of the label. For example, when the print image G8 has a size that occupies half of the label, the print size of the print image G9 may be substantially the entire surface of one label.

そして、第1テンプレートT8の印刷イメージG8と、第2テンプレートT9の印刷イメージG9とを比較すると、画像a10と画像a12、及び、文字b6と文字b7は、大きく異なっていてもよい。また、文字c2は、フォントやサイズを文字c1と一致させる必要はなく、同じ文字数を印刷できればよいので、異なるフォント、サイズとしてもよい。   When the print image G8 of the first template T8 and the print image G9 of the second template T9 are compared, the image a10 and the image a12, and the character b6 and the character b7 may be greatly different. The character c2 does not need to have the same font and size as the character c1 and can print the same number of characters, and therefore may have a different font and size.

テンプレート端末5を用いて第2テンプレートを作成する作業は、2通りの方法で行うことができる。すなわち、テンプレート端末5が第1テンプレートを読み込んで作業する方法と、第1テンプレートを流用しないで新規のテンプレートを作成する方法である。図11に示した例では文字41や画像40を、大きく異なる文字51や画像50に変更することも可能であり、このような場合には新規のテンプレートを作成する方法がより容易であるといえる。   The operation of creating the second template using the template terminal 5 can be performed in two ways. That is, there are a method in which the template terminal 5 reads the first template and works, and a method of creating a new template without diverting the first template. In the example shown in FIG. 11, it is possible to change the character 41 or the image 40 to a greatly different character 51 or image 50. In such a case, it can be said that a method of creating a new template is easier. .

また、印刷システム1において、ホストコンピューター2が出力する印刷命令により、プリンター3、6が記憶する別のデータがテンプレートとともに指定され、プリンター3、6が指定されたデータをテンプレートに当てはめて印刷することもできる。図12は、この印刷処理の説明図である。
第1テンプレートにおいて、印刷要素の画像データや文字データ及び各印刷要素の印刷態様を指定するデータに加え、テンプレートにはめ込んで印刷する画像データのファイル名を含ませることが可能である。プリンター6は、第1テンプレートとともに、例えば図12(A)の画像a14のデータを記憶している。そして、ホストコンピューター2が出力する印刷命令で指定された第1テンプレートが、画像a14のファイル名“sun”を含む場合、この画像a14のデータが読み出されて、第1テンプレート中の他の印刷要素とともに印刷される。
In the printing system 1, another data stored in the printers 3 and 6 is specified together with the template by the print command output from the host computer 2, and the printer 3 and 6 applies the specified data to the template for printing. You can also. FIG. 12 is an explanatory diagram of this printing process.
In the first template, in addition to the image data and character data of the print element and the data specifying the print mode of each print element, it is possible to include the file name of image data to be printed by being embedded in the template. The printer 6 stores, for example, data of an image a14 in FIG. 12A together with the first template. When the first template specified by the print command output from the host computer 2 includes the file name “sun” of the image a14, the data of the image a14 is read out and another print in the first template is performed. Printed with the element.

このような第1テンプレートに対応する第2テンプレートは、画像a14のファイル名“sun”を含むよう作成される。さらに、図12(B)に示す別の画像a15に、画像a14と同じファイル名“sun”を付けて第2テンプレート記憶部35に記憶してもよい。この場合、ホストコンピューター2が出力する印刷命令及びデータを変えることなく、実際に印刷される印刷イメージG10(図12(C))の文字a16、a17及び画像a15を、もとの第1テンプレートとは異なる文字及び画像に変えることができる。また、上記の例と同様に、第2テンプレートには、文字a16、a17及び画像a15の印刷色を指定するデータを新たに含めることが可能であり、容易にカラー化したラベルを印刷できる。
また、ホストコンピューター2が出力するデータに画像データのファイル名が含まれず、第1テンプレートにファイル名が含まれる場合には、図12(B)に示すように新たに用いる画像データに同じファイル名を付ける必要はない。第2テンプレートに含まれるファイル名と同じファイル名の画像データが第2テンプレート記憶部35に記憶されていればよい。
The second template corresponding to the first template is created so as to include the file name “sun” of the image a14. Furthermore, another image a15 shown in FIG. 12B may be stored in the second template storage unit 35 with the same file name “sun” as the image a14. In this case, the characters a16 and a17 and the image a15 of the print image G10 (FIG. 12C) that are actually printed without changing the print command and data output by the host computer 2 are used as the original first template. Can be changed to different characters and images. Similarly to the above example, the second template can newly include data specifying the print colors of the characters a16, a17 and the image a15, and can easily print a colored label.
If the file name of the image data is not included in the data output from the host computer 2 and the file name is included in the first template, the same file name is used for the newly used image data as shown in FIG. There is no need to add. The image data having the same file name as the file name included in the second template may be stored in the second template storage unit 35.

以上、本発明の実施形態について説明したが、本発明は、これに限定されるものではない。例えば、上記実施形態では、プリンター3が有する第2テンプレート記憶部35に記憶される第2テンプレートに、対応する第1テンプレートと同じ名称を付与することで、第1テンプレートと第2テンプレートとを対応づけた例を説明したが、本発明はこれに限定されるものではなく、第1テンプレートと第2テンプレートとの対応を定義する情報を、記憶部33や他の記憶部に記憶してもよい。この場合、印刷制御部32は、ホストコンピューター2が送信した印刷命令で指定された第1テンプレートに対応する第2テンプレートを、上記情報に基づいて選択すればよく、テンプレートの名称を同一にする必要はない。
また、上記実施形態では、印刷命令で指定された第1テンプレートに対応する第2テンプレートが第2テンプレート記憶部35に格納されていない場合に、第1テンプレートを第1テンプレート記憶部34から取得して、印刷用データを生成する構成を例に挙げて説明したが、印刷命令とともに送信されるデータの内容や、印刷命令に含まれるコマンドのパラメーター等により、第1テンプレートを用いるか第2テンプレートを用いるかを判定し、第1テンプレートと第2テンプレートとを選択的に使用して印刷用データを生成してもよい。
また、上記実施形態では、プリンター3によりラベルを印刷する場合を例に挙げて説明したが、その他の印刷媒体や記録媒体を用いて記録物を記録する場合にも本発明を適用可能であることは勿論である。
As mentioned above, although embodiment of this invention was described, this invention is not limited to this. For example, in the above embodiment, the first template and the second template are associated with each other by assigning the same name as the corresponding first template to the second template stored in the second template storage unit 35 of the printer 3. However, the present invention is not limited to this example, and information defining the correspondence between the first template and the second template may be stored in the storage unit 33 or another storage unit. . In this case, the print control unit 32 may select the second template corresponding to the first template specified by the print command transmitted from the host computer 2 based on the above information, and the template names need to be the same. There is no.
In the above embodiment, when the second template corresponding to the first template specified by the print command is not stored in the second template storage unit 35, the first template is acquired from the first template storage unit 34. The configuration for generating print data has been described as an example. However, the first template is used or the second template is selected depending on the content of data transmitted together with the print command, the parameter of the command included in the print command, or the like. It may be determined whether to use, and print data may be generated by selectively using the first template and the second template.
In the above embodiment, the case where the label is printed by the printer 3 has been described as an example. However, the present invention can also be applied to the case where the recorded matter is recorded using another print medium or recording medium. Of course.

また、ブロック図に示した各機能ブロックは、ハードウェアとソフトウェアとの協働により実現されるものであって、具体的なハードウェアの実装形態やソフトウェアの仕様等は任意であり、その他の細部構成についても任意に変更可能である。また、プリンター3は、印刷を実行可能なものであれば具体的な構成は特に限定されず、SIDM方式のプリンター、インクジェット式のプリンター、サーマルプリンター、レーザープリンター等、各種の装置を適用可能であり、独立して使用される機器に限らず、他の機器(ATM(Automated Teller Machine)やCD(Cash Dispenser)等)に組み込まれた装置に本発明を適用することも勿論可能である。さらに、本発明のデータ処理装置は、処理手段としての印刷制御部32を備えたプリンター3に限定されず、プリンター3とは別に設けられたコンピューター等の装置によって、印刷用のデータを生成する場合に、当該装置に本発明のデータ処理装置を適用することも可能である。   Each functional block shown in the block diagram is realized by cooperation between hardware and software, and the specific hardware implementation form, software specifications, etc. are arbitrary, and other details The configuration can be arbitrarily changed. The specific configuration of the printer 3 is not particularly limited as long as it can execute printing, and various apparatuses such as a SIDM printer, an ink jet printer, a thermal printer, and a laser printer can be applied. Of course, the present invention is not limited to a device that is used independently, but can be applied to other devices (such as an ATM (Automated Teller Machine) or a CD (Cash Dispenser)). Furthermore, the data processing apparatus of the present invention is not limited to the printer 3 having the print control unit 32 as a processing means, and when printing data is generated by an apparatus such as a computer provided separately from the printer 3. In addition, the data processing apparatus of the present invention can be applied to the apparatus.

1…印刷システム、2…ホストコンピューター、3…プリンター(記録装置)、34…第1テンプレート記憶部(第1の記憶手段)、32…印刷制御部(記録制御手段)、35…第2テンプレート記憶部(第2の記憶手段)、39…印刷実行部(記録手段)、T2、T6、T8…第1テンプレート、T3、T4、T5、T7、T9…第2テンプレート。   DESCRIPTION OF SYMBOLS 1 ... Printing system, 2 ... Host computer, 3 ... Printer (recording device), 34 ... 1st template memory | storage part (1st memory | storage means), 32 ... Print control part (recording control means), 35 ... 2nd template memory | storage Part (second storage means), 39... Print execution part (recording means), T2, T6, T8... First template, T3, T4, T5, T7, T9.

Claims (8)

媒体への印刷を実行する印刷実行部と、
印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、
前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備え、
前記制御部は、
前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、
前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる、
とを特徴とするプリンター
A print execution unit that executes printing on a medium ;
A control unit for obtaining a template including information for specifying a print form of data of the print element ;
A storage unit for holding data related to the printing by the printing execution unit,
The controller is
The first template is acquired as the template, and the command for changing the information specifying the printing form included in the first template or the command for adding the information specifying the printing form to the first template is received. A second template in which information specifying the printing form is changed or added to the first template based on the command is stored in the storage unit in association with the first template;
When receiving a print command including information for designating the first template to obtain a pre-Symbol second template from said storage unit, said printing unit based on the acquired and the second template and the print command Control to execute printing,
Printer that features a call.
請求項1記載のプリンターであって、
前記記憶部は前記第1テンプレートを保持し、
前記制御部は、前記印刷命令を受信したときに、前記第2テンプレートが前記記憶部に保持されていない場合は、前記第1テンプレートを取得し、前記第1テンプレート及び前記印刷命令に基づいて前記印刷実行部を制御して印刷を実行させることを特徴とするプリンター
The printer according to claim 1,
The storage unit holds the first template,
Wherein, upon receiving the print command, when said second template is not held in the storage unit, it acquires the previous SL first template, based on the first template and the print command printer, characterized in that to execute printing by controlling the printing unit.
請求項1または請求項2のいずれか一項に記載のプリンターであって、
前記第2テンプレートは、変更、または追加された前記印刷形態を指定する情報として、前記第1テンプレートにおける印刷色と異なる印刷色を指定する情報有することを特徴とするプリンター
The printer according to any one of claims 1 and 2 ,
The second template is changed or as information for specifying the added the printing form, the printer characterized by having information to specify a print color different from the print color of the first template.
請求項1乃至3のいずれか一項に記載のプリンターであって、
記テンプレートは、前記印刷要素のデータの印刷形態を指定する情報として、前記媒体の印刷領域における前記印刷要素の位置及びサイズの少なくともいずれかを指定する情報有することを特徴とするプリンター
The printer according to any one of claims 1 to 3 ,
Printer Before Kite Plates as information specifying the print form of the data of the printing element, characterized in that it comprises information specifying at least one of the position and size of the printing element in the printing area of the medium .
請求項1乃至4のいずれか一項に記載のプリンターであって、The printer according to any one of claims 1 to 4,
前記制御部は、前記第2テンプレートを、前記第1テンプレートを構成する第1コマンド体系と異なる第2コマンド体系に変換して、前記記憶部に記憶させることを特徴とするプリンター。The printer, wherein the control unit converts the second template into a second command system different from the first command system constituting the first template, and stores the second command system in the storage unit.
請求項5に記載のプリンターであって、The printer according to claim 5,
前記印刷命令は前記第1コマンド体系で構成され、The print command is composed of the first command system,
前記第1テンプレートを指定する情報は、前記第1コマンド体系に含まれるコマンドであることを特徴とするプリンター。The printer is characterized in that the information specifying the first template is a command included in the first command system.
請求項1乃至6のいずれか一項に記載のプリンターであって、The printer according to any one of claims 1 to 6,
前記第1テンプレートの名称と前記第2テンプレートの名称とは、同一の文字列を含む、ことを特徴とするプリンター。The name of the first template and the name of the second template include the same character string.
媒体への印刷を実行する印刷実行部と、印刷要素のデータの印刷形態を指定する情報を含むテンプレートを取得する制御部と、前記印刷実行部による前記印刷に係るデータを保持する記憶部と、を備えるプリンターの制御方法であって、
前記テンプレートとして第1テンプレートを取得し、前記第1テンプレートに含まれる前記印刷形態を指定する情報を変更するコマンド、もしくは、前記第1テンプレートに前記印刷形態を指定する情報を追加するコマンドを受信したとき、前記コマンドに基づいて前記第1テンプレートに対して前記印刷形態を指定する情報が変更、または追加された第2テンプレートを前記第1テンプレートに対応付けて前記記憶部に記憶し、
前記第1テンプレートを指定する情報を含む印刷命令を受信した場合に、前記第2テンプレートを前記記憶部から取得し、取得した前記第2テンプレートと前記印刷命令とに基づいて前記印刷実行部を制御して印刷を実行させる
ことを特徴とするプリンターの制御方法。
A print execution unit that executes printing on a medium, a control unit that acquires a template that includes information for specifying a print mode of data of a print element, a storage unit that holds data related to the printing by the print execution unit , A method for controlling a printer comprising :
The first template is acquired as the template, and the command for changing the information specifying the printing form included in the first template or the command for adding the information specifying the printing form to the first template is received. A second template in which information specifying the printing form is changed or added to the first template based on the command is stored in the storage unit in association with the first template;
When receiving a print command including information for designating the first template to obtain a pre-Symbol second template from said storage unit, said printing unit based on the acquired and the second template and the print command A method for controlling a printer , characterized in that printing is performed under control.
JP2016170491A 2016-09-01 2016-09-01 Printer and printer control method Active JP6202168B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016170491A JP6202168B2 (en) 2016-09-01 2016-09-01 Printer and printer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016170491A JP6202168B2 (en) 2016-09-01 2016-09-01 Printer and printer control method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2012189077A Division JP5998753B2 (en) 2012-08-29 2012-08-29 Recording apparatus and method for controlling recording apparatus

Publications (2)

Publication Number Publication Date
JP2017024418A JP2017024418A (en) 2017-02-02
JP6202168B2 true JP6202168B2 (en) 2017-09-27

Family

ID=57950344

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016170491A Active JP6202168B2 (en) 2016-09-01 2016-09-01 Printer and printer control method

Country Status (1)

Country Link
JP (1) JP6202168B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0839887A (en) * 1994-07-28 1996-02-13 Fujitsu Ltd Multicolor printing device
JP2002014792A (en) * 2000-06-28 2002-01-18 Hitachi Ltd Color print system for monochromatic document
JP2003118169A (en) * 2001-10-11 2003-04-23 Toshiba Tec Corp Programmable bar code reader
JP2009064243A (en) * 2007-09-06 2009-03-26 Seiko Epson Corp Document management device, document management method, and document management program
JP2010099849A (en) * 2008-10-21 2010-05-06 Seiko Epson Corp Printing apparatus, controlling method and controlling program for printing apparatus

Also Published As

Publication number Publication date
JP2017024418A (en) 2017-02-02

Similar Documents

Publication Publication Date Title
JP2006228066A (en) Printing system and document management system
US9830540B2 (en) Printing device and control method of printing device
JP6024168B2 (en) Data processing apparatus, recording apparatus, and control method for data processing apparatus
JP4627683B2 (en) Printing system, printing system control method and program
JP6213624B2 (en) Recording apparatus and method for controlling recording apparatus
JP6202168B2 (en) Printer and printer control method
US8908226B2 (en) Information processing device, control method of an information processing device, and storage medium storing a program executed by a control unit of the information processing device
JP5974737B2 (en) Recording apparatus and method for controlling recording apparatus
JP5998753B2 (en) Recording apparatus and method for controlling recording apparatus
JP6766396B2 (en) Print control system
JP6060774B2 (en) Printing apparatus, printing apparatus control method, and program
JP2005222267A (en) Print controller, print control method, program and recording medium remote management system
JP2000284922A (en) Printer and printing system
JP2017087732A (en) Printing device, control method of printing device, and program
JP2014197309A (en) Print control unit, printer, data processing method, and program

Legal Events

Date Code Title Description
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: 20170801

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170814

R150 Certificate of patent or registration of utility model

Ref document number: 6202168

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150