JP5715878B2 - Electronic cash register - Google Patents

Electronic cash register Download PDF

Info

Publication number
JP5715878B2
JP5715878B2 JP2011112872A JP2011112872A JP5715878B2 JP 5715878 B2 JP5715878 B2 JP 5715878B2 JP 2011112872 A JP2011112872 A JP 2011112872A JP 2011112872 A JP2011112872 A JP 2011112872A JP 5715878 B2 JP5715878 B2 JP 5715878B2
Authority
JP
Japan
Prior art keywords
information
item
product
stored
storage means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2011112872A
Other languages
Japanese (ja)
Other versions
JP2012243098A (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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2011112872A priority Critical patent/JP5715878B2/en
Publication of JP2012243098A publication Critical patent/JP2012243098A/en
Application granted granted Critical
Publication of JP5715878B2 publication Critical patent/JP5715878B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、書換え回数に制限のある記憶媒体を用いる電子式金銭登録機に関する。 The present invention relates to an electronic cash register using a storage medium with a limited number of rewrites.

従来、電子式金銭登録機(Electronic Cash Register:略称「ECR」)では、商品マスタを記憶するデバイスとしてメモリバックアップが可能なランダムアクセスメモリ(Random Access Memory:略称「RAM」)、たとえばスタティックRAM(以下「SRAM」という)を使用している。   Conventionally, in an electronic cash register (Electronic Cash Register: abbreviation “ECR”), a random access memory (Random Access Memory: abbreviated “RAM”) capable of memory backup as a device for storing a product master, for example, a static RAM (hereinafter referred to as “RAM”) "SRAM").

商品の件数が多い日本商品識別番号(Japanese Article Number:略称「JAN」)などを用いる商品マスタのデータを保存するためには、大容量のSRAMを使用する必要がある。しかし、SRAMは、コスト、つまり商品単価が高いので、大容量のSRAMを使用する場合、ECRの製品原価が高くなり、商品の利益率が低下する。   In order to store data of a product master using a Japanese product identification number (Japanese Article Number: abbreviated as “JAN”) having a large number of products, it is necessary to use a large-capacity SRAM. However, since the SRAM has a high cost, that is, a product unit price, when a large-capacity SRAM is used, the product cost of the ECR becomes high and the profit rate of the product decreases.

そこで、商品マスタ保存用のメモリとして、SRAMに比べ低コストの大容量メモリであるフラッシュメモリ(俗称「フラッシュROM(Read Only Memory)」:以下「フラッシュROM」という)を採用することによって、利益率の改善を図っている。しかし、SRAMに比べ、フラッシュROMには、書換え回数に制限がある、また、記憶されているデータを消去しないと書換え、つまり上書き更新ができないというデメリットがある。したがって、フラッシュROMは、日々の売上金額や単価の変更など、書換え頻度が多いデータの記憶には適していない。   Therefore, by using a flash memory (commonly referred to as “flash ROM (Read Only Memory)”, hereinafter referred to as “flash ROM”), which is a low-capacity large-capacity memory compared to SRAM, as a product master storage memory, a profit rate is achieved. We are trying to improve. However, the flash ROM has a demerit that the number of times of rewriting is limited as compared with the SRAM, and rewriting, that is, overwriting and updating cannot be performed unless the stored data is erased. Therefore, the flash ROM is not suitable for storing data that is frequently rewritten such as daily sales amount and change in unit price.

従来技術として、特許文献1に記載されるジャーナル書込み方式がある。このジャーナル書込み方式では、処理部は、フラッシュアドバンストテクノロジーアタッチメント(Advanced Technology Attachment:略称「ATA」)−パーソナルコンピュータ(Personal Computer:略称「PC」)カード(以下「フラッシュATA−PCカード」という)にジャーナルデータファイルをオープンした後、入力されるジャーナルデータを一旦RAMのジャーナルデータ一時格納領域に記録する。そして、ジャーナルデータ一時格納領域に記録されたジャーナルデータのサイズがセクタサイズ以上になると、処理部は、セクタサイズ分のジャーナルデータをフラッシュATA−PCカードに記録する。処理部は、システムを終了するときに、ジャーナルデータファイルをクローズする。このようにして、フラッシュATA−PCカードに形成されるファイルアロケーションテーブル(File Allocation Table:略称「FAT」)領域への書換え回数を、システム終了時の1回のみとし、フラッシュATA−PCカードの使用可能期間を延長している。   As a prior art, there is a journal writing method described in Patent Document 1. In this journal writing method, the processing unit journals to a flash advanced technology attachment (abbreviated as “ATA”)-personal computer (abbreviated as “PC”) card (hereinafter referred to as “flash ATA-PC card”). After opening the data file, the input journal data is temporarily recorded in the journal data temporary storage area of the RAM. When the size of the journal data recorded in the journal data temporary storage area becomes equal to or larger than the sector size, the processing unit records journal data for the sector size on the flash ATA-PC card. The processing unit closes the journal data file when terminating the system. In this way, the number of rewrites to the file allocation table (File Allocation Table: abbreviated as “FAT”) area formed on the flash ATA-PC card is set to one at the end of the system, and the flash ATA-PC card is used. The possible period is extended.

特開2001−209567号公報JP 2001-209567 A

しかしながら、上述した従来技術は、RAMのジャーナルデータ一時格納領域に記憶するジャーナルデータの容量が少ない場合には有効であるが、JANなどデータ量が多い場合は、RAMの容量を増やす必要があり、コストが増大するという問題がある。   However, the above-described conventional technique is effective when the amount of journal data stored in the journal data temporary storage area of the RAM is small. However, when the amount of data such as JAN is large, it is necessary to increase the capacity of the RAM. There is a problem that the cost increases.

本発明の目的は、大容量のデータの更新を行うに際して、高価なRAMの使用量を減らすとともに、書換え回数に制限のあるフラッシュROMの使用可能期間を伸ばすことができる電子式金銭登録機を提供することである。 An object of the present invention is to provide an electronic cash register capable of reducing the amount of use of expensive RAM and extending the usable period of a flash ROM with a limited number of rewrites when updating a large amount of data. It is to be.

本発明は、書換え回数に制限のない第1の記憶手段と、
書換え回数に制限のある第2の記憶手段と、
商品に関する複数の項目についての情報のうち、書換え頻度が予め定める基準頻度以上である第1の項目の情報を第1の記憶手段に記憶させ、書換え頻度が予め定める基準頻度未満である第2の項目の情報を第1の項目の情報と対応付けて第2の記憶手段に記憶させる制御手段であって、互いに対応する第1の項目の情報と第2の項目の情報とを、第1の記憶手段および第2の記憶手段から読出し、読出した第1の項目の情報と第2の項目の情報とに基づいて取引処理を行う制御手段とを含むことを特徴とする電子式金銭登録機である。
The present invention provides a first storage means having no limit on the number of rewrites,
A second storage means with a limited number of rewrites;
Of the information about the plurality of items related to the product, the first item information whose rewrite frequency is equal to or higher than a predetermined reference frequency is stored in the first storage means, and the second rewrite frequency is less than the predetermined reference frequency Control means for associating the item information with the first item information and storing it in the second storage means, wherein the first item information and the second item information corresponding to each other are An electronic cash register comprising: a storage means and a control means for performing transaction processing based on the read information of the first item and the information of the second item, read from the second storage means is there.

また本発明は、前記第1の記憶手段には、各商品を識別するための識別情報が記憶されており、
前記制御手段は、第1の項目の情報を、前記識別情報に対応付けて第1の記憶手段に記憶させ、第2の項目の情報を、前記識別情報に対応付けて第2の記憶手段に記憶させることを特徴とする。
In the present invention, the first storage means stores identification information for identifying each product,
The control means stores information on the first item in the first storage means in association with the identification information, and stores information on the second item in the second storage means in association with the identification information. It is memorized.

また本発明は、前記制御手段は、第2の項目の情報が記憶される第2の記憶手段のアドレスを特定する特定情報を、前記識別情報と対応付けて第1の記憶手段に記憶させることを特徴とする。   According to the present invention, the control means causes the first storage means to store the specific information for specifying the address of the second storage means in which the information of the second item is stored in association with the identification information. It is characterized by.

また本発明は、前記制御手段は、第2の記憶手段に記憶される第2の項目の情報を更新するとき、変更前の第2の項目の情報を消去することなく、変更後の第2の項目の情報を第2の記憶手段の領域のうち未書込みの領域に書込み、第1の記憶手段に記憶される特定情報を、変更後の第2の項目の情報を書込んだアドレスを特定する特定情報に書換えることを特徴とする。   According to the present invention, when the control means updates the information of the second item stored in the second storage means, the second information after the change is deleted without deleting the information of the second item before the change. The information of the item is written in the unwritten area of the second storage means, the specific information stored in the first storage means is specified, and the address where the changed second item information is written is specified It is characterized by rewriting the specific information.

また本発明は、前記識別情報は、自然数によって表され、
前記制御手段は、第1の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第1の記憶手段に記憶させ、第2の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第2の記憶手段に記憶させることを特徴とする。
In the present invention, the identification information is represented by a natural number,
The control means associates the information of the first item with the identification information and stores it in the first storage means in ascending or descending order of the identification information, and associates the information of the second item with the identification information. The identification information is stored in the second storage means in ascending or descending order.

本発明によれば、第1の記憶手段は、書換え回数に制限がない。第2の記憶手段は、書換え回数に制限がある。そして、制御手段は、商品に関する複数の項目についての情報のうち、書換え頻度が予め定める基準頻度以上である第1の項目の情報を第1の記憶手段に記憶させ、書換え頻度が予め定める基準頻度未満である第2の項目の情報を第1の項目の情報と対応付けて第2の記憶手段に記憶させる。制御手段は、第1の記憶手段および第2の記憶手段から互いに対応する第1の項目の情報と第2の項目の情報とを読出し、読出した第1の項目の情報と第2の項目の情報とに基づいて取引処理を行う。したがって、第1の記憶手段、たとえば高価なSRAMの使用量を減らすことができ、コスト削減を図ることができる。また、書換え頻度の低い情報を書換え回数に制限のある第2の記憶手段に記憶するので、第2の記憶手段、たとえばフラッシュROMの使用可能期間を延ばすことができる。 According to the present invention, the first storage means has no limit on the number of rewrites. The second storage means has a limit on the number of rewrites. And a control means memorize | stores the information of the 1st item in which the rewriting frequency is more than the predetermined reference frequency among the information about the several item regarding goods in the 1st memory | storage means, and the rewriting frequency is predetermined reference frequency The information of the second item that is less than the number is stored in the second storage unit in association with the information of the first item . The control means reads the first item information and the second item information corresponding to each other from the first storage unit and the second storage unit, and reads the read first item information and second item information. Transaction processing based on information. Therefore, the amount of use of the first storage means, for example, an expensive SRAM can be reduced, and the cost can be reduced. In addition, since information with low rewrite frequency is stored in the second storage means having a limited number of rewrites, the usable period of the second storage means, for example, the flash ROM, can be extended.

また本発明によれば、前記第1の記憶手段には、各商品を識別するための識別情報が記憶されている。そして、前記制御手段は、第1の項目の情報を、前記識別情報に対応付けて第1の記憶手段に記憶させ、第2の項目の情報を、前記識別情報に対応付けて第2の記憶手段に記憶させる。したがって、複数の項目の情報を識別情報ごとに管理することができる。   According to the invention, the first storage means stores identification information for identifying each product. Then, the control means stores the information on the first item in the first storage means in association with the identification information, and stores the information on the second item in the second storage in association with the identification information. Memorize in means. Therefore, information of a plurality of items can be managed for each identification information.

また本発明によれば、前記制御手段は、第2の項目の情報が記憶される第2の記憶手段のアドレスを特定する特定情報を、前記識別情報と対応付けて第1の記憶手段に記憶させる。したがって、第1の記憶手段に記憶される特定情報によって、第2の記憶手段に記憶される第2の項目の情報を特定することができる。   According to the invention, the control means stores in the first storage means the specific information for specifying the address of the second storage means for storing the information of the second item in association with the identification information. Let Therefore, the information of the second item stored in the second storage unit can be specified by the specific information stored in the first storage unit.

また本発明によれば、前記制御手段は、第2の記憶手段に記憶される第2の項目の情報を更新するとき、変更前の第2の項目の情報を消去することなく、変更後の第2の項目の情報を第2の記憶手段の領域のうち未書込みの領域に書込み、第1の記憶手段に記憶される特定情報を、変更後の第2の項目の情報を書込んだアドレスを特定する特定情報に書換える。したがって、第2の項目の情報を更新しても、第2の記憶手段の消去を行う必要がなく、第2の記憶手段、たとえばフラッシュROMの使用可能期間をより延ばすことができる。   According to the invention, the control means updates the information of the second item stored in the second storage means without deleting the information of the second item before the change. The address in which the information of the second item is written in the unwritten area of the area of the second storage means, the specific information stored in the first storage means is written with the information of the second item after the change Rewrite with specific information to identify. Therefore, even if the information of the second item is updated, it is not necessary to erase the second storage means, and the usable period of the second storage means, for example, the flash ROM can be further extended.

また本発明によれば、前記識別情報は、自然数によって表される。そして、前記制御手段は、第1の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第1の記憶手段に記憶させ、第2の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第2の記憶手段に記憶させる。したがって、識別情報による検索を容易に行うことができる。   According to the invention, the identification information is represented by a natural number. The control means associates the information of the first item with the identification information and stores the information in the ascending or descending order of the identification information in the first storage means, and corresponds the information of the second item to the identification information. In addition, the identification information is stored in the second storage means in ascending or descending order. Therefore, a search based on identification information can be easily performed.

