JPH0495190A - Sale totaling device for automatic vending machine - Google Patents

Sale totaling device for automatic vending machine

Info

Publication number
JPH0495190A
JPH0495190A JP20995590A JP20995590A JPH0495190A JP H0495190 A JPH0495190 A JP H0495190A JP 20995590 A JP20995590 A JP 20995590A JP 20995590 A JP20995590 A JP 20995590A JP H0495190 A JPH0495190 A JP H0495190A
Authority
JP
Japan
Prior art keywords
product
code
merchandise
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
JP20995590A
Other languages
Japanese (ja)
Other versions
JP3036797B2 (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 JP2209955A priority Critical patent/JP3036797B2/en
Publication of JPH0495190A publication Critical patent/JPH0495190A/en
Application granted granted Critical
Publication of JP3036797B2 publication Critical patent/JP3036797B2/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 easily total the sales of each merchandise at each merchandise code by selling the merchandise on which the merchandise codes are printed by bar-codes, and providing a processor which totals and manages the sold merchandise at each merchandise code. CONSTITUTION:A controlling part stored in a controlling box includes a central processing unit(CPU) 21 which executes a controlling operation by a program, and a bar-code reader 1, coin processor 11, displaying device 14, selecting device 15, selling device 16, mode switch 18, printer unit 31, and totaling switch 32 are connected with an I/O interface 24. Then, the merchandise on which the merchandise codes are printed by the bar-codes is sold, and afterwards sales data are added to the totaled data of the merchandise codes corresponding to the merchandise. Thus, the totaled data is read at each merchandise code so that the sales management of each merchandise can be operated.

Description

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

(ロ)従来の技術 従来、商品別に売上集計を行うには、例えば特開昭56
−108187号公報でも開示されているように、各商
品収納コラムに対応する記憶領域をあらかじめメモリに
設定しておき、商品販売が行われると、対応する記憶領
域に販売商品数を加算するようになっている。
(b) Conventional technology Conventionally, in order to aggregate sales by product, for example,
- As disclosed in Publication No. 108187, a storage area 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 area. It has become.

(ハ)発明が解決しようとする課題 しかしながら従来の構成であると、複数の商品収納コラ
ムに同一の商品を収納している場合には、商品収納コラ
ム別の売上集計が卸商品別の売上集計とは結び付かない
ために、同じ商品を収納している商品収納コラムの集計
値を合計しなければならなかった。
(c) Problems to be solved by the invention However, with the conventional configuration, when the same product is stored in multiple product storage columns, the sales aggregation for each product storage column is changed to the sales aggregation for each wholesale product. Since there is no connection between the two items, it was necessary to add up the aggregated values of the product storage columns that store the same product.

従って、本発明は、商品にバーコードで印刷されている
商品コード別に売上集計を行う自動販売機を提供するも
のである。
Therefore, the present invention provides a vending machine that tallies sales by product code printed on the product as a barcode.

(ニ)課題を解決するための手段 上記の課題を解決するために、本発明による自動販売機
の売上集計装置は、商品コードがバーコードにて印刷さ
れている商品を販売する自動販売機において、販売した
商品をその商品コード別に集計管理する処理装置を具備
したものである。
(d) Means for Solving the Problems In order to solve the above problems, the vending machine sales aggregation device according to the present invention is used in vending machines that sell products whose product codes are printed in barcodes. , which is equipped with a processing device that aggregates and manages sold products by product code.

(ホ)作用 商品の販売が行われると、その商品に対応する商品コー
ドの集計データに売上データを加算する。従らて、商品
コード別に集計データを読み取ることで、商品別の売上
管理を行うことができる。
(e) When a product is sold, the sales data is added to the total data of the product code corresponding to the product. Therefore, by reading the aggregated data for each product code, sales management for each product can be performed.

(へ)実施例 第1図はこの発明の実施例を示す自動販売機の全体斜視
図である。自動販売機5の接客パネル6には、硬貨投入
ロアや複数の商品選択スイッチ8が設けられ、扉9を開
けた内部には制御ボックス10及、び硬貨処理装置11
が配設されている。制御ボックス10にはバーコードリ
ーダー1が接続されると共に、その中には、CPUなど
によって構成される制御部が収納されている。また制御
ボックス10の横には、売上集計データをプリントアウ
トするためのプリンタユニット31を取り付けている。
(F) Embodiment FIG. 1 is an overall perspective view of a vending machine showing an embodiment of the present invention. The customer service panel 6 of the vending machine 5 is provided with a coin input lower and a plurality of product selection switches 8, and inside the door 9 is opened a control box 10 and a coin processing device 11.
is installed. 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.

硬貨処理装置11は、硬貨投入ロアに投入された硬貨を
選別する硬貨セレクタ11A。
The coin processing device 11 is a coin selector 11A that selects coins inserted into a coin input lower.

硬貨収納部11Bおよびこの硬貨収納部に収納されてい
る硬貨を硬貨取出口17に払い出すための硬貨払出装置
11cから成る。また、扉9の背面には、各商品選択ス
イッチ8に対応しており、それぞれ該当している商品選
択スイッチを表す商品選択スイッチコードがバーコード
にて表示されている商品選択スイッチ識別部29を設け
ている。
It consists of a coin storage section 11B and a coin dispensing device 11c for dispensing coins stored in the coin storage section to a coin ejection port 17. In addition, on the back of the door 9, there is a product selection switch identification section 29 that corresponds to each product selection switch 8 and has a product selection switch code representing the corresponding product selection switch displayed in a barcode. It is set up.

この商品選択スイッチコードは、例えば各商品選択スイ
ッチ8に割り付けたスイッチ番号を表示するものである
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 opened, and the inside of the vending machine 5 is provided with five product storage columns 2, and the lower part of the product storage column 2 is connected to the product takeout port 4. A 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インターフェース24
を接続している。そして、I10インターフェース24
には、バーコードリーダー1と、硬貨処理装置llと、
表示装置14と、選択装置15と、販売装置16と、モ
ードスイッチ18、プリンタユニット31と、集計スイ
ッチ32とが接続されている。
FIG. 3 shows the configuration of the vending machine 5 in blocks, and the control unit stored in the control box 10 is a central processing unit (CPU) that executes control operations according to programs.
21, and a ROM 22° RAM 23. I10 interface 24
are connected. And I10 interface 24
includes a barcode reader 1, a coin processing device ll,
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を通してCPU2.1に出力する。また、硬貨処理
装置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 2.1 through the I10 interface 24. Further, the coin processing device 11 drives the coin dispensing device 18 when a signal indicating coin dispensing is input from the CPU 10 through the I10 interface 24.

表示装置14は、各商品収納コラム2に対応して設けた
5個のコラムインジケータ19と、各商品選択スイッチ
8に対応して設けた7個の選択スイッチインジケータ2
oを含み、それぞれのインジケータは、I10インター
フェース24を通してCPU21から入力される表示デ
ータに基づいて駆動が制御される。選択スイッチインジ
ケータ20は接客パネル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 is controlled based on display data input from the CPU 21 through the I10 interface 24. The selection switch indicator 20 is provided on the customer service panel 6, and in the normal sales mode, when the customer inserts money, it functions as a so-called sales ready indicator that lights up to indicate the products that can be purchased with the inserted amount. It is something.

選択装置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は、通常の販売モードと設定モード
とを切り換えるために操作される。CPLJ21は、販
売モードにおいてこのモードスイッチ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 CPLJ21 sets the vending machine to the setting mode and starts the barcode reader 1.
to drive. As a result, the barcode reader 1 can read the product code printed on the product 13 and the column identification section 28.
The column code displayed in the column code and the product selection switch code displayed in the product selection switch identification section 29 can be read.

商品コードは、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の記憶7オーマツトを示しており、
RAM23は少なくとも4通りの記憶領域を有する。
Figure 4 shows the 7-ohm memory of the RAM 23.
The RAM 23 has at least four types of storage areas.

記憶領域23aはバッファ記憶部であり、バーコードリ
ーダー1にて読み取った商品コードを記憶する商品コー
ドバッファ、コラムインジケータ表示バッファ、選択ス
イッチインジケータ表示バッファ、投入金額バッファ、
プリントバッファ等を備えている。そして、5ビツトの
コラムインジケータ表示バッファには、5個のコラムイ
ンジケータ19の点灯あるいは消灯を1ピツトの“1”
あるいは“O”にて示す表示データが記憶される。
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, one bit of "1" is written to indicate whether the five column indicators 19 are turned on or off.
Alternatively, display data indicated by "O" is stored.

また、5ピツトの選択スイッチインジケータ表示バッフ
ァには、5個の選択スイッチインジケータ20の点灯あ
るいは消灯を1ピツトの“1”あるいは“0”にて示す
表示データが記憶される。
Further, the 5-pit selection switch indicator display buffer stores display data indicating whether the five selection switch indicators 20 are turned on or off by one pit of "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に印刷されているバーコードをバ
ーコードリーダー1にて読み取ることにより、記憶領域
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 1, 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では、CPU21はバーコードリー
ダー1に駆動信号を与え、これにより、バーコードリー
ダー1はバーコードを読み取ることができる。そして、
ステップS2にてバーコードが入力されると、CPU2
1は、次のS3.S4、S5.S6の各ステップにおい
て、入力されたバーコードの種類を判別する。
First, in step S1, the CPU 21 provides a drive signal to the barcode reader 1, so that the barcode reader 1 can read the barcode. and,
When the barcode is input in step S2, the CPU2
1 is the next 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に格納されているかを判別する。そし
て、格納されている場合にはステップS16に進み、こ
の商品コードに対応しているコラムインジケータ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 S16, 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の駆動を指示する表示データをR
AM23のコラムインジケータ表示バッファに格納して
表示装置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 R.
It is stored in the column indicator display buffer of AM23 and output to the display device 14.

ステップS15の処理にて、該当の商品コードが記憶領
域23 b、  23 cに記憶されていないことを判
別するとステップ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においては
、商品コードバッファに商品コードを格納しているかを
判別し、格納しているとステップ519の処理に進む。
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 the product code is stored in the product code buffer, and if it is, the process proceeds to step 519.

ステップS19においては、CPtJ21は、RA M
 23の記憶領域23cにおいて、コラムコードにて示
されている商品収納コラム2に対応するアドレスにこの
商品コードを格納する。一方、商品コードバッファに商
品コードを格納していないと、ステップS20にてエラ
ー処理を行ってステップS1の処理に復帰する・。
In step S19, the CPtJ21 uses the RAM
In the storage area 23c of 23, 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の処理に進む。ステップ521においては、
商品コードバッファに商品コードを格納しているかを判
別し、格納しているとステップS22の処理に進むが、
格納していないとステップ523にてエラー処理を行う
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 521,
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 523.

ステップS22においては、CPU21は、商品コード
バッファに格納している商品コードとバーコードリーダ
ー1にて読み取った販売価格を表すバーコードとをRA
M23の記憶領域23dに格納する。このように、販売
価格を設定したい商品18に印刷されているバーコード
をバーコードリーダー1にて読み取り、続いてシート3
oの中から設定すべき販売価格を表示しているバーコー
ドを選び出しバーコードリーダー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 reader 1, and then
The barcode displaying the sales price to be set is selected from among the barcodes o and read by the barcode reader 1, thereby storing the correspondence between the product and the sales price 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の処理に進むが、格納していないとステップ52
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 52
Error processing is performed at 0.

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

しかるに、指示された商品選択スイッチ8に対応する選
択スイッチインジケータ20を駆動していない場合はス
テップS12の処理となる。このステップS12におい
ては、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 S12, 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の
アドレスにはJANコードに含まれている商品コードが
格納される。
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 designated product storage column 2 is stored. The product code included in the JAN code is stored in the address.

また、バーコードリーダー1によりJANコードを読み
取らせ、続いて、バーコードリーダー1によりこの商品
に対応させたい商品選択スイッチ8に該当する商品選択
スイッチコードを全て読み取らせるか、または直接商品
選択スイッチ8を操作することにより、指定の商品選択
スイッチ8に対応する記憶領域23bのアドレスにはJ
ANコードに含まれている商品コードが格納される。こ
のとき、バーコードリーダー1によりJANコードを読
み取らせ、続いて商品選択スイッチ8の指定と商品収納
コラム2の指定を連続して行えば、商品選択スイッチと
商品コードとの対応と、商品収納コラムと商品コードと
の対応とを一緒に行うことができる。また、このときシ
ート30からのバーコードの読み取りも行えば、商品コ
ードと販売価格との対応も同時に行うことができる。
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 from the sheet 30 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から投入硬貨の金額を示す信号が送られている
かを判別し、送られてきていると次のステップS 10
1で投入金額バッファに格納している金額にこの金額を
加算する。次の、ステップ5102では、商品選択スイ
ッチ8が操作されて商品の選択が行われたかを判別し、
商品選択スイッチ8が操作されているとステップ810
3の処理に進む。このステップS 103においては、
RAM23の記憶領域23bから選択された商品選択ス
イッチ8に対応する商品コードを検出し、商品コードバ
ッファに格納する。次の、ステップ5104においては
、商品コードバッファに格納した商品コードに基づき、
RAM23の記憶領域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 S10.
Add this amount to the amount stored in the input amount buffer in step 1. In the next step 5102, it is determined whether the product selection switch 8 has been operated and a product has been selected.
If the product selection switch 8 is operated, step 810
Proceed to step 3. In this step S103,
The product code corresponding to the selected product selection switch 8 is detected from the storage area 23b of the RAM 23 and stored in the product code buffer. In the next step 5104, based on the product code stored in the product code buffer,
The storage area 23d of the RAM 23 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のff+1領域23cから
当該商品を収納している商品収納コラム2を検索する。
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 ff+1 area 23c of the RAM 23 based on the product code stored in the product code buffer. .

次のステップS 106では販売制御処理となり、CP
U21は、検索した商品収納コラム2に対応している商
品送出用の駆動モータに駆動信号を与えて商品送出動作
を制御すると共に、釣銭を演算し必要に応じて硬貨処理
装置11の釣銭払い出し動作を制御する。
In the next step S106, sales control processing is performed, and CP
U21 controls the product delivery operation by giving a drive signal to the product delivery drive motor 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
の処理となる。このステップS 107においては、商
品コードバッファに格納している商品コードをRAM2
3の記憶領域23eに格納しているかを判別する。そし
て、商品コードを格納している場合、即ち、この商品コ
ードについての売上集計データを記憶するアドレスを記
憶領域23eに設定しているとステップ5108の処理
となる。
Upon completion of the sales operation, the CPU 21 returns to step 5107.
This will be the process. In this step S107, the product code stored in the product code buffer is transferred to the RAM2.
It is determined whether the data is stored in the storage area 23e of No.3. Then, 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 5108.

ステップ5108においては、CPU21は、この商品
コードに対応する売上集計データ記憶部に格納している
売上集計データに当該販売動作での売上データを加算し
た後ステップS 100の処理に戻る。
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 S100.

しかるに、商品コードバッファに格納している商品コー
ドを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コードであることを判別すると、ステップ553の
処理に進む。
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 553.

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

そして、同じ商品コードが記憶領域23eに格納されて
いる場合は、CPU21はステップS54の処理に進み
、この商品コードに対応する売上集計データ記憶部から
売上集計データを読み出してRAM23のプリントバッ
ファに格納してプリンタユニット31に出力する。これ
によりプリンタユニット31が駆動して、例えば第6図
に示すような売上集計表をプリントアウトする。この売
上集計表は、表に示すコードの商品は販売価格が100
円でNo、1.2.3の各商品収納コラムに収納されて
いることも併せて示している。従って、設定モードにお
いてJANコードの読み取りに続いて、No、1.2.
3の各商品収納コラムを指定すると共に、販売価格とし
て100円を入力されると、このような売上集計表をプ
リントアウトする自動販売機となる。また、売上集計表
には、商品名をプリントアウトすることができる。それ
には、RAM23にこの自動販売機で販売できる商品に
関して商品コードと商品名とをあらかじめ対応させて記
憶しておき、売上集計モードで商品う−ドが入力された
ときに対応する商品名を読み取ってプリントアウトする
ようにすればよい。
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. and outputs it to the printer unit 31. This drives the printer unit 31 to print out a sales summary table as shown in FIG. 6, for example. In this sales summary table, the sales price of the products with the codes shown in the table is 100.
It also shows that the items are stored in the No. 1, 2, and 3 product storage columns in yen. Therefore, following reading of the JAN code in the setting mode, No. 1.2.
If you specify each product storage column (3) and input 100 yen as the sales price, the vending machine will print out such a sales summary table. Additionally, product names can be printed out on the sales summary table. To do this, the product codes and product names of products that can be sold by this vending machine are stored in advance in the RAM 23 in correspondence with each other, and when the product code is input in the sales aggregation mode, the corresponding product name is read. All you have to do is print it out.

このように、JANコードの読み取りにより売上集計を
行うことで集計を確認したい商品の売上集計データのみ
を知ることができ、プリンタ用紙の無駄が無くなる。
In this way, by calculating the sales by reading the JAN code, only the sales total data of the product for which the user wants to check the total can be known, and printer paper is not wasted.

そして、ステップS55においては、集計スイッチ32
の再度の操作により売上集計が終了されたかを判別し、
終了していると自動販売機5は販売モードとなる。しか
るに、終了されていない場合はステップ550の処理に
復帰する、以上、詳述した本発明は、販売した商品をそ
の商品コード別に集計管理するために、商品グループ別
の売上集計も行うことができる。これを実施例の自動販
売機5にて説明すると、あらがじめRAM23のしかる
べき記憶領域に同じグループに属する商品コードを全て
記憶させると共に、売上集計モードにおいてグループの
中の何が−っの商品コード(JANコード)が入力され
たとき、CPU21は記憶領域23eからこのグループ
に属する全ての商品コードに関する売上集計データを読
み出して合計しこれをプリントアウトするよう構成する
ことにより、グループ別の売上集計が可能となる。
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 550.The present invention described in detail above can also aggregate sales by product group in order to manage sold products by product code. . To explain this with respect to the vending machine 5 of the embodiment, all product codes belonging to the same group are stored in the appropriate storage area of the RAM 23 in advance, and in the sales aggregation mode, what is in the group is stored? When a product code (JAN code) is input, the CPU 21 is configured to read out the total sales data for all product codes belonging to this group from the storage area 23e, total it, and print it out. Aggregation becomes possible.

また、電磁式のカウンタにより売上集計を行う自動販売
機もあるが、このような場合、各電磁式カウンタと商品
コードとをあらかじめRAM23に関連付けして記憶す
ることにより、商品コード別の集計管理を電磁式カウン
タにて行うことができる。
In addition, some vending machines use electromagnetic counters to tally sales, but in such cases, each electromagnetic counter and product code can be associated and stored in the RAM 23 in advance, allowing for tally management by product code. This can be done using an electromagnetic counter.

(ト)発明の効果 本発明によれば、販売した商品をその商品コード別に集
計管理するために商品毎の売上を容易に集計することが
できる。
(G) Effects of the Invention According to the present invention, the sales of each product can be easily aggregated in order to manage the aggregated products by product code.

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

第1図はこの発明の実施例の自動販売機の全体斜視図、
第2図は前面扉を開けた状態を示す図、第3図は電気的
な構成をブロックにて示す図、第4図はRAMの記憶7
オーマツトを模式的に示す図、第5A図、第5B図、第
5C図はそれぞれ設定モード・販売モード・売上集計モ
ードでの動作を説明するフローチャート、第6図は売上
集計表のプリントアウト例である。 l・・・バーコードリーダー 2・・・商品収納コラム
8・・・商品選択スイッチ、21・・・CPU、22・
・・RAM0
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, and Figure 4 shows the RAM memory 7.
Figures 5A, 5B, and 5C are flowcharts explaining operations in setting mode, sales mode, and sales totaling mode, respectively, and Figure 6 is a printout example of a sales summary table. be. l... Barcode reader 2... Product storage column 8... Product selection switch, 21... CPU, 22...
・RAM0

Claims (1)

【特許請求の範囲】 1、商品コードがバーコードにて印刷されている商品を
販売する自動販売機において、 販売した商品をその商品コード別に集計管理する処理装
置を具備したことを特徴とする自動販売機の売上集計装
置。
[Scope of Claims] 1. An automatic vending machine that sells products whose product codes are printed in barcodes, characterized in that it is equipped with a processing device that aggregates and manages sold products by product code. Sales aggregation device for vending machines.
JP2209955A 1990-08-07 1990-08-07 Vending machine sales aggregation device Expired - Fee Related JP3036797B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2209955A JP3036797B2 (en) 1990-08-07 1990-08-07 Vending machine sales aggregation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2209955A JP3036797B2 (en) 1990-08-07 1990-08-07 Vending machine sales aggregation device

Publications (2)

Publication Number Publication Date
JPH0495190A true JPH0495190A (en) 1992-03-27
JP3036797B2 JP3036797B2 (en) 2000-04-24

Family

ID=16581435

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2209955A Expired - Fee Related JP3036797B2 (en) 1990-08-07 1990-08-07 Vending machine sales aggregation device

Country Status (1)

Country Link
JP (1) JP3036797B2 (en)

Also Published As

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

Similar Documents

Publication Publication Date Title
KR0124368B1 (en) Automatic vending machine
EP0028127B1 (en) Electronic cash register
KR890001938B1 (en) Vending machine
US5398191A (en) Point of sale apparatus with an automatic determination if weighing a product is necessary or prohibited
JPH0495190A (en) Sale totaling device for automatic vending machine
JP3036803B2 (en) Vending machine control device
JP3101317B2 (en) Vending machine control device
JP3005259B2 (en) Vending machine column setting device
JP2994715B2 (en) Vending machine mis-sale prevention device
JP3005260B2 (en) Vending machine control device
JPH04138587A (en) Commodity sending device for automatic vending machine
JPH04135295A (en) Vending machine controller
JPH04142695A (en) Display device for automatic vending machine
JP2975694B2 (en) Vending machine control device
JP2517390B2 (en) Vending machine data setting device
JPS6217276B2 (en)
JP3030067B2 (en) Vending machine sales control device
JPH0256715B2 (en)
JPH04294484A (en) Commodity name registering device for automatic vending machine
JP2591554Y2 (en) Premium exchange management device
JPH04111093A (en) Price setting device for automatic vending machine
JPH0636233B2 (en) Sales registration processor
JPS62293494A (en) Electronic cash register
JPH09245201A (en) Ticket issuing machine
JPH0495191A (en) Column setting device of automatic vending machine

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