JP5857656B2 - CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM - Google Patents

CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM Download PDF

Info

Publication number
JP5857656B2
JP5857656B2 JP2011250272A JP2011250272A JP5857656B2 JP 5857656 B2 JP5857656 B2 JP 5857656B2 JP 2011250272 A JP2011250272 A JP 2011250272A JP 2011250272 A JP2011250272 A JP 2011250272A JP 5857656 B2 JP5857656 B2 JP 5857656B2
Authority
JP
Japan
Prior art keywords
image data
registered
identification information
file name
registered image
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
JP2011250272A
Other languages
Japanese (ja)
Other versions
JP2013105407A5 (en
JP2013105407A (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 JP2011250272A priority Critical patent/JP5857656B2/en
Publication of JP2013105407A publication Critical patent/JP2013105407A/en
Publication of JP2013105407A5 publication Critical patent/JP2013105407A5/ja
Application granted granted Critical
Publication of JP5857656B2 publication Critical patent/JP5857656B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Storing Facsimile Image Data (AREA)

Description

本発明は、記憶した登録画像データに基づいて画像を記録可能な記録装置に接続可能な制御装置、当該制御装置の制御方法、及び、当該制御装置を制御するためのプログラムに関する。   The present invention relates to a control device that can be connected to a recording device capable of recording an image based on stored registered image data, a control method for the control device, and a program for controlling the control device.

従来、レシートにトップロゴ等のロゴを記録する記録装置が知られている(例えば、特許文献1参照)。
この種の記録装置では、予め、ロゴの画像データ(以下、「登録画像データ」という。)を記憶(登録)しておき、ロゴを記録媒体に記録する場合、自身に登録された当該ロゴに係る登録画像データに基づいて記録を実行するものがある。
Conventionally, a recording apparatus that records a logo such as a top logo on a receipt is known (see, for example, Patent Document 1).
In this type of recording apparatus, logo image data (hereinafter referred to as “registered image data”) is stored (registered) in advance, and when the logo is recorded on a recording medium, the logo registered in itself is stored in the logo. Some perform recording based on such registered image data.

特開2005−228021号公報Japanese Patent Laid-Open No. 2005-228021

ところで、通常、記録装置への登録画像データの登録は、当該記録装置に接続された制御装置(ホストコンピューター等)にインストールされたプリンタードライバー(制御プログラム)の機能を利用して、当該制御装置により行われる。また、通常、記録装置は、複数の登録画像データを記憶し、いずれかの登録画像データに基づいて選択的に画像を記録可能な構成となっている。
ここで、記録装置において、登録画像データが記憶される記憶領域のサイズは、有限である。従って、制御装置による登録画像データの登録に際し、できるだけ記録装置の記憶領域を効率的に使用し、記憶領域の空き領域不足で登録画像データの登録ができないといった事態が発生することを防止したいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、記録装置への登録画像データの登録に際し、記憶領域をできるだけ効率的に使用することを目的とする。
By the way, registration of registered image data in a recording device is usually performed by the control device using a function of a printer driver (control program) installed in a control device (such as a host computer) connected to the recording device. Done. In general, the recording apparatus is configured to store a plurality of registered image data and selectively record an image based on any registered image data.
Here, in the recording apparatus, the size of the storage area in which the registered image data is stored is finite. Accordingly, when registering registered image data by the control device, it is desired to efficiently use the storage area of the recording device as much as possible, and to prevent the occurrence of a situation in which the registration image data cannot be registered due to insufficient storage area. There is a need.
The present invention has been made in view of the above-described circumstances, and an object of the present invention is to use a storage area as efficiently as possible when registering registered image data in a recording apparatus.

本発明の制御装置は、制御プログラムを実行し、記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、前記記録装置の記憶領域に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して記憶する記憶部と、アプリケーションを実行し、記録媒体に記録する画像に関する画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、前記アプリケーション実行部は、第2の登録画像データの第2のファイル名及び第2の識別情報を前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記第2のファイル名及び前記第2の識別情報が、前記記憶部に記憶された第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に登録された前記第1の登録画像データを前記記憶領域から消去させることを特徴とする。
また、本発明の制御装置は、前記制御プログラム実行部は、前記記録装置の前記記憶領域に前記第2の登録画像データを記憶する空き領域が確保されるか否かを判別し、確保される場合は、前記第2の登録画像データの登録を行い、確保されない場合は、前記第2の登録画像データの登録を行わない。
また、本発明の制御装置は、前記制御プログラム実行部は、前記第2の登録画像データの登録を行わなかったときに、前記第2の登録画像データに係る画像の記録を前記記録装置に行わせる場合、前記第2の登録画像データに係る画像データを含む制御コマンドを生成し、出力して前記記録装置に、当該制御コマンドに含まれる前記画像データに基づいて画像を記録させる。
また、本発明の制御装置は、前記制御プログラム実行部は、前記登録処理において、前記アプリケーション実行部から前記第2のファイル名及び前記第2の識別情報が入力されたとき、前記第2のファイル名に係る画像データと前記第1のファイル名に係る画像データとが同一性を有するか否かを判別し、同一性を有する場合、前記第2の登録画像データの前記記録装置への登録を行わず、前記第1の登録画像データと、前記第2の識別情報との対応付けを前記記録装置に行わせる。
また、本発明の制御装置の制御方法は、記録装置に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して制御装置で記憶し、アプリケーションで第2の登録画像データの第2のファイル名及び第2の識別情報を制御プログラムに出力し、前記制御プログラムで、前記アプリケーションから入力された前記第2のファイル名及び前記第2の識別情報が、前記制御装置で記憶された前記第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に、前記第1の登録画像データを記憶領域から消去させることを特徴とする。
また、本発明のプログラムは、記録装置に接続可能な制御装置を制御する制御部により実行されるプログラムであって、記録装置に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して制御装置で記憶させ、アプリケーションで第2の登録画像データの第2のファイル名及び第2の識別情報を出力したときに、入力された前記第2のファイル名及び第2の前記識別情報が、記憶された前記第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に、前記記録装置に登録された前記第1の登録画像データを記憶領域から消去させて前記第2の登録画像データを記憶させる制御部と、として機能させることを特徴とする。
上記目的を達成するために、本発明は、登録画像データを記憶し、前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能な制御装置であって、制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、前記記録装置に、前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部は、前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、前記記録装置に、出力することにより当該識別情報と対応する前記登録画像データに基づいて画像を記録させ、前記記録装置に、前記登録画像データを登録する登録処理を行う場合、前記アプリケーション実行部は、前記登録画像データとして登録しようとしている画像データのファイル名、及び、前記登録画像データを識別するための識別情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された当該ファイル名、及び、当該識別情報のそれぞれが、過去に行った前記登録処理におけるファイル名、及び、識別情報のそれぞれと同じか否か判別し、同じ場合、前記記録装置に、当該過去に行った前記登録処理において前記記録装置に登録された前記登録画像データを記憶領域から消去させることを特徴とする。
ここで、ある特定の目的で記録媒体に記録される画像については、その画像の内容を変更すべく、変更後の画像に係る登録画像データを登録する場合、変更前の画像に係る登録画像データを記憶領域から削除してもよい場合がある。例えば、レシートのトップロゴについて、その内容を変更すべく、変更後のトップロゴに係る登録画像データを登録する場合、以後は変更前のトップロゴを記録しないため、変更前のトップロゴに係る登録画像データは、記憶領域から削除してもよい。
また、上記構成のように、アプリケーション実行部と、制御プログラム実行部とが協働して記録装置に登録画像データを登録するものでは、登録に際し、事前に、所定のファイル名の画像データが準備され、アプリケーション実行部から、制御プログラム実行部に対して、当該ファイル名が出力される。その際、上述したケースのように、特定の目的で記録媒体に記録される画像の内容を変更すべく、変更後の画像に係る登録画像データを登録する場合、事前に準備される画像データのファイル名は、変更前に係るものと、変更後に係るものとで共通化されるものと考えられる。なぜなら、そうすることにより、画像の内容の変更にかかわらず特定の目的の画像に係る画像データのファイル名を統一することができ、画像データの管理が容易であり、また、画像の内容を変更する場合、画像データのファイル名を変更することなく、画像データを編集すればよいこととなり、そうしない場合と比較して、格段に利便性がよいからである。
また、上記構成のように、アプリケーション実行部と、制御プログラム実行部とが協働して記録装置に画像を記録させるものでは、画像の記録に際し、アプリケーション実行部からプリンタードライバーに出力する情報をできるだけ変更しないようにし、これにより、アプリケーションに対する改変を行わないで済むようにしたいとするニーズがある。
以上を踏まえ、上記構成によれば、登録処理に際し、制御プログラム実行部は、アプリケーション実行部から入力されたファイル名、及び、識別情報のそれぞれが、過去に行った登録処理におけるファイル名、及び、識別情報のそれぞれと同じ場合、共通の目的で記録媒体に記録される画像について、画像の内容を変更すべく登録処理が行われているものとして、当該過去に行った登録処理にて登録された登録画像データを消去させる。このため、特定の目的で記録媒体に記録される画像の内容を変更すべく、変更後の画像に係る登録画像データを登録する場合、事前に準備される画像データのファイル名は、変更前に係るものと、変更後に係るものとで共通化されることを利用して、以後使用しない登録画像データを削除した上で、新たに登録しようとしている登録画像データを記憶されることが可能となり、記憶領域の効率的な使用が可能となる。さらに、上記構成によれば、新たに登録した登録画像データに基づく画像の記録を記録装置に行わせる場合、アプリケーション実行部から制御プログラム実行部に出力されるファイル名、及び、識別情報は、登録前と同じであるため、当該登録に起因したアプリケーションに対する改変を行う必要がない。
The control device of the present invention executes a control program, outputs a control command to the recording device to control the recording device, and first registered image data registered in a storage area of the recording device A storage unit that acquires and stores the first file name and the first identification information, and an application that executes the application, generates image information about an image to be recorded on the recording medium, and outputs the image information to the control program execution unit The application execution unit outputs a second file name and second identification information of the second registered image data to the control program execution unit, and the control program execution unit receives the input Determining whether the second file name and the second identification information are the same as the first file name and the first identification information stored in the storage unit , The same case, characterized in that to erase the first registration image data registered in the recording apparatus from the storage area.
In the control device of the present invention, the control program execution unit determines whether or not a free area for storing the second registered image data is secured in the storage area of the recording device. In this case, the second registered image data is registered. If the second registered image data is not secured, the second registered image data is not registered.
In the control device of the present invention, the control program execution unit records an image related to the second registered image data in the recording device when the second registered image data is not registered. In the case of generating the control command, a control command including image data related to the second registered image data is generated and output to cause the recording apparatus to record an image based on the image data included in the control command.
In the control device of the present invention, the control program execution unit may receive the second file when the second file name and the second identification information are input from the application execution unit in the registration process. It is determined whether the image data relating to the name and the image data relating to the first file name are identical, and if so, registration of the second registered image data to the recording device is performed. Instead, the recording apparatus is caused to associate the first registered image data with the second identification information.
Also, the control method of the control device according to the present invention acquires the first file name and the first identification information of the first registered image data registered in the recording device, stores them in the control device, and stores them in the second by the application. The second file name and the second identification information of the registered image data are output to a control program, and the second file name and the second identification information input from the application by the control program are It is determined whether or not the first file name and the first identification information stored in the control device are the same, and if the same, the recording device is caused to delete the first registered image data from the storage area. Features.
The program of the present invention is a program executed by a control unit that controls a control device that can be connected to the recording device, and includes the first file name and the first registered image data registered in the recording device. 1 is obtained and stored in the control device, and when the second file name and the second identification information of the second registered image data are output by the application, the input second file name and It is determined whether or not the second identification information is the same as the stored first file name and the first identification information. If the same, the first information registered in the recording device is stored in the recording device. The registered image data is erased from the storage area and functions as a control unit that stores the second registered image data.
In order to achieve the above object, the present invention is a control device that stores registration image data and can be connected to a recording device that can record an image on a recording medium based on the registration image data, and includes a control program. A control program execution unit that controls the recording apparatus by outputting a control command to the recording apparatus by executing, and image information that is information relating to an image to be recorded on the recording medium by executing a predetermined application An application execution unit that generates and outputs to the control program execution unit, and the application execution unit corresponds to the registered image data when the recording apparatus records an image based on the registered image data. The image information including the identification information to be output is output to the control program execution unit, and the control program execution unit Generating a control command including identification information included in the image information and outputting the control command to the recording device based on the registered image data corresponding to the identification information, and causing the recording device to When performing registration processing for registering the registered image data, the application execution unit includes a file name of image data to be registered as the registered image data, and identification information for identifying the registered image data. The control program execution unit outputs the file name and the identification information that are the same as the file name and the identification information in the registration process performed in the past. If they are the same, the recording device is registered with the recording device in the registration process performed in the past. Characterized in that to erase the registration image data from the storage area.
Here, for an image recorded on a recording medium for a specific purpose, when registering registered image data related to the changed image in order to change the content of the image, registered image data related to the image before the change is registered. May be deleted from the storage area. For example, when registering registered image data related to the changed top logo in order to change the contents of the top logo on the receipt, since the top logo before the change is not recorded thereafter, the registration related to the top logo before the change is made. The image data may be deleted from the storage area.
Also, in the case where the application execution unit and the control program execution unit cooperate to register the registered image data in the recording apparatus as described above, image data with a predetermined file name is prepared in advance for registration. Then, the file name is output from the application execution unit to the control program execution unit. At that time, as in the case described above, when registering the registered image data related to the changed image in order to change the content of the image recorded on the recording medium for a specific purpose, The file name is considered to be shared between the file name before the change and the file name after the change. Because, by doing so, it is possible to unify the file name of the image data related to the specific target image regardless of the change of the image content, the management of the image data is easy, and the content of the image is changed. In this case, it is only necessary to edit the image data without changing the file name of the image data, and it is much more convenient than the case where the image data is not changed.
Further, in the case where the application execution unit and the control program execution unit cooperate to record an image on the recording apparatus as in the above configuration, information output from the application execution unit to the printer driver can be recorded as much as possible when the image is recorded. There is a need to avoid changes and thereby avoid having to modify the application.
Based on the above, according to the above configuration, in the registration process, the control program execution unit, the file name input from the application execution unit, and each of the identification information, the file name in the registration process performed in the past, and If it is the same as each of the identification information, the image recorded on the recording medium for the common purpose is registered in the registration process performed in the past, assuming that the registration process is being performed to change the content of the image. Delete registered image data. For this reason, when registering registered image data related to a changed image in order to change the content of an image recorded on a recording medium for a specific purpose, the file name of the image data prepared in advance is changed before the change. It is possible to store newly registered image data to be registered after deleting the registered image data that will not be used after that, using the commonality between the related one and the one after the change. The storage area can be used efficiently. Furthermore, according to the above configuration, when the recording apparatus performs image recording based on newly registered image data, the file name and identification information output from the application execution unit to the control program execution unit are registered. Since it is the same as before, there is no need to modify the application resulting from the registration.

また、本発明は、前記制御プログラム実行部は、前記登録処理において、新たに登録しようとしている前記登録画像データを記憶する空き領域が確保されるか否かを判別し、確保される場合は、新たに登録しようとしている前記登録画像データの登録を行い、確保されない場合は、前記登録画像データの登録を行わないことを特徴とする。
この構成によれば、登録処理に際し、新たに登録しようとしている登録画像データを登録するための空き領域が確保されない場合は、登録を行わないため、登録画像データの一部が記憶されなかったり、オーバーフロー等のエラーが発生したりすることを防止できる。
In the present invention, the control program execution unit determines whether or not a free area for storing the registered image data to be newly registered is secured in the registration process. The registration image data to be newly registered is registered, and if the registration image data is not secured, the registration image data is not registered.
According to this configuration, in the registration process, when a free area for registering newly registered image data to be registered is not secured, registration is not performed, so that a part of the registered image data is not stored, It is possible to prevent an error such as an overflow from occurring.

また、本発明は、前記制御プログラム実行部は、新たに登録しようとしている前記登録画像データを記憶する記憶領域が確保されないことに起因して前記登録画像データの登録を行わなかった場合において、当該新たに登録しようとした前記登録画像データに係る画像の記録を前記記録装置に行わせる場合、当該新たに登録しようとした前記登録画像データに係る画像データを含む制御コマンドを生成し、出力することにより、前記記録装置に、当該制御コマンドに含まれる当該画像データに基づいて画像を記録させることを特徴とする。
この構成によれば、新たに登録しようとしている前記登録画像データを記憶する記憶領域が確保されないことに起因して当該登録画像データの登録が行われなかった場合であっても、記録装置に対応する画像の記録を行わせることができる。
In the present invention, the control program execution unit does not register the registered image data because the storage area for storing the registered image data to be newly registered is not secured. When causing the recording apparatus to record an image related to the registered image data to be newly registered, a control command including the image data related to the registered image data to be newly registered is generated and output. Thus, the recording apparatus records an image based on the image data included in the control command.
According to this configuration, even when the registration image data is not registered because the storage area for storing the registration image data to be newly registered is not secured, the recording apparatus can be used. The image to be recorded can be recorded.

また、本発明は、前記制御プログラム実行部は、前記制御プログラム実行部は、前記登録処理において、前記アプリケーション実行部からファイル名、及び、識別情報が入力された場合、当該ファイル名に係る画像データと、同一性を有する前記登録画像データが前記記録装置に記憶されているか否かを判別し、記憶されている場合、新たに登録しようとしている前記登録画像データの前記記録装置への登録を行わず、当該同一性を有する前記登録画像データと、当該識別情報との対応付けを前記記録装置に行わせることを特徴とする。
この構成によれば、新たに登録しようとしている登録画像データが既に登録されている場合に、重複して登録されることを防止し、記憶領域のより効率的な使用を実現しつつ、既に登録されている登録画像データに基づく画像の記録を適切に行わせることが可能となる。
In the present invention, the control program execution unit, when the control program execution unit receives a file name and identification information from the application execution unit in the registration process, image data related to the file name. And whether or not the registered image data having the same identity is stored in the recording device, and if stored, the registration image data to be newly registered is registered in the recording device. First, the recording apparatus is caused to associate the registered image data having the identity with the identification information.
According to this configuration, when the registered image data to be newly registered has already been registered, it is prevented from being registered again, and the registration is already performed while realizing more efficient use of the storage area. It is possible to appropriately record an image based on the registered image data.

また、上記目的を達成するために、本発明は、登録画像データを記憶し、前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能に構成され、制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、前記記録装置に、前記登録画像データに基づいて画像を記録させる場合、前記アプリケーション実行部は、前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部は、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、出力することにより、前記記録装置に、当該識別情報と対応する前記登録画像データに基づいて画像を記録させる制御装置の制御方法であって、前記記録装置に、前記登録画像データを登録する登録処理を行う場合、前記アプリケーション実行部により、前記登録画像データとして登録しようとしている画像データのファイル名、及び、前記登録画像データを識別するための識別情報を、前記制御プログラム実行部に出力し、前記制御プログラム実行部により、前記アプリケーション実行部から入力された当該ファイル名、及び、当該識別情報のそれぞれが、過去に行った前記登録処理におけるファイル名、及び、識別情報のそれぞれと同じか否か判別し、同じ場合、前記記録装置に、当該過去に行った前記登録処理において前記記録装置に登録された前記登録画像データを記憶領域から消去させることを特徴とする。
この制御方法によれば、登録処理に際し、制御プログラム実行部は、アプリケーション実行部から入力されたファイル名、及び、識別情報のそれぞれが、過去に行った登録処理におけるファイル名、及び、識別情報のそれぞれと同じ場合、共通の目的で記録媒体に記録される画像について、画像の内容を変更すべく登録処理が行われているものとして、当該過去に行った登録処理にて登録された登録画像データを消去させる。このため、特定の目的で記録媒体に記録される画像の内容を変更すべく、変更後の画像に係る登録画像データを登録する場合、事前に準備される画像データのファイル名は、変更前に係るものと、変更後に係るものとで共通化されることを利用して、以後使用しない登録画像データを削除した上で、新たに登録しようとしている登録画像データが記憶させることが可能となり、記憶領域の効率的な使用が可能となる。さらに、上記構成によれば、新たに登録した登録画像データに基づく画像の記録を記録装置に行わせる場合、アプリケーション実行部から制御プログラム実行部に出力されるファイル名、及び、識別情報は、登録前と同じであるため、当該登録に起因したアプリケーションに対する改変を行う必要がない。
In order to achieve the above object, the present invention stores registered image data and is configured to be connectable to a recording apparatus capable of recording an image on a recording medium based on the registered image data, and executes a control program. A control program execution unit that outputs a control command to the recording apparatus to control the recording apparatus, and image information that is information about an image to be recorded on the recording medium by executing a predetermined application. An application execution unit that generates and outputs to the control program execution unit, and when the recording apparatus records an image based on the registered image data, the application execution unit corresponds to the registered image data The image information including identification information is output to the control program execution unit, and the control program execution unit is input A control method for a control device that causes the recording device to record an image based on the registered image data corresponding to the identification information by generating and outputting a control command including the identification information included in the image information When performing registration processing for registering the registered image data in the recording device, the application execution unit stores the file name of the image data to be registered as the registered image data, and the registered image data. Identification information for identification is output to the control program execution unit, and the file name input from the application execution unit by the control program execution unit and each of the identification information is performed in the past. Determine whether it is the same as the file name and identification information in the registration process. The recording apparatus, characterized in that to erase the registered image data registered in the recording apparatus in the registration processing performed in the past from the storage area.
According to this control method, in the registration process, the control program execution unit determines that the file name and the identification information input from the application execution unit are the file name and the identification information of the registration process performed in the past. In the case where each is the same, the registered image data registered in the past registration process is assumed to have undergone the registration process to change the content of the image recorded on the recording medium for a common purpose. To erase. For this reason, when registering registered image data related to a changed image in order to change the content of an image recorded on a recording medium for a specific purpose, the file name of the image data prepared in advance is changed before the change. It is possible to store the registered image data to be newly registered after deleting the registered image data that will not be used thereafter by using the commonality between the related one and the one after the change. The area can be used efficiently. Furthermore, according to the above configuration, when the recording apparatus performs image recording based on newly registered image data, the file name and identification information output from the application execution unit to the control program execution unit are registered. Since it is the same as before, there is no need to modify the application resulting from the registration.

また、上記目的を達成するために、本発明は、登録画像データを記憶し、前記登録画像データに基づいて記録媒体に画像を記録可能な記録装置に、接続可能な制御装置を制御する制御部により実行されるプログラムであって、前記制御部を、前記記録装置を制御するための制御プログラムを実行することにより、前記記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、所定のアプリケーションを実行することにより、前記記録媒体に記録すべき画像に関する情報である画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、して機能させ、さらに、前記記録装置に、前記登録画像データに基づいて画像を記録させる場合、前記登録画像データに対応する識別情報を含む前記画像情報を、前記制御プログラム実行部に出力する前記アプリケーション実行部と、入力された前記画像情報に含まれる識別情報を含む制御コマンドを生成し、出力することにより、前記記録装置に、当該識別情報と対応する前記登録画像データに基づいて画像を記録させる前記制御プログラム実行部と、として機能させ、さらに、前記記録装置に、前記登録画像データを登録する登録処理を行う場合、前記登録画像データとして登録しようとしている画像データのファイル名、及び、前記登録画像データを識別するための識別情報を、前記制御プログラム実行部に出力する前記アプリケーション実行部と、入力された当該ファイル名、及び、当該識別情報のそれぞれが、過去に行った前記登録処理におけるファイル名、及び、識別情報のそれぞれと同じか否か判別し、同じ場合、前記記録装置に、当該過去に行った前記登録処理において前記記録装置に登録された前記登録画像データを記憶領域から消去させる前記登録画像データを記憶させる前記制御プログラム実行部と、として機能させることを特徴とする。
このプログラムを実行すれば、登録処理に際し、制御プログラム実行部は、アプリケーション実行部から入力されたファイル名、及び、識別情報のそれぞれが、過去に行った登録処理におけるファイル名、及び、識別情報のそれぞれと同じ場合、共通の目的で記録媒体に記録される画像について、画像の内容を変更すべく登録処理が行われているものとして、当該過去に行った登録処理にて登録された登録画像データを消去させる。このため、特定の目的で記録媒体に記録される画像の内容を変更すべく、変更後の画像に係る登録画像データを登録する場合、事前に準備される画像データのファイル名は、変更前に係るものと、変更後に係るものとで共通化されることを利用して、以後使用しない登録画像データを削除した上で、新たに登録しようとしている登録画像データが記憶させることが可能となり、記憶領域の効率的な使用が可能となる。さらに、上記構成によれば、新たに登録した登録画像データに基づく画像の記録を記録装置に行わせる場合、アプリケーション実行部から制御プログラム実行部に出力されるファイル名、及び、識別情報は、登録前と同じであるため、当該登録に起因したアプリケーションに対する改変を行う必要がない。
In order to achieve the above object, the present invention stores a registered image data, and controls a control device that can be connected to a recording device capable of recording an image on a recording medium based on the registered image data. A control program execution unit that outputs a control command to the recording apparatus to control the recording apparatus by executing a control program for controlling the recording apparatus by the control unit. And, by executing a predetermined application, generates image information that is information relating to an image to be recorded on the recording medium, and functions as an application execution unit that outputs the information to the control program execution unit. When the recording apparatus records an image based on the registered image data, the image including identification information corresponding to the registered image data is stored. By generating and outputting the application execution unit that outputs information to the control program execution unit, and a control command including identification information included in the input image information, the identification information and When functioning as the control program execution unit for recording an image based on the corresponding registered image data, and further performing registration processing for registering the registered image data in the recording device, the image is registered as the registered image data. The application execution unit that outputs the file name of the image data to be processed and the identification information for identifying the registered image data to the control program execution unit, the input file name, and the identification information Each of the file name and identification information in the registration process performed in the past In this case, the recording device stores the registered image data for erasing the registered image data registered in the recording device from the storage area in the registration process performed in the past. It functions as the control program execution unit.
If this program is executed, during the registration process, the control program execution unit, the file name and identification information input from the application execution unit, respectively, the file name and the identification information of the registration process performed in the past. In the case where each is the same, the registered image data registered in the past registration process is assumed to have undergone the registration process to change the content of the image recorded on the recording medium for a common purpose. To erase. For this reason, when registering registered image data related to a changed image in order to change the content of an image recorded on a recording medium for a specific purpose, the file name of the image data prepared in advance is changed before the change. It is possible to store the registered image data to be newly registered after deleting the registered image data that will not be used thereafter by using the commonality between the related one and the one after the change. The area can be used efficiently. Furthermore, according to the above configuration, when the recording apparatus performs image recording based on newly registered image data, the file name and identification information output from the application execution unit to the control program execution unit are registered. Since it is the same as before, there is no need to modify the application resulting from the registration.

本発明によれば、記録装置への登録画像データの登録に際し、記憶領域をできるだけ効率的に使用できる。   According to the present invention, the storage area can be used as efficiently as possible when registering the registered image data in the recording apparatus.

記録システムの機能的構成を示すブロック図である。It is a block diagram which shows the functional structure of a recording system. 識別情報管理テーブルの内容を模式的に示す図である。It is a figure which shows typically the content of the identification information management table. 登録画像データ記憶可能領域を模式的に示す図である。It is a figure which shows typically the registration image data storage possible area | region. 識別情報管理テーブルの内容を模式的に示す図である。It is a figure which shows typically the content of the identification information management table. ホストコンピューターの動作を示すフローチャートである。It is a flowchart which shows operation | movement of a host computer. 登録画像データ記憶可能領域を模式的に示す図である。It is a figure which shows typically the registration image data storage possible area | region.

以下、図面を参照して本発明の実施形態について説明する。
図1は、記録システム10の機能的構成を示すブロック図である。
記録システム10は、スーパーマーケットやコンビニエンスストア等の店舗に適用され、店舗に来店した顧客の代金の支払いに応じてレシートを発行するシステムであり、図1に示すように、ホストコンピューター11(制御装置)と、POSサーバー25と、プリンター26(記録装置)とを備えている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of the recording system 10.
The recording system 10 is a system that is applied to a store such as a supermarket or a convenience store, and issues a receipt in response to payment for a customer who has visited the store. As shown in FIG. 1, a host computer 11 (control device) And a POS server 25 and a printer 26 (recording device).

POSサーバー25は、LAN等のネットワークを介してホストコンピューター11に通信可能に接続されており、店舗で販売している商品の商品コードや、名称、金額等のレシートの発行のために必要となる情報を示すデータをデータベースとして記憶する。ホストコンピューター11は、レシートの発行に際し、適宜、POSサーバー25に記憶されたデータベースを参照し、必要な情報を取得する。   The POS server 25 is communicably connected to the host computer 11 via a network such as a LAN, and is necessary for issuing receipts such as product codes, names, and amounts of products sold in stores. Data indicating information is stored as a database. When the receipt is issued, the host computer 11 refers to the database stored in the POS server 25 as appropriate, and acquires necessary information.

ホストコンピューター11は、ホスト側制御部28と、ホスト側表示部29と、ホスト側入力部30と、インターフェイス部(I/F)31と、ホスト側記憶部32と、を備えている。
ホスト側制御部28は、ホストコンピューター11の各部を中枢的に制御するものであり、CPUや、ROM、RAM、その他の周辺回路等を備えている。図1に示すように、ホスト側制御部28は、POSアプリケーション実行部34(アプリケーション実行部)と、プリンタードライバー実行部35(制御プログラム実行部)と、を備えているが、これらについては後述する。
ホスト側表示部29は、液晶表示パネル等の表示パネルを備え、ホスト側制御部28の制御の下、表示パネルに各種情報を表示する。
ホスト側入力部30は、キーボードや、マウス、バーコードリーダー、カードリーダー等の入力デバイスに接続され、これら入力デバイスの出力信号をホスト側制御部28に出力する。バーコードリーダーは商品の包装紙等に記録されたバーコードの読み取りに利用され、カードリーダーはクレジットカードや、会員カード等に記録された情報の読み取りに利用される。バーコードリーダーやカードリーダー等の入力デバイスを用いて取得した情報は、レシートの発行に係る処理に用いられる。
インターフェイス部31は、ホスト側制御部28の制御の下、プリンター26との間で通信規格に準拠した通信を行う。
ホスト側記憶部32は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。このホスト側記憶部32には、POSアプリケーション20、及び、プリンタードライバー21が実行可能な状態で記憶されると共に、アプリ管理用画像データ60、及び、アプリ管理用識別情報61が記憶されているが、これらについては後述する。
The host computer 11 includes a host side control unit 28, a host side display unit 29, a host side input unit 30, an interface unit (I / F) 31, and a host side storage unit 32.
The host-side control unit 28 centrally controls each unit of the host computer 11 and includes a CPU, ROM, RAM, and other peripheral circuits. As shown in FIG. 1, the host-side control unit 28 includes a POS application execution unit 34 (application execution unit) and a printer driver execution unit 35 (control program execution unit), which will be described later. .
The host side display unit 29 includes a display panel such as a liquid crystal display panel, and displays various types of information on the display panel under the control of the host side control unit 28.
The host-side input unit 30 is connected to input devices such as a keyboard, a mouse, a barcode reader, and a card reader, and outputs output signals from these input devices to the host-side control unit 28. The bar code reader is used for reading a bar code recorded on a product wrapping paper or the like, and the card reader is used for reading information recorded on a credit card, a member card or the like. Information acquired using an input device such as a barcode reader or a card reader is used for processing relating to receipt issuance.
The interface unit 31 performs communication based on the communication standard with the printer 26 under the control of the host-side control unit 28.
The host-side storage unit 32 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner. The host-side storage unit 32 stores the POS application 20 and the printer driver 21 in an executable state, and stores application management image data 60 and application management identification information 61. These will be described later.

一方、プリンター26は、ロール状に巻かれた感熱ロール紙を、ローラー状のプラテンにより搬送し、この感熱ロール紙の記録面に、発熱素子を備えたラインサーマルヘッド37によって熱を与えることにより画像を記録した上で、カッターユニット38により所定の位置で感熱ロール紙を切断することにより、レシートを発行するサーマルヘッド式プリンターである。
図1に示すように、プリンター26は、プリンター側制御部40と、プリンター側表示部41と、プリンター側入力部42と、プリントエンジン43と、プリンター側記憶部44と、インターフェイス部45と、を備えている。
プリンター側制御部40は、プリンター26を中枢的に制御するものであり、CPUやROM、RAMその他の周辺回路等を備えている。
プリンター側表示部41は、プリンター26の動作状態等の各種情報を表示する液晶表示パネル等の表示パネルを備え、プリンター側制御部40の制御の下、当該表示パネルに各種情報を表示する。また、プリンター側表示部41は、LEDを備え、このLEDを点灯/消灯して、プリンター26の状態を報知する。
プリンター側入力部42は、プリンター26に設けられた操作スイッチに接続され、操作スイッチに対する操作を検出し、プリンター側制御部40に出力する。
プリントエンジン43は、プリンター側制御部40の制御の下、用紙端センサーや用紙残量センサー等の各種センサーの検出値を監視しながら、上述したラインサーマルヘッド37のほか、感熱ロール紙を搬送するプラテンローラーを駆動するための搬送モーターや、上述したカッターユニット38が備えるカッターを駆動するためのカッター駆動モーターを動作させて、感熱ロール紙に画像を記録し、画像を記録した感熱ロール紙を切断することによりレシートを発行する。
インターフェイス部45は、プリンター側制御部40の制御の下、プリンター26との間で通信規格に準拠した通信を行う。
プリンター側記憶部44は、EEPROM等の不揮発性メモリーを備え、各種データを書き換え可能に記憶する。プリンター側記憶部44には、プリンター26の動作を制御するためのファームウェアが実行可能な状態で記憶されるほか、識別情報管理テーブル50、登録画像データ46、及び、プリンター管理用識別情報47が記憶される。これらについては、後述する。
On the other hand, the printer 26 conveys the thermal roll paper wound in a roll shape by a roller-like platen, and applies heat to the recording surface of the thermal roll paper by a line thermal head 37 provided with a heating element, thereby generating an image. Is a thermal head type printer that issues a receipt by cutting the thermal roll paper at a predetermined position by the cutter unit 38.
As shown in FIG. 1, the printer 26 includes a printer-side control unit 40, a printer-side display unit 41, a printer-side input unit 42, a print engine 43, a printer-side storage unit 44, and an interface unit 45. I have.
The printer-side control unit 40 centrally controls the printer 26 and includes a CPU, a ROM, a RAM, and other peripheral circuits.
The printer-side display unit 41 includes a display panel such as a liquid crystal display panel that displays various types of information such as the operating state of the printer 26, and displays various types of information on the display panel under the control of the printer-side control unit 40. The printer-side display unit 41 includes an LED, and turns on / off the LED to notify the state of the printer 26.
The printer-side input unit 42 is connected to an operation switch provided in the printer 26, detects an operation on the operation switch, and outputs it to the printer-side control unit 40.
The print engine 43 conveys thermal roll paper in addition to the above-described line thermal head 37 while monitoring detection values of various sensors such as a paper edge sensor and a paper remaining amount sensor under the control of the printer-side control unit 40. The conveyance motor for driving the platen roller and the cutter drive motor for driving the cutter provided in the cutter unit 38 described above are operated to record an image on the thermal roll paper and cut the thermal roll paper on which the image has been recorded. Issue a receipt.
The interface unit 45 performs communication based on the communication standard with the printer 26 under the control of the printer-side control unit 40.
The printer-side storage unit 44 includes a nonvolatile memory such as an EEPROM and stores various data in a rewritable manner. In the printer-side storage unit 44, firmware for controlling the operation of the printer 26 is stored in an executable state, and an identification information management table 50, registered image data 46, and printer management identification information 47 are stored. Is done. These will be described later.

次いで、POSアプリケーション実行部34及びプリンタードライバー実行部35の説明を通して、記録システム10がレシートを発行する際の基本的な動作について説明する。
POSアプリケーション実行部34(アプリケーション実行部)は、ホストコンピューター11に予めインストールされたPOSアプリケーション20(アプリケーション)を実行することにより、取引毎に、適宜、POSサーバー25にアクセスした上で、取引において購入された商品を示す情報や、商品の単価を示す情報、購入金額を示す情報等のレシートに記載すべき情報を取得し、取得した情報に基づいて、レシートに記録すべき画像にする情報であって、画像を記録させるために必要な情報を含む画像情報をプリンタードライバー実行部35に出力する。
プリンタードライバー実行部35(制御プログラム実行部)は、ホストコンピューター11に予めインストールされたプリンタードライバー21(制御プログラム)を実行することにより、POSアプリケーション実行部34から入力された画像情報に基づいて、プリンター26のコマンド仕様に対応した制御コマンドを生成し、プリンター側制御部40に出力する。この制御コマンドには、搬送機構に感熱ロール紙を搬送させるコマンドや、ラインサーマルヘッド37を駆動させて感熱ロール紙に画像を記録させるコマンド、カッターユニット38に感熱ロール紙を切断させるコマンド等の、プリンター26にレシートを発行させるための各種コマンドが含まれている。
制御コマンドが入力されたプリンター側制御部40は、この制御コマンドに基づいてプリントエンジン43を制御し、レシートを発行する。
Next, basic operations when the recording system 10 issues a receipt will be described through the description of the POS application execution unit 34 and the printer driver execution unit 35.
The POS application execution unit 34 (application execution unit) executes the POS application 20 (application) installed in advance on the host computer 11 to access the POS server 25 as appropriate for each transaction, and purchases the transaction. Information to be recorded on the receipt, such as information indicating the received product, information indicating the unit price of the product, information indicating the purchase price, etc., and making the image to be recorded on the receipt based on the acquired information. Then, image information including information necessary for recording the image is output to the printer driver execution unit 35.
The printer driver execution unit 35 (control program execution unit) executes a printer driver 21 (control program) preinstalled in the host computer 11, thereby performing a printer operation based on the image information input from the POS application execution unit 34. A control command corresponding to the 26 command specifications is generated and output to the printer-side control unit 40. This control command includes a command for transporting the thermal roll paper to the transport mechanism, a command for driving the line thermal head 37 to record an image on the thermal roll paper, a command for causing the cutter unit 38 to cut the thermal roll paper, and the like. Various commands for causing the printer 26 to issue a receipt are included.
The printer-side control unit 40 to which the control command is input controls the print engine 43 based on this control command and issues a receipt.

なお、POSアプリケーション20、及び、プリンタードライバー21は、UPOS(UnifiedPOS)の規格に準拠したプログラムとなっている。プリンタードライバー21には、POSアプリケーション20と、プリンタードライバー21との間のソフトウェア的なインターフェイスとして機能するプログラム(いわゆるコントロールオブジェクト)が実装されている。POSアプリケーション実行部34とプリンタードライバー実行部35との間での情報の受け渡しは、UPOSの規格に準拠して、例えば、引数を介したデータの受け渡しや、共通して使用する変数、パラーメーターの設定という形で行われる。   The POS application 20 and the printer driver 21 are programs compliant with the UPOS (UnifiedPOS) standard. A program (so-called control object) that functions as a software interface between the POS application 20 and the printer driver 21 is installed in the printer driver 21. Information is exchanged between the POS application execution unit 34 and the printer driver execution unit 35 in accordance with the UPOS standard, for example, data transfer via arguments, common variables, parameters, etc. This is done in the form of settings.

本実施形態に係るホストコンピューター11は、プリンター26に、事前に登録された登録画像データ46を利用して画像を記録させることが可能である。例えば、レシートに定型的に記録されるトップロゴ、及び、ボトムロゴについて、ホストコンピューター11は、プリンター26に、事前に登録された登録画像データ46を利用して記録させることが可能となっている。
トップロゴとは、レシートの先頭に定型的に記録される画像のことであり、例えば、レシートを発行する主体のマークを示す画像である。ボトムロゴとは、レシートの末尾に定型的に記録される画像のことであり、例えば、レシートの発行主体の電話番号や、住所等を示す画像である。
以下、登録画像データ46に基づいて、プリンター26に「トップロゴ」を記録させる場合の、記録システム10の基本的な動作について例を挙げて簡単に説明する。
The host computer 11 according to the present embodiment can cause the printer 26 to record an image using registered image data 46 registered in advance. For example, with respect to the top logo and the bottom logo that are routinely recorded on the receipt, the host computer 11 can cause the printer 26 to record using registered image data 46 registered in advance.
The top logo is an image that is routinely recorded at the top of the receipt. For example, the top logo is an image showing a mark of a subject that issues the receipt. The bottom logo is an image that is routinely recorded at the end of the receipt. For example, the bottom logo is an image that indicates the telephone number or address of the issuer of the receipt.
Hereinafter, a basic operation of the recording system 10 when the “top logo” is recorded on the printer 26 based on the registered image data 46 will be briefly described with an example.

登録画像データ46とは、画像バッファーに展開可能な形式の画像データ(ビットマップデータ等の、画素ごとに階調や色に関する情報を保持するデータ。)である。プリンター側記憶部44には、複数の登録画像データ46を記憶させることが可能である。
図1に示すように、本実施形態では、トップロゴの登録画像データ46として、登録トップロゴデータ46aがプリンター側記憶部44に記憶されており、また、ボトムロゴの登録画像データ46として、登録ボトムロゴデータ46bがプリンター側記憶部44に記憶されている。
また、図1に示すように、各登録画像データ46と対応付けて、プリンター管理用識別情報47が記憶されている。このプリンター管理用識別情報47は、プリンター側制御部40が、登録画像データ46を識別するために、登録画像データ46ごとに一意に割り振られたコードである。本実施形態では、登録トップロゴデータ46aのプリンター管理用識別情報47の値は、「PS1」であり、また、登録ボトムロゴデータ46bのプリンター管理用識別情報47の値は、「PS2」であるものとする。
The registered image data 46 is image data in a format that can be developed in an image buffer (data that holds information on gradation and color for each pixel, such as bitmap data). A plurality of registered image data 46 can be stored in the printer-side storage unit 44.
As shown in FIG. 1, in this embodiment, registered top logo data 46 a is stored in the printer-side storage unit 44 as registered image data 46 for the top logo, and registered bottom data is registered as the registered image data 46 for the bottom logo. Logo data 46 b is stored in the printer-side storage unit 44.
As shown in FIG. 1, printer management identification information 47 is stored in association with each registered image data 46. The printer management identification information 47 is a code uniquely assigned to each registered image data 46 in order for the printer-side control unit 40 to identify the registered image data 46. In the present embodiment, the value of the printer management identification information 47 of the registered top logo data 46a is “PS1”, and the value of the printer management identification information 47 of the registered bottom logo data 46b is “PS2”. Shall.

一方、ホストコンピューター11のホスト側記憶部32には、登録画像データ46のそれぞれに対応して、アプリ管理用画像データ60のそれぞれが記憶されている。より具体的には、登録トップロゴデータ46aに対応してアプリ管理用トップロゴデータ60aが記憶され、さらに、登録ボトムロゴデータ46bに対応してアプリ管理用ボトムロゴデータ60bが記憶されている。対応するアプリ管理用画像データ60と、登録画像データ46とは、同一性を有している。「同一性を有している」とは、画像データが完全一致する場合のほか、データ形式のみの不一致や、データ圧縮に起因して画像データの相違を含んでいる。
アプリ管理用画像データ60のそれぞれは、予め定められた所定のフォルダー(以下、「専用フォルダー」という。)に、所定のファイル名のファイルとして、格納されている。本実施形態では、アプリ管理用トップロゴデータ60aのファイル名は、ファイル名「toplogo.bmp」であり、また、アプリ管理用ボトムロゴデータ60bのファイル名は、ファイル名「bottomlogo.bmp」であるものとする。
アプリ管理用画像データ60のそれぞれには、アプリ管理用識別情報61が対応付けられている。これは、POSアプリケーション実行部34が、アプリ管理用画像データ60を識別するために、アプリ管理用画像データ60ごとに一意に割り振られたコードである。本実施形態では、アプリ管理用トップロゴデータ60aのアプリ管理用識別情報61は、「AS1」であり、また、アプリ管理用ボトムロゴデータ60bのアプリ管理用識別情報61は、「AS2」であるものとする。
アプリ管理用識別情報61は、UPOSの規格に準拠した値となっている。これは、上述したように、POSアプリケーション20、及び、プリンタードライバー21は、UPOSに準拠した情報の受け渡しを行うためである。
On the other hand, the host-side storage unit 32 of the host computer 11 stores application management image data 60 corresponding to each of the registered image data 46. More specifically, application management top logo data 60a is stored corresponding to the registered top logo data 46a, and application management bottom logo data 60b is stored corresponding to the registered bottom logo data 46b. Corresponding application management image data 60 and registered image data 46 are identical. “Having the same” includes not only the case where the image data completely match, but also the difference in the data format, or the difference in the image data due to data compression.
Each of the application management image data 60 is stored as a file having a predetermined file name in a predetermined folder (hereinafter referred to as “dedicated folder”). In the present embodiment, the file name of the application management top logo data 60a is the file name “toplogo.bmp”, and the file name of the application management top logo data 60b is the file name “bottomlogo.bmp”. Shall.
Each of the application management image data 60 is associated with application management identification information 61. This is a code uniquely assigned to each application management image data 60 by the POS application execution unit 34 to identify the application management image data 60. In the present embodiment, the application management identification information 61 of the application management top logo data 60a is “AS1”, and the application management identification information 61 of the application management bottom logo data 60b is “AS2”. Shall.
The application management identification information 61 is a value compliant with the UPOS standard. This is because, as described above, the POS application 20 and the printer driver 21 exchange information conforming to UPOS.

さて、登録トップロゴデータ46aに基づいてトップロゴをプリンター26に記録させる場合、POSアプリケーション実行部34は、当該登録トップロゴデータ46aに対応するアプリ管理用画像データ60であるアプリ管理用トップロゴデータ60aのファイル名「toplogo.bmp」、及び、対応するアプリ管理用識別情報61を少なくとも含む画像情報をプリンタードライバー実行部35に出力する。この画像情報には、レシートにおいてトップロゴを記録すべき位置を示す情報や、その他の登録トップロゴデータ46aに基づいて画像を記録するにあたって必要な情報が含まれている。
POSアプリケーション実行部34から画像情報が入力されると、プリンタードライバー実行部35は、画像情報に含まれるアプリ管理用識別情報61を少なくとも含む制御コマンドであって、登録画像データ46に基づいて画像を記録させる制御コマンドを生成し、プリンター26に出力する。当該制御コマンドには、画像データは含まれていない。
当該制御コマンドが入力されたプリンター26のプリンター側制御部40は、制御コマンドに含まれるアプリ管理用識別情報61を取得すると共に、識別情報管理テーブル50を参照して、記録すべき画像(本例ではトップロゴ)の登録画像データ46(本例では登録トップロゴデータ46a)を特定する。
When the top logo is recorded on the printer 26 based on the registered top logo data 46a, the POS application execution unit 34 uses the application management top logo data which is the image data 60 for application management corresponding to the registered top logo data 46a. Image information including at least the file name “toplogo.bmp” of 60 a and the corresponding application management identification information 61 is output to the printer driver execution unit 35. This image information includes information indicating the position where the top logo should be recorded on the receipt, and other information necessary for recording the image based on the other registered top logo data 46a.
When image information is input from the POS application execution unit 34, the printer driver execution unit 35 is a control command including at least the application management identification information 61 included in the image information, and displays an image based on the registered image data 46. A control command to be recorded is generated and output to the printer 26. The control command does not include image data.
The printer-side control unit 40 of the printer 26 to which the control command is input acquires the application management identification information 61 included in the control command and refers to the identification information management table 50 to record an image (this example) In this example, the registered image data 46 (in this example, registered top logo data 46a) is specified.

図2は、識別情報管理テーブル50の内容を模式的に示す図である。
識別情報管理テーブル50は、アプリ管理用識別情報61と、プリンター管理用識別情報47と、登録画像データ46の位置情報とを対応付けて記憶するテーブルのことである。
登録画像データ46の位置情報とは、プリンター側記憶部44に登録画像データ46を記録可能な記憶領域として割り振られた記憶領域である登録画像データ記憶可能領域TA(図3)において、登録画像データ46が記憶された場所を示す情報のことであり、例えば、登録画像データ46が記憶された領域の先頭アドレス、及び、末尾アドレスの組み合わせを示す情報であり、また、例えば、登録画像データ46が記憶された領域の先頭アドレス、当該登録画像データのサイズの組み合わせを示す情報である。登録画像データ46は、登録画像データ記憶可能領域TAにおいて、連続した領域に記憶されない場合もあり、この場合は、位置情報は、それぞれの領域を適切に示す情報となっている。
FIG. 2 is a diagram schematically showing the contents of the identification information management table 50.
The identification information management table 50 is a table that stores application management identification information 61, printer management identification information 47, and position information of registered image data 46 in association with each other.
The positional information of the registered image data 46 refers to the registered image data in the registered image data storable area TA (FIG. 3), which is a storage area allocated as a storage area in which the registered image data 46 can be recorded in the printer-side storage unit 44. 46 is information indicating a location where the registered image data 46 is stored, for example, information indicating a combination of the start address and the end address of the area where the registered image data 46 is stored. This is information indicating a combination of the start address of the stored area and the size of the registered image data. The registered image data 46 may not be stored in a continuous area in the registered image data storable area TA. In this case, the position information is information that appropriately indicates each area.

ここで、新たな登録画像データ46がプリンター側記憶部44に記憶される場合、当該新たな登録画像データ46は、上述した登録画像データ記憶可能領域TA内の所定の場所に記憶される。その際、プリンター側制御部40は、記憶した登録画像データ46に対して、一意なプリンター管理用識別情報47を割り振ると共に、識別情報管理テーブル50に1件のレコードを生成し、当該レコードにおいて割り振ったプリンター管理用識別情報47と、登録画像データ46の位置情報とを対応付けて記憶する。さらに、新たな登録画像データ46の記憶に際し、ホストコンピューター11から、対応するアプリ管理用識別情報61が指定されている場合、プリンター側制御部40は、当該レコードにおいて、指定されたアプリ管理用識別情報61を対応付けて記憶する。
図2に示す識別情報管理テーブル50の例では、1件目のレコードR1において、アプリ管理用トップロゴデータ60aのアプリ管理用識別情報61(値「AS1」)と、登録トップロゴデータ46aのプリンター管理用識別情報47(値「PS1」)と、登録トップロゴデータ46aの位置情報とが対応付けて記憶されている。また、2件目のレコードR2において、アプリ管理用ボトムロゴデータ60bのアプリ管理用識別情報61(値「AS2」)と、登録ボトムロゴデータ46bのプリンター管理用識別情報47(値「PS2」)と、登録ボトムロゴデータ46bの位置情報とが対応付けて記憶されている。
Here, when the new registered image data 46 is stored in the printer-side storage unit 44, the new registered image data 46 is stored in a predetermined location in the above-described registered image data storage area TA. At that time, the printer-side control unit 40 allocates unique printer management identification information 47 to the stored registered image data 46, generates one record in the identification information management table 50, and allocates the record in the record. The printer management identification information 47 and the position information of the registered image data 46 are stored in association with each other. Furthermore, when storing the new registered image data 46, if the corresponding application management identification information 61 is specified from the host computer 11, the printer-side control unit 40 specifies the application management identification specified in the record. Information 61 is associated and stored.
In the example of the identification information management table 50 shown in FIG. 2, the application management identification information 61 (value “AS1”) of the application management top logo data 60a and the printer of the registered top logo data 46a in the first record R1. The management identification information 47 (value “PS1”) and the position information of the registered top logo data 46a are stored in association with each other. Further, in the second record R2, application management identification information 61 (value “AS2”) of the application management bottom logo data 60b and printer management identification information 47 (value “PS2”) of the registered bottom logo data 46b. And the position information of the registered bottom logo data 46b are stored in association with each other.

ここで、新たな登録画像データ46をプリンター側記憶部44に記憶する際、プリンター側制御部40は、アプリ管理用識別情報61とは異なるプリンター管理用識別情報47を割り振り、当該プリンター管理用識別情報47により登録画像データ46を識別しているが、これは以下の理由による。すなわち、新たな登録画像データ46の記憶に際し、専用のソフトウェアツールの機能によって登録画像データ46を記憶する場合等、登録画像データ46に対応するアプリ管理用識別情報61が指定されない場合もあるため、新たな登録画像データ46が記憶された場合は、ファームウェアの機能によりプリンター管理用識別情報47を割り振り、当該登録画像データ46を確実に識別できるようにする必要があるためである。
なお、以下の説明では、新たな登録画像データ46をプリンター側記憶部44に記憶することを、適宜、登録画像データ46をプリンター26に登録する、と表現する。
Here, when the new registered image data 46 is stored in the printer-side storage unit 44, the printer-side control unit 40 allocates printer management identification information 47 different from the application management identification information 61, and the printer management identification information is assigned. The registered image data 46 is identified by the information 47 for the following reason. That is, when storing the new registered image data 46, the application management identification information 61 corresponding to the registered image data 46 may not be specified, such as when the registered image data 46 is stored by the function of a dedicated software tool. This is because when new registered image data 46 is stored, it is necessary to allocate printer management identification information 47 by the function of the firmware so that the registered image data 46 can be reliably identified.
In the following description, storing the new registered image data 46 in the printer-side storage unit 44 is expressed as registering the registered image data 46 in the printer 26 as appropriate.

さて、ホストコンピューター11のプリンタードライバー実行部35から制御コマンドが入力されたプリンター26のプリンター側制御部40は、当該制御コマンドに含まれるアプリ管理用識別情報61を取得し、識別情報管理テーブル50を参照し、取得したアプリ管理用識別情報61に対応する登録画像データ46の位置情報を取得し、当該位置情報が示す領域に記憶されている登録画像データ46を取得する。識別情報管理テーブル50が図2の状態であるものとした場合、本例では、プリンター側制御部40は、対応するレコードであるレコードR1を参照し、登録トップロゴデータ46aの位置情報を取得し、当該位置情報が示す領域に格納されている登録トップロゴデータ46aを取得する。
次いで、プリンター側制御部40は、取得した登録画像データ46を、所定の画像バッファーに展開し、展開したデータに基づいて、ラインサーマルヘッド37、その他の付随する機構を制御して、感熱ロール紙に画像を記録する。
このように、登録画像データ46に基づく画像の記録に際し、ホストコンピューター11からプリンター26に出力される制御コマンドにはデータ量の多い画像データが含まれないため、これら装置間で通信すべきデータ量の低減を図ることができると共に、処理に要する時間を低減でき、さらに、通信エラーの発生リスクを低減できる。
The printer-side control unit 40 of the printer 26 to which the control command is input from the printer driver execution unit 35 of the host computer 11 acquires the application management identification information 61 included in the control command, and stores the identification information management table 50. The location information of the registered image data 46 corresponding to the acquired application management identification information 61 is acquired, and the registered image data 46 stored in the area indicated by the location information is acquired. If the identification information management table 50 is in the state shown in FIG. 2, in this example, the printer-side control unit 40 refers to the record R1, which is a corresponding record, and acquires the position information of the registered top logo data 46a. The registered top logo data 46a stored in the area indicated by the position information is acquired.
Next, the printer-side control unit 40 develops the acquired registered image data 46 in a predetermined image buffer, and controls the line thermal head 37 and other accompanying mechanisms based on the developed data, thereby making a thermal roll paper. Record an image on
Thus, when recording an image based on the registered image data 46, the control command output from the host computer 11 to the printer 26 does not include image data with a large amount of data, so the amount of data to be communicated between these devices. Can be reduced, the time required for processing can be reduced, and the risk of occurrence of communication errors can be reduced.

ところで、トップロゴや、ボトムロゴは、その画像の内容が固定ではなく、適宜、変更される。例えば、トップロゴは、季節やイベントに応じて、そのデザインが変更される。
これを踏まえ、トップロゴのデザインに変更があった場合を例として、変更後のトップロゴに係る登録画像データ46がどのようにしてプリンター26に登録されるかについて、まず、登録画像データ46を累積的に記憶していく場合のホストコンピューター11について説明して、この場合の課題を明らかにし、その後、記憶領域を効率的に使用できるようにされたホストコンピューター11の場合を説明する。
なお、従来は、登録画像データ46を累積的に記憶していくやり方によって、登録画像データ46の登録が行われている。
By the way, the contents of the image of the top logo and the bottom logo are not fixed but are changed as appropriate. For example, the design of the top logo is changed according to the season and the event.
Based on this, taking the case where the design of the top logo has been changed as an example, first, the registration image data 46 regarding how the registered image data 46 related to the changed top logo is registered in the printer 26 will be described. The host computer 11 in the case of cumulative storage will be described to clarify the problem in this case, and then the case of the host computer 11 configured to be able to use the storage area efficiently will be described.
Conventionally, the registered image data 46 is registered by a method of storing the registered image data 46 cumulatively.

<登録画像データを累積的に記憶していく場合>
まず、トップロゴのデザインに変更があった場合に、変更後のトップロゴに係る登録画像データ46がプリンター26に登録される際の登録画像データ46を累積的に記憶していく場合のホストコンピューター11、及び、プリンター26の動作について説明する。
なお、変更前のトップロゴと、変更後のトップロゴとは、共通する特定の目的、例えば、レシートを発行した主体を明示するという目的で、記録媒体(レシートを構成する感熱ロール紙)に記録される画像である。
<When storing registered image data cumulatively>
First, when there is a change in the design of the top logo, the host computer in which the registered image data 46 when the registered image data 46 related to the changed top logo is registered in the printer 26 is stored cumulatively 11 and the operation of the printer 26 will be described.
The top logo before the change and the top logo after the change are recorded on the recording medium (the heat-sensitive roll paper constituting the receipt) for the specific purpose in common, for example, to clearly indicate the subject that issued the receipt. It is an image to be.

トップロゴのデザインに変更があった場合、ユーザーにより、変更後のトップロゴに係るアプリ管理用画像データ60(以下、適宜、「変更後アプリ管理用トップロゴデータ」という。)が生成され、生成された画像データが上述した専用フォルダー(アプリ管理用画像データ60が格納される専用のフォルダー)に格納される。その際、ファイル名は、変更前のトップロゴに係るアプリ管理用トップロゴデータ60aと同一のファイル名(「toplogo.bmp」)とされる。
このように、アプリ管理用画像データ60のファイル名が、トップロゴの変更前と、変更後で同一とされるのは、以下の理由による。
すなわち、ファイル名を同一とすることにより、画像の内容の変更にかかわらずトップロゴに係るアプリ管理用画像データ60のファイル名を統一することができ、アプリ管理用画像データ60の管理が容易となる。また、トップロゴの内容の変更に際し、ユーザーは、ファイル名等の変更をすることなく、アプリ管理用トップロゴデータ60aを編集すれば変更後アプリ管理用トップロゴデータを生成することができ、このほか、新たに作成した変更後アプリ管理用トップロゴデータによって、アプリ管理用トップロゴデータ60aを上書き更新ができ、格段に利便性がよいからである。また、上述したように、プリンター26にトップロゴを記録させる場合、POSアプリケーション実行部34からプリンタードライバー実行部35に対して、トップロゴに係るアプリ管理用画像データ60のファイル名を含む画像情報が出力されるが、トップロゴの変更前と、変更後とで出力すべきファイル名を共通化でき、従って、トップロゴの変更に際してアプリケーションに対して改変を加えなくて済む、という利点もある。
When the design of the top logo is changed, the user generates image management image data 60 related to the changed top logo (hereinafter referred to as “changed application management top logo data” as appropriate). The processed image data is stored in the above-described dedicated folder (a dedicated folder in which the application management image data 60 is stored). At this time, the file name is the same file name (“toplogo.bmp”) as the application management top logo data 60a related to the top logo before the change.
As described above, the file name of the application management image data 60 is the same before and after the top logo change for the following reason.
That is, by making the file names the same, it is possible to unify the file names of the application management image data 60 related to the top logo regardless of changes in the image contents, and the management of the application management image data 60 is easy. Become. In addition, when changing the contents of the top logo, the user can generate the top logo data for application management after the change by editing the top logo data 60a for application management without changing the file name or the like. In addition, the newly created application management top logo data can be overwritten and updated with the application management top logo data, which is much more convenient. As described above, when the top logo is recorded on the printer 26, the POS application execution unit 34 sends the image information including the file name of the application management image data 60 related to the top logo to the printer driver execution unit 35. Although it is output, the file name to be output before and after the change of the top logo can be made common, and therefore there is an advantage that the application need not be modified when the top logo is changed.

次いで、POSアプリケーション実行部34は、プリンター26への登録画像データ46の登録を指示する旨の情報と共に、変更後アプリ管理用トップロゴデータのファイル名、及び、アプリ管理用識別情報61をプリンタードライバー実行部35に出力する。ここで出力されるアプリ管理用識別情報61の値は、アプリ管理用トップロゴデータ60aに対応するアプリ管理用識別情報61の値と同一である。これは、アプリ管理用識別情報61は、アプリ管理用画像データ60のファイル名と対応付けて記憶されており、変更後アプリ管理用トップロゴデータと、アプリ管理用トップロゴデータ60aとのファイル名は同一だからである。後の説明で明らかとなるとおり、ここで出力されるアプリ管理用識別情報61の値が、アプリ管理用トップロゴデータ60aに対応するアプリ管理用識別情報61の値と同一であるため、プリンター26にトップロゴを記録させる際に、POSアプリケーション実行部34からプリンタードライバー実行部35に対して出力される画像情報に含まれるアプリ管理用識別情報61の値が、トップロゴの変更前と、変更後と同一となり、従って、トップロゴの変更に際してアプリケーションに対して改変を加えなくて済む。
次いで、プリンタードライバー実行部35は、上述した専用フォルダーを参照し、入力されたファイル名のファイル(=変更後アプリ管理用トップロゴデータ)を取得し、取得した変更後アプリ管理用トップロゴデータ、及び、入力されたアプリ管理用識別情報61を含み、変更後アプリ管理用トップロゴデータを登録画像データ46として登録させる制御コマンドを生成し、プリンター26に出力する。
プリンター26のプリンター側制御部40は、入力された制御コマンドに基づいて、以下のようにして、変更後のトップロゴに係る登録画像データ46の登録を実行する。
Next, the POS application execution unit 34 sends the file name of the changed application management top logo data and the application management identification information 61 together with information for instructing registration of the registered image data 46 to the printer 26 to the printer driver. The data is output to the execution unit 35. The value of the application management identification information 61 output here is the same as the value of the application management identification information 61 corresponding to the application management top logo data 60a. The application management identification information 61 is stored in association with the file name of the application management image data 60, and the file names of the changed application management top logo data and the application management top logo data 60a. Because they are the same. As will be apparent from the following description, the value of the application management identification information 61 output here is the same as the value of the application management identification information 61 corresponding to the application management top logo data 60a. When the top logo is recorded, the value of the application management identification information 61 included in the image information output from the POS application execution unit 34 to the printer driver execution unit 35 is before and after the change of the top logo. Therefore, it is not necessary to modify the application when changing the top logo.
Next, the printer driver execution unit 35 refers to the dedicated folder described above, acquires a file with the input file name (= changed application management top logo data), and acquires the acquired updated application management top logo data, A control command that includes the input application management identification information 61 and registers the changed application management top logo data as the registered image data 46 is generated and output to the printer 26.
Based on the input control command, the printer-side control unit 40 of the printer 26 executes registration of the registered image data 46 related to the changed top logo as follows.

図3は、登録画像データ46を登録する際のプリンター側制御部40の動作の説明に利用する図であり、登録画像データ記憶可能領域TAを模式的に示す図である。上述したように、登録画像データ記憶可能領域TAとは、登録画像データ46を記録可能な記憶領域として割り振られた記憶領域であり、全ての登録画像データ46は、当該登録画像データ記憶可能領域TA内に記憶される。
以下の説明では、変更後のトップロゴに係る登録画像データ46の登録前の登録画像データ記憶可能領域TAの状態が、図3(A)に示す状態であるものとする。すなわち、登録画像データ記憶可能領域TAにおいて、領域ta1に、登録トップロゴデータ46a(変更前のトップロゴに係る登録画像データ46)が記憶され、領域ta2に、登録ボトムロゴデータ46bが記憶され、その他の領域が空き領域となっている。
登録画像データ記憶可能領域TAの状態が図3(A)に示す状態の場合において、プリンタードライバー実行部35から入力された制御コマンドに基づいて登録を行う場合、プリンター側制御部40は、登録画像データ記憶可能領域TAの空き領域に、制御コマンドに含まれる変更後アプリ管理用トップロゴデータを記憶する。以下、ここで記憶されたデータを「変更後登録トップロゴデータ」という。
図3(B)は、変更後登録トップロゴデータが記憶された後の登録画像データ記憶可能領域TAを示す図である。図3(B)に示すように、空き領域であった領域ta3に、変更後登録トップロゴデータが記憶されている。このように、新たな登録画像データ46について、空き領域に記憶する理由は、プリンター側制御部40は、既に登録画像データ記憶可能領域TAに記憶されている登録画像データ46について、消去可能か否かを管理できないためである。
さらに、プリンター側制御部40は、新たに登録した変更後登録トップロゴデータに対して、一意なプリンター管理用識別情報47を割り振り、識別情報管理テーブル50に1件のレコードを生成し、当該レコードにおいて、制御コマンドに含まれるアプリ管理用識別情報61と、割り振ったプリンター管理用識別情報47と、変更後登録トップロゴデータの位置情報と、を対応付けて記憶する。
ここで、識別情報管理テーブル50では、同一の値のアプリ管理用識別情報61に係るレコードが複数存在することが制限されており、新たなレコードを生成する場合において、当該新たなレコードと、アプリ管理用識別情報61の値が同一の他のレコードがある場合は、当該他のレコードは削除されるものとされる。同一の値のアプリ管理用識別情報61に係るレコードが複数存在する場合、当該同一の値を有するアプリ管理用識別情報61を含む制御コマンドが入力された場合に、いずれのレコードに基づいて、処理を行えばよいのかが分からないからである。
FIG. 3 is a diagram used for explaining the operation of the printer-side control unit 40 when registering the registered image data 46, and is a diagram schematically showing the registered image data storage area TA. As described above, the registered image data storage area TA is a storage area allocated as a storage area where the registered image data 46 can be recorded, and all the registered image data 46 is stored in the registered image data storage area TA. Stored in.
In the following description, it is assumed that the state of the registered image data storage area TA before registration of the registered image data 46 related to the changed top logo is the state shown in FIG. That is, in the registered image data storage area TA, the registered top logo data 46a (registered image data 46 relating to the top logo before change) is stored in the area ta1, and the registered bottom logo data 46b is stored in the area ta2. Other areas are free areas.
When the registration image data storage area TA is in the state shown in FIG. 3A, when performing registration based on the control command input from the printer driver execution unit 35, the printer-side control unit 40 displays the registered image. The post-change application management top logo data included in the control command is stored in an empty area of the data storage area TA. Hereinafter, the stored data is referred to as “post-change registered top logo data”.
FIG. 3B is a diagram showing the registered image data storage area TA after the changed registered top logo data is stored. As shown in FIG. 3B, the post-change registered top logo data is stored in the area ta3 which is an empty area. As described above, the reason why the new registered image data 46 is stored in the empty area is that the printer-side control unit 40 can delete the registered image data 46 already stored in the registered image data storage area TA. This is because it cannot be managed.
Further, the printer-side control unit 40 allocates unique printer management identification information 47 to the newly registered post-change registered top logo data, generates one record in the identification information management table 50, and the record , The application management identification information 61 included in the control command, the allocated printer management identification information 47, and the position information of the changed registered top logo data are stored in association with each other.
Here, in the identification information management table 50, it is limited that there are a plurality of records related to the application management identification information 61 having the same value. When a new record is generated, the new record, the application If there is another record having the same value of the management identification information 61, the other record is deleted. When there are a plurality of records related to the application management identification information 61 having the same value, when a control command including the application management identification information 61 having the same value is input, processing is performed based on which record. It is because it is not known whether it should carry out.

図4は、プリンター側制御部40が新たに生成したレコードにおいて、制御コマンドに含まれるアプリ管理用識別情報61と、割り振ったプリンター管理用識別情報47と、変更後登録トップロゴデータの位置情報と、が対応付けて記憶された後の識別情報管理テーブル50の状態を示す図である。
以下の説明において、プリンター側制御部40によって、変更後登録トップロゴデータに割り振られたプリンター管理用識別情報47の値は、「PS3」であるものとする。
図2と、図4との比較において明らかなように、図2におけるレコードR1(登録トップロゴデータ46aに係るレコード)が削除され、新たに、レコードR3が生成される。そして、このレコードR3では、アプリ管理用識別情報61(値「AS1」)と、プリンター管理用識別情報47(値「PS3」)と、変更後登録トップロゴデータの位置情報と、が対応付けて記憶される。
FIG. 4 shows the application management identification information 61 included in the control command, the allocated printer management identification information 47, and the position information of the registered top logo data after the change in the record newly generated by the printer-side control unit 40. Is a diagram showing a state of the identification information management table 50 after being stored in association with each other.
In the following description, it is assumed that the value of the printer management identification information 47 allocated to the post-change registered top logo data by the printer-side control unit 40 is “PS3”.
As is clear from the comparison between FIG. 2 and FIG. 4, the record R1 (record related to the registered top logo data 46a) in FIG. 2 is deleted, and a new record R3 is generated. In this record R3, the application management identification information 61 (value “AS1”), the printer management identification information 47 (value “PS3”), and the position information of the registered top logo data after change are associated with each other. Remembered.

以上、特定の目的で記録される画像の内容に変更があった場合において、変更後の画像に係る登録画像データ46を登録する場合における登録画像データ46を累積的に記憶していく場合のホストコンピューター11、及び、プリンター26の動作を説明してきたが、その場合は、以下のような改善の余地があった。
すなわち、登録画像データ記憶可能領域TAは、登録画像データ46を記憶するために割り当てられた記憶領域であるが、その記憶領域の容量は有限である。従って、新たな登録画像データ46を登録画像データ記憶可能領域TAに記憶する場合に、空き領域の容量不足が発生することをできるだけ防止すべく、登録画像データ記憶可能領域TAを効率的に使用することが求められる。しかしながら、登録画像データ記憶可能領域TAに、登録画像データ46を累積的に記憶していくやり方は、記憶領域の効率的使用に改善の余地がある。
以上を踏まえ、本実施形態に係るホストコンピューター11は、以下のような動作を実行する。
As described above, when there is a change in the contents of an image recorded for a specific purpose, the host in the case of registering the registered image data 46 in the case of registering the registered image data 46 related to the changed image is cumulatively stored. The operations of the computer 11 and the printer 26 have been described. In this case, there is room for improvement as follows.
That is, the registered image data storable area TA is a storage area allocated for storing the registered image data 46, but the capacity of the storage area is finite. Accordingly, when the new registered image data 46 is stored in the registered image data storage area TA, the registered image data storage area TA is efficiently used in order to prevent the capacity of the free area from being insufficient as much as possible. Is required. However, the method of accumulating the registered image data 46 in the registered image data storable area TA has room for improvement in the efficient use of the storage area.
Based on the above, the host computer 11 according to the present embodiment performs the following operation.

<記憶領域を効率的に使用できるようにされた場合>
図5は、登録画像データ46の登録時において、本発明が適用されたプリンタードライバー実行部35の動作を示すフローチャートである。
以下では、上述した登録画像データ46を累積的に記憶していく場合の説明と同様、トップロゴのデザインに変更があり、変更後のトップロゴに係る登録画像データ46を登録する場合にはどのような処理が行われるのかを適宜例示しつつ、プリンタードライバー実行部35の動作について説明するものとする。
図5に示すように、登録画像データ46の登録に際し、まず、POSアプリケーション実行部34から、プリンター26への登録画像データ46の登録を指示する旨の情報と共に、アプリ管理用画像データ60のファイル名と、当該データに対応するアプリ管理用識別情報61が、プリンタードライバー実行部35に、入力される(ステップSA1)。上述したように、同一の目的で記録される画像の内容を変更すべく、登録画像データ46の登録を行っている場合は、プリンタードライバー実行部35に入力されるファイル名、及び、アプリ管理用識別情報61のそれぞれは、変更前に係るファイル名、及び、アプリ管理用識別情報61のそれぞれと同一である。トップロゴのデザイン変更の例では、POSアプリケーション実行部34から、プリンタードライバー実行部35に、変更後アプリ管理用トップロゴデータのファイル名(ファイル名「toplogo.bmp」)、及び、対応するアプリ管理用識別情報61(値「AS1」)が入力される。
次いで、プリンタードライバー実行部35は、専用フォルダーを参照し、入力されたファイル名に係るアプリ管理用画像データ60を取得する(ステップSA2)。トップロゴのデザイン変更の例では、プリンタードライバー実行部35は、変更後アプリ管理用トップロゴデータを取得する。
<When the storage area can be used efficiently>
FIG. 5 is a flowchart showing the operation of the printer driver execution unit 35 to which the present invention is applied when registering the registered image data 46.
In the following, as in the case of cumulatively storing the registered image data 46 described above, there is a change in the design of the top logo, and when registering the registered image data 46 related to the changed top logo, The operation of the printer driver execution unit 35 will be described while appropriately exemplifying whether such processing is performed.
As shown in FIG. 5, when registering the registered image data 46, first, a file of the application management image data 60 together with information indicating that the registered image data 46 is registered in the printer 26 from the POS application execution unit 34. The name and the application management identification information 61 corresponding to the data are input to the printer driver execution unit 35 (step SA1). As described above, when the registered image data 46 is registered so as to change the content of the image recorded for the same purpose, the file name input to the printer driver execution unit 35 and the application management Each of the identification information 61 is the same as the file name before the change and the application management identification information 61. In the example of the design change of the top logo, the file name of the top logo data for application management after change (file name “toplogo.bmp”) and the corresponding application management from the POS application execution unit 34 to the printer driver execution unit 35 Identification information 61 (value “AS1”) is input.
Next, the printer driver execution unit 35 refers to the dedicated folder and acquires the application management image data 60 relating to the input file name (step SA2). In the example of the top logo design change, the printer driver execution unit 35 acquires the changed application management top logo data.

次いで、プリンタードライバー実行部35は、プリンター26と通信し、ステップSA2で取得したアプリ管理用画像データ60と同一性を有する登録画像データ46が、プリンター26のプリンター側記憶部44の登録画像データ記憶可能領域TAに既に記憶されているか否かを判別する(ステップSA3)。
ステップSA3の判別は、例えば、以下のようにして行われる。
例えば、プリンタードライバー実行部35は、プリンター26と通信して、プリンター26に記憶されている複数の登録画像データ46のそれぞれを、順次、取得し、取得した登録画像データ46と、アプリ管理用画像データ60とを、順次、既存の画像データ比較用のアルゴリズムにより比較することにより、上記判別を行う。このほか、所定のハッシュ関数で、変更後アプリ管理用トップロゴデータのハッシュ値と、プリンター側記憶部44に記憶された登録画像データ46のそれぞれのハッシュ値とを求め、これらハッシュ値の比較をとおして上記判別を行うようにしてもよく、また、アプリ管理用画像データ60をプリンター26に出力し、プリンター26のファームウェアの機能により、上記判別を行うようにしてもよい。その際、画像データの比較のために必要な画像処理が適切に施されるものとする。
ここで、ステップSA2で取得したアプリ管理用画像データ60と同一性を有する登録画像データ46が、プリンター26に既に記憶されているケースとして、以下のケースがある。
例えば、ある1のユーザーが登録しようとしている登録画像データ46について、既に同一の内容の登録画像データ46を他のユーザーが登録していたケースや、他の用途で使用している登録画像データ46が偶発的に一致しているケース、トップロゴのデザイン変更の例で言えば、変更前のトップロゴの内容と、変更後のトップロゴの内容とが、実際には、一致していたケース等が考えられる。
Next, the printer driver execution unit 35 communicates with the printer 26, and the registered image data 46 having the same identity as the application management image data 60 acquired in step SA 2 is stored in the registered image data storage of the printer side storage unit 44 of the printer 26. It is determined whether or not it is already stored in the possible area TA (step SA3).
The determination in step SA3 is performed as follows, for example.
For example, the printer driver execution unit 35 communicates with the printer 26 to sequentially acquire each of the plurality of registered image data 46 stored in the printer 26, and the acquired registered image data 46 and the application management image The determination is performed by sequentially comparing the data 60 with an existing image data comparison algorithm. In addition, a hash value of the changed application management top logo data and each hash value of the registered image data 46 stored in the printer-side storage unit 44 are obtained by a predetermined hash function, and the hash values are compared. Alternatively, the determination may be performed, or the application management image data 60 may be output to the printer 26, and the determination may be performed by the firmware function of the printer 26. At that time, it is assumed that image processing necessary for comparison of image data is appropriately performed.
Here, as a case where the registered image data 46 having the same identity as the application management image data 60 acquired in step SA2 is already stored in the printer 26, there are the following cases.
For example, with respect to the registered image data 46 that a certain user intends to register, a registered image data 46 having the same contents has already been registered by another user, or registered image data 46 used for other purposes. In case of accidental coincidence, or in the example of top logo design change, the content of the top logo before the change and the content of the top logo after the change actually match, etc. Can be considered.

ステップSA3の判別の結果、同一性を有する登録画像データ46がプリンター26に既に記憶されている場合(ステップSA3:YES)、プリンタードライバー実行部35は、POSアプリケーション実行部34から入力されたアプリ管理用識別情報61と、当該同一性を有する登録画像データ46との対応付けを行わせる制御コマンドを生成して、出力することにより、プリンター26に、当該対応付けを行わせる(ステップSA4)。
当該制御コマンドが入力されたプリンター側制御部40は、当該同一性を有する登録画像データ46を特定し、識別情報管理テーブル50に、1件のレコードを生成すると共に、当該レコードにおいて、当該同一性を有する登録画像データ46に対応するプリンター管理用識別情報47と、当該同一性を有する登録画像データ46の位置情報と、プリンタードライバー実行部35から指定されたアプリ管理用識別情報61とを対応付けて記憶する。これにより、以後、プリンタードライバー実行部35は、ステップSA1で入力されたアプリ管理用識別情報61に基づいて、既に記憶されていた同一性を有する登録画像データ46に基づく画像の記録をプリンター26に実行させることが可能となる。
If the registered image data 46 having the same identity is already stored in the printer 26 as a result of the determination in step SA3 (step SA3: YES), the printer driver execution unit 35 manages the application input from the POS application execution unit 34. By generating and outputting a control command for causing the identification information 61 to be associated with the registered image data 46 having the same identity, the printer 26 is caused to perform the association (step SA4).
The printer-side control unit 40 to which the control command is input specifies the registered image data 46 having the same identity, generates one record in the identification information management table 50, and in the record, the identity is the same. The printer management identification information 47 corresponding to the registered image data 46 having the same, the positional information of the registered image data 46 having the same identity, and the application management identification information 61 specified by the printer driver execution unit 35 are associated with each other. And remember. As a result, the printer driver execution unit 35 subsequently records an image based on the registered image data 46 having the same identity stored in the printer 26 based on the application management identification information 61 input in step SA1. It can be executed.

このように、プリンタードライバー実行部35は、新たな登録画像データ46の登録に際し、既に同一性を有する登録画像データ46が登録されている場合は、新たな登録画像データ46の登録を行わず、当該同一性を有する登録画像データ46と、アプリ管理用識別情報61との対応付けをプリンター26に行わせ、これにより、当該アプリ管理用識別情報61をキーとして当該同一性を有する登録画像データ46に基づく画像の記録を行わせることが可能な状態とする。これにより、同一性を有する登録画像データ46が重複して登録されることを防止し、登録画像データ記憶可能領域TAのより効率的な使用を実現しつつ、既に登録されている登録画像データ46に基づく画像の記録を適切に行わせることが可能となる。   In this way, the printer driver execution unit 35 does not register the new registered image data 46 when the registered image data 46 having the same identity is already registered when registering the new registered image data 46. The printer 26 associates the registered image data 46 having the same identity with the application management identification information 61, and thereby the registered image data 46 having the same identity using the application management identification information 61 as a key. It is assumed that an image can be recorded based on the above. As a result, the registered image data 46 having the same identity is prevented from being registered twice, and the registered image data 46 that has already been registered is realized while realizing more efficient use of the registered image data storage area TA. It is possible to appropriately record an image based on the above.

一方、ステップSA3の判別の結果、同一性を有する登録画像データ46がプリンター26に記憶されていない場合(ステップSA3:NO)、プリンタードライバー実行部35は、過去に行われた登録画像データ46の登録において、ステップSA1でPOSアプリケーション実行部34から入力されたファイル名、及び、アプリ管理用識別情報61のそれぞれと、同一のファイル名、及び、アプリ管理用識別情報61のそれぞれが、POSアプリケーション実行部34から入力されたことがあるか否かを判別する(ステップSA5)。
プリンタードライバー実行部35は、登録画像データ46の登録に際し、POSアプリケーション実行部34から入力されたファイル名、及び、アプリ管理用識別情報61を累積的に記憶し、管理する構成となっており、過去に行われた全ての登録について、それぞれの登録に係るファイル名、及び、アプリ管理用識別情報61が何であるかを取得可能である。
以下の説明では、登録画像データ46の登録に係る処理を、適宜、「登録処理」という。
また、以下の説明では、同一のファイル名、及び、アプリ管理用識別情報61に係る、過去に行われた登録処理によって登録された登録画像データ46のことを、適宜、「過去分登録画像データ」という。
On the other hand, as a result of the determination in step SA3, if the registered image data 46 having the same identity is not stored in the printer 26 (step SA3: NO), the printer driver execution unit 35 determines whether the registered image data 46 that has been previously obtained is stored. In registration, the file name input from the POS application execution unit 34 in step SA1 and the application management identification information 61 are the same as each file name and application management identification information 61. It is determined whether or not there has been input from the unit 34 (step SA5).
The printer driver execution unit 35 is configured to cumulatively store and manage the file name input from the POS application execution unit 34 and the application management identification information 61 when registering the registered image data 46. For all registrations that have been made in the past, it is possible to acquire what the file name and application management identification information 61 related to each registration are.
In the following description, processing related to registration of the registered image data 46 is appropriately referred to as “registration processing”.
Further, in the following description, the registered image data 46 registered by the registration processing performed in the past related to the same file name and the application management identification information 61 is appropriately referred to as “past registered image data”. "

ここで、現在行っている登録処理においてPOSアプリケーション実行部34から入力されたファイル名、及び、アプリ管理用識別情報61のそれぞれと、過去に行われた登録処理において入力されたファイル名、及び、アプリ管理用識別情報61のそれぞれと、が同一である、ということについて、トップロゴのデザインの変更を例に挙げて、具体的に説明する。
上述したように、トップロゴのデザインが変更された場合、変更後のトップロゴに係るアプリ管理用画像データ60(変更後アプリ管理用トップロゴデータ)のファイル名は、変更前のトップロゴに係るアプリ管理用画像データ60(アプリ管理用トップロゴデータ60a)のファイル名と同一とされる。そして、変更後のトップロゴに係る登録画像データ46の登録に際し、POSアプリケーション実行部34からプリンタードライバー実行部35に出力されるファイル名、及び、アプリ管理用識別情報61は、変更前のトップロゴに係るアプリ管理用画像データ60のファイル名、及び、アプリ管理用識別情報61と同一である。これを踏まえ、現在行っている登録処理に係るファイル名、及び、アプリ管理用識別情報61のそれぞれと、過去に行われた登録処理に係るファイル名、及び、アプリ管理用識別情報61のそれぞれと、が同一であるということは、すなわち、過去において、既に、トップロゴに係る登録画像データ46(本例の場合は、登録トップロゴデータ46a)の登録が行われており、現在行っている登録処理は、トップロゴの内容(デザイン)の変更に伴って行われる登録処理である、ということである。
より一般化すると、現在行っている登録処理に係るファイル名、及び、アプリ管理用識別情報61のそれぞれと、過去に行われた登録処理に係るファイル名、及び、アプリ管理用識別情報61のそれぞれと、が同一である場合、過去において、既に、共通する特定の目的で記録される画像に係る登録画像データ46の登録が行われており、現在行っている登録処理は、当該画像の内容の変更に伴って行われる登録処理である、ということである。
Here, the file name input from the POS application execution unit 34 in the registration process currently being performed, the application management identification information 61, the file name input in the registration process performed in the past, and The fact that each of the application management identification information 61 is the same will be specifically described by taking a change in the design of the top logo as an example.
As described above, when the design of the top logo is changed, the file name of the image data for application management 60 (top logo data for application management after change) related to the changed top logo is related to the top logo before change. The file name of the application management image data 60 (the application management top logo data 60a) is the same. When the registered image data 46 relating to the changed top logo is registered, the file name output from the POS application execution unit 34 to the printer driver execution unit 35 and the application management identification information 61 are the top logo before the change. The file name of the application management image data 60 and the application management identification information 61 are the same. Based on this, each of the file name and the application management identification information 61 related to the registration process currently performed, and each of the file name and the application management identification information 61 related to the registration process performed in the past, , Are the same, that is, in the past, registration image data 46 related to the top logo has already been registered (in this example, registration top logo data 46a), and the registration currently being performed is registered. The process is a registration process performed in accordance with a change in the content (design) of the top logo.
More generalized, each of the file name and application management identification information 61 related to the registration process currently being performed, and each of the file name and application management identification information 61 related to the registration process performed in the past. In the past, registration image data 46 relating to images recorded for a specific specific purpose has already been registered in the past, and the registration process currently being performed That is, the registration process is performed in accordance with the change.

さて、ステップSA5の判別の結果、過去に行われた登録処理において、ステップSA1で入力されたファイル名、及び、アプリ管理用識別情報61と同一のファイル名、及び、アプリ管理用識別情報61が入力されたことがある、と判別した場合(ステップSA5:YES)、プリンタードライバー実行部35は、適切な制御コマンドを出力して、プリンター26に、仮に過去に行われた登録処理において登録された登録画像データ46(過去分登録画像データ)を登録画像データ記憶可能領域TAから削除したとした場合に予想される当該登録画像データ記憶可能領域TAの空き領域の容量を算出させる(ステップSA6)。プリンター26のファームウェアの機能に、当該算出を行う機能が実装されている。   As a result of the determination in step SA5, in the registration processing performed in the past, the file name input in step SA1 and the same file name as the application management identification information 61 and the application management identification information 61 are obtained. If it is determined that it has been input (step SA5: YES), the printer driver execution unit 35 outputs an appropriate control command, and is registered in the printer 26 in the registration process performed in the past. When the registered image data 46 (the past registered image data) is deleted from the registered image data storage area TA, the capacity of the free area of the registered image data storage area TA that is expected is calculated (step SA6). A function for performing the calculation is implemented in the firmware function of the printer 26.

次いで、プリンタードライバー実行部35は、ステップSA2で取得したアプリ管理用画像データ60のデータサイズを取得し(ステップSA7)、当該データサイズと、ステップSA6にて算出させた、過去分登録画像データの消去後に予想される登録画像データ記憶可能領域TAの空き領域の容量と、を比較し、当該空き領域に、アプリ管理用画像データを、登録画像データ46として、記憶可能であるか否かを判別する(ステップSA8)。その際、必要なマージンや、必要な画像処理によるデータサイズの変動等が適切に考慮されて判別が行われる。トップロゴのデザインの変更の例では、プリンタードライバー実行部35は、変更後アプリ管理用トップロゴデータのデータサイズと、図3(A)に示す登録画像データ記憶可能領域TAの空き領域の容量とを比較し、当該空き領域に、変更後アプリ管理用トップロゴデータを登録画像データ46として記憶可能であるか否かを判別する。
空き領域にアプリ管理用画像データ60を記憶可能である場合(ステップSA8:YES)、プリンタードライバー実行部35は、適切な制御コマンドを出力して、プリンター26に、登録画像データ記憶可能領域TAから、過去分登録画像データを消去させる(ステップSA9)。トップロゴのデザインの変更の例では、プリンタードライバー実行部35は、プリンター26に、過去の登録処理において登録された登録画像データ46である登録トップロゴデータ46aを、登録画像データ記憶可能領域TAから削除させる。
Next, the printer driver execution unit 35 acquires the data size of the application management image data 60 acquired in step SA2 (step SA7), and the data size and the past registered image data calculated in step SA6. The capacity of the free area of the registered image data storage area TA expected after erasure is compared, and it is determined whether or not the application management image data can be stored as the registered image data 46 in the free area. (Step SA8). In this case, the determination is performed by appropriately taking into account a necessary margin, a change in data size due to necessary image processing, and the like. In the example of the design change of the top logo, the printer driver execution unit 35 determines the data size of the changed application management top logo data and the capacity of the free area of the registered image data storage area TA shown in FIG. Are compared, and it is determined whether or not the changed application management top logo data can be stored as the registered image data 46 in the empty area.
When the application management image data 60 can be stored in the free area (step SA8: YES), the printer driver execution unit 35 outputs an appropriate control command to the printer 26 from the registered image data storage area TA. The past registered image data is deleted (step SA9). In the example of changing the top logo design, the printer driver execution unit 35 stores the registered top logo data 46a, which is the registered image data 46 registered in the past registration process, in the printer 26 from the registered image data storage area TA. Let it be deleted.

次いで、プリンタードライバー実行部35は、アプリ管理用画像データ60、及び、アプリ管理用識別情報61を含む適切な制御コマンドを出力して、登録画像データ記憶可能領域TAにおいて過去分登録画像データが消去された記憶領域に対応する領域に、変更後アプリ管理用トップロゴデータを、登録画像データ46として、記憶させる(ステップSA10)。上述したように、当該変更後アプリ管理用トップロゴデータの記憶に応じて、プリンター側制御部40は、識別情報管理テーブル50における所定レコードの削除を行うと共に、識別情報管理テーブル50において、アプリ管理用識別情報61、プリンター管理用識別情報47、及び、新たに登録した登録画像データ46の対応付けを行う。   Next, the printer driver execution unit 35 outputs an appropriate control command including the application management image data 60 and the application management identification information 61, and the past registered image data is erased in the registered image data storage area TA. The changed application management top logo data is stored as registered image data 46 in an area corresponding to the storage area that has been set (step SA10). As described above, according to the storage of the post-change application management top logo data, the printer-side control unit 40 deletes the predetermined record in the identification information management table 50 and also manages the application management in the identification information management table 50. The identification information 61 for printer, the identification information 47 for printer management, and the newly registered image data 46 are associated with each other.

図6は、トップロゴのデザインの変更の例において、ステップSA10の処理を実行した後の、登録画像データ記憶可能領域TAの状態を模式的に示す図である。
図3(B)と、図6との比較で明らかなように、トップロゴのデザインの変更の例では、ステップSA9、SA10の一連の処理により、既に記憶されていた登録トップロゴデータ46aが領域ta1から削除され、当該領域ta1に対応する領域ta1’に、変更後登録トップロゴデータ(上述したように、変更後のトップロゴに係る登録画像データ46)が記憶される。なお、変更後登録トップロゴデータが登録画像データ記憶可能領域TAにおいて配置される際の態様は任意であり、例えば、領域ta1の容量に比して、変更後登録トップロゴデータのサイズが大きい場合は、領域ta1と、空き領域に分割して、当該データが記憶される。このような場合であっても、ステップSA8の判別が行われているため、登録画像データ記憶可能領域TA内に、変更後登録トップロゴデータを確実に格納可能である。
ここで、トップロゴのデザインが変更された場合、以後は、変更前のトップロゴに代えて、変更後のトップロゴの記録が行われることとなり、変更前のトップロゴに係る登録トップロゴデータ46aは利用しないこととなる。従って、本実施形態のように、変更後のトップロゴに係る登録画像データ46の登録に際し、所定の条件を満たす場合は、登録画像データ記憶可能領域TAから登録トップロゴデータ46aが削除された上で、変更後のトップロゴに係る登録画像データ46が記憶されるため、利用しない不必要なデータが適切に削除された上で、新たな登録画像データ46が記憶されることとなり、当該登録画像データ記憶可能領域TAの記憶領域の有効活用を適切に実行可能である。
また、本実施形態では、トップロゴの変更があった場合において、登録画像データ46に基づいてプリンター26にトップロゴを記録させる際に、POSアプリケーション実行部34からプリンタードライバー実行部35に出力されていた画像情報に含まれるファイル名と、アプリ管理用識別情報61が、トップロゴの変更の前後で同一である。従って、変更に対応して、POSアプリケーション20に対する改変という、煩雑な作業を行う必要がない。
このように、本実施形態に係るプリンタードライバー実行部35は、登録処理に際し、POSアプリケーション実行部34から入力されるファイル名、及び、アプリ管理用識別情報61を利用して、特定の目的を持って記録される画像に変更があり、当該変更に起因して登録処理が行われていることを把握し、既に登録されている登録した登録画像データ46であって、以後は利用しなくなる登録画像データ46を的確に判断し、利用しない登録画像データ46を記憶領域から削除した上で、変更後の新たな登録画像データ46を登録する構成であるため、有効活用を適切に実行可能である。
FIG. 6 is a diagram schematically showing the state of the registered image data storage area TA after performing the process of step SA10 in the example of changing the design of the top logo.
As is clear from comparison between FIG. 3B and FIG. 6, in the example of changing the design of the top logo, the registered top logo data 46 a that has already been stored is stored in the area by the series of processes of steps SA <b> 9 and SA <b> 10. The changed registered top logo data (registered image data 46 related to the changed top logo as described above) is stored in the area ta1 ′ corresponding to the area ta1. Note that the mode in which the registered top logo data after change is arranged in the registered image data storage area TA is arbitrary. For example, the size of the registered top logo data after change is larger than the capacity of the area ta1. Is divided into an area ta1 and an empty area, and the data is stored. Even in such a case, since the determination in step SA8 is performed, the changed registered top logo data can be reliably stored in the registered image data storage area TA.
Here, when the design of the top logo is changed, the top logo after the change is recorded instead of the top logo before the change, and the registered top logo data 46a related to the top logo before the change is recorded. Will not be used. Therefore, as in the present embodiment, when the registered image data 46 related to the changed top logo is registered, if the predetermined condition is satisfied, the registered top logo data 46a is deleted from the registered image data storage area TA. Then, since the registered image data 46 relating to the changed top logo is stored, unnecessary data that is not used is appropriately deleted, and new registered image data 46 is stored. Effective use of the storage area of the data storage area TA can be appropriately executed.
In the present embodiment, when the top logo is changed, the POS application execution unit 34 outputs the top logo to the printer driver execution unit 35 when the printer 26 records the top logo based on the registered image data 46. The file name included in the image information and the application management identification information 61 are the same before and after the change of the top logo. Therefore, it is not necessary to perform a complicated operation of modifying the POS application 20 in response to the change.
As described above, the printer driver execution unit 35 according to the present embodiment has a specific purpose using the file name input from the POS application execution unit 34 and the application management identification information 61 during the registration process. The registered image data 46 is a registered image that has already been registered and is no longer used, as it is understood that there is a change in the recorded image and the registration process has been performed due to the change. Since the configuration is such that the data 46 is accurately determined, the unused registered image data 46 is deleted from the storage area, and the new registered image data 46 after the change is registered, effective use can be appropriately performed.

一方、ステップSA8において、空き領域にアプリ管理用画像データ60を記憶可能でない場合(ステップSA8:NO)、プリンタードライバー実行部35は、適切な制御コマンドを出力して、登録しようとしているアプリ管理用画像データ60の登録画像データ46としての記憶を実行しない(ステップSA11)。
次いで、プリンタードライバー実行部35は、以後、プリンター26に登録画像データ46に基づいて画像を記録させる際に、POSアプリケーション実行部34から、ステップSA1で入力されたアプリ管理用識別情報61、及び、所定のファイル名が入力された場合、当該アプリ管理用識別情報61ではなく、当該所定のファイル名に係るアプリ管理用画像データ60を含む制御コマンドを生成し、プリンター26に出力することにより、当該アプリ管理用画像データ60に基づいて画像を記録させる旨の、設定を行う(ステップSA12)。当該設定は、プリンタードライバー21にて定義された変数や、フラグ等を用いて行われる。
このように、本実施形態では、新たに登録しようとしている登録画像データ46について、登録画像データ記憶可能領域TAの空き領域が確保されないことに起因して登録が行われなかった場合であっても、プリンタードライバー実行部35は、画像の記録に際しPOSアプリケーション実行部34から入力される画像情報に含まれるファイル名、及び、アプリ管理用識別情報61に基づいて、当該登録しようとしていた登録画像データ46が示す画像を、プリンター26に記録させることが可能である。
On the other hand, if the application management image data 60 cannot be stored in the free area in step SA8 (step SA8: NO), the printer driver execution unit 35 outputs an appropriate control command and manages the application for registration. The storage of the image data 60 as the registered image data 46 is not executed (step SA11).
Subsequently, when the printer driver execution unit 35 causes the printer 26 to record an image based on the registered image data 46, the application management identification information 61 input in step SA1 from the POS application execution unit 34, and When a predetermined file name is input, by generating a control command including the application management image data 60 related to the predetermined file name instead of the application management identification information 61, and outputting the control command to the printer 26, the Settings are made to record an image based on the application management image data 60 (step SA12). The setting is performed using variables, flags, and the like defined in the printer driver 21.
As described above, in the present embodiment, even if the registration image data 46 to be newly registered is not registered because the free area of the registration image data storage area TA is not secured. The printer driver execution unit 35 registers the registered image data 46 to be registered based on the file name included in the image information input from the POS application execution unit 34 and the application management identification information 61 when recording the image. Can be recorded by the printer 26.

さて、ステップSA5の判別の結果、過去に行われた登録処理において、ステップSA1で入力されたファイル名、及び、アプリ管理用識別情報61と同一のファイル名、及び、アプリ管理用識別情報61が入力されたことがない、と判別した場合(ステップSA5:NO)、プリンタードライバー実行部35は、適切な制御コマンドを出力して、プリンター26に、当該ファイル名に係るアプリ管理用画像データ60の登録に係る各種処理を行わせる(ステップSA13)。その際、アプリ管理用画像データ60が登録画像データ46として登録画像データ記憶可能領域TAに記憶されるのに十分な空き領域が確保されているか否か等の判別が適切に行われた上で記憶が実行されると共に、識別情報管理テーブル50におけるアプリ管理用識別情報61と、プリンター管理用識別情報47と、新たに登録した登録画像データ46の位置情報との対応付けが適切に行われる。   As a result of the determination in step SA5, in the registration processing performed in the past, the file name input in step SA1 and the same file name as the application management identification information 61 and the application management identification information 61 are obtained. If it is determined that the file has never been input (step SA5: NO), the printer driver execution unit 35 outputs an appropriate control command to the printer 26 for the application management image data 60 relating to the file name. Various processes related to registration are performed (step SA13). At this time, after appropriately determining whether or not a sufficient free area is secured for storing the application management image data 60 as the registered image data 46 in the registered image data storage area TA. As the storage is executed, the application management identification information 61, the printer management identification information 47 in the identification information management table 50, and the position information of the newly registered registered image data 46 are appropriately associated with each other.

以上説明したように、本実施形態では、ホストコンピューター11のプリンタードライバー実行部35は、登録処理に際し、POSアプリケーション実行部34から入力されたファイル名、及び、アプリ管理用識別情報61のそれぞれが、過去に行った登録処理におけるファイル名、及び、アプリ管理用識別情報61のそれぞれと同じ場合、プリンター26に、当該過去に行った登録処理においてプリンター26に登録された登録画像データ46を登録画像データ記憶可能領域TAから消去させ、新たに登録しようとしている登録画像データ46を記憶させる。
この構成によれば、トップロゴのデザイン変更等、特定の目的で記録される画像についてその内容に変更があった場合、プリンタードライバー実行部35は、POSアプリケーション実行部34から入力されるファイル名、及び、アプリ管理用識別情報61を利用して、プリンター26に既に登録されている登録画像データ46であって、今後使用しない登録画像データ46を的確に判別し、当該登録画像データ46を削除した上で、新たに登録しようとしている登録画像データ46を記憶するため、記憶領域の効率的な使用が可能となる。さらに、上記構成によれば、トップロゴのデザイン変更等、特定の目的で記録される画像についてその内容に変更があった場合において、新たに登録した登録画像データ46に基づく画像の記録をプリンター26に行わせる場合、POSアプリケーション実行部34からプリンタードライバー実行部35に出力されるファイル名、及び、アプリ管理用識別情報61は、登録の前後を通じて同じであるため、当該登録に起因したPOSアプリケーション20に対する改変を行う必要がない。
As described above, in the present embodiment, the printer driver execution unit 35 of the host computer 11 receives the file name input from the POS application execution unit 34 and the application management identification information 61 during the registration process. When the file name and the application management identification information 61 in the past registration processing are the same, the registered image data 46 registered in the printer 26 in the past registration processing is registered in the printer 26. The registered image data 46 to be newly registered is erased from the storable area TA and stored.
According to this configuration, when there is a change in the content of an image recorded for a specific purpose such as a design change of the top logo, the printer driver execution unit 35 receives the file name input from the POS application execution unit 34, Then, using the application management identification information 61, the registered image data 46 that is already registered in the printer 26 and that is not used in the future is accurately determined, and the registered image data 46 is deleted. In addition, since the registered image data 46 to be newly registered is stored, the storage area can be used efficiently. Furthermore, according to the above configuration, when there is a change in the content of an image recorded for a specific purpose, such as a design change of the top logo, the printer 26 records an image based on the newly registered image data 46. In this case, since the file name output from the POS application execution unit 34 to the printer driver execution unit 35 and the application management identification information 61 are the same before and after registration, the POS application 20 resulting from the registration. There is no need to modify

また、本実施形態では、プリンタードライバー実行部35は、登録処理において、過去に行った登録処理においてプリンター26に登録された登録画像データ46を消去した場合に、新たに登録しようとしている登録画像データ46を記憶する空き領域が確保されるか否かを判別し、確保されない場合は、登録画像データ46の登録を行わない。
この構成によれば、登録処理に際し、新たに登録しようとしている登録画像データ46を登録するための空き領域が確保されない場合は、登録を行わないため、登録画像データ46の一部が記憶されなかったり、オーバーフロー等のエラーが発生したりすることを防止できる。
In the present embodiment, the printer driver execution unit 35 newly registers image data to be registered when the registered image data 46 registered in the printer 26 in the registration process performed in the past is deleted. It is determined whether or not a free area for storing 46 is secured. If the free area is not secured, registration of the registered image data 46 is not performed.
According to this configuration, in the registration process, if a free area for registering newly registered image data 46 to be registered is not secured, the registration is not performed, and thus a part of the registered image data 46 is not stored. Or an error such as an overflow can be prevented.

また、本実施形態では、プリンタードライバー実行部35は、新たに登録しようとしている登録画像データ46を記憶する記憶領域が確保されないことに起因して登録画像データ46の登録を行わなかった場合において、当該新たに登録しようとした登録画像データ46に係る画像の記録をプリンター26に行わせる場合、当該新たに登録しようとした登録画像データ46に係る画像データを含む制御コマンドを生成し、出力することにより、プリンター26に、当該制御コマンドに含まれる当該画像データに基づいて画像を記録させる。
この構成によれば、新たに登録しようとしている登録画像データ46を記憶する記憶領域が確保されないことに起因して当該登録画像データ46の登録が行われなかった場合であっても、プリンター26に、対応する画像の記録を行わせることができる。
In this embodiment, the printer driver execution unit 35 does not register the registered image data 46 because the storage area for storing the newly registered image data 46 to be newly registered is not secured. When the printer 26 records an image related to the newly registered image data 46 to be newly registered, a control command including the image data related to the newly registered image data 46 to be newly registered is generated and output. Thus, the printer 26 records an image based on the image data included in the control command.
According to this configuration, even if the registration image data 46 is not registered because the storage area for storing the registration image data 46 to be newly registered is not secured, the printer 26 is not registered. The corresponding image can be recorded.

また、本実施形態では、プリンタードライバー実行部35は、登録処理においてPOSアプリケーション20からファイル名、及び、アプリ管理用識別情報61が入力された場合、当該ファイル名に係るアプリ管理用画像データ60と、同一性を有する登録画像データ46がプリンター26に記憶されているか否かを判別し、記憶されている場合、新たに登録しようとしている登録画像データ46の登録を行わず、当該同一性を有する登録画像データ46と、当該アプリ管理用識別情報61との対応付けをプリンター26に行わせる。
この構成によれば、新たに登録しようとしている登録画像データ46が既に登録されている場合に、重複して登録されることを防止し、記憶領域のより効率的な使用を実現しつつ、既に登録されている登録画像データ46に基づく画像の記録を適切に行わせることが可能となる。
In the present embodiment, when the file name and the application management identification information 61 are input from the POS application 20 in the registration process, the printer driver execution unit 35 includes the application management image data 60 associated with the file name and the application management image data 60. Then, it is determined whether or not the registered image data 46 having the same identity is stored in the printer 26. If the registered image data 46 is stored, the registered image data 46 to be newly registered is not registered and has the same identity. The printer 26 associates the registered image data 46 with the application management identification information 61.
According to this configuration, when the registered image data 46 to be newly registered is already registered, it is prevented that the registered image data 46 is registered, and more efficient use of the storage area is achieved while already being performed. It is possible to appropriately record an image based on the registered image data 46 registered.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、制御装置たるホストコンピューター11に接続される記録装置は、サーマル式のプリンターであったが、記録装置の記録形式はこれに限らず、インクジェット式、ドットインパクト式等であってもよい。すなわち、登録画像データ46に基づいて画像を記録可能な記録装置であればよい。
また例えば、図1に示す各機能ブロックはハードウェアとソフトウェアの協働により任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また例えば、ホスト側制御部28の機能を、ホストコンピューター11に外部接続される別の装置に持たせるようにしてもよい。
また、外部接続される記憶媒体に記憶させたプログラムを実行することにより、図3、4で示した各フローチャートの各ステップを実行するようにしてもよい。
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 recording device connected to the host computer 11 serving as the control device is a thermal printer. However, the recording format of the recording device is not limited to this, and an inkjet type, a dot impact type, or the like. There may be. That is, any recording apparatus that can record an image based on the registered image data 46 may be used.
Further, for example, 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, for example, the function of the host-side control unit 28 may be provided in another device externally connected to the host computer 11.
Further, each step of each flowchart shown in FIGS. 3 and 4 may be executed by executing a program stored in an externally connected storage medium.

11…ホストコンピューター(制御装置)、20…POSアプリケーション(アプリケーション)、21…プリンタードライバー(制御プログラム)、26…プリンター(記録装置)、34…POSアプリケーション実行部(アプリケーション実行部)、35…プリンタードライバー実行部(制御プログラム実行部)、46…登録画像データ、46a…登録トップロゴデータ(登録画像データ)、46b…登録ボトムロゴデータ(登録画像データ)、TA…登録画像データ記憶可能領域(記憶領域)。   DESCRIPTION OF SYMBOLS 11 ... Host computer (control apparatus), 20 ... POS application (application), 21 ... Printer driver (control program), 26 ... Printer (recording apparatus), 34 ... POS application execution part (application execution part), 35 ... Printer driver Execution unit (control program execution unit) 46 ... registered image data, 46a ... registered top logo data (registered image data), 46b ... registered bottom logo data (registered image data), TA ... registered image data storage area (storage area) ).

Claims (5)

制御プログラムを実行し、記録装置に制御コマンドを出力して前記記録装置を制御する制御プログラム実行部と、
前記記録装置の記憶領域に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して記憶する記憶部と、
アプリケーションを実行し、記録媒体に記録する画像に関する画像情報を生成し、前記制御プログラム実行部に出力するアプリケーション実行部と、を備え、
前記アプリケーション実行部は、第2の登録画像データの第2のファイル名及び第2の識別情報を前記制御プログラム実行部に出力し、
前記アプリケーション実行部から前記第2のファイル名及び前記第2の識別情報が入力されたとき、
前記制御プログラム実行部は、
入力された前記第2のファイル名及び前記第2の識別情報が、前記記憶部に記憶された前記第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に登録された前記第1の登録画像データを前記記憶領域から消去させ
前記第2のファイル名に係る画像データと前記第1のファイル名に係る画像データとが同一性を有するか否かを判別し、同一性を有する場合、前記第2の登録画像データの前記記録装置への登録を行わず、前記第1の登録画像データと、前記第2の識別情報との対応付けを前記記録装置に行わせることを特徴とする制御装置。
A control program execution unit that executes a control program and outputs a control command to the recording apparatus to control the recording apparatus;
A storage unit for acquiring and storing the first file name and the first identification information of the first registered image data registered in the storage area of the recording device;
An application execution unit that executes an application, generates image information relating to an image to be recorded on a recording medium, and outputs the image information to the control program execution unit;
The application execution unit outputs a second file name and second identification information of the second registered image data to the control program execution unit,
When the second file name and the second identification information are input from the application execution unit,
The control program execution unit
The second file name and the second identification information entered is the same whether determining that said stored in the storage unit the first file name and the first identification information, the same case, the Deleting the first registered image data registered in the recording device from the storage area ;
It is determined whether or not the image data related to the second file name and the image data related to the first file name have the same, and if they have the same, the recording of the second registered image data without registration to the device, the first registration image data, the control device according to claim Rukoto to perform the correlation between the second identification information to the recording device.
前記制御プログラム実行部は、
前記記録装置の前記記憶領域に前記第2の登録画像データを記憶する空き領域が確保されるか否かを判別し、
確保される場合は、前記第2の登録画像データの登録を行い、
確保されない場合は、前記第2の登録画像データの登録を行わない請求項1に記載の制御装置。
The control program execution unit
Determining whether a free area for storing the second registered image data is secured in the storage area of the recording apparatus;
If secured, register the second registered image data,
The control device according to claim 1, wherein when the second registered image data is not secured, the second registered image data is not registered.
前記制御プログラム実行部は、
前記第2の登録画像データの登録を行わなかったときに、前記第2の登録画像データに係る画像の記録を前記記録装置に行わせる場合、
前記第2の登録画像データに係る画像データを含む制御コマンドを生成し、出力して前記記録装置に、当該制御コマンドに含まれる画像データに基づいて画像を記録させる請求項2に記載の制御装置。
The control program execution unit
When recording the image related to the second registered image data when the second registered image data is not registered,
Said image data to generate a control command including a according to the second registration image data, in the recording apparatus to output, according to claim 2 for recording an image on the basis of images data that is included in the control command Control device.
記録装置に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して制御装置で記憶し、
アプリケーションで第2の登録画像データの第2のファイル名及び第2の識別情報を制御プログラムに出力し、
前記アプリケーションから前記第2のファイル名及び前記第2の識別情報が入力されたとき、
前記制御プログラムで、
前記アプリケーションから入力された前記第2のファイル名及び前記第2の識別情報が、前記制御装置で記憶された前記第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に、前記第1の登録画像データを記憶領域から消去させ
前記第2のファイル名に係る画像データと前記第1のファイル名に係る画像データとが同一性を有するか否かを判別し、同一性を有する場合、前記第2の登録画像データの前記記録装置への登録を行わず、前記第1の登録画像データと、前記第2の識別情報との対応付けを前記記録装置に行わせることを特徴とする制御装置の制御方法。
Acquiring the first file name and the first identification information of the first registered image data registered in the recording device and storing them in the control device;
The application outputs the second file name and the second identification information of the second registered image data to the control program,
When the second file name and the second identification information are input from the application,
In the control program,
It is determined whether or not the second file name and the second identification information input from the application are the same as the first file name and the first identification information stored in the control device. In the case, the recording device deletes the first registered image data from the storage area ,
It is determined whether or not the image data related to the second file name and the image data related to the first file name have the same, and if they have the same, the recording of the second registered image data without registration in the apparatus, a control method of a control apparatus according to the a first registered image data, characterized Rukoto the association between the second identifying information to perform the recording apparatus.
記録装置に接続可能な制御装置を制御するコンピューターにより実行されるプログラムであって、
前記コンピューターを、
前記記録装置に登録された第1の登録画像データの第1のファイル名および第1の識別情報を取得して制御装置で記憶させ、
アプリケーションで第2の登録画像データの第2のファイル名及び第2の識別情報を出力したときに、
入力された前記第2のファイル名及び第2の前記識別情報が、記憶された前記第1のファイル名及び前記第1の識別情報と同じか否か判別し、同じ場合、前記記録装置に、前記記録装置に登録された前記第1の登録画像データを記憶領域から消去させて前記第2の登録画像データを記憶させ
前記第2のファイル名に係る画像データと前記第1のファイル名に係る画像データとが同一性を有するか否かを判別し、同一性を有する場合、前記第2の登録画像データの前記記録装置への登録を行わず、前記第1の登録画像データと、前記第2の識別情報との対応付けを前記記録装置に行わせ手段として機能させることを特徴とするプログラム。
A program executed by a computer that controls a control device connectable to a recording device,
The computer,
The recording apparatus is stored in the first file name and the first identification information acquired by the control apparatus of the first registration image data registered in,
When the application outputs the second file name and the second identification information of the second registered image data,
It is determined whether or not the input second file name and the second identification information are the same as the stored first file name and the first identification information. Deleting the first registered image data registered in the recording device from the storage area and storing the second registered image data ;
It is determined whether or not the image data related to the second file name and the image data related to the first file name have the same, and if they have the same, the recording of the second registered image data without registration to the device, the a first registered image data, program characterized the association between the second identifying information be made to function as means causes Ru performed in the recording apparatus.
JP2011250272A 2011-11-16 2011-11-16 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM Expired - Fee Related JP5857656B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011250272A JP5857656B2 (en) 2011-11-16 2011-11-16 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011250272A JP5857656B2 (en) 2011-11-16 2011-11-16 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Publications (3)

Publication Number Publication Date
JP2013105407A JP2013105407A (en) 2013-05-30
JP2013105407A5 JP2013105407A5 (en) 2014-12-04
JP5857656B2 true JP5857656B2 (en) 2016-02-10

Family

ID=48624872

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011250272A Expired - Fee Related JP5857656B2 (en) 2011-11-16 2011-11-16 CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP5857656B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0934666A (en) * 1995-07-17 1997-02-07 Nec Corp Documentation device and printer
JP4120469B2 (en) * 2003-05-22 2008-07-16 セイコーエプソン株式会社 POS system print control apparatus, image data registration method, and image data initialization method
JP4779455B2 (en) * 2005-06-14 2011-09-28 セイコーエプソン株式会社 Printer, printer system, and printer control method
JP2006301738A (en) * 2005-04-15 2006-11-02 Seiko Epson Corp Image registration apparatus, and image registration deleting method and program

Also Published As

Publication number Publication date
JP2013105407A (en) 2013-05-30

Similar Documents

Publication Publication Date Title
JP5380949B2 (en) Receipt issuing apparatus, receipt issuing system, printing apparatus, and printing apparatus control method
KR101429850B1 (en) Recording device and control method of a recording device
JP5728946B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5532848B2 (en) Recording control apparatus, control method, and program
JP5842335B2 (en) Image recording apparatus, image recording apparatus control method, and program
JP5857656B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5655453B2 (en) Electronic device, control method of electronic device, and program
JP2012113608A (en) Control device, recording system, control method of control device, and program
JP5377545B2 (en) Product sales data processing apparatus, product sales data processing system, and screen control program
JP5862045B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2012123704A (en) Control apparatus, control method of control apparatus, and program
US10437533B2 (en) Print system, printer driver, and program
JP6920800B2 (en) Payment device, program and logging method
CN102616018B (en) The control method of tape deck, register system and tape deck
JP6003265B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP5838742B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2013257805A (en) Control device, control method of control device, and program
JP5987415B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP2011192107A (en) Control device, recording system, control method of the control device and program
JP4589090B2 (en) Rewrite card processing device and attendance and attendance management system
JP2012141808A (en) Control device, control method thereof, and program
JP6459260B2 (en) Recording system, recording control method, and recording apparatus
JP6127638B2 (en) Printing apparatus, printing apparatus control method, and program
JP2014054846A (en) Control device, control method for control device, and program
JP5816656B2 (en) Printing apparatus, registration processing apparatus, and printing apparatus control program

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141016

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141016

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150917

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151013

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151026

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: 20151117

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151130

R150 Certificate of patent or registration of utility model

Ref document number: 5857656

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees