JPH07141575A - Inquiring/and answering method for information on commodity - Google Patents

Inquiring/and answering method for information on commodity

Info

Publication number
JPH07141575A
JPH07141575A JP31105293A JP31105293A JPH07141575A JP H07141575 A JPH07141575 A JP H07141575A JP 31105293 A JP31105293 A JP 31105293A JP 31105293 A JP31105293 A JP 31105293A JP H07141575 A JPH07141575 A JP H07141575A
Authority
JP
Japan
Prior art keywords
slave
master
plu
file
inquiry
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
JP31105293A
Other languages
Japanese (ja)
Inventor
Kazuhiro Oishi
和弘 大石
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 JP31105293A priority Critical patent/JPH07141575A/en
Publication of JPH07141575A publication Critical patent/JPH07141575A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To normally answer an inquiry about commodity information even if a master device for backup is not regularly provided and even if a master device is unable to operate. CONSTITUTION:Each slave ECR 3 has a PLU slave file 4 which stores and holds commodity information in a PLU master file 2 sent dispersedly to the slave ECR 3 from a master ECR 1 at specific timing. Further, once each slave ECR 3 detects the master ECR 1 being unable to operate, the inquiry about commodity information is simultaneously reported to the respective ECRs 3 in a similar manner. The slave ECR 3 having received the inquiry retrieves its PLU slave file 4 on the basis of the inquiry and answers corresponding commodity information to the inquiry source.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、マスター/スレーブ
方式のPOS(ポイント・オブ・セールス)システム等
において、商品登録時にマスター装置とスレーブ装置と
の間で商品情報の問い合せ応答を行う商品情報問い合せ
応答方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a product information inquiry in a master / slave POS (Point of Sales) system or the like, in which product information is inquired and responded between a master device and a slave device at the time of product registration. Regarding the response method.

【0002】[0002]

【従来の技術】一般に、マスター/スレーブ方式のPO
Sシステムにおいては、マスター装置側のみにPLU
(プライス・ルックアップ)ファイルが備えられてお
り、商品登録時にスレーブ装置は、マスター装置に対し
て単価の問い合せを行うと、マスター装置はその問い合
せに基づいてPLUファイルを検索し、該当商品の単価
を問い合せ元のスレーブ装置に送信するようにしてい
る。このようなPOSシステムにおいては、マスター装
置側で一時的にも回線不良やマスター装置がマシンロッ
ク等によってダウン(動作不能状態)すると、スレーブ
装置とマスター装置との間で単価の問い合せ応答が不可
能となるため、従来のPOSシステムにおいては通常の
マスター装置の他、バックアップ用のマスター装置が常
設されている。
2. Description of the Related Art Generally, a master / slave PO
In the S system, PLU is provided only on the master device side.
A (price lookup) file is provided, and when the slave device makes an inquiry about the unit price to the master device at the time of product registration, the master device searches the PLU file based on the inquiry, and the unit price of the corresponding product is obtained. Is transmitted to the slave device of the inquiry source. In such a POS system, even if the master device temporarily loses the line or the master device goes down (inoperable state) due to a machine lock or the like, the unit price inquiry response between the slave device and the master device becomes impossible. Therefore, in the conventional POS system, in addition to the normal master device, a backup master device is permanently installed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うに2台のマスター装置とPLUファイルをそれぞれ常
備しておくことは大幅なコスト高を招くと共に、2台の
マスター装置にそれぞれ備えられているPLUファイル
の内容を整合(ミラー化)させる必要があるため、それ
だけ処理スピードの低下を招くという欠点があった。こ
の発明の課題は、バックアップ用のマスター装置が常備
されていなくても、かつ、マスター装置側が動作不能状
態にあっても商品情報の問い合せ応答を正常に遂行でき
るようにすることである。
However, keeping the two master devices and the PLU file in this way incurs a significant cost increase, and the PLUs respectively provided in the two master devices. Since it is necessary to match (mirror) the contents of the file, there is a drawback that the processing speed is reduced accordingly. An object of the present invention is to make it possible to normally perform an inquiry response of product information even if a backup master device is not always provided and the master device side is inoperable.

【0004】[0004]

【課題を解決するための手段およびその作用】この発明
の手段およびその作用は次の通りである。商品コード、
単価、売上個数等の商品情報を記憶する商品ファイル
(例えば、PLUファイル)を備えたマスター装置(例
えば、電子式キャッシュレジスタ)と、このマスター装
置に構内専用回線等でネットワーク接続され、商品登録
時にマスター装置に対して商品情報(例えば単価)の問
い合せを行う複数台のスレーブ装置(例えば、電子式キ
ャッシュレジスタ)と、を備えた売上データ処理システ
ムにおいて、各スレーブ装置には所定のタイミングでマ
スター装置から商品ファイルの内容が各スレーブ装置に
対して分散して伝送されて来た商品情報を記憶保持する
分散ファイルを有し、各スレーブ装置はマスター装置に
対して商品情報の問い合せを行った際に、マスター装置
が動作不能状態にあるか否かを検出し、マスター装置が
動作不能状態にあることを検出すると、そのスレーブ装
置は各スレーブ装置に対して商品情報の問い合せを一斉
同報し、商品情報の問い合せを受けたスレーブ装置は、
その問い合せに基づいて自己の分散ファイルを検索して
スレーブ装置からの問い合せに応答する。したがって、
バックアップ用のマスター装置が常備されていなくて
も、かつ、マスター装置側が動作不能状態にあっても商
品情報の問い合せ応答を正常に遂行することができる。
なお、スレーブ装置がマスター装置に対して商品情報の
問い合せを行う際に、自己の分散ファイル内に該当する
商品情報が無いことを条件にマスター装置に商品情報の
問い合せを行うようにしてもよい。また、マスター装置
が各スレーブ装置の分散ファイルに商品ファイルの内容
を分散記憶させる際のタイミングは任意である。例え
ば、スレーブ装置がマスター装置に商品情報の問い合せ
を行い、それに応答してマスター装置から送信されて来
た商品情報をスレーブ装置が受信する毎にその商品情報
を自己の分散ファイルに書き込むようにしてもよい。ま
た、マスター装置が一日の営業の終了時(例えば、精算
時)に商品ファイルの内容を各スレーブ装置に割り当て
て分散記憶させるようにしてもよい。
Means for Solving the Problem and Its Action The means of the present invention and its action are as follows. Product code,
A master device (for example, an electronic cash register) equipped with a product file (for example, a PLU file) that stores product information such as a unit price and the number of sold products, and a network connection to this master device through a private line, etc. In a sales data processing system including a plurality of slave devices (for example, electronic cash registers) that inquire product information (for example, unit price) to the master device, each slave device has a master device at a predetermined timing. Has a distributed file that stores and holds the product information that the contents of the product file are distributed and transmitted to each slave device, and when each slave device makes an inquiry about the product information to the master device, Detects whether the master device is inoperable and the master device is inoperable Upon detecting the door, the slave device will broadcast an inquiry of the product information to the slave devices, the slave device that received the inquiry of the product information,
Based on the inquiry, it searches its own distributed file and responds to the inquiry from the slave device. Therefore,
Even if the master device for backup is not always provided and the master device side is inoperable, the inquiry response of the product information can be normally performed.
When the slave device inquires of the master device about product information, the master device may inquire about product information on the condition that there is no corresponding product information in its distributed file. Further, the timing when the master device dispersively stores the contents of the product file in the distributed file of each slave device is arbitrary. For example, the slave device inquires of the master device about the product information, and each time the slave device receives the product information transmitted from the master device in response to the inquiry, the product information is written to its own distributed file. Good. Alternatively, the master device may allocate the contents of the product file to each slave device at the end of the day's business (for example, at the time of payment) and store the contents in a distributed manner.

【0005】[0005]

【第1実施例】以下、図1〜図4を参照して第1実施例
を説明する。図1はマスター/スレーブ方式のPOSシ
ステムを示したシステム構成図である。マスターECR
1はマスター装置として機能する電子式キャッシュレジ
スタで、予め格納されている各種プログラムにしたがっ
て商品別売上データを登録する登録処理等を実行する。
このマスターECR1にはPLUマスターファイル2が
備えられており、PLUマスターファイル2は商品別に
PLUコード、単価、売上データ等を記憶する通常の商
品ファイルである。また、マスターECR1には複数台
のスレーブECR3がネットワーク接続されている。
[First Embodiment] A first embodiment will be described below with reference to FIGS. FIG. 1 is a system configuration diagram showing a master / slave POS system. Master ECR
Reference numeral 1 denotes an electronic cash register that functions as a master device, which executes registration processing for registering sales data by product according to various programs stored in advance.
The master ECR 1 is provided with a PLU master file 2, and the PLU master file 2 is a normal product file that stores PLU codes, unit prices, sales data, etc. for each product. Further, a plurality of slave ECR3 are network-connected to the master ECR1.

【0006】スレーブECR3はスレーブ装置として機
能する電子式キャッシュレジスタで、予め格納されてい
る各種プログラムにしたがって商品別売上データを登録
する登録処理等を行う。この各スレーブECR3にはP
LUスレーブファイル4が備えられている。このPLU
スレーブファイル4はPLUマスターファイル2の内容
が各スレーブECR3側に分散記憶されるもので、PL
Uコード、単価、登録回数、売上データ等を記憶する。
なお、登録回数はPLUスレーブファイル4特有のデー
タであり、商品登録された回数を記憶するもので、商品
登録が行われる毎に登録回数の更新が行われる。また、
このPLUスレーブファイル4はPLUマスターファイ
ル2に比較してかなり小容量のファイルであり、PLU
スレーブファイル4を有効利用するために、登録回数に
基づいてPLUスレーブファイル4の内容の書き替えが
行われる。つまり、登録回数が低い商品情報をPLUス
レーブファイル4から削除するために登録回数が用いら
れる。
The slave ECR 3 is an electronic cash register which functions as a slave device, and performs registration processing for registering sales data by product in accordance with various programs stored in advance. P for each slave ECR3
The LU slave file 4 is provided. This PLU
The slave file 4 is one in which the contents of the PLU master file 2 are distributed and stored in each slave ECR 3 side.
The U code, unit price, number of registrations, sales data, etc. are stored.
The number of registrations is data peculiar to the PLU slave file 4, and stores the number of product registrations. The registration count is updated every time product registration is performed. Also,
This PLU slave file 4 has a much smaller capacity than the PLU master file 2,
In order to effectively use the slave file 4, the contents of the PLU slave file 4 are rewritten based on the number of registrations. That is, the number of registrations is used to delete the product information having a low number of registrations from the PLU slave file 4.

【0007】ここで、スレーブECR3は商品登録時に
構内専用回線5を介してマスターECR1に単価の問い
合せを行うが、その際、PLUコード、マシンNo等から
成る伝送フォーマットのデータをマスターECR1に送
信することによって単価の問い合せ要求を行う。これに
よってマスターECR1はPLUマスターファイル2を
検索して該当商品の単価を問い合せ元のスレーブECR
3に送信する。すると、スレーブECR3は登録処理を
行うと共に単価問い合せに応答してマスターECR1か
ら送信されて来た商品情報を自己のPLUスレーブファ
イル4に書き込む。
Here, the slave ECR 3 makes an inquiry about the unit price to the master ECR 1 through the private line 5 at the time of product registration, and at this time, transmits the data of the transmission format including the PLU code, the machine number, etc. to the master ECR 1. By doing so, the unit price inquiry request is made. As a result, the master ECR1 searches the PLU master file 2 and inquires the unit price of the corresponding product, which is the slave ECR of the source.
Send to 3. Then, the slave ECR 3 performs the registration process and writes the product information transmitted from the master ECR 1 in its PLU slave file 4 in response to the unit price inquiry.

【0008】また、スレーブECR3は単価問い合せ時
にマスターECR1側が動作不能状態にあるか否かの検
出を行う。この場合、一時的にも回線不良やマスターE
CR1がマシンロック等によってダウンしているか否か
の検出を行い、その結果、マスターダウンと認識する
と、それを認識したスレーブECR3は各スレーブ装置
3に単価問い合せを一斉同報する。この問い合せを受け
たスレーブECR3は自己のPLUスレーブファイル4
を検索して該当商品の単価が有れば、それを問い合せ元
のスレーブECR3に送信する。
Further, the slave ECR 3 detects whether or not the master ECR 1 side is inoperable at the time of inquiry about the unit price. In this case, even if there is a temporary line failure or master E
It is detected whether or not CR1 is down due to a machine lock or the like, and if it is recognized as master down as a result, the slave ECR3 that recognizes it is broadcast to each slave device 3 a unit price inquiry. The slave ECR3 that received this inquiry is its own PLU slave file 4
If there is a unit price of the corresponding product by searching for, the information is transmitted to the inquiry source slave ECR3.

【0009】次に、本実施例の動作を図2〜図4に示す
フローチャートを参照して説明する。図2は電源投入に
伴って実行開始されるスレーブECR3の全体動作を示
したフローチャートである。先ず、スイッチS1ではキ
ー操作やスキャナ操作による入力有無をチェックする。
いま、商品登録時にPLUデータが入力されると、ステ
ップS2でそのことが検出されてステップS3に進み、
後述する登録処理が行われるが、その他の入力であれ
ば、それに応じた処理が実行される(ステップS4)。
Next, the operation of this embodiment will be described with reference to the flow charts shown in FIGS. FIG. 2 is a flowchart showing the overall operation of the slave ECR 3 which is started when the power is turned on. First, with the switch S1, it is checked whether there is an input by a key operation or a scanner operation.
Now, when PLU data is input at the time of product registration, it is detected in step S2 and the process proceeds to step S3.
Although the registration process described later is performed, if there is another input, the corresponding process is executed (step S4).

【0010】ここで、図3を参照して登録処理を説明し
ておく。図3は商品別登録処理を示したフローチャート
で、先ず、この登録処理が開始されると、マスターダウ
ンに対する復旧処理を行う(ステップS21)。この復
旧処理は後で説明するが、スレーブECR3は商品登録
を行う毎にマスターが正常状態に復旧したかを監視して
おり、マスターが復旧すると、それに応じて復旧処理を
行う。
Now, the registration process will be described with reference to FIG. FIG. 3 is a flowchart showing the registration process for each product. First, when the registration process is started, the recovery process for the master down is performed (step S21). Although this recovery process will be described later, the slave ECR 3 monitors whether or not the master is restored to the normal state every time product registration is performed, and when the master is restored, the restoration process is performed accordingly.

【0011】次に、入力されたPLUデータに基づいて
自己のPLUスレーブファイル4を検索して該当するP
LUデータが有るかをチェックし(ステップS22)、
有ればそれに基づいてPLU登録を行い、自己のPLU
スレーブファイル4内の売上データを更新する(ステッ
プS26)。そして、一取引の登録を終了させる締めキ
ーが押下されたかをチェックし(ステップS27)、締
めキーが押下されなければ、最初のステップS21に戻
る。このように自己のPLUスレーブファイル4に該当
するPLUデータが記憶されていれば、マスターECR
1に対して単価の問い合せを行わず、自己のPLUスレ
ーブファイル4に登録を行う。つまり、本実施例におい
てはマスターECR1に対する単価の問い合せは自己の
PLUスレーブファイル4に該当するPLUデータが無
いことを条件に行うようにしている。
Next, the PLU slave file 4 of its own is searched based on the input PLU data and the corresponding PLU data is searched.
Check whether there is LU data (step S22),
If there is, PLU registration is performed based on it, and the self PLU is registered.
The sales data in the slave file 4 is updated (step S26). Then, it is checked whether or not the closing key for ending the registration of one transaction is pressed (step S27). If the closing key is not pressed, the process returns to the first step S21. In this way, if the corresponding PLU data is stored in its own PLU slave file 4, the master ECR
The unit price is not inquired for 1, but is registered in its own PLU slave file 4. In other words, in the present embodiment, the inquiry about the unit price for the master ECR 1 is made on the condition that there is no corresponding PLU data in its own PLU slave file 4.

【0012】一方、自己のPLUスレーブファイル4に
該当データが無ければ、ステップS23に進み、マスタ
ーダウンフラグがオフされているかをチェックする。こ
こで、マスターダウンフラグはマスターECR1が一時
的にも回線不良やマシンロック等によってダウンしてい
るときにオンされるもので、マスターECR1側が正常
状態にあれば、マスターダウンフラグがオフされている
ので、ステップS29に進み、マスターECR1に対し
て単価の問い合せを行い、マスターECR1から一定時
間内に単価の問い合せ要求に対する応答があるかをチェ
ックする(ステップS30)。ここで、マスターECR
1側が正常状態にあればデータ応答が有るので、ステッ
プS31に進み、自己のPLUスレーブファイル4がフ
ル状態かをチェックする。いま、PLUスレーブファイ
ル4がフル状態にあれば、PLUスレーブファイル4内
の登録回数を参照して登録使用頻度が最も低いPLUデ
ータをPLUスレーブファイル4から削除しておく(ス
テップS32)。そして、マスターECR1から送信さ
れて来たPLUデータをPLUスレーブファイル4の空
エリアに書き込む(ステップS33)。この場合、同一
PLUデータを重複してPLUスレーブファイル4に書
き込むことを防止するために、PLUデータをPLUス
レーブファイル4に書き込む際には、PLUスレーブフ
ァイル4内に同一PLUデータが既に書き込まれている
かを調べ、同一PLUデータが無いことを条件に新たな
PLUデータの書き込みが行われる。そして、マスター
ECR1から送信されて来たPLUデータにしたがって
PLU登録を行い、自己のPLUスレーブファイル4内
の売上データを更新する(ステップS26)。このよう
にマスターECR1に対して単価問い合せを行う毎に自
己のPLUスレーブファイル4には新たなPLUデータ
が追加されてゆく。
On the other hand, if there is no corresponding data in the self PLU slave file 4, the process proceeds to step S23, and it is checked whether the master down flag is off. Here, the master down flag is turned on when the master ECR1 is temporarily down due to a line failure, machine lock, or the like. If the master ECR1 side is in a normal state, the master down flag is turned off. Therefore, the process proceeds to step S29, the unit price is inquired to the master ECR1, and it is checked whether or not there is a response from the master ECR1 to the unit price inquiry request within a fixed time (step S30). Where the master ECR
If the side 1 is in the normal state, there is a data response, so the flow advances to step S31 to check whether the PLU slave file 4 of its own is in the full state. If the PLU slave file 4 is now in the full state, the PLU data with the lowest registration use frequency is deleted from the PLU slave file 4 by referring to the number of registrations in the PLU slave file 4 (step S32). Then, the PLU data transmitted from the master ECR1 is written in the empty area of the PLU slave file 4 (step S33). In this case, in order to prevent the same PLU data from being redundantly written in the PLU slave file 4, when the PLU data is written in the PLU slave file 4, the same PLU data has already been written in the PLU slave file 4. It is checked whether or not there is no same PLU data and new PLU data is written. Then, PLU registration is performed according to the PLU data transmitted from the master ECR1, and the sales data in its own PLU slave file 4 is updated (step S26). In this way, every time the unit price inquiry is made to the master ECR 1, new PLU data is added to the self PLU slave file 4.

【0013】一方、マスターECR1側のダウンを認識
すると、ステップS34に進み、他の全てのスレーブ装
置3にマスターダウンフラグのオン要求を一斉同報する
と共に、自己のマスターダウンフラグをオンさせる(ス
テップS35)。その後、自己のPLUスレーブファイ
ル4を他のスレーブECR3に開放すると共に(ステッ
プS36)、他の全てのスレーブECR3に単価の問い
合せを一斉同報する(ステップS24)。その結果、何
れかのスレーブECR3から単価の問い合せに対する応
答が有るかをチェックし(ステップS25)、有れば、
該当スレーブECR3から送信されて来たPLUデータ
にしたがってPLU登録を行う(ステップS26)。な
お、他のスレーブECR3から応答が無ければ、キーボ
ードからその商品の単価を入力する(ステップS2
8)。この場合、入力された金額データにしたがってP
LU登録が行われる(ステップS26)。
On the other hand, when the down of the master ECR1 side is recognized, the process proceeds to step S34, the master down flag ON request is simultaneously broadcast to all the other slave devices 3, and the master down flag of itself is turned on (step S34). S35). After that, the PLU slave file 4 of its own is opened to the other slave ECR3 (step S36), and the unit price inquiry is simultaneously broadcast to all other slave ECR3 (step S24). As a result, it is checked whether or not there is a response to the inquiry about the unit price from any of the slave ECRs 3 (step S25).
PLU registration is performed according to the PLU data transmitted from the corresponding slave ECR3 (step S26). If there is no response from another slave ECR3, enter the unit price of the product from the keyboard (step S2).
8). In this case, P according to the entered amount data
LU registration is performed (step S26).

【0014】次に、図2のフローチャートにおける他の
動作を説明する。スレーブECR3は入力無し状態にお
いて、他のスレーブECR3からマスターダウンフラグ
のオン要求が有るかを監視しており(ステップS5)、
オン要求が有れば、自己のマスターダウンフラグをオン
すると共に(ステップS6)、自己のPLUスレーブフ
ァイル4を他のスレーブECR3に開放する(ステップ
S7)。
Next, another operation in the flowchart of FIG. 2 will be described. When there is no input, the slave ECR3 monitors whether there is a master down flag ON request from another slave ECR3 (step S5).
If there is an ON request, the master down flag of its own is turned on (step S6), and its own PLU slave file 4 is opened to another slave ECR3 (step S7).

【0015】一方、ステップS5で他のスレーブECR
3からマスターダウンフラグのオン要求が無いことが検
出された場合には、ステップS8に進む。ここで、自己
のマスターダウンフラグがオンされている場合に限り、
他のスレーブECR3からの単価の問い合せを受け付け
るためにステップS8では自己のマスターダウンフラグ
がオンされているか否かをチェックし、オフされていれ
ばステップS1に戻る。いま、マスターダウンフラグが
オンされている場合において、他のスレーブECR3か
ら単価の問い合せがあると、ステップS9でそのことが
検出されてステップS10に進み、自己のPLUスレー
ブファイル4を検索し、該当するPLUデータが有るか
をチェックする(ステップS11)。ここで、該当デー
タ無しが検出されると、無応答のままステップS1に戻
るが、有れば、ステップS12に進み、問い合せ元のス
レーブECR3にPLUデータを送信する。
On the other hand, in step S5, another slave ECR is
If it is detected from 3 that the master down flag is not requested to be turned on, the process proceeds to step S8. Here, only when the master down flag of self is turned on,
In order to accept a unit price inquiry from another slave ECR 3, it is checked in step S8 whether or not its own master down flag is turned on, and if it is turned off, the process returns to step S1. Now, when the master down flag is turned on and a unit price inquiry is made from another slave ECR3, the fact is detected in step S9, and the process proceeds to step S10 to search the own PLU slave file 4 and It is checked whether there is PLU data to be processed (step S11). Here, if no corresponding data is detected, the process returns to step S1 with no response, but if there is, it proceeds to step S12 and transmits the PLU data to the inquiry source slave ECR3.

【0016】このように、マスターダウン時にはスレー
ブECR3と他のスレーブECR3との間で単価の問い
合せ応答が行われるので、各スレーブECR3での登録
処理が中断されることはなく、POSシステム全体をそ
のまま稼動することが可能となる。この状態において、
マスターECR1が正常状態に復旧すると、各スレーブ
ECR3では図3のステップS21で示した復旧処理が
行われる。
As described above, since the unit price inquiry response is performed between the slave ECR3 and the other slave ECR3 when the master is down, the registration process in each slave ECR3 is not interrupted, and the entire POS system remains unchanged. It becomes possible to operate. In this state,
When the master ECR1 is restored to the normal state, the restoration process shown in step S21 of FIG. 3 is performed in each slave ECR3.

【0017】図4はこの場合の復旧処理を示したフロー
チャートであり、マスターECR1側でマシンロック等
が修復されて正常状態に戻ると、マスターECR1は各
スレーブECR3に対してマスターダウンフラグのオフ
要求を送信する。ここで、各スレーブECR3は復旧処
理において、先ず、マスターECR1からマスターダウ
ンフラグのオフ要求が有るかをチェックし、オフ要求が
無ければそのままこの復旧処理を終了させるが、オフ要
求を受け取ると(ステップS41)、自己のマスターダ
ウンフラグをオフさせる(ステップS42)。次に、自
己のPLUスレーブファイル4を他のスレーブECR3
への開放を禁止する(ステップS43)。このように、
マスターが正常状態に復旧すると、以降は通常と同様に
各スレーブECR3とマスターECR1との間で単価の
問い合せ応答が行われる。また、復旧時に各スレーブE
CR3の登録データをマスターECR1で収集するよう
にすれば、データの整合性が以後も保てる。
FIG. 4 is a flowchart showing the recovery process in this case. When the master ECR1 side restores the machine lock or the like and returns to the normal state, the master ECR1 requests each slave ECR3 to turn off the master down flag. To send. Here, in the recovery process, each slave ECR 3 first checks whether or not there is a master down flag OFF request from the master ECR 1, and if there is no OFF request, this recovery process is ended as it is, but when an OFF request is received (step (S41), the master down flag of itself is turned off (step S42). Next, copy its PLU slave file 4 to another slave ECR3.
Is prohibited (step S43). in this way,
When the master is restored to the normal state, thereafter, a unit price inquiry response is made between each slave ECR3 and the master ECR1 as usual. Also, at the time of restoration, each slave E
If the registration data of CR3 is collected by the master ECR1, data consistency can be maintained thereafter.

【0018】以上のように本実施例においてはマスター
ECR1が正常状態にあれば、マスターECR1とスレ
ーブECR3との間で単価問い合せ応答が行われると共
に、マスターECR1から送信されて来たPLUデータ
を自己のPLUスレーブファイル4に追加記憶してゆ
く。その際、PLUスレーブファイル4がフル状態にあ
れば、登録頻度が最も低いPLUデータを削除して新た
にPLUデータがリアルタイムで追加されてゆくため、
小容量のPLUスレーブファイル4であっても効率良く
PLUデータを記憶保持しておくことが可能となる。ま
た、スレーブECR3がマスターECR1に単価の問い
合せを行う場合、自己のPLUスレーブファイル4にP
LUデータが有れば、マスターECR1への問い合せを
行わずに自己のPLUスレーブファイル4を検索するよ
うにしたからシステム全体での処理効率を高めることが
可能となる。更に、マスターダウン時には、他のスレー
ブECR3との間で単価の問い合せ応答が行われるの
で、バックアップマスタを常備しておかなくてもスレー
ブECR3側での登録処理が中断されるようなことはな
い。
As described above, in the present embodiment, if the master ECR1 is in a normal state, a unit price inquiry response is made between the master ECR1 and the slave ECR3, and the PLU data transmitted from the master ECR1 is sent by itself. It is additionally stored in the PLU slave file 4 of. At this time, if the PLU slave file 4 is full, the PLU data with the lowest registration frequency is deleted and new PLU data is added in real time.
It is possible to efficiently store and hold PLU data even with a small capacity PLU slave file 4. When the slave ECR3 inquires of the master ECR1 about the unit price, the PLU slave file 4 of its own P
If there is LU data, the PLU slave file 4 of its own is searched without making an inquiry to the master ECR 1, so that the processing efficiency of the entire system can be improved. Further, at the time of master down, a unit price inquiry response is made with another slave ECR3, so that the registration process on the slave ECR3 side will not be interrupted even if the backup master is not always prepared.

【0019】[0019]

【第2実施例】図5は第2実施例を示したPOSシステ
ムを示したもので、上記第1実施例は商品登録時にマス
ターECR1から受け取ったPLUデータを自己のPL
Uスレーブファイル4に書き込むようにしたが、本実施
例は商品登録時にPLUスレーブファイル4への書き込
みを行わず、例えば精算時、あるいは点検時にマスター
ECR1が各スレーブECR3に対して予め割り当てて
おいたPLUデータをPLUスレーブファイル4に書き
込むようにしたものである。即ち、精算時/点検等にお
いて、マスターECR1はポーリング方式にしたがって
各スレーブECR3、つまり、スレーブ装置S1、S2
……SXを順次指定し、PLUマスターファイル2内の
各PLUデータのうち、予め各スレーブECR3に対し
て割り当てておいたPLUデータ、例えばスレーブ装置
S1にはPLUコード「1」〜「100」に対応するP
LUデータ、スレーブ装置S2にはPLUコード「10
1」〜「200」に対応するPLUデータ、……スレー
ブ装置SXにはPLUコード「901」〜「1000」
に対応するPLUデータを順次ブロック毎に取り出して
転送バッファ1−1に格納し、対応するスレーブ装置に
送信してPLUスレーブファイル4への書き込みを行わ
せるようにしたものである。このようにして各スレーブ
ECR3のPLUスレーブファイル4へマスターECR
1からPLUデータを割り当てて設定しておけば、各ス
レーブECR3間で同一PLUデータが重複して設定さ
れることはなく、更にPLUスレーブファイル4の小容
量化が可能となる。
[Second Embodiment] FIG. 5 shows a POS system showing a second embodiment. In the first embodiment, the PLU data received from the master ECR1 at the time of product registration is used for own PL.
Although the data is written to the U slave file 4, in the present embodiment, the writing to the PLU slave file 4 is not performed at the time of product registration, and the master ECR1 is pre-allocated to each slave ECR3 at the time of settlement or inspection, for example. The PLU data is written in the PLU slave file 4. That is, at the time of settlement / inspection, the master ECR1 follows the polling method to each slave ECR3, that is, the slave devices S1 and S2.
...... Sequentially specify SX, and among the PLU data in the PLU master file 2, PLU data previously assigned to each slave ECR3, for example, PLU codes "1" to "100" for the slave device S1. Corresponding P
LU data, PLU code “10” for slave device S2
PLU data corresponding to 1 "to" 200 ", ... PLU codes" 901 "to" 1000 "for the slave device SX
The PLU data corresponding to the above is sequentially fetched for each block, stored in the transfer buffer 1-1, and transmitted to the corresponding slave device to be written in the PLU slave file 4. In this way, the master ECR is added to the PLU slave file 4 of each slave ECR3.
If PLU data is assigned and set from 1, the same PLU data will not be set redundantly among the slave ECRs 3, and the capacity of the PLU slave file 4 can be further reduced.

【0020】なお、上記各実施例において、マスターE
CR1が点検あるいは精算を行なう際に、マスターEC
R1は各スレーブECR3のPLUスレーブファイル4
からPLUデータ(PLUコード、単価、売上データ)
を収集し、PLUマスターファイル2に書き込むように
してもよい。
In each of the above embodiments, the master E
When the CR1 carries out inspection or settlement, the master EC
R1 is the PLU slave file 4 of each slave ECR3
To PLU data (PLU code, unit price, sales data)
May be collected and written in the PLU master file 2.

【0021】[0021]

【発明の効果】この発明によれば、商品情報を記憶する
商品ファイルを備えたマスター装置と、このマスター装
置に対して商品情報の問い合せを行う複数台のスレーブ
装置とを備えた売上データ処理システムにおいて、バッ
クアップ用のマスター装置が常備されていなくても、か
つ、マスター装置側が動作不能状態にあっても商品情報
の問い合せ応答を正常に遂行することができる。
According to the present invention, a sales data processing system including a master device having a product file for storing product information and a plurality of slave devices for inquiring the master device for product information. In the above, even if the master device for backup is not always provided and the master device side is inoperable, the inquiry response of the product information can be normally executed.

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

【図1】実施例に係るPOSシステムを示したシステム
構成図。
FIG. 1 is a system configuration diagram showing a POS system according to an embodiment.

【図2】各スレーブECR3の全体動作を示したフロー
チャート。
FIG. 2 is a flowchart showing the overall operation of each slave ECR3.

【図3】各スレーブECR3における登録処理を示した
フローチャート。
FIG. 3 is a flowchart showing a registration process in each slave ECR3.

【図4】各スレーブECR3における復旧処理を示した
フローチャート。
FIG. 4 is a flowchart showing a recovery process in each slave ECR3.

【図5】第2実施例を説明するためのPOSシステムを
示したシステム構成図。
FIG. 5 is a system configuration diagram showing a POS system for explaining a second embodiment.

【符号の説明】[Explanation of symbols]

1 マスターECR 2 PLUマスターファイル 3 スレーブECR 4 PLUスレーブファイル 5 構内専用回線 1 Master ECR 2 PLU master file 3 Slave ECR 4 PLU slave file 5 Private leased line

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】商品情報を記憶する商品ファイルを備えた
マスター装置と、 このマスター装置にネットワーク接続され、商品登録時
にマスター装置に対して商品情報の問い合せを行う複数
台のスレーブ装置と、 を備えた売上データ処理システムにおいて、 各スレーブ装置には所定のタイミングでマスター装置か
ら前記商品ファイルの内容が各スレーブ装置に対して分
散して伝送されて来た商品情報を記憶保持する分散ファ
イルを有し、 各スレーブ装置はマスター装置に対して商品情報の問い
合せを行った際に、マスター装置が動作不能状態にある
か否かを検出し、 マスター装置が動作不能状態にあることを検出すると、
そのスレーブ装置は各スレーブ装置に対して商品情報の
問い合せを一斉同報し、 商品情報の問い合せを受けたスレーブ装置は、その問い
合せに基づいて自己の前記分散ファイルを検索してスレ
ーブ装置からの問い合せに応答する、 ようにしたことを特徴とする商品情報問い合せ応答方
法。
1. A master device provided with a product file for storing product information, and a plurality of slave devices connected to the master device by a network and inquiring product information to the master device at the time of product registration. In the sales data processing system, each slave device has a distributed file that stores and holds the product information that the master device distributes and transmits the content of the product file to each slave device at a predetermined timing. When each slave device inquires of the master device about product information, it detects whether or not the master device is inoperable, and when it detects that the master device is inoperable,
The slave device simultaneously broadcasts product information inquiries to each slave device, and the slave device that received the product information inquiry retrieves its own distributed file based on the inquiry and makes an inquiry from the slave device. A method for inquiring and responding to product information, characterized in that it responds to.
JP31105293A 1993-11-18 1993-11-18 Inquiring/and answering method for information on commodity Pending JPH07141575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31105293A JPH07141575A (en) 1993-11-18 1993-11-18 Inquiring/and answering method for information on commodity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31105293A JPH07141575A (en) 1993-11-18 1993-11-18 Inquiring/and answering method for information on commodity

Publications (1)

Publication Number Publication Date
JPH07141575A true JPH07141575A (en) 1995-06-02

Family

ID=18012533

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31105293A Pending JPH07141575A (en) 1993-11-18 1993-11-18 Inquiring/and answering method for information on commodity

Country Status (1)

Country Link
JP (1) JPH07141575A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007137664A (en) * 2005-11-22 2007-06-07 Ntt Data Corp Tracking system and inquiry device
US7297657B2 (en) 1998-02-12 2007-11-20 Monsanto Technology Llc Process for the preparation of N-(phosphonomethyl)glycine by oxidizing N-substituted N-(phosphonomethyl)glycine
EP2460586A2 (en) 2003-08-14 2012-06-06 Monsanto Technology LLC Process for oxidation of N-(phosphonomethyl)iminodiacetic acid or salt thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7297657B2 (en) 1998-02-12 2007-11-20 Monsanto Technology Llc Process for the preparation of N-(phosphonomethyl)glycine by oxidizing N-substituted N-(phosphonomethyl)glycine
EP2460586A2 (en) 2003-08-14 2012-06-06 Monsanto Technology LLC Process for oxidation of N-(phosphonomethyl)iminodiacetic acid or salt thereof
JP2007137664A (en) * 2005-11-22 2007-06-07 Ntt Data Corp Tracking system and inquiry device

Similar Documents

Publication Publication Date Title
US5079740A (en) System and method of providing an automatic back-up primary terminal for a cluster of secondary terminals
EP0377684A1 (en) Point of sale system
US5245164A (en) Transaction processing apparatus
CN110677280A (en) Service node switching method, device, equipment and computer readable storage medium
JP2001075920A (en) Online service providing system having service agency device
JPH07141575A (en) Inquiring/and answering method for information on commodity
JPH05298215A (en) Omitted data detecting/retransmitting method
CA2203281C (en) Data communication system with multiple processors
JPH035892A (en) Information processing network system
JP2001222766A (en) Pos system
JPH1139273A (en) Remote backup system
JPH05289992A (en) Sales data processing system
US7058774B2 (en) Data backup method and data backup system
JP2705533B2 (en) Proxy management system
JPH05242110A (en) File processor
JP2715952B2 (en) Multiple Price Lookup Search System
JPH1021100A (en) Sharing system for multi-transaction processing systems
JP2508952B2 (en) Sales data processing method
JPH0620191Y2 (en) Data processing device
RU2000119018A (en) GLOBAL AUTOMATED SALES SYSTEM BASED ON INFORMATION NETWORK TECHNOLOGIES
JPH08137952A (en) Information sales system
JP2000341417A (en) Incoming call distributing device, call center system, and storing medium with private communication exchange control program stored therein
JPS61289493A (en) Sales data transmitting/receiving system
JPH05153136A (en) Local area network repeater system
JP3254814B2 (en) Data transfer method