JPS6013225B2 - Vending machine failure detection device - Google Patents

Vending machine failure detection device

Info

Publication number
JPS6013225B2
JPS6013225B2 JP51129099A JP12909976A JPS6013225B2 JP S6013225 B2 JPS6013225 B2 JP S6013225B2 JP 51129099 A JP51129099 A JP 51129099A JP 12909976 A JP12909976 A JP 12909976A JP S6013225 B2 JPS6013225 B2 JP S6013225B2
Authority
JP
Japan
Prior art keywords
mode
change
failure detection
error code
coin
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
Application number
JP51129099A
Other languages
Japanese (ja)
Other versions
JPS5354097A (en
Inventor
操 粱根
安秀 金成
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.)
Tokyo Sanyo Electric Co Ltd
Sanyo Denki Co Ltd
Original Assignee
Tokyo Sanyo Electric Co Ltd
Sanyo Denki 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 Tokyo Sanyo Electric Co Ltd, Sanyo Denki Co Ltd filed Critical Tokyo Sanyo Electric Co Ltd
Priority to JP51129099A priority Critical patent/JPS6013225B2/en
Publication of JPS5354097A publication Critical patent/JPS5354097A/en
Publication of JPS6013225B2 publication Critical patent/JPS6013225B2/en
Expired legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 本発明は自動販売機の故障検知をシーケンス制御にて行
なう新規な故障検知方式とその装置を提示するものであ
る。
DETAILED DESCRIPTION OF THE INVENTION The present invention proposes a novel failure detection method and apparatus for detecting failure of a vending machine using sequence control.

従来の自動販売機には販売動作をする上で必要な各箇所
を自ら点検するという機能はなく実際に販売動作が行な
われた後に異常を検知するというものでいわば受動的な
故障検知であったといえる。
Conventional vending machines do not have the function of inspecting each part necessary for the vending operation by themselves, but instead detect abnormalities after the vending operation is actually performed, which is a passive failure detection method. I can say that.

このような受動的な故障検知は販売動作を行なってみな
ければその故障を検多することができずその販売動作を
もたらした客に対しては甚だ迷惑なことであり充分な故
障検知機能であるとはいえない。斯かる点から本発明は
積極的に自ら故障を検知するような能動的な故障検知を
提供するものである。
This type of passive failure detection cannot detect many failures unless the sales operation is performed, which is extremely inconvenient for the customer who caused the sales operation, and there is no sufficient failure detection function. I can't say that there is. From this point of view, the present invention provides active failure detection that proactively detects failures by itself.

そしてその方法は自動販売機の各構成要素が一販売動作
期間中において夫々動作する直前にその機構が正常であ
るかをその箇所より出力される信号状態若しくは信号を
送ったことによる反応を検査することで行なわれる。更
に構成要素の異常を検知した場合にはその故障内容に応
じて自動販売機を全販売中止若しくは一部販売中止とす
ることを特徴としている。尚全販売中止とは自動販売機
を全く販売中止状態、としリジェクト装置を動作ごせて
硬貨の投入を受付けない状態であり、一部販売中止とは
商品収納コラムが複数あるときに一列若しくはいくつか
の列を販売中止としてそのコラムの商品の選択販売ご禁
止する状態である。また故障箇所を検知した場合にはエ
ラーコードを評示することで自動販売機の管理者に容易
に知らせることができるのも本発明の特徴である。以下
図面と共に一実施例を詳述する。
In this method, immediately before each component of the vending machine operates during one vending operation period, the mechanism is inspected to see if the mechanism is normal by checking the state of the signal output from that part or the reaction caused by sending the signal. It is done by Furthermore, if an abnormality in a component is detected, sales of all or part of the vending machine are suspended depending on the nature of the failure. In addition, "total sale discontinuation" means that the vending machine is completely discontinued, and the reject device is activated and does not accept coins. "Partial sale discontinuation" means that when there are multiple product storage columns, only one column or several Sales of that column have been discontinued, and selective sales of the products in that column are prohibited. Another feature of the present invention is that when a malfunction is detected, it can be easily notified to the administrator of the vending machine by providing an error code. One embodiment will be described in detail below with reference to the drawings.

第1図は本発明装置のブロック図を示すが、I3は投入
金額加算、販売可判定、釣銭演算及び釣銭払出制御を行
なう通常の自動販売機の本体制御部である。
FIG. 1 shows a block diagram of the device of the present invention, and I3 is a main body control section of a normal vending machine that performs addition of input amount, determination of sales availability, change calculation, and change payout control.

制御装置CPU1は故障検知の命令を解読して実行し且
つ結果を判定する装置であり自動販売機の故障検知を行
なうべき全ての構成要素と接続され、論取り専用メモリ
ーROM2(若しくはPROM)はCPUIの故障検知
に必要なプログラムを記憶し、読取り/書込みメモリー
RAM3はCPUIの処理結果を記憶し、そして入出力
装置1′04は直接自動販売機の各構成要素と接続され
てこれら各構成要素とCPUIとの間の信号の授受が行
なわれるように動作するものである。プログラムはCP
UIへの命令及びオペランドからなる命令語がアドレス
に沿ってストア‐されておりCPUIは順次1命令ごと
読み出してカンウトアップしシーケンシャルに処理を行
なう。この故障検知のプログラムの内容はメインフロー
チャートである第2A図、第2B図及びサブルーチンで
ある第2d図の各フローチャート示される。本実施例に
於いて故障を検知される自動販売機の各構成要素はコイ
ンがコイン投入口より投入されたことを検知するコイン
感知センサー5、投入されたコインを選別しコイン種類
毎に本体制御部13に加算信号を出力するコインスイッ
チ6、商品が販売動作の完了にて客に取り出される状態
にまで排出されたことを検知するペンドェンドセンサー
7、商品排出モータM2が駆動しているかを検知する商
品排出キャリアスイッチ12、釣銭が必要なときに釣銭
払出モータM,が釣銭を払出するたびに本体制御部13
に減算信号を出力する釣銭減算用センサー8及び釣銭が
払出されたかを検知する釣銭払出センサー9であり、こ
れら構成要素は本体制御部13と共にCPUIに故障検
知されるよう1/04にも接続されている。したがって
CPUIは各構成要素の故障を判定する故障検知手段と
、貨幣の投入により始まる自動販売動作で順次作動する
構成要素の夫々の作動前に故障検知手段が故障検知動作
を行なうよう制御する故障検知制御手段と、故障が検出
された構成要素に対応するェフーコードを示すエラーコ
ード信号を発生するヱフ−コード出力手段と、エラーコ
ード信号に基づき表示器にエラーコードを表示する表示
手段と、故障した構成要素に応じて自動販売機を全販売
中止状態或いは一部販売中止状態に制御する飯売中止制
御手段とを含む。また1′04にはリジェクト装置10
及びエラーコード表示の表示器11が接続されている。
次に第2A図、第2B図、第2C図、第2d図のフロー
チャートによって本発明装置の動作を明らかにしていく
The control device CPU1 is a device that decodes and executes failure detection commands and judges the results, and is connected to all the components that should perform failure detection of the vending machine, and the discussion-only memory ROM2 (or PROM) is connected to the CPU The read/write memory RAM3 stores the processing results of the CPUI, and the input/output device 1'04 is directly connected to each component of the vending machine to communicate with each of these components. It operates to exchange signals with the CPUI. The program is CP
Instruction words consisting of instructions and operands to the UI are stored along addresses, and the CPU UI sequentially reads out each instruction, counts up, and performs processing sequentially. The contents of this failure detection program are shown in the main flowcharts of FIGS. 2A and 2B, and the subroutine of FIG. 2d. In this embodiment, each component of the vending machine whose failure is detected is a coin detection sensor 5 that detects when a coin is inserted from the coin slot, and a main unit that sorts the inserted coins and controls the main unit for each type of coin. A coin switch 6 outputs an addition signal to the section 13, a pen-end sensor 7 detects that the product has been discharged to a state where it can be taken out by a customer upon completion of the sales operation, and a pen-end sensor 7 detects whether the product discharge motor M2 is being driven. Product discharge carrier switch 12 to detect, change dispensing motor M when change is required, main body control unit 13 every time change is dispensed.
A change subtraction sensor 8 outputs a subtraction signal to a change subtraction sensor 8, and a change dispensing sensor 9 detects whether change is dispensed. ing. Therefore, the CPU includes a failure detection means that determines the failure of each component, and a failure detection means that controls the failure detection means to perform a failure detection operation before each of the components that are sequentially activated in the vending operation that starts when coins are inserted. a control means, an error code output means for generating an error code signal indicating an error code corresponding to a component in which a failure has been detected, a display means for displaying an error code on a display based on the error code signal; It also includes a rice sales stop control means that controls the vending machine to be in a state where all sales are stopped or a part of sales is stopped depending on the component. Also, at 1'04 there is a reject device 10.
and a display 11 for displaying an error code are connected.
Next, the operation of the apparatus of the present invention will be explained with reference to flowcharts shown in FIGS. 2A, 2B, 2C, and 2d.

先ず電源が投入されると初期セットされて第2A図から
プログラムが開始されて第1,第2モードでコイン感知
センサー5の故障検知動作が開始される。コイン感知セ
ンサー5は後に説明するペンドェンドセンサー7及び銭
銭払出センサー9と略同一の機構であり第3図に示すよ
うに発信装置16より出力される信号を受信装置17で
受信するような構成にして、両者間にコインが通過する
と受信装置17で受信される信号の内容が変化すること
でコインの通過を検知しコイン感知信号を出力するもの
である。
First, when the power is turned on, initial settings are made, the program is started from FIG. 2A, and the failure detection operation of the coin detection sensor 5 is started in the first and second modes. The coin detection sensor 5 has almost the same mechanism as the pen-end sensor 7 and the coin dispensing sensor 9, which will be explained later.As shown in FIG. In this structure, when a coin passes between the two, the content of the signal received by the receiving device 17 changes, thereby detecting the passing of the coin and outputting a coin sensing signal.

したがって発光ダイオードLEDとフオトトランジスタ
PTのように光で信号を授受するような構成が励磁コイ
ルと検出コイルのように磁界で信号を授受するような装
置が考えられる。このような構成のコイン感知センサー
5の故障を検知するには第1モードでCPUIは発信装
置1 6である発光ダイオードLEDを消灯させて次に
第2モードでフオトトランジスタPTが○FFしている
かを検査することで故障検知が行なわれる。第2モード
は判定モードでありPTのOFFが確認できればCPU
Iはプログラムを第3モードに進めるが確認されなけれ
ば故障としてCPUIはプログラムを第2d図のサブル
ーチンにジャンプさせる。ここでサブルーチンについて
第2d図に基づき説明すると、第1′モードは自動販売
機を全販売中止とする指令がROM2にストア一されて
おりCPUIはこれを読取ってリジェクト装置10を動
作させる。
Therefore, it is possible to consider a device that uses a structure that sends and receives signals using light, such as a light emitting diode LED and a phototransistor PT, and sends and receives signals using a magnetic field, such as an excitation coil and a detection coil. To detect a failure in the coin detection sensor 5 having such a configuration, in the first mode, the CPU turns off the light emitting diode LED, which is the transmitter 16, and then in the second mode, checks whether the phototransistor PT is turned FF. Failure detection is performed by inspecting. The second mode is a judgment mode, and if it is confirmed that the PT is OFF, the CPU
I advances the program to the third mode, but if it is not confirmed, it is considered a failure and the CPUI causes the program to jump to the subroutine of FIG. 2d. Here, the subroutine will be explained based on FIG. 2d. In the 1' mode, a command to stop all sales of the vending machine is stored in the ROM 2, and the CPU reads this and operates the reject device 10.

サブルーチンの第2モードはCPUIがエラーコードを
記憶するモードであり、メインフローの第2モードでエ
ラーが発生してサブルーチンにジャンプしてきたことで
第2モ−ドのエラーコードをRAM3に記憶するのであ
る。エラーコードかプログラムの第2モードの判定を指
令するアドレスのオペランドにストア‐されており、C
PUIはエラーが発生した場合このェラーコ−ドを読取
って記憶するのである。サブルーチンの第3モード‘ま
表示器11にRAM3に記憶されているエラーコードを
表示するモードである。第4モードはメィンフ。‐への
復帰を判定するモードであり、管理者の手によって故障
が直り所定のリセットスイッチが押圧されると第4′モ
ードから元のメインフローに復帰してリジェクト装贋の
動作は解除される。このときROM2はジャンプとなっ
たアドレスを記憶しているのでメインフローは次のアド
レスをCPUIに指令するとで再開される。しかしなが
ら譲りセットスイッチが押圧されない限りフローは第1
′モードから第4′モードまでのサブルーチンを繰返し
て廻りエラーコードを表示器11に表示し続ける。再び
メインフローの説明に戻るが第3モードではCPUIは
コインスイッチ6が何か異物を感知して○Nしてし1な
いかを検知してOFFであれば第4モードに移行する。
The second mode of the subroutine is a mode in which the CPUI stores the error code, and when an error occurs in the second mode of the main flow and jumps to the subroutine, the error code of the second mode is stored in RAM3. be. The error code is stored in the operand of the address that commands the judgment of the second mode of the program, and the C
When an error occurs, the PUI reads and stores this error code. The third mode of the subroutine is a mode in which the error code stored in the RAM 3 is displayed on the display 11. The fourth mode is the main mode. - This is a mode for determining whether to return to ``-'', and when the failure is corrected by the administrator and the specified reset switch is pressed, the 4' mode returns to the original main flow and the reject counterfeit operation is canceled. . At this time, since the ROM 2 stores the address that caused the jump, the main flow is restarted by instructing the CPUI to specify the next address. However, unless the yield set switch is pressed, the flow will be the first
The subroutines from 'mode' to '4th' mode are repeated and the error code continues to be displayed on the display 11. Returning to the explanation of the main flow again, in the third mode, the CPU detects whether the coin switch 6 detects a foreign object and turns OFF, and if it is OFF, shifts to the fourth mode.

またONであればコインスイッチ6の近傍に詰まりが生
じているとして第2d図サブルーチンにジャンプするが
このときのエラーコード‘ま第3モードをCPUIに指
定するアドレスのオペランドにストア−されている。第
4モードではCPUIはコインの投入が有るかを判定す
るのであり通常コインの投入されていない販売待機状態
にあっては第4モードからブランチして第1モードに復
帰しコイン感知センサー5の故障検知が繰返して行なわ
れているのであるが客によって投入されたことに基づく
販売動作の開始に伴なつて故障検知のプログラムは第5
モ−ドから実行される。このときコイン投入の有無を判
定するのはコイン感知センサー5がコインの通過によっ
てフオトトランジスタが○FFしてコイン感知信号を出
力しているかで行なわれる。このときコインの通過にて
フオトトランジスタが○FFしている時間は検査のため
にフオトトランジスタをOFFさせる時間と比較して非
常に長いため両者は容易に区別し得る。第5モードはコ
インが投入された後コインスイッチ6によつこのコイン
が検知されるのを待機するモードでありコインスイッチ
6のONが確認できないとブランチして再びこのモード
を繰返して実行する。
If it is ON, it is assumed that there is a blockage near the coin switch 6, and the process jumps to the subroutine shown in FIG. In the fourth mode, the CPU determines whether or not a coin has been inserted. Normally, in the sales standby state where no coin has been inserted, the CPU branches from the fourth mode and returns to the first mode, and the coin detection sensor 5 fails. Although the detection is repeated, the failure detection program starts at the fifth stage when the sales operation starts based on the input by the customer.
Executed from mode. At this time, whether or not a coin has been inserted is determined by checking whether the phototransistor of the coin sensing sensor 5 is turned FF as the coin passes and outputs a coin sensing signal. At this time, the time the phototransistor is turned OFF when the coin passes is much longer than the time the phototransistor is turned OFF for inspection, so the two can be easily distinguished. The fifth mode is a mode in which the machine waits for the coin to be detected by the coin switch 6 after it has been inserted, and if it cannot be confirmed that the coin switch 6 is turned on, it branches and repeats this mode again.

そしてONを確認すると第6モードヘプログラムは進行
する。コインスイッチ6で投入コインが確認されるとコ
イン投入信号が出力され、この投入金額に基づいて販売
可能な商品の判定が行なわれて商品選択スイッチを動作
可能にする動作が本体制御部13で行なわれるのである
がこの間にCPUIは第6モードでコインスイッチ6、
第7モードで釣銭減算用センサー8、第8モードで商品
排出キャリアスイッチ12の故障検知が行なわれる。
When ON is confirmed, the program proceeds to the sixth mode. When the inserted coin is confirmed by the coin switch 6, a coin insertion signal is output, and based on this inserted amount, a product that can be sold is determined, and the main body control section 13 performs an operation to enable the product selection switch. During this time, the CPU is in the 6th mode and the coin switch 6 is pressed.
Failure of the change subtraction sensor 8 is detected in the seventh mode, and failure of the product discharge carrier switch 12 is detected in the eighth mode.

即ち第6モードではコインの通過にて〇Nしたコインス
イッチ6が通過した後再びOFFしているかの検査をす
るのである。そして第7モード及び第8モードは夫々釣
銭減算用センサー8及び商品排出キャリアスイッチ12
の検査を行なうのである。釣銭減算用センサー8及び商
品排出キャリアスイッチ12は釣銭払出モータM,及び
商品排出モータM2の一回転の動作を制御するスイッチ
で一回転する間に商品1個の排出及び釣銭コイン1枚の
払出動作が成される。釣銭減算用センサー8及び商品排
出キャリアスイッチ12は略同一の機構であり第4図に
概略を示すとモータMは釣銭払出モータM,若しくは商
品排出モータM2であり、駆動軸Pは円板14が装着さ
れて且つ円板14には金属片15が取付けられている。
そして釣銭減算用センサー8若しくは商品排出キャリア
スイッチ12である近接スイッチSは金属片15がa位
置にあって互いに対向しているときは○Nしているがモ
ータMが矢印方向に回動するとOFFする。そして近接
スイッチSがOFFするとモータMは自己保持されて次
に金属片15が再び近接スイッチSと対向してONする
まで駆動しつづけてすなわちモータMは1回転の駆動を
保証されるのである。したがってモータMが1回転をす
るためには回動前にあっては金属片15はa位層になけ
ればならず例えば点線の位置b‘こあったならば1回転
が保証され得ず正常な釣銭払出動作はなされない。故に
釣銭払出動作前若しくは商品排出動作前は釣銭減算用セ
ンサー8若しくは商品排出キャリアスイッチ12は○N
してし、なければならずこの検査が第7モード及び第8
モードで行なわれる。このようにして第6,7,8モー
ドでは商品選択スイッチが押圧される前にコインスイッ
チ6、釣銭減算用センサー8、商品排出キャリアスイッ
チ12が夫々検査されるわけであるがCPUIは何れか
のモードで故障を検知するとプログラムを第2d図サブ
ルーチンに移行させてそのエラーコードを表示する。こ
のとき全販売中止となることは前述の通りであるが投入
したコインを返却する手段を設けねばならない。また複
数個のコインが投入されないと商品設定価格にまで到達
しない場合はコインが投入されるたびに第4モードから
第8モードは繰返して実行されなければならないのであ
るがこれについてのフローチャートは有略する。第6、
7、8モードで故障が検知されない場合には第9モ−ド
ーこ進み客によって商品が選択された場合には第10モ
ードもこ進行するが未だ選択されていない場合は第6モ
ードにブランチして第6,7,8モードが再び繰返され
る。したがって選択が行なわれたかの判定は選択スイッ
チの動作にて本体制御部13より発生する選択信号の有
無で行なわれる。第2B図は選択信号が発生してからの
故障検知のプログラムを示す。
That is, in the sixth mode, a check is made to see if the coin switch 6, which was turned OFF when the coin passed, is turned OFF again after the coin passes. The seventh mode and the eighth mode are operated by a change subtraction sensor 8 and a product discharge carrier switch 12, respectively.
The inspection will be carried out. The change subtraction sensor 8 and the product discharge carrier switch 12 are switches that control the operation of the change dispensing motor M and the product discharging motor M2 in one rotation, and discharge one product and dispense one change coin during one rotation. is accomplished. The change subtraction sensor 8 and the product discharge carrier switch 12 have almost the same mechanism, and the outline is shown in FIG. A metal piece 15 is attached to the disk 14.
The change subtraction sensor 8 or the proximity switch S, which is the product discharge carrier switch 12, is turned on when the metal pieces 15 are in position a and facing each other, but turns off when the motor M rotates in the direction of the arrow. do. Then, when the proximity switch S is turned off, the motor M is self-held and continues to be driven until the metal piece 15 faces the proximity switch S again and is turned on, that is, the motor M is guaranteed to drive one revolution. Therefore, in order for the motor M to make one rotation, the metal piece 15 must be in the layer a before rotation. For example, if the metal piece 15 is at the position b' indicated by the dotted line, one rotation cannot be guaranteed and the normal Change dispensing operation is not performed. Therefore, the change subtraction sensor 8 or the product discharge carrier switch 12 is set to ○N before the change payout operation or the product discharge operation.
This test must be carried out in the 7th mode and the 8th mode.
It is done in mode. In this way, in the 6th, 7th, and 8th modes, the coin switch 6, change subtraction sensor 8, and product discharge carrier switch 12 are each inspected before the product selection switch is pressed, but the CPU When a failure is detected in the mode, the program is transferred to the subroutine shown in FIG. 2d and the error code is displayed. As mentioned above, all sales will be discontinued at this time, but a means must be provided to return the inserted coins. Also, if the product does not reach the set price until multiple coins are inserted, modes 4 to 8 must be repeated each time a coin is inserted, but a flowchart for this is not provided. do. Sixth,
If no failure is detected in modes 7 and 8, the process advances to mode 9. If a product is selected by the customer, mode 10 also proceeds; if no item has been selected, branch to mode 6. The 6th, 7th, and 8th modes are repeated again. Therefore, it is determined whether a selection has been made or not based on the presence or absence of a selection signal generated by the main body control section 13 in response to the operation of the selection switch. FIG. 2B shows a program for fault detection after the selection signal is generated.