本発明の一実施形態であるECR1の構成を示すブロック図である。It is a block diagram which shows the structure of ECR1 which is one Embodiment of this invention. 商品マスタ情報30の構成を示す図である。It is a figure which shows the structure of the merchandise master information. RAM12に記憶される情報の構成を示す図である。It is a figure which shows the structure of the information memorize | stored in RAM12. フラッシュROM13に記憶される情報の構成を示す図である。3 is a diagram showing a configuration of information stored in a flash ROM 13. FIG. プログラム格納ROM14に記憶される情報の構成を示す図である。It is a figure which shows the structure of the information memorize | stored in program storage ROM14. フラッシュROMブロック構成テーブル144の構成を示す図である。4 is a diagram showing a configuration of a flash ROM block configuration table 144. FIG. 商品マスタ情報メモリ構成テーブル125の構成を示す図である。It is a figure which shows the structure of the goods master information memory structure table. フラッシュROM書込みポインタテーブル126の構成を示す図である。3 is a diagram showing a configuration of a flash ROM write pointer table 126. FIG. 商品マスタインデックス情報122の構成を示す図である。It is a figure which shows the structure of the merchandise master index information. レコードポインタが示すレコードに記憶される情報を示す図である。It is a figure which shows the information memorize | stored in the record which a record pointer shows. フラッシュROM13に記憶される第2商品マスタ情報131の構成を示す図である。It is a figure which shows the structure of the 2nd goods master information 131 memorize | stored in flash ROM13. 商品名変更に伴う商品マスタインデックス情報122の変更前後のデータを示す図である。It is a figure which shows the data before and behind the change of the merchandise master index information 122 accompanying a merchandise name change. 商品名変更に伴うフラッシュROM書込みポインタテーブル126の変更前後のデータを示す図である。It is a figure which shows the data before and behind the change of the flash ROM write pointer table 126 accompanying a merchandise name change. 商品名変更に伴う第2商品マスタ情報131の一部の変更前後のデータを示す図である。It is a figure which shows the data before and behind a part change of the 2nd goods master information 131 accompanying a goods name change. 精算処理に伴う商品マスタインデックス情報122の変更前後のデータを示す図である。It is a figure which shows the data before and behind the change of the merchandise master index information 122 accompanying a checkout process. 精算処理に伴う当日売上情報128の変更前後のデータを示す図である。It is a figure which shows the data before and behind the change of the same day sales information 128 accompanying a checkout process. 精算処理に伴うフラッシュROM書込みポインタテーブル126の変更前後のデータを示す図である。It is a figure which shows the data before and behind the change of the flash ROM write pointer table 126 accompanying a checkout process. 精算処理に伴う第2商品マスタ情報131の他の一部の変更前後のデータを示す図である。It is a figure which shows the data before and behind another part of 2nd goods master information 131 accompanying a checkout process. 商品名変更処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a merchandise name change process. 精算処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a payment process. 商品マスタデータ読出処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of goods master data read-out process. 商品マスタデータ書込処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of goods master data write-in process. 商品マスタデータ書込処理の処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of goods master data write-in process. 従来技術による商品名変更での商品マスタ情報の書換えを説明するための図である。It is a figure for demonstrating rewriting of the merchandise master information by the merchandise name change by a prior art. 従来技術による精算処理での変更前後の商品マスタ情報を示す図である。It is a figure which shows the merchandise master information before and behind the change in the adjustment process by a prior art.

図1は、本発明の一実施形態である電子式金銭登録機(Electronic Cash Register:以下「ECR」という)1の構成を示すブロック図である。ECR1は、制御部11、ランダムアクセスメモリ(Random Access Memory:略称「RAM」)12、データ格納用フラッシュメモリ(俗称「フラッシュROM(Read Only Memory)」:以下「フラッシュROM」という)13、プログラム格納ROM14、表示部15、プリンタ16、時計17、キーボード18、通信部19、SDカードインタフェース部20、バーコードスキャナ21およびドロア22を含んで構成される。 FIG. 1 is a block diagram showing a configuration of an electronic cash register (Electronic Cash Register: hereinafter referred to as “ECR”) 1 according to an embodiment of the present invention . The ECR 1 includes a control unit 11, a random access memory (abbreviated as “RAM”) 12, a data storage flash memory (commonly called “flash ROM (Read Only Memory)” hereinafter referred to as “flash ROM”) 13, a program A storage ROM 14, a display unit 15, a printer 16, a clock 17, a keyboard 18, a communication unit 19, an SD card interface unit 20, a barcode scanner 21 and a drawer 22 are configured.

制御手段である制御部11は、たとえば中央処理装置(Central Processing Unit:略称「CPU」)によって構成され、プログラム格納ROM14に記憶されるプログラムを実行することによって、RAM12、フラッシュROM13、表示部15、プリンタ16、時計17、キーボード18、通信部19、セキュアデジタル(Secure Digital:略称「SD」)カードインタフェース部20、バーコードスキャナ21およびドロア22を制御する。   The control unit 11 that is a control means is configured by, for example, a central processing unit (abbreviated as “CPU”), and executes a program stored in the program storage ROM 14, whereby the RAM 12, the flash ROM 13, the display unit 15, The printer 16, clock 17, keyboard 18, communication unit 19, secure digital (abbreviated as “SD”) card interface unit 20, barcode scanner 21 and drawer 22 are controlled.

第1の記憶手段であるRAM12は、たとえばスタティックRAM(以下「SRAM」という)によって構成される。RAM12は、制御部11がプログラムを実行するために必要な情報を記憶し、制御部11によって情報の書込みおよび読出しが行われる。RAM12は、書換え頻度が予め定める基準頻度以上、たとえば1日に2回以上の書換えが発生する情報を記憶する。RAM12には、たとえば、第1商品マスタ情報121、表示/印字用データ127、レシート計算用データ128、商品マスタ情報メモリ構成テーブル125およびフラッシュROM書込みポインタテーブル126が記憶される。RAM12は、書換え回数に制限はない。   The RAM 12 serving as the first storage means is constituted by, for example, a static RAM (hereinafter referred to as “SRAM”). The RAM 12 stores information necessary for the control unit 11 to execute a program, and information is written and read by the control unit 11. The RAM 12 stores information that causes the rewriting frequency to be greater than a predetermined reference frequency, for example, to be rewritten twice a day. The RAM 12 stores, for example, first product master information 121, display / print data 127, receipt calculation data 128, a product master information memory configuration table 125, and a flash ROM write pointer table 126. The RAM 12 has no limit on the number of rewrites.

第1商品マスタ情報121は、商品マスタインデックス情報122、単価情報123および当日売上情報124を含む。商品マスタインデックス情報122は、商品に関する複数の項目の情報が記憶されているアドレスを示すインデックスを表す情報である。単価情報123は、各商品の単価を表す情報である。当日売上情報124は、日単位の商品の売上金額を表す情報である。表示/印字用データ127は、表示部15に表示させるための情報およびプリンタ16に印刷させるための情報である。レシート計算用データ128は、販売した商品に対するレシートを作成するための情報である。商品マスタ情報メモリ構成テーブル125は、商品に関する複数の項目の情報がどの記憶媒体のどこに何バイト単位で記憶されているかを示すテーブルである。フラッシュROM書込みポインタテーブル126は、フラッシュROM13に形成される各ブロックの未使用の領域、つまり未書込みの領域の先頭アドレス、つまり書込み可能な領域の先頭アドレスを表す書込みポインタを記憶するテーブルである。単価情報123および当日売上情報124は、第1の項目の情報である。インデックスは、特定情報である。   The first product master information 121 includes product master index information 122, unit price information 123, and same day sales information 124. The merchandise master index information 122 is information representing an index indicating an address where information on a plurality of items related to merchandise is stored. The unit price information 123 is information representing the unit price of each product. The sales information 124 on the day is information representing the sales amount of the product on a daily basis. The display / print data 127 is information to be displayed on the display unit 15 and information to be printed on the printer 16. The receipt calculation data 128 is information for creating a receipt for a sold product. The merchandise master information memory configuration table 125 is a table that indicates where and in what storage unit information of a plurality of items related to merchandise is stored in units of bytes. The flash ROM write pointer table 126 is a table that stores a write pointer that represents an unused area of each block formed in the flash ROM 13, that is, a start address of an unwritten area, that is, a start address of a writable area. The unit price information 123 and the day sales information 124 are information of the first item. The index is specific information.

第2の記憶手段であるフラッシュROM13は、書換え回数に制限がある半導体メモリである。フラッシュROM13の価格は、RAM12の価格よりも低価格である。フラッシュROM13は、制御部11がプログラムを実行するために必要な情報を記憶し、制御部11によって情報の書込みおよび読出しが行われる。フラッシュROM13に書込まれた情報を書換えるためには、書込まれている情報を一旦消去してから、書込む必要がある。   The flash ROM 13 as the second storage means is a semiconductor memory with a limited number of rewrites. The price of the flash ROM 13 is lower than the price of the RAM 12. The flash ROM 13 stores information necessary for the control unit 11 to execute a program, and information is written and read by the control unit 11. In order to rewrite the information written in the flash ROM 13, it is necessary to erase the written information and then write it.

フラッシュROM13は、書換え頻度が予め定める基準頻度未満、たとえば1日に2回未満の書換えが発生する情報を記憶する。すなわち、フラッシュROM13には、RAM12に記憶される情報よりも更新頻度が少ない情報が記憶される。フラッシュROM13には、たとえば、第2商品マスタ情報131、および売上記録136が記憶される。   The flash ROM 13 stores information in which rewriting frequency is less than a predetermined reference frequency, for example, rewriting occurs less than twice a day. That is, the flash ROM 13 stores information that is updated less frequently than information stored in the RAM 12. For example, the second product master information 131 and the sales record 136 are stored in the flash ROM 13.

第2商品マスタ情報131は、商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135を含む。商品名情報132は、各商品に命名された名称を表す情報である。各種設定情報133は、商品ごとに設定された情報であり、たとえば税種別およびグループなどの情報がある。税種別は、内税/外税および課税/非課税などの別を表す。グループは、各商品が分類されているグループを表す。週間売上情報134は、週単位の商品の売上金額を表す情報である。月間売上情報135は、月単位の商品の売上金額を表す情報である。売上記録136は、個々の売上を電子的に記憶する電子ジャーナルである。商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135は、第2の項目の情報である。   The second product master information 131 includes product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135. The product name information 132 is information representing the name given to each product. The various setting information 133 is information set for each product, and includes, for example, information such as tax type and group. The tax type represents different types, such as internal / external tax and tax / non-tax. The group represents a group in which each product is classified. The weekly sales information 134 is information that represents the sales amount of a weekly product. Monthly sales information 135 is information that represents the sales amount of a monthly product. The sales record 136 is an electronic journal that electronically stores individual sales. Product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135 are information of the second item.

プログラム格納ROM14は、たとえば書換え可能なフラッシュメモリ、あるいは書換え不可のマスクROMなどによって構成される。プログラム格納ROM14は、制御部11によって実行されるプログラムおよびテーブルを記憶する。   The program storage ROM 14 is configured by, for example, a rewritable flash memory or a non-rewritable mask ROM. The program storage ROM 14 stores programs and tables executed by the control unit 11.

表示部15は、たとえば液晶ディスプレイなどの表示装置によって構成される。表示部15は、制御部11から受取る情報を表示する。プリンタ16は、たとえば印刷装置によって構成される。プリンタ16は、制御部11から受取る情報を印刷する。制御部11は、プリンタ16によって、たとえばレシートを印刷する。時計17は、時刻を計時する。制御部11は、時計17を参照することによって、時刻を認識し、あるいは時間を計測する。キーボード18は、文字、数字および記号などを入力するための複数のキーを有する入力装置である。キーボード18は、操作されたキーに対応付けられた情報を制御部11に送る。ユーザは、キーボード18を操作することによって、商品コードおよび顧客番号などの情報を入力することができる。   The display unit 15 is configured by a display device such as a liquid crystal display. The display unit 15 displays information received from the control unit 11. The printer 16 is configured by a printing device, for example. The printer 16 prints information received from the control unit 11. The control unit 11 prints a receipt, for example, by the printer 16. The clock 17 measures time. The control unit 11 refers to the clock 17 to recognize the time or measure the time. The keyboard 18 is an input device having a plurality of keys for inputting characters, numbers, symbols, and the like. The keyboard 18 sends information associated with the operated key to the control unit 11. The user can input information such as a product code and a customer number by operating the keyboard 18.

通信部19は、たとえば通信装置によって構成される。通信部19は、通信回線に接続される他の装置、たとえばサーバ装置と情報の送受信を行う。SDカードインタフェース部20は、着脱可能な記録媒体、たとえばSDカードを装着可能であり、装着された記録媒体に情報の書込みおよび読出しを行うためのインタフェースである。SDカードインタフェース部20は、装着された記録媒体に記録された情報を読出し、読出した情報を制御部11に送り、制御部11から受け取る情報を装着された記録媒体に書込む。SDカードには、商品マスタ、顧客マスタ、および売上記録などの情報が記憶される。バーコードスキャナ21は、バーコードを読取り、読取った情報を制御部11に送る。バーコードスキャナ21は、たとえば商品のバーコード、およびカードに記憶される顧客番号のバーコードを読取る。ドロア22は、金銭を収容する収容装置である。   The communication unit 19 is configured by a communication device, for example. The communication unit 19 transmits / receives information to / from another device connected to the communication line, for example, a server device. The SD card interface unit 20 can be loaded with a removable recording medium, for example, an SD card, and is an interface for writing and reading information on the loaded recording medium. The SD card interface unit 20 reads the information recorded on the loaded recording medium, sends the read information to the control unit 11, and writes the information received from the control unit 11 on the loaded recording medium. Information such as a merchandise master, a customer master, and a sales record is stored in the SD card. The barcode scanner 21 reads the barcode and sends the read information to the control unit 11. The bar code scanner 21 reads, for example, a bar code of a product and a bar code of a customer number stored in a card. The drawer 22 is a storage device that stores money.

制御部11は、キーボード18によって入力された情報に従って、記憶している情報の更新処理、および取引処理を行う。たとえば、制御部11は、更新処理では、商品名の変更処理を行う。また、制御部11は、取引処理では、商品の販売が行われると、商品の売上処理を行い、売上記録を更新する。売上処理では、売上金額の集計を行い、第1商品マスタ情報121の当日売上情報、ならびに第2商品マスタ情報131の週間売上情報134および月間売上情報135を更新する精算処理を行う。   The control unit 11 performs an update process of stored information and a transaction process according to the information input from the keyboard 18. For example, the control unit 11 performs a product name change process in the update process. Further, in the transaction process, when the product is sold, the control unit 11 performs the product sales process and updates the sales record. In the sales process, the sales amount is totaled, and the same day sales information in the first product master information 121 and the weekly sales information 134 and the monthly sales information 135 in the second product master information 131 are updated.

制御部11は、データ送受信部111および各種データ作成部112を含む。データ送受信部111および各種データ作成部112は、制御部11がプログラム格納ROM14に記憶されるプログラムを実行することによって実現される機能である。データ送受信部111は、通信部19によって、たとえば通信回線に接続されるサーバ装置と情報の送受信を行う。各種データ作成部112は、表示用データや印字用データを作成する。制御部11は、各種データ作成部112によって作成された表示用データを表示部15に表示させ、また、各種データ作成部112によって作成された印字用データをプリンタ16に印刷させる。   The control unit 11 includes a data transmission / reception unit 111 and various data creation units 112. The data transmission / reception unit 111 and the various data creation unit 112 are functions realized by the control unit 11 executing a program stored in the program storage ROM 14. The data transmitter / receiver 111 transmits / receives information to / from a server device connected to a communication line, for example, by the communication unit 19. The various data creation unit 112 creates display data and print data. The control unit 11 causes the display unit 15 to display the display data created by the various data creation unit 112 and causes the printer 16 to print the print data created by the various data creation unit 112.

図2は、商品マスタ情報30の構成を示す図である。商品マスタ情報30は、商品に関する複数の項目の情報を商品コードごとに示す情報である。商品マスタ情報30は、商品コード301、商品名302、単価303、各種設定304、当日売上金額305、週間売上金額306および月間売上金額307の項目を含む。   FIG. 2 is a diagram illustrating a configuration of the product master information 30. The product master information 30 is information indicating information on a plurality of items related to products for each product code. The product master information 30 includes items of a product code 301, a product name 302, a unit price 303, various settings 304, a daily sales amount 305, a weekly sales amount 306, and a monthly sales amount 307.

商品コード301は、各商品を識別するための識別情報である。商品コード301は、自然数によって表される。商品名302は、各商品に命名された名称である。単価303は、各商品の1個当たりの価格である。各種設定304は、税種別およびグループなど予め設定されている情報である。当日売上金額305は、日単位の売上金額である。週間売上金額306は、週単位の売上金額である。月間売上金額307は、月単位の売上金額である。   The product code 301 is identification information for identifying each product. The product code 301 is represented by a natural number. The product name 302 is a name given to each product. The unit price 303 is a price per item. The various settings 304 are information set in advance such as a tax type and a group. The current day sales amount 305 is a daily sales amount. The weekly sales amount 306 is a weekly sales amount. The monthly sales amount 307 is a monthly sales amount.

図2に示した商品マスタ情報30には、商品名302、単価303、各種設定304、当日売上金額305、週間売上金額306および月間売上金額307が、商品コードごとに行単位で表わされている。図2に示した商品マスタ情報30は、商品コードの昇順に配列されているが、降順であってもよい。   In the product master information 30 shown in FIG. 2, a product name 302, a unit price 303, various settings 304, a daily sales amount 305, a weekly sales amount 306, and a monthly sales amount 307 are represented in units of lines for each product code. Yes. The product master information 30 shown in FIG. 2 is arranged in ascending order of product codes, but it may be in descending order.

図2には、商品コード「00001」について、商品名「ウーロン茶」、単価「150」、各種設定「内税、第1グループ」、当日売上金額「66,000円」、週間売上金額「330,000円」、および月間売上金額「1,500,000円」が示されている。商品コード「00002」については、商品名「緑茶A」、単価「150」、各種設定「内税、第1グループ」、当日売上金額「75,000円」、週間売上金額「412,500円」、および月間売上金額「2,200,000円」が示されている。商品コード「00003」については、商品名「緑茶B」、単価「150」、各種設定「内税、第1グループ」、当日売上金額「6,000円」、週間売上金額「36,000円」、および月間売上金額「150,000円」が示されている。商品コード「00011」については、商品名「アンパン」、単価「100」、各種設定「内税、第2グループ」、当日売上金額「8,000円」、週間売上金額「48,000円」、および月間売上金額「120,000円」が示されている。商品コード「00012」については、商品名「サンドイッチ」、単価「250」、各種設定「内税、第2グループ」、当日売上金額「8,750円」、週間売上金額「70,000円」、および月間売上金額「250,000円」が示されている。商品コード「00101」については、商品名「商品券A」、単価「1000」、各種設定「非課税、第3グループ」、当日売上金額「12,000円」、週間売上金額「80,000円」、および月間売上金額「385,000円」が示されている。商品コード「00102」については、商品名「商品券B」、単価「1000」、各種設定「非課税、第3グループ」、当日売上金額「5,000円」、週間売上金額「20,000円」、および月間売上金額「72,000円」が示されている。   In FIG. 2, for the product code “00001”, the product name “Oolong tea”, the unit price “150”, various settings “local tax, first group”, sales amount “66,000 yen” on the day, weekly sales amount “330, “000 yen” and the monthly sales amount “1,500,000 yen” are shown. For product code “00002”, product name “green tea A”, unit price “150”, various settings “local tax, first group”, sales amount “75,000 yen” on the day, weekly sales amount “412,500 yen” , And the monthly sales amount “2,200,000 yen” is shown. For the product code “00003”, the product name “Green tea B”, unit price “150”, various settings “local tax, first group”, sales amount “6,000 yen” on the day, weekly sales amount “36,000 yen” The monthly sales amount “150,000 yen” is shown. For the product code “00011”, the product name “Ampan”, unit price “100”, various settings “local tax, second group”, sales amount “8,000 yen” on the day, weekly sales amount “48,000 yen”, The monthly sales amount “120,000 yen” is also shown. For the product code “00012”, the product name “sandwich”, unit price “250”, various settings “local tax, second group”, sales amount “8,750 yen” on the day, weekly sales amount “70,000 yen”, The monthly sales amount “250,000 yen” is also shown. For the product code “00101”, the product name “gift certificate A”, unit price “1000”, various settings “tax free, third group”, sales amount “12,000 yen” on the day, weekly sales amount “80,000 yen” , And the monthly sales amount “385,000 yen” is shown. For the product code “00102”, the product name “gift certificate B”, unit price “1000”, various settings “tax free, third group”, sales amount “5,000 yen” on the day, weekly sales amount “20,000 yen” The monthly sales amount “72,000 yen” is shown.

図3は、RAM12に記憶される情報の構成を示す図である。RAM12には、表示/印字用データ127、レシート計算用データ128、商品マスタインデックス情報122、単価情報123、当日売上情報124、商品マスタ情報メモリ構成テーブル125およびフラッシュROM書込みポインタテーブル126が記憶されている。商品マスタインデックス情報122、単価情報123および当日売上情報124は、第1商品マスタ情報121を構成する。   FIG. 3 is a diagram showing a configuration of information stored in the RAM 12. The RAM 12 stores display / print data 127, receipt calculation data 128, merchandise master index information 122, unit price information 123, same-day sales information 124, a merchandise master information memory configuration table 125, and a flash ROM write pointer table 126. Yes. The product master index information 122, the unit price information 123, and the current day sales information 124 constitute the first product master information 121.

図4は、フラッシュROM13に記憶される情報の構成を示す図である。フラッシュROM13には、14個の第2商品マスタ情報131、および2個の売上記録136が、ブロック単位に記憶される。1つのブロックに記憶される第2商品マスタ情報131は64Kバイトで構成され、1つのブロックに記憶される売上記録136は64Kバイトで構成される。   FIG. 4 is a diagram showing a configuration of information stored in the flash ROM 13. In the flash ROM 13, 14 pieces of second product master information 131 and two pieces of sales records 136 are stored in units of blocks. The second merchandise master information 131 stored in one block is composed of 64 Kbytes, and the sales record 136 stored in one block is composed of 64 Kbytes.

図5は、プログラム格納ROM14に記憶される情報の構成を示す図である。プログラム格納ROM14には、第1アプリケーションプログラム141、第2アプリケーションプログラム142、商品マスタ情報更新処理プログラム143、フラッシュROMブロック構成テーブル144、および第nアプリケーションプログラム145が、この順序で記憶されている。第1アプリケーションプログラム141、第2アプリケーションプログラム142および第nアプリケーションプログラム145は、アプリケーションプログラムである。   FIG. 5 is a diagram showing a configuration of information stored in the program storage ROM 14. The program storage ROM 14 stores a first application program 141, a second application program 142, a product master information update processing program 143, a flash ROM block configuration table 144, and an nth application program 145 in this order. The first application program 141, the second application program 142, and the nth application program 145 are application programs.

商品マスタ情報更新処理プログラム143は、商品マスタ情報30の更新を行うプログラムであり、後述する商品名変更処理および精算処理を行う。フラッシュROMブロック構成テーブル144は、フラッシュROM13に形成される16個のブロックのそれぞれの開始アドレスおよび終了アドレスを示すテーブルである。商品マスタ情報更新処理プログラム143およびフラッシュROMブロック構成テーブル144は、商品マスタ更新処理プログラムを構成する。   The product master information update processing program 143 is a program for updating the product master information 30, and performs product name change processing and settlement processing described later. The flash ROM block configuration table 144 is a table showing start addresses and end addresses of 16 blocks formed in the flash ROM 13. The product master information update processing program 143 and the flash ROM block configuration table 144 constitute a product master update processing program.

図6は、フラッシュROMブロック構成テーブル144の構成を示す図である。たとえば、第1ブロックの開始アドレスは、「0x00000」であり、終了アドレスは、「0x0FFFF」である。第2ブロックの開始アドレスは、「0x10000」であり、終了アドレスは、「0x1FFFF」である。第3ブロックの開始アドレスは、「0x20000」であり、終了アドレスは、「0x2FFFF」である。第4ブロックの開始アドレスは、「0x30000」であり、終了アドレスは、「0x3FFFF」である。第16ブロックの開始アドレスは、「0xF0000」であり、終了アドレスは、「0xFFFFF」である。ここに、「0x」は、C言語の記述様式であり、16進数の数値であることを示す。   FIG. 6 is a diagram showing the configuration of the flash ROM block configuration table 144. For example, the start address of the first block is “0x00000” and the end address is “0x0FFFF”. The start address of the second block is “0x10000” and the end address is “0x1FFFF”. The start address of the third block is “0x20000”, and the end address is “0x2FFFF”. The start address of the fourth block is “0x30000”, and the end address is “0x3FFFF”. The start address of the 16th block is “0xF0000”, and the end address is “0xFFFFF”. Here, “0x” is a C-language description format and indicates a hexadecimal numerical value.

図7は、商品マスタ情報メモリ構成テーブル125の構成を示す図である。商品マスタ情報30に含まれる各項目の情報がどの記憶媒体のどこに何バイト単位で記憶されているかを示すテーブルである。   FIG. 7 is a diagram showing the configuration of the product master information memory configuration table 125. It is a table which shows in which storage medium where each item of information included in the product master information 30 is stored in units of bytes.

メモリタイプは、各項目の情報が記憶されている記憶媒体を示す情報である。「RAM」は、記憶媒体がRAM12であることを示し、「FlashROM」は、記憶媒体がフラッシュROM13であることを示す。メモリサイズ(バイト数)は、各項目の情報の長さをバイト数で表す情報である。開始アドレス/ブロックは、メモリタイプが「RAM」の場合、各項目の情報が記憶されている先頭のアドレスを示し、メモリタイプが「FlashROM」の場合、各項目の情報が記憶されている先頭のブロック番号を示す。終了アドレス/ブロックは、メモリタイプが「RAM」の場合、各項目の情報が記憶されている最後のアドレスを示し、メモリタイプが「FlashROM」の場合、各項目の情報が記憶されている最後のブロック番号を示す。   The memory type is information indicating a storage medium in which information of each item is stored. “RAM” indicates that the storage medium is the RAM 12, and “FlashROM” indicates that the storage medium is the flash ROM 13. The memory size (number of bytes) is information representing the length of information of each item in number of bytes. The start address / block indicates the head address where the information of each item is stored when the memory type is “RAM”, and the head address where the information of each item is stored when the memory type is “FlashROM”. Indicates the block number. The end address / block indicates the last address where the information of each item is stored when the memory type is “RAM”, and the last address / block is stored when the memory type is “FlashROM”. Indicates the block number.

図7には、6つの項目の情報、具体的には、単価情報123、当日売上情報124、商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135が示されている。各項目の情報についての「メモリタイプ」、「メモリサイズ(バイト数)」、「開始アドレス/ブロック」および「終了アドレス/ブロックは、単価情報123については、「RAM」、「3」、「0x08000」および「0x085DB」である。当日売上情報124については、「RAM」、「8」、「0x085DC」および「0x0957B」である。商品名情報132については、「FlashROM」、「16」、「1」および「2」である。各種設定情報133については、「FlashROM」、「2」、「1」および「2」である。週間売上情報134については、「FlashROM」、「8」、「3」および「3」である。月間売上情報135については、「FlashROM」、「8」、「4」および「4」である。   FIG. 7 shows information of six items, specifically, unit price information 123, current day sales information 124, product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135. The “memory type”, “memory size (number of bytes)”, “start address / block” and “end address / block” for the information of each item are “RAM”, “3”, “0x08000” for the unit price information 123. And “0x085DB”. The sales information 124 for the day is “RAM”, “8”, “0x085DC”, and “0x0957B”. The product name information 132 is “FlashROM”, “16”, “1”, and “2”. The various setting information 133 is “FlashROM”, “2”, “1”, and “2”. The weekly sales information 134 is “FlashROM”, “8”, “3”, and “3”. The monthly sales information 135 is “FlashROM”, “8”, “4”, and “4”.

図8は、フラッシュROM書込みポインタテーブル126の構成を示す図である。フラッシュROM書込みポインタテーブル126は、各ブロックの書込みポインタの値を記憶するテーブルである。書込みポインタは、ブロック内の未使用領域の先頭のアドレスを示すポインタである。図8には、第1ブロックの書込みポインタとして、「0x0080」が示され、第2ブロックの書込みポインタとして、「0x0000」が示され、第3ブロックの書込みポインタとして、「0x0038」が示され、第4ブロックの書込みポインタとして、「0x0038」が示され、第16ブロックの書込みポインタとして、「0x0000」が示されている。   FIG. 8 is a diagram showing the configuration of the flash ROM write pointer table 126. The flash ROM write pointer table 126 is a table that stores the write pointer value of each block. The write pointer is a pointer indicating the head address of an unused area in the block. In FIG. 8, “0x0080” is shown as the write pointer of the first block, “0x0000” is shown as the write pointer of the second block, “0x0038” is shown as the write pointer of the third block, “0x0038” is indicated as the write pointer of the fourth block, and “0x0000” is indicated as the write pointer of the sixteenth block.

図9は、商品マスタインデックス情報122の構成を示す図である。商品マスタインデックス情報122は、レコードポインタ、および第2商品マスタ情報131が記憶されるメモリアドレスを含む。レコードポインタは、RAM12に記憶されている第1商品マスタ情報のレコードのうち、各商品コードのレコードが何番目のレコードであるかを示すポインタである。   FIG. 9 is a diagram showing the configuration of the product master index information 122. As shown in FIG. The product master index information 122 includes a record pointer and a memory address where the second product master information 131 is stored. The record pointer is a pointer that indicates the number of the record of each product code among the records of the first product master information stored in the RAM 12.

第2商品マスタ情報が記憶されるメモリアドレスは、フラッシュROM13に記憶される商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135のアドレスを、商品コードごとに示す。図9に示した商品マスタインデックス情報122は、商品コードの昇順に配列されているが、降順であってもよい。   The memory address in which the second product master information is stored indicates the addresses of the product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135 stored in the flash ROM 13 for each product code. The product master index information 122 illustrated in FIG. 9 is arranged in ascending order of product codes, but may be in descending order.

各商品コードに対応付けられているレコードポインタ、ならびに商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135のアドレスは、商品コード「00001」については、「0x0001」、「0x00000」、「0x00010」、「0x20000」、および「0x30000」である。商品コード「00002」については、「0x0002」、「0x00012」、「0x00022」、「0x20008」、および「0x30008」である。商品コード「00003」については、「0x0003」、「0x00024」、「0x00034」、「0x20010」、および「0x30010」である。商品コード「00011」については、「0x0004」、「0x00036」、「0x00046」、「0x20018」、および「0x30018」である。商品コード「00012」については、「0x0005」、「0x00048」、「0x00058」、「0x20020」、および「0x30020」である。商品コード「00101」については、「0x0006」、「0x0005A」、「0x0006A」、「0x20028」、および「0x30028」である。商品コード「00102」については、「0x0007」、「0x0006C」、「0x0007C」、「0x20030」、および「0x30030」である。   The record pointer associated with each product code, and the addresses of the product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135 are “0x0001”, “0x00000” for the product code “00001”. ”,“ 0x00010 ”,“ 0x20000 ”, and“ 0x30000 ”. The product code “00002” is “0x0002”, “0x00012”, “0x00022”, “0x20008”, and “0x30008”. The product code “00003” is “0x0003”, “0x00024”, “0x00034”, “0x20010”, and “0x30010”. The product code “00011” is “0x0004”, “0x00036”, “0x00046”, “0x20018”, and “0x30018”. The product code “00012” is “0x0005”, “0x00048”, “0x00058”, “0x20020”, and “0x30020”. The product code “00101” is “0x0006”, “0x0005A”, “0x0006A”, “0x20028”, and “0x30028”. The product code “00102” is “0x0007”, “0x0006C”, “0x0007C”, “0x20030”, and “0x30030”.

図10は、レコードポインタが示すレコードに記憶される情報を示す図である。1つのレコードは、単価情報123および当日売上情報124を含む。1つの商品コードに対応付けられる当日売上情報124は、同じ商品コードに対応付けられる単価情報123と同じ順序でRAM12に記憶される。   FIG. 10 is a diagram illustrating information stored in the record indicated by the record pointer. One record includes unit price information 123 and same day sales information 124. Same-day sales information 124 associated with one product code is stored in RAM 12 in the same order as unit price information 123 associated with the same product code.

RAM12に記憶される各レコードには、単価情報123として、単価401が記憶され、当日売上情報124として、当日売上金額402が記憶されている。図10には、各レコードポインタが示すレコードの「単価」および「当日売上金額」として、レコードポインタ「0x0001」については、「150」および「66000」が示されている。レコードポインタ「0x0002」については、「150」および「75000」が示されている。レコードポインタ「0x0003」については、「150」および「6000」が示されている。レコードポインタ「0x0004」については、「100」および「8000」が示されている。レコードポインタ「0x0005」については、「250」および「8750」が示されている。レコードポインタ「0x0006」については、「1000」および「12000」が示されている。レコードポインタ「0x0007」については、「1000」および「5000」が示されている。いずれも単位は円である。   In each record stored in the RAM 12, a unit price 401 is stored as the unit price information 123, and a daily sales amount 402 is stored as the day sales information 124. In FIG. 10, “150” and “66000” are shown for the record pointer “0x0001” as “unit price” and “current sales amount” of the record indicated by each record pointer. For the record pointer “0x0002”, “150” and “75000” are shown. For the record pointer “0x0003”, “150” and “6000” are shown. For the record pointer “0x0004”, “100” and “8000” are shown. For the record pointer “0x0005”, “250” and “8750” are shown. For the record pointer “0x0006”, “1000” and “12000” are shown. For the record pointer “0x0007”, “1000” and “5000” are shown. In all cases, the unit is a circle.

図11は、フラッシュROM13に記憶される第2商品マスタ情報131の構成を示す図である。図11には、左端部に、フラッシュROM13のアドレス、中央部に、左端部に記憶されるアドレスに記憶される情報、そして、右端部に、その情報の説明が記載されている。   FIG. 11 is a diagram showing a configuration of the second product master information 131 stored in the flash ROM 13. FIG. 11 shows the address of the flash ROM 13 at the left end, information stored at the address stored at the left end at the center, and a description of the information at the right end.

たとえば、アドレス「0x00000」には、中央部に「ウーロン茶」が示され、右端部に「商品名情報(16文字)」が示されている。これは、フラッシュROM13のアドレス「0x00000」から、「ウーロン茶」という情報が記憶されており、その情報は、商品名情報132であり、16文字からなることを示している。また、アドレス「0x00010」には、中央部に「0x00 0x01」が示され、右端部に「各種設定情報 内税、第1グループ」が示されている。これは、フラッシュROM13のアドレス「0x00010」から、「0x00 0x01」という情報が記憶されており、その情報は、税種別およびグループの各種設定情報133であることを示している。税種別「0x00」が内税であることを示し、税種別「0x02」が非課税であることを示す。グループ「0x01」が第1グループであることを示し、グループ「0x02」が第2グループであることを示し、グループ「0x03」が第3グループであることを示す。   For example, in the address “0x00000”, “oolong tea” is shown in the center, and “product name information (16 characters)” is shown in the right end. This indicates that the information “Oolong tea” is stored from the address “0x00000” of the flash ROM 13, and the information is the product name information 132 and consists of 16 characters. In addition, the address “0x00010” indicates “0x00 0x01” in the central portion and “various setting information inclusive tax, first group” in the right end portion. This indicates that information “0x00 0x01” is stored from the address “0x00010” of the flash ROM 13, and the information is tax type and group setting information 133. The tax type “0x00” indicates that it is a domestic tax, and the tax type “0x02” indicates that it is not taxable. The group “0x01” indicates the first group, the group “0x02” indicates the second group, and the group “0x03” indicates the third group.

また、たとえば、アドレス「0x20000」には、中央部に「330000」が示され、右端部に「週間売上情報」が示されている。これは、これは、フラッシュROM13のアドレス「0x20000」から、「330000」という情報が記憶されており、その情報は、週間売上金額を表す週間売上情報134であることを示している。アドレス「0x30000」には、中央部に「330000」が示され、右端部に「月間売上情報」が示されている。これは、これは、フラッシュROM13のアドレス「0x30000」から、「330000」という情報が記憶されており、その情報は、月間売上金額を表す月間売上情報135であることを示している。   Further, for example, in the address “0x20000”, “330000” is shown at the center, and “weekly sales information” is shown at the right end. This indicates that information “330000” is stored from the address “0x20000” of the flash ROM 13 and this information is the weekly sales information 134 representing the weekly sales amount. In the address “0x30000”, “330000” is shown at the center, and “Monthly sales information” is shown at the right end. This indicates that the information “330000” is stored from the address “0x30000” of the flash ROM 13 and the information is the monthly sales information 135 representing the monthly sales amount.

未使用のアドレスには、「0xFF」が記憶される。すなわち、未使用のアドレスには、16進数の「FF」が記憶されている。図8に示したフラッシュROM書込みポインタテーブル126には、第1ブロックの書込みポインタとして「0x00080」が記載され、第1ブロックの未使用領域がアドレス「0x00080」であることがわかる。第3ブロックの書込みポインタとして「0x20038」が記載され、第3ブロックの未使用領域がアドレス「0x20038」であることがわかる。また、第4ブロックの書込みポインタとして「0x30038」が記載され、第4ブロックの未使用領域がアドレス「0x30038」であることがわかる。   “0xFF” is stored in the unused address. That is, hexadecimal “FF” is stored in the unused address. In the flash ROM write pointer table 126 shown in FIG. 8, “0x08080” is described as the write pointer of the first block, and it can be seen that the unused area of the first block is the address “0x08080”. It can be seen that “0x20038” is written as the write pointer of the third block, and the unused area of the third block is the address “0x20038”. Further, “0x30038” is described as the write pointer of the fourth block, and it can be seen that the unused area of the fourth block is the address “0x30038”.

図12は、商品名変更に伴う商品マスタインデックス情報122の変更前後のデータを示す図である。図12〜図14では、商品コード「00003」の商品名「緑茶B」を、「緑茶B_500ml」に変更する場合を例にして説明する。図12(a)は、変更前の商品マスタインデックス情報122であり、図12(b)は、変更後の商品マスタインデックス情報122aである。   FIG. 12 is a diagram illustrating data before and after the change of the product master index information 122 accompanying the product name change. 12 to 14, the case where the product name “green tea B” of the product code “00003” is changed to “green tea B_500 ml” will be described as an example. FIG. 12A shows the product master index information 122 before the change, and FIG. 12B shows the product master index information 122a after the change.

図12(a)に示した商品マスタインデックス情報122では、商品コード「00003」の商品名情報のアドレスは、「0x00024」であり、図12(b)に示した商品マスタインデックス情報122aでは、商品コード「00003」の商品名情報のアドレスは、「0x00080」である。すなわち、変更後の新たな商品名「緑茶B_500ml」を表す商品名情報132は、第1ブロックの未使用領域であるアドレス「0x00080」からの領域に記憶されたことを示している。変更前の商品名「緑茶B」を表す商品名情報132は、消去されずに、第1ブロックのアドレス「0x00024」からの領域に記憶されているが、図12(b)に示した商品マスタインデックス情報122aでは、商品コード「00003」の商品名情報132のアドレスが変更されているので、変更前の商品名情報132を用いることはなく、変更後の商品名情報132を用いることができる。   In the product master index information 122 shown in FIG. 12A, the address of the product name information of the product code “00003” is “0x00024”. In the product master index information 122a shown in FIG. The address of the product name information with the code “00003” is “0x08080”. That is, the product name information 132 representing the new product name “Green tea B_500 ml” after the change is stored in the area from the address “0x08080” which is an unused area of the first block. The product name information 132 indicating the product name “green tea B” before the change is not erased and is stored in the area from the address “0x00024” of the first block, but the product master shown in FIG. In the index information 122a, since the address of the product name information 132 of the product code “00003” is changed, the product name information 132 before the change is not used, and the product name information 132 after the change can be used.

図13は、商品名変更に伴うフラッシュROM書込みポインタテーブル126の変更前後のデータを示す図である。図13(a)は、変更前のフラッシュROM書込みポインタテーブル126であり、図13(b)は、変更後のフラッシュROM書込みポインタテーブル126aである。   FIG. 13 is a diagram showing data before and after the change in the flash ROM write pointer table 126 associated with the change of the product name. FIG. 13A shows the flash ROM write pointer table 126 before the change, and FIG. 13B shows the flash ROM write pointer table 126a after the change.

商品名情報132は、図7に示した商品マスタ情報メモリ構成テーブル125を参照すると、「16」バイトであることがわかる。商品コード「00003」の商品名「緑茶B」を、「緑茶B_500ml」に変更し、商品コード「00003」の商品名情報132が、第1ブロックの未使用領域であるアドレス「0x00080」からの領域に記憶されたことに伴い、第1ブロックの書込みポインタが、「0x0080」に16バイトを加算した「0x0090」に変更される。図13(a)に示した変更前のフラッシュROM書込みポインタテーブル126では、第1ブロックの書込みポインタが「0x0080」であるが、図13(b)に示した変更後のフラッシュROM書込みポインタテーブル126aでは、第1ブロックの書込みポインタが「0x0090」に変更されている。   The product name information 132 is found to be “16” bytes by referring to the product master information memory configuration table 125 shown in FIG. The product name “Green tea B” of the product code “00003” is changed to “Green tea B_500 ml”, and the product name information 132 of the product code “00003” is an area from the address “0x08080” which is an unused area of the first block. As a result, the write pointer of the first block is changed to “0x0090” obtained by adding 16 bytes to “0x0080”. In the flash ROM write pointer table 126 before the change shown in FIG. 13A, the write pointer of the first block is “0x0080”, but the flash ROM write pointer table 126a after the change shown in FIG. Then, the write pointer of the first block is changed to “0x0090”.

図14は、商品名変更に伴う第2商品マスタ情報131の一部の変更前後のデータを示す図である。図14の左側に、変更前の第2商品マスタ情報131の一部を示し、右側に、変更後の第2商品マスタ情報131aの一部を示す。変更前の第2商品マスタ情報131では、フラッシュROM13の第1ブロックのアドレス「0x00080」以降が未使用であるが、変更後の第2商品マスタ情報131aでは、フラッシュROM13の第1ブロックのアドレス「0x00080」から、商品名「緑茶B_500ml」を表す16バイトの商品名情報132が記憶されている。第1ブロックの書込みポインタは、「0x00080」から「0x00090」に更新される。アドレス「0x00024」には、変更前の商品名「緑茶B」を表す商品名情報132が消去されずに記憶されている。   FIG. 14 is a diagram illustrating data before and after a part of the second product master information 131 associated with the product name change. A part of the second product master information 131 before the change is shown on the left side of FIG. 14, and a part of the second product master information 131a after the change is shown on the right side. In the second product master information 131 before the change, the first block address “0x08080” and later of the flash ROM 13 is unused, but in the second product master information 131a after the change, the address “1” of the first block in the flash ROM 13 is used. From 0x08080, 16-byte product name information 132 representing the product name “green tea B — 500 ml” is stored. The write pointer of the first block is updated from “0x08080” to “0x00090”. At the address “0x00024”, the product name information 132 representing the product name “green tea B” before the change is stored without being erased.

図15は、精算処理に伴う商品マスタインデックス情報122の変更前後のデータを示す図である。精算処理は、たとえば1日の終わりに実行される。具体的には、1日の終わりに、売上週計レポートを発行し、「当日売上金額」を「週間売上金額」および「月間売上金額」にそれぞれ加算し、翌日に備えて「当日売上金額」を初期化する。図15(a)は、変更前の商品マスタインデックス情報122であり、図15(b)は、変更後の商品マスタインデックス情報122bである。   FIG. 15 is a diagram illustrating data before and after the change of the merchandise master index information 122 accompanying the checkout process. The settlement process is executed at the end of the day, for example. Specifically, at the end of the day, issue a weekly sales report, add “Actual Sales Amount” to “Weekly Sales Amount” and “Monthly Sales Amount” respectively, and prepare “Actual Sales Amount” for the next day. Is initialized. FIG. 15A shows the product master index information 122 before the change, and FIG. 15B shows the product master index information 122b after the change.

図15(a)に示した変更前の商品マスタインデックス情報122は、精算処理が実行される前の週間売上情報のアドレスおよび月間売上情報のアドレスを示している。図15(a)に示した週間売上情報のアドレスおよび月間売上情報のアドレスは、図11に示した第2商品マスタ情報131の週間売上情報134および月間売上情報135が記憶されているフラッシュROM13のアドレスである。   Product master index information 122 before change shown in FIG. 15A indicates the address of weekly sales information and the address of monthly sales information before the settlement process is executed. The addresses of the weekly sales information and the monthly sales information shown in FIG. 15A are stored in the flash ROM 13 in which the weekly sales information 134 and the monthly sales information 135 of the second product master information 131 shown in FIG. Address.

図15(b)に示した週間売上情報のアドレスおよび月間売上情報のアドレスは、精算処理後の週間売上情報134および月間売上情報135が記憶されているフラッシュROM13のアドレスである。精算処理後の週間売上情報134は、フラッシュROM13の第2ブロックの未使用領域に記憶され、精算処理後の月間売上情報135は、フラッシュROM13の第3ブロックの未使用領域に記憶されている。   The addresses of the weekly sales information and the monthly sales information shown in FIG. 15B are addresses of the flash ROM 13 in which the weekly sales information 134 and the monthly sales information 135 after the settlement process are stored. Weekly sales information 134 after the settlement process is stored in an unused area of the second block of the flash ROM 13, and monthly sales information 135 after the settlement process is stored in an unused area of the third block of the flash ROM 13.

具体的には、精算処理前の週間売上情報134および月間売上情報135は、それぞれ、商品コード「00001」については、アドレス「0x20000」および「0x30000」に記憶されている。商品コード「00002」については、アドレス「0x20008」および「0x30008」に記憶されている。商品コード「00003」については、アドレス「0x20010」および「0x30010」に記憶されている。商品コード「00011」については、アドレス「0x20018」および「0x30018」に記憶されている。商品コード「00012」については、アドレス「0x20020」および「0x30020」に記憶されている。商品コード「00101」については、アドレス「0x20028」および「0x30028」に記憶されている。商品コード「00102」については、アドレス「0x20030」および「0x30030」に記憶されている。   Specifically, the weekly sales information 134 and the monthly sales information 135 before the settlement process are stored at addresses “0x20000” and “0x30000” for the product code “00001”, respectively. The product code “00002” is stored at addresses “0x20008” and “0x30008”. The product code “00003” is stored at addresses “0x20010” and “0x30010”. The product code “00011” is stored at addresses “0x20018” and “0x30018”. The product code “00012” is stored at addresses “0x20020” and “0x30020”. The product code “00101” is stored at addresses “0x20028” and “0x30028”. The product code “00102” is stored at addresses “0x20030” and “0x30030”.

そして、精算処理後の週間売上情報134および月間売上情報135は、それぞれ、商品コード「00001」については、アドレス「0x20038」および「0x30038」に記憶されている。商品コード「00002」については、アドレス「0x20040」および「0x30040」に記憶されている。商品コード「00003」については、アドレス「0x20048」および「0x30048」に記憶されている。商品コード「00011」については、アドレス「0x20050」および「0x30050」に記憶されている。商品コード「00012」については、アドレス「0x20058」および「0x30058」に記憶されている。商品コード「00101」については、アドレス「0x20060」および「0x30060」に記憶されている。商品コード「00102」については、アドレス「0x20068」および「0x30068」に記憶されている。   The weekly sales information 134 and the monthly sales information 135 after the settlement process are stored at addresses “0x20038” and “0x30038” for the product code “00001”, respectively. The product code “00002” is stored at addresses “0x20040” and “0x30040”. The product code “00003” is stored at addresses “0x20048” and “0x30048”. The product code “00011” is stored at addresses “0x20050” and “0x30050”. The product code “00012” is stored at addresses “0x20058” and “0x30058”. The product code “00101” is stored at addresses “0x20060” and “0x30060”. The product code “00102” is stored at addresses “0x20068” and “0x30068”.

図16は、精算処理に伴う当日売上金額402の変更前後のデータを示す図である。図16(a)は、変更前の当日売上金額402であり、図16(b)は、変更後の当日売上金額402aである。すなわち、図16(a)に示した変更前の当日売上金額402は、精算処理を行う前の当日売上金額であり、各レコードポインタが示すレコードに記憶されている。図16(b)に示した変更後の当日売上金額402aは、精算処理を行なった後の当日売上金額であり、各レコードポインタが示すレコードに記憶されている。   FIG. 16 is a diagram showing data before and after the change of the sales amount 402 on the day accompanying the checkout process. FIG. 16A shows the same day sales amount 402 before the change, and FIG. 16B shows the same day sales amount 402a after the change. That is, the current day sales amount 402 before the change shown in FIG. 16A is the same day sales amount before the settlement process, and is stored in the record indicated by each record pointer. The changed-day sales amount 402a shown in FIG. 16B is the same-day sales amount after the settlement process, and is stored in the record indicated by each record pointer.

図16(a)には、各レコードポインタが示すレコードに記憶される当日売上金額402が示されている。レコードポインタ「0x0001」については「66000」である。レコードポインタ「0x0002」については「75000」である。レコードポインタ「0x0003」については「6000」である。レコードポインタ「0x0004」については「8000」である。レコードポインタ「0x0005」については「8750」である。レコードポインタ「0x0006」については「12000」である。レコードポインタ「0x0007」については「5000」である。   FIG. 16A shows the sales amount 402 on the day stored in the record indicated by each record pointer. The record pointer “0x0001” is “66000”. The record pointer “0x0002” is “75000”. The record pointer “0x0003” is “6000”. The record pointer “0x0004” is “8000”. The record pointer “0x0005” is “8750”. The record pointer “0x0006” is “12000”. The record pointer “0x0007” is “5000”.

図16(b)には、各レコードポインタが示すレコードに記憶される当日売上金額402aが示されている。レコードポインタ「0x0001」〜「0x0007」のいずれにも「0」が記憶されている。すなわち、1日の精算処理が終了したので、翌日以降の処理に備えて、すべての当日売上金額402aは、「0」に初期化されている。   FIG. 16B shows the current day sales amount 402a stored in the record indicated by each record pointer. “0” is stored in any of the record pointers “0x0001” to “0x0007”. That is, since the settlement process for one day is completed, all the sales amounts 402a on the day are initialized to “0” in preparation for the process on and after the next day.

図17は、精算処理に伴うフラッシュROM書込みポインタテーブル126の変更前後のデータを示す図である。図17(a)は、変更前のフラッシュROM書込みポインタテーブル126であり、図17(b)は、変更後のフラッシュROM書込みポインタテーブル126bである。   FIG. 17 is a diagram showing data before and after the change of the flash ROM write pointer table 126 accompanying the settlement process. FIG. 17A shows the flash ROM write pointer table 126 before the change, and FIG. 17B shows the flash ROM write pointer table 126b after the change.

週間売上情報134および月間売上情報135は、図7に示した商品マスタ情報メモリ構成テーブル125を参照すると、いずれも「8」バイトであることがわかる。精算処理後の週間売上情報134は、第3ブロックの未使用領域の先頭アドレス、つまり図17(a)に示したフラッシュROM書込みポインタテーブル126の第3ブロックの書込みポインタが示すアドレスから記憶される。精算処理後の月間売上情報135は、第4ブロックの未使用領域の先頭アドレス、つまり図17(a)に示したフラッシュROM書込みポインタテーブル126の第4ブロックの書込みポインタが示すアドレスから記憶される。   The weekly sales information 134 and the monthly sales information 135 are both “8” bytes when referring to the product master information memory configuration table 125 shown in FIG. The weekly sales information 134 after the settlement process is stored from the start address of the unused area of the third block, that is, the address indicated by the write pointer of the third block of the flash ROM write pointer table 126 shown in FIG. . The monthly sales information 135 after the settlement process is stored from the start address of the unused area of the fourth block, that is, the address indicated by the write pointer of the fourth block in the flash ROM write pointer table 126 shown in FIG. .

7つの商品コードについて精算処理を行ったので、精算処理後の第3ブロックの書込みポインタは、図17(a)に示したフラッシュROM書込みポインタテーブル126の第3ブロックの書込みポインタ「0x0038」に、56バイトを加算して、図17(b)に示したフラッシュROM書込みポインタテーブル126の第3ブロックの書込みポインタ「0x0070」となる。同様に、精算処理後の第4ブロックの書込みポインタは、図17(a)に示したフラッシュROM書込みポインタテーブル126の第4ブロックの書込みポインタ「0x0038」に、56バイトを加算して、図17(b)に示したフラッシュROM書込みポインタテーブル126の第4ブロックの書込みポインタ「0x0070」となる。   Since the checkout process was performed for seven product codes, the write pointer of the third block after the checkout process is changed to the write pointer “0x0038” of the third block of the flash ROM write pointer table 126 shown in FIG. 56 bytes are added to become the write pointer “0x0070” of the third block of the flash ROM write pointer table 126 shown in FIG. Similarly, the write pointer of the fourth block after the settlement process adds 56 bytes to the write pointer “0x0038” of the fourth block in the flash ROM write pointer table 126 shown in FIG. The write pointer “0x0070” of the fourth block of the flash ROM write pointer table 126 shown in FIG.

図18は、精算処理に伴う第2商品マスタ情報131の他の一部の変更前後のデータを示す図である。図18の左側に、変更前の第2商品マスタ情報131の他の一部を示し、右側に、変更後の第2商品マスタ情報131bの他の一部を示す。   FIG. 18 is a diagram illustrating data before and after another part of the second merchandise master information 131 accompanying the checkout process. The other part of the second product master information 131 before the change is shown on the left side of FIG. 18, and the other part of the second product master information 131b after the change is shown on the right side.

変更前の第2商品マスタ情報131では、フラッシュROM13の第3ブロックのアドレス「0x20038」以降が未使用であるが、変更後の第2商品マスタ情報131bでは、フラッシュROM13の第3ブロックのアドレス「0x20038」から、7つの商品コード「00001」〜「00007」についての週間売上情報134が記憶されている。第3ブロックの書込みポインタは、「0x20038」から「0x20070」に更新される。   In the second merchandise master information 131 before the change, the third block address “0x20038” and later of the flash ROM 13 is unused, but in the second merchandise master information 131b after the change, the address “3” of the third block in the flash ROM 13 is used. From 0x20038, weekly sales information 134 for seven product codes “00001” to “00007” is stored. The write pointer of the third block is updated from “0x20038” to “0x20070”.

アドレス「0x20038」には、商品コード「00001」の週間売上金額「396000」が週間売上情報134として記憶されている。アドレス「0x20040」には、商品コード「00002」の週間売上金額「487500」が週間売上情報134として記憶されている。アドレス「0x20048」には、商品コード「00003」の週間売上金額「52000」が週間売上情報134として記憶されている。アドレス「0x20050」には、商品コード「00011」の週間売上金額「56000」が週間売上情報134として記憶されている。アドレス「0x20058」には、商品コード「00012」の週間売上金額「78750」が週間売上情報134として記憶されている。アドレス「0x20060」には、商品コード「00101」の週間売上金額「92000」が週間売上情報134として記憶されている。アドレス「0x20068」には、商品コード「00102」の週間売上金額「25000」が週間売上情報134として記憶されている。   At the address “0x20038”, the weekly sales amount “396000” of the product code “00001” is stored as the weekly sales information 134. At the address “0x20040”, the weekly sales amount “487500” of the product code “00002” is stored as the weekly sales information 134. At the address “0x20048”, the weekly sales amount “52000” of the product code “00003” is stored as the weekly sales information 134. At the address “0x20050”, the weekly sales amount “56000” of the product code “00011” is stored as the weekly sales information 134. At the address “0x20058”, the weekly sales amount “78750” of the product code “00012” is stored as the weekly sales information 134. At the address “0x20060”, the weekly sales amount “92000” of the product code “00101” is stored as the weekly sales information 134. At the address “0x20068”, the weekly sales amount “25000” of the product code “00102” is stored as the weekly sales information 134.

同様に、変更前の第2商品マスタ情報131では、フラッシュROM13の第4ブロックのアドレス「0x30038」以降が未使用であるが、変更後の第2商品マスタ情報131bでは、フラッシュROM13の第4ブロックのアドレス「0x30038」から、7つの商品コード「00001」〜「00007」についての月間売上情報135が記憶されている。第4ブロックの書込みポインタは、「0x30038」から「0x30070」に更新される。   Similarly, in the second merchandise master information 131 before the change, the address “0x30038” and later of the fourth block of the flash ROM 13 is unused, but in the second merchandise master information 131b after the change, the fourth block of the flash ROM 13 is used. Monthly sales information 135 for seven product codes “00001” to “00007” is stored from the address “0x30038”. The write pointer of the fourth block is updated from “0x30038” to “0x30070”.

アドレス「0x30038」には、商品コード「00001」の月間売上金額「1566000」が月間売上情報135として記憶されている。アドレス「0x30040」には、商品コード「00002」の月間売上金額「2275000」が月間売上情報135として記憶されている。アドレス「0x30048」には、商品コード「00003」の月間売上金額「156000」が月間売上情報135として記憶されている。アドレス「0x30050」には、商品コード「00011」の月間売上金額「128000」が月間売上情報135として記憶されている。アドレス「0x30058」には、商品コード「00012」の月間売上金額「258750」が月間売上情報135として記憶されている。アドレス「0x30060」には、商品コード「00101」の月間売上金額「397000」が月間売上情報135として記憶されている。アドレス「0x30068」には、商品コード「00102」の月間売上金額「77000」が月間売上情報135として記憶されている。   The monthly sales amount “1566000” of the product code “00001” is stored as the monthly sales information 135 at the address “0x30038”. The monthly sales amount “2275000” of the product code “00002” is stored as the monthly sales information 135 at the address “0x30040”. At the address “0x30048”, the monthly sales amount “156000” of the product code “00003” is stored as the monthly sales information 135. The monthly sales amount “128000” of the product code “00011” is stored as the monthly sales information 135 at the address “0x30050”. The monthly sales amount “258750” of the product code “00012” is stored as the monthly sales information 135 at the address “0x30058”. At the address “0x30060”, the monthly sales amount “397000” of the product code “00101” is stored as the monthly sales information 135. At the address “0x30068”, the monthly sales amount “77000” of the product code “00102” is stored as the monthly sales information 135.

図19は、商品名変更処理の処理手順を示すフローチャートである。商品名変更処理は、すでに命名されている商品名を変更するための処理であり、たとえば利用者が、キーボード18によって、メインメニューから商品名変更の機能を選択すると、ステップA1に進む。   FIG. 19 is a flowchart showing the processing procedure of the product name change process. The product name change process is a process for changing a product name that has already been named. For example, when the user selects a product name change function from the main menu using the keyboard 18, the process proceeds to step A1.

ステップA1では、利用者が商品コードと商品名とをキーボード18によって入力すると、キーボード18は、操作されたキーが示す情報を制御部11に送る。制御部11は、キーボード18から、入力された情報、つまり商品コードと商品名とを表す情報を受け取る。   In step A <b> 1, when the user inputs a product code and a product name using the keyboard 18, the keyboard 18 sends information indicated by the operated key to the control unit 11. The control unit 11 receives input information, that is, information representing a product code and a product name from the keyboard 18.

ステップA2では、制御部11は、書込む対象の項目を表す対象項目変数(図では「[項目]」という)に「商品名」を代入し、書込む内容を表す書込み内容変数(図では「[書込み内容]」という)に、ステップA1で入力された商品名を代入する。ステップA3では、制御部11は、入力された商品コードに対する商品マスタ情報(以下「商品マスタデータ」という)の書込み処理を行って、商品名変更処理を終了する。商品マスタデータは、第1商品マスタ情報121および第2商品マスタ情報131のことである。商品マスタデータの書込み処理については、図22,23で後述する。   In step A2, the control unit 11 assigns “product name” to a target item variable (referred to as “[item]” in the figure) representing an item to be written and writes a write content variable (in the figure, “[item]”). The product name input in step A1 is substituted into [written content]. In step A3, the control unit 11 writes product master information (hereinafter referred to as “product master data”) for the input product code, and ends the product name change process. The product master data is the first product master information 121 and the second product master information 131. The product master data writing process will be described later with reference to FIGS.

図20は、精算処理の処理手順を示すフローチャートである。精算処理は、販売した商品の清算を行うための処理であり、たとえば利用者が、キーボード18によって、メインメニューから精算処理の機能を選択すると、ステップB1に進む。   FIG. 20 is a flowchart showing the processing procedure of the settlement process. The checkout process is a process for clearing sold products. For example, when the user selects the checkout function from the main menu using the keyboard 18, the process proceeds to step B1.

ステップB1では、制御部11は、インデックス変数「indexNo.」に「1」を代入する。インデックス変数「indexNo.」は、商品マスタインデックス情報122の商品コードのうち、どの商品コードであるかを示す変数である。具体的には、インデックス変数「indexNo.」は、図9に示した商品マスタインデックス情報122の商品コードのうち上から何番目であるかを示す。   In step B1, the control unit 11 assigns “1” to the index variable “indexNo.”. The index variable “indexNo.” Is a variable indicating which product code among the product codes of the product master index information 122. Specifically, the index variable “indexNo.” Indicates the number from the top of the product code of the product master index information 122 illustrated in FIG.

ステップB2では、制御部11は、商品マスタインデックス情報122(以下、「商品マスタインデックス」という)から、インデックス変数「indexNo.」に対するインデックスデータを取得する。インデックスデータは、図9に示した商品マスタインデックス情報122の情報である。制御部11は、インデックス変数「indexNo.」が示す商品コードの1行の情報を、1つのレコードとして取得する。インデックス変数「indexNo.」が示す位置に商品コードがないときは、商品コードを「0」とする。   In step B2, the control unit 11 acquires index data for the index variable “indexNo.” From the product master index information 122 (hereinafter referred to as “product master index”). The index data is information of the product master index information 122 shown in FIG. The control unit 11 acquires information on one line of the product code indicated by the index variable “indexNo.” As one record. When there is no product code at the position indicated by the index variable “indexNo.”, The product code is set to “0”.

ステップB3では、制御部11は、取得したレコードに記憶されている商品コードを、商品コード変数(図では、「(商品コード)」という)に代入する。ステップB4では、制御部11は、商品コードが無いか否かを判定する。すなわち、レコードが終了したか否かを判定する。制御部11は、商品コード変数が「0」であるとき、商品コードが無いと判定し、精算処理を終了する。商品コード変数が「0」でないとき、商品コードがあると判定し、ステップB5に進む。   In step B3, the control unit 11 substitutes the product code stored in the acquired record into a product code variable (referred to as “(product code)” in the figure). In step B4, the control unit 11 determines whether there is no product code. That is, it is determined whether or not the record is finished. When the product code variable is “0”, the control unit 11 determines that there is no product code, and ends the settlement process. When the product code variable is not “0”, it is determined that there is a product code, and the process proceeds to step B5.

ステップB5では、制御部11は、読出す対象項目変数に「当日売上情報」を代入する。ステップB6では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの読出し処理を実行する。商品マスタデータの読出し処理については、図21で後述する。ステップB6では、制御部11は、読出したデータを当日売上金額変数(図では、「(当日売上金額)」という)」に代入する。   In step B5, the control unit 11 assigns “current day sales information” to the target item variable to be read. In step B6, the control unit 11 executes a process of reading product master data for the product code indicated by the product code variable. The merchandise master data read process will be described later with reference to FIG. In step B6, the control unit 11 assigns the read data to a sales amount variable on the day (referred to as “(sales amount on the day)” in the figure) ”.

ステップB8では、制御部11は、読出す対象項目変数に「週間売上情報」を代入する。ステップB9では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの読出し処理を実行する。ステップB10では、制御部11は、読出したデータを週間売上金額変数(図では、「(週間売上金額)」という)」に代入する。ステップB11では、制御部11は、週間売上金額変数が示す週間売上金額に、当日売上金額変数が示す当日売上金額を加算した値を、週間売上金額変数に代入して、新たな週間売上金額変数とする。   In step B8, the control unit 11 assigns “weekly sales information” to the target item variable to be read. In step B9, the control unit 11 executes a process of reading product master data for the product code indicated by the product code variable. In step B10, the control unit 11 assigns the read data to a weekly sales amount variable (referred to as “(weekly sales amount)” in the figure). In step B11, the control unit 11 assigns a value obtained by adding the current day sales amount indicated by the current day sales amount variable to the weekly sales amount indicated by the weekly sales amount variable to the new weekly sales amount variable, thereby creating a new weekly sales amount variable. And

ステップB12では、制御部11は、読出す対象項目変数に「月間売上情報」を代入する。ステップB13では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの読出し処理を実行する。ステップB14では、制御部11は、読出したデータを月間売上金額変数(図では、「(月間売上金額)」という)」に代入する。ステップB15では、制御部11は、月間売上金額変数が示す月間売上金額に、当日売上金額変数が示す当日売上金額を加算した値を、月間売上金額変数に代入して、新たな月間売上金額変数とする。   In step B12, the control unit 11 assigns “monthly sales information” to the target item variable to be read. In step B13, the control unit 11 executes a process of reading product master data for the product code indicated by the product code variable. In step B14, the control unit 11 substitutes the read data into a monthly sales amount variable (referred to as “(monthly sales amount)” in the figure). In step B15, the control unit 11 assigns a value obtained by adding the current day sales amount indicated by the current day sales amount variable to the monthly sales amount indicated by the monthly sales amount variable to the new monthly sales amount variable. And

ステップB16では、制御部11は、書込む対象項目変数に「週間売上情報」を代入し、書込み内容変数に、週間売上金額変数の値を代入する。ステップB17では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの書込み処理を実行する。ステップB18では、制御部11は、書込む対象項目変数に「月間売上情報」を代入し、書込み内容変数に、月間売上金額変数の値を代入する。ステップB19では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの書込み処理を実行する。ステップB20では、制御部11は、書込む対象項目変数に「当日売上情報」を代入し、書込み内容変数に、「0」の値を代入する。ステップB21では、制御部11は、商品コード変数が示す商品コードに対する商品マスタデータの書込み処理を実行する。ステップB22では、制御部11は、インデックス変数「indexNo.」に「1」を加算して、新たなインデックス変数「indexNo.」として、ステップB2に戻る。   In step B16, the control unit 11 substitutes “weekly sales information” for the target item variable to be written, and substitutes the value of the weekly sales amount variable for the written content variable. In step B <b> 17, the control unit 11 executes a product master data writing process for the product code indicated by the product code variable. In step B18, the control unit 11 substitutes “monthly sales information” for the target item variable to be written, and substitutes the value of the monthly sales amount variable for the written content variable. In step B19, the control unit 11 executes a process for writing product master data for the product code indicated by the product code variable. In step B20, the control unit 11 substitutes “current sales information” for the target item variable to be written, and substitutes a value of “0” for the write content variable. In step B <b> 21, the control unit 11 performs a product master data writing process for the product code indicated by the product code variable. In Step B22, the control unit 11 adds “1” to the index variable “indexNo.”, And returns to Step B2 as a new index variable “indexNo.”.

図21は、商品マスタデータ読出処理の処理手順を示すフローチャートである。商品マスタデータ読出処理は、対象項目変数が示す項目について、商品コード変数が示す商品コードに対する商品マスタデータを読出す処理である。図20に示したステップB6,B9,B13が実行されたとき、ステップC1に移る。   FIG. 21 is a flowchart showing the processing procedure of the merchandise master data reading process. The product master data reading process is a process of reading product master data for the product code indicated by the product code variable for the item indicated by the target item variable. When Steps B6, B9, and B13 shown in FIG. 20 are executed, the process proceeds to Step C1.

ステップC1では、制御部11は、商品マスタインデックスから商品コード変数が示す商品コードに対するインデックスデータを取得する。ステップC2では、制御部11は、商品マスタ情報メモリ構成テーブル125から、指定された対象項目変数が示す項目のメモリサイズを取得する。ステップC3では、制御部11は、商品マスタ情報メモリ構成テーブル125から、指定された対象項目変数が示す項目のメモリタイプを取得する。   In step C1, the control unit 11 acquires index data for the product code indicated by the product code variable from the product master index. In Step C2, the control unit 11 acquires the memory size of the item indicated by the designated target item variable from the product master information memory configuration table 125. In Step C3, the control unit 11 acquires the memory type of the item indicated by the designated target item variable from the product master information memory configuration table 125.

ステップC4では、制御部11は、メモリタイプがFlashROMであるか否かを判定する。制御部11は、メモリタイプがFlashROMであるとき、ステップC5に進み、メモリタイプがFlashROMでないとき、つまりメモリタイプがRAMのとき、ステップC7に進む。ステップC5では、制御部11は、インデックスデータから、指定された対象項目変数が示す項目のメモリアドレスを取得する。ステップC6では、制御部11は、取得したメモリアドレスから、メモリサイズ分のデータを取得し、取得したデータを上位アプリケーション(図では「上位アプリ」という)、つまり図20に示した精算処理に渡し、商品マスタデータ読出処理を終了する。   In step C4, the control unit 11 determines whether or not the memory type is FlashROM. When the memory type is FlashROM, the control unit 11 proceeds to Step C5. When the memory type is not FlashROM, that is, when the memory type is RAM, the control unit 11 proceeds to Step C7. In step C5, the control unit 11 acquires the memory address of the item indicated by the designated target item variable from the index data. In step C6, the control unit 11 acquires data corresponding to the memory size from the acquired memory address, and passes the acquired data to the upper application (referred to as “upper application” in the figure), that is, the checkout process shown in FIG. Then, the merchandise master data reading process is terminated.

ステップC7では、制御部11は、商品マスタ情報メモリ構成テーブル125から、指定された対象項目変数が示す項目の開始アドレスを取得する。ステップC8では、制御部11は、インデックスデータからレコードポインタを取得する。ステップC9では、制御部11は、ステップC7で取得した開始アドレス、ステップC8で取得したレコードポインタ、およびステップC2で取得したメモリサイズから、対象データを記憶しているメモリアドレスを算出する。対象データは、対象項目変数が示す項目の情報である。ステップC10では、制御部11は、算出したメモリアドレスからメモリサイズ分のデータを取得し、取得したデータを上位アプリケーション、つまり図20に示した精算処理に渡し、商品マスタデータ読出処理を終了する。   In Step C7, the control unit 11 acquires the start address of the item indicated by the designated target item variable from the product master information memory configuration table 125. In step C8, the control unit 11 acquires a record pointer from the index data. In step C9, the control unit 11 calculates a memory address storing the target data from the start address acquired in step C7, the record pointer acquired in step C8, and the memory size acquired in step C2. The target data is information on the item indicated by the target item variable. In step C10, the control unit 11 acquires data corresponding to the memory size from the calculated memory address, passes the acquired data to the upper application, that is, the checkout process shown in FIG. 20, and ends the merchandise master data reading process.

図22,23は、商品マスタデータ書込処理の処理手順を示すフローチャートである。商品マスタデータ書込処理は、対象項目変数が示す項目について、書込み内容変数が示す書込む内容を、商品コード変数が示す商品コードに対する商品マスタデータに書込む処理である。図19に示したステップB3、または図20に示したステップB17,B19,B21が実行されたとき、ステップD1に移る。   22 and 23 are flowcharts showing the processing procedure of the merchandise master data writing process. The product master data writing process is a process of writing the content to be written indicated by the write content variable into the product master data for the product code indicated by the product code variable for the item indicated by the target item variable. When Step B3 shown in FIG. 19 or Steps B17, B19, and B21 shown in FIG. 20 are executed, the process proceeds to Step D1.

ステップD1〜D7での処理は、図21に示したステップC1〜C4,C7〜C9と同じ処理であり、重複を避けるために説明は省略する。ステップD8では、制御部11は、算出したメモリアドレスからメモリサイズ分の領域に、指定された書込み内容変数が示す書込む内容を書き込んで記録し、商品マスタデータ書込処理を終了する。   The processes in steps D1 to D7 are the same as those in steps C1 to C4 and C7 to C9 shown in FIG. 21, and a description thereof will be omitted to avoid duplication. In step D8, the control unit 11 writes and records the content to be written indicated by the designated write content variable in the area corresponding to the memory size from the calculated memory address, and ends the product master data writing process.

ステップD11では、制御部11は、商品マスタ情報メモリ構成テーブル125から、指定された対象項目変数が示す項目の開始ブロックの番号および終了ブロックの番号を取得する。ステップD12では、制御部11は、ブロックの番号を表すブロック番号変数(図では「(ブロック番号)」という)に、ステップD11で取得した開始ブロックの番号を代入する。   In step D11, the control unit 11 obtains the start block number and end block number of the item indicated by the designated target item variable from the product master information memory configuration table 125. In step D12, the control unit 11 substitutes the number of the start block acquired in step D11 into a block number variable (referred to as “(block number)” in the figure) representing the block number.

ステップD13では、制御部11は、フラッシュROM書込みポインタテーブル126から、ブロック番号変数が示すブロック番号に対応する書込みポインタを取得する。ステップD14では、制御部11は、書込みポインタの値が「0xFFFF」であるか否かを判定する。制御部11は、書込みポインタの値が「0xFFFF」であるとき、ステップD21に進み、書込みポインタの値が「0xFFFF」でないとき、ステップD15に進む。   In step D13, the control unit 11 acquires a write pointer corresponding to the block number indicated by the block number variable from the flash ROM write pointer table 126. In step D14, the control unit 11 determines whether or not the value of the write pointer is “0xFFFF”. When the value of the write pointer is “0xFFFF”, the control unit 11 proceeds to step D21, and when the value of the write pointer is not “0xFFFF”, the control unit 11 proceeds to step D15.

ステップD15では、制御部11は、フラッシュROMブロック構成テーブル144からブロック番号変数が示すブロック番号に対応する開始アドレスを取得する。ステップD16では、制御部11は、ステップD15で取得した開始アドレスに、ステップD13で取得した書込みポインタの値を加算したアドレスを、書込みアドレスを表す書込みアドレス変数(図では「(書込みアドレス)」という)に代入する。ステップD17では、制御部11は、算出した書込みアドレス、つまり書込みアドレス変数が示す書込みアドレスから、ステップD2で取得したメモリサイズ分の領域に、指定された書込み内容変数が示す書込む内容を書き込んで記録する。   In step D15, the control unit 11 acquires a start address corresponding to the block number indicated by the block number variable from the flash ROM block configuration table 144. In step D16, the control unit 11 refers to the address obtained by adding the value of the write pointer acquired in step D13 to the start address acquired in step D15, and is referred to as a write address variable (“(write address)” in the drawing). ). In step D17, the control unit 11 writes the content to be written indicated by the designated write content variable from the calculated write address, that is, the write address indicated by the write address variable, into the area corresponding to the memory size acquired in step D2. Record.

ステップD18では、制御部11は、商品マスタインデックスの商品コード変数が示す商品コードに対する項目のうち、対象項目変数が示す項目のメモリアドレスに、書込みアドレス変数が示す書込みアドレスを書込んで記録する。ステップD19では、制御部11は、ステップD13で取得した書込みポインタが示す値に、ステップD2で取得したメモリサイズを加算した値を、書込みポインタ変数に代入する。ステップD20では、制御部11は、フラッシュROM書込みポインタテーブル126のブロック番号のうちブロック番号変数が示すブロック番号の書込みポインタに、書込みポインタ変数が示す書込みポインタを書込んで記録し、商品マスタデータ書込処理を終了する。   In step D18, the control unit 11 writes and records the write address indicated by the write address variable in the memory address of the item indicated by the target item variable among the items corresponding to the product code indicated by the product code variable of the product master index. In step D19, the control unit 11 substitutes a value obtained by adding the memory size acquired in step D2 to the value indicated by the write pointer acquired in step D13 for the write pointer variable. In step D20, the control unit 11 writes and records the write pointer indicated by the write pointer variable in the write pointer of the block number indicated by the block number variable among the block numbers of the flash ROM write pointer table 126, and records the product master data document. Finish the process.

ステップD21では、制御部11は、ブロック番号変数が示すブロック番号に「1」を加算して、「1」加算したブロック番号を新たなブロック番号としてブロック番号変数に代入する。ステップD22では、制御部11は、ブロック番号変数が示すブロック番号が終了ブロックであるか否かを判定する。制御部11は、ブロック番号変数が示すブロック番号が終了ブロックであるとき、ステップD23に進み、ブロック番号変数が示すブロック番号が終了ブロックでないとき、ステップD13に戻る。終了ブロックは、たとえば第16ブロックである。   In step D21, the control unit 11 adds “1” to the block number indicated by the block number variable, and substitutes the block number obtained by adding “1” into the block number variable as a new block number. In step D22, the control unit 11 determines whether or not the block number indicated by the block number variable is an end block. When the block number indicated by the block number variable is the end block, the control unit 11 proceeds to step D23, and when the block number indicated by the block number variable is not the end block, the control unit 11 returns to step D13. The end block is, for example, the 16th block.

ステップD23では、制御部11は、ガーベージ処理を行って、ステップD11に戻る。ガーベージ処理は、フラッシュROMに記憶されるブロックを整理する処理である。具体的には、ガーベージ処理は、情報を更新した際に消去されずに記憶されている未使用の情報を消去する処理であり、従来技術を用いて行われる。   In step D23, the control part 11 performs a garbage process and returns to step D11. Garbage processing is processing for organizing blocks stored in the flash ROM. Specifically, the garbage process is a process of erasing unused information stored without being erased when information is updated, and is performed using a conventional technique.

図24は、従来技術による商品名変更での商品マスタ情報の書換えを説明するための図である。従来技術では、図2に示した商品マスタ情報30をフラッシュROM13に記憶している。図24(a)は、商品コードごとのレコードポインタを示す商品マスタインデックス情報91を示す。図24(b)は、商品コード「00003」の商品名「緑茶B」を、商品名「緑茶B_500ml」に更新したフラッシュROM13に記憶されている商品マスタ情報92を示す。   FIG. 24 is a diagram for explaining rewriting of product master information when a product name is changed according to a conventional technique. In the prior art, the merchandise master information 30 shown in FIG. 2 is stored in the flash ROM 13. FIG. 24A shows product master index information 91 indicating a record pointer for each product code. FIG. 24B shows product master information 92 stored in the flash ROM 13 in which the product name “green tea B” of the product code “00003” is updated to the product name “green tea B_500 ml”.

従来技術では、商品コード「00003」の商品名のアドレスに記憶される商品名「緑茶B」が消去された後、同じアドレスに商品名「緑茶B_500ml」が書込まれる。すなわち、商品名の更新が行われる度に消去が発生する。これに対して、本発明では、図14に示すように、変更後の商品名「緑茶B_500ml」は未使用の領域に書き込まれるので、変更前の商品名「緑茶B」は消去されることはなく記憶されたままである。   In the prior art, after the product name “green tea B” stored at the product name address of the product code “00003” is deleted, the product name “green tea B_500 ml” is written at the same address. That is, erasure occurs every time the product name is updated. On the other hand, in the present invention, as shown in FIG. 14, the changed product name “green tea B_500 ml” is written in the unused area, so that the product name “green tea B” before the change is deleted. It remains memorized.

図25は、従来技術による精算処理での変更前後の商品マスタ情報を示す図である。従来技術では、図2に示した商品マスタ情報30をフラッシュROM13に記憶している。図25(a)は、変更前にフラッシュROM13に記憶されている商品マスタ情報93を示す。図25(b)は、変更後にフラッシュROM13に記憶されている商品マスタ情報94を示す。   FIG. 25 is a diagram illustrating the product master information before and after the change in the checkout process according to the conventional technique. In the prior art, the merchandise master information 30 shown in FIG. 2 is stored in the flash ROM 13. FIG. 25A shows the product master information 93 stored in the flash ROM 13 before the change. FIG. 25B shows the product master information 94 stored in the flash ROM 13 after the change.

従来技術では、精算処理が行われると、フラッシュROMに記憶されるすべての商品コードについての当日売上金額が「0」とされ、フラッシュROMに記憶されるすべての商品コードについての週間売上金額および月間売上金額に、当日売上金額が加算されて更新される。この場合、フラッシュROMに記憶される変更前のすべての商品コードについての当日売上金額、週間売上金額および月間売上金額は一旦消去された後、更新される。すなわち、精算処理が行われる度に消去が発生する。これに対して、本発明では、図16に示すようにRAM12に記憶される当日売上金額を更新し、また、図18に示すように、精算処理後の週間売上金額および月間売上金額をフラッシュROM13の未使用の領域に記憶する。したがって、変更前の週間売上金額および月間売上金額を消去することなく記憶したままとすることができる。   In the prior art, when the settlement process is performed, the sales amount on the day for all the product codes stored in the flash ROM is set to “0”, and the weekly sales amount and the monthly amount for all the product codes stored in the flash ROM. The sales amount is updated by adding the sales amount on the day. In this case, the sales amount on the day, the weekly sales amount, and the monthly sales amount for all the product codes before the change stored in the flash ROM are once deleted and updated. That is, erasure occurs every time the settlement process is performed. On the other hand, in the present invention, the daily sales amount stored in the RAM 12 is updated as shown in FIG. 16, and the weekly sales amount and the monthly sales amount after the settlement process are updated as shown in FIG. Stored in an unused area. Accordingly, the weekly sales amount and the monthly sales amount before the change can be stored without being deleted.

このように、本発明では、フラッシュROM13に記憶される変更前の情報を消去することなく記憶したままとし、消去することなく記憶したままとした情報は、すべてのブロックに書込みが行われた後に行われるガーベージ処理で消去されるので、フラッシュROM13の消去頻度を低減することができ、フラッシュROM13の寿命を延ばすことができる。   As described above, in the present invention, the information before change stored in the flash ROM 13 is stored without being erased, and the information stored without being erased is written to all the blocks. Since the data is erased by the garbage process, the frequency of erasing the flash ROM 13 can be reduced, and the life of the flash ROM 13 can be extended.

このように、RAM12は、書換え回数に制限がない。フラッシュROM13は、書換え回数に制限がある。そして、制御部11は、商品に関する複数の項目についての情報のうち、書換え頻度が予め定める基準頻度以上である第1の項目の情報、たとえば単価情報123および当日売上情報124をRAM12に記憶させ、書換え頻度が予め定める基準頻度未満である第2の項目の情報、たとえば商品名情報132、各種設定情報133、週間売上情報134および月間売上情報135をフラッシュROM13に記憶させる。したがって、RAM12、たとえば高価なSRAMの使用量を減らすことができ、コスト削減を図ることができる。また、書換え頻度の低い情報を書換え回数に制限のあるフラッシュROM13に記憶するので、フラッシュROM13の使用可能期間を延ばすことができる。   Thus, the RAM 12 has no limit on the number of rewrites. The flash ROM 13 is limited in the number of rewrites. And the control part 11 memorize | stores in RAM12 the information of the 1st item in which the rewriting frequency is more than the reference frequency defined beforehand among information about a plurality of items about goods, for example, unit price information 123, and sales information 124 on the day, Information on the second item whose rewrite frequency is less than a predetermined reference frequency, such as product name information 132, various setting information 133, weekly sales information 134, and monthly sales information 135, is stored in the flash ROM 13. Therefore, the usage amount of the RAM 12, for example, an expensive SRAM can be reduced, and the cost can be reduced. In addition, since information with a low rewrite frequency is stored in the flash ROM 13 with a limited number of rewrites, the usable period of the flash ROM 13 can be extended.

さらに、RAM12には、各商品を識別するための商品コード301が記憶されている。そして、制御部11は、第1の項目の情報を、商品コード301に対応付けてRAM12に記憶させ、第2の項目の情報を、商品コード301に対応付けてフラッシュROM13に記憶させる。したがって、複数の項目の情報を商品コード301ごとに管理することができる。   Further, the RAM 12 stores a product code 301 for identifying each product. Then, the control unit 11 stores information on the first item in the RAM 12 in association with the product code 301, and stores information on the second item in the flash ROM 13 in association with the product code 301. Therefore, information on a plurality of items can be managed for each product code 301.

さらに、制御部11は、第2の項目の情報が記憶されるフラッシュROM13のアドレスを特定するインデックスを、商品コード301と対応付けてRAM12に記憶させる。したがって、RAM12に記憶されるインデックスによって、フラッシュROM13に記憶される第2の項目の情報を特定することができる。   Further, the control unit 11 stores an index for specifying the address of the flash ROM 13 in which the information of the second item is stored in the RAM 12 in association with the product code 301. Therefore, the information of the second item stored in the flash ROM 13 can be specified by the index stored in the RAM 12.

さらに、制御部11は、フラッシュROM13に記憶される第2の項目の情報を更新するとき、変更前の第2の項目の情報を消去することなく、変更後の第2の項目の情報をフラッシュROM13の領域のうち未書込みの領域に書込み、RAM12に記憶されるインデックスを、変更後の第2の項目の情報を書込んだアドレスを特定するインデックスに書換える。したがって、第2の項目の情報を更新しても、フラッシュROM13の消去を行う必要がなく、フラッシュROM13の使用可能期間をより延ばすことができる。   Further, when updating the information of the second item stored in the flash ROM 13, the control unit 11 flashes the information of the second item after the change without deleting the information of the second item before the change. The index is stored in the unwritten area of the ROM 13 and the index stored in the RAM 12 is rewritten with an index for specifying the address where the information of the second item after the change is written. Therefore, even if the information of the second item is updated, it is not necessary to erase the flash ROM 13 and the usable period of the flash ROM 13 can be further extended.

さらに、商品コード301は、自然数によって表される。そして、制御部11は、第1の項目の情報を商品コード301に対応付けて商品コード301の昇順または降順にRAM12に記憶させ、第2の項目の情報を商品コード301に対応付けて商品コード301の昇順または降順にフラッシュROM13に記憶させる。したがって、商品コード301による検索を容易に行うことができる。   Further, the product code 301 is represented by a natural number. Then, the control unit 11 associates the information of the first item with the product code 301 and stores the information in the ascending or descending order of the product code 301 in the RAM 12, and associates the information of the second item with the product code 301. The data are stored in the flash ROM 13 in ascending or descending order of 301. Therefore, the search by the product code 301 can be easily performed.

1 ECR
11 制御部
12 RAM
13 フラッシュROM
14 プログラム格納ROM
15 表示部
16 プリンタ
17 時計
18 キーボード
19 通信部
20 SDカードインタフェース部
21 バーコードスキャナ
22 ドロア
111 データ送受信
112 各種データ作成
121 第1商品マスタ情報
122 商品マスタインデックス情報
123 単価情報
124 当日売上情報
125 表示/印字用データ
126 レシート計算用データ
127 商品マスタ情報メモリ構成テーブル
128 フラッシュROM書込みポインタテーブル
131 第2商品マスタ情報
132 商品名情報
133 各種設定情報
134 週間売上情報
135 月間売上情報
136 売上記録
1 ECR
11 Control unit 12 RAM
13 Flash ROM
14 Program storage ROM
DESCRIPTION OF SYMBOLS 15 Display part 16 Printer 17 Clock 18 Keyboard 19 Communication part 20 SD card interface part 21 Barcode scanner 22 Drawer 111 Data transmission / reception 112 Various data creation 121 1st product master information 122 Commodity master index information 123 Unit price information 124 Sales information 125 on the day 125 Display / Printing data 126 Receipt calculation data 127 Product master information memory configuration table 128 Flash ROM write pointer table 131 Second product master information 132 Product name information 133 Various setting information 134 Weekly sales information 135 Monthly sales information 136 Sales record

Claims (5)

書換え回数に制限のない第1の記憶手段と、
書換え回数に制限のある第2の記憶手段と、
商品に関する複数の項目についての情報のうち、書換え頻度が予め定める基準頻度以上である第1の項目の情報を第1の記憶手段に記憶させ、書換え頻度が予め定める基準頻度未満である第2の項目の情報を第1の項目の情報と対応付けて第2の記憶手段に記憶させる制御手段であって、互いに対応する第1の項目の情報と第2の項目の情報とを、第1の記憶手段および第2の記憶手段から読出し、読出した第1の項目の情報と第2の項目の情報とに基づいて取引処理を行う制御手段とを含むことを特徴とする電子式金銭登録機
A first storage means having no limit on the number of rewrites;
A second storage means with a limited number of rewrites;
Of the information about the plurality of items related to the product, the first item information whose rewrite frequency is equal to or higher than a predetermined reference frequency is stored in the first storage means, and the second rewrite frequency is less than the predetermined reference frequency Control means for associating the item information with the first item information and storing it in the second storage means, wherein the first item information and the second item information corresponding to each other are An electronic cash register characterized by comprising: a storage means and a control means for performing transaction processing based on the first item information and the second item information read from the storage means and the second storage means .
前記第1の記憶手段には、各商品を識別するための識別情報が記憶されており、
前記制御手段は、第1の項目の情報を、前記識別情報に対応付けて第1の記憶手段に記憶させ、第2の項目の情報を、前記識別情報に対応付けて第2の記憶手段に記憶させることを特徴とする請求項1に記載の電子式金銭登録機
The first storage means stores identification information for identifying each product,
The control means stores information on the first item in the first storage means in association with the identification information, and stores information on the second item in the second storage means in association with the identification information. The electronic cash register according to claim 1, wherein the electronic cash register is stored.
前記制御手段は、第2の項目の情報が記憶される第2の記憶手段のアドレスを特定する特定情報を、前記識別情報と対応付けて第1の記憶手段に記憶させることを特徴とする請求項2に記載の電子式金銭登録機The control means stores, in the first storage means, specific information for specifying an address of a second storage means in which information of a second item is stored, in association with the identification information. Item 3. An electronic cash register according to Item 2. 前記制御手段は、第2の記憶手段に記憶される第2の項目の情報を更新するとき、変更前の第2の項目の情報を消去することなく、変更後の第2の項目の情報を第2の記憶手段の領域のうち未書込みの領域に書込み、第1の記憶手段に記憶される特定情報を、変更後の第2の項目の情報を書込んだアドレスを特定する特定情報に書換えることを特徴とする請求項3に記載の電子式金銭登録機When the control unit updates the information of the second item stored in the second storage unit, the control unit stores the information of the second item after the change without deleting the information of the second item before the change. Write in the unwritten area of the second storage means, and rewrite the specific information stored in the first storage means with the specific information specifying the address where the changed second item information is written. The electronic cash register according to claim 3. 前記識別情報は、自然数によって表され、
前記制御手段は、第1の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第1の記憶手段に記憶させ、第2の項目の情報を前記識別情報に対応付けて前記識別情報の昇順または降順に第2の記憶手段に記憶させることを特徴とする請求項2〜4のいずれか1つに記載の電子式金銭登録機
The identification information is represented by a natural number,
The control means associates the information of the first item with the identification information and stores it in the first storage means in ascending or descending order of the identification information, and associates the information of the second item with the identification information. The electronic cash register according to any one of claims 2 to 4, wherein the identification information is stored in a second storage means in ascending or descending order.
JP2011112872A 2011-05-19 2011-05-19 Electronic cash register Active JP5715878B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011112872A JP5715878B2 (en) 2011-05-19 2011-05-19 Electronic cash register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011112872A JP5715878B2 (en) 2011-05-19 2011-05-19 Electronic cash register

Publications (2)

Publication Number Publication Date
JP2012243098A JP2012243098A (en) 2012-12-10
JP5715878B2 true JP5715878B2 (en) 2015-05-13

Family

ID=47464742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011112872A Active JP5715878B2 (en) 2011-05-19 2011-05-19 Electronic cash register

Country Status (1)

Country Link
JP (1) JP5715878B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3587204B2 (en) * 1991-11-28 2004-11-10 株式会社日立製作所 Storage device
JPH0675836A (en) * 1992-08-25 1994-03-18 Nippon Densan Corp Auxiliary storage device
JPH07219720A (en) * 1993-10-01 1995-08-18 Hitachi Maxell Ltd Semiconductor memory device and its control method
JP3784844B2 (en) * 1994-03-30 2006-06-14 沖電気工業株式会社 Semiconductor memory device

Also Published As

Publication number Publication date
JP2012243098A (en) 2012-12-10

Similar Documents

Publication Publication Date Title
JP3175692B2 (en) Data linking system between computer and portable terminal and data linking method
CN106445993A (en) Data fingerprint query method and device based on block chain
US8386539B2 (en) Variable length data storage device, variable length data storage method, variable length data reading method, and a program for the same
JPH04257939A (en) Data processor
JP7486240B2 (en) Information processing system, information processing method, and information processing program
JP5715878B2 (en) Electronic cash register
JP6810626B2 (en) Cash processing system
JP7079691B2 (en) Block copy cost control device, block copy cost control method, and block copy cost control program
JP5240086B2 (en) Data management program
JP3914652B2 (en) Accounting equipment
CN111638904B (en) Data configuration restoration method and device and readable storage medium
JP4738704B2 (en) Database system
KR101454963B1 (en) Smart account system for managing balance by expense item and method thereof
JPH11212775A (en) Information processing system
JP4818764B2 (en) Asset management result analysis support system and method
JPH1139199A (en) Job management data transaction system
KR100250876B1 (en) A management method for program change history for ecr
JP3481002B2 (en) POS system
JP2023105893A (en) Information processing device, information processing method and information processing program
JP2024004189A (en) Depreciation simulation device, depreciation simulation method, and depreciation simulation program
JPH0319078A (en) Generating method for yearly file
JP2021099873A (en) Server device, program, commodity data setting system, and price display setting method
JP2002328819A (en) Information management system, information management method and information management program
KR20020006948A (en) The method and system managing electronic books via a communication network and a medium recording the method
CN109657896A (en) Mobility notch detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141021

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141015

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150316

R150 Certificate of patent or registration of utility model

Ref document number: 5715878

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150