JPH04104391A - Controller for automatic vending machine - Google Patents

Controller for automatic vending machine

Info

Publication number
JPH04104391A
JPH04104391A JP22366190A JP22366190A JPH04104391A JP H04104391 A JPH04104391 A JP H04104391A JP 22366190 A JP22366190 A JP 22366190A JP 22366190 A JP22366190 A JP 22366190A JP H04104391 A JPH04104391 A JP H04104391A
Authority
JP
Japan
Prior art keywords
product
code
selection switch
sales
stored
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.)
Granted
Application number
JP22366190A
Other languages
Japanese (ja)
Other versions
JP3036803B2 (en
Inventor
Hiromu Otsuka
大塚 博武
Katsuyoshi Tajima
勝好 田島
Atsushi Ebara
江原 淳
Keita Shinozaki
啓太 篠崎
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2223661A priority Critical patent/JP3036803B2/en
Publication of JPH04104391A publication Critical patent/JPH04104391A/en
Application granted granted Critical
Publication of JP3036803B2 publication Critical patent/JP3036803B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To total sales amount by storage columns and to set sales information by addressing a storage part corresponding to a memory means from an input of a merchandise code. CONSTITUTION:By a bar code reader 1, a JAN code is read, and a column code and a merchandise selection switch code are read. By a CPU 21, a merchandise code included in the JAN code is stored in the address of a storage area 23. By the bar code reader 1, the JAN code is read, and the designation of a merchandise selection switch 8 and the designation of a merchandise storage column 2 are continuously performed, then the correspondence between the merchandise selection switch and the merchandise code and the correspondence between the merchandise storage column and the merchandise code can be performed. When the reading of the bar code from a sheet is performed, the correspondence between the merchandise code and the sales price can be simultaneously performed. Thus, the sales tabulation and the setting of the sales information can be easily performed.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、自動販売機において商品の売上集計、販売情
報の記憶を行う制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a control device for aggregating product sales and storing sales information in a vending machine.

(ロ)従来の技術 従来、商品の売上集計や販売情報の記憶は商品収納コラ
ム別に行うのが一般的であった。例えば売上集計である
と、各商品収納コラムに対応する記憶部をあらかじめメ
モリに設定しておき商品販売が行われると、対応する記
憶部に販売商品数を加算する構成が特開昭56−108
187号公報等にて知られている。
(B) Conventional Technology Conventionally, it has been common to aggregate product sales and store sales information for each product storage column. For example, in the case of sales aggregation, a storage section corresponding to each product storage column is set in memory in advance, and when a product is sold, the number of sold products is added to the corresponding storage section.
It is known from Publication No. 187, etc.

(ハ)発明が解決しようとする課題 このように、商品収納コラム別に売上を集計したり販売
情報を設定するには、メモリ手段の商品収納コラムごと
に設けた記憶部をアドレスしなければならないが、それ
にはキーボードにて行うことが多く、このような構成で
あると操作に熟達していない自動販売機の管理者にとっ
ては難しい作業となっていた。
(c) Problems to be Solved by the Invention As described above, in order to aggregate sales or set sales information for each product storage column, it is necessary to address the storage section provided for each product storage column in the memory means. This is often done using a keyboard, and this configuration makes it difficult for vending machine managers who are not proficient in operating the machine.

従って、本発明は、自動販売機で販売しようとする商品
にバーコードにて印刷されている商品コードによって、
商品収納コラム別に売上を集計したり販売情報を設定し
たりすることのできる自動販売機の制御装置を提供する
ものである。
Therefore, according to the present invention, by the product code printed in the form of a bar code on the product to be sold in a vending machine,
To provide a control device for a vending machine that can aggregate sales and set sales information for each product storage column.

(ニ)課題を解決するための手段 上記の課題を解決するために、本発明による自動販売機
の制御装置は、商品コード別に売上集計や販売情報を記
憶するための記憶部を有するメモリ手段と、前記商品コ
ードの入力に応答して前記メモリ手段をアクセスする処
理手段とを具備している。
(d) Means for Solving the Problems In order to solve the above problems, the vending machine control device according to the present invention includes memory means having a storage section for storing sales totals and sales information for each product code. , processing means for accessing the memory means in response to input of the product code.

(ホ)作用 商品コード別に売上集計、販売情報の記憶を行う場合、
処理手段は商品コードの入力によりメモリ手段の対応す
る記憶部をアドレスし、売上情報を読み出したり、また
は販売情報をロードする。
(E) When calculating sales and storing sales information by product code,
The processing means addresses the corresponding storage section of the memory means by inputting the product code, and reads out sales information or loads sales information.

(へ)実施例 第1図はこの発明の実施例を示す自動販売機の全体斜視
図である。自動販売機5の接客パネル6には、硬貨投入
ロアや複数の商品選択スイッチ8が設けられ、扉9を開
けた内部には制御ボックス10及び硬貨処理装置11が
配設されている。制御ボックス10にはバーコードリー
ダー1が接続されると共に、その中には、CPUなどに
よって構成される制御部が収納されている。また制御ボ
ックス10の横には、売上集計データをプリントアウト
するためのプリンタユニット31を取り付けている。硬
貨処理装置11は、硬貨投入ロアに硬貨処理装置11は
、硬貨投入ロアに投入された硬貨を選別する硬貨セレク
タ11A、硬貨収納部11Bおよびこの硬貨収納部に収
納されている硬貨を硬貨取出口17に払い出すための硬
貨払出装置11cから成る。そして、扉9の背面には、
各商品選択スイッチ8に対応しそれぞれ該当している商
品選択スイッチを表す商品選択スイッチコードがバーコ
ードにて表示されている商品選択スイッチ識別部29を
設けている。この商品選択スイッチコードは、例えば各
商品選択スイッチ8に割り付けたスイッチ番号を表示す
るものである。
(F) Embodiment FIG. 1 is an overall perspective view of a vending machine showing an embodiment of the present invention. A customer service panel 6 of the vending machine 5 is provided with a coin insertion lower and a plurality of product selection switches 8, and a control box 10 and a coin processing device 11 are arranged inside the door 9 when the door 9 is opened. A barcode reader 1 is connected to the control box 10, and a control unit including a CPU and the like is housed therein. Further, next to the control box 10, a printer unit 31 is installed for printing out sales total data. The coin processing device 11 includes a coin input lower, a coin selector 11A that selects coins input into the coin input lower, a coin storage section 11B, and a coin output port for transferring the coins stored in the coin storage section. It consists of a coin dispensing device 11c for dispensing coins. And on the back of door 9,
Corresponding to each product selection switch 8, a product selection switch identification section 29 is provided in which a product selection switch code representing the corresponding product selection switch is displayed in the form of a bar code. This product selection switch code displays, for example, the switch number assigned to each product selection switch 8.

第2図は、前面扉3を開放した状態を示しており、自動
販売機5の庫内には5列の商品収納コラム2を設け、商
品収納コラム2の下方には商品取出口4に連通ずるシュ
ート12を配置している。
FIG. 2 shows a state in which the front door 3 is open, and the interior of the vending machine 5 is provided with five rows of product storage columns 2, and the lower part of the product storage column 2 is connected to the product takeout port 4. A connecting chute 12 is arranged.

商品収納コラム2の上部には商品投入口2Aが開口され
ており、収納する商品はこの商品投入口2Aを通して内
部に充填される。また、商品収納コラム2のそれぞれに
は、対応しているコラムを表わすコラムコードをバーコ
ードにて表示するコラム識別部28が設けられている。
A product inlet 2A is opened at the top of the product storage column 2, and the products to be stored are filled into the interior through the product inlet 2A. Further, each of the product storage columns 2 is provided with a column identification section 28 that displays a column code representing the corresponding column in the form of a barcode.

このコラムコードは、例えば各商品収納コラム2に割り
付けたコラム番号等を表示するものである。
This column code displays, for example, the column number assigned to each product storage column 2.

第3図は自動販売機5の構成をブロックにて示すもので
、制御ボックス10に格納される制御部は、プログラノ
\により制御動作を実行する中央処理ユニット(CPU
)21を含み、このCPU21にアドレスバス25及び
データバス26を介して、動作用のプログラムを格納し
たROM22゜RAM23.I10インターフェース2
4を接続している。そして、I10インターフェース2
4には、バーコードリーダーlと、硬貨処理装置11と
、表示装置14と、選択装置15と、販売装置16と、
モードスイッチ18、プリンタユニット31と、集計ス
イッチ32とが接続されている。
FIG. 3 shows the configuration of the vending machine 5 in block form. The control unit stored in the control box 10 is a central processing unit (CPU) that executes control operations using
) 21, and a ROM 22 and a RAM 23 . I10 interface 2
4 is connected. And I10 interface 2
4 includes a barcode reader l, a coin processing device 11, a display device 14, a selection device 15, a vending device 16,
A mode switch 18, a printer unit 31, and a tally switch 32 are connected.