本体13の動作としては選択信号が発生すると選択され
た商品に対応する商品排出モータM2が通電されて回動
を開始するがそれと同時に第lullモ−ドでペンドェ
ンドセンサ−7の故障が検知される。ペンドェンドセン
サー7は販売口付近に装備されるもので商品排出モータ
M2にて排出された商品の到達を感知すると販売動作が
完了したとしてペンドヱンド信号を本体制御部13に出
力し、その構成は第3図で述べたコイン感知センサー5
と同一であり例えばLED及びフオトトランジスタとか
ら成る。したがって第10モードではペンドェンドセン
サー7のLEDをOFFさせて第11モードではフオト
トランジスタがOFFかを検査することで故障検知が行
なわれる。OFFが確認できなければ第2d図サフルー
チンに移行して全販売中止状態としエラーコードを表示
すると共に投入金額を返却する。第12モードは商品排
出モータM2が通電後正常に駆動てしているかを商品排
出キャリアスイッチ12の出力状態を検査することで行
なわれる。前述したように商品排出モータM2が駆動す
ると商品排出キャリアスイッチ12は○FFしてし、な
ければならずONならばその商品排出モータM2は回動
不能としてプログラムは一部中止のサブルーチンに移行
する。一部中止のサブルーチンは回敷不能な商品排出モ
−夕M2を備えるコラムを販売中止とする一部中止モー
ドを備え、該モードでは商品売切ランプを点灯させて再
び他のコラムを選択可能となるように制御する。したが
って故障検知のプログラムの次のアドレスはコイン投入
が終えた状態の第6モードが指定されて前述の動作が再
び行なわれる。商品排出モータM2が正常に回動してい
ることの確認後第13モードでCPUIはタイマー動作
が指令される。
As for the operation of the main body 13, when a selection signal is generated, the product ejecting motor M2 corresponding to the selected product is energized and starts rotating, but at the same time, a failure of the pen end sensor 7 is detected in the Lull mode. be done. The pen end sensor 7 is installed near the sales outlet, and when it senses the arrival of the product ejected by the product ejection motor M2, it outputs a pen end signal to the main body control unit 13, indicating that the selling operation has been completed. Coin detection sensor 5 mentioned in Figure 3
For example, it consists of an LED and a phototransistor. Therefore, in the tenth mode, the LED of the pen-end sensor 7 is turned off, and in the eleventh mode, failure detection is performed by checking whether the phototransistor is off. If OFF cannot be confirmed, the process moves to the subroutine shown in FIG. 2d, where all sales are stopped, an error code is displayed, and the amount invested is returned. The twelfth mode is carried out by checking the output state of the product ejection carrier switch 12 to see if the product ejection motor M2 is being driven normally after being energized. As mentioned above, when the product ejecting motor M2 is driven, the product ejecting carrier switch 12 is turned FF, and if it is ON, the product ejecting motor M2 is deemed unrotatable and the program moves to a subroutine where part of the program is stopped. . The partial cancellation subroutine has a partial cancellation mode that discontinues sales of the column with the non-repeatable product discharge mode M2, and in this mode, the product sold out lamp is lit and another column can be selected again. control so that Therefore, the next address of the failure detection program specifies the sixth mode in which coin insertion has been completed, and the above-described operation is performed again. After confirming that the product ejection motor M2 is rotating normally, the CPU instructs the timer operation in the 13th mode.

このタイマー時間は正常状態で商品排出キャリアスイッ
チ12がOFFからONとなるまでの第1の基準時間で
あり、第14モードはタイマー動作が指令されてから第
1の基準時間が経過しないうちは次の第15モードに移
行する。そして第15モードでは商品排出キャリアスイ
ッチ12のONを確認するモードであり確認されないと
第14モーNこブランチしてこの第14,15モード‘
ま繰返される。そして第1の基準時間以内に商品排出キ
ャリアスイッチ12のONが確認できれば第16モード
に移行するが第1の基準時間内にONが確認できなけれ
ば商品排出モータM2が1回転を行なっていないわけで
あり商品の排出は不可能で第14モードからサブルーチ
ンに移行して全販売中止状態とすると共に投入金額を返
却する第1の基準時間以内に商品排出キャリアスイッチ
12のONが確認されれば選択された商品はコラムから
は排出されたことになるが今度はそれが確実に客に手元
に届いたかを検知するには第16,17,18モードで
検査される。
This timer time is the first reference time from when the product ejection carrier switch 12 is turned from OFF to ON in a normal state. The mode shifts to the 15th mode. In the 15th mode, it is a mode to confirm whether the product ejection carrier switch 12 is turned on, and if it is not confirmed, the 14th mode is branched to the 14th and 15th modes.
It will be repeated. If it is confirmed that the product ejection carrier switch 12 is turned on within the first reference time, the mode shifts to the 16th mode, but if it is not confirmed that the product ejection carrier switch 12 is turned on within the first reference time, it means that the product ejection motor M2 has not made one rotation. Therefore, it is impossible to discharge the product, and the mode moves from the 14th mode to the subroutine to stop all sales and return the input amount.If the product discharge carrier switch 12 is confirmed to be ON within the first reference time, the selection is made. Although the product has been discharged from the column, it is now inspected in the 16th, 17th, and 18th modes to ensure that it has been delivered to the customer.

第16モードでは商品排出キャリアスイッチ12のON
の確認後CPUIは再びタイマー動作が指令される。こ
のタイマー時間は正常状態で商品排出モータM2にて商
品がコラムより排出された後販売口にまで到達するまで
の第2の基準時間である。動作は前述の第13、1公
15モードと同様でペンドェンド信号の有無を判定する
第13モードは第17モード‘こブランチされている。
したがって第2の基準時間以内にペンドェンド信号が生
じれば第2c図の第19モード‘こ移行するが、生じな
ければ商品詰まりを起こしているとして第17モードか
らサブルーチンに移移行して全販売中止とする。ペンド
ェンド信号に出力されると自動販売機本体お動作として
は商品排出動作にかかわる全ての動作を停止するが本体
制御部13は投入金額より排出商品額の減算を行なって
釣銭の要・不要を判定して要であれば釣銭払出指令を釣
銭払出モータM,に出力する。その間釣銭払出動作が行
なわれる場合に備えて釣銭払出センサー9の故障が第1
920モードで検査される。釣銭払出センサー9は釣銭
取出口付近に配設されるもので釣銭払出モータM,にて
排出された釣銭が確実に客の手元に到達すると釣銭払出
信号を本体制御部13に出力し、先に詳述したコイン感
知センサーと同一の構成である。したがって第19モー
ドでは釣銭払出センサー9のLEDをOFFさせて第2
0モードでこれによってフオトトランジスタがOFFす
るかを検査することで検査が行なわれる。第20モード
でフオトトランジスタのOFFが確認されなければ第2
d図サブル−チンに移行して全販売中止とする。このと
き本体制御部13に記憶されている釣銭額は自動販売機
の管理者によって返却されなければならない。こういう
ときにサブルーチンで第20モードを指令するアドレス
のオペラド‘こストア一されているエラーコードを表示
しているのは非常に有効である。即ち管理者はエラーコ
ードを見て故障の状態がわかり若し客によって商品は出
たが釣銭が出なかったという主張があればこれを確認す
ることができるのである。第21モードは本体制御部1
3より前記釣銭払出指令が出力されているかを判定し、
出力されていないならば自動販売機の全ての販売動作は
終了したとして故障検知のプログラムは第2A図の第1
モー日こブランチして販売待機状態における故障検知の
プログラムであるコイン感知センサー5の検査が行なわ
れる。
In the 16th mode, the product discharge carrier switch 12 is turned on.
After confirming this, the CPU is commanded to operate the timer again. This timer time is the second reference time from when the product is ejected from the column by the product ejection motor M2 until it reaches the sales outlet under normal conditions. The operation is the 13th and 1st public mentioned above.
The 13th mode, which is similar to the 15th mode and determines the presence or absence of a pen-end signal, is branched from the 17th mode.
Therefore, if the pen-end signal occurs within the second reference time, the mode will shift to the 19th mode in Figure 2c, but if it does not occur, it will be assumed that a product jam has occurred, and the mode will shift from the 17th mode to the subroutine to stop all sales. shall be. When the pen-end signal is output, the vending machine main body stops all operations related to the product ejection operation, but the main body control unit 13 subtracts the amount of the ejected product from the input amount to determine whether change is required or not. If necessary, a change payout command is output to the change payout motor M. In case the change dispensing operation is performed during that time, the failure of the change dispensing sensor 9 is the first.
920 mode. The change dispensing sensor 9 is disposed near the change dispensing outlet, and when the change discharged by the change dispensing motor M reaches the customer's hand, it outputs a change dispensing signal to the main body control unit 13, and It has the same configuration as the coin detection sensor described in detail. Therefore, in the 19th mode, the LED of the change dispensing sensor 9 is turned off and the
The test is performed by checking whether the phototransistor is turned off in the 0 mode. If the OFF of the phototransistor is not confirmed in the 20th mode, the 2nd
d) and all sales will be discontinued. At this time, the amount of change stored in the main body control section 13 must be returned by the administrator of the vending machine. In such cases, it is very effective to display the error code stored in the operand of the address that commands the 20th mode in the subroutine. That is, the manager can see the error code and understand the state of the malfunction, or if a customer claims that they received the product but not the change, they can confirm this. The 21st mode is the main body control unit 1
3, it is determined whether the change payout command is output,
If there is no output, it is assumed that all vending operations of the vending machine have ended, and the failure detection program is as shown in Figure 2A.
After branching out, the coin detection sensor 5, which is a failure detection program in the sales standby state, is inspected.

しかしながら該釣銭払出指令が出力されていれば自動販
売機の販売動作は未だ釣銭払出が残っているわけであり
故障検知のプログラムは釣銭払出動作にかかわる検査を
行なうために第22モー日こ進む。第22モード‘ま前
記釣銭払出指令にて釣銭払出モータM2が所定の釣銭を
払出するのに回動しているかを検知するもので前述した
ように回動中釣銭減算信号は○FFしてし、なければ.
ならない。
However, if the change dispensing command has been output, there is still change dispensing in the vending operation of the vending machine, and the failure detection program advances to the 22nd mode to perform a check related to the change dispensing operation. The 22nd mode is for detecting whether the change dispensing motor M2 is rotating to dispense a predetermined amount of change in response to the change dispensing command, and as mentioned above, the change subtraction signal is turned FF during rotation. , if not.
No.

よってONであれば釣銭払出モータM2が回動不能であ
り釣銭は払出され得ず第2d図サブルーチンヘジャンプ
する。このとき後に述べる第2も27モードもであるが
サブルーチンヘジヤンプしたとき本体制御部13に記憶
されている釣銭額を返却する。釣銭払出モータM2が正
常に回動していることの確認後第22モードではCPU
Iはタイマー動作が指令されて第3の基準時間以内に釣
銭減算用センサー8がONとなるかを第23,24,2
5モードで前述の第13,14,15モードと同様の動
作で検査される。したがって第3の基準時間は正常状態
で釣銭減算用センサー8がOFFからONとなるまでの
時間であり、第3の基準時間以内にONが確認できなけ
れば第25モードから第24モ−ド‘こブランチされる
が基準時間以上経つても確認できなければ第24モード
からサブルーチンヘジヤンプする。第3の基準時間以内
に釣銭減算用センサー8がONすれば釣銭が本体制御部
13の命令通りに払出さたのであるがこれが客の手元に
まで届いたかを第26,27,28モードで検査される
。したがって第26モードではCPUIに正常状態で釣
銭が釣銭払出モータM,にて払出されてから釣銭取出口
に到達するまでの第4の基準時間によるタイマー動作が
指令される。やはり動作は前述の第13,14,15モ
ードと同様で第4の基準時間以内に釣銭払出センサー9
が釣銭を検知して釣銭払出信号を出力しなければ第28
モードから第27モードにブランチされるが基準時間以
上経つても該信号が出力されなければ払出釣銭硬貨が詰
まりを生じているとして第27モードよりサブルーチン
ヘジャソプする。したがって第4の基準時間以内に釣銭
払出信号の発生が確認されれば釣銭硬貨1枚は確実に客
に払出されたとして第21モードへ復帰される。本体制
御部13は釣銭減算用センサー9力IONした時点で出
力される減算信号にて払出釣銭硬貨額の減算を行なって
いるが未だ残額がある場合には釣銭払出動作が更に必要
であるとして釣銭払出指令を再び出力しており、第21
モードで釣銭払出指令の出力が検知されると再び釣銭払
出動作における故障検知のプログラムは実行され、この
ようにして金額演算カウンターが「0」となるまで第2
1モードから第28モードのプログラムは繰返されるの
である。斯かる第2A,28,2C,2d図のフローチ
ャートによる故障検知方式を実行する装置(マイクロプ
ロセッサー)について具体的な回路の一例を挙げて説明
する。
Therefore, if it is ON, the change dispensing motor M2 cannot rotate and no change can be dispensed, and the routine jumps to the subroutine of FIG. 2d. At this time, in both the 2nd and 27th modes described later, when the subroutine jumps, the amount of change stored in the main body control section 13 is returned. After confirming that the change dispensing motor M2 is rotating normally, the CPU
I determines whether the change subtraction sensor 8 is turned ON within the third reference time after the timer operation is commanded.
In the 5th mode, inspection is performed in the same manner as in the 13th, 14th, and 15th modes described above. Therefore, the third reference time is the time it takes for the change subtraction sensor 8 to turn from OFF to ON in a normal state, and if ON cannot be confirmed within the third reference time, the mode changes from the 25th mode to the 24th mode. If this branch is not confirmed even after the reference time has elapsed, the subroutine jumps from the 24th mode. If the change subtraction sensor 8 turns ON within the third reference time, the change has been dispensed as instructed by the main body control unit 13, and it is checked in the 26th, 27th, and 28th modes whether the change has reached the customer. be done. Therefore, in the 26th mode, the CPU is instructed to operate a timer based on the fourth reference time from when change is dispensed by the change dispensing motor M in a normal state until it reaches the change outlet. Again, the operation is similar to the 13th, 14th, and 15th modes described above, and the change dispensing sensor 9 is activated within the fourth reference time.
If the change is detected and the change payout signal is not output, the 28th
The mode branches to the 27th mode, but if the signal is not output even after a reference time has elapsed, it is assumed that the payout change coins are jammed and the subroutine is branched from the 27th mode. Therefore, if generation of the change payout signal is confirmed within the fourth reference time, it is assumed that one change coin has been definitely paid out to the customer, and the mode returns to the 21st mode. The main body control unit 13 subtracts the payout change coin amount using the subtraction signal output when the change subtraction sensor 9 is turned on, but if there is still a remaining amount, it determines that further change payout operation is necessary and discards the change. The dispensing command is being output again, and the 21st
When the output of the change dispensing command is detected in the change dispensing mode, the failure detection program in the change dispensing operation is executed again, and in this way, the second
The programs from mode 1 to mode 28 are repeated. A device (microprocessor) that executes the failure detection method according to the flowcharts of FIGS. 2A, 28, 2C, and 2d will be described by citing a specific circuit example.

第5図はCPU1、ROM2、PAM3、1/0ボート
4の接続を概略的に示すものでROM2、RAM3、1
/0ボート4以外は全てCPUI内に存在する。ROM
2にストア‐されているプログラムの進行を制御するも
のとしてインクリメンタ/アダー18及びプログラムカ
ウンタPCI9があり、電源が投入された場合に先ずプ
ログラムカウントPCI 9がクリアーされて「0」と
なりROM2にアドレス「0」を指令してプログラムが
開始される。そしてプログラムの命令フェッチあるいは
データフェッチの度ごとにインクリメンタ/アダー18
は1だけプログラムカウン夕PCI9をインクリメント
する機能及びブランチ若しくはジャンプ命令の実行のと
き進むべきアドレスへの加算機能によりプログラムカウ
ンタPCI9をカウントさせてプログラムの進行を制御
するものである。プログラムの内容にはフェツチサイク
ルとエクスキユートサイクルがあるが命令を指定するフ
ェッチサィクルの場合、命令内容は命令レジスタ201
こ入力して記憶されると共にコントロール回路21では
その命令内容を解読して実行すべ〈種々の制御が行なわ
れる。コントロール回路21の制御とは先ず第5図中に
丸枠に数字を記して表わされる■から■までのゲートの
開閉を制御することで命令若しくはデータの伝達を制御
し、また論理積、論理和、排他的論理和等の各種の演算
を行なう演算論理ユニットALU22に行なうべき演算
動作を指定し、そして更に1/○ボート4の入出力端子
の開閉をも制御するものである。したがってフェツチサ
ィクルの場合はゲート■を開いて命令が命令レジスタ2
01こ入力するように制御しそしてェクスキュートサイ
クルの場合にはデータがゲート■を介してALU22に
入力するように制御するのである。例えば前述の故障検
知のフローチャートでペンドェンドセンサ−7の故障検
査を行なうのにLEDをOFFさせて次にフオトトラン
ジスタが○FFしているかを検知することで行なってい
ることを説明したがこの動作を第5図に基づいて更に詳
述する。
Figure 5 schematically shows the connections of CPU1, ROM2, PAM3, and 1/0 board 4.
All except /0 boat 4 exist in the CPUI. ROM
There is an incrementer/adder 18 and a program counter PCI9 that control the progress of the program stored in the ROM2.When the power is turned on, the program counter PCI9 is first cleared to "0" and the address is stored in the ROM2. The program is started by commanding "0". and an incrementer/adder 18 every time the program fetches an instruction or fetches data.
The program counter PCI9 controls the progress of the program by incrementing the program counter PCI9 by 1 and adding the address to the address to which to proceed when a branch or jump instruction is executed. Program contents include fetch cycles and execute cycles. In the case of fetch cycles that specify instructions, the instruction contents are stored in the instruction register 201.
The command is input and stored, and the control circuit 21 decodes and executes the contents of the command (various controls are performed). The control circuit 21 first controls the transmission of commands or data by controlling the opening and closing of gates from ■ to ■, which are indicated by numbers in the circle frames in FIG. , exclusive OR, etc., and also controls the opening/closing of the input/output terminals of the 1/○ boat 4. Therefore, in the case of a fetch cycle, gate ■ is opened and the instruction is transferred to instruction register 2.
In the case of an execute cycle, the data is controlled to be input to the ALU 22 through gate 2. For example, in the failure detection flowchart above, it was explained that the failure test for the pen-end sensor 7 is done by turning off the LED and then detecting whether the phototransistor is OFF. The operation will be further explained in detail based on FIG.

尚縦itの伝送線を備えている1/04は他に幾つか具
備されるのであるがここでは代表して一つのみを記載し
以下これを1/OAとする。そしてLEDは1/OAの
入出力端子0そしてフオトトランジスタは入出力端子1
に夫々接続されているものとする。この検査動作のプロ
グラムは次の6ステップで表わされる。1 1′OAの
敬itで示される各入出力端子の内容をアキュムレータ
ACC23に入れる。
Although there are several other 1/04s equipped with vertical IT transmission lines, only one will be described here as a representative, and hereinafter this will be referred to as 1/OA. The LED is input/output terminal 0 of 1/OA, and the phototransistor is input/output terminal 1.
It is assumed that the two are connected to each other. The program for this inspection operation is represented by the following six steps. 1 Put the contents of each input/output terminal indicated by 1'OA into the accumulator ACC23.

2 ァキュムレータACC23の内容とプログラムの次
のアドレスにストア一されている斑itのデータとの論
理積を演算して演算結果をACC25に入れる。
2. Performs a logical AND operation between the contents of the accumulator ACC23 and the data of the spot it stored at the next address of the program, and stores the result in the ACC25.

3 ACCの内容を1/OAに出力してLEDを消灯さ
せる。
3 Outputs the contents of ACC to 1/OA and turns off the LED.

4 1′OAの内容をACCに入れる。4 Put the contents of 1'OA into ACC.

5 ACCの内容と次のアドレスにストア‐されている
データとの論理積を取って結果をACCに入れる。
5 Performs a logical AND operation between the contents of ACC and the data stored at the next address, and stores the result in ACC.

6 ACCの内容より検査結果を判定する。6 Determine the test result based on the contents of the ACC.

先ず上記の1ステップではコントロール回路21はゲー
ト■,■を開いて1/OAの0から7までの各入出力端
子に対応するめitの内容「1・1・0・1・1・0・
1.0」をALU22を介してACC23に入力する。
尚この滋itの内容はこの命令のアドレスが指定される
前の1/OAの出力状態であり、特にこの限りではない
がlbit目及び2bit目はLEDが点灯していてか
つこれによりフオトトランジスタが○Nしているために
夫々「1」を出力している。2ステップではコントロー
ル回路21はゲート■,■,■を開いてACC23に記
憶されている「1・1・0・1・1・0・1・0」とR
OM2の次のアドレスにストア−されている&itのデ
ータ「0・1・1・1・1・1・1・1」との論理積を
ALU22で演算させてACC23に出力する。
First, in the above step 1, the control circuit 21 opens the gates ■ and ■ and inputs the contents of ``IT'' corresponding to each input/output terminal from 0 to 7 of 1/OA.
1.0'' is input to the ACC 23 via the ALU 22.
The content of this bit is the output state of 1/OA before the address of this instruction is specified, and although this is not particularly the case, the LED of the 1st and 2nd bits is lit and the phototransistor is turned on by this. ○N, so "1" is output for each. In the second step, the control circuit 21 opens the gates ■, ■, ■ and inputs "1, 1, 0, 1, 1, 0, 1, 0" and R stored in the ACC 23.
The ALU 22 calculates the AND with the &it data "0.1.1.1.1.1.1.1" stored at the next address of the OM2, and outputs the result to the ACC23.

この演算動作は次の第1表真理値表のごとく行なわれて
この演算結果はACC23に記憶される。第1表3ステ
ップではコントロール回路21はゲート■,■を開いて
ALU22を介しACC23の敬jtの内容を1/OA
に出力する。
This arithmetic operation is performed as shown in the following truth table 1, and the result of this arithmetic operation is stored in the ACC 23. In step 3 of Table 1, the control circuit 21 opens the gates ■ and ■ and transmits the contents of the ACC 23 to 1/OA via the ALU 22.
Output to.

したがって1/OAの入出力端子0にはro」が出力さ
れることになりLEDは消灯する。4ステップではコン
トロール回路21‘まゲート■,■を開いて1/OAの
内容をACC23に入力する。このときフオトトランジ
スタがLEDの消灯に基づいて○FFしたときは正常で
1/OAの入出力端子1は「0」を出力してその内容は
「0.0・0・1・1・0・1・0」となるが故障で○
Nしたままであると「0・1・0リ1・1・0・1・o
」の状態である。5ステップではコントロール回路21
はゲート■,■,■を開いてACC23に記憶されてい
る内容とROM2の次のアドレスにストア−されている
めitのデータ「0・1・0・0・0・0 ・0・0」
との論理積を演算さてACC23に出力する。
Therefore, "ro" is output to the input/output terminal 0 of 1/OA, and the LED is turned off. In step 4, the control circuit 21' opens gates ■ and ■ and inputs the contents of 1/OA to the ACC 23. At this time, if the phototransistor turns FF based on the LED turning off, it is normal and the input/output terminal 1 of 1/OA outputs "0", and the contents are "0.0.0.1.1.0. 1.0" but due to malfunction ○
If it stays in N, "0・1・0ri1・1・0・1・o
” condition. In step 5, the control circuit 21
opens the gates ■, ■, ■ and reads the contents stored in the ACC23 and the data stored in the next address of the ROM2, "0, 1, 0, 0, 0, 0, 0, 0".
The logical product is calculated and outputted to the ACC 23.

第2表はフオトトランジスタがOFFしたときのALU
22における演算動作の真理値表を示し、第3表はフオ
トトランジスタが故障によりONしたままであったとき
の真理値表を示す。第2表6ステップのプログラムの命
令語はACC3に記憶されている5ステップでの演算結
果に基づいてペンドェンドセンサー7の故障を判定して
ジャンプの要・不要を決定せよという命令及びオペラン
ドとしてサブルーチンのジャンプアドレスとRAM3に
記憶させるエラーコードとより成っている。故障の判定
はACC23の2bit目の出力状態をステータスレジ
スタ25によって検知することで行なわれるが「0」で
あれば正常でプログラムは次のアドレスに進行するが「
1」のとき故障で第3図に示すジャンプ動作が行なわれ
る。即ちコントロール回路21はフェツチサイクルでジ
ャンプの要・不要を判定せよという命令を解読するとA
NDゲート24を開いてジャンプ動作の準備を行なう。
そしてACC23の出力状態をステータスレジスタ25
で調べて何れかのセルで「1」を検出するとANDゲー
ト24よりジャンプ指令がインクリメンタ/アダー18
に出力されてその加算機能が動作すべく命令を受ける。
尚ステータスレジスタ25はACC23の何れかのセル
より「1」が出力されているかまたは全てのセルが「0
」を出力しているかの検出及び演算の結果ACC23に
キヤリーが生じたかを検出するもので故障の場合第3表
真理値表のごとく沙it目に「1」が出力されているた
めにステータスレジスタ25よりANDゲート24に出
力が生じて前記ジャンプ指令が発生するのである。この
ジャンプ指令が発生するとジャンプ前のプログラムのア
ドレスにストア‐されている所定の値がインクリメンタ
/アダ−18を介してPCI9に加算されてROM2に
はジャンプすべきアドレスが指定される。そしてジャン
プとなったときコントロール回路21はゲート■,■を
開いてALU22を介してRAM3にエラーコードを記
憶させる。またジャンプすることを判定したプ。グラム
のアドレスはFCI9よりスタックレジスタ26に記憶
しておくためにサブルーチンより復帰する場合この記憶
に基づいて復帰すべきアドレスが指定される。RAM3
に記憶されているエラーコードを表示する場合にはコン
トロール回路21はゲート■,■を開いてRAM3内の
所定のアドレスに記憶しているエラーコードをALU2
2を介して1/0ポ−ト4に出力するのである。次にメ
インフローの第13,14,15モードで見られるタイ
マー動作のプログラムは次の3ステップで進行する。
Table 2 shows the ALU when the phototransistor is turned off.
Table 3 shows the truth table for the arithmetic operation in No. 22, and Table 3 shows the truth table when the phototransistor remains ON due to a failure. The command word of the program in the 6th step of Table 2 is the command and operand to determine the failure of the pen-end sensor 7 based on the calculation result in the 5th step stored in the ACC 3 and determine whether a jump is necessary or not. It consists of a subroutine jump address and an error code to be stored in RAM3. A failure is determined by detecting the output state of the 2nd bit of the ACC 23 using the status register 25. If it is "0", it is normal and the program proceeds to the next address, but "
1, a failure occurs and the jump operation shown in FIG. 3 is performed. That is, when the control circuit 21 decodes the command to determine whether a jump is necessary or unnecessary in the fetch cycle, A is executed.
The ND gate 24 is opened to prepare for a jump operation.
Then, the output status of ACC23 is stored in the status register 25.
When ``1'' is detected in any cell, a jump command is sent from the AND gate 24 to the incrementer/adder 18.
It receives an instruction to operate the addition function.
The status register 25 indicates whether "1" is output from any cell of the ACC 23 or all cells are "0".
This function detects whether a carry has occurred in the ACC23 as a result of the calculation and the detection of whether a carry has occurred in the ACC23.In the case of a failure, the status register is 25 generates an output to the AND gate 24, and the jump command is generated. When this jump command is generated, a predetermined value stored at the address of the program before the jump is added to the PCI 9 via the incrementer/adder 18, and the address to jump to is specified in the ROM 2. When a jump occurs, the control circuit 21 opens the gates (2) and (2) and stores the error code in the RAM 3 via the ALU 22. Pu decided to jump again. The program address is stored in the stack register 26 by the FCI 9, so when returning from the subroutine, the address to be returned to is specified based on this storage. RAM3
When displaying the error code stored in the ALU 2, the control circuit 21 opens the gates ■ and ■ and displays the error code stored in the predetermined address in the RAM 3.
It outputs to 1/0 port 4 via 2. Next, the timer operation program seen in the 13th, 14th, and 15th modes of the main flow proceeds in the following three steps.

I RAM3の内の或るレジスターにタイマー時間に相
当する或る値を出力して記憶させる。
A certain value corresponding to the timer time is output and stored in a certain register in the I RAM 3.

2 1/0ボートAの内容をACC23に入力してステ
ータスレジスタ25で調べる。
2 Input the contents of 1/0 boat A to the ACC 23 and check it with the status register 25.

3 1/0ボートAの内容のうち所定のビットの出力が
変化していないことを確認するごとに前記レジスタに記
憶した値から「1」を減算する。
3. Subtract "1" from the value stored in the register each time it is confirmed that the output of a predetermined bit of the contents of 1/0 port A has not changed.

以下2,3ステップを交互に返してこの減算動作中に前
記所定ビットの出力が変化すればタイマー時間以内と判
定し、また減算によって前記値が「0」となっても出力
が変化していなければタイマー時間以上と判定する。例
えば1/0ボートAの入出力端子2に接続されている商
品排出キャリアスイッチ12がOFFからONとなると
きのタイマー動作を説明する。
The following two or three steps are repeated alternately, and if the output of the predetermined bit changes during this subtraction operation, it is determined that the time is within the timer time, and even if the value becomes "0" due to the subtraction, the output must not change. If so, it is determined that the time is longer than the timer time. For example, the timer operation when the product discharge carrier switch 12 connected to the input/output terminal 2 of the 1/0 boat A is turned from OFF to ON will be explained.

1ステップのフェッチサィクルではタイマー動作の命令
とRAM3のうちで使用するレジスターを指定すると共
にェクスキュートサイクルではこのレジスターに記憶さ
せるべきタイマー時間に相当するタイマー値がデータと
してストア‐されている。
In the one-step fetch cycle, a timer operation command and a register to be used in the RAM 3 are designated, and in the execute cycle, a timer value corresponding to the timer time to be stored in this register is stored as data.

したがってコントロール回路21はゲート■,■を開い
てこのデータ値をALU22を介して前記レジス外こ記
憶させる。2ステップではめitで表わされる1/0ボ
ートAの内容をACC23に記憶させるべくコントロー
ル回路21はゲート■,■を開く。
Therefore, the control circuit 21 opens the gates (1) and (2) and stores this data value outside the register via the ALU 22. In step 2, the control circuit 21 opens gates ① and ② in order to cause the ACC 23 to store the contents of the 1/0 boat A represented by MET.

このときの敬itの内容のうち枇it目は商品排出キャ
リアスイッチ1 2がOFFであるために「0」である
がこれはステータスレジスタ25にて検出される。3ス
テップではこの批it目の「0」検出により、フェッチ
サィクルでは前記レジスタの減算動作の命令及びェクス
キュートサイクルではデータとして減算する値rl」が
ストア‐されている。
At this time, the item "It" in the contents of "It" is "0" because the product discharge carrier switch 12 is OFF, and this is detected by the status register 25. In step 3, upon detection of this ``0'', the command for the subtraction operation of the register is stored in the fetch cycle, and the value rl to be subtracted as data is stored in the execute cycle.

先ずコントロール回路21はゲート■,■を開いてRA
M3内の前記レジスタに記憶されているタイマー値をA
LU22を介してACC23に移し換え、次にALU2
2に減算命令を出力すると共にゲート■,■,■を開く
ことでACC23に移し換えられたタイマー値より「1
」を減算する動作が行なわれる。そしてこの減算結果は
再び前記レジスタに記憶される。「1」の減算の終了後
再び1′○ボートAの内容をACCに入力してステータ
スレジスタ25にて紬it目の出力状態を検査し、「0
」であれば先程の減算値から更に「1」減算動作が行な
われる。即ち2、3ステップが交互に繰返されるわけで
ある。したがって前記レジスタに記憶されたタイマー値
が減算の繰返いこよって0となる迄の時間がタイマー時
間であり、前記しジスタの減算値が0となる以前に商品
排出キャリアスイッチ1 2がON則ち地it目の出力
「1」が検出されれば正常なのである。以上詳述した本
発明は自動販売機を構成する各箇所が一販売動作期間の
開始に基づいて順次販売動作を実行する上で作動するに
際し、その作動前に序じめ正常であるかを検査するもの
である。
First, the control circuit 21 opens the gates ■ and ■ to RA.
The timer value stored in the register in M3 is A
Transfer to ACC23 via LU22, then ALU2
By outputting a subtraction command to ACC23 and opening gates ■, ■, ■, "1" is obtained from the timer value transferred to ACC23.
” is subtracted. The result of this subtraction is then stored in the register again. After the subtraction of "1" is completed, input the contents of 1'○ boat A to ACC again, check the output state of the tsumugi it in the status register 25, and check "0".
”, then “1” is further subtracted from the previous subtraction value. That is, two or three steps are repeated alternately. Therefore, the time until the timer value stored in the register becomes 0 due to repeated subtraction is the timer time, and before the subtracted value of the register becomes 0, the product discharge carrier switch 12 is turned on. If the output "1" of the ground it is detected, it is normal. The present invention described in detail above first inspects whether each part constituting a vending machine is normal before operating when sequentially performing a vending operation based on the start of a vending operation period. It is something to do.

従来方式ではその箇所が作動してみて始めて故障を検知
するものであるが本発明では作動前に故障を検知できる
ために誤動作を未然に防止できるのである。そして動作
前の検査で正常であるとこの各箇所の動作を許容するわ
けであるが動作中も平行して故障診断を行なうので若し
動作中に異常が発生しても故障状態を容易に知らせると
ができる。また故障を検知した場合に自動販売機を全て
販売中止状態とするのではなく故障内容に応じては故障
コラムのみの一部販売中止状態とすることもできる稼動
率を向上させることができる。図面の簡単な説明第1図
は本発明装置の概略を示すブロック図、第2A図、第2
B図、第2c図はメインフローチャート、第2d図はサ
ブルーチンのフローチャート、第3図はペンドェンドセ
ンサー若しくは釣銭払出センサーの構成、第4図は釣銭
減算用センサー若しくは商品排出キャリアスイッチの構
成、第5図及び第6図はCPU、RAM、ROM、1/
0の具体的回路の一例を夫々示す。
In the conventional system, a failure is detected only after the relevant part is operated, but with the present invention, a failure can be detected before operation, thereby making it possible to prevent malfunctions. If the pre-operation inspection shows that each part is normal, the operation of each part is allowed, but since failure diagnosis is performed in parallel during operation, even if an abnormality occurs during operation, the failure status can be easily notified. I can do that. Furthermore, when a failure is detected, rather than all vending machines being discontinued, depending on the nature of the failure, only some of the vending machines can be discontinued, thereby improving the operating rate. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram schematically showing the apparatus of the present invention, FIG. 2A, and FIG.
Figures B and 2c are the main flowchart, Figure 2d is the subroutine flowchart, Figure 3 is the configuration of the pen-end sensor or change payout sensor, Figure 4 is the configuration of the change subtraction sensor or product discharge carrier switch, and Figure 2c is the configuration of the change subtraction sensor or product discharge carrier switch. Figures 5 and 6 show CPU, RAM, ROM, 1/
An example of a specific circuit of 0 is shown.

主な図番の説明i・・・・・・制御装置CPU、2・・
・・・・記憶装置ROM、3…・・・議取り/書込みメ
モリR掛り、4…・・・1/0ボート。
Explanation of main drawing numbers i... Control device CPU, 2...
...Storage device ROM, 3...Discussion/write memory R capacity, 4...1/0 boat.

第3図 第4図 第1図 第2A図 第2B図 第2C図 第2D図 第6図 第5図Figure 3 Figure 4 Figure 1 Figure 2A Figure 2B Figure 2C Figure 2D Figure 6 Figure 5

Claims (1)

【特許請求の範囲】[Claims] 1 自動販売機の各構成要素の異常を検査する故障検知
装置であって、動作前の構成要素が動作時と同じ信号を
生じているとき、或いは構成要素に信号を与えて該信号
に対しての応答が得られないとき当該構成要素の異常を
検出する故障検知手段と、貨幣の投入により始まる自動
販売動作で順次作動する構成要素の作動前に前記故障検
知手段が故障検知動作を行なうよう制御する故障検知制
御手段と、故障が検出された構成要素に対応するエラー
コードを示すエラーコード信号を発生するエラーコード
出力手段と、該エラーコードに基づき表示器にエラーコ
ードを表示する表示制御手段と、故障した構成要素に応
じて自動販売機を全販売中止状態或いは一部販売中止状
態に制御する販売中止制御手段とから成る自動販売機の
故障検知装置。
1 A failure detection device that inspects abnormalities in each component of a vending machine, when the component before operation is generating the same signal as during operation, or by giving a signal to the component and responding to the signal. failure detection means for detecting an abnormality in the component when a response is not obtained; and control so that the failure detection means performs the failure detection operation before the activation of the components that are sequentially activated in the vending operation that starts when money is inserted. fault detection control means for detecting a fault, error code output means for generating an error code signal indicating an error code corresponding to a component in which a fault has been detected, and display control means for displaying an error code on a display based on the error code. 1. A failure detection device for a vending machine, comprising: a sales suspension control means for controlling the vending machine to a completely or partially sales suspended state depending on the component that has failed.
JP51129099A 1976-10-26 1976-10-26 Vending machine failure detection device Expired JPS6013225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51129099A JPS6013225B2 (en) 1976-10-26 1976-10-26 Vending machine failure detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51129099A JPS6013225B2 (en) 1976-10-26 1976-10-26 Vending machine failure detection device

Publications (2)

Publication Number Publication Date
JPS5354097A JPS5354097A (en) 1978-05-17
JPS6013225B2 true JPS6013225B2 (en) 1985-04-05

Family

ID=15001036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51129099A Expired JPS6013225B2 (en) 1976-10-26 1976-10-26 Vending machine failure detection device

Country Status (1)

Country Link
JP (1) JPS6013225B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62170121U (en) * 1986-04-16 1987-10-28

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5574260A (en) * 1978-11-30 1980-06-04 Tamura Electric Works Ltd Public telephone of self-diagnosis type
JPS5953483U (en) * 1982-09-28 1984-04-07 富士電機株式会社 Abnormality transmission device for vending machines

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5049382U (en) * 1973-09-03 1975-05-15
JPS50142096A (en) * 1974-04-30 1975-11-15
JPS5156294A (en) * 1974-11-11 1976-05-17 Omron Tateisi Electronics Co

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62170121U (en) * 1986-04-16 1987-10-28

Also Published As

Publication number Publication date
JPS5354097A (en) 1978-05-17

Similar Documents

Publication Publication Date Title
JP4686815B2 (en) Game machine
JP2001231928A (en) Control device for game machine
JPS6013225B2 (en) Vending machine failure detection device
JP2001161989A (en) Controller for game machine
JPS6014395B2 (en) Vending machine failure detection method
JP5729396B2 (en) Game machine
JP2002052206A5 (en)
JPS6013224B2 (en) Vending machine failure detection method
JP2007289770A (en) Game machine
JP2003236199A (en) Game machine
JP2002058835A5 (en)
JPS5815833B2 (en) Vending machine malfunction display device
JP4103380B2 (en) Game machine
JPS6040077B2 (en) Vending machine malfunction display device
RU2808092C1 (en) Method and portable device for diagnostics of recycling cassettes
JP3696362B2 (en) Control device for electronic game machines
JP2001232008A (en) Game ball payout mechanism
JPS6118235B2 (en)
KR0129012B1 (en) Sale amount counting control method for automatic vending machine
JP2002253804A (en) Pachinko machine
JPS6014394B2 (en) Vending machine failure detection method
JPS6261995B2 (en)
JP2008033579A (en) Coin dispensing apparatus and control method thereof
JP5825364B2 (en) Game machine
JPS59142695A (en) Controller for vending machine