Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6341116B2 - - Google Patents
[go: Go Back, main page]

JPS6341116B2 - - Google Patents

Info

Publication number
JPS6341116B2
JPS6341116B2 JP57082193A JP8219382A JPS6341116B2 JP S6341116 B2 JPS6341116 B2 JP S6341116B2 JP 57082193 A JP57082193 A JP 57082193A JP 8219382 A JP8219382 A JP 8219382A JP S6341116 B2 JPS6341116 B2 JP S6341116B2
Authority
JP
Japan
Prior art keywords
data
check
memory
ram
stores
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP57082193A
Other languages
Japanese (ja)
Other versions
JPS58200387A (en
Inventor
Masami Kuwaki
Katsuhiko Inami
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP57082193A priority Critical patent/JPS58200387A/en
Publication of JPS58200387A publication Critical patent/JPS58200387A/en
Publication of JPS6341116B2 publication Critical patent/JPS6341116B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 この発明は価格データを電子式メモリに記憶さ
せるようにした自動販売機の価格データのチエツ
ク装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a price data checking device for a vending machine in which price data is stored in an electronic memory.

従来の技術 自動販売機の制御、演算装置としてマイクロコ
ンピユータを用いる場合に、販売する商品の価格
データをRAM(ランダムアクセスメモリ)に記
憶しておき、販売時において価格データをRAM
から読み出して、この読み出した価格データにも
とづいて販売動作を行なう場合がある。この種の
自動販売機においてはRAMはバツテリでバツク
アツプされ、商用電源の停電時にも価格データを
保存するように構成されているが、長時間の停電
等によつてバツテリが劣化した場合、RAMに記
憶した価格データが壊れて、エラーを生じる。
Conventional technology When using a microcomputer as a control and calculation device for a vending machine, price data of products to be sold is stored in RAM (random access memory), and the price data is transferred to RAM at the time of sale.
There are cases where a sales operation is performed based on the read price data. In this type of vending machine, the RAM is backed up by a battery and is configured to save price data even in the event of a power outage, but if the battery deteriorates due to a long power outage, the RAM The stored price data is corrupted and an error occurs.

上述のエラーを検出する方法としては、従来は
復電後に、RAMから読み出した2進化10進コー
ドで設定された価格データの各桁が「10」以上の
数であればエラーであると判定する方法がある。
しかしこの方法では、バツテリが劣化して、
RAMの記憶データが壊れた場合その壊れたデー
タが「9」以下の場合もあり、この場合にはエラ
ーを検出できないという欠点がある。
Conventionally, the method for detecting the above-mentioned error is to determine that there is an error if each digit of the price data set in the binary coded decimal code read from the RAM is a number of ``10'' or more after the power is restored. There is a way.
However, with this method, the battery deteriorates and
If the data stored in the RAM is corrupted, the corrupted data may be less than "9", and in this case there is a drawback that the error cannot be detected.

発明が解決すべき問題点 この発明は上述の欠点をなくすためになされた
ものであつて、価格データをRAM等の電子的メ
モリに記憶するようにした自動販売機において、
記憶データの破壊を確実に検出し得るチエツク装
置を提供することを目的とするものである。
Problems to be Solved by the Invention The present invention has been made to eliminate the above-mentioned drawbacks, and provides a vending machine in which price data is stored in an electronic memory such as a RAM.
The object of the present invention is to provide a check device that can reliably detect destruction of stored data.

問題点を解決する手段 この発明は価格データをRAM等の電子的メモ
リに記憶させ、この記憶した価格データを読み出
して販売動作を行う自動販売機の電子式メモリの
データチエツク装置において、第4図に示すよう
に各種データと同一内容を有する複数のチエツク
コードとを記憶するとともにバツテリによりバツ
クアツプされた書換え可能な電子式メモリと、上
記と同一内容のチエツクコードを記憶する固定メ
モリと、停電復帰後、固定メモリのチエツクコー
ドと電子式メモリのチエツクコードとを相互に照
合するデータ照合手段と、データ照合手段の判定
結果により、固定メモリのチエツクコードと電子
式メモリのチエツクコードとが不一致の関係にあ
るときは表示装置に対してエラー表示を行なうよ
うに制御する表示制御手段とを備えたことを特徴
とする。
Means for Solving the Problems The present invention provides a data check device for an electronic memory of a vending machine which stores price data in an electronic memory such as a RAM and reads out the stored price data to perform a vending operation. As shown in the figure, there is a rewritable electronic memory that stores various data and a plurality of check codes having the same contents and is backed up by a battery, a fixed memory that stores check codes with the same contents as above, and a fixed memory that stores check codes with the same contents as above. , a data collation means that mutually collates the check code of the fixed memory and the check code of the electronic memory, and a determination result of the data collation means that the check code of the fixed memory and the check code of the electronic memory are in a mismatched relationship. The present invention is characterized by comprising display control means for controlling the display device to display an error message at certain times.

作 用 上述の構成により価格データを電子式メモリに
記憶させるようにした自動販売機において、停電
からの復帰後固定メモリに記憶されているチエツ
クコードと電子式メモリに記憶されているチエツ
クコードとがデータ照合手段に印加される。デー
タ照合手段は両方のチエツクコードが一致関係に
あるか否かを判断し、判定結果が不一致であれば
表示制御手段に対してエラー表示を行なう信号を
印加する。これにより表示制御手段は表示装置に
よりエラー表示をさせる。
Effect: In a vending machine configured as described above to store price data in an electronic memory, after recovery from a power outage, the check code stored in the fixed memory and the check code stored in the electronic memory are applied to the data matching means. The data collation means determines whether or not the two check codes are in a matching relationship, and if the determination result is a mismatch, it applies a signal to the display control means to display an error. As a result, the display control means causes the display device to display an error message.

実施例 以下にこの発明の一実施例を図面とともに説明
する。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第1図において、1は自動販売機の販売制御用
の制御装置(照合手段、表示制御手段)であつ
て、たとえばマイクロコンピユータが用いられ
る。なお、この実施例では、20通りの商品の選択
ができるようにした、いわゆる20セレクシヨン機
能を備えた自動販売機について説明する。この種
の多セレクシヨン機能を有する自動販売機におい
ては、各セレクシヨン毎に押ボタンスイツチが設
けられており、所定の金額の金銭を自動販売機に
投入し、随意のセレクシヨンの押ボタンスイツチ
をオンとすると、その選択されたセレクシヨンの
商品が搬出されるようになつている。
In FIG. 1, reference numeral 1 denotes a control device (verification means, display control means) for controlling sales of a vending machine, and for example, a microcomputer is used. In this embodiment, a vending machine with a so-called 20 selection function that allows selection of 20 products will be described. In this type of vending machine with multiple selection functions, a push button switch is provided for each selection, and when a predetermined amount of money is inserted into the vending machine, the push button switch of any selection is turned on. Then, the products of the selected selection will be delivered.

制御装置1の固定メモリとしてのROM(リー
ドオンリーメモリ)1aには通常の自動販売機の
制御プログラムの他に、後述のRAMの記憶状況
をチエツクするためのチエツクデータC0が書き
込まれている。
A ROM (read only memory) 1a serving as a fixed memory of the control device 1 is written with check data C0 for checking the storage status of the RAM, which will be described later, in addition to a normal vending machine control program.

2は商品の販売に必要な種々のデータならびに
各セレクシヨン別に、該当商品の販売価格(設定
価格)を書き換え可能に記憶しているRAM(ラ
ンダムアクセスメモリ)であつて、このRAM2
の第1番地から第20番地までは各セレクシヨン毎
の商品の価格データの記憶領域、第21番地から24
番地は売上金額の記憶領域、25番地から40番地ま
ではチエツクデータの記憶領域である。チエツク
データのコードはROM1aに記憶したチエツク
データC0のコードと同一である。このRAM2に
記憶したチエツクデータを、以下の記述において
は番地順にC1,C2,…Coと記す。
Reference numeral 2 denotes a RAM (random access memory) that rewritably stores various data necessary for selling products and the sales price (set price) of the corresponding product for each selection.
Addresses 1 to 20 are storage areas for product price data for each selection, addresses 21 to 24.
The address is a storage area for sales amounts, and addresses 25 to 40 are storage areas for check data. The code of the check data is the same as the code of check data C0 stored in the ROM 1a. In the following description, the check data stored in the RAM 2 will be written as C 1 , C 2 , . . . C o in address order.

3は商用電源の停電時にRAM2をバツクアツ
プするためのバツテリであつて、このバツテリ3
はダイオード4を介してRAM2の電源端子に接
続されている。
3 is a battery for backing up RAM2 in the event of a commercial power outage;
is connected to the power supply terminal of RAM2 via diode 4.

5は商用電源を整流して、制御装置1、RAM
2に直流電源を供給する電源回路であつて、その
直流出力端子は制御装置1に接続されるととも
に、ダイオード6を介してRAM2の電源端子に
接続される。
5 rectifies the commercial power supply, controls the control device 1, and the RAM
The RAM 2 is a power supply circuit that supplies DC power to the RAM 2, and its DC output terminal is connected to the control device 1 and also connected to the power supply terminal of the RAM 2 via a diode 6.

7は各セレクシヨン毎の販売価格データその他
自動販売機の制御に必要な種々のデータを入力す
る、テンキーを含むキー入力装置であつて、この
キー入力装置7から入力されたデータは制御装置
1を介してRAM2に書き込まれる。
7 is a key input device including a numeric keypad for inputting sales price data for each selection and various other data necessary for controlling the vending machine; the data input from this key input device 7 is input to the control device 1; It is written to RAM2 via

8は表示装置、9は商用電源の復電検出装置で
ある。制御装置1は復電検出装置9によつて、電
源投入が検出されたとき、第3図に示すプログラ
ムにしたがつて、RAM2のデータが健全である
かどうかを検出する。このプログラムは制御装置
1内のROM1aに書き込まれている。
8 is a display device, and 9 is a commercial power supply recovery detection device. When the power restoration detection device 9 detects that the power is turned on, the control device 1 detects whether the data in the RAM 2 is healthy according to the program shown in FIG. This program is written in the ROM 1a in the control device 1.

いま商用電源が停電すると、RAM2にはバツ
テリ3から所定電圧が供給され、RAM2のデー
タは保存される。しかし、長い停電によつてバツ
テリ3が消耗するとRAM2のデータが破壊され
る。いま、たとえば第26番地のチエツクデータ
C2が0となつたとする。なお他のチエツクデー
タは健全であるとする。
If the commercial power supply is cut off, a predetermined voltage is supplied from the battery 3 to the RAM 2, and the data in the RAM 2 is saved. However, if the battery 3 is exhausted due to a long power outage, the data in the RAM 2 will be destroyed. Now, for example, check data for address 26.
Suppose that C 2 becomes 0. It is assumed that other check data is sound.

電源が回復すると、復電検出装置9の信号によ
つて、ステツプS1で電源投入が検出されるとス
テツプS2で、全出力オフとされ、ステツプS3
で制御装置1内のカウンタCT(図示せず)の内容
を1として、RAM2の1番地を指定し、1番地
のデータを読み出し(S4)、そのデータの各桁
が「10」より大か小かを検出する(S5)。もし
10より小であれば、ステツプS6に進みカウンタ
CTに1を加えて、2番地を指定して上述のチエ
ツクを行ない、カウンタCTの内容が24になる迄
ステツプS4に戻り、各チエツクデータC2〜C15
について上述のチエツクを行なう。
When the power is restored, power-on is detected in step S1 by a signal from the power restoration detection device 9, and all outputs are turned off in step S2, and then in step S3.
Set the contents of the counter CT (not shown) in the control device 1 to 1, specify address 1 of RAM 2, read the data at address 1 (S4), and check whether each digit of the data is greater than or less than "10". (S5). if
If it is less than 10, proceed to step S6 and count the counter.
Add 1 to CT, specify address 2, perform the above check, and return to step S4 until the contents of counter CT reach 24, and check each check data C 2 to C 15.
Perform the above checks for

もし、読み出したチエツクデータの1桁分が
「10」以上であれば、ステツプS12に進み、表
示装置8によりエラー表示を行なう。
If one digit of the read check data is ``10'' or more, the process advances to step S12, and the display device 8 displays an error.

上述のチエツクにおいて、RAM2のデータに
異常がなければステツプS8に進み、カウンタ
CTの内容を「25」として再びRAM2の25番地
を指定し、第25番地のチエツクデータ「C1」を
制御装置1内のレジスタ(図示せず)に書き込
む。
In the above check, if there is no abnormality in the data in RAM2, the process advances to step S8 and the counter is
The content of CT is set to "25", address 25 of RAM 2 is designated again, and check data "C 1 " at address 25 is written to a register (not shown) in control device 1.

一方ROM1aのチエツクデータC0も読み出し
て、他のレジスタに書き込む。そしてステツプS
9で、両レジスタの内容C0とC1とを比較する。
RAM2内のデータが正しければC0=C1であり、
ステツプS10へ進み、カウンタに1を加えて、
RAMの26番地を指定し、S11を経てステツプ
S8へ戻る。そして26番地のチエツクデータC2
を読み出してROM1aのチエツクデータC0と比
較する。この例ではチエツクデータC2は壊れて
0になつているのでC0≠C1であり、ステツプS
12に進み表示装置8によりエラー表示を行な
う。
On the other hand, check data C0 of the ROM 1a is also read and written to other registers. And step S
At step 9, the contents C 0 and C 1 of both registers are compared.
If the data in RAM2 is correct, C 0 = C 1 ,
Proceed to step S10, add 1 to the counter,
Address 26 of RAM is designated and the process returns to step S8 via S11. And check data C 2 at address 26
is read out and compared with check data C0 of ROM1a. In this example, check data C 2 is corrupted and becomes 0, so C 0 ≠ C 1 , and step S
The process proceeds to step 12, where the display device 8 displays an error.

エラー表示があつたときは、RAM2のデータ
が壊れていると判定し、係員がバツテリを交換し
た後、キー入力装置7から再び正しい販売価格デ
ータを入力して、第2図に示すように販売価格デ
ータを書き直し、またチエツクデータC1〜C20
書き直す。
When an error message is displayed, it is determined that the data in RAM 2 is corrupted, the staff replaces the battery, and then inputs the correct sales price data again from the key input device 7, and sells as shown in Figure 2. Rewrite the price data and also rewrite the check data C 1 to C 20 .

もしステツプS4〜S11のチエツクによつ
て、RAM2の記憶データが健全であると判定さ
れたときは、販売待機ルーチンへ移る。
If it is determined by the checks in steps S4 to S11 that the data stored in the RAM 2 is sound, the process moves to a sales standby routine.

なお販売動作時にはRAM2の販売価格データ
は各セレクシヨン毎に制御装置1にとり込まれ、
その販売価格データにしたがつて、販売の可否、
釣銭の演算等が行なわれる。
In addition, during the sales operation, the sales price data in RAM 2 is taken into the control device 1 for each selection.
Based on the sales price data, whether the sale is possible or not,
Change calculations, etc. are performed.

発明の効果 以上詳述したように、この発明によれば、
RAMのような、書換え可能な電子式メモリに価
格データを記憶させるようにした自動販売機の上
記電子式メモリに、特定のチエツクコードを複数
個記憶しておき、復電時にこのチエツクコードと
固定メモリに書き込んだチエツクコードとを照合
して、不一致があつたとき記憶エラーであるとし
て、表示手段にエラー表示をさせるように制御し
たものであるから、停電によるメモリのデータの
破壊の有無を確実に検出でき、停電復帰後の販売
に対して、データ破壊時には販売を停止できる。
従つて、データ破壊による販売に対しての装置の
信頼性の向上が得られる。
Effects of the Invention As detailed above, according to this invention,
A vending machine that stores price data in a rewritable electronic memory such as RAM stores multiple specific check codes in the electronic memory, and fixes the check codes when the power is restored. It is controlled so that the check code written in the memory is compared with the check code written in the memory, and if there is a discrepancy, a storage error is detected and the error is displayed on the display means, so it is possible to ensure that the data in the memory has not been destroyed due to a power outage. It can be detected immediately, and sales can be stopped in the event of data destruction, as opposed to sales after the power is restored.
Therefore, it is possible to improve the reliability of the device against sales due to data destruction.

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

第1図はこの発明の一実施例を示す回路図、第
2図はこの発明の一実施例におけるRAMの記憶
方式の一例を示す図、第3図は第1図の実施例の
動作を示すフローチヤート、第4図はクレーム対
応図である。 1…制御装置、1a…ROM、2…RAM、3
…バツテリ、8…表示装置、9…復電検出装置。
FIG. 1 is a circuit diagram showing an embodiment of this invention, FIG. 2 is a diagram showing an example of a RAM storage system in an embodiment of this invention, and FIG. 3 shows the operation of the embodiment of FIG. 1. The flowchart, FIG. 4, is a complaint correspondence diagram. 1...Control device, 1a...ROM, 2...RAM, 3
... Battery, 8... Display device, 9... Power recovery detection device.

Claims (1)

【特許請求の範囲】 1 価格データをRAM等の電子的メモリに記憶
させ、この記憶した価格データを読み出して販売
動作を行う自動販売機の電子式メモリのデータチ
エツク装置において、各種データと同一内容を有
する複数のチエツクコードとを記憶するとともに
バツテリによりバツクアツプされた書換え可能な
電子式メモリと、 上記と同一内容のチエツクコードを記憶する固
定メモリと、 停電復帰後、固定メモリのチエツクコードと電
子式メモリのチエツクコードとを相互に照合する
データ照合手段と、 データ照合手段の判定結果により、固定メモリ
のチエツクコードと電子式メモリのチエツクコー
ドとが不一致の関係にあるときは表示装置に対し
てエラー表示を行なうように制御する表示制御手
段とを備えたことを特徴とする自動販売機の電子
式メモリのデータチエツク装置。
[Scope of Claims] 1. In a data check device of an electronic memory of a vending machine that stores price data in an electronic memory such as RAM and reads out the stored price data to perform a sales operation, the same content as various data is provided. A rewritable electronic memory that stores a plurality of check codes having the same content and is backed up by a battery, a fixed memory that stores check codes with the same content as above, and a fixed memory that stores the check codes of the fixed memory and the electronic If the check code of the fixed memory and the check code of the electronic memory do not match according to the judgment result of the data matching means and the check code of the memory, an error is sent to the display device. 1. A data check device for an electronic memory of a vending machine, comprising display control means for controlling display.
JP57082193A 1982-05-14 1982-05-14 Data checking system for electronic memory Granted JPS58200387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57082193A JPS58200387A (en) 1982-05-14 1982-05-14 Data checking system for electronic memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57082193A JPS58200387A (en) 1982-05-14 1982-05-14 Data checking system for electronic memory

Publications (2)

Publication Number Publication Date
JPS58200387A JPS58200387A (en) 1983-11-21
JPS6341116B2 true JPS6341116B2 (en) 1988-08-15

Family

ID=13767591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57082193A Granted JPS58200387A (en) 1982-05-14 1982-05-14 Data checking system for electronic memory

Country Status (1)

Country Link
JP (1) JPS58200387A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0493317U (en) * 1991-01-09 1992-08-13

Also Published As

Publication number Publication date
JPS58200387A (en) 1983-11-21

Similar Documents

Publication Publication Date Title
EP0526139B1 (en) Operation of a computer during loss and resume of the operating voltage.
JPH0440757B2 (en)
US4853853A (en) Elecetronic cash register
JPS6341116B2 (en)
JP3603333B2 (en) Data processing device
JPS58200388A (en) Data checking system for electronic memory
JPH04542A (en) Memory checking system
JP2761990B2 (en) Data protection device for electronic equipment
JP2635601B2 (en) Portable electronic devices
JPS6191791A (en) Price data checking for vending machine
JP3357777B2 (en) Program control system
JPH06195271A (en) Data processor
JP2579690B2 (en) Electronics
JPH0317144B2 (en)
JP3103659B2 (en) Electronic cash register
JPH06332805A (en) Electronic equipment
KR19990047788A (en) How to display the error of the electronic cash register
JP2635777B2 (en) Programmable controller
JP2506199B2 (en) Electronics
JPS6117286A (en) Electronic equipment
JPH01128147A (en) Arithmetic unit
JPS63286945A (en) data processing equipment
JP2743205B2 (en) Card reader / writer
KR19990000330A (en) How to check RAM data in electronic cash register
JPH02100744A (en) Electronics