硬貨処理装置11は、硬貨セレクタ16にて適正と判別
された硬貨の金額を表す信号をI10インターフェース
24を通してCPU21に出力する。また、硬貨処理装
置11は、CPUl0がら硬貨の払い出しを表す信号が
I10インターフェース24を通して入力されると硬貨
払出装置18を駆動する。
The coin processing device 11 outputs a signal representing the amount of the coin determined to be appropriate by the coin selector 16 to the CPU 21 through the I10 interface 24. Further, the coin processing device 11 drives the coin dispensing device 18 when a signal representing coin dispensing is input from the CPU 10 through the I10 interface 24.

表示装置14は、各商品収納コラム2に対応して設けた
5個のコラムインジケータ19と、各商品選択スイッチ
8に対応して設けた7個の選択スイッチインジケータ2
0を含め、それぞれのインジケータは、I10インター
フェース24を通してCPU21から入力される表示デ
ータに基づいて駆動が制御される。選択スイッチインジ
ケータ2・0は接客パネル6に設けられており、通常の
販売モードにおいては、顧客が貨幣を投入したときに投
入金額にて購入可能な商品を点灯にて示す、いわゆる販
売可インジケータとして機能するものである。
The display device 14 includes five column indicators 19 provided corresponding to each product storage column 2 and seven selection switch indicators 2 provided corresponding to each product selection switch 8.
The driving of each indicator including 0 is controlled based on display data input from the CPU 21 through the I10 interface 24. The selection switch indicator 2.0 is provided on the customer service panel 6, and in the normal sales mode, when the customer inserts money, the selection switch indicator 2.0 is used as a so-called sellable indicator that lights up to indicate the products that can be purchased with the inserted amount. It's something that works.

選択装置15は複数の商品選択スイッチ8を含み、この
選択装置15からは、商品選択スイッチ8が操作された
ことを表す信号がI10インターフェース24を通して
CPU21に入力される。
The selection device 15 includes a plurality of product selection switches 8, and a signal indicating that the product selection switch 8 has been operated is input from the selection device 15 to the CPU 21 through the I10 interface 24.

販売装置16は、商品収納コラム2に対応して商品送出
用の駆動モータを含み、CPU21は、I10インター
フェース24を通してこのモータに商品の送出を表す指
令を与える。
The vending device 16 includes a drive motor for sending out the product corresponding to the product storage column 2, and the CPU 21 gives a command for sending out the product to this motor through the I10 interface 24.

プリンタユニット31は、集計スイッチ32の操作に応
答してCPU21が出力する売上集計データをプリント
アウトする。
The printer unit 31 prints out the sales total data output by the CPU 21 in response to the operation of the total switch 32.

モードスイッチ18は、通常の販売モードと設定モード
とを切り換えるために操作される。CPU2]は、販売
モードにおいてこのモードスイッチ14が操作されると
自動販売機を設定モードとしてバーコードリーダー1を
駆動する。これにより、バーコードリーダー1は、商品
13に印刷されている商品コード、コラム識別部28に
表示されているコラムコード、及び商品選択スイッチ識
別部29に表示されている商品選択スイッチコードを読
み取ることができる。
The mode switch 18 is operated to switch between normal sales mode and setting mode. When the mode switch 14 is operated in the vending mode, the CPU 2 sets the vending machine to the setting mode and drives the barcode reader 1. This allows the barcode reader 1 to read the product code printed on the product 13, the column code displayed in the column identification section 28, and the product selection switch code displayed in the product selection switch identification section 29. I can do it.

商品コードは、POSシステムのためのJIS規格で規
定された共通コード用バーコードシンボル、いわゆるJ
ANコードと呼ばれているものであり、先頭から順に2
桁の国別コード(49で日本を表す)と、5桁の商品メ
ーカーコードと、5桁の商品アイテムコード(以下、便
宜上これを商品コードと言う)と、1桁のチエツクデジ
ットが配列されている。このようにJANコードは、頭
の2桁のコードが49であることが決められているため
に、先頭の2桁をチエツクすることでJANコードであ
るかの判別を行うことができる。従って、本例のコラム
コード及び商品選択スイッチコードはその頭の2桁を識
別コード部にして、ここに49以外の数値に設定するこ
とで3つのコードを区別できるようにしている。
The product code is a common code barcode symbol specified by the JIS standard for POS systems, so-called J
This is called an AN code, and from the beginning it is 2.
A digit country code (49 represents Japan), a 5-digit product manufacturer code, a 5-digit product item code (hereinafter referred to as the product code for convenience), and a 1-digit check digit are arranged. There is. In this way, since the first two digits of the JAN code are determined to be 49, it is possible to determine whether it is a JAN code by checking the first two digits. Therefore, the first two digits of the column code and product selection switch code in this example are used as an identification code part, and by setting a value other than 49 here, the three codes can be distinguished.

CPU21は、設定モードでのバーコードリーダー1の
読み取りに基づいて商品収納コラム2と商品選択スイッ
チ8との対応をRAM23に格納する。
The CPU 21 stores the correspondence between the product storage column 2 and the product selection switch 8 in the RAM 23 based on the reading of the barcode reader 1 in the setting mode.

第4図はRAM23の記憶フォーマットを示しており、
RAM23は少なくとも4通りの記憶領域を有する。
Figure 4 shows the storage format of the RAM 23.
The RAM 23 has at least four types of storage areas.

記憶領域23aはバッファ記憶部であり、バーコードリ
ーダー1にて読み取った商品コードを記憶する商品コー
ドバッファ、コラムインジケータ表示バッファ、選択ス
イッチインジケータ表示バッファ、投入金額バッファ、
プリントバッファ等を備えている。そして、5ビツトの
コラムインジケータ表示バッファには、5個のコラムイ
ンジケータ19の点灯あるいは消灯を1ビツトの“1”
あるいは“0”にて示す表示データが記憶される。
The storage area 23a is a buffer storage section, which includes a product code buffer for storing the product code read by the barcode reader 1, a column indicator display buffer, a selection switch indicator display buffer, an input amount buffer,
Equipped with print buffer etc. Then, in the 5-bit column indicator display buffer, a 1-bit "1" is written to turn on or off the five column indicators 19.
Alternatively, display data indicated by "0" is stored.

また、5ビツトの選択スイッチインジケータ表示バッフ
ァには、5個の選択スイッチインジケータ20の点灯あ
るいは消灯を1ビツトの“1”あるいは“0”にて示す
表示データが記憶される。
Further, the 5-bit selection switch indicator display buffer stores display data indicating whether the five selection switch indicators 20 are turned on or off as 1 bit "1" or "0".

記憶領域23bは、各商品選択スイッチ8とこの商品選
択スイッチ8の操作により販売する商品の商品コードと
の対応を記憶する領域であり、商品選択スイッチ8の数
と等しい5個のアドレスを有する。
The storage area 23b is an area for storing the correspondence between each product selection switch 8 and the product code of the product sold by operating the product selection switch 8, and has five addresses equal to the number of product selection switches 8.

記憶領域23cは、各商品収納コラム2とこの商品収納
コラム2に収納する商品の商品コードとの対応を記憶す
る領域であり、商品収納コラム2の数と等しい5個のア
ドレスを有する。
The storage area 23c is an area for storing the correspondence between each product storage column 2 and the product code of the product stored in this product storage column 2, and has five addresses equal to the number of product storage columns 2.

記憶領域23dは、商品コードとこのコードに該当する
商品の販売価格を記憶する領域であり、この自動販売機
5は、5列の商品収納コラムを有して最大5種類の商品
を販売できるために、5個のアドレスを有する。そして
、本例ではシート30に印刷されているバーコードをバ
ーコードリーダーlにて読み取ることにより、記憶領域
23dに販売価格を格納することができる。
The storage area 23d is an area for storing the product code and the sales price of the product corresponding to this code, and this vending machine 5 has 5 product storage columns and can sell up to 5 types of products. has five addresses. In this example, by reading the barcode printed on the sheet 30 with the barcode reader l, the selling price can be stored in the storage area 23d.

記憶領域23eは、各商品コードごとに売上累計金額や
売上累計数等の売上集計データを記憶する領域であり、
商品コードの設定によりその設定数に応じた売上集計デ
ータ記憶部が設けられる。
The storage area 23e is an area for storing total sales data such as cumulative sales amount and cumulative sales number for each product code.
Depending on the setting of the product code, a sales summary data storage unit is provided according to the set number.

上記構成の自動販売機5の動作を説明する。The operation of the vending machine 5 having the above configuration will be explained.

(設定モード) 設定モードでの動作を第5A図のフローチャートにより
説明する。
(Setting Mode) The operation in the setting mode will be explained with reference to the flowchart of FIG. 5A.

まず、ステップS1では、CP U 21 j、tバー
コードリーダー1に駆動信号を与え、これにより、バー
コードリーダー1はバーコードを読み取ることができる
。そして、ステップS2にてバーコードが入力されると
、CPU21は、次のS3.S4、S5.S6の各ステ
ップにおいて、入力されたバーコードの種類を判別する
First, in step S1, the CPUs 21j and t give drive signals to the barcode reader 1, so that the barcode reader 1 can read the barcode. Then, when the barcode is input in step S2, the CPU 21 performs the next step S3. S4, S5. In each step of S6, the type of the input barcode is determined.

ステップS3において、ステップS2で入力されたバー
コードがJANコードであることを判別すると、ステッ
プ515の処理に進む。ステップS15においては、C
PU21はこのJANコードに含まれている商品コード
を取り出して、同じ商品コードがRAM23の記憶領域
23b、23Cに格納されているかを判別する。そして
、格納されている場合にはステップ816に進み、この
商品コードに対応しているコラムインジケータ19及び
選択スイッチインジケータ20を駆動する。
In step S3, if it is determined that the barcode input in step S2 is a JAN code, the process proceeds to step 515. In step S15, C
The PU 21 extracts the product code included in this JAN code and determines whether the same product code is stored in the storage areas 23b and 23C of the RAM 23. If the product code is stored, the process advances to step 816, and the column indicator 19 and selection switch indicator 20 corresponding to this product code are driven.

即ち、CPU21は、記憶領域23bから当該商品コー
ドを記憶している商品選択スイッチ8を検出し、この商
品選択スイッチ8に対応している選択スイッチインジケ
ータ20の駆動を指示する表示データをRAM23の選
択スイッチインジケータ表示バッファに格納して表示装
置14に出力する。また、CPU21は、記憶領域23
cからは当該商品コードを記憶している商品収納コラム
2を検出し、この商品収納コラム2に対応しているコラ
ムインジケータ19の駆動を指示する表示データをRA
M23のコラムインジケータ表示バッファに格納して表
示装置14に出力する。
That is, the CPU 21 detects the product selection switch 8 storing the product code from the storage area 23b, and selects display data in the RAM 23 that instructs to drive the selection switch indicator 20 corresponding to the product selection switch 8. It is stored in the switch indicator display buffer and output to the display device 14. In addition, the CPU 21
From c, the product storage column 2 storing the product code is detected, and display data instructing to drive the column indicator 19 corresponding to this product storage column 2 is sent to RA.
It is stored in the column indicator display buffer of M23 and output to the display device 14.

ステップS15の処理にて、該当の商品コードが記憶領
域23b、23cに記憶されていないことを判別すると
ステップS17の処理に進み、この商品コードを商品コ
ードバヅファに格納する。
If it is determined in the process of step S15 that the corresponding product code is not stored in the storage areas 23b, 23c, the process proceeds to step S17, and this product code is stored in the product code buffer.

ステップS4において、ステップS2で入力されたバー
コードがコラムコードであることを判別すると、ステッ
プS18の処理に進む。このステップS18においては
、商品コードバッファに商品コードを格納しているかを
判別し、格納しているとステップS19の処理に進む。
If it is determined in step S4 that the barcode input in step S2 is a column code, the process proceeds to step S18. In this step S18, it is determined whether a product code is stored in the product code buffer, and if it is, the process proceeds to step S19.

ステップS19においては、CPU21は、RAM23
の記憶領域23cにおいて、コラムコードにて示されて
いる商品収納コラム2に対応するアドレスにこの商品コ
ードを格納する。一方、商品コードバッファに商品コー
ドを格納していないと、ステップS20にてエラー処理
を行ってステップS1の処理に復帰する。
In step S19, the CPU 21
In the storage area 23c, this product code is stored at the address corresponding to the product storage column 2 indicated by the column code. On the other hand, if the product code is not stored in the product code buffer, error processing is performed in step S20 and the process returns to step S1.

ステップS5において、ステップS2で入力されたバー
コードが販売価格コードであることを判別すると、ステ
ップS21の処理に進む。ステップS21においては、
商品コードバッファに商品コードを格納しているかを判
別し、格納しているとステップS22の処理に進むが、
格納していないとステップS23にてエラー処理を行う
In step S5, if it is determined that the barcode input in step S2 is a sales price code, the process proceeds to step S21. In step S21,
It is determined whether the product code is stored in the product code buffer, and if it is stored, the process proceeds to step S22.
If it is not stored, error processing is performed in step S23.

ステップS22においては、CPU21は、商品コード
バッファに格納している商品コードとバーコードリーダ
ー1にて読み取った販売価格を表すバーコードとをRA
M23の記憶領域23dに格納する。このように、販売
価格を設定したい商品18に印刷されているバーコード
をバーコードノーダ−1にて読み取り、続いてシート3
0の中から設定すべき販売価格を表示しているバーコー
ドを選び出しバーコードリーダー1により読み取ること
で商品と販売価格の対応がRAM23に格納される。
In step S22, the CPU 21 RAs the product code stored in the product code buffer and the barcode representing the selling price read by the barcode reader 1.
It is stored in the storage area 23d of M23. In this way, read the barcode printed on the product 18 for which you want to set the selling price using the barcode noder 1, and then
By selecting a barcode displaying the selling price to be set from 0 and reading it with the barcode reader 1, the correspondence between the product and the selling price is stored in the RAM 23.

ステップS6において、ステップS2で入力されたバー
コードが商品選択スイッチコードであることを判別する
と、ステップS8の処理に進む。
In step S6, if it is determined that the barcode input in step S2 is a product selection switch code, the process proceeds to step S8.

しかして、商品選択スイッチ8の指定は、バーコードリ
ーダー1にて商品選択スイッチコードを読み取る以外に
、直接、商品選択スイッチ8を操作することでも行える
。従って、ステップS6において商品選択スイッチコー
ドでないことを判別するとステップS7の処理となり、
ここで商品選択スイッチ8が操作されたかを判別する。
Therefore, the product selection switch 8 can be designated by directly operating the product selection switch 8, in addition to reading the product selection switch code with the barcode reader 1. Therefore, if it is determined in step S6 that it is not a product selection switch code, the process goes to step S7.
Here, it is determined whether the product selection switch 8 has been operated.

そして、商品選択スイッチ8が操作されていると、ステ
ップS8の処理に進む。
If the product selection switch 8 is operated, the process advances to step S8.

ステップS8においては、商品コードバッファに商品コ
ードを格納しているかを判別し、格納しているとステッ
プS9の処理に進むが、格納していないとステップS2
0にてエラー処理を行う。
In step S8, it is determined whether the product code is stored in the product code buffer. If it is stored, the process proceeds to step S9, but if it is not stored, step S2
Error processing is performed at 0.

ステップS9においては、CPU21は選択スイッチイ
ンジケータ表示バッファに記憶している表示データから
、この商品選択スイッチ8に対応する選択スイッチイン
ジケータ20を駆動しているかを判別する。そして、該
当の選択スイッチインジケータ20を駆動していると、
ステップS10の処理に進む。このステップS10では
、RAM23の記憶領域23bについて、この商品選択
スイッチ8に対応するアドレスに格納している内容をク
リアする。次のステップSllにおいてはCPU21は
、この商品選択スイッチ8に対応している選択スイッチ
インジケータ20を消灯する表示データを、選択スイッ
チインジケータ表示バッファに格納し表示装置14に出
力する。
In step S9, the CPU 21 determines whether the selection switch indicator 20 corresponding to this product selection switch 8 is being driven from the display data stored in the selection switch indicator display buffer. Then, when the corresponding selection switch indicator 20 is activated,
The process advances to step S10. In this step S10, the contents stored in the storage area 23b of the RAM 23 at the address corresponding to the product selection switch 8 are cleared. In the next step Sll, the CPU 21 stores display data for turning off the selection switch indicator 20 corresponding to the product selection switch 8 in the selection switch indicator display buffer and outputs it to the display device 14.

しかるに、指示された商品選択スイッチ8に対応する選
択スイッチインジケータ20を駆動していない場合はス
テップS12の処理となる。このステップS]2におい
ては、CPU21は、RAM23の記憶領域23bにお
いて、この商品選択スイッチ8に対応するアドレスに商
品コードバッファに記憶している商品コードを格納する
。そして、次のステップS13においてCPU21は、
この商品選択スイッチ8に対応している選択スイッチイ
ンジケータ20を点灯する表示データを選択スイッチイ
ンジケータ表示バッファに格納し表示装置14に出力す
る。
However, if the selection switch indicator 20 corresponding to the instructed product selection switch 8 is not activated, the process goes to step S12. In step S]2, the CPU 21 stores the product code stored in the product code buffer at the address corresponding to the product selection switch 8 in the storage area 23b of the RAM 23. Then, in the next step S13, the CPU 21
Display data for lighting up the selection switch indicator 20 corresponding to the product selection switch 8 is stored in the selection switch indicator display buffer and output to the display device 14.

このように、バーコードリーダー1によりJANコード
を読み取らせ、続いて、この商品を収納する商品コラム
に該当するコラムコードを全て読み取らせることにより
、指定の商品収納コラム2に対応する記憶領域23cの
アドレスにはJ、A Nコードに含まれている商品コー
ドが格納される。
In this way, by having the barcode reader 1 read the JAN code and then reading all the column codes that correspond to the product column that stores this product, the storage area 23c corresponding to the specified product storage column 2 is stored. The product code included in the J and AN codes is stored in the address.

また、バーコードリーダー1によりJANコードを読み
取らせ、続いて、バーコードリーダー1によりこの商品
に対応させたい商品選択スイッチ8に該当する商品選択
スイッチコードを全て読み取らせるか、または直接商品
選択スイッチ8を操作することにより、指定の商品選択
スイッチ8に対応する記憶領域23bのアドレスにはJ
ANコードに含まれている商品コードが格納される。こ
のとき、バーコードリーダー1によりJANコードを読
み取らせ、続いて商品選択スイッチ8の指定と商品収納
コラム2の指定を連続して行えば、商品選択スイッチと
商品コードとの対応と、商品収納コラムと商品コードと
の対応とを一緒に行うことができる。また、このときシ
ート3oがらのバーコードの読み取りも行えば、商品コ
ードと販売価格との対応も同時に行うことができる。
Also, the barcode reader 1 reads the JAN code, and then the barcode reader 1 reads all the product selection switch codes that correspond to the product selection switch 8 that you want to correspond to this product, or you can directly read the product selection switch 8 By operating , the address of the storage area 23b corresponding to the specified product selection switch 8 is set to J.
The product code included in the AN code is stored. At this time, if you read the JAN code with the barcode reader 1 and then specify the product selection switch 8 and the product storage column 2 in succession, you can see the correspondence between the product selection switch and the product code and the product storage column. and correspondence with the product code can be done together. Furthermore, if the barcode on the sheet 3o is also read at this time, correspondence between the product code and the selling price can be done at the same time.

そして、ステップS14においては、モードスイッチ1
8の再度の操作により設定が終了されたかを判別し、終
了していると自動販売機5は販売モードとなる。しかる
に、終了されていない場合はステップS1の処理に復帰
する。
Then, in step S14, mode switch 1
It is determined whether the setting is completed by the operation 8 again, and if the setting is completed, the vending machine 5 enters the vending mode. However, if the process has not been completed, the process returns to step S1.

(販売モード) 次に、この自動販売機5の販売モードでの動作を第5B
図のフローチャートにより説明する。
(Vending mode) Next, the operation of this vending machine 5 in the vending mode will be described in 5B.
This will be explained using the flowchart shown in the figure.

ステップ5100においては、CPU21は、硬貨処理
装置11から投入硬貨の金額を示す信号が送られている
かを判別し、送られてきていると次のステップ5101
で投入金額バッファに格納している金額にこの金額を加
算する。次の、ステップ5102では、商品選択スイッ
チ8が操作されて商品の選択が行われたかを判別し、商
品選択スイッチ8が操作されているとステップ8103
の処理に進む。このステップ8103においては、RA
M23の記憶領域23bから選択された商品選択スイッ
チ8に対応する商品コードを検出し、商品コードバッフ
ァに格納する。次の、ステップ5104においては、商
品コードバッファに格納した商品コードに基づき、RA
M23の記憶領域23dがら当該商品の販売価格を検索
し、この販売価格と投入金額バッファに格納している投
入金額との比較を行って選択された商品が販売可能であ
るかを判別する。
In step 5100, the CPU 21 determines whether a signal indicating the amount of coins inserted is being sent from the coin processing device 11, and if so, the CPU 21 proceeds to the next step 5101.
Add this amount to the amount stored in the input amount buffer. In the next step 5102, it is determined whether the product selection switch 8 has been operated to select a product, and if the product selection switch 8 has been operated, step 8103
Proceed to processing. In this step 8103, RA
The product code corresponding to the selected product selection switch 8 is detected from the storage area 23b of M23 and stored in the product code buffer. In the next step 5104, based on the product code stored in the product code buffer, RA
The storage area 23d of M23 is searched for the selling price of the product, and this selling price is compared with the input amount stored in the input amount buffer to determine whether the selected item can be sold.

選択された商品が販売可能であるとステップ5105の
処理となり、商品コードバッファに格納している商品コ
ードに基づいて、RAM23の記憶領域23cから当該
商品を収納している商品収納コラム2を検索する。次の
ステップS 106では販売制御処理となり、CPU2
1は、検索した商品収納コラム2に対応している商品送
出用の駆動モータに駆動信号を与えて商品送出動作を制
御すると共に、釣銭を演算し必要に応じて硬貨処理装置
11の釣銭払い出し動作を制御する。
If the selected product is available for sale, the process goes to step 5105, in which the product storage column 2 that stores the product is searched from the storage area 23c of the RAM 23 based on the product code stored in the product code buffer. . In the next step S106, sales control processing is performed, and the CPU 2
1 controls the product delivery operation by giving a drive signal to the drive motor for product delivery corresponding to the searched product storage column 2, calculates change, and operates the coin processing device 11 to dispense change as necessary. control.

CPU21は、販売動作の終了によりステップ5107
の処理となる。このステップ5107においては、商品
コードバッファに格納している商品コードをRAM23
の記憶領域23eに格納しているかを判別する。そして
、商品コードを格納している場合、即ち、この商品コー
ドについての売上集計データを記憶するアドレスを記憶
領域23eに設定しているとステップSL、08の処理
となる。
Upon completion of the sales operation, the CPU 21 returns to step 5107.
This will be the process. In this step 5107, the product code stored in the product code buffer is transferred to the RAM 23.
It is determined whether the data is stored in the storage area 23e. If a product code is stored, that is, if an address for storing total sales data for this product code is set in the storage area 23e, the process goes to step SL08.

ステップ5108においては、CPU21は、この商品
コードに対応する売上集計データ記憶部に格納している
売上集計データに当該販売動作での売上データを加算し
た後ステップ5100の処理に戻る。
In step 5108, the CPU 21 adds the sales data of the sales operation to the sales summary data stored in the sales summary data storage unit corresponding to this product code, and then returns to the process of step 5100.

しかるに、商品コードバッファに格納している商品コー
ドをRAM23の記憶領域23eに格納していない場合
はステップS 109の処理となり、記憶領域23eに
この商品コードと売上データとを格納してステップ51
00の処理に戻る。これにより、CPU21は、記憶領
域23eにこの商品コードに対応する売上集計データ記
憶部を設定すると同時に、最初の売上集計データを当該
記憶部に格納したことになる。
However, if the product code stored in the product code buffer is not stored in the storage area 23e of the RAM 23, the process goes to step S109, stores this product code and sales data in the storage area 23e, and then returns to step S51.
Return to 00 processing. Thereby, the CPU 21 sets the sales summary data storage section corresponding to this product code in the storage area 23e, and at the same time stores the first sales summary data in the storage section.

(売上集計モード) 集計スイッチ32を操作すると、記憶領域23eに格納
している売上集計データをプリンタユニット31にてプ
リントアウトすることができる。
(Sales aggregation mode) When the aggregation switch 32 is operated, the sales aggregation data stored in the storage area 23e can be printed out by the printer unit 31.

この動作を第5C図の動作により説明する。This operation will be explained using the operation shown in FIG. 5C.

まず、ステップS50では、CPU21はバーコードリ
ーダー1に駆動信号を与え、次のステップS2にてバー
コードが入力されると、ステップS52にて入力された
コードがJANコードであるかを判別する。そして、J
ANコードであることを判別すると、ステップS53の
処理に進む。
First, in step S50, the CPU 21 gives a drive signal to the barcode reader 1, and when a barcode is input in the next step S2, it is determined in step S52 whether the input code is a JAN code. And J
If it is determined that it is an AN code, the process advances to step S53.

ステップS53においては、CPU21はこのJANコ
ードに含まれている商品コードを取り出して、同じ商品
コードがRAM23の記憶領域23eに格納されている
か、即ち、この商品コードに対応して記憶領域23eに
売上集計データ記憶部を設定しているかを判別する。
In step S53, the CPU 21 extracts the product code included in this JAN code and checks whether the same product code is stored in the storage area 23e of the RAM 23, that is, the sales amount is stored in the storage area 23e corresponding to this product code. Determine whether the aggregated data storage section is set.

そして、同し商品コードが記憶領域23eに格納されて
いる場合は、CPU21はステップs54の処理に進み
、この商品コードに対応する売上集計データ記憶部から
売上集計データを読み出してRAM23のプリントバッ
ファに格納してプリンタユニット31に出力する。これ
によりプリンタユニット31が駆動して売上集計データ
をプリントアウトする。
If the same product code is stored in the storage area 23e, the CPU 21 proceeds to step s54, reads the sales summary data from the sales summary data storage unit corresponding to this product code, and stores it in the print buffer of the RAM 23. It is stored and output to the printer unit 31. This drives the printer unit 31 to print out the total sales data.

そして、ステップS55においては、集計スイッチ32
の再度の操作により売上集計が終了されたかを判別し、
終了していると自動販売機5は販売モードとなる。しか
るに、終了されていない場合はステップS50の処理に
復帰する。
Then, in step S55, the total switch 32
Determine whether sales aggregation has been completed by performing the operation again,
When the vending machine 5 is finished, the vending machine 5 enters the vending mode. However, if the process has not been completed, the process returns to step S50.

以上の自動販売機5は、設定モードにおいてバーコード
リーダー1により商品コードと販売価格を読み取ること
により、RAM23の記憶領域23dに販売価格を記憶
する。RAM23に記憶する販売情報は販売価格に限る
ものではなく、例えば、自動販売機内に商品別に補給し
た商品数等がある。また、売上集計モードにおいてバー
コードリーダー1により商品コードを読み取ることによ
り、RAM23の記憶領域23eからこの商品に対応す
る売上集計データを読み出す。
The above vending machine 5 stores the selling price in the storage area 23d of the RAM 23 by reading the product code and selling price using the barcode reader 1 in the setting mode. The sales information stored in the RAM 23 is not limited to the sales price, but includes, for example, the number of products replenished for each product in the vending machine. Further, by reading the product code with the barcode reader 1 in the sales total mode, sales total data corresponding to this product is read from the storage area 23e of the RAM 23.

(ト)発明の効果 本発明によれば、商品コードを入力することで、処理手
段は、商品コード別に売上集計や販売情報を記憶するた
めの記憶部を有するメモリ手段をアクセスするために、
売上集計や販売情報の設定を容易に行える効果がある。
(g) Effects of the Invention According to the present invention, by inputting a product code, the processing means accesses the memory means having a storage unit for storing sales totals and sales information for each product code.
This has the effect of making it easier to aggregate sales and set sales information.

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

第1図はこの発明の実施例の自動販売機の全体斜視図、
第2図は前面扉を開けた状態を示す図、第3図は電気的
な構成をブロックにて示す図、第4図はRAMの記憶フ
ォーマットを模式的に示す図、第5A図、第5B図、第
5C図はそれぞれ設定モード・販売モード・売上集計モ
ードでの動作を説明するフローチャートである。 1・・・バーコードリーダー、2・・・商品収納コラム
8・・・商品選択スイッチ、21・・・cpu (処理
手段)、22・・・RAM。
FIG. 1 is an overall perspective view of a vending machine according to an embodiment of the present invention;
Figure 2 shows the front door open, Figure 3 shows the electrical configuration in blocks, Figure 4 schematically shows the RAM storage format, Figures 5A and 5B. 5C are flowcharts explaining operations in the setting mode, sales mode, and sales aggregation mode, respectively. 1... Barcode reader, 2... Product storage column 8... Product selection switch, 21... CPU (processing means), 22... RAM.

Claims (1)

【特許請求の範囲】 1、商品コードがバーコードにて印刷されている商品を
販売する自動販売機において、 商品コード別に売上集計や販売情報を記憶するための記
憶部を有するメモリ手段と、前記商品コードの入力に応
答して前記メモリ手段をアクセスする処理手段とを有す
る自動販売機の制御装置。
[Scope of Claims] 1. A vending machine that sells products with product codes printed in barcodes, comprising: a memory means having a storage unit for storing sales totals and sales information for each product code; and processing means for accessing the memory means in response to input of a product code.
JP2223661A 1990-08-23 1990-08-23 Vending machine control device Expired - Fee Related JP3036803B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2223661A JP3036803B2 (en) 1990-08-23 1990-08-23 Vending machine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2223661A JP3036803B2 (en) 1990-08-23 1990-08-23 Vending machine control device

Publications (2)

Publication Number Publication Date
JPH04104391A true JPH04104391A (en) 1992-04-06
JP3036803B2 JP3036803B2 (en) 2000-04-24

Family

ID=16801670

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2223661A Expired - Fee Related JP3036803B2 (en) 1990-08-23 1990-08-23 Vending machine control device

Country Status (1)

Country Link
JP (1) JP3036803B2 (en)

Also Published As

Publication number Publication date
JP3036803B2 (en) 2000-04-24

Similar Documents

Publication Publication Date Title
KR0124368B1 (en) vending machine
US4833609A (en) ERC with operator prompting for entering quantity of selected multi-item packaged goods
JPH04104391A (en) Controller for automatic vending machine
JP4718036B2 (en) Vending machine data setting device and vending machine
JP3036797B2 (en) Vending machine sales aggregation device
JP3005259B2 (en) Vending machine column setting device
JPH04135295A (en) Vending machine controller
JP3101317B2 (en) Vending machine control device
JP2975694B2 (en) Vending machine control device
JPH0256715B2 (en)
JP2994715B2 (en) Vending machine mis-sale prevention device
JPH04111093A (en) Price setting device for automatic vending machine
JP2517390B2 (en) Vending machine data setting device
JPH04142695A (en) Display device for automatic vending machine
JPH04138587A (en) Commodity sending device for automatic vending machine
JP3005260B2 (en) Vending machine control device
JP3030067B2 (en) Vending machine sales control device
JP3472501B2 (en) Electronic cash register
JPH0495191A (en) Column setting device of automatic vending machine
JP2005059429A (en) Label printing device, label printing method, and label
JPH04294484A (en) Commodity name registering device for automatic vending machine
JPS59183489A (en) Management data confirmation apparatus for vending machine
JP2644124B2 (en) Vending machine pricing device and pricing method
JPS62203296A (en) Electronic type cash register
JP2547617B2 (en) Electronic cash register

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees