JPS6225235B2 - - Google Patents
Info
- Publication number
- JPS6225235B2 JPS6225235B2 JP15241181A JP15241181A JPS6225235B2 JP S6225235 B2 JPS6225235 B2 JP S6225235B2 JP 15241181 A JP15241181 A JP 15241181A JP 15241181 A JP15241181 A JP 15241181A JP S6225235 B2 JPS6225235 B2 JP S6225235B2
- Authority
- JP
- Japan
- Prior art keywords
- sales
- column
- storage area
- sold
- ratio
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Landscapes
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Description
産業上の利用分野
本発明は、同一商品を収容する複数の商品収容
コラムを有する自動販売機における商品の販売順
序を制御する装置に関する。
従来技術
同一商品を複数列の商品収容コラム(以下コラ
ムという)に収容する自動販売機では各コラムの
商品が均一に販売されることが望ましい。
しかしながら、複数列のサーペンタイン式のコ
ラムを有する場合には、前列側のサーペンタイン
コラムに収容できる商品の数と後列側のサーペン
タインコラムに収容できる商品の数とは均一では
ないので、たとえば、コラムが前、中、後の3列
に並んでいる場合には、前のコラムから2個の商
品が販売される間に中間のコラムからは3個、後
のコラムからは4個の商品が販売されるようにす
る必要がある。以下このようなコラム間の商品の
放出比率を販売比率という。
そのようなコラムの販売比率を制御する装置と
して、商品の順送り装置が特開昭51―17498号公
報にて知られている。
解決すべき問題点
しかしながら、従来の順送り装置は、自動販売
機の種類により収容本数、搬出機構が異なり、コ
ラムの販売比率が異なるために、各自動販売機に
専用の機構になつていることが多い。コラムの販
売比率を変更できるものもあるが、例えば4連の
サーペンタインラツクを備えた自動販売機におい
ては4コラムの順送りの販売比率を変更すること
ができるだけであつて、2コラムずつの2種類の
商品の販売、すなわち2系列の販売装置としては
使用することができず、またスイツチ等の切換箇
所が多くなるので操作が複雑になつて誤操作の原
因になると共に、コラムの販売比率を任意に設定
すると正しい販売順序で動作させることが困難に
なる問題があつた。
本発明は上記問題に鑑みてなされたもので、ス
イツチによる簡単な設定操作により、最大8コラ
ムまでの順送り販売ができ、しかもその販売比率
の設定が任意であり、かつ多系列の商品を扱うよ
うに設定することができる制御装置を提供するこ
とを目的とする。
問題点を解決する手段
上述の目的を達成するために、この発明の自動
販売機の販売制御装置は同一の商品を収納した複
数のコラムを有し、該当する商品の販売要求があ
つたとき、所定の販売比率で各コラムから所定の
順序で商品を販売する自動販売機において、各コ
ラム毎に独立販売か或いは所定順序販売かを設定
する第1設定手段と、該第1設定手段で所定順序
販売が選択されたとき各コラム毎にその系列と販
売比率とを設定する第2設定手段と、各コラム毎
に販売比率を記憶する販売比率記憶領域と各コラ
ム毎に該当するコラムから1つの商品が販売され
ると1ずつ加算或いは減算を行なつて、当該コラ
ムから販売個数が販売比率に対応した値或いは0
となつているかどうかを示す販売データを記憶す
る販売データ記憶領域と今回販売後、次回の販売
コラムを記憶する次回販売コラム記憶領域と各コ
ラム毎の販売する順序を記憶する順序記憶領域と
を備えた記憶手段と、販売要求があつたとき次回
販売コラム記憶領域に記憶されているコラムにつ
いての販売データ記憶領域のデータがそのコラム
の販売比率に対応する値或いは0になつていなけ
れば、商品有りとして上記販売コラム記憶領域に
記憶されているコラムから商品の販売を行なう制
御手段とを備えたことを特徴とする。
作 用
上述の構成により、制御手段は記憶手段の各記
憶領域の記憶内容を読みとつて、販売要求があつ
たとき次回販売コラム記憶領域に記憶されている
コラムについての販売データ記憶領域のデータが
そのコラムの販売比率に対応する値或いは0にな
つていなければ、商品有りとして上記販売コラム
記憶領域に記憶されているコラムから商品の販売
を行なう。
本発明によればたとえば4コラムを2系列の順
送り販売、他の4コラムを独立販売に、また4コ
ラムずつの2系列の順送り販売に、あるいは8コ
ラム全部を1系列の順送り販売に設定することな
どができる。
実施例
以下、一実施例を示す図面を参照して本発明を
詳細に説明する。
第1図ないし第3図は本発明の販売制御装置の
一実施例を示すブロツク図である。第1図におい
て、1は当該自動販売機の販売を制御する
CPU、2はベンド信号、販売終了信号及びベン
ドリレー信号の入力端子で、コラムの数(N)だ
け備えられ、それぞれフオトカプラ3―1,……
3―Nを介してCPU1に接続され、ドライバー
4をゲートとして読取られる。ここでベンド信号
とは硬貨投入時にその金額に応じて硬貨選別計数
機構30(第2図)から出力される販売可能信号
であり、その自動販売機が販売する物品の価格に
応じた数のベンド信号ラインに出力される。また
販売終了信号とは販売が行なわれた旨の信号で、
当該自動販売機の各コラムに対応して、第3図に
示す接点18―1aないし18―Naから出力さ
れる。また、ベンドリレー信号とは順送り設定コ
ラムのいずれかが販売された旨の信号で、第2図
の販売コラム指定(以下PSDという)出力リレー
14―1,……14―Nの接点14―1a,……
14―Naのいずれかがオンになつた時に、第2
図の回路から出力される。5は売切れ信号入力端
子で、当該自動販売機のコラムに対応して設けら
れ、それぞれフオトカプラ6―1,……6―Nを
介してCPU1に接続され、ドライバー7をゲー
トとして読取られる。売切れ信号は各コラム毎に
設けられた売切れスイツチ8が該当コラムの物品
の売切れを検出したとき生ずる。なお、売切れス
イツチ8が売切れを検出すると売切れランプ9を
点灯させる。10―1,……10―Nは販売を指
示する押釦スイツチで、コラムの数だけ備えら
れ、バツフア増幅器11を介してCPU1に接続
され、ゲート12からの信号により読取られる。
CPU1は上記した種々の入力信号を読みとつ
て、後述のRAMに記憶された販売比率にしたが
つてどのコラムの商品を販売するかを決定し、4
ビツトの出力端子Q1ないしQ4に当該コラムを指
定するコラム指定信号を出力する。
13は4ビツトの入力を10出力に変換するデコ
ーダで、CPU1の端子Q1ないしQ4からの4ビツ
トのコラム指定信号によりコラム1ないしコラム
8に対応した出力リレー14―1,……14―N
のいずれかを選択する信号を出力し、接点14―
1a,……14―Naのいずれかをオンにする。
15は系列1又は2に属するコラムが全て売切れ
になつたときに、CPU1から信号を入力して系
列売切れ表示用リレー16―1,16―2を動作
させるドライバーである。
17―1,……17―Nは対応するコラムが独
立販売か順送り販売か、また順送り販売の場合に
はその系列と販売比率とを設定するデジタルスイ
ツチで、コラムの数だけ設けられ、CPU1のO
端子(O1,……O8)に接続され、CPU1のK端子
から各コラム毎の販売比率が読み取られる。第2
図の18―1,……18―Nはベンドリレーで、
同一のコラムに属するPSD出力リレー14―1,
14―2,……14―Nの常開接点14―1a,
……14―Naがオンになると共に、所定金額が
投入されてベンド信号が生じたときに動作して第
3図の回路の対応する接点18―1a,……18
―Naをオンにし、該当するコラムのソレノイド
19―1,……19―Nを動作させて商品を搬出
する。
CPU1のRAMには、販売比率にしたがつて販
売を制御するために、第4図に示すように各コラ
ム毎に販売比率の記憶エリアRA1,RA2,RA
3,……RA8、販売カウンタRB1,RB2,…
…RB8、販売順序記憶エリアRC1,RC2,…
…RC8及び次回販売コラム記憶エリアRDを備え
ている。またROMには第5図に示す制御を行な
うためのプログラムを記憶している。
次に上述の制御装置の動作について説明する。
なお説明を容易にするために同一商品コラムの
数を3とし、第1コラムないし第3コラムの販売
比率を4:3:2とした場合について説明する。
この場合は、デジタルスイツチ17―4は「4」
(0100)、17―2は「3」(0011)、17―3は
「2」(0010)に設定される。
所定の金額の硬貨が投入されると、その投入額
に対応して硬貨選別計数機構30の出力端子のい
ずれかにベンド信号が生じ、バツフアー3―1な
いし3―Nのいずれかを介してCPU1に読み取
られる。
また各デジタルスイツチ17―1ないし17―
3の設定値「4」,「3」,「2」がCPU1に読み
込まれ、RAMの販売比率記憶エリアRA1,RA
2,RA3にそれぞれ「4」,「3」,「2」が書き
込まれる(第1表a)。同様にして販売カウンタ
エリアRB1ないしRB3にも「4」,「3」,「2」
が記憶される。販売順序エリアRC1,RC2,
RC3には予じめ設定された順序1,2,3が記
憶される。
先ず第1回目の販売時において、上記商品Aを
指定する適宜な押ボタンスイツチたとえば10―
1をオンとしたとすると、その押ボタンスイツチ
10―1の信号はCPU1に読み取られる。
第1回目の販売時には次回販売コラム記憶エリ
アRDには「1」が記憶されており、第1コラム
から販売すべきことが記憶されている。そして上
述の押ボタンスイツチの信号とベンド信号とのア
ンド論理から、販売指令が生じていることを
CPU1が判断して、次回販売コラム記憶エリア
RDの記憶内容「1」を読み、第1コラムの販売
カウンタRB1の内容が「4」であること、いい
かえれば「0」でないこと、即ち第1コラムの商
品が売り切れでないことを判定して、CPU1は
出力端子Q1ないしQ4に「0001」を出力して、デ
コーダ13はこの信号により出力端子13―1を
“1”としてPSDリレー14―1をオンとする。
そこで接点14―1aがオンとなり、第1コラム
のベンドリレー18―1が励磁され、ソレノイド
19―1をオンとして第1コラムから1個の商品
Aを放出する。
リレー18―1の接点18―1aがオンとなつ
たことがCPU1によつて読みとられると、第1
表(b)に示すように販売カウンタエリアRB1の内
容は「3」とされ、かつ次回販売コラム記憶エリ
アRDの内容も「2」とされる。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a device for controlling the sales order of products in a vending machine having a plurality of product storage columns containing the same product. Prior Art In a vending machine that stores the same product in multiple product storage columns (hereinafter referred to as columns), it is desirable that the products in each column be sold uniformly. However, when having multiple serpentine columns, the number of products that can be stored in the front serpentine column and the number of products that can be stored in the rear serpentine column are not equal, so for example, if the column is , middle, and back three columns, then two items are sold from the previous column, three items are sold from the middle column, and four items are sold from the later column. It is necessary to do so. Hereinafter, the product release ratio between columns will be referred to as the sales ratio. As a device for controlling the sales ratio of such a column, a product sequential feeding device is known from Japanese Patent Application Laid-Open No. 17498/1983. Problems to be Solved However, with conventional sequential feeding devices, the number of bottles accommodated and the delivery mechanism differ depending on the type of vending machine, and the sales ratio of columns differs, so each vending machine has a dedicated mechanism. many. Some machines allow you to change the sales ratio of columns, but for example, in a vending machine equipped with 4 serpentine racks, you can only change the sales ratio of 4 columns sequentially; It cannot be used for selling products, that is, as a two-line sales device, and since there are many switching points such as switches, the operation becomes complicated and may cause errors, and the sales ratio of the columns can be set arbitrarily. Then, there was a problem that made it difficult to operate in the correct sales order. The present invention has been developed in view of the above problems, and allows for sequential sales of up to 8 columns by simple setting operations using a switch, and also enables the sales ratio to be set arbitrarily, and allows handling of multiple series of products. The purpose is to provide a control device that can be set to Means for Solving the Problems In order to achieve the above-mentioned object, the vending machine vending control device of the present invention has a plurality of columns storing the same product, and when a request to sell the corresponding product is made, In a vending machine that sells products in a predetermined order from each column at a predetermined sales ratio, a first setting means for setting independent sales or sales in a predetermined order for each column; a second setting means for setting the series and sales ratio for each column when sales is selected; a sales ratio storage area for storing the sales ratio for each column; and one product from the corresponding column for each column. When a unit is sold, it is added or subtracted by 1, and from the column, the number of units sold is a value corresponding to the sales ratio or 0.
A sales data storage area for storing sales data indicating whether or not the sales column is the same, a next sales column storage area for storing the next sales column after the current sale, and an order storage area for storing the sales order for each column. When a sales request is made, if the data in the sales data storage area for the column stored in the next sales column storage area is a value corresponding to the sales ratio of that column or is not 0, it is determined that the product is available. The present invention is characterized by comprising a control means for selling products from the columns stored in the sales column storage area. Operation With the above-described configuration, the control means reads the storage contents of each storage area of the storage means, and when a sales request is made, the data in the sales data storage area regarding the column stored in the next sales column storage area is stored. If the value corresponds to the sales ratio of that column or is not zero, it is assumed that the product is available and the product is sold from the column stored in the sales column storage area. According to the present invention, for example, 4 columns can be set for 2 series sequential sales, the other 4 columns can be set for independent sales, 2 series of 4 columns each can be set for sequential sale, or all 8 columns can be set for 1 series sequential sale. etc. can be done. Embodiment Hereinafter, the present invention will be described in detail with reference to the drawings showing one embodiment. 1 to 3 are block diagrams showing one embodiment of the sales control device of the present invention. In Figure 1, 1 controls the vending machine.
CPU 2 is an input terminal for a bend signal, end-of-sale signal, and bend relay signal, which are provided as many as the number of columns (N), and photo couplers 3-1, . . .
It is connected to the CPU 1 via 3-N and read using the driver 4 as a gate. Here, the bend signal is a sellable signal output from the coin sorting and counting mechanism 30 (Fig. 2) according to the amount of coins inserted, and the number of bends corresponding to the price of the item sold by the vending machine. Output to the signal line. In addition, the end-of-sale signal is a signal indicating that a sale has taken place.
Corresponding to each column of the vending machine, signals are output from contacts 18-1a to 18-Na shown in FIG. In addition, the bend relay signal is a signal indicating that one of the sequential feed setting columns has been sold, and is the contact 14-1a of the sales column designation (hereinafter referred to as PSD) output relay 14-1,...14-N in Fig. 2. ,...
14-When either Na is turned on, the second
Output from the circuit shown in the figure. 5 is a sold-out signal input terminal, which is provided corresponding to the column of the vending machine, is connected to the CPU 1 via photo couplers 6-1, . . . 6-N, and is read using the driver 7 as a gate. The sold-out signal is generated when the sold-out switch 8 provided for each column detects that the article in the column is sold out. Incidentally, when the sold-out switch 8 detects the sold-out, the sold-out lamp 9 is turned on. Push button switches 10-1, .
The CPU 1 reads the various input signals mentioned above, determines which column of products to sell according to the sales ratio stored in the RAM, which will be described later;
A column designation signal designating the relevant column is output to the bit output terminals Q1 to Q4 . 13 is a decoder that converts 4-bit input into 10 outputs , and output relays 14-1, . N
Outputs a signal to select one of the
Turn on one of 1a,...14-Na.
Reference numeral 15 denotes a driver that inputs a signal from the CPU 1 to operate relays 16-1 and 16-2 for indicating series sold-out when all columns belonging to series 1 or 2 are sold out. 17-1,...17-N are digital switches for setting whether the corresponding column is independent sales or sequential sales, and in the case of sequential sales, the series and sales ratio. O
It is connected to terminals (O 1 , . . . O 8 ), and the sales ratio for each column is read from the K terminal of CPU1. Second
18-1,...18-N in the diagram are bend relays,
PSD output relay 14-1 belonging to the same column,
14-2,...14-N normally open contact 14-1a,
...14-Na turns on and when a predetermined amount of money is inserted and a bend signal is generated, the corresponding contacts 18-1a, ...18 of the circuit in Fig. 3 operate.
- Turn on Na and operate solenoids 19-1,...19-N of the corresponding column to transport the product. In order to control sales according to the sales ratio, the RAM of CPU1 has sales ratio storage areas RA1, RA2, RA for each column as shown in Figure 4.
3,...RA8, sales counter RB1, RB2,...
...RB8, sales order storage area RC1, RC2,...
...Equipped with RC8 and next sales column storage area RD. The ROM also stores a program for performing the control shown in FIG. Next, the operation of the above-mentioned control device will be explained. For ease of explanation, a case will be described in which the number of identical product columns is 3 and the sales ratio of the first to third columns is 4:3:2.
In this case, digital switch 17-4 is set to "4".
(0100), 17-2 is set to "3" (0011), and 17-3 is set to "2" (0010). When a predetermined amount of coins is inserted, a bend signal is generated at one of the output terminals of the coin sorting and counting mechanism 30 corresponding to the amount inserted, and the bend signal is output to the CPU 1 via one of the buffers 3-1 to 3-N. be read. Also, each digital switch 17-1 to 17-
The setting values ``4'', ``3'', and ``2'' of 3 are read into CPU1, and the sales ratio storage areas RA1 and RA of RAM are read.
2 and RA3 are written with "4", "3", and "2", respectively (Table 1 a). Similarly, "4", "3", "2" are added to sales counter areas RB1 to RB3.
is memorized. Sales order area RC1, RC2,
Preset orders 1, 2, and 3 are stored in RC3. First, at the time of the first sale, an appropriate push button switch, for example 10-
1 is turned on, the signal from the pushbutton switch 10-1 is read by the CPU 1. At the time of the first sale, "1" is stored in the next sales column storage area RD, and the items to be sold starting from the first column are stored. Then, from the AND logic of the push button switch signal and the bend signal mentioned above, it can be determined that a sales command has occurred.
CPU1 determines the next sales column storage area
Reads the memory content "1" of RD, determines that the content of the sales counter RB1 in the first column is "4", in other words, it is not "0", that is, the product in the first column is not sold out, The CPU 1 outputs "0001" to the output terminals Q 1 to Q 4 , and the decoder 13 uses this signal to set the output terminal 13-1 to "1" and turn on the PSD relay 14-1.
Then, the contact 14-1a is turned on, the bend relay 18-1 of the first column is energized, the solenoid 19-1 is turned on, and one product A is ejected from the first column. When the CPU 1 reads that the contact 18-1a of the relay 18-1 is turned on, the first
As shown in table (b), the content of the sales counter area RB1 is set to "3", and the content of the next sales column storage area RD is also set to "2".
【表】
(c)
次に再び所定金額が投入され、再び同じ商品A
を指定する押ボタンスイツチ10―1がオンとさ
れると前述の場合と同様にして、次回販売コラム
記憶エリアRDの内容「2」が読まれるととも
に、この「2」に対応したコラム2の販売カウン
タエリアRB2の内容が「0」でないかどうかが
判定され、「0」でなければ、CPU1は出力端子
Q1ないしQ4に「0010」を出力し、デコーダ13
は出力端子13―2を“1”として、第2コラム
用のリレー14―2を励磁する。
そしてリレー18―2、ソレノイド19―2が
オンとされ、第2コラムから1個の商品Aが放出
される。この動作中に第1表cに示すように次回
販売コラム記憶エリアRDの内容を「3」とし、
かつ第2コラムの販売カウンタエリアRB2の内
容から1を引いてその内容を「2」とする。
上記のようにして同一の商品Aが指定されると
次回販売コラム記憶エリアRDに記憶されている
内容から、販売コラムを判断し、その指定された
コラムの販売カウンタエリアRBの内容が0でな
ければ、その指定されたコラムの商品を放出す
る。
以下同様の動作をくり返して、たとえば第2表
(a)に示すように第3コラムの販売カウンタエリア
RB3の内容が0となると販売順序記憶エリアRC
3の記憶内容は“0”となる。
この状態では次回販売コラム記憶エリアRDの
内容は「3」となることはなく、「1」の次に
「2」、「2」の次には第2表cに示すように
「1」となつて、第1コラムと第2コラムとから
商品が販売される。
さらに商品Aの販売が行なわれて、第2コラム
の販売カウンタエリアRB2の内容が「0」とな
ると、販売順序記憶エリアRC2の内容も「0」
となり、次回販売コラム記憶エリアRDの内容は
「1」となる。
コラム1からコラム3までのすべての販売カウ
ンタRB1,RB2,RB3の記憶内容が0となる
と、売り切れスイツチ8aがオンとなつているか
が判定され、売切れでなければCPU1は販売比
率設定値記憶エリアRA1,RA2,RA3の記憶
内容が読まれて、このデータが販売カウンタエリ
アRB1,RB2,RB3に再び「4」,「3」,
「2」が書き込まれて、また販売順序記憶エリア
RC1,RC2,RC3に「1」,「2」,「3」が書
き込まれて、前述と同様の販売動作が各コラム順
に行なわれる。[Table] (c)
Next, the predetermined amount is inserted again, and the same product A is used again.
When the pushbutton switch 10-1 for specifying ``2'' is turned on, the content ``2'' of the next sales column storage area RD is read, and the sales of column 2 corresponding to this ``2'' are read in the same way as in the case described above. It is determined whether the content of counter area RB2 is not "0", and if it is not "0", CPU1 is output to the output terminal.
Output “0010” to Q 1 to Q 4 and decoder 13
sets the output terminal 13-2 to "1" and excites the relay 14-2 for the second column. Then, relay 18-2 and solenoid 19-2 are turned on, and one product A is released from the second column. During this operation, the content of the next sales column storage area RD is set to "3" as shown in Table 1c,
Then, 1 is subtracted from the contents of the sales counter area RB2 in the second column to make the contents "2". When the same product A is specified as described above, the next sales column is determined from the contents stored in the sales column storage area RD, and the contents of the sales counter area RB of the specified column must be 0. If so, the product in the specified column will be released. Below, repeat the same operation, for example, Table 2
Sales counter area in the third column as shown in (a)
When the contents of RB3 become 0, the sales order storage area RC
The memory content of 3 becomes "0". In this state, the contents of the next sales column storage area RD will never be "3", but after "1" will be "2", and after "2" will be "1" as shown in Table 2 c. Products are sold from the first column and the second column. Furthermore, when product A is sold and the content of the sales counter area RB2 in the second column becomes "0", the content of the sales order storage area RC2 also becomes "0".
Therefore, the content of the next sales column storage area RD becomes "1". When the memory contents of all sales counters RB1, RB2, and RB3 from columns 1 to 3 become 0, it is determined whether the sold-out switch 8a is turned on, and if the sold-out switch 8a is not sold out, the CPU 1 stores the sales ratio setting value storage area RA1. , RA2, RA3 are read and this data is stored in the sales counter areas RB1, RB2, RB3 again as "4", "3",
"2" is written in the sales order storage area again.
"1", "2", and "3" are written in RC1, RC2, and RC3, and the same sales operation as described above is performed for each column in order.
【表】
(c)
もし、該当するコラムの商品が売り切れ状態と
なつて、たとえば第3コラムの売り切れスイツチ
がオンとなつているときは、第3コラムに関する
各記憶エリアRB3,RC3の内容は「0」であ
り、上述の書き換えは行なわないで、第1コラム
と第2コラムとから順次商品を放出する。
なお当該自動販売機に複数の系列、たとえばジ
ユースAとジユースBの商品を販売するようにな
つており、各系列ともに販売比率をもつて販売す
る場合には、各系列毎に各記憶エリアRA1ない
しRC8とRDとを設ければよい。
そして各系列別に販売比率を設定したいとき
は、たとえばデジタルスイツチ17―1ないし1
7―4を第1系列、17―5ないし17―8を第
2系列の販売比率に設定すればよい。
したがつて系列が増減し、また各系列の販売比
率を変更する場合でもデジタルスイツチ17―1
ないし17―Nの設定を変更すればよく、回路構
成を変更する必要はない。
次に第1図ないし第3図の実施例のCPUの動
作を第5図のフローチヤートに従つて説明する。
電源が投入されると、初期状態として全出力を
オフにしS1、ドライバー7からゲート信号を出
力して売切れ信号を読込みS2、全コラムが売切
れの場合を除いて次のS3ステツプへ進んでドラ
イバー4からゲート信号を出力してベンド信号の
有無を確認する。ベンド信号の無いことを確認し
た後、O端子から信号を出力してデジタルスイツ
チ17―1,……17―Nに設定されたコラムの
販売形式(系列、比率、独立)を読込む(S4,
S5)。
ここでデジタルスイツチ17―1,……17―
Nに設定された信号の読込みを第6図及び第7図
により説明する。
今コラム数が8とすると、CPU1のO端子
は、端子をO0,……O3とO4,……O7に分けて4
ビツトずつに並列に出力する。そしてO0は第1
コラム、O1は第2コラムという重みづけで、ま
ず4ビツトを1000として出力すると、デジタルス
イツチ17―1の設定が「1」になつていると、
第7図からK0,……K3の入力端子にはH,L,
L,Lの入力がされる。そしてその時は重みづけ
は系列1で比率は1に相当している。つまり、第
1コラムは系列1でそのコラムの販売比率は1で
ある。デジタルスイツチ17―1,……17―N
の設定が1ないし8の場合は同図の表の如く順送
りであり、0又は9の場合は独立、すなわち対応
する押釦スイツチ10―1,……10―Nの操作
によりそのコラムから販売されることを意味す
る。このようにして、順次O7まで、すなわち第
8コラムまでの設定条件がデジタルスイツチ17
―1,……17―8の設定値から読込まれて
RAMに記憶される。
次に、ドライバー4を介してベンド信号、販売
終了信号及びベンドリレー信号を読込んで前回に
読込まれた内容と比較した後、RAMに記憶し、
ドライバー7を介して売切れ信号を読込み、同様
に比較と記憶を行ない、ゲート12を介して押釦
スイツチ信号を読込み、同様に比較と記憶を行な
う(S6)。ここで押釦スイツチ信号の前回との比
較(S7)の結果、押釦スイツチ10―1,……
10―Nのいずれもがオンでなければ、ステツプ
S4に戻り、再び同じ読込み、比較、記憶を繰り
返す。この繰り返しは、押釦スイツチが押される
まで、すなわち待機状態にある間は一定の周期で
繰り返される。
いま、硬貨が投入されると、その金額に応じた
ベンド信号が硬貨検出機構30側より送出され、
CPU1がドライバー4を介してそのベンド信号
を読み込み、前回続み込んだデータとの比較をし
て、2回のデータが一致しておれば有効データと
してRAMに記憶する。そして押釦スイツチ10
―1,……10―Nのいずれかが押されると
(S7)、ステツプS8でその押釦スイツチ10―
1,……10―Nの入力信号とベンド信号のアン
ド論理により、押された押釦スイツチに対応する
コラムが系列1か(S9)、系列2か(S10)、ある
いは独立か(S11)を判定し、系列1又は系列2
に属する場合には、デジタルスイツチ17―1,
……17―Nの設定データに基づいて販売カウン
タエリアRBをセツトして、ステツプS12で上
述した方法により販売コラムを決定する。その指
定されたコラムが販売可能であれば、CPU1は
デコーダ13にPSD信号を出力し(S14)、指定
したコラムのPSD出力リレー14―iをオンに
し、接点14―iaをオンにすることにより、ベン
ドリレー18―iをオンにしてその接点18―ia
をオンにし、ソレノイド19―iを動作させて商
品を搬出するとともに、タイマーをセツトする
(S15)。
商品が所定のコラムから搬出されると第3図か
らの販売終了信号(S16)と第2図からのベンド
リレー信号(S17)のアンドにより、CPU1は系
列カウンタ出力をオンにし(S18)、第1表(b)の
如く販売カウンタの該当するコラムから減算する
と共に、次回販売コラムを設定順序に従つて更新
し、タイマーの終了を確認して(S20)PSD出力
リレー14―iをオフにし(S21)、系列カウン
タ出力もオフにする(S22)。ここで、販売動作
の1サイクルが終了していなければ、すなわち第
1表(b)で販売カウンタが全て0になつていなけれ
ばステツプS27に戻り(S23)、次回系列1の
押釦が押されたときは第1表(c)の如く第2コラム
から販売して、第2コラムの販売カウンタから1
を減算しておくと共に、次回販売コラムとして第
3コラムを指定しておく。このような操作を、各
系列について各コラムの販売カウンタが全て0に
なるまで繰り返し行ない、全て0になつたとき
は、ステツプS23からステツプS1に戻る。
ステツプS17において、仮にベンドリレー信
号が来なくて販売終了信号が来た場合は、順送り
コラム以外のコラムが販売されたことになるの
で、CPU1としては次の販売順序へは進めない
ように処理する。なお、順送りコラムと独立コラ
ムとが同時に選択された場合等の制御は本体側に
て行なつている。
独立販売のコラムが選択された場合、ステツプ
S11において、売切れでなければCPU1から
デコーダ13にPSD信号を出力して(S24)、商
品を販売すると共に、ステツプS20へ進む。
また、ステツプS16において、販売終了信号
がない場合はベルドリレー信号の有無をみて
(S25)、ベンドリレー信号も無ければ再びステツ
プ16に戻り、もしベンドリレー信号があれば異
常状態としてステツプS1へ戻る(S26)。
交互販売を行なう為には、第1コラムと第2コ
ラムの設定用デジタルスイツチ17―1,17―
2を1ないし4のいずれかの同一の値にセツトす
れば、第1コラムと第2コラムは系列1の交互販
売となる。同様にして第3コラムと第4コラムを
5ないし8のいずれかの同一の値にセツトすれ
ば、第3コラムと第4コラムは系列2の交互販売
となる。そして残りの第5コラムないし第8コラ
ムを0又は9にセツトすれば独立設定コラムとな
る。
発明の効果
以上詳述したように本発明は各コラム毎の順送
り制御の設定が簡単となり、他の方法に比べて誤
操作が大幅に少なくなり、作業者の設定作業が短
時間で行なえる等の効果が得られる。[Table] (c)
If the product in the corresponding column is sold out and the sold out switch in the third column is turned on, the contents of each storage area RB3 and RC3 related to the third column are "0", and as described above. The products are sequentially released from the first column and the second column without being rewritten. Note that if the vending machine is designed to sell products from multiple series, for example, the use A and the use B, and each series is sold at a sales ratio, each storage area RA1 or RA1 for each series is used. It is sufficient to provide RC8 and RD. If you want to set the sales ratio for each series, for example, use digital switch 17-1 or 1.
It is sufficient to set 7-4 as the sales ratio of the first series and 17-5 or 17-8 as the sales ratio of the second series. Therefore, even if the number of series increases or decreases, or the sales ratio of each series changes, the digital switch 17-1
It is only necessary to change the settings of 1 to 17-N, and there is no need to change the circuit configuration. Next, the operation of the CPU in the embodiment shown in FIGS. 1 to 3 will be explained according to the flowchart shown in FIG. When the power is turned on, the initial state is to turn off all outputs in S1, output a gate signal from driver 7 and read the sold-out signal in S2, and unless all columns are sold out, proceed to the next step S3 and turn off driver 4. Output the gate signal from and check the presence or absence of the bend signal. After confirming that there is no bend signal, output a signal from the O terminal and read the column sales format (series, ratio, independent) set to digital switches 17-1,...17-N (S4,
S5). Here, digital switch 17-1,...17-
Reading of a signal set to N will be explained with reference to FIGS. 6 and 7. Now, assuming that the number of columns is 8, the O terminal of CPU1 is divided into 4 terminals: O 0 , ...O 3 and O 4 , ...O 7 .
Output bit by bit in parallel. and O 0 is the first
Column O 1 is weighted as the second column, and if we first output 4 bits as 1000, if the digital switch 17-1 is set to "1",
From Fig. 7, the input terminals of K 0 , ...K 3 have H, L,
L and L are input. At that time, the weighting is series 1 and the ratio is equivalent to 1. In other words, the first column is series 1 and the sales ratio of that column is 1. Digital switch 17-1,...17-N
If the setting is 1 to 8, the items will be sold sequentially as shown in the table in the same figure, and if it is 0 or 9, the items will be sold independently, that is, the items will be sold from that column by operating the corresponding pushbutton switches 10-1, . . . 10-N. It means that. In this way, the setting conditions up to O 7 , that is, up to the 8th column, are changed to digital switch 17.
-1,...Read from the setting value of 17-8
Stored in RAM. Next, the bend signal, end-of-sale signal, and bend relay signal are read through the driver 4 and compared with the previously read contents, and then stored in the RAM.
The sold-out signal is read in through the driver 7, and compared and stored in the same way, and the push button switch signal is read in through the gate 12, and compared and stored in the same way (S6). Here, as a result of comparing the push button switch signals with the previous one (S7), the push button switches 10-1, . . .
If none of 10-N are on, the process returns to step S4 and the same reading, comparison, and storage are repeated again. This repetition is repeated at a constant cycle until the push button switch is pressed, that is, while the switch is in the standby state. Now, when a coin is inserted, a bend signal corresponding to the amount is sent from the coin detection mechanism 30,
The CPU 1 reads the bend signal via the driver 4, compares it with the previous data, and if the two data match, stores it in the RAM as valid data. And push button switch 10
-1,...10-N is pressed (S7), the push button switch 10- is pressed in step S8.
1,...10-N - determines whether the column corresponding to the pressed pushbutton switch is series 1 (S9), series 2 (S10), or independent (S11) by AND logic between the input signals of 10-N and the bend signal. and series 1 or series 2
If it belongs to the digital switch 17-1,
. . . The sales counter area RB is set based on the setting data of 17-N, and the sales column is determined by the method described above in step S12. If the specified column is available for sale, the CPU 1 outputs a PSD signal to the decoder 13 (S14), turns on the PSD output relay 14-i of the specified column, and turns on the contact 14-ia. , turn on bend relay 18-i and its contact 18-ia
is turned on, the solenoid 19-i is operated to carry out the goods, and a timer is set (S15). When the product is carried out from the specified column, the CPU 1 turns on the series counter output (S18) by ANDing the sales end signal (S16) from FIG. 3 and the bend relay signal (S17) from FIG. As shown in Table 1 (b), subtract from the relevant column of the sales counter, update the next sales column according to the set order, confirm the end of the timer (S20), and turn off the PSD output relay 14-i ( S21), and also turns off the sequence counter output (S22). Here, if one cycle of the sales operation has not been completed, that is, if all the sales counters in Table 1 (b) have not reached 0, the process returns to step S27 (S23), and the next time the series 1 push button is pressed. When selling from the second column as shown in Table 1 (c), 1 is sold from the sales counter in the second column.
In addition to subtracting , the third column is designated as the next sales column. Such operations are repeated for each series until all the sales counters in each column become 0, and when they all become 0, the process returns from step S23 to step S1. In step S17, if the bend relay signal does not come and the sales end signal does come, it means that a column other than the forward column has been sold, so CPU 1 processes it so that it does not proceed to the next sales order. . Incidentally, control when the sequential column and the independent column are selected at the same time is performed on the main body side. When the independent sales column is selected, in step S11, if the item is not sold out, the CPU 1 outputs a PSD signal to the decoder 13 (S24), the item is sold, and the process proceeds to step S20. In addition, in step S16, if there is no end-of-sale signal, check for the presence or absence of a belt relay signal (S25), and if there is no bend relay signal, return to step 16 again, and if there is a bend relay signal, return to step S1 as an abnormal state ( S26). In order to perform alternating sales, set the digital switches 17-1 and 17- for the first and second columns.
If 2 is set to the same value from 1 to 4, the first and second columns will be alternate sales of series 1. Similarly, if the third and fourth columns are set to the same value of 5 to 8, the third and fourth columns will be alternately sold in series 2. If the remaining fifth to eighth columns are set to 0 or 9, they become independent setting columns. Effects of the Invention As detailed above, the present invention simplifies the setting of sequential feed control for each column, significantly reduces erroneous operations compared to other methods, and allows the operator to complete the setting work in a short time. Effects can be obtained.
第1図ないし第3図は本発明の一実施例を示す
回路図、第4図は上記実施例に用いられるRAM
の要部のメモリマツプ、第5図は上記実施例の動
作を示すフローチヤート、第6図はデジタルスイ
ツチを示す回路図、第7図は第6図のデジタルス
イツチの設定方式の一例を示す図である。
1…CPU、2…ベンド信号、販売終了信号及
びベンドリレー信号の入力端子、5…売切れ信号
入力端子、10―1,……10―N…押釦スイツ
チ、13…デコーダ、14―1,……14―N…
PSD出力リレー、17―1,……17―N…デジ
タルスイツチ(第1設定手段、第2設定手段)、
RA1…RA8…販売比率記憶エリア、RB1…RB
8…販売カウンタ(販売データ記憶領域)、RC1
…RC8…販売順序記憶エリア、RD…次回販売コ
ラム記憶エリア。
Figures 1 to 3 are circuit diagrams showing one embodiment of the present invention, and Figure 4 is a RAM used in the above embodiment.
5 is a flowchart showing the operation of the above embodiment, FIG. 6 is a circuit diagram showing a digital switch, and FIG. 7 is a diagram showing an example of a setting method for the digital switch shown in FIG. be. 1...CPU, 2...Input terminal for bend signal, end of sale signal and bend relay signal, 5...Output signal input terminal, 10-1,...10-N...Push button switch, 13...Decoder, 14-1,... 14-N...
PSD output relay, 17-1,...17-N...digital switch (first setting means, second setting means),
RA1...RA8...Sales ratio storage area, RB1...RB
8...Sales counter (sales data storage area), RC1
...RC8...Sales order storage area, RD...Next sales column storage area.
Claims (1)
該当する商品の販売要求があつたとき、所定の販
売比率で、各コラムから所定の順序で商品を販売
する自動販売機において、各コラム毎に独立販売
か或いは所定順序販売かを設定する第1設定手段
と、該第1設定手段で所定順序販売が選択された
とき各コラム毎にその系列と販売比率とを設定す
る第2設定手段と、各コラム毎に販売比率を記憶
する販売比率記憶領域と各コラム毎に該当するコ
ラムから1つの商品が販売されると、1ずつ加算
或いは減算を行なつて、当該コラムから販売個数
が販売比率に対応した値或いは0となつているか
どうかを示す販売データを記憶する販売データ記
憶領域と今回販売後、次回の販売コラムを記憶す
る次回販売コラム記憶領域と各コラム毎の販売す
る順序を記憶する順序記憶領域とを備えた記憶手
段と、販売要求があつたとき次回販売コラム記憶
領域に記憶されているコラムについての販売デー
タ記憶領域のデータがそのコラムの販売比率に対
応する値或いは0になつていなければ、商品有り
として上記販売コラム記憶領域に記憶されている
コラムから商品の販売を行なう制御手段とを備え
たことを特徴とする自動販売機の販売制御装置。1 Having multiple columns containing the same product,
When a sales request for a corresponding product is received, in a vending machine that sells products in a predetermined order from each column at a predetermined sales ratio, the first step is to set whether each column should be sold independently or in a predetermined order. a setting means; a second setting means for setting the series and sales ratio for each column when predetermined order sales is selected by the first setting means; and a sales ratio storage area for storing the sales ratio for each column. When one product is sold from the corresponding column for each column, it is added or subtracted by 1, and the sales number is calculated from that column to show whether the number of units sold corresponds to the sales ratio or is 0. A storage means comprising a sales data storage area for storing data, a next sales column storage area for storing the next sales column after the current sale, and an order storage area for storing the order of sales for each column; If the data in the sales data storage area for the column stored in the next sales column storage area is a value corresponding to the sales ratio of that column or is not 0, it is stored in the sales column storage area as a product exists. A sales control device for a vending machine, characterized in that it is equipped with a control means for selling products from a column in which a product is sold.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15241181A JPS5852794A (en) | 1981-09-25 | 1981-09-25 | Selling controller for vending machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP15241181A JPS5852794A (en) | 1981-09-25 | 1981-09-25 | Selling controller for vending machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5852794A JPS5852794A (en) | 1983-03-29 |
| JPS6225235B2 true JPS6225235B2 (en) | 1987-06-02 |
Family
ID=15539921
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP15241181A Granted JPS5852794A (en) | 1981-09-25 | 1981-09-25 | Selling controller for vending machine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5852794A (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61281391A (en) * | 1985-05-07 | 1986-12-11 | 三洋電機株式会社 | Alternate selling apparatus for vending machine |
| JPS61281390A (en) * | 1985-05-07 | 1986-12-11 | 三洋電機株式会社 | Alternate selling apparatus for vending machine |
| JPS61281393A (en) * | 1985-05-09 | 1986-12-11 | 三洋電機株式会社 | Alternate sale setter for vending machine |
| JPS6244378A (en) * | 1985-08-21 | 1987-02-26 | ハイト−ク・ジヤパン株式会社 | Torque wrench |
-
1981
- 1981-09-25 JP JP15241181A patent/JPS5852794A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5852794A (en) | 1983-03-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6225235B2 (en) | ||
| JPH0110699Y2 (en) | ||
| JPS6326919B2 (en) | ||
| JPS6217276B2 (en) | ||
| JPS6245255Y2 (en) | ||
| JPH0330943Y2 (en) | ||
| JPS6135597B2 (en) | ||
| JPS5935076B2 (en) | Pricing device in vending machines | |
| JP3005259B2 (en) | Vending machine column setting device | |
| JPH1139556A (en) | vending machine | |
| JP2818894B2 (en) | Vending machine parallel sales setting device | |
| JP2001143133A (en) | Charge adjusting device for automatic vending machine | |
| JP3213522B2 (en) | vending machine | |
| KR940000795B1 (en) | Residue goods exhausting method and apparatus for vending machine | |
| JPH0714062A (en) | Controller for cup drink automatic vending machine | |
| JPS61281394A (en) | Price setter for automatic forward vending machine | |
| JPS6363960B2 (en) | ||
| JPS6363958B2 (en) | ||
| JPS6145395A (en) | Controller for vending machine | |
| JPH02127797A (en) | Data setting device for automatic vending machine | |
| JPH0378099A (en) | Controller for automatic beverage vending machine | |
| JPS61141093A (en) | Controller for vending machine | |
| JPS59170991A (en) | Sale controlling system for vending machine | |
| JPS6048798B2 (en) | How to set prices for vending machines | |
| JPH10302130A (en) | vending machine |