JPH0935132A - Controller for automatic vending machine - Google Patents

Controller for automatic vending machine

Info

Publication number
JPH0935132A
JPH0935132A JP18686195A JP18686195A JPH0935132A JP H0935132 A JPH0935132 A JP H0935132A JP 18686195 A JP18686195 A JP 18686195A JP 18686195 A JP18686195 A JP 18686195A JP H0935132 A JPH0935132 A JP H0935132A
Authority
JP
Japan
Prior art keywords
data
ram
vending machine
stored
eeprom
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
JP18686195A
Other languages
Japanese (ja)
Inventor
Nobuhiko Ichinose
信彦 一ノ瀬
Takuji Kawaai
拓司 川相
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP18686195A priority Critical patent/JPH0935132A/en
Publication of JPH0935132A publication Critical patent/JPH0935132A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To protect data necessary for the control of an automatic vending machine(AVM) even when program runaway or the like occurs. SOLUTION: A control program common to different machine sorts is stored in a ROM 3 built in a controller 1. Machine-sorted specification data set up correspondingly to the machine sort of each AVM, vending format setting data necessary for practically vending commodities and vending history data are stored in a RAM 4. The controller 1 is also provided with an EEPROM 10 for storing the machine-sorted specification data and the vending format setting data stored also in the RAM 4 and a write inhibiting circuit 11 for turning off a switch 12 inserted into the writing signal line of the EEPROM 10 at the time other than the writing of necessary data in the EEPROM 10. Even when data stored in the RAM 4 are destructed due to the runaway of the program, backup battery-out for the RAM 4 or the like, data necessary for the control of the AVM are stored in the EEPROM 10.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、例えば缶入り,瓶
入り飲料等の商品を販売する自動販売機の制御装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a controller for an automatic vending machine that sells products such as canned drinks and bottled drinks.

【0002】[0002]

【発明が解決しようとする課題】例えば缶入り飲料等の
商品を販売する自動販売機は、MPU,ROM,RAM
等からなる制御装置を備え、その制御装置により、所定
の制御プログラムに従って、商品収容室(コラム)内の
商品を加熱及び冷却するための加熱装置及び冷却装置の
運転、ディスプレイ用の蛍光灯の点灯、検銭機構や釣銭
排出機構を有するコインメカ、コラム内の商品を1個ず
つ排出するベンドメカ、各種の表示等の制御がなされる
ようになっている。
SUMMARY OF THE INVENTION For example, an automatic vending machine that sells products such as canned beverages has MPU, ROM, RAM.
It is equipped with a control device consisting of etc., and the control device operates a heating device and a cooling device for heating and cooling the products in the product storage chamber (column) according to a predetermined control program, and turns on a fluorescent lamp for a display. A coin mechanism having a change inspection mechanism and a change discharge mechanism, a bend mechanism for discharging the products in the column one by one, various displays, and the like are controlled.

【0003】この場合、自動販売機には、商品収容室
(コラム)の数や各室のホット/コールドの切替え仕様
などが異なる複数の機種が存在するが、それら異なる機
種間にあってもROMの共用化を図るため、ROMに記
憶される制御プログラムを共通化し、自動販売機の機種
に対応した機種別仕様データを、工場出荷時にRAMに
記憶させておくことにより、その機種に応じた制御を行
うようにしている。このとき、RAMは、バックアップ
用電池によって、その記憶内容が保持されるようになっ
ている。
In this case, there are a plurality of types of vending machines which differ in the number of product storage rooms (columns) and the hot / cold switching specifications of each room, but the ROM is shared even among these different models. In order to achieve this, the control program stored in the ROM is shared, and the model-specific specification data corresponding to the model of the vending machine is stored in the RAM at the time of factory shipment, so that control according to that model is performed. I am trying. At this time, the RAM stores the stored contents by the backup battery.

【0004】また、自動販売機により商品を実際に販売
するにあたっては、選択ボタンのコラムに対する割付
け、商品の価格設定、ホット/コールドの選択、販売時
間帯の設定等の販売態様設定データも必要となる。この
販売態様設定データに関しても、例えば工場出荷時に、
標準的なデータをRAMに記憶させておき、出荷先にお
いて、自動販売機の管理者等が所望の販売態様に変更
(データの書替え)できるようになっている。尚、前記
RAMには、その他販売履歴データ(集計データ)も記
憶されるようになっており、管理者が販売数などの集計
や確認を行うことができるようになっている。
In addition, when actually selling a product by an automatic vending machine, it is necessary to also provide sales mode setting data such as allocation of selection buttons to columns, price setting of products, hot / cold selection, and setting of sales hours. Become. Also regarding this sales mode setting data, for example, at the time of factory shipment,
The standard data is stored in the RAM so that the administrator of the vending machine or the like can change it to a desired sales mode (rewrite data) at the shipping destination. The RAM also stores other sales history data (aggregation data) so that the administrator can aggregate and confirm the number of sales.

【0005】しかしながら、上記従来のものでは、例え
ばRAMのバックアップ電源が切れてRAMの記憶全体
がクリアされた場合や、プログラムが暴走してRAMの
記憶内容が破壊されたような場合、制御に必要な機種別
仕様データ等がなくなってしまって商品の販売が不可能
な状態になってしまう。この場合、システムを復旧させ
るには、データの再入力が必要となり多大な手間がかか
る問題がある。
However, in the above-mentioned conventional device, for example, when the backup power supply of the RAM is turned off and the entire memory of the RAM is cleared, or when the program runs away and the memory content of the RAM is destroyed, it is necessary for the control. It becomes impossible to sell the product because the specification data for each model is lost. In this case, in order to restore the system, it is necessary to re-enter the data, which is a problem that takes a lot of time.

【0006】本発明は上記事情に鑑みてなされたもの
で、その目的は、プログラムの暴走等があっても、自動
販売機の制御に必要なデータを保護することができる自
動販売機の制御装置を提供するにある。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a control device for a vending machine capable of protecting data necessary for controlling the vending machine even if a program runs out of control. To provide.

【0007】[0007]

【課題を解決するための手段】本発明の請求項1の自動
販売機の制御装置は、マイクロプロセッサ,ROM,R
AMを備え、制御プログラムに従って自動販売機を制御
するものにあって、自動販売機の制御に必要なデータを
前記RAMと共に記憶する書換え可能ROMと、この書
換え可能ROMへの必要なデータの書込み時を除いて該
書換え可能ROMに対する前記マイクロプロセッサから
のデータの書込みを不可能とする書込み禁止回路とを具
備するところに特徴を有する。
A control device for a vending machine according to claim 1 of the present invention comprises a microprocessor, a ROM, and an R.
A rewritable ROM for storing data necessary for controlling the vending machine together with the RAM, which is provided with an AM and controls the vending machine according to a control program, and when writing necessary data to the rewritable ROM. Except for the above, a write prohibition circuit for prohibiting writing of data from the microprocessor to the rewritable ROM is provided.

【0008】この場合、前記書換え可能ROMに、自動
販売機の機種に応じて設定される機種別仕様データを記
憶させることができる(請求項2の発明)。
In this case, the rewritable ROM can store the model-specific specification data set according to the model of the vending machine (the invention of claim 2).

【0009】また、RAMに記憶されていたデータが破
壊されたことを検出する検出手段と、この検出手段がデ
ータの破壊を検出したときに書換え可能ROMに記憶さ
れていたデータを前記RAMにコピーするデータコピー
手段とを具備する構成としても良い(請求項3の発
明)。
Further, the detecting means for detecting that the data stored in the RAM is destroyed, and the data stored in the rewritable ROM when the detecting means detects the destruction of the data are copied to the RAM. It may be configured to include a data copy means for performing the above (the invention of claim 3).

【0010】さらには、前記書換え可能ROMに、自動
販売機の販売態様を設定する販売態様設定データを記憶
させることもできる(請求項4の発明)。
Furthermore, the rewritable ROM may store sales mode setting data for setting the sales mode of the vending machine (the invention of claim 4).

【0011】[0011]

【発明の実施の形態】以下、本発明のいくつかの実施例
について図面を参照しながら説明する。 (1)第1の実施例 まず、本発明の第1の実施例について、図1及び図2を
参照して述べる。図1は本実施例に係る自動販売機の制
御装置1の概略構成を示している。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Some embodiments of the present invention will be described below with reference to the drawings. (1) First Embodiment First, a first embodiment of the present invention will be described with reference to FIGS. 1 and 2. FIG. 1 shows a schematic configuration of a control device 1 for an automatic vending machine according to this embodiment.

【0012】ここで、制御装置1は、マイクロプロセッ
サたるMPU(演算処理装置)2、ROM(読出し専用
メモリ)3、RAM(読み書き可能メモリ)4を、信号
線(バス)により相互に接続して構成されている。この
うちROM3には、自動販売機の各機構を制御するため
の制御プログラムが記憶されている。そして、前記RA
M4には、後述する各種のデータを記憶するための記憶
領域が、作業領域と共に設けられている。また、このR
AM4には、バックアップ用の電池5が接続されてお
り、制御装置1に対する電源オフ時にも、その記憶内容
が保持されるようになっている。
Here, the control unit 1 connects an MPU (arithmetic processing unit) 2, which is a microprocessor, a ROM (read only memory) 3, and a RAM (readable and writable memory) 4, to each other by a signal line (bus). It is configured. Of these, the ROM 3 stores a control program for controlling each mechanism of the vending machine. And the RA
In M4, a storage area for storing various kinds of data described later is provided together with the work area. Also, this R
A battery 5 for backup is connected to the AM 4 so that the stored contents are retained even when the power supply to the control device 1 is turned off.

【0013】また、前記MPU2には、制御入出力回路
6が接続されている。図示はしないが、この制御入出力
回路6には、商品収容室(コラム)内の商品(例えば缶
入り飲料)を加熱及び冷却するための加熱装置及び冷却
装置、検銭機構や釣銭排出機構を有するコインメカ、コ
ラム内の商品を1個ずつ排出するベンドメカ、各種の表
示器やディスプレイ用の蛍光灯、選択ボタンにより動作
される商品選択スイッチ等が接続されている。
A control input / output circuit 6 is connected to the MPU 2. Although not shown, the control input / output circuit 6 is provided with a heating device and a cooling device for heating and cooling the products (for example, canned beverages) in the product storage chamber (column), a coin inspection mechanism, and a change discharge mechanism. The coin mechanism, the bend mechanism for discharging the products in the column one by one, the fluorescent lamp for various displays and displays, the product selection switch operated by the selection button, etc. are connected.

【0014】ここで、本実施例においては、前記RAM
4の記憶領域には、商品収容室(コラム)の数や各室の
ホット/コールドの切替え仕様といった自動販売機の機
種に対応して設定される機種別仕様データが記憶され
る。これにて、異なる機種間にあってもROMに記憶さ
れる制御プログラムを共通化し、ROMの共用化を図る
ようになっている。
Here, in the present embodiment, the RAM
The storage area 4 stores model-specific specification data set corresponding to the model of the vending machine, such as the number of product storage rooms (columns) and hot / cold switching specifications of each room. As a result, the control programs stored in the ROM are made common even between different models, so that the ROM can be shared.

【0015】そして、これと共に、RAM4には、選択
ボタンのコラムに対する割付け、商品の価格設定、ホッ
ト/コールドの選択、販売時間帯の設定等、自動販売機
により商品を実際に販売するにあたって必要となる販売
態様設定データが記憶されるようになっている。さら
に、本実施例では、いつどの商品がどれだけ販売された
かといった販売履歴データ(集計データ)も記憶される
ようになっている。
Along with this, the RAM 4 is necessary for actually selling the product by the vending machine, such as allocation of the selection button to the column, price setting of the product, selection of hot / cold, and setting of the sales time zone. The following sales mode setting data is stored. Further, in this embodiment, sales history data (aggregated data) such as when and how much of which product was sold is also stored.

【0016】このとき、前記MPU2には設定データ入
力回路7が接続されており、この設定データ入力回路7
を介して前記RAM4に機種別仕様データ及び販売態様
設定データが入力されるようになっている。本実施例で
は、工場サイドにおいて、前記設定データ入力回路7に
データ入力装置8を接続することにより、機種別仕様デ
ータ及び標準的な販売態様設定データを、予め制御装置
1に入力するようになっている。また、そのうち販売態
様設定データに関しては、出荷先(ボトラー)におい
て、前記設定データ入力回路7に設定装置(例えばリモ
コン装置やコントロールパネル)9を接続することによ
り、自動販売機の管理者等が所望にデータの変更ができ
るようになっている。
At this time, the setting data input circuit 7 is connected to the MPU 2, and the setting data input circuit 7 is connected.
The model-specific specification data and the sales mode setting data are input to the RAM 4 via the. In this embodiment, by connecting the data input device 8 to the setting data input circuit 7 on the factory side, the model-specific specification data and the standard sales mode setting data are input to the control device 1 in advance. ing. Regarding the sales mode setting data, the vending machine manager or the like can obtain the sales mode setting data by connecting a setting device (for example, a remote control device or a control panel) 9 to the setting data input circuit 7 at the shipping destination (bottler). You can change the data.

【0017】これにて、制御装置1は、ROM3に記憶
された制御プログラム及びRAM4に記憶されたデータ
に基づいて、自動販売機の各機構を制御し、購買者によ
り所用の貨幣が投入されて選択ボタンが操作されること
により、選択された商品の販売を実行するものである。
この場合、商品の販売があった都度、RAM4内の販売
履歴データが書替えられるようになっている。
Thus, the control device 1 controls each mechanism of the vending machine based on the control program stored in the ROM 3 and the data stored in the RAM 4, so that the purchaser puts the required money. When the selection button is operated, the selected product is sold.
In this case, the sales history data in the RAM 4 is rewritten every time the product is sold.

【0018】さて、前記MPU2には、書換え可能RO
MであるEEPROM10及び書込み禁止回路11が接
続されている。この場合、MPU2は、上記した機種別
仕様データ及び販売態様設定データを、EEPROM1
0に書込むように構成されており、これにて、EEPR
OM10には、自動販売機の制御に必要なデータが前記
RAM4と共に記憶されるようになっている。EEPR
OM10からそれらデータを読出すことができることは
勿論である。
By the way, the MPU 2 has a rewritable RO.
The M EEPROM 10 and the write inhibit circuit 11 are connected. In this case, the MPU 2 stores the above-mentioned model-specific specification data and sales mode setting data in the EEPROM 1
It is configured to write to 0, and with this, EEPR
The OM 10 stores data necessary for controlling the vending machine together with the RAM 4. EEPR
Of course, the data can be read from the OM 10.

【0019】そして、前記MPU2とEEPROM10
とを接続する書込み用信号線の途中部に、スイッチ12
が設けられており、前記書込み禁止回路11は、MPU
2からの指令信号に基づいて前記スイッチ12をオン,
オフするようになっている。このとき、後の作用説明に
て述べるように、制御装置1はソフトウエア構成(制御
プログラム)によって、MPU2が上記した必要なデー
タをEEPROM10に書込む際にのみ、書込み禁止回
路11を介してスイッチ12をオンし、それ以外の通常
の自動販売機制御時等においては、前記書込み禁止回路
11を介してスイッチ12をオフしてEEPROM10
に対するデータの書込みを不可能とするようになってい
る。
Then, the MPU 2 and the EEPROM 10
In the middle of the write signal line connecting
Is provided, and the write inhibit circuit 11 is
The switch 12 is turned on based on the command signal from
It is turned off. At this time, as will be described later in the description of the operation, the control device 1 uses the software configuration (control program) to switch via the write inhibit circuit 11 only when the MPU 2 writes the necessary data described above into the EEPROM 10. 12 is turned on, and at the time of other normal vending machine control, etc., the switch 12 is turned off via the write inhibit circuit 11 to turn off the EEPROM 10.
It is made impossible to write data to.

【0020】さらに、これも後述するように、本実施例
では、制御装置1は、ソフトウエア構成(制御プログラ
ム)によって検出手段及びデータコピー手段としての機
能を実現し、電源オン時に前記RAM4のデータの破壊
がないかどうかを検出し、もしデータの破壊を検出した
ときには、前記EEPROM10に記憶されていたデー
タ(機種別仕様データ及び販売態様設定データ)を、前
記RAM4にコピーするようになっているのである。
Further, as will be described later, in this embodiment, the control device 1 realizes the functions of the detecting means and the data copying means by the software configuration (control program), and the data of the RAM 4 is turned on when the power is turned on. Is detected, and if data destruction is detected, the data (specific model data and sales mode setting data) stored in the EEPROM 10 is copied to the RAM 4. Of.

【0021】次に、上記のように構成された制御装置1
の作用について、図2も参照して述べる。上述したよう
に、制御装置1は、ROM3に記憶された制御プログラ
ム並びにRAM4に記憶された機種別仕様データ及び販
売態様設定データに基づいて自動販売機の各機構を制御
する。図2のフローチャートは、このとき制御装置1
(MPU2)が実行する処理手順を概略的に示してい
る。
Next, the control device 1 configured as described above.
The action of will be described with reference to FIG. As described above, the control device 1 controls each mechanism of the vending machine based on the control program stored in the ROM 3 and the model-specific specification data and the sales mode setting data stored in the RAM 4. At this time, the flow chart of FIG.
The processing procedure executed by the (MPU2) is schematically shown.

【0022】即ち、制御装置1の電源がオンされると、
まずシステムの初期化が行われ(ステップS1)、次い
で書込み禁止回路11によりスイッチ12がオフされる
(ステップS2)。次のステップS3では、RAM4の
データの破壊があったかどうかがチェックされ、RAM
4のデータの破壊がないと判断された場合には(N
o)、ステップS4に進み、通常の自動販売機制御が実
行される。尚、ステップS3のデータ破壊の検出につい
ては後述する。
That is, when the controller 1 is powered on,
First, the system is initialized (step S1), and then the write inhibit circuit 11 turns off the switch 12 (step S2). In the next step S3, it is checked whether or not the data in the RAM4 has been destroyed, and the RAM is
If it is judged that the data of 4 is not destroyed (N
o), proceeding to step S4, normal vending machine control is executed. The detection of data destruction in step S3 will be described later.

【0023】ステップS4の自動販売機制御の詳細につ
いては省略するが、商品(缶入り飲料)を設定された温
度に冷却(あるいは加熱)し、所定の表示を行い、購買
者により所要の貨幣が投入されて選択ボタンが操作され
ることにより、選択ボタンに対応したコラムのベンドメ
カを作動させて選択された商品を販売するものである。
また、このとき、上述のように、商品の販売があった都
度、RAM4内の販売履歴データが書替えられる。
Although details of the automatic vending machine control in step S4 are omitted, the product (canned beverage) is cooled (or heated) to a set temperature, a predetermined display is performed, and the currency required by the purchaser is displayed. When the product is turned on and the selection button is operated, the bend mechanism of the column corresponding to the selection button is operated to sell the selected product.
Further, at this time, as described above, the sales history data in the RAM 4 is rewritten every time the product is sold.

【0024】そして、自動販売機の管理者(ボトラー)
が、選択ボタンのコラムに対する割付けを変更したり、
商品の価格を変更したり、ホット/コールドを切替えた
り、販売時間帯を変更したりするなど、自動販売機の販
売態様を変更したい場合には、設定装置9を用いて販売
態様設定データの入力作業を行うことができる(ステッ
プS5)。
[0024] And the manager of the vending machine (bottler)
However, you can change the selection button column assignment,
If you want to change the sales mode of the vending machine, such as changing the price of the product, switching between hot / cold, and changing the sales hours, input the sales mode setting data using the setting device 9. Work can be performed (step S5).

【0025】このような販売態様設定データの入力があ
った場合には(ステップS5にてYes)、まずステッ
プS6にて、書込み禁止回路11を介してスイッチ12
がオンされ、MPU2からEEPROM10へのデータ
の書込みが可能とされる。そして、ステップS7では、
入力された変更データがRAM4に書込まれ、これと併
せてEEPROM10にも同様に変更データが書込まれ
るようになる。データの書込みが完了すると、ステップ
S8にて再びスイッチ12がオフされてEEPROM1
0へのデータの書込みが禁止され、通常の自動販売機制
御(ステップS4)に戻る。
When such sales mode setting data is input (Yes in step S5), first, in step S6, the switch 12 is operated via the write inhibit circuit 11.
Is turned on, and data can be written from the MPU 2 to the EEPROM 10. Then, in step S7,
The input change data is written in the RAM 4, and together with this, the change data is also written in the EEPROM 10. When the writing of data is completed, the switch 12 is turned off again in step S8 and the EEPROM 1
Writing of data to 0 is prohibited, and the process returns to the normal vending machine control (step S4).

【0026】しかして、上記した自動販売機の通常制御
時において、もしプログラムが暴走した場合には、RA
M4に記憶されていたデータ(機種別仕様データ及び販
売態様設定データ並びに販売履歴データ)が破壊される
ことになる。また、電池5の電力の消費が大きくなって
電源の供給が途絶えたような場合にも、電源オフに伴い
RAM4内のデータが消去されることになる。このよう
なRAM4のデータ(機種別仕様データ及び販売態様設
定データ)が破壊されると、その後の自動販売機の稼働
が不可能となってしまう。
In the normal control of the above-mentioned vending machine, if the program runs out of control, RA
The data stored in M4 (specification data by model, sales mode setting data, and sales history data) will be destroyed. Further, even when the power consumption of the battery 5 is increased and the power supply is interrupted, the data in the RAM 4 is erased when the power is turned off. If the data in the RAM 4 (specification data for each model and sales mode setting data) is destroyed, the subsequent operation of the vending machine becomes impossible.

【0027】そこで、本実施例では、ステップS3にお
いて、RAM4のデータの破壊の有無を検出するように
なっているのである。この検出は、例えばRAM4の特
定のアドレスに通常時に変更されることのない所定パタ
ーンのデータが格納されているかどうかを判断すること
により行い、所定のデータが格納されていなければRA
M4のデータの破壊があったと判断するのである。尚、
RAM4のデータ破壊の検出方法としては、他にも販売
態様設定データ領域のチェックサムを記憶することに基
づいて行っても良い。
Therefore, in this embodiment, in step S3, the presence or absence of data destruction in the RAM 4 is detected. This detection is performed, for example, by determining whether or not a predetermined pattern of data that is not changed in a normal state is stored in a specific address of the RAM 4, and if the predetermined data is not stored, RA is stored.
It is determined that the M4 data has been destroyed. still,
As another method of detecting data destruction in the RAM 4, a checksum of the sales mode setting data area may be stored.

【0028】そして、もし、RAM4のデータの破壊が
あったと判断された場合には(ステップS3にてYe
s)、ステップS9にて、EEPROM10に記憶され
ているデータ(機種別仕様データ及び販売態様設定デー
タ)をRAM4にコピーすることが行われるのである。
ここで、上記したプログラムの暴走時においては、スイ
ッチ12がオフしていることにより、EEPROM10
に記憶されているデータが破壊されることはない(デー
タが破壊される確率は極めて小さい)。また、RAM4
のバックアップ用電池5が切れても、EEPROM10
に記憶されているデータが破壊されることがないことは
勿論である。
If it is determined that the data in the RAM 4 has been destroyed (Yes in step S3).
s), in step S9, the data (specification data for each model and sales mode setting data) stored in the EEPROM 10 is copied to the RAM 4.
At the time of the above program runaway, the switch 12 is turned off, so that the EEPROM 10
The data stored in is not destroyed (the probability of data being destroyed is very small). In addition, RAM4
Even if the backup battery 5 of the
Of course, the data stored in will not be destroyed.

【0029】従って、プログラムの暴走や電池切れがあ
ってRAM4のデータが破壊されるこがあっても、機種
別仕様データはもとより、前回まで運転していた販売態
様そのままの販売態様設定データがRAM4にコピーさ
れることになり、自動販売機の管理者(サービスマン)
などが再設定の作業を行うことなく、即座に前回までと
同等の自動販売機の制御(ステップS4)が可能となる
のである。
Therefore, even if the data in the RAM 4 is destroyed due to a program runaway or battery exhaustion, not only the model-specific specification data but also the sales mode setting data in the sales mode that has been used until the last time is stored in the RAM 4 Will be copied to the vending machine administrator (service person)
It becomes possible to immediately control the vending machine equivalent to the previous time (step S4) without performing the resetting work.

【0030】このように本実施例によれば、EEPRO
M10を設けて自動販売機の運転に必要な機種別仕様デ
ータ及び販売態様設定データをRAM4と共に記憶さ
せ、しかも、書込み禁止回路11により、必要時以外に
おいてEEPROM10へのデータの書込みを不可能と
したので、プログラムの暴走やRAM4のバックアップ
電池切れ等があっても、自動販売機の制御に必要なデー
タを保護することができる。
As described above, according to this embodiment, EEPRO
The M10 is provided to store the model-specific specification data and the sales mode setting data necessary for the operation of the automatic vending machine together with the RAM 4, and the writing prohibition circuit 11 makes it impossible to write the data to the EEPROM 10 except when necessary. Therefore, even if the program runs away or the backup battery of the RAM 4 runs out, the data required for controlling the vending machine can be protected.

【0031】この結果、RAM4のデータが破壊される
ことがあっても、従来のような商品の販売が不可能な状
態になるものと異なり、商品の販売が不可能となってし
まうことを未然に防止することができて速やかに自動販
売機の運転の再開を可能とすることができる。しかも、
機種別仕様データ及び販売態様設定データが自動的にR
AM4にコピーされるので、管理者などによるデータの
再入力等の作業が必要なくなり、何ら手間をかけること
なく自動販売機の運転を再開することができるものであ
る。
As a result, even if the data in the RAM 4 may be destroyed, unlike the conventional method in which the product cannot be sold, the product cannot be sold. In addition, it is possible to quickly restart the operation of the vending machine. Moreover,
Model-specific specification data and sales mode setting data are automatically R
Since the data is copied to the AM4, it is possible to restart the operation of the vending machine without any troublesome work such as re-input of data by an administrator.

【0032】(2)第2の実施例 図3のフローチャートは、本発明の第2の実施例を示す
もので、上記図2と同様に、本実施例に係る制御装置が
実行する処理手順を概略的に示している。この場合、制
御装置のハードウエア的構成は、上記第1の実施例と共
通するので、新たな図示及び詳しい説明を省略し、符号
も共通させることとする。
(2) Second Embodiment The flow chart of FIG. 3 shows a second embodiment of the present invention. Similar to FIG. 2, the processing procedure executed by the control device according to the present embodiment will be described. It is shown schematically. In this case, the hardware configuration of the control device is the same as that of the first embodiment, so new illustration and detailed description will be omitted, and reference numerals will be the same.

【0033】上記第1の実施例においては、自動販売機
の管理者による販売の集計等に利用される販売履歴デー
タを、RAM4のみに記憶させるようにしたが、本実施
例においては、販売履歴データに関しても、EEPRO
M10に記憶させるようにしたのである。即ち、電源が
オンされると、まずシステムの初期化が行われ(ステッ
プS11)、次いで書込み禁止回路11によりスイッチ
12がオフされ(ステップS12)、通常の自動販売機
制御が実行される(ステップS13)。
In the first embodiment described above, the sales history data used by the administrator of the vending machine for collecting sales and the like is stored only in the RAM 4, but in the present embodiment, the sales history data is stored. Regarding data, EEPRO
It was stored in M10. That is, when the power is turned on, the system is first initialized (step S11), then the write inhibit circuit 11 turns off the switch 12 (step S12), and normal vending machine control is executed (step S11). S13).

【0034】そして、商品の販売に伴ってRAM4内の
販売履歴データが書替えられるのであるが、このように
販売履歴データに変更があったときには(ステップS1
4にてYes)、ステップS15にて、書込み禁止回路
11を介してスイッチ12がオンされてEEPROM1
0へのデータの書込みが可能とされ、ステップS16に
て、変更された販売履歴データがEEPROM10に書
込まれ、書込み完了後、ステップS17にて再びスイッ
チ12がオフされてEEPROM10へのデータの書込
みが禁止される。
Then, the sales history data in the RAM 4 is rewritten as the product is sold. When the sales history data is changed in this way (step S1).
4 is Yes), and in step S15, the switch 12 is turned on through the write inhibit circuit 11 and the EEPROM 1
Data can be written to 0, the changed sales history data is written in the EEPROM 10 in step S16, and after the writing is completed, the switch 12 is turned off again in step S17 to write the data in the EEPROM 10. Is prohibited.

【0035】また、この場合、上記第1の実施例と同様
に、自動販売機の管理者が自動販売機の販売態様を変更
したい場合には、販売態様設定データの入力作業を行う
ことができる。販売態様設定データの入力があった場合
には(ステップS18にてYes)、ステップS19に
て、書込み禁止回路11を介してスイッチ12がオンさ
れ、ステップS20にて、変更された販売態様設定デー
タがEEPROM10に書込まれ、書込み完了後、ステ
ップS21にて再びスイッチ12がオフされるのであ
る。
Further, in this case, as in the case of the first embodiment, when the manager of the vending machine wants to change the selling mode of the vending machine, he / she can input the sales mode setting data. . If the sales aspect setting data has been input (Yes in step S18), the switch 12 is turned on through the write prohibition circuit 11 in step S19, and the changed sales aspect setting data in step S20. Is written in the EEPROM 10, and after the writing is completed, the switch 12 is turned off again in step S21.

【0036】さらに、図示は省略しているが、制御装置
は、プログラムの暴走やバックアップ電池切れによるR
AM4のデータの破壊を検出し、RAM4のデータの破
壊を検出した場合には、EEPROM10に記憶されて
いるところの、機種別仕様データ及び販売態様設定デー
タ並びに販売履歴データが、RAM4にコピーされて制
御が再開されるのである。
Further, although not shown in the figure, the control unit controls R due to program runaway or backup battery exhaustion.
When the data destruction of the AM4 is detected and the data destruction of the RAM4 is detected, the model-specific specification data, the sales mode setting data and the sales history data stored in the EEPROM 10 are copied to the RAM4. Control is resumed.

【0037】従って、本実施例においても、上記第1の
実施例と同様に、自動販売機の制御に必要なデータを保
護することができ、プログラムの暴走やRAM4のバッ
クアップ電池切れ等によりRAM4のデータが破壊され
ることがあっても、何ら手間をかけることなく速やかに
自動販売機の運転の再開を可能とすることができる。そ
して、本実施例では、販売履歴データについても同様に
保護され、プログラムの暴走やRAM4のバックアップ
電池切れ等があっても、販売履歴データを保持し続ける
ことができるものである。
Therefore, also in this embodiment, as in the case of the first embodiment, the data necessary for controlling the vending machine can be protected, and the data in the RAM 4 is lost due to a program runaway or RAM 4 backup battery exhaustion. Even if the data is destroyed, the operation of the vending machine can be promptly restarted without any trouble. Then, in the present embodiment, the sales history data is similarly protected, and the sales history data can be retained even if the program runs away or the backup battery of the RAM 4 runs out.

【0038】(3)第3及び第4の実施例 図4及び図5は本発明の第3の実施例を示すものであ
る。ここでは、図4に示すように、書換え可能ROMと
して記憶容量の比較的小さいEEPROM21を用い
て、安価に済ませるようにしている。そして、RAM4
においては、機種別仕様データ記憶領域4a、販売態様
設定データ記憶領域4b、販売履歴データ4cが作業領
域4dと共に設けられており、EEPROM21には、
そのうち、自動販売機の制御に最低限必要な機種別仕様
データ記憶領域4aの機種別仕様データのみが記憶され
るようになっている。この機種別仕様データは、工場サ
イドにおいて予めEEPROM21に記憶される。
(3) Third and Fourth Embodiments FIGS. 4 and 5 show a third embodiment of the present invention. Here, as shown in FIG. 4, the EEPROM 21 having a relatively small storage capacity is used as the rewritable ROM so that the cost can be reduced. And RAM4
2, a model-specific specification data storage area 4a, a sales mode setting data storage area 4b, and a sales history data 4c are provided together with a work area 4d.
Only the model-specific specification data in the model-specific specification data storage area 4a, which is the minimum necessary for controlling the vending machine, is stored. This model-specific specification data is stored in the EEPROM 21 in advance on the factory side.

【0039】従って、ここでは、工場サイドで機種別仕
様データをEEPROM21にデータを書込むときにの
み、スイッチ12がオンされるのである。そして、通常
の自動販売機の運転時において、EEPROM21にデ
ータが書込まれることはなくなり、図5のフローチャー
トに示すように、RAM4のデータが破壊されたとき
に、EEPROM21のデータが、RAM4にコピーさ
れるのである。尚、図5のフローチャートの説明につい
ては、上記各実施例における説明と重複するため省略す
る。
Therefore, here, the switch 12 is turned on only when the factory side writes the model-specific specification data in the EEPROM 21. Then, during normal operation of the vending machine, the data is not written in the EEPROM 21, and when the data in the RAM 4 is destroyed, the data in the EEPROM 21 is copied to the RAM 4 as shown in the flowchart of FIG. Is done. The description of the flowchart of FIG. 5 is omitted because it overlaps with the description of each of the above embodiments.

【0040】かかる第3の実施例によれば、上記各実施
例と同様に、プログラムの暴走やRAM4のバックアッ
プ電池切れ等によりRAM4のデータが破壊されても、
自動販売機の制御に必要なデータを保護することができ
る。しかも、この場合、自動販売機の制御時には、スイ
ッチ12がオンされることはないので、データ保護を確
実に行うことができるものである。
According to the third embodiment, as in each of the above embodiments, even if the data in the RAM 4 is destroyed due to a program runaway or a backup battery running out of the RAM 4,
The data required to control the vending machine can be protected. Moreover, in this case, the switch 12 is not turned on during the control of the vending machine, so that the data protection can be surely performed.

【0041】最後に、図6は本発明の第4の実施例を示
すものであり、この実施例では、機種別仕様データ及び
販売態様設定データを固定データとし、工場サイドで予
めEEPROM10(及びRAM4)に記憶させるよう
にしている。そして、図6に示すように、商品の販売に
伴ってRAM4内の販売履歴データが書替えられた場合
には、変更された販売履歴データがEEPROM10に
書込まれるようになっている。
Finally, FIG. 6 shows a fourth embodiment of the present invention. In this embodiment, the model-specific specification data and the sales mode setting data are fixed data, and the EEPROM 10 (and RAM 4) is preliminarily set on the factory side. ). Then, as shown in FIG. 6, when the sales history data in the RAM 4 is rewritten as the product is sold, the changed sales history data is written in the EEPROM 10.

【0042】また、RAM4のデータが破壊されたとき
には、EEPROM10に記憶されているところの、機
種別仕様データ及び販売態様設定データ並びに販売履歴
データが、RAM4にコピーされて制御が再開されるの
である。尚、上記第2の実施例の一部と重複するため、
フローチャートの各ステップの詳しい説明は省略するこ
ととする。
Further, when the data in the RAM 4 is destroyed, the model-specific specification data, the sales mode setting data and the sales history data, which are stored in the EEPROM 10, are copied to the RAM 4 and the control is restarted. . Incidentally, since it overlaps with a part of the second embodiment,
Detailed description of each step in the flowchart will be omitted.

【0043】従って、本実施例によっても、上記各実施
例と同様に、プログラムの暴走やRAM4のバックアッ
プ電池切れ等によりRAM4のデータが破壊されても、
自動販売機の制御に必要なデータを保護することができ
るものである。
Therefore, according to the present embodiment, as in the above-mentioned embodiments, even if the data in the RAM 4 is destroyed due to a program runaway or a backup battery running out in the RAM 4,
The data necessary for controlling the vending machine can be protected.

【0044】[0044]

【発明の効果】以上の説明にて明らかなように、本発明
の自動販売機の制御装置によれば、書換え可能ROMを
設けて自動販売機の運転に必要なデータをRAMと共に
記憶させ、しかも、書込み禁止回路により、必要時以外
において書換え可能ROMへのデータの書込みを不可能
としたので、プログラムの暴走やRAMのバックアップ
電池切れ等があっても、自動販売機の制御に必要なデー
タを保護することができ、ひいては、RAMのデータが
破壊されることがあった場合でも、速やかに自動販売機
の運転の再開を可能とすることができるという優れた実
用的効果を奏するものである。
As is apparent from the above description, according to the controller of the vending machine of the present invention, the rewritable ROM is provided to store the data necessary for the operation of the vending machine together with the RAM, and Since the write-protection circuit made it impossible to write data to the rewritable ROM except when necessary, the data necessary for controlling the vending machine can be stored even if the program runs out of control or the RAM backup battery runs out. Therefore, even if the data in the RAM can be protected, it is possible to quickly restart the operation of the vending machine, which is an excellent practical effect.

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

【図1】本発明の第1の実施例を示すもので、制御装置
の構成を示すブロック図
FIG. 1 is a block diagram showing a configuration of a control device according to a first embodiment of the present invention.

【図2】制御手順を示すフローチャートFIG. 2 is a flowchart showing a control procedure.

【図3】本発明の第2の実施例を示す図2相当図FIG. 3 is a view corresponding to FIG. 2 showing a second embodiment of the present invention.

【図4】本発明の第3の実施例を示すもので、RAM及
びEEPROMの構成を概念的に示す図
FIG. 4 is a diagram conceptually showing a configuration of a RAM and an EEPROM, showing a third embodiment of the present invention.

【図5】図2相当図FIG. 5 is a diagram corresponding to FIG. 2;

【図6】本発明の第4の実施例を示す図2相当図FIG. 6 is a view corresponding to FIG. 2, showing a fourth embodiment of the present invention;

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

図面中、1は制御装置、2はMPU(マイクロプロセッ
サ)、3はROM、4はRAM、5は電池、10,21
はEEPROM(書換え可能ROM)、11は書込み禁
止回路、12はスイッチを示す。
In the drawings, 1 is a control device, 2 is an MPU (microprocessor), 3 is a ROM, 4 is a RAM, 5 is a battery, 10 and 21.
Is an EEPROM (rewritable ROM), 11 is a write inhibit circuit, and 12 is a switch.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサ,ROM,RAMを
備え、制御プログラムに従って自動販売機を制御するも
のにおいて、 自動販売機の制御に必要なデータを前記RAMと共に記
憶する書換え可能ROMと、この書換え可能ROMへの
必要なデータの書込み時を除いて該書換え可能ROMに
対する前記マイクロプロセッサからのデータの書込みを
不可能とする書込み禁止回路とを具備することを特徴と
する自動販売機の制御装置。
1. A rewritable ROM for storing data necessary for controlling an automatic vending machine together with the RAM, which comprises a microprocessor, a ROM, a RAM, and controls the automatic vending machine according to a control program. A controller for a vending machine, comprising: a write-inhibit circuit for prohibiting writing of data from the microprocessor to the rewritable ROM except when writing necessary data to the rewritable ROM.
【請求項2】 書換え可能ROMには、自動販売機の機
種に応じて設定される機種別仕様データが記憶されるこ
とを特徴とする請求項1記載の自動販売機の制御装置。
2. The control device for a vending machine according to claim 1, wherein the rewritable ROM stores model-specific specification data set according to a model of the vending machine.
【請求項3】 RAMに記憶されていたデータが破壊さ
れたことを検出する検出手段と、この検出手段がデータ
の破壊を検出したときに書換え可能ROMに記憶されて
いたデータを前記RAMにコピーするデータコピー手段
とを具備することを特徴とする請求項1または2記載の
自動販売機の制御装置。
3. A detection means for detecting that the data stored in the RAM is destroyed, and the data stored in the rewritable ROM when the detection means detects the destruction of the data are copied to the RAM. The control device for the vending machine according to claim 1 or 2, further comprising:
【請求項4】 書換え可能ROMには、自動販売機の販
売態様を設定する販売態様設定データが記憶されること
を特徴とする請求項1ないし3のいずれかに記載の自動
販売機の制御装置。
4. The control device for a vending machine according to claim 1, wherein the rewritable ROM stores sales mode setting data for setting a sales mode of the vending machine. .
JP18686195A 1995-07-24 1995-07-24 Controller for automatic vending machine Pending JPH0935132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18686195A JPH0935132A (en) 1995-07-24 1995-07-24 Controller for automatic vending machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18686195A JPH0935132A (en) 1995-07-24 1995-07-24 Controller for automatic vending machine

Publications (1)

Publication Number Publication Date
JPH0935132A true JPH0935132A (en) 1997-02-07

Family

ID=16195950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18686195A Pending JPH0935132A (en) 1995-07-24 1995-07-24 Controller for automatic vending machine

Country Status (1)

Country Link
JP (1) JPH0935132A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058933A (en) * 2001-08-10 2003-02-28 Fuji Electric Co Ltd Controller for automatic vending machine

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003058933A (en) * 2001-08-10 2003-02-28 Fuji Electric Co Ltd Controller for automatic vending machine

Similar Documents

Publication Publication Date Title
US4654800A (en) Control and monitoring apparatus for vending machines
JPH0935132A (en) Controller for automatic vending machine
JPH08329323A (en) Automatic vending machine
US6339726B1 (en) Control apparatus for vending machine
JP2001101492A (en) Automatic vending machine controller
JP3601356B2 (en) Vending machine control device
JP3508882B2 (en) Vending machine display
JPH06119534A (en) Price setting device for automatic vending machine
JPH0823903B2 (en) vending machine
JP3213522B2 (en) vending machine
JP3684938B2 (en) Vending machine controller
JP2897797B2 (en) Vending machine production time management device
JP2000227856A (en) Memory control system
JP2644124B2 (en) Vending machine pricing device and pricing method
JP3501568B2 (en) Open showcase controls
JPH0620226Y2 (en) Failure display device for vending machines
JP2960531B2 (en) Control equipment for vending machines
JPH04111094A (en) Sales controller for automatic vending machine
JP2000163636A (en) Controller for automatic vending machine
JPH097041A (en) Automatic vending machine
JPH0591019A (en) Information receiver
JPH04123194A (en) Erroneous sale preventing device for vending machine
JPS62184594A (en) Coin processor for vending machine
JP2004049269A (en) Central controller for showcase
JPS61281390A (en) Alternate selling apparatus for vending machine