JPH0355690A - Sales data processor - Google Patents

Sales data processor

Info

Publication number
JPH0355690A
JPH0355690A JP19064989A JP19064989A JPH0355690A JP H0355690 A JPH0355690 A JP H0355690A JP 19064989 A JP19064989 A JP 19064989A JP 19064989 A JP19064989 A JP 19064989A JP H0355690 A JPH0355690 A JP H0355690A
Authority
JP
Japan
Prior art keywords
data
memory
area
input
flu
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.)
Pending
Application number
JP19064989A
Other languages
Japanese (ja)
Inventor
Satoshi Iwaasa
智 岩浅
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP19064989A priority Critical patent/JPH0355690A/en
Publication of JPH0355690A publication Critical patent/JPH0355690A/en
Pending legal-status Critical Current

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

PURPOSE:To extremely reduce the memory capacity by setting the data after compressing it when the data is identical with the data which is already set in accordance with other sorting. CONSTITUTION:In a set mode to a sort-based memory 1, a discriminating device 2 retrieves the memory 1 for each input of the preset data and discriminates whether the data identical to the input data is set at the memory 1 or not. If not, a setting device 3 secures a standard area of the prescribed length decided previously in accordance with the input preset data in the memory 1. Thus the input preset data is set in the standard area. Meanwhile a 2nd setting device 4 secures an area in the an area in the memory 1 by reducing the standard area corresponding to the input data by a degree equal to a size set previously when the data identical to the preset data is inputted to the memory 1. Then the link data related to the sort of the same data is set in the reduced area.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] この発明は、電子式キャッシュレジスタ等の売上データ
処理装置、特に分類毎に入力されたプリセット、データ
を分類別メモリに順次設定する売上データ処理装置に関
する. [従来の技術] 従来、電子式キャッシュレジスタ(E C R)におい
ては商品毎に売上データを記憶するFLUメモリ等が設
けられている. 第10図は従来のFLUメモリの一部構I&図で、1レ
コード分(lm品分)のデータフオーマットを示してい
る.即ち、1レコード分のデータはメモリNb (FL
Uコード)、キャラクタ(商品名)、単価、個数、金額
、その他の設定データとから構成されている.ここで,
メモリ叱は2バイト、キャラクタは12バイト,単価は
3バイト、4WIaは3バイト,金額は5バイト、その
他の設定データは5バイト,つまり、データの種類に応
じて予め決められている所定容量分のエリアが確保され
る.したがって、FLUメモリにはlレコードに対応し
て30バイト分のエリアが固定的に確保されている. [発明が解決しようとする課題] このように従来においては、l商品当り30バイト、し
たがって商品数がr5 0 0」であれば、FLUメモ
リには15000バイト必要となるが,異なる商品であ
っても同一のデータ部分がかなりありメモリを効率良く
使用できてないという欠点があった. この原因は各分類に対応するデータを一律に30バイト
構威の固定的なデータとして取り扱うことに起因してい
る. してみれば、分類毎に設定されるデータが他の分類に対
応して既に設定されているデータと同一である場合に、
同一データの重複設定を避けて当該分類に対応するデー
タを圧縮して設定するようにすれば,それだけメモリを
効率良〈使用できることは明らかである. この発明の課題は、他の分類に対応して既に設定されて
いるデータと同一である場合に、同一データの重複設定
を避けて当該データを圧縮して設定できるようにするこ
とである.
[Industrial Application Field] The present invention relates to a sales data processing device such as an electronic cash register, and more particularly to a sales data processing device that sequentially sets presets and data input for each category in a memory for each category. [Prior Art] Conventionally, an electronic cash register (ECR) is provided with a FLU memory or the like for storing sales data for each product. Figure 10 is a partial diagram of a conventional FLU memory, showing the data format for one record (lm items). That is, data for one record is stored in memory Nb (FL
It consists of U code), character (product name), unit price, quantity, amount, and other setting data. here,
2 bytes for memory, 12 bytes for characters, 3 bytes for unit price, 3 bytes for 4WIa, 5 bytes for amount, 5 bytes for other setting data, that is, a predetermined capacity that is determined in advance according to the type of data. area will be secured. Therefore, an area of 30 bytes is fixedly secured in the FLU memory corresponding to the l record. [Problem to be solved by the invention] In this way, in the past, 30 bytes per product, so if the number of products was r5 0 0, 15,000 bytes were required for the FLU memory, but However, there was a drawback that there was a large portion of the same data and the memory could not be used efficiently. The reason for this is that the data corresponding to each classification is treated as fixed data with a uniform 30-byte structure. If the data set for each classification is the same as the data already set for other classifications,
It is clear that memory can be used more efficiently by avoiding duplicate settings for the same data and compressing and setting the data corresponding to the relevant classification. An object of this invention is to avoid duplicate settings of the same data and to compress and set the data when it is the same as data that has already been set corresponding to another classification.

【課題を解決するための千段1 この発明の手段は次の通りである. 分類別メモリl(第1図の機能ブロック図を参照、以下
同じ)は例えば.FLUコード、キャラクタ、単価、個
数、金額、その他の設定データを記憶するFLUメモリ
等である. 判別手段2は分類別メモリlにデータ(FLUコード、
キャラクタ、単価等)を設定する際に,入力されたデー
タと同一のデータが分類別メモリl内に他の分類のブリ
セットデータとして既に設定されているか否かを判別す
る. 第1の設定手段3は判別千段2で同一のデータが設定さ
れていないことが判別された際に,入力されたデータに
対応して予め決められている所定長の標準エリアを分類
別メモリlに確保したのち入力されたプリセットデータ
を当該標準エリアに設定する.ここで、所定長の標準エ
リアとは例えばFLUコードであれば2バイト、キャラ
クタであれば12バイト、単価であれば3バイトの如く
,プリセットデータの種類に対応して予め決められてい
る固定長のエリアである. 第2の設定手段4は判別千段2で同一データが設定され
ていることが判別された際に,前記所定長の標準エリア
を縮少して成る縮少エリアを分類別メモリlに確保した
のち、同一データの分類と関連づけるリンクデータを当
該縮少エリアに設定する.ここで,縮少エリアとは所定
長の標準エリアを縮少したエリアで、予めプリセットデ
ータの種類に応じてその縮少サイズが固定的に決められ
ている固定長のエリアである. [作 用] この発明の手段の作用は次の通りである.いま、分類別
メモリl、例えばFLUメモリにFLUコード,キャラ
クタ、単価、その他、必要なデータを各商品毎に順次設
定するものとする.この分類別メモリ1に対する設定モ
ードにおいて,判別手段2はプリセットデータが入力さ
れる毎に分類別メモリ1を検索し,入力されたデータと
同一のデータが分類別メモリ1に設定されているか否か
を判別する. ここで、分類別メモリl内に同一データがプリセットさ
れていなければ,第1の設定手段3は入力されたプリセ
ットデータに対応して予め決められている所定長の標準
エリアを分類別メモリlに確保したのち、入力されたプ
リセットデータを当該標準エリアに設定する.したがっ
て、例えばFLUコードが入力された場合には2バイト
分の標準エリアが確保されてFLUコードがそのエリア
に設定される。また.キャラクタが入力された場合には
12バイト分の標準エリアが確保されてそのエリアにキ
ャラクタが設定される.一方、分類別メモリl内に既に
プリセットされているデータと同一のデータが入力され
た場合、例えば他の分類と同一の単価が入力された場合
、第2の設定手段4は入力されたデータに対応する標準
エリア(3バイト)を予め決められているサイズ分縮少
して成る縮少エリア(1バイト)を分類別メモリlに確
保したのち同一データの分類と関連づけるリンクデータ
を当該縮少エリアに設定する. したがって、他の分類に対応して既に設定されているデ
ータと同一である場合に、同一データの重複設定を避け
て当該データを圧縮して設定することができる. [実施例】 以下、第2図〜第8図を参照して一実施例を説明する. 第2図はECRの基本的な構威を示したブロック図であ
る. CPUIIはROM12に格納されているマイクロプロ
グラムにしたがってこのECRの各種の動作を制御する
もので、キー人力部l3から入力された売上データを入
力制御部l4を介して取り込み、RAM15を構成する
各種の売上合計器へ登録すると共に、表示駆動s16、
印字制御部17に与え、表示部18から表示出力させた
り、印字部l9から印字出力させ,更にはドロア20の
開放動作を制御する. キー人力部13のキーボード上には通常備えられている
各種のキー、即ち、テンキー、ファンクションキーの他
、RAM15内の売上合計器へキャラクタ(商品名)、
個数、金額、FLUコード、単価を設定する際にキャラ
クタを入力するキャラクタキー、個数を入力する個数キ
ー、金額を入力する金額キー、FLUコードを入力する
FLUキー、単価を入力する単価キーが設けられている
と共に各種のモードを切換えるモードスイッチMSが設
けられている.なお,モードスイッチMSはその切換位
置に応じて「P(設定)」、rREG (登録)」.r
oFp(電源オフ)」、rz(点検)」、rz(精算)
」の各モードを切換えるコントロール●ロツクである.
また、本実施例においては、後述する学習機能をオン/
オフさせるスライドスイッチSDが設けられている.こ
こで、学習機能とはRAM15内の売上合計器へデータ
を設定する際に、既に設定されている同一データか否か
をチx−/クし、設定済のデータであれば特殊な設定を
行わせる機能である. RAM15は各種の売上合計器、即ちFLUメモリ15
−1,部門メモリl5−2等を有する構成となっている
. 第3図はP L U’メモリ15−1の一部構成図で、
lレコード分(l商品分)のデータフオーマットを示し
ている, 即ち、lレコード分のデータはその先頭にデータ長,メ
モリNb(FLUコード)、キャラクタ(商品名)、単
価、個数、金額,その他の設定データ(リンク部門先、
認証回数、0単価等)とから構成されている.ここで、
データ長は1バイト、メモリ馳は2バイト、キャラクタ
は12バイト、単価は3バイト、個数は3バイト、金額
は5バイト、その他の設定データは5バイト、つまり、
データの種類に応じて予め決められている所定容量分の
エリアが確保される.そして、lレコード中の各データ
のうち個数、金額は売上データの登録時に更新されるデ
ータであるがその他のデータはユーザが任意に設定した
設定データである.なお、データ長はlレコード分の長
さを示している.また、データ長、キャラクタ、個数、
金額に対応するエリアは固定エリアであるが、単価、そ
の他の設定データに対応するエリアは必要に応じて縮少
されるエリアである.即ち、単価プリセット時にFLU
メモリ15−1内に同一単価が既に設定されている場合
には単価に対応して予め決められている標準的なエリア
(3バイト)は縮少エリア(1バイト)に変更される(
第4図参照).また、その他の設定データのプリセット
時にFLUメモリl5−1内に同一データが既に設定さ
れている場合には、その設定データに対応して予め決め
られている標準的なエリア(5バイト)は縮少エリア(
1バイト)に変更される(第5図参!’!!) . 次に、本実施例の動作を第6図〜第8図を参照して説明
する. 第6図はFLUメモリ15−1にデータを設定する際の
動作を示したフローチャートである.この場合,モード
スイッチMSをその切換位置「P」にセットした設定モ
ードにおいて,FLUメモリ15−1を指定すると、第
6図のフローチャートにしたがったメモリ設定処理が実
行開始される. 先ず、データ入力有無を調べ(ステップAl),データ
入力が無ければ設定モードが解除されたか否かを調べる
(ステップA2).ここで、設定モード下においては、
ステップAIに戻り、データが入力されるまでステップ
AI,A2を繰り返しながら待機する. いま、lレコード分のブリセットデータ、即ち,データ
長、メモリ出、キャラクタ、単価、その他の設定データ
を入力すると、入力されたlレコード分のデータは入カ
バッファIBに一時的に記憶される(ステップA3). そして、全ての設定データの入力が終了すると、まず、
CPUIIはFLUメモリ15−1内にデータ長エリア
(1バイト)を確保して当該エリアへデータ長を設定す
る(ステップA4).次に、キャラクタエリア(12バ
イト)を確保して当該エリアにキャラクタを設定する(
ステップA5). 次に、スライドスイッチSDのオン/オフ状態つまり、
学習機能のオン/オフ状態を調べる(ステップA6).
ここで、学習機能がオフされていればステップA9に進
み、単価エリア(3バイト)を確保して当該エリアに単
価を設定する.一方、学習機能がオンされていれば、既
に設定されているFLUメモリ15−1内の単価を検索
し,入カバッファIB内の入力単価と同一のデータがF
LUメモリ15−1内に存在するか否かを調べる(ステ
ップA7).ここで、同一単価が存在していなければ、
ステップA9に進み、3バイト分の標準エリアを確保し
てそのエリアにデータを設定するが、同一単価が既に設
定されていれば、標準エリア(3バイト)を縮少した縮
少エリア(1バイト)を確保し、この縮少エリアに同一
単価が設定されている設定先のFLUのアドレスをリン
クデータとして設定する(ステップA8).次に、ステ
ップAIOに進み、個数エリア(3バイト)を確保した
のち、金額エリア(5バイト)を確保する(ステップA
ll). その後,再び学習機能のオン/オフ状態を調べ(ステッ
プA12)、オフされていればステップAl5に進み、
設定データエリア(5バイト)を確保してそのエリアに
設定データを書き込む.方、学習機能がオンされていれ
ば、ステップAl3に進み、FLUメモリ15−1内に
同一設定データが既に設定されているか否かを調べる.
ここで、同一データが設定されていなければ、ステップ
A15に進むが,同一データが既に設定されていれば、
標準エリア(5バイト)を縮少した縮少エリア(1バイ
ト)を確保し、この縮少エリアに同一データが設定され
ている設定先のFLUのアドレスをリンクデータとして
設定する(ステップA14). そして、ステップA1に戻り,上述の設定処理を1レコ
ードずつ繰り返す. 第7図はこのようにしてFLUメモリ15−1に設定さ
れたデータフォーマットを示している.ここで.Fi4
中rPG!lはリンクデータである.なお、単価エリア
が縮少された場合には2バイト分の空エリア、設定デー
タエリアが縮少された場合には4バイト分の空エリアが
生ずるが、この場合、各レコードデータはその間を隙間
無く詰めて記憶されている. 第8図は売上データを登録処理する場合の動作を示した
フローチャートである. 先ず、モードスイッチMSがその切換位置「REGJに
セットされている登録モードにおいて、通常のキー操作
手順にしたがってFLU別登録操作を行うと、それに応
じて入力されたFLUコードでFLUメモリ15−1を
検索する(ステップBl),この場合、メモリNblの
FLUコードか否かを調べ(ステップB2)、その結果
,メモリNOlのFLUコードであれば、このデータ長
にしたがって先頭lレコード分のデータを読み出すが(
ステップB3)、メモリFt)2以降のFLUコードで
あれば、ステップB4に進み、メモリ叱「n」で示され
るn番目のレコードを読み出す為に、(n−1)番目ま
でのデータ長を加算して得られたアドレス値からn番目
のデータ長で示されるアドレス値までのデータを読み出
す.そして、ステップB5に進み,読み出したlレコー
ド分のデータ内にリンクデータが含まれているか否かを
調べる.ここで,単価データに代ってリンクデータが含
まれている場合あるいはその他の設定データに代ってリ
ンクデータが含まれている場合にはステップB5でその
ことが検出されてステップB6に進み,リンクデータで
示されるアドレスでFLUメモリ15−1を検索し、当
該レコード中の単価あるいはその他の設定データを読み
出す. このようにして登録対象の1レコード分のデータが揃っ
たら、次のステップB7に進み、通常の登録処理、演算
処理を実行する. なお、上記実施例はFLUデータ同士で同一データの重
複設定を避けるようにしたがFLUメモリl5−1と部
門メモリl5−2との間で同一データの重複設定を避け
るようにしてもよい.この場合、第9図は部門メモリl
5−2内の1レコード分のデータフォーマットを示して
いる.即ち、部門メモリ15−2内の1レコード分のデ
ータは部門コード、個数,金額,その他の設定データと
から構成されている.そして,FLUメモリ15−1内
のあるFLUコードに対応するその他の設定データが部
門メモリl5−2内のその他の設定データと同一である
場合には当該FLUコードに対応するその他の設定デー
タエリアに部門のアドレスをリンクデータとして設定し
ておく.そして.FLU登録時にそのリンクデータにし
たがって部門メモリl5−2を検索し、その部門コード
に対応するその他の設定データを読み出すようにすれば
よい. 更に、PLUfi録時においてlレコード中にリンクデ
ータが含まれているか否かの判断をデータ長に基づいて
行うようにしてもよい.この場合、リンクデータが含ま
れていないレコードのデータ長は31バイト、単価に代
わるリンクデータが含まれている場合には、30バイト
、その他の設定データに代わるリンクデータが含まれて
いる場合には29バイト、単価およびその他の設定デー
タに代わるリンクデータが夫々含まれている場合には2
8バイトとすれば、データ長に基づいてリンクデータの
有無を判別することができる.また、リンクデータはF
LUコード、部門コードであってもよい. [発明の効果] この発明によれば,他の分類に対応して既に設定されて
いるデータと同一である場合に、同一データの重複設定
を避けて当該データを圧縮して設定する為に、メモリ容
量を大幅に削減することができ,メモリを効率良く使用
することが可能となる.
[1,000 Steps to Solve the Problem The means of this invention are as follows. The classification memory l (see the functional block diagram in Fig. 1, the same applies hereinafter) is, for example. This is a FLU memory that stores FLU codes, characters, unit prices, quantities, amounts, and other setting data. The discriminating means 2 stores data (FLU code,
character, unit price, etc.), it is determined whether the same data as the input data has already been set as preset data for another category in the category memory l. The first setting means 3 stores a standard area of a predetermined length corresponding to the input data in the memory for each classification when it is determined in the discrimination step 2 that the same data is not set. 1, and then set the input preset data to the standard area. Here, the standard area of predetermined length is a fixed length that is predetermined according to the type of preset data, such as 2 bytes for FLU code, 12 bytes for character, and 3 bytes for unit price. This is the area. The second setting means 4 secures a reduced area in the classification memory l by reducing the standard area of the predetermined length when it is determined in the discrimination stage 2 that the same data is set. , set link data to be associated with the same data classification in the reduced area. Here, the reduced area is an area obtained by reducing a standard area of a predetermined length, and is an area of a fixed length whose reduced size is fixed in advance according to the type of preset data. [Function] The function of the means of this invention is as follows. Now, it is assumed that the FLU code, character, unit price, and other necessary data are sequentially set for each product in the classification memory l, for example, the FLU memory. In this setting mode for the classification memory 1, the determining means 2 searches the classification memory 1 every time preset data is input, and determines whether the same data as the input data is set in the classification memory 1. Determine. Here, if the same data is not preset in the classification memory l, the first setting means 3 sets a standard area of a predetermined length corresponding to the input preset data in the classification memory l. After securing, set the input preset data to the standard area. Therefore, for example, when a FLU code is input, a 2-byte standard area is secured and the FLU code is set in that area. Also. When a character is input, a standard area of 12 bytes is secured and the character is set in that area. On the other hand, if the same data as the data already preset in the classification memory l is input, for example, if the same unit price as for another classification is input, the second setting means 4 After securing a reduced area (1 byte) in the classification memory l by reducing the corresponding standard area (3 bytes) by a predetermined size, link data that is associated with the same data classification is placed in the reduced area. Set. Therefore, if the data is the same as data that has already been set for another classification, it is possible to compress and set the data while avoiding duplicate settings of the same data. [Example] An example will be described below with reference to FIGS. 2 to 8. Figure 2 is a block diagram showing the basic structure of ECR. The CPU II controls various operations of this ECR according to microprograms stored in the ROM 12, and imports sales data input from the key human power section 13 via the input control section 14, and executes various operations constituting the RAM 15. Along with registering to the sales totalizer, display drive s16,
The information is supplied to the print control section 17 to cause the display section 18 to output a display, the printing section 19 to output a printout, and furthermore to control the opening operation of the drawer 20. In addition to the various keys usually provided on the keyboard of the key control unit 13, such as a numeric keypad and function keys, there are also characters (product name),
There is a character key to input characters when setting the quantity, amount, FLU code, and unit price, a quantity key to input the quantity, an amount key to input the amount, a FLU key to input the FLU code, and a unit price key to input the unit price. A mode switch MS is provided for switching between various modes. Note that the mode switch MS is set to "P (setting)", "rREG (registration)", etc. depending on its switching position. r
oFp (power off), rz (inspection), rz (payment)
This is a control lock that switches between each mode.
In addition, in this embodiment, the learning function described later is turned on/off.
A slide switch SD is provided to turn it off. Here, the learning function means that when setting data to the sales totalizer in the RAM 15, it checks to see if it is the same data that has already been set, and if the data has already been set, special settings are made. This is a function that allows you to do this. RAM 15 stores various sales totalizers, namely FLU memory 15.
-1, department memory l5-2, etc. FIG. 3 is a partial configuration diagram of the PLU' memory 15-1.
It shows the data format for 1 record (for 1 product). That is, the data for 1 record has the data length, memory Nb (FLU code), character (product name), unit price, quantity, amount, etc. at the beginning. Setting data (link department destination,
It consists of the number of authentications, 0 unit price, etc.). here,
Data length is 1 byte, memory is 2 bytes, characters are 12 bytes, unit price is 3 bytes, quantity is 3 bytes, amount is 5 bytes, other setting data is 5 bytes, that is,
An area with a predetermined capacity is secured depending on the type of data. Of each data in the l record, the number of items and the amount are updated when sales data is registered, but other data is setting data arbitrarily set by the user. Note that the data length indicates the length of one record. Also, data length, characters, number,
The area corresponding to the amount is a fixed area, but the area corresponding to the unit price and other setting data is an area that can be reduced as necessary. In other words, when presetting unit price, FLU
If the same unit price has already been set in the memory 15-1, the standard area (3 bytes) predetermined according to the unit price is changed to a reduced area (1 byte).
(See Figure 4). Also, if the same data is already set in FLU memory l5-1 when presetting other setting data, the standard area (5 bytes) predetermined corresponding to that setting data will be reduced. Small area (
1 byte) (see Figure 5!'!!). Next, the operation of this embodiment will be explained with reference to FIGS. 6 to 8. FIG. 6 is a flowchart showing the operation when setting data in the FLU memory 15-1. In this case, when the FLU memory 15-1 is specified in the setting mode in which the mode switch MS is set to the switching position "P", the memory setting process according to the flowchart of FIG. 6 is started. First, the presence or absence of data input is checked (step Al), and if there is no data input, it is checked whether the setting mode has been canceled (step A2). Here, under the setting mode,
Return to step AI and wait while repeating steps AI and A2 until data is input. Now, if you input 1 record's worth of reset data, that is, data length, memory output, character, unit price, and other setting data, the input 1 record's worth of data will be temporarily stored in input buffer IB ( Step A3). After entering all the setting data, first,
The CPU II reserves a data length area (1 byte) in the FLU memory 15-1 and sets the data length to the area (step A4). Next, secure a character area (12 bytes) and set a character in the area (
Step A5). Next, the on/off state of the slide switch SD, that is,
Check the on/off status of the learning function (step A6).
Here, if the learning function is turned off, the process proceeds to step A9, where a unit price area (3 bytes) is secured and a unit price is set in the area. On the other hand, if the learning function is turned on, the unit price in the FLU memory 15-1 that has already been set is searched, and the same data as the input unit price in the input buffer IB is found in the FLU memory 15-1.
Check whether the file exists in the LU memory 15-1 (step A7). Here, if the same unit price does not exist,
Proceeding to step A9, a standard area for 3 bytes is secured and data is set in that area. However, if the same unit price has already been set, a reduced area (1 byte) is created by reducing the standard area (3 bytes). ) is secured, and the address of the destination FLU for which the same unit price is set in this reduced area is set as link data (step A8). Next, proceed to step AIO, secure the number area (3 bytes), and secure the amount area (5 bytes) (step A
ll). After that, check the on/off status of the learning function again (step A12), and if it is turned off, proceed to step Al5,
Allocate a setting data area (5 bytes) and write the setting data to that area. On the other hand, if the learning function is turned on, the process advances to step Al3, and it is checked whether the same setting data has already been set in the FLU memory 15-1.
Here, if the same data has not been set, the process advances to step A15, but if the same data has already been set,
A reduced area (1 byte) is secured by reducing the standard area (5 bytes), and the address of the destination FLU in which the same data is set in this reduced area is set as link data (step A14). Then, the process returns to step A1 and the above-described setting process is repeated record by record. FIG. 7 shows the data format set in the FLU memory 15-1 in this way. here. Fi4
Medium rPG! l is link data. Note that when the unit price area is reduced, there will be a 2-byte empty area, and when the setting data area is reduced, there will be a 4-byte empty area, but in this case, each record data will have a gap between them. It is remembered completely. Figure 8 is a flowchart showing the operation when registering sales data. First, in the registration mode in which the mode switch MS is set to the switching position "REGJ", when a FLU-specific registration operation is performed according to the normal key operation procedure, the FLU memory 15-1 is stored in the FLU memory 15-1 with the FLU code input accordingly. In this case, it is checked whether it is the FLU code of memory Nbl (step B2), and if it is the FLU code of memory NOl, data for the first l records is read out according to this data length. but(
Step B3), if it is a FLU code of memory Ft)2 or later, proceed to step B4, and add the data length up to the (n-1)th record in order to read the nth record indicated by memory "n". Read the data from the address value obtained by doing this to the address value indicated by the nth data length. Then, the process proceeds to step B5, and it is checked whether link data is included in the read data for l records. Here, if link data is included instead of unit price data or if link data is included instead of other setting data, this is detected in step B5 and the process proceeds to step B6. The FLU memory 15-1 is searched using the address indicated by the link data, and the unit price or other setting data in the record is read. Once the data for one record to be registered has been collected in this way, the process proceeds to the next step B7, where normal registration processing and arithmetic processing are executed. Although the above embodiment avoids overlapping settings of the same data between FLU data, it is also possible to avoid overlapping settings of the same data between the FLU memory 15-1 and the department memory 15-2. In this case, FIG.
This shows the data format for one record in 5-2. That is, one record of data in the department memory 15-2 is composed of a department code, quantity, price, and other setting data. If the other setting data corresponding to a certain FLU code in the FLU memory 15-1 is the same as the other setting data in the department memory 15-2, the other setting data area corresponding to the FLU code is Set the department address as link data. and. At the time of FLU registration, the department memory 15-2 may be searched according to the link data, and other setting data corresponding to the department code may be read out. Furthermore, during PLUfi recording, it may be determined whether link data is included in an l record based on the data length. In this case, the data length of a record that does not include link data is 31 bytes, 30 bytes if link data that replaces the unit price, and 30 bytes if link data that replaces other setting data is included. is 29 bytes, and 2 if link data that replaces the unit price and other setting data is included.
If it is 8 bytes, it is possible to determine the presence or absence of link data based on the data length. Also, the link data is F
It may be an LU code or a department code. [Effects of the Invention] According to the present invention, when data is the same as data that has already been set corresponding to another classification, in order to avoid duplicate settings of the same data and compress and set the data, Memory capacity can be significantly reduced, making it possible to use memory efficiently.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明の機能ブロック図、第21!4〜第8
図は実施例を示し、第2図はECRの基本的な構成を示
したブロック図、第3図はFLUメモリl5−1内のl
レコード分のデータフォーマットを示した一部構成図、
第4図は第3図に示す単価エリアを縮少した場合のデー
タフォーマットを概念的に示した図,第5図は第3図に
示すその他の設定データエリアを縮少した場合のデータ
フォーマットを概念的に示した図、第6図はFLUメモ
リ15−1に対する設定処理を示したフローチャート、
第7図はこの設定処理によってFLUメモリl5−1内
に設定された実際のデータフォーマットを示す図、第8
図はFLU登録処理を示したフローチャート、第9図は
変形例を説明する為の部門メモリl5−2の一部構成図
、第lO図は従来例を説明する為のFLUメモリの一部
構戊図である. 1 l・・・・・・CPU,  12・・・・・・RO
M.  13・・・・・・キー人力部、15・・・・・
・RAM% l5−1・・・・・・FLUメモリ、MS
・・・・・・モードスイッチ.特 許 出 願 人 カシオ計算機株式会社 第 1 図
Fig. 1 is a functional block diagram of this invention, Nos. 21!4 to 8.
The figure shows an embodiment, FIG. 2 is a block diagram showing the basic configuration of the ECR, and FIG. 3 is a block diagram showing the basic configuration of the ECR.
A partial configuration diagram showing the data format of a record,
Figure 4 conceptually shows the data format when the unit price area shown in Figure 3 is reduced, and Figure 5 shows the data format when the other setting data areas shown in Figure 3 are reduced. A conceptual diagram, FIG. 6 is a flowchart showing the setting process for the FLU memory 15-1,
FIG. 7 is a diagram showing the actual data format set in the FLU memory l5-1 by this setting process.
The figure is a flowchart showing the FLU registration process, FIG. 9 is a partial configuration diagram of the department memory 15-2 for explaining a modified example, and FIG. 10 is a partial configuration diagram of the FLU memory for explaining a conventional example. This is a diagram. 1 l...CPU, 12...RO
M. 13...Key Human Resources Department, 15...
・RAM% l5-1...FLU memory, MS
...Mode switch. Patent applicant Casio Computer Co., Ltd. Figure 1

Claims (1)

【特許請求の範囲】  分類毎に入力された売上データを分類別メモリに登録
する売上データ処理装置において、 前記分類別メモリにデータを設定する際に、入力された
データと同一のデータが分類別メモリ内に他の分類のプ
リセットデータとして既に設定されているか否かを判別
する判別手段と、 この判別手段で同一のデータが設定されていないことが
判別された際に、入力されたデータに対応して予め決め
られている所定長の標準エリアを前記分類別メモリに確
保したのち入力されたデータを当該標準エリアに設定す
る第1の設定手段と、 前記判別手段で同一データが設定されていることが判別
された際に、前記標準エリアを所定長縮少した縮少エリ
アを前記分類別メモリに確保したのち、同一データの分
類と関連づけるリンクデータを当該縮少エリアに設定す
る第2の設定手段と、 を具備したことを特徴とする売上データ処理装置。
[Claims] In a sales data processing device that registers sales data input for each category in a memory for each category, when setting data in the memory for each category, the same data as the input data is registered in a memory for each category. A determining means for determining whether or not the preset data of another category has already been set in the memory, and a method corresponding to the input data when the determining means determines that the same data is not set. a first setting means that secures a standard area of a predetermined length predetermined in the classification memory and then sets the input data in the standard area; and the same data is set in the discrimination means. When it is determined that the standard area has been reduced by a predetermined length, a reduced area is secured in the classification memory, and then link data that is associated with the classification of the same data is set in the reduced area. A sales data processing device characterized by comprising means and.
JP19064989A 1989-07-25 1989-07-25 Sales data processor Pending JPH0355690A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19064989A JPH0355690A (en) 1989-07-25 1989-07-25 Sales data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19064989A JPH0355690A (en) 1989-07-25 1989-07-25 Sales data processor

Publications (1)

Publication Number Publication Date
JPH0355690A true JPH0355690A (en) 1991-03-11

Family

ID=16261598

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19064989A Pending JPH0355690A (en) 1989-07-25 1989-07-25 Sales data processor

Country Status (1)

Country Link
JP (1) JPH0355690A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236302A (en) * 1993-02-09 1994-08-23 Daimaru Joho Center:Kk File compressing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06236302A (en) * 1993-02-09 1994-08-23 Daimaru Joho Center:Kk File compressing method

Similar Documents

Publication Publication Date Title
JPH0361238B2 (en)
US4493037A (en) Retail terminal
US4502119A (en) Electronic register
US4879649A (en) Transaction processing apparatus having PLU function
JPH0355690A (en) Sales data processor
JPH0668794B2 (en) Electronic cash register
JPH0340096A (en) Sales managing device for pos system
JPH05128376A (en) Sales data processing device
JP3180454B2 (en) Record deletion device
JPH0716231Y2 (en) Sales data processor
JP2561355B2 (en) Electronic cash register
JPH11328540A (en) Sales data processor and its program recording medium
JPS61283996A (en) Electronic type cash register
JPH079661B2 (en) Transaction processor
JPH10269461A (en) Pos terminal
GB2254468A (en) Electronic register
JPH0594591A (en) Discount processing system for pos system
JPH0749593Y2 (en) Sales data processor
JPH05101274A (en) Sales data processor
JPH0413757B2 (en)
JP2564019B2 (en) Sales data aggregator
JPH034958B2 (en)
JP2929136B2 (en) Sales data processing device
JP2880616B2 (en) Electronic cash register
JPS5836388B2 (en) electronic cash register