JP2002216221A - Commodity quantity detector for vending machine - Google Patents

Commodity quantity detector for vending machine

Info

Publication number
JP2002216221A
JP2002216221A JP2001337842A JP2001337842A JP2002216221A JP 2002216221 A JP2002216221 A JP 2002216221A JP 2001337842 A JP2001337842 A JP 2001337842A JP 2001337842 A JP2001337842 A JP 2001337842A JP 2002216221 A JP2002216221 A JP 2002216221A
Authority
JP
Japan
Prior art keywords
product
detecting
signal
sold
commodity
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
JP2001337842A
Other languages
Japanese (ja)
Other versions
JP3712114B2 (en
Inventor
Yoshiyuki Suzuki
芳幸 鈴木
Takehide Hirabayashi
丈英 平林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2001337842A priority Critical patent/JP3712114B2/en
Publication of JP2002216221A publication Critical patent/JP2002216221A/en
Application granted granted Critical
Publication of JP3712114B2 publication Critical patent/JP3712114B2/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

PROBLEM TO BE SOLVED: To prevent the erroneous counting of commodities in a vending machine to precisely detect the stock number (the quantity of housed commodities). SOLUTION: In this detector, a commodity or others (the hand of a person) can be judged by a control device 9 on the basis of the length of the ON time of an output signal (object passage signal) from a reflection type optical sensor 7. Accordingly, the stock number can be precisely grasped even if an operator changes the position of a commodity guide, inserts the hand to rearrange the attitude of the commodity, or intentionally inserts the hand.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、飲料やたばこな
どの各種物品を販売する自動販売機に収納されている商
品の数量、すなわち在庫数を検出することが可能な自動
販売機の商品数量検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a vending machine capable of detecting the quantity of merchandise stored in a vending machine for selling various articles such as beverages and tobacco, that is, the number of stocks. Related to the device.

【0002】[0002]

【従来の技術】この種の商品の在庫数を検出する方法と
しては、商品投入口付近に光電スイッチなどの商品検出
センサを設置して投入数量を計数し、この投入数量と販
売数量との差から検出する方法が一般的である。
2. Description of the Related Art As a method of detecting the number of stocks of this type of product, a product detection sensor such as a photoelectric switch is installed near a product input port to count the number of items put in, and the difference between the amount put in and the sales amount is measured. Is generally detected.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記の
ような方法では、商品の姿勢直しのために手を挿入した
場合、投入商品の形状,大きさの変更に応じて商品ガイ
ドの位置を変更するために手を挿入した場合、または、
オペレータがいたずらなどで故意に手を挿入した場合な
どに誤計数が発生し、正確な在庫数を検出できないと言
う問題がある。したがって、この発明の課題は、上記の
ような問題をなくし在庫数(格納されている商品数量)
を正確に検出し得るようにすることにある。
However, in the above-described method, when a hand is inserted to correct the posture of the product, the position of the product guide is changed according to the change in the shape and size of the input product. If you insert your hand for
There is a problem that an erroneous count occurs when an operator intentionally inserts a hand due to mischief or the like, and an accurate inventory quantity cannot be detected. Therefore, an object of the present invention is to eliminate the above-described problem and to reduce the number of stocks (stored product quantities).
Is to be accurately detected.

【0004】[0004]

【課題を解決するための手段】このような課題を解決す
るため、請求項1の発明では、商品を転動落下させつつ
下から順番に積み重ねて収納する商品収納用ラック仕切
板の商品投入口近傍に設置され商品収納時の商品の通過
を検出する検出手段と、この検出手段により検出された
通過物に対する信号にもとづき通過物が商品か否かを判
別する判別手段と、商品が販売されたことを検出する商
品販売検出手段と、商品の売切れを検出する商品売切れ
検出手段と、自動販売機の扉の開閉状態を検出する扉開
閉検出手段と、前記判別手段からの判別信号と前記商品
販売検出手段からの商品販売信号と前記商品売切れ検出
手段からの商品売切れ信号と扉開閉検出手段からの扉の
開閉信号とから商品の数量を検出する数量検出手段とを
備えてなることを特徴とする。
In order to solve the above-mentioned problems, according to the first aspect of the present invention, a product input port of a product storage rack partition plate for stacking and storing products in order from the bottom while rolling and falling the products. Detecting means which is installed in the vicinity and detects the passage of the article when the article is stored, determining means for judging whether or not the passing object is an article based on a signal for the passing object detected by the detecting means, and the article is sold. Product sales detecting means for detecting that the product is sold out, product sold out detecting means for detecting sold out of the product, door open / close detecting means for detecting the open / closed state of a vending machine door, a discrimination signal from the discriminating means, and the product sales A product sales signal from the detection unit, a product out-of-sale signal from the product out-of-sale detection unit, and a quantity detection unit for detecting a quantity of the product from a door open / close signal from the door open / close detection unit. And butterflies.

【0005】上記請求項2の発明では、商品を転動落下
させつつ下から順番に積み重ねて収納する商品収納用ラ
ック仕切り板の商品投入口近傍に設置されこの商品投入
口から前記商品収納用ラックに至る通路内における物体
の有無を検出する第1検出手段と、商品収納用ラックの
途中に設置されて物体の有無を検出する第2検出手段
と、前記第1検出手段および第2検出手段から出力され
る信号を時系列に処理することにより物体の通過,停止
を検出し物体が商品か否かを判別する判別手段と、商品
が販売されたことを検出する商品販売検出手段と、商品
の売切れを検出する商品売切れ検出手段と、自動販売機
の扉の開閉状態を検出する扉開閉検出手段と、前記判別
手段からの判別信号と商品販売検出手段からの商品販売
信号と商品売切れ検出手段からの商品売切れ信号と扉開
閉検出手段からの扉の開閉信号とから商品の数量を検出
する数量検出手段とを備えてなることを特徴とする。
According to the second aspect of the present invention, the product storage rack partition plate is provided near a product input port of a product storage rack partition plate for stacking and storing the products in order from the bottom while rolling and dropping the products. First detecting means for detecting the presence or absence of an object in a passage leading to the vehicle, second detecting means installed in the middle of a product storage rack to detect the presence or absence of an object, and the first detecting means and the second detecting means. Processing means for processing the output signals in time series to detect the passage or stop of the object and determine whether the object is a product; a product sales detecting means for detecting that the product has been sold; A product sold-out detecting means for detecting a sold-out state, a door open / close detecting means for detecting an open / closed state of a vending machine door, a discrimination signal from the discriminating means, a product sales signal from the product sales detecting means, and a product sold-out detection. Characterized by comprising a quantity detecting means for detecting a product sold signals and quantities of goods from the switching signal of the door from the door opening and closing detection means from the means.

【0006】上記請求項2の発明においては、前記数量
検出手段は自動販売機に関する各種処理,管理を行なう
制御手段との通信手段を有し、前記制御手段および通信
手段を介して前記商品販売信号,商品売切れ信号および
扉の開閉信号を受信することができる(請求項3の発
明)。これら請求項1ないし3のいずれかの発明におい
ては、前記検出手段または第1検出手段,第2検出手段
は、発光素子と受光素子を同一方向に並列に配置し、前
記発光素子より発した光の反射光を検知する1個または
複数の反射型光センサからなることができる(請求項4
の発明)。また、これら請求項1ないし4のいずれかの
発明においては、前記商品販売検出手段は、商品販売ス
イッチからの信号により商品が販売されたことを検出す
ることができる(請求項5の発明)。
In the invention according to the second aspect, the quantity detecting means has communication means with control means for performing various processes and management relating to the vending machine, and the commodity sales signal is transmitted via the control means and communication means. It can receive a product sold-out signal and a door open / close signal (the invention of claim 3). In any one of the first to third aspects of the present invention, the detecting means or the first detecting means and the second detecting means arrange a light emitting element and a light receiving element in parallel in the same direction, and emit light emitted from the light emitting element. And one or a plurality of reflection-type optical sensors for detecting reflected light.
Invention). Further, in any one of the first to fourth aspects of the invention, the product sales detecting means can detect that the product has been sold based on a signal from the product sales switch (the invention of claim 5).

【0007】さらに、請求項1ないし4のいずれかの発
明においては、前記商品売切れ検出手段は、商品売切れ
スイッチからの信号により商品が売切れたことを検出す
ることができ(請求項6の発明)、または、前記扉開閉
検出手段は、扉スイッチからの信号により扉の開閉状態
を検出し商品の投入開始および終了を検出することがで
き(請求項7の発明)、もしくは、前記判別手段は、前
記検出手段または第1検出手段の出力信号が一定時間内
の信号パルスが1つまたは2つ以内である場合には通過
物体を商品と判別し、一定時間内に3つ以上のパルス状
信号を含む場合、または一定時間以上の長さの信号であ
る場合には通過物体を商品以外の物体と判別することが
できる(請求項8の発明)。
Further, in any one of the first to fourth aspects of the present invention, the product sold-out detecting means can detect that the product has been sold out by a signal from a product sold-out switch (the invention of claim 6). Alternatively, the door opening / closing detecting means can detect the opening / closing state of the door based on a signal from a door switch to detect the start and end of the product introduction (the invention of claim 7), or When the output signal of the detecting means or the first detecting means has one or two signal pulses within a predetermined time, the passing object is determined to be a commodity, and three or more pulse-like signals are generated within a predetermined time. In the case where it is included, or when the signal is longer than a predetermined time, the passing object can be determined as an object other than the commodity (the invention of claim 8).

【0008】上記請求項1の発明においては、前記数量
検出手段は、前記商品販売検出手段により商品が販売さ
れたことを検出した場合は商品の数量を減算し、前記判
別手段により通過物を商品と判定した場合は、判定して
から一定時間が経過したときに、前記商品売切れ検出手
段からの商品売切れ信号が売切れ状態でないときに限っ
て商品の数量を加算し、判別手段により通過物が商品と
判定されなかった場合は、商品売切れ検出手段からの商
品売切れ信号が売切れ状態であるときに、商品の数量を
0にリセットすることができ(請求項9の発明)、また
は、前記数量検出手段は、前記商品が投入終了状態であ
り、かつ前記判別手段により信号のオン時間が或る判定
時間よりも長いと判断した場合は、商品が満杯に収納さ
れていると判定することができる(請求項10の発
明)。
In the invention according to the first aspect, the quantity detecting means subtracts the quantity of the commodity when the commodity sales detecting means detects that the commodity has been sold, and determines the passing object by the discriminating means. When a predetermined time has elapsed since the determination, the quantity of the product is added only when the product sold-out signal from the product sold-out detecting means is not in a sold-out state, and the passing-through product is determined by the determining means. If it is not determined that the product sold-out signal from the product sold-out detection means is in a sold-out state, the quantity of the product can be reset to 0 (the invention of claim 9), or the quantity detection means Means that when the product is in the loading end state and the determination means determines that the ON time of the signal is longer than a certain determination time, it is determined that the product is fully stored. Can (the invention of claim 10).

【0009】また、請求項2または3のいずれかの発明
においては、前記数量検出手段は、前記第1検出手段お
よび第2検出手段の検出信号を受けて個別に計数を行な
い、双方の計数結果に差が生じた場合はその時点での在
庫計数,2つの検出手段の検出信号パターンの比較およ
びリセット条件の検出の有無を勘案して最終的な計数結
果を決定することができ(請求項11の発明)、また
は、前記数量検出手段に、各コラム毎に商品の大きさに
応じて収容可能な商品数、および前記第2検出手段の検
出範囲まで在庫が積み上がった場合の商品数を予め記憶
しておくことができる(請求項12の発明)。
In the invention according to any one of claims 2 and 3, the quantity detecting means receives the detection signals of the first detecting means and the second detecting means, and individually performs counting, and both counting results are obtained. In the case where there is a difference, the final counting result can be determined in consideration of the inventory count at that time, the comparison of the detection signal patterns of the two detection means, and the presence or absence of the detection of the reset condition. Invention), or the quantity detecting means preliminarily sets the number of products that can be accommodated in each column according to the size of the product, and the number of products when the stock is accumulated up to the detection range of the second detecting means. It can be stored (the invention of claim 12).

【0010】上記請求項12の発明においては、前記積
み上がった在庫の一番上の商品が第2検出手段の検出範
囲に停止したことを検出したときは、前記数量検出手段
はその時点での計数結果から商品の大きさを判別し、計
数結果を適切な値にリセットすることができ(請求項1
3の発明)、または、前記第1検出手段で商品の投入を
検出し、第2検出手段では商品の通過を検出しなかった
ときは、前記数量検出手段はその時点での計数結果から
商品の大きさを判別し、計数結果を適切な値にリセット
することができ(請求項14の発明)、もしくは、前記
扉を閉めた状態で前記第1検出手段が商品を検出してい
るときは、その時点での計数結果から商品の大きさを判
別し、計数結果を適切な値にリセットすることができる
(請求項15の発明)。
In the twelfth aspect of the present invention, when it is detected that the top commodity in the stacked inventory has stopped in the detection range of the second detection means, the quantity detection means detects The size of the product can be determined from the counting result, and the counting result can be reset to an appropriate value.
3) If the first detecting means detects the insertion of the commodity and the second detecting means does not detect the passage of the commodity, the quantity detecting means determines the quantity of the commodity from the counting result at that time. If the size can be determined and the counting result can be reset to an appropriate value (the invention of claim 14), or if the first detection means is detecting a product with the door closed, The size of the product can be determined from the counting result at that time, and the counting result can be reset to an appropriate value (the invention of claim 15).

【0011】また、請求項12の発明の発明において
は、前記扉を閉めた後各コラム毎で1個目または2個目
の商品を販売した際前記第1検出手段から信号が出力さ
れたときは、その時点での計数結果から商品の大きさを
判別し、計数結果を適切な値にリセットすることができ
(請求項16の発明)、または、商品を販売した場合に
第2検出手段から信号が出力されなかったときは、その
時点での計数結果から商品の大きさを判別し、計数結果
を適切な値にリセットすることができる(請求項17の
発明)。上記請求項13ないし17のいずれかに記載の
発明においては、前記数量検出手段は、判別した商品の
大きさを商品が売切れるまで記憶しておき、以後、計数
結果をリセットする際に利用することができる(請求項
18の発明)。
In the invention according to the twelfth aspect, when a signal is output from the first detecting means when the first or second product is sold in each column after the door is closed. Can determine the size of the product from the counting result at that time and reset the counting result to an appropriate value (the invention of claim 16), or when the product is sold, the second detection means If no signal is output, the size of the product can be determined from the counting result at that time, and the counting result can be reset to an appropriate value (the invention of claim 17). In the invention according to any one of the thirteenth to seventeenth aspects, the quantity detecting means stores the size of the determined product until the product is sold out, and uses the size when resetting the counting result thereafter. (Invention of claim 18).

【0012】[0012]

【発明の実施の形態】図1〜図5はこの発明の第1の実
施の形態を示す図であり、以下に説明する。図1は自動
販売機の構成を示す構成図であり、商品は自動販売機本
体10に収納された商品収納ラック5の上部に設置され
た商品投入口3から順次転動落下され、商品収納ラック
5の下側から順次積み上げて収納され、商品販売時には
商品収納ラック5の下端に設けられた商品販売機構4か
ら商品を1つずつ商品収納ラック5に落下させて搬出さ
れる。商品収納ラック5は、ここでは自動販売機の前後
2行、左右3列の商品コラムからなる例を示している。
1 to 5 are views showing a first embodiment of the present invention, which will be described below. FIG. 1 is a configuration diagram showing a configuration of a vending machine. The products are sequentially rolled and dropped from a product insertion port 3 provided above a product storage rack 5 stored in a vending machine main body 10, and the product storage rack is provided. 5 are sequentially stacked and stored from the lower side, and at the time of product sales, the products are dropped one by one from the product sales mechanism 4 provided at the lower end of the product storage rack 5 to the product storage rack 5 and carried out. Here, the product storage rack 5 shows an example composed of two columns before and after the vending machine and three columns on the left and right of the vending machine.

【0013】また、自動販売機本体10の商品収納ラッ
ク5の列方向の仕切板16には、反射型光センサ7が設
置される。内扉6の開閉は、扉スイッチ8により検出さ
れる。制御装置9は、自動販売機全体を制御するととも
に扉スイッチ8からの開閉信号(投入開始および終了信
号)K1と、反射型光センサ7からの通過信号K2と、
商品売切れ検出スイッチ12からの商品売切れ信号K3
と、商品販売スイッチ14からの商品販売信号K4とか
ら各商品コラム内の商品数を計算する。
A reflection type optical sensor 7 is installed on a partition 16 in the row direction of the product storage rack 5 of the vending machine main body 10. Opening and closing of the inner door 6 is detected by the door switch 8. The control device 9 controls the vending machine as a whole, and also includes an opening / closing signal (closing start and end signal) K1 from the door switch 8, a passing signal K2 from the reflection type optical sensor 7,
Goods sold out signal K3 from the goods sold out detection switch 12
Then, the number of products in each product column is calculated from the product sales signal K4 from the product sales switch 14.

【0014】図2は図1の商品収納ラックの内部構成を
示す図であり、商品収納ラック5には図示のように、各
商品コラム毎に商品を搬出する商品販売機構4と、商品
の通路を規制する通路規制板18とが設けられており、
反射型光センサ7は積み重なった商品17が商品投入口
3を通過したときに、商品の通過を検出する。商品売切
れ検出スイッチ12は商品販売機構4に取り付けられ、
商品の売切れ状態を検出する。
FIG. 2 is a view showing the internal structure of the product storage rack of FIG. 1. The product storage rack 5 has a product sales mechanism 4 for carrying out products for each product column, as shown in FIG. And a passage regulating plate 18 for regulating
The reflection-type optical sensor 7 detects the passage of the commodities 17 when the commodities 17 pass through the merchandise slot 3. The product sold-out detection switch 12 is attached to the product sales organization 4,
Detect the sold-out state of the product.

【0015】図3は光センサによる検出原理説明図を示
し、図示のように、光センサ7は商品収納ラック5の仕
切板16に配置される。光センサ7を構成する発光素子
71と受光素子72はここでは垂直方向に並列に配置さ
れ、発光素子71からの出射光71aは商品投入口3側
から投入された商品17で反射し、その反射光72aが
受光素子72にて検出されるように構成されている。な
お、発光素子71と受光素子72をここでは垂直方向に
並列に配置しているが、水平方向に配置することができ
るのは勿論である。
FIG. 3 is an explanatory view of the principle of detection by the optical sensor. As shown, the optical sensor 7 is disposed on the partition plate 16 of the product storage rack 5. The light-emitting element 71 and the light-receiving element 72 that constitute the optical sensor 7 are arranged in parallel in the vertical direction here, and the emitted light 71a from the light-emitting element 71 is reflected by the product 17 input from the product input port 3 side, and its reflection The light 72 a is configured to be detected by the light receiving element 72. Although the light emitting element 71 and the light receiving element 72 are arranged in parallel in the vertical direction here, it is needless to say that they can be arranged in the horizontal direction.

【0016】また、商品17は自動販売機本体内に設置
されたトップトレイ20を、2つのガイド19の内部で
転動し商品収納ラックに収納されるが、この2つのガイ
ド19の商品長手方向の設置位置は、商品の長さに応じ
て変更できるようになっている。受光素子72は例えば
フォトトランジスタなどからなり、反射光72aが或る
一定の光量を越えると、先に説明した商品通過信号はオ
フからオン状態になり、通過物があったことを検出でき
るようにされている。
The product 17 rolls the top tray 20 installed in the main body of the vending machine inside the two guides 19 and is stored in the product storage rack. Can be changed according to the length of the product. The light receiving element 72 is composed of, for example, a phototransistor. When the reflected light 72a exceeds a certain amount of light, the above-described commodity passing signal changes from off to on so that the presence of a passing object can be detected. Have been.

【0017】この構成において、図4および図5のフロ
ーチャートを用い、動作説明を行なう。図4にはステッ
プS1〜S17,S26〜S28を示し、図5にはステ
ップS18〜S25を示す。まず、動作開始後、ステッ
プS1で初期化を行なう。ここで、タイマーとエラー監
視数量が0に初期化される。ステップS2では、商品販
売スイッチ14からの商品販売信号K4を受信して、商
品が販売されたことを検出する。商品販売ありの場合の
みステップS3に移り、商品は1つ減算される。次に、
ステップS4に移る。
The operation of this configuration will be described with reference to the flowcharts of FIGS. FIG. 4 shows steps S1 to S17 and S26 to S28, and FIG. 5 shows steps S18 to S25. First, after the operation starts, initialization is performed in step S1. Here, the timer and the error monitoring quantity are initialized to zero. In step S2, the product sale signal K4 from the product sale switch 14 is received, and it is detected that the product has been sold. Only when the product is sold, the process proceeds to step S3, and the product is decremented by one. next,
Move to step S4.

【0018】ステップS4では、扉スイッチ8からの開
閉信号K1を受信して扉の開閉状態を判断し、扉が開け
られたと判定するとステップS5に移る。ステップS5
では、光センサ7からの商品通過信号K2を受信して、
商品通過信号K2のオン長さが判定時間T1以下でない
場合は次のステップS6に移り、通過物は人間の手であ
ると判定する。その場合はステップS7に移り、ステッ
プS7では商品売切れ検出スイッチ12からの商品売切
れ信号K3を受信し、売切れ状態である場合のみステッ
プS8に移り、商品数量を0リセットする。次に、状態
Cに移る。
In step S4, an open / close signal K1 from the door switch 8 is received to determine the open / closed state of the door. If it is determined that the door is opened, the process proceeds to step S5. Step S5
Then, after receiving the commodity passing signal K2 from the optical sensor 7,
It determines that the case on the length of the product passing signal K2 is not determination time T 1 below proceeds to the next step S6, flowthrough is a human hand. In that case, the process proceeds to step S7. In step S7, the product sold-out signal K3 from the product sold-out detection switch 12 is received. Only when the product is sold out, the process proceeds to step S8 to reset the product quantity to zero. Next, the state moves to the state C.

【0019】ここで、ステップS5に戻る。ステップS
5で、商品通過信号K2のオン長さが判定時間T1以下
の場合は次のステップS9に移り、通過物は商品である
と判定する。次にステップS10に移り、ステップS1
0では一定時間ウエイトを行なう。このウエイトは割り
込み処理によって行なわれるため、一定時間ウエイトし
ている間の新たな商品の通過に対しても、問題を生じる
ことなく検出が可能である。次にステップS11に移
り、ステップS11では商品売切れ検出スイッチ12か
らの商品売切れ信号K3を受信し、売切れ状態である場
合のみステップS12に移って商品数量は0にリセット
され、状態Cに移る。
Here, the process returns to step S5. Step S
5, it is determined that the case on the length of the product passing signal K2 is judging time T 1 below proceeds to next step S9, flowthrough are trade. Next, the process proceeds to step S10, and step S1
If 0, wait is performed for a certain time. Since this wait is performed by interrupt processing, it is possible to detect the passage of a new product while waiting for a certain time without causing any problem. Next, the process proceeds to step S11. In step S11, the product sold-out signal K3 from the product sold-out detection switch 12 is received. Only when the product is sold out, the process proceeds to step S12, the product quantity is reset to 0, and the process proceeds to state C.

【0020】上記ステップS11で売切れ状態でない場
合は、ステップS13に移り商品数量を1つ加算し、図
5のステップS18に移る。ステップS18ではエラー
監視数量が0の場合のみステップS19に移り、ステッ
プS19ではタイマーを0に初期化してステップS20
に移る。ステップS20ではエラー監視数量が1加算さ
れ、ステップS21に移る。ステップS21ではエラー
監視数量が判定回数よりも大きいのであればステップS
22に移り、ステップS22ではタイマ時間が判定時間
よりも小さい場合のみステップS23に移り、ステップ
S23ではエラー状態と判断する。次にステップS25
に移り、ステップS25ではタイマー=0およびエラー
監視数量=0の初期化が行なわれ、状態Cに移る。ステ
ップS21でエラー監視数量が判定回数以下ならばステ
ップS24に移り、ステップS24ではタイマ時間が判
定時間よりも長いのであればステップS25に移り、ス
テップS25ではタイマー=0およびエラー監視数量=
0の初期化が行なわれ、状態Cに移る。ステップS24
でタイマ時間が判定時間以下であれば、直接状態Cに移
る。
If it is determined in step S11 that the product is not sold out, the process proceeds to step S13, where one is added to the number of commodities, and the process proceeds to step S18 in FIG. In step S18, only when the error monitoring quantity is 0, the process proceeds to step S19. In step S19, the timer is initialized to 0, and in step S20
Move on to In step S20, the error monitoring quantity is incremented by 1, and the process proceeds to step S21. In step S21, if the error monitoring quantity is larger than the number of determinations, step S21 is executed.
The process proceeds to step S22, and in step S22, the process proceeds to step S23 only when the timer time is shorter than the determination time. In step S23, it is determined that an error has occurred. Next, step S25
In step S25, initialization of the timer = 0 and the error monitoring quantity = 0 is performed, and the flow shifts to state C. If the error monitoring quantity is equal to or less than the number of determinations in step S21, the process proceeds to step S24. If the timer time is longer than the determination time in step S24, the process proceeds to step S25. In step S25, the timer = 0 and the error monitoring quantity =
Initialization of 0 is performed, and the state moves to state C. Step S24
If the timer time is equal to or shorter than the determination time, the process directly goes to the state C.

【0021】ここで、図4のステップS4に戻る。ステ
ップS4では、扉スイッチ8からの開閉信号K1を受信
して扉の開閉状態を判断し、扉が閉められていると判定
するとステップS14に移る。ステップS14では光セ
ンサ7からの商品通過信号K2を受信して、商品通過信
号K2のオン時間の長さが判定時間T2よりも長い場
合、次のステップS15に移り、ステップS15ではコ
ラム内は商品が満杯の状態であると判断し、状態Cに移
る。一方、ステップS14で商品通過信号K2のオン時
間の長さが判定時間T2以下の場合はステップS16に
移り、ステップS16ではコラム内は商品が満杯の状態
でないと判断し、状態Cに移る。
Here, the process returns to step S4 in FIG. In step S4, the open / close signal K1 from the door switch 8 is received, the open / close state of the door is determined, and if it is determined that the door is closed, the process proceeds to step S14. Step S14 In receiving the item passing signal K2 from the light sensor 7, if the length of the on time of the product passing signal K2 is longer than determination time T 2, moves to the next step S15, step S15, the column It is determined that the product is full, and the process proceeds to state C. On the other hand, proceeds to step S16 if the length of the on time of the product passing signal K2 is judging time T 2 or less in step S14, in the column step S16 determines that the item is not full state moves to state C.

【0022】上記状態Cからは、ステップS17に移
る。ステップS17では、状態Aから状態Cの内部のス
テップ処理が、すべての商品コラムについて行なわれた
かどうかを判断し、すべての商品コラムについて行なわ
れていればステップS26に移る。ステップS26では
待機時間を設定し、ステップS27で一定時間待機し、
待機終了後にステップS28に移り、ステップS28で
タイマの加算を行ない、状態Aに戻る。以降、上記の動
作を繰り返すことにより、特定商品の在庫数を認識す
る。
From the state C, the process proceeds to step S17. In step S17, it is determined whether or not the internal step processing from state A to state C has been performed for all the product columns, and if it has been performed for all the product columns, the process proceeds to step S26. In step S26, a standby time is set, and in step S27, a standby time is set,
After the standby is completed, the process proceeds to step S28. In step S28, the timer is added, and the process returns to state A. Thereafter, the above operation is repeated to recognize the stock quantity of the specific product.

【0023】なお、図3では光センサ7は1個とした
が、2個以上配置して商品通過信号を得るものも、例え
ば特開平6−52414号公報等で既に公知となってい
るが、この発明はこのようなものについても同様にして
適用することが可能である。
In FIG. 3, the number of the optical sensors 7 is one. However, a sensor that obtains a product passing signal by arranging two or more optical sensors 7 is already known, for example, in Japanese Patent Application Laid-Open No. 6-52414. The present invention can be similarly applied to such a device.

【0024】図6〜図17に、商品検出手段を2箇所に
配置して在庫数等の商品数量を検出する第2の実施形態
を示す。図6はこの発明の第2の実施形態を示す全体構
成図、図7は図6の変形例を示す全体構成図、図8は主
として図7に対応する自動販売機の内部構成を示す概要
図、図9はそのn番目のコラムの商品収納ラックの内部
構成を示す断面図、図10は商品検出の原理説明図、図
11〜15および図17は検出信号例を示す波形図、図
16は商品が第2検出部の検出範囲に停止した瞬間の説
明図である。
FIGS. 6 to 17 show a second embodiment in which the commodity detecting means are arranged at two places to detect the quantity of the commodity such as the stock quantity. 6 is an overall configuration diagram showing a second embodiment of the present invention, FIG. 7 is an overall configuration diagram showing a modification of FIG. 6, and FIG. 8 is a schematic diagram mainly showing an internal configuration of a vending machine corresponding to FIG. 9, FIG. 9 is a cross-sectional view showing the internal configuration of the product storage rack of the n-th column, FIG. 10 is a diagram illustrating the principle of product detection, FIGS. 11 to 15 and FIG. 17 are waveform diagrams showing examples of detection signals, and FIG. FIG. 9 is an explanatory diagram at a moment when a product stops in a detection range of a second detection unit.

【0025】図6に示すように、1つのコラムに対し第
1検出部1nと第2検出部2nとからなる物体検出部を
備えている。例えばn番目のコラムの第1検出部1nは
図8,図9に示すように、そのコラムの商品収納ラック
5に商品17を投入する投入口3の付近の、商品17が
トップトレイ20上を転がりまたは滑り始める場所に設
置される。第1検出部1nは物体が投入された時点でそ
れを検出し、商品収納ラック5に商品が満杯になるまで
投入されてもそれを検出することができる。
As shown in FIG. 6, an object detecting section comprising a first detecting section 1n and a second detecting section 2n is provided for one column. For example, as shown in FIGS. 8 and 9, the first detecting unit 1n of the n-th column moves the product 17 near the input port 3 for putting the product 17 into the product storage rack 5 of the column, Installed where rolling or sliding begins. The first detection unit 1n detects the object when it is inserted, and can detect it even if the object is inserted into the product storage rack 5 until it is full.

【0026】さらに、図10を用いて第1検出部の構成
を具体的に説明する。図示のように、第1検出部1nを
ここでは2つの光センサ101n,102nから構成す
るが、光センサに限らずこれと同等の素子を用いること
ができる。この光センサは図3と同じく発光素子と受光
素子を並べて配置したもので、発光素子の発した光を物
体に照射し、受光素子でその反射光を検出することで物
体の有無を検出する。すなわち、先ず商品17が投入さ
れると、光センサ101nの発光素子101nLから出
射された光101nSは商品17で反射し、その反射光
101nRを光センサ101nの受光素子101nDで
受光し、商品を検出する。このとき、光センサ102n
は、まだその出射光102nSが商品17に当たらない
ので商品を検出しないが、商品ガイド19に沿ってトッ
プトレイ20上を進むことで、光センサ101nよりも
少し遅れて商品17を検出する。
Further, the configuration of the first detection unit will be specifically described with reference to FIG. As shown in the figure, the first detecting unit 1n is composed of two optical sensors 101n and 102n here, but the present invention is not limited to the optical sensors, and an equivalent element can be used. This light sensor has a light emitting element and a light receiving element arranged side by side as in FIG. 3, and irradiates the object with light emitted from the light emitting element, and detects the presence or absence of the object by detecting the reflected light with the light receiving element. That is, first, when the product 17 is loaded, the light 101nS emitted from the light emitting element 101nL of the optical sensor 101n is reflected by the product 17, and the reflected light 101nR is received by the light receiving element 101nD of the optical sensor 101n to detect the product. I do. At this time, the optical sensor 102n
Does not detect the product 17 because the emitted light 102nS does not hit the product 17 yet, but detects the product 17 slightly later than the optical sensor 101n by traveling on the top tray 20 along the product guide 19.

【0027】ここで、商品と商品以外の物体の判別方法
について説明する。商品17が投入口3より投入された
場合を考える。商品17の投入時の速度は0.5〜1.
0m/s程度で、光センサ101nと102nの検出範
囲が、商品17の転がる方向へ10mmだけ離してあれ
ば、光センサ101nが商品17を検出した10〜20
ms後に光センサ102nは商品17を検出する。同様
に、商品17の大きさや形状、および光センサ101
n,102nの検出位置に応じて、光センサ101nお
よび102nが商品17を検出している時間の長さはあ
る程度の範囲に収まる。よって、光センサ101n,1
02nの検出信号を横軸に時間を用いて表わすと、図1
1のようになる。Δtonは光センサ101nと102n
がそれぞれ商品17を検出して信号がオンになる時間差
を示し、Δtoffは光センサ101nと102nのそれ
ぞれの検出範囲から商品が通過し信号がオフになる時間
差を示し、Δt1,Δt2は光センサ101n,102n
がそれぞれ商品17を検出して信号がオンの状態である
時間の長さを示す。このような信号が得られた場合、後
段の物体判別部40は商品17が投入されたと判別し、
計数処理部30は投入数を1だけ計数し、在庫数を1つ
分増やす。
Here, a method of distinguishing between a product and an object other than the product will be described. Consider a case in which a product 17 is inserted from the insertion port 3. The speed at the time of introduction of the product 17 is 0.5-1.
At about 0 m / s, if the detection range of the optical sensors 101n and 102n is separated by 10 mm in the rolling direction of the product 17, the optical sensor 101n detects the product 10 to 20
After ms, the optical sensor 102n detects the product 17. Similarly, the size and shape of the product 17 and the light sensor 101
Depending on the detection positions of n and 102n, the length of time during which the optical sensors 101n and 102n are detecting the product 17 falls within a certain range. Therefore, the optical sensors 101n, 1
When the detection signal of 02n is represented using time on the horizontal axis, FIG.
It looks like 1. Δt on the light sensor 101n and 102n
Indicates the time difference when the signal is turned on after detecting the product 17, respectively, Δt off indicates the time difference when the product passes from the respective detection ranges of the optical sensors 101n and 102n and the signal is turned off, and Δt 1 and Δt 2 indicate Optical sensors 101n, 102n
Indicates the length of time during which the product 17 is detected and the signal is on. When such a signal is obtained, the subsequent object determination unit 40 determines that the product 17 has been inserted,
The counting unit 30 counts the number of inputs by one and increases the number of stocks by one.

【0028】次に一度投入した商品を取り出す場合を考
えると、図12のように光センサ102nが先に商品1
7を検出し、少し遅れて光センサ101nが商品17を
検出する。この場合、光センサ101nが物体を検出し
た時刻から光センサ102nが同じ物体を検出する時刻
までの時間差Δtonが負になるので、後段の物体判別部
40は商品17が投入口より取り出されたと判別し、計
数処理部30は投入数を−1とし、在庫数を1つ分だけ
減らす。
Next, considering the case of taking out the product once put in, as shown in FIG.
7 is detected, and the optical sensor 101n detects the product 17 with a slight delay. In this case, since the time difference Δt on from the time when the optical sensor 101n detects the object to the time when the optical sensor 102n detects the same object becomes negative, the object determination unit 40 in the subsequent stage determines that the product 17 has been taken out of the insertion slot. Then, the counting section 30 sets the number of inputs to −1 and reduces the number of stocks by one.

【0029】さらに、商品以外の物体が投入口3に入っ
た場合で、特に商品を補充する作業者の手が入った場合
を考える。作業者の手が入る場合として、トップトレイ
20上でガイド19などに引っかかった商品を取り出そ
うとして手を投入口3から深く挿入したり、コラムの商
品の種類を交換する際にガイドやトレイの位置を調整す
るために手を入れたり、あるいはいたずら目的で故意に
手などを入れて商品在庫数を操作しようとする場合など
が考えられる。手が挿入された場合、図13のように光
センサ101nまたは102n若しくはその両方が物体
を検出している時間Δt1,Δt2は、商品が通過した場
合の時間Δt1,Δt2に比べて明かに長いので、物体判
別部40はこの時間Δt1,Δt2を監視し、これがある
値より長い場合にはこれを商品ではないとして判別す
る。
Further, consider a case in which an object other than a product enters the input port 3, and in particular, a case in which an operator who replenishes the product enters. When the operator's hand can be reached, the user may insert the hand deeply through the slot 3 in order to take out the product caught on the guide 19 or the like on the top tray 20, or when exchanging the type of product in the column, the guide or tray may be replaced. A case may be considered in which a hand is put to adjust the position, or a hand or the like is intentionally put in for the purpose of mischief and the number of goods in stock is operated. When the hand is inserted, the time Δt 1 , Δt 2 during which the optical sensor 101 n or 102 n or both detect an object as shown in FIG. 13 is compared with the time Δt 1 , Δt 2 when the product passes. Since it is apparently long, the object discriminating unit 40 monitors the times Δt 1 and Δt 2, and if the time is longer than a certain value, discriminates it as not a product.

【0030】次に、指などを第1検出部1nの前で素早
く動かした場合、光センサ101nおよび102nが検
出する信号は、例えば図14のようになる。指を検出し
ている時間Δt1,Δt2を商品を検出した場合のそれと
区別できないほどにすることは可能であるが、例えば商
品の進行方向へ指を動かした後、それを引き戻した場
合、図11で説明したような商品を投入したときの信号
パターンと、図12で説明したような商品を引き出した
きのような信号パターンが連続する。このような場合、
2つの光センサ101n,102nの検出時間差Δton
は1つ目の検出(Δton1)に対しては正の値で、次の
物体の検出(Δton2)に対しては負の値となるので、
物体判別部40は商品が投入または引き出されたとは判
別せず商品以外の物体であると判別し、計数処理部30
では計数をしない。なお、図14には連続して3つ(こ
れ以上の場合も同様)、物体を検出した場合を示してい
る。商品を投入する場合、1回に投入できる個数は2個
であり、投入動作を連続的に行なっても経験的に0.2
〜0.4秒以上の間隔が開く。よって、ある時間内に3
つ以上の物体を検出した場合は、物体判別部40は検出
した物体を商品以外の物体と判別し、計数処理部30で
は計数をしない。
Next, when a finger or the like is quickly moved in front of the first detector 1n, the signals detected by the optical sensors 101n and 102n are as shown in FIG. 14, for example. Although it is possible to make the times Δt 1 and Δt 2 during which the finger is detected indistinguishable from those when the product is detected, for example, if the finger is moved in the traveling direction of the product and then pulled back, A signal pattern when a product is put in as described in FIG. 11 and a signal pattern as if a product are drawn out as shown in FIG. 12 are continuous. In such a case,
Detection time difference Δt on between two optical sensors 101n and 102n
Is a positive value for the first detection (Δt on1), since a negative value for the detection of a next object (Δt on2),
The object determination unit 40 does not determine that the product has been inserted or withdrawn, but determines that the product is an object other than the product.
Then do not count. FIG. 14 shows a case where three (three or more) objects are detected in succession. When a product is put in, the number that can be put in at one time is two.
An interval of ~ 0.4 seconds or more opens. Therefore, within a certain time,
If more than one object is detected, the object discriminating unit 40 discriminates the detected object as an object other than a product, and the counting unit 30 does not count.

【0031】第2検出部は例えば図9に示すように、n
番目のコラムの商品収納ラック5の途中で、商品17が
投入口3より投入され、ガイド19に沿ってトップトレ
イ20上を転がりまたは滑り、トップトレイ20から商
品収納ラック5内に落下し始める場所またはその場所よ
りも下に設置される。図9に示す第2検出部2nも第1
検出部1nと同様の光センサ201nを用いており、し
たがって検出原理も同様である。この第2検出部2nは
商品が落下し始めてから検出するので、後から商品が取
り出されることを想定する必要がなく、また商品以外の
物体がこの位置まで入ってくることはないので、通常こ
こで検出されたものは後段の物体判別部40で商品と判
別され、数処理部30で計数される。
For example, as shown in FIG.
In the middle of the product storage rack 5 in the third column, a place where the product 17 is inserted from the input port 3, rolls or slides on the top tray 20 along the guide 19, and starts falling from the top tray 20 into the product storage rack 5. Or installed below that location. The second detector 2n shown in FIG.
The same optical sensor 201n as that of the detection unit 1n is used, and therefore, the detection principle is also the same. Since the second detection unit 2n detects the product after it has started to fall, it is not necessary to assume that the product will be taken out later, and since objects other than the product do not enter this position, the second detection unit 2n normally detects the product. Are detected as commodities by the subsequent object discriminating section 40 and counted by the number processing section 30.

【0032】以上のように、第1検出部1nおよび第2
検出部2nはそれぞれ独立に物体を検出するので、計数
処理部30で投入数の計数を行なうことができ、商品1
7が投入されれば2つの検出部はほぼ同時に検出するの
で、計数結果は同じになるはずである。しかし、第1検
出部1nまたは第2検出部2nのいずれかが、商品以外
の物体を誤って検出したり、商品が投入されたにもかか
わらず検出しない場合があり、このとき2つの検出部の
検出結果による計数結果に差が生じる。例えば、商品1
7を2個連続で投入した場合に、トップトレイ20から
落下した2つの商品17が密着して第2検出部2n前を
通過することがある。このとき、2つの検出部の各光セ
ンサの出力は例えば図15のようになる。
As described above, the first detector 1n and the second detector
Since the detecting units 2n independently detect the objects, the counting unit 30 can count the number of thrown objects.
When 7 is input, the two detectors detect almost simultaneously, so the count results should be the same. However, there is a case where either the first detection unit 1n or the second detection unit 2n erroneously detects an object other than a product, or does not detect an object even though a product is inserted. There is a difference in the counting result due to the detection result of. For example, product 1
When two of the products 7 are continuously supplied, the two products 17 dropped from the top tray 20 may come into close contact with each other and pass in front of the second detection unit 2n. At this time, the outputs of the respective optical sensors of the two detectors are, for example, as shown in FIG.

【0033】上記の場合、第1検出部1nの光センサ1
01nと102nは2つのパルス状の信号を出力し、物
体判別部40は2つの商品17が投入されたと判別する
が、第2検出部2nの光センサ201nは1つのパルス
状の信号を出力し、物体判別部40は1つの商品17が
投入されたと判別し、2つの検出部の間で投入数に差が
生じる。そこで、物体判別部40は2つの検出部の信号
出力を比較し、どちらが正しいかを判別する。図15の
例では、第2検出部2nの光センサ201nのオン信号
の継続時間Δt3を監視し、これが例えば50msより
も長い場合には投入された商品17は2個であると判断
し、短い場合は1個と判断する。このような誤差が発生
するパターンは他にもいろいろあり、それらは経験的に
認知できる。そのようなパターンを解析し、誤差が発生
した場合にも正しい判断ができるように、物体判別部4
0に判断基準を設定する。
In the above case, the optical sensor 1 of the first detector 1n
01n and 102n output two pulse signals, and the object determination unit 40 determines that two products 17 have been put in. The optical sensor 201n of the second detection unit 2n outputs one pulse signal. The object determination unit 40 determines that one product 17 has been inserted, and a difference occurs in the number of inputs between the two detection units. Therefore, the object determination unit 40 compares the signal outputs of the two detection units and determines which is correct. In the example of FIG. 15, the duration Δt 3 of the ON signal of the optical sensor 201 n of the second detection unit 2 n is monitored, and if this is longer than, for example, 50 ms, it is determined that two products 17 have been inserted, If it is short, it is determined to be one. There are various other patterns in which such errors occur, which can be recognized empirically. The object discriminating unit 4 analyzes such a pattern and makes a correct decision even when an error occurs.
Set the criterion to 0.

【0034】図6または図7の構成においては、在庫計
数値によって第1検出部1nか第2検出部2nのいずれ
かの結果を優先的に採用し、最終的な計数結果の信頼性
を向上させることができる。例えば、あるコラムの在庫
が無い状態で商品を補給する作業者がコラムの商品を変
える場合に、トップトレイ20やガイド19の位置を調
整する場合がある。このとき、第1検出部1nがガイド
19や作業者の手を誤って商品として検出する可能性が
あるのに対し、第2検出部2nでは誤って検出すること
はまず無い。そこで、商品在庫計数が第2検出部2nの
検出範囲よりも少ない場合には第2検出部2nにより計
数を行ない、第1検出部1nは補助的な商品17の投入
監視として用いる。この補助的な監視は先の図15の例
に示すように、第2検出部2nが誤検出した場合に正し
い判断ができるようにするための助けとなるものであ
る。逆に在庫が第2検出部2nの検出範囲よりも多くあ
る場合には、第2検出部2nは投入された商品17を検
出できないので、第1検出部1nの検出結果を優先的に
採用する。第1検出部1nと第2検出部2nからなる物
体検出部は、自動販売機に搭載されるコラム数Nの分だ
け設けられ、計数処理部30に接続されている。
In the configuration of FIG. 6 or FIG. 7, the result of either the first detection unit 1n or the second detection unit 2n is preferentially adopted according to the inventory count value to improve the reliability of the final count result. Can be done. For example, when an operator who replenishes a product in a state where a certain column is out of stock changes a product in the column, the position of the top tray 20 or the guide 19 may be adjusted. At this time, while the first detecting unit 1n may erroneously detect the guide 19 or the hand of the worker as a product, the second detecting unit 2n rarely detects it erroneously. Therefore, when the product inventory count is smaller than the detection range of the second detection unit 2n, the counting is performed by the second detection unit 2n, and the first detection unit 1n is used for monitoring the introduction of the auxiliary product 17. As shown in the example of FIG. 15, the auxiliary monitoring helps to make a correct determination when the second detection unit 2n makes an erroneous detection. Conversely, when the stock is larger than the detection range of the second detection unit 2n, the second detection unit 2n cannot detect the inserted product 17, and thus preferentially employs the detection result of the first detection unit 1n. . The object detectors including the first detector 1n and the second detector 2n are provided for the number N of columns mounted on the vending machine, and are connected to the counting unit 30.

【0035】図6に示す自動販売機に対しても従来と同
様、自動販売機の正面に設置され顧客が商品を購入する
際に押す販売スイッチ14n、商品が売切れたことを検
出する売切れ検出スイッチ12n、扉の開閉状態を検出
する扉スイッチ8等が設けられる(図8参照)。計数処
理部30はこれら販売スイッチ14n,売切れ検出スイ
ッチ12nおよび扉スイッチ8に通信手段50を介して
接続されており、各コラムの商品が販売されたことや、
商品が売切れたことや、自動販売機の扉が開いているの
か閉じているのかを検出する。なお、図8にはn番目の
コラムに対応した販売スイッチ14nと売切れ検出スイ
ッチ12nと扉スイッチ8を表示し、他のコラムに対応
するものは図示を省略している。さらに、図7,図8に
示すように、販売処理や庫内温度管理など、自動販売機
に関する各種処理,管理を行なうための制御装置9を従
来と同様に設けることもでき、この場合は各コラムに対
応した販売スイッチ14n,売切れ検出スイッチ12n
および扉スイッチ8がこの制御装置9に接続され、通信
手段50を介して計数処理部30と接続される。
Similarly to the conventional vending machine shown in FIG. 6, a sales switch 14n which is installed at the front of the vending machine and is pressed when a customer purchases a product, and a sold-out detection switch which detects that the product has been sold out. 12n, a door switch 8 for detecting the open / closed state of the door and the like are provided (see FIG. 8). The count processing unit 30 is connected to the sales switch 14n, the sold-out detection switch 12n, and the door switch 8 via the communication means 50, so that the product in each column is sold,
It detects when a product is sold out and whether the vending machine door is open or closed. In FIG. 8, the sale switch 14n, the sold-out detection switch 12n, and the door switch 8 corresponding to the n-th column are shown, and those corresponding to the other columns are not shown. Further, as shown in FIGS. 7 and 8, a control device 9 for performing various processes and management relating to the vending machine, such as a sales process and temperature control in the refrigerator, can be provided in the same manner as in the related art. Sales switch 14n corresponding to the column, sold-out detection switch 12n
The door switch 8 is connected to the control device 9, and is connected to the counting unit 30 via the communication unit 50.

【0036】商品の在庫数は販売によって減るので、n
番目のコラムの商品の販売信号を検出したときはn番目
のコラムの在庫数を1個だけ減らし、売切れ信号を検出
したときはn番目のコラムの在庫数を0にリセットする
のは勿論である。また、商品の投入は商品補充作業者に
より任意に行なわれ、どのコラムにいつ商品が投入され
るか分からないので、全ての物体検出部40が常時物体
の有無を監視しなければならないが、商品の投入は実際
は自動販売機の扉が開いている状態でのみ行なわれるの
で、物体検出部40による商品投入の監視は扉が開いて
いる状態を検出しているときだけ行なえば良く、これに
より計数処理を効率的に行なことができる。以上のよう
に、商品の投入数を計数して在庫計数を増やし、販売に
より在庫計数を減らすことにより在庫を管理することが
できるが、実際には投入された商品を検出できなかった
り、他の物体を商品として検出したりして商品の投入数
を誤ってしまうことがある。そして、その誤差は商品が
売切れるまで修正されずに累積してしまうのが普通であ
る。つまり、商品在庫計数装置は1度誤計数すると、商
品が売切れて在庫が0個にならない限りその誤差は修正
されないが、図6,図7の例では必ずしも商品が売切れ
状態にならなくとも、以下のようにして正しい値にでき
る(リセットするとも言い、上記第1の実施形態で説明
した0リセットとは異なる意味に用いる)ようにしてい
る。
Since the number of items in stock is reduced by sales, n
When the sales signal of the product in the third column is detected, the stock quantity in the n-th column is reduced by one, and when the sold-out signal is detected, the stock quantity in the n-th column is of course reset to zero. . In addition, the introduction of the product is arbitrarily performed by the product replenishment operator, and it is not known when the product is to be put into which column. Therefore, all the object detection units 40 must constantly monitor the presence or absence of the object. Is actually performed only when the door of the vending machine is open, so that the monitoring of the product insertion by the object detection unit 40 only needs to be performed when the state where the door is open is detected. Processing can be performed efficiently. As described above, inventory can be managed by increasing the inventory count by counting the number of product inputs, and reducing the inventory count by selling, but it is not possible to actually detect the input product, In some cases, an object is detected as a product, and the number of products put in is incorrect. The errors usually accumulate without correction until the product is sold out. In other words, once the product inventory counting device makes an erroneous count, the error is not corrected unless the product is sold out and the inventory becomes zero, but in the examples of FIGS. 6 and 7, even if the product does not necessarily go out of stock, The value can be set to a correct value (also referred to as resetting, which has a different meaning from the 0 reset described in the first embodiment).

【0037】そのために、図6または図7の計数処理部
30には、各コラム毎に、商品の大きさに応じて商品収
納ラック5に収容可能な商品数、および第2検出部2n
の検出範囲まで商品を積み重ねた場合の在庫数を記憶さ
せて置く。すなわち、ラック5は例えば商品の大きさに
合わせて、トップトレイ20の位置や商品販売機構4n
を調整する場合もあるが、商品を収納する部分は商品の
大きさによらず同じである。よって、大きい商品を収容
する場合には収容数は少なくなり、小さい商品を収容す
る場合には収容数は多くなる。例えば大小2種類の商品
がある場合、あるコラムに対し、大きい商品は18個、
小さい商品は25個入り、また第2検出部2nの検出範
囲まで積み上げた場合の商品の数量は大きい商品は14
個、小さい商品の場合は18個である。このようなデー
タを予め調べて計数処理部30に記憶させておくこと
で、後述するように誤計数が生じた場合にも途中で正し
い値にリセットすることができる。
For this purpose, the counting section 30 in FIG. 6 or FIG. 7 includes, for each column, the number of articles that can be accommodated in the article storage rack 5 according to the size of the article, and the second detection section 2n.
The number of stocks when products are stacked up to the detection range is stored. That is, the position of the top tray 20 or the product sales mechanism 4n is adjusted according to the size of the product, for example.
May be adjusted, but the portion for storing the product is the same regardless of the size of the product. Therefore, the number of accommodated products decreases when large products are accommodated, and increases when small products are accommodated. For example, if there are two types of products, large and small, there are 18 large products for a certain column,
The number of small products is 25, and the number of products when stacked up to the detection range of the second detection unit 2n is 14
In the case of small items, there are 18 items. By checking such data in advance and storing it in the count processing unit 30, even if an erroneous count occurs as described later, it can be reset to a correct value on the way.

【0038】図16は商品が投入されてラック5内に下
から積み上げられ、m個目の商品17が第2検出部2n
の検出範囲(光センサ201nの正面)に停止した瞬間
を示す。このとき、光センサ201nの信号は図17の
ようになる。第2検出部2nは通常、商品17が通過し
たときにはパルス状の信号を出力する、つまり光センサ
201nは商品17を検出している間だけオン信号を出
力し、オン信号が数ms〜数10ms程度継続した場合
に物体判別部40は商品17が通過したと判断し、計数
処理部30で計数する。図17は光センサ201nで検
出した商品17のオン信号が継続時間Δt03以上である
ことを示し、このような信号を検出したときは物体判別
部40は第2検出部2nまで商品が積み上がってきたこ
とを検出する。一方、上述の例によれば、第2検出部2
nまで商品が積み上げられた場合、大きい商品ならば1
4個、小さい商品であれば18個になる。このとき、m
個目を計数した時点での在庫数が、それまでに計数を誤
って1個分を検出せずに17個であった場合には、計数
処理部30はこのコラムに収容されている商品は小さい
方の商品であると判断し、在庫数を18にリセットす
る。すなわち、その時点での計数値が大きい商品の場合
の14個と小さい商品の場合の18個とのどちらに近い
かで商品の大きさを判断し、判断した商品の大きさに従
ってあるべき在庫数に修正する。
FIG. 16 shows a state in which commodities are loaded and stacked in the rack 5 from below, and the m-th commodities 17 are stored in the second detecting section 2n.
(In front of the optical sensor 201n). At this time, the signal of the optical sensor 201n is as shown in FIG. The second detector 2n normally outputs a pulse signal when the product 17 passes, that is, the optical sensor 201n outputs an ON signal only while the product 17 is being detected, and the ON signal is several ms to several tens ms. If the degree of continuation is about the same, the object discriminating unit 40 determines that the product 17 has passed, and the counting unit 30 counts. FIG. 17 shows that the ON signal of the product 17 detected by the optical sensor 201n is longer than the duration Δt 03 , and when such a signal is detected, the object discriminating unit 40 stacks the product up to the second detection unit 2n. Detect what has come. On the other hand, according to the above-described example, the second detection unit 2
When products are stacked up to n, 1 for large products
4 or 18 for smaller products. At this time, m
If the number of stocks at the time of counting the number is 17 without erroneously counting and detecting one piece by that time, the counting processing section 30 determines that the goods stored in this column are It is determined that the product is the smaller one, and the stock quantity is reset to 18. That is, the size of the product is determined based on which one of the number of products at the time, the value of the product is closer to 14 in the case of a large product and the value of 18 in the case of a small product. To fix.

【0039】ところで、第2検出部2nの検出範囲に商
品17が停止したが、商品17の停止位置が少しずれて
いるとか、商品17の形状が検出に適さないなどの原因
により、検出した状態が継続しない場合の商品の大きさ
判別方法、および在庫数のリセット方法について説明す
る。図15の続きでm+1個目の商品17を投入する
と、第1検出部1nでは投入を検出するが、第2検出部
2nの前にはm個目の商品17があるので、m+1個目
の商品は検出しない。つまり、第1検出部1nで商品の
投入を検出し、第2検出部2nで商品を検出しなかった
場合には、上述と同様にして計数処理部30により商品
17の大きさを判別し、在庫数をm+1個としてリセッ
トする。ただし、m+1個でリセットしても良いが、投
入した商品17がトップトレイ上で引っかかったために
第2検出部2nで検出されないなどのトラブルも考えら
れるので、第1検出部1nで商品の投入を検出し、第2
検出部2nで商品17を検出しなかった状態が連続して
生じ、第1検出部1nによる計数が第2検出部2nによ
る計数よりも2個ないし3個多くなるm+2個ないしm
+3個でリセットするのがより確実である。
By the way, the product 17 has stopped in the detection range of the second detection unit 2n, but the detected position is not correct because the stop position of the product 17 is slightly shifted or the shape of the product 17 is not suitable for detection. The method for determining the size of the product and the method for resetting the stock quantity when the process is not continued will be described. When the (m + 1) th product 17 is inserted in the continuation of FIG. 15, the first detection unit 1n detects the insertion, but since the mth product 17 is located in front of the second detection unit 2n, the (m + 1) th product 17 No products are detected. That is, when the first detector 1n detects the insertion of the product and the second detector 2n does not detect the product, the size of the product 17 is determined by the counting unit 30 in the same manner as described above. Reset the stock quantity to m + 1. However, resetting may be performed with m + 1 pieces. However, there may be a problem that the input product 17 is stuck on the top tray and is not detected by the second detection unit 2n. Detect and second
A state in which the product 17 is not detected by the detection unit 2n occurs continuously, and the count by the first detection unit 1n is 2 to 3 more than the count by the second detection unit 2n, and m + 2 to m.
It is more reliable to reset by +3.

【0040】商品17を満杯まで投入すると商品は第1
検出部1nの検出範囲に停止し、光センサ101nと1
02nの少なくとも一方は商品を検出した状態を継続す
る。一方、第1検出部1nおよび物体判別部40は手な
どの挿入を想定して、商品と商品以外の物体との判別機
能を有しており、また、投入行為を終了し扉を閉めた時
点では手などの挿入は考えなくても良いので、扉を閉め
た状態で第1検出部1nを監視し、商品を検出した状態
が継続しているときには、商品は満杯と判別することが
できる。この場合は、上述と同様に計数処理部30によ
り、計数結果と計数処理部30に予め記憶されている商
品数とを比較して商品17の大きさを判別し、在庫数を
適切な値、つまり正しい値にリセットする。
When the product 17 is fully loaded, the product becomes the first
Stops in the detection range of the detection unit 1n, and detects the optical sensors 101n and 1n.
02n continues the state of detecting the product. On the other hand, the first detecting unit 1n and the object discriminating unit 40 have a function of discriminating a product from an object other than a product, assuming insertion of a hand or the like. Then, since it is not necessary to consider insertion of a hand or the like, the first detection unit 1n is monitored with the door closed, and when the state in which the product is detected continues, the product can be determined to be full. In this case, as described above, the counting processing unit 30 compares the counting result with the number of products stored in the counting processing unit 30 in advance to determine the size of the product 17, and sets the stock quantity to an appropriate value. That is, reset to the correct value.

【0041】商品17を満杯まで投入しても、商品17
の位置が少しずれているとか、商品17の形状が検出に
適さないなどの原因により、検出状態が継続しなかった
場合、上記のような方法では満杯であることを検出する
ことができない。しかし、このような場合でも、1個目
が販売されたときに商品17の位置は順次繰り下げら
れ、第1検出部1nの検出範囲を商品17が移動するの
で、何らかの信号を得られる場合がある。このような信
号を得られた場合は、上記と同様その時点での在庫計数
値と収容可能な商品数を比較することで商品17の大き
さを判別するとともに、満杯状態から1個販売されてい
るので上記収容可能な商品数から1個だけ少ない数値に
リセットする。また、商品17の積み重なり具合によっ
ては、1個目を販売しても第1検出部1n付近の商品1
7が動かないことがある。そのため、2個目を販売した
場合も同様に第1検出部1nの信号を監視し、何らかの
信号変化があった場合には収容可能な商品数から2個だ
け少ない数値にリセットする。
Even if the product 17 is fully loaded, the product 17
If the detection state is not continued due to a slight shift of the position of the item 17 or the shape of the product 17 is not suitable for detection, it is not possible to detect that the product 17 is full by the above method. However, even in such a case, when the first product is sold, the position of the product 17 is sequentially moved down, and the product 17 moves in the detection range of the first detection unit 1n, so that some signal may be obtained. . When such a signal is obtained, the size of the product 17 is determined by comparing the inventory count value at that time with the number of storable products as described above, and one is sold from the full state. Therefore, the value is reset to a value smaller by one than the number of items that can be stored. Further, depending on the degree of stacking of the products 17, even if the first product is sold, the products 1 near the first detection unit 1n may be sold.
7 may not move. Therefore, when the second unit is sold, the signal of the first detection unit 1n is similarly monitored, and if there is any signal change, the number is reset to a value smaller by two than the number of commodities that can be accommodated.

【0042】商品17の位置は販売によって順次繰り下
げられ、第2検出部2nの検出範囲よりも在庫数が多い
場合は、第2検出部2nの出力には何らかの信号変化を
生じる。販売により在庫が減り続け、1番上にある商品
が第2検出部2nの検出範囲にある状態から、1個商品
が販売された時を最後に第2検出部2nの信号変化はな
くなる。よって、計数処理部30は、販売スイッチ14
nが押されたことを直接または自動販売機の制御装置9
を介して検出した時点から、販売されたコラムの第2検
出部2nの信号を監視し、信号変化がなかった場合には
先のm(18または14)個よりも2個だけ少ない数値
で在庫数をリセットする。なお、商品の大きさを判別す
る方法は上述の通りである。また、商品17を販売した
ときに在庫の位置は順次繰り下げられるが、商品の積み
重なり具合などにより上のほうに積まれた商品17の位
置が動かない場合もあるので、商品販売時に第2検出部
2nの信号変化がない状態が2回続いた場合に、商品在
庫数をm−3にリセットする方がより確実である。な
お、以上のように判別した商品の大きさを計数処理部3
0に記憶しておけば、商品在庫数をリセットできるよう
な状況になった場合に、改めて商品の大きさを判別する
必要を無くすことができる。
The position of the product 17 is sequentially moved down by sale, and when the number of stocks is larger than the detection range of the second detector 2n, a signal change occurs in the output of the second detector 2n. The inventory continues to decrease due to the sale, and the signal at the second detection unit 2n disappears last from the state where the top product is within the detection range of the second detection unit 2n when one product is sold. Therefore, the count processing unit 30 sets the sales switch 14
control device 9 of the vending machine directly or by pressing n
Monitor the signal of the second detector 2n of the sold column from the point of time when the signal is detected via the column. If there is no change in the signal, the inventory is reduced by two less than the previous m (18 or 14). Reset the number. The method of determining the size of the product is as described above. Also, when the product 17 is sold, the position of the stock is sequentially moved down. However, the position of the product 17 stacked on the upper side may not move due to the degree of stacking of the product. When the state where there is no signal change of 2n continues twice, it is more reliable to reset the product stock quantity to m-3. The size of the product determined as described above is counted by the counting unit 3.
If it is stored in 0, it is possible to eliminate the necessity of re-determining the size of the product in the case where the stock quantity of the product can be reset.

【0043】[0043]

【発明の効果】請求項1ないし3の発明によれば、判別
信号,商品販売信号,商品売切れ信号および扉開閉信号
から収納された商品の数量を検出することで、オペレー
タが商品ガイドの位置を変更したり、商品姿勢直しのた
めに手を挿入したりしても誤計数することなく、商品の
数量を正確に検出することが可能となる。特に、請求項
2,3の発明にように検出手段を2箇所に設けることに
より、商品か否かの判別精度を向上させ、商品数量の検
出をより正確に行なうことが可能となる。請求項4の発
明によれば、検出手段を1個または複数の反射型光セン
サとすることで、物体の通過を簡単,確実に検出するこ
とができる。
According to the first to third aspects of the present invention, the number of stored products is detected from the discrimination signal, the product sales signal, the product sold-out signal, and the door opening / closing signal, so that the operator can position the product guide. Even if a change is made or a hand is inserted for correcting the product attitude, the number of products can be accurately detected without erroneous counting. In particular, by providing the detecting means at two locations as in the second and third aspects of the present invention, it is possible to improve the accuracy of determining whether or not a product is a product, and to more accurately detect the quantity of the product. According to the fourth aspect of the present invention, the passage of an object can be detected simply and reliably by using one or a plurality of reflection-type optical sensors as the detection means.

【0044】請求項5の発明によれば、商品販売スイッ
チからの信号を利用することで、在庫商品数量を確実に
検出できる。請求項6の発明によれば、商品売切れスイ
ッチからの信号を利用することにより、商品在庫がない
状態が確実に検出可能となる。請求項7の発明によれ
ば、扉の開閉手段を設け商品の投入開始及び終了を扉の
開閉と合わせて検出することで、より確実に投入開始,
終了の検出が可能となる。また、扉の開閉状態を検出す
ることにより、常に商品の投入を監視する必要がなくな
り、扉が開いているときだけ商品の投入を監視すれば良
いので、検出手段の光センサなどを動作させる時間を限
定でき、消費電力の抑制や光素子の劣化などを抑制でき
る。
According to the fifth aspect of the present invention, by using the signal from the merchandise sales switch, the inventory merchandise quantity can be reliably detected. According to the invention of claim 6, by using the signal from the product sold-out switch, it is possible to reliably detect the state where the product is out of stock. According to the seventh aspect of the present invention, the opening and closing means of the door is provided to detect the start and end of the introduction of the product in conjunction with the opening and closing of the door, so that the start of the introduction is more reliably performed.
The end can be detected. Further, by detecting the open / closed state of the door, it is not necessary to constantly monitor the introduction of the product, and it is sufficient to monitor the introduction of the product only when the door is open. Can be limited, and power consumption can be suppressed and optical elements can be prevented from deteriorating.

【0045】請求項8の発明によれば、判別手段により
商品通過信号のオン時間の長さから通過物が商品か手か
の判定をするようにしたので、商品か否かの判別が確実
となる。また、判別手段において商品と判定する回数が
所定数以上のときは、数量検出手段により商品でないと
判断することで、正確な判断による確実な計数処理が可
能となる。請求項9の発明によれば、数量検出手段は販
売検出手段および売切れ検出手段からの信号を用いるこ
とで、商品数量の加算,減算および0リセットを確実に
行なうことができる。請求項10の発明によれば、数量
検出手段は扉スイッチからの扉開閉信号と、判別手段に
よる信号のオン時間とを利用することで、商品の満杯状
態を確実に検出可能となる。
According to the eighth aspect of the present invention, the discriminating means determines whether the passing object is a product or a hand based on the length of the on-time of the product passing signal. Become. Further, when the number of times of determination as a product by the determination means is equal to or more than a predetermined number, the quantity detection means determines that the product is not a product, thereby enabling a reliable counting process based on accurate determination. According to the ninth aspect of the present invention, the quantity detecting means uses the signals from the sales detecting means and the sold-out detecting means so that the addition, subtraction and resetting of the product quantity can be reliably performed. According to the tenth aspect of the present invention, the quantity detecting means can reliably detect the full state of the product by using the door open / close signal from the door switch and the ON time of the signal by the determining means.

【0046】請求項11の発明によれば、商品を収容す
るラック内の2箇所に取り付けられた検出手段が、投入
されラック内を通過または停止している物体をそれぞれ
検出し、独立に計数することで、一方に誤計数が生じた
場合にも信号パターンから正しい計数結果を得ることが
できる。請求項12の発明によれば、各コラム毎に収容
可能な商品数や第2検出手段の検出可能範囲までの商品
格納数を記憶しておくことで、常に正しい商品在庫数を
把握することができる。
According to the eleventh aspect of the present invention, the detecting means attached to the two places in the rack accommodating the merchandise respectively detect the objects that have been thrown in and have passed or stopped in the rack, and counted them independently. Thus, even when an erroneous count occurs on one side, a correct count result can be obtained from the signal pattern. According to the twelfth aspect, by storing the number of items that can be accommodated in each column and the number of items stored up to the detectable range of the second detection means, it is possible to always grasp the correct item inventory. it can.

【0047】請求項13から請求項18の発明によれ
ば、商品を収容するラック内の2箇所に取り付けられた
検出部により、ラック内に積み上げられた在庫の1番上
の商品を検出した場合は、商品の大きさおよびその位置
までに積み上げられた商品の在庫数が分かるので、誤計
数によって実際の在庫数との差が生じている場合にも、
在庫数を正しい値にリセットすることができる。また、
一度判別した商品の大きさを記憶し、その商品が売切れ
るまで保持することで、より信頼性の高い在庫計数が可
能となる。
According to the thirteenth to eighteenth aspects of the present invention, when the detection units attached to the two places in the rack for accommodating the commodity detect the top commodity in the inventory stacked in the rack. Knows the size of the product and the number of items in the stack up to that position, so even if there is a difference from the actual
The stock quantity can be reset to the correct value. Also,
By storing the size of the product once determined and holding it until the product is sold out, more reliable inventory counting becomes possible.

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

【図1】この発明の第1の実施の形態を示す構成図であ
る。
FIG. 1 is a configuration diagram showing a first embodiment of the present invention.

【図2】図1の商品収納ラックの内部構造説明図であ
る。
FIG. 2 is an explanatory diagram of an internal structure of the product storage rack of FIG. 1;

【図3】図1の光センサによる検出原理説明図である。FIG. 3 is an explanatory diagram of the principle of detection by the optical sensor of FIG. 1;

【図4】この発明の第1の実施の形態の動作を説明する
フロチャートである。
FIG. 4 is a flowchart illustrating the operation of the first embodiment of the present invention.

【図5】この発明の第1の実施の形態の別の動作を説明
するフロチャートである。
FIG. 5 is a flowchart illustrating another operation of the first embodiment of the present invention.

【図6】この発明の第2の実施の形態を示す構成図であ
る。
FIG. 6 is a configuration diagram showing a second embodiment of the present invention.

【図7】図6の変形例を示す構成図である。FIG. 7 is a configuration diagram showing a modification of FIG. 6;

【図8】図7に対応する自動販売機の全体構成を示す構
成図である。
8 is a configuration diagram illustrating an overall configuration of a vending machine corresponding to FIG. 7;

【図9】図6,図7の商品収納ラックの内部構造説明図
である。
9 is an explanatory diagram of an internal structure of the product storage rack of FIGS. 6 and 7. FIG.

【図10】図8の光センサによる検出原理説明図であ
る。
FIG. 10 is a diagram illustrating the principle of detection by the optical sensor of FIG. 8;

【図11】第1検出部出力の第1の例を示す波形図であ
る。
FIG. 11 is a waveform chart showing a first example of an output of a first detection unit.

【図12】第1検出部出力の第2の例を示す波形図であ
る。
FIG. 12 is a waveform chart showing a second example of the output of the first detection unit.

【図13】第1検出部出力の第3の例を示す波形図であ
る。
FIG. 13 is a waveform chart showing a third example of the output of the first detection unit.

【図14】第1検出部出力の第4の例を示す波形図であ
る。
FIG. 14 is a waveform chart showing a fourth example of the output of the first detection unit.

【図15】第1,第2検出部の出力例を示す波形図であ
る。
FIG. 15 is a waveform chart showing an output example of the first and second detection units.

【図16】商品が第2検出部の検出範囲内に停止した瞬
間を示す説明図である。
FIG. 16 is an explanatory diagram illustrating a moment when a product stops within a detection range of a second detection unit.

【図17】図16の場合の第2検出部の出力波形例図で
ある。
FIG. 17 is an example of an output waveform of the second detection unit in the case of FIG. 16;

【符号の説明】 1n…第1検出部、2n…第2検出部、3…商品投入
口、4…商品販売機構、5…商品収納ラック、6…内
扉、7,101n,102n,201n…光センサ、8
…扉スイッチ、9…制御装置、10…自動販売機本体、
12…商品売切れ検出スイッチ、14…商品販売スイッ
チ、16…仕切板、17…商品、18…通路規制板、1
9…ガイド、20…トップトレイ、30…計数処理部、
40…物体検出部、50…通信手段、71,101n
L,102nL…発光素子、71a,101nS,10
2nS…出射光、72,101nD,102nD…受光
素子、72a,101nR,102nR…反射光。
[Description of Signs] 1n: first detection unit, 2n: second detection unit, 3: product insertion port, 4: product sales organization, 5: product storage rack, 6: inner door, 7, 101n, 102n, 201n ... Optical sensor, 8
... door switch, 9 ... control device, 10 ... vending machine body,
Reference numeral 12: product out-of-stock detection switch, 14: product sale switch, 16: partition plate, 17: product, 18: passage control plate, 1
9: guide, 20: top tray, 30: counting unit,
40: object detection unit, 50: communication means, 71, 101n
L, 102 nL: Light-emitting element, 71 a, 101 nS, 10
2nS: outgoing light, 72, 101nD, 102nD: light receiving element, 72a, 101nR, 102nR: reflected light.

Claims (18)

【特許請求の範囲】[Claims] 【請求項1】 商品を転動落下させつつ下から順番に積
み重ねて収納する商品収納用ラック仕切板の商品投入口
近傍に設置され商品収納時の商品の通過を検出する検出
手段と、この検出手段により検出された通過物に対する
信号にもとづき通過物が商品か否かを判別する判別手段
と、商品が販売されたことを検出する商品販売検出手段
と、商品の売切れを検出する商品売切れ検出手段と、自
動販売機の扉の開閉状態を検出する扉開閉検出手段と、
前記判別手段からの判別信号と前記商品販売検出手段か
らの商品販売信号と前記商品売切れ検出手段からの商品
売切れ信号と扉開閉検出手段からの扉の開閉信号とから
商品の数量を検出する数量検出手段とを備えてなること
を特徴とする自動販売機の商品数量検出装置。
1. A detecting means which is installed near a product input port of a product storage rack partition plate for storing and stacking products sequentially from the bottom while rolling and dropping the products, and detecting passage of the products when the products are stored, and the detection means. Determining means for determining whether or not a passing object is a product based on a signal for the passing object detected by the means; a product sale detecting means for detecting that the product has been sold; and a product sold-out detecting means for detecting that the product has sold out A door open / close detecting means for detecting an open / closed state of a vending machine door;
Quantity detection for detecting the quantity of commodities from the discrimination signal from the discrimination means, the commodity sale signal from the commodity sale detection means, the commodity sold out signal from the commodity sale detection means, and the door open / close signal from the door open / close detection means. Means for detecting the quantity of goods of a vending machine.
【請求項2】 商品を転動落下させつつ下から順番に積
み重ねて収納する商品収納用ラック仕切り板の商品投入
口近傍に設置されこの商品投入口から前記商品収納用ラ
ックに至る通路内における物体の有無を検出する第1検
出手段と、商品収納用ラックの途中に設置されて物体の
有無を検出する第2検出手段と、前記第1検出手段およ
び第2検出手段から出力される信号を時系列に処理する
ことにより物体の通過,停止を検出し物体が商品か否か
を判別する判別手段と、商品が販売されたことを検出す
る商品販売検出手段と、商品の売切れを検出する商品売
切れ検出手段と、自動販売機の扉の開閉状態を検出する
扉開閉検出手段と、前記判別手段からの判別信号と商品
販売検出手段からの商品販売信号と商品売切れ検出手段
からの商品売切れ信号と扉開閉検出手段からの扉の開閉
信号とから商品の数量を検出する数量検出手段とを備え
てなることを特徴とする自動販売機の商品数量検出装
置。
2. An object in a passage extending from the product insertion port to the product storage rack, which is installed near a product insertion port of a product storage rack partition plate for stacking and storing products in order from the bottom while rolling and dropping the products. First detecting means for detecting the presence or absence of the object, second detecting means installed in the middle of the product storage rack for detecting the presence or absence of an object, and detecting signals output from the first and second detecting means. Discriminating means for detecting passage or stop of an object by processing in series to determine whether the object is a product, product sales detecting means for detecting that the product has been sold, and product sold-out for detecting that the product has been sold out Detecting means, a door open / close detecting means for detecting an open / closed state of a vending machine door, a discriminating signal from the discriminating means, a merchandise selling signal from the merchandise selling detecting means, and a merchandise sold-out signal from the merchandise sold-out detecting means. A product quantity detecting device for a vending machine, comprising: a quantity detecting means for detecting a quantity of a product from a signal and a door open / close signal from the door open / close detecting means.
【請求項3】 前記数量検出手段は自動販売機に関する
各種処理,管理を行なう制御手段との通信手段を有し、
前記制御手段および通信手段を介して前記商品販売信
号,商品売切れ信号および扉の開閉信号を受信すること
を特徴とする請求項2に記載の自動販売機の商品数量検
出装置。
3. The quantity detection means has communication means with control means for performing various processes and management relating to the vending machine,
3. The apparatus according to claim 2, wherein the control unit and the communication unit receive the product sale signal, the product sale signal, and the door open / close signal.
【請求項4】 前記検出手段または第1検出手段,第2
検出手段は、発光素子と受光素子を同一方向に並列に配
置し、前記発光素子より発した光の反射光を検知する1
個または複数の反射型光センサからなることを特徴とす
る請求項1ないし3のいずれかに記載の自動販売機の商
品数量検出装置。
4. The detecting means or the first detecting means, the second detecting means,
Detecting means for arranging a light emitting element and a light receiving element in parallel in the same direction, and detecting reflected light of light emitted from the light emitting element;
4. The apparatus according to claim 1, wherein the apparatus comprises one or a plurality of reflective optical sensors.
【請求項5】 前記商品販売検出手段は、商品販売スイ
ッチからの信号により商品が販売されたことを検出する
ことを特徴とする請求項1ないし4のいずれかに記載の
自動販売機の商品数量検出装置。
5. The merchandise quantity of a vending machine according to claim 1, wherein the merchandise sales detecting means detects that the merchandise has been sold based on a signal from a merchandise sales switch. Detection device.
【請求項6】 前記商品売切れ検出手段は、商品売切れ
スイッチからの信号により商品が売切れたことを検出す
ることを特徴とする請求項1ないし4のいずれかに記載
の自動販売機の商品数量検出装置。
6. The commodity quantity detection of a vending machine according to claim 1, wherein said commodity sold-out detecting means detects that the commodity has been sold out, based on a signal from a commodity sold-out switch. apparatus.
【請求項7】 前記扉開閉検出手段は、扉スイッチから
の信号により扉の開閉状態を検出し商品の投入開始およ
び終了を検出することを特徴とする請求項1ないし4の
いずれかに記載の自動販売機の商品数量検出装置。
7. The door opening / closing detecting means according to claim 1, wherein the door opening / closing detecting means detects the opening / closing state of the door based on a signal from a door switch, and detects the start and end of product introduction. Product quantity detection device for vending machines.
【請求項8】 前記判別手段は、前記検出手段または第
1検出手段の出力信号が一定時間内の信号パルスが1つ
または2つ以内である場合には通過物体を商品と判別
し、一定時間内に3つ以上のパルス状信号を含む場合、
または一定時間以上の長さの信号である場合には通過物
体を商品以外の物体と判別することを特徴とする請求項
1ないし4のいずれかに記載の自動販売機の商品数量検
出装置。
8. When the output signal of the detection means or the first detection means has one or two signal pulses within a predetermined time, the determination means determines the passing object as a commodity and outputs the signal for a predetermined time. When three or more pulsed signals are included in
5. The apparatus according to claim 1, wherein a passing object is discriminated as a non-commodity object when the signal is longer than a predetermined time.
【請求項9】 前記数量検出手段は、前記商品販売検出
手段により商品が販売されたことを検出した場合は商品
の数量を減算し、前記判別手段により通過物を商品と判
定した場合は、判定してから一定時間が経過したとき
に、前記商品売切れ検出手段からの商品売切れ信号が売
切れ状態でないときに限って商品の数量を加算し、判別
手段により通過物が商品と判定されなかった場合は、商
品売切れ検出手段からの商品売切れ信号が売切れ状態で
あるときに、商品の数量を0にリッセトすることを特徴
とする請求項1に記載の自動販売機の商品数量検出装
置。
9. The quantity detection means subtracts the quantity of the commodity when the commodity sales detection means detects that the commodity has been sold, and determines when the passing object is determined to be the commodity by the discrimination means. When a certain period of time has elapsed since then, the product quantity is added only when the product sold-out signal from the product sold-out detection means is not in a sold-out state, and if the passing object is not determined to be a product by the determination means, 2. The merchandise quantity detecting device according to claim 1, wherein the merchandise quantity is reset to zero when the merchandise sold-out signal from the merchandise sold-out detecting means is in a sold-out state.
【請求項10】 前記数量検出手段は、前記商品が投入
終了状態であり、かつ前記判別手段により信号のオン時
間が或る判定時間よりも長いと判断した場合は、商品が
満杯に収納されていると判定することを特徴とする請求
項1に記載の自動販売機の商品数量検出装置。
10. The quantity detecting means, if the commodity is in the loading end state and the discriminating means determines that the signal ON time is longer than a certain decision time, the commodity is fully stored. The apparatus according to claim 1, wherein it is determined that the product is present.
【請求項11】 前記数量検出手段は、前記第1検出手
段および第2検出手段の検出信号を受けて個別に計数を
行ない、双方の計数結果に差が生じた場合はその時点で
の在庫計数,2つの検出手段の検出信号パターンの比較
およびリセット条件の検出の有無を勘案して最終的な計
数結果を決定することを特徴とする請求項2または3に
記載の自動販売機の商品数量検出装置。
11. The quantity detecting means receives the detection signals of the first detecting means and the second detecting means and individually performs counting, and if there is a difference between the two counting results, the inventory counting at that time is performed. 4. The product quantity detection of a vending machine according to claim 2, wherein the final counting result is determined in consideration of the comparison between the detection signal patterns of the two detection means and the presence or absence of the detection of the reset condition. apparatus.
【請求項12】 前記数量検出手段に、各コラム毎に商
品の大きさに応じて収容可能な商品数、および前記第2
検出手段の検出範囲まで在庫が積み上がった場合の商品
数を予め記憶しておくことを特徴とする請求項2または
3に記載の自動販売機の商品数量検出装置。
12. The method according to claim 12, wherein the quantity detecting means includes:
4. The apparatus according to claim 2, wherein the number of commodities when the stock is accumulated up to the detection range of the detecting means is stored in advance.
【請求項13】 前記積み上がった在庫の一番上の商品
が第2検出手段の検出範囲に停止したことを検出したと
きは、前記数量検出手段はその時点での計数結果から商
品の大きさを判別し、計数結果を適切な値にリセットす
ることを特徴とする請求項12に記載の自動販売機の商
品数量検出装置。
13. When detecting that the top commodity in the stacked inventory has stopped in the detection range of the second detection means, the quantity detection means determines the size of the commodity based on the counting result at that time. 13. The apparatus according to claim 12, wherein the counting result is reset to an appropriate value.
【請求項14】 前記第1検出手段で商品の投入を検出
し、第2検出手段では商品の通過を検出しなかったとき
は、前記数量検出手段はその時点での計数結果から商品
の大きさを判別し、計数結果を適切な値にリセットする
ことを特徴とする請求項12に記載の自動販売機の商品
数量検出装置。
14. When the first detection means detects the insertion of the commodity and the second detection means does not detect the passage of the commodity, the quantity detection means determines the size of the commodity from the counting result at that time. 13. The apparatus according to claim 12, wherein the counting result is reset to an appropriate value.
【請求項15】 前記扉を閉めた状態で前記第1検出手
段が商品を検出しているときは、その時点での計数結果
から商品の大きさを判別し、計数結果を適切な値にリセ
ットすることを特徴とする請求項12に記載の自動販売
機の商品数量検出装置。
15. When the first detection means is detecting a product with the door closed, the size of the product is determined from the counting result at that time, and the counting result is reset to an appropriate value. The apparatus for detecting the quantity of goods of a vending machine according to claim 12, wherein:
【請求項16】 前記扉を閉めた後各コラム毎で1個目
または2個目の商品を販売した際前記第1検出手段から
信号が出力されたときは、その時点での計数結果から商
品の大きさを判別し、計数結果を適切な値にリセットす
ることを特徴とする請求項12に記載の自動販売機の商
品数量検出装置。
16. When a signal is output from the first detection means when the first or second product is sold in each column after closing the door, the product is obtained from the counting result at that time. 13. The apparatus according to claim 12, wherein the size of the product is determined and the counting result is reset to an appropriate value.
【請求項17】 商品を販売した場合に第2検出手段か
ら信号が出力されなかったときは、その時点での計数結
果から商品の大きさを判別し、計数結果を適切な値にリ
セットすることを特徴とする請求項12に記載の自動販
売機の商品数量検出装置。
17. When a signal is not output from the second detecting means when a product is sold, the size of the product is determined from the counting result at that time, and the counting result is reset to an appropriate value. The apparatus for detecting the quantity of goods of a vending machine according to claim 12, wherein:
【請求項18】 前記数量検出手段は、判別した商品の
大きさを商品が売切れるまで記憶しておき、以後、計数
結果をリセットする際に利用することを特徴とする請求
項13ないし17のいずれかに記載の自動販売機の商品
数量検出装置。
18. The apparatus according to claim 13, wherein said quantity detecting means stores the determined size of the commodity until the commodity is sold out, and uses it when resetting the counting result thereafter. A vending machine product quantity detection device according to any one of the above.
JP2001337842A 2000-11-15 2001-11-02 Product quantity detection device for vending machines Expired - Fee Related JP3712114B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001337842A JP3712114B2 (en) 2000-11-15 2001-11-02 Product quantity detection device for vending machines

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-347503 2000-11-15
JP2000347503 2000-11-15
JP2001337842A JP3712114B2 (en) 2000-11-15 2001-11-02 Product quantity detection device for vending machines

Publications (2)

Publication Number Publication Date
JP2002216221A true JP2002216221A (en) 2002-08-02
JP3712114B2 JP3712114B2 (en) 2005-11-02

Family

ID=26603984

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001337842A Expired - Fee Related JP3712114B2 (en) 2000-11-15 2001-11-02 Product quantity detection device for vending machines

Country Status (1)

Country Link
JP (1) JP3712114B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582426A (en) * 2020-03-31 2020-08-25 上海史必诺物流设备有限公司 Accurate checking method for shuttle vehicle

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150088306A1 (en) * 2013-09-26 2015-03-26 Sonia Varrasso Inventory monitoring system
CN109377057A (en) * 2018-10-26 2019-02-22 苏州浪潮智能软件有限公司 A kind of automatic calculating method of wisdom retail platform cargo path commodity capacity

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111582426A (en) * 2020-03-31 2020-08-25 上海史必诺物流设备有限公司 Accurate checking method for shuttle vehicle
CN111582426B (en) * 2020-03-31 2023-07-18 上海史必诺物流设备有限公司 Accurate inventory method for shuttle

Also Published As

Publication number Publication date
JP3712114B2 (en) 2005-11-02

Similar Documents

Publication Publication Date Title
WO1999050804A1 (en) Commodity accommodating unit of an automatic vending machine
US20200074780A1 (en) Money processing apparatus
JP2002008099A (en) Packed coin throwing-out device
US20140195041A1 (en) Method of sensing a delivered product in a snack vending machine
US20170221294A1 (en) Coin processing apparatus
JPH07249139A (en) Gold rod discharging machine
US20120217127A1 (en) Coin processing apparatus and method
JP2002216221A (en) Commodity quantity detector for vending machine
JPH09326075A (en) Automatic vending machine
JPH03226898A (en) Article taking-out device for vendor
JPH10255154A (en) Device for housing merchandise of automatic vending machine
KR100699032B1 (en) Apparatus and method for removing to caught of goods in a manless vending machine
JP4100344B2 (en) vending machine
JP2001297362A (en) Article stock monitoring device for automatic vending machine
JP2919565B2 (en) vending machine
JP5291681B2 (en) Coin dispenser
JPH0749579Y2 (en) Coin dispenser
JP2502387Y2 (en) Parallel vending machine for vending machines
JP6142728B2 (en) Banknote handling equipment
JP2000172931A (en) Commodity carrying-out device for automatic vending machine
JP2024080327A (en) Media transport device, transport state determination method, and media handling device
JP2858890B2 (en) Vending machine product storage device
JPH10340369A (en) Sales controller for automatic vending machine
JPH05282536A (en) Coin detection device
JPH0652414A (en) Automaic vending machine

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040713

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050525

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050728

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050810

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080826

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090826

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090826

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100826

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110826

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110826

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120826

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120826

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120826

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130826

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130826

Year of fee payment: 8

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130826

Year of fee payment: 8

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees