JP3885317B2 - Vending machine control device - Google Patents

Vending machine control device Download PDF

Info

Publication number
JP3885317B2
JP3885317B2 JP28293797A JP28293797A JP3885317B2 JP 3885317 B2 JP3885317 B2 JP 3885317B2 JP 28293797 A JP28293797 A JP 28293797A JP 28293797 A JP28293797 A JP 28293797A JP 3885317 B2 JP3885317 B2 JP 3885317B2
Authority
JP
Japan
Prior art keywords
control unit
terminal control
terminal
vending machine
main control
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 - Fee Related
Application number
JP28293797A
Other languages
Japanese (ja)
Other versions
JPH11110618A (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.)
Fuji Electric Retail Systems Co Ltd
Original Assignee
Fuji Electric Retail Systems 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 Retail Systems Co Ltd filed Critical Fuji Electric Retail Systems Co Ltd
Priority to JP28293797A priority Critical patent/JP3885317B2/en
Publication of JPH11110618A publication Critical patent/JPH11110618A/en
Application granted granted Critical
Publication of JP3885317B2 publication Critical patent/JP3885317B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、商品選択スイッチや販売可ランプ,売切ランプ、あるいは、商品搬出ソレノイド,売切スイッチ等を商品毎に一つのユニットにし、各ユニット毎に端末制御部で制御し、そのような端末制御部を主制御部で統括制御するようにした自動販売機の制御装置に関するものである。
【0002】
【従来の技術】
従来の一般的な自動販売機の制御装置では、自動販売機の内部を表示機構,販売機構,硬貨処理機構等の部分に分け、それらを各部分毎に端末制御部で制御し、それら端末制御部を主制御部で統括制御するようにしていた。しかしながら、そのような自動販売機の制御装置では、1台の自動販売機で販売する商品の品数が多くなると、例えば、表示制御部から商品選択ボタンや販売可ランプ,売切ランプ等へ接続するハーネスの本数が数百本にもなってしまい、配線作業に手間がかかる上、コスト高になるということが問題になる。
【0003】
そこで、表示機構を商品毎に商品選択スイッチ,販売可ランプ,売切ランプでユニット化し、それらのユニット毎に端末制御部を設け、それらの端末制御部と主制御部との間でシリアル通信を行うことにより制御を行うことにより、ハーネス数を削減した自動販売機の制御装置が提案されている。そのような自動販売機の制御装置では、端末制御部の数が数十にもなる。
【0004】
そして、そのように端末制御部の数が多い自動販売機の制御装置において、主制御部と端末制御部との間で行う通信は、ポーリング方式で行うのでは、時間がかかり過ぎる。そこで、主制御部と端末制御部との間で、一斉同報を使って通信を行うことが提案されている。
【0005】
図5は、従来の自動販売機の制御装置の構成図である。主制御部1と端末制御部2,3,・・・との間は、シリアル伝送路で接続されており、そのシリアル伝送路は、同期用のクロックを送信するクロック線CLと、種々のデータの送信および受信用の通信線A,Bとからなる。
【0006】
主制御部1は、一斉同報により、例えば、各端末制御部2,3,・・・にデータを要求する場合、まず、各端末制御部2,3,・・・に対して、一斉同報用のアドレスを送信する。端末制御部2,3,・・・は、それを受信すると、所定のデータを主制御部1に送信する。
【0007】
その際、各端末制御部2,3,・・・から主制御部1に送信するデータは、図6に示すような、ひとかたまりのデータとして送信する。すなわち、1クロック目で1番目の端末制御部2のデータを送信し、2クロック目で2番目の端末制御部3のデータを送信するというように、クロックでタイミングを見計らって、各端末制御部から順次データを送信する。そして、それを受信した主制御部1では、受信したデータの系列順から、何番目のデータがどの端末制御部からのものかを判定して処理する。このようにすれば、ポーリング方式に比べて交信時間の短縮が図れる。
【0008】
なお、このような自動販売機の制御装置に関連する従来の文献としては、例えば、特許第 2581813号明細書(G07F 9/00) がある。
【0009】
【発明が解決しようとする課題】
ところで、このような自動販売機の制御装置において、通信の信頼性を維持するためには、主制御部1が一斉同報により送信したデータが、各端末制御部2,3,・・・に確実に届いているかを確認する必要がある。そして、上記従来の自動販売機制御装置において、その確認を行うには、主制御部1が、一斉同報用のアドレスを送信した後、各端末制御部2,3,・・・から主制御部1へ、受信したことを知らせるための応答信号を送信する必要がある。その際の、応答信号は、図6に示したような、ひとかたまりのデータとして送信することになる。
【0010】
しかしながら、そのような送信方法では、ノイズ等の影響によりタイミングが少しでもずれると、データが誤った値に変化するという問題点があり、それを防止するため、タイミングの精度を上げようとすると、そのためのコストが高くなるいう問題点があった。
【0011】
本発明は、そのような問題点を解決し、高いコストをかけることなく、一斉同報時の受信確認が、確実にできるようにすることを目的とするものである。
【0012】
【課題を解決するための手段】
前記課題を解決するため、請求項1記載の自動販売機の制御装置は、自動販売機の各部を個別に制御する複数の端末制御部と、前記複数の端末制御部を通信線を通して統括して制御する主制御部とを具えた自動販売機の制御装置であって、前記主制御部と前記複数の端末制御部の内の1番目の端末制御部との間に制御線を接続し、以下、残りの端末制御部の間に順次制御線を接続し、さらに、最終段の端末制御部と前記主制御部との間に制御線を接続し、前記主制御部は、各端末制御部に一斉同報によりデータを出力すると同時に、前記1番目の端末制御部との間に接続した制御線をアクティブにし、各端末制御部は、前記データを受信した後、入力側の制御線が非アクティブからアクティブに変化した時、出力側の制御線を非アクティブからアクティブに切り換えることを特徴とする。このようにすると、高いコストをかけることなく、一斉同報によるデータの受信確認が、確実にできる。
【0013】
また、請求項2記載の自動販売機の制御装置は、前記主制御部は、データを出力した後、一定時間以内に、前記最終段の端末制御部の制御線出力が非アクティブからアクティブに切り換わったか否かにより通信異常の有無を検知することを特徴とする。このようにすると、いずれかの端末制御部で、一斉同報によるデータを受け取れないような異常が発生しても、その検知ができて、データの再送等の対処が可能になる。
【0014】
【発明の実施の形態】
以下、本発明の実施の形態を図面に基づいて詳細に説明する。
図2は、自動販売機の制御装置の制御ブロック図である。図2において、10,20は、それぞれ特定の商品収納コラムに対応させてユニット化した表示ユニット、11はその表示ユニットを制御する表示制御部、12は販売可表示用LED、13は売切表示用LED、14は商品選択スイッチ、30,40は、それぞれ特定の商品収納コラムに対応させてユニット化した販売ユニット、31はその販売ユニットを制御する販売制御部、32は商品搬出ソレノイドをオンオフさせるリレー、33は売切スイッチである。
【0015】
図示はしないが、表示ユニット20は、表示ユニット10と同様に、表示制御部、販売可表示用LED、売切表示用LED、商品選択スイッチを有しており、販売ユニット40は、販売ユニット30と同様に、販売制御部、リレー、売切スイッチを有している。表示制御部11,販売制御部31は、主制御部1に接続されていて、端末制御部として、主制御部1により制御される。例えば、32コラムの自動販売機では、表示制御部,販売制御部は、それぞれ32個ずつ必要になり、端末制御部の数は合計64個以上になる。
【0016】
そのように多数ある端末制御部と通信するのに、従来のもののようにポーリング方式で行うのでは、時間がかかり過ぎる。そこで、主制御部と端末制御部との間で行う通信を一斉同報を使って行うわけであるが、本発明では、その際の受信確認が、確実にできるようにする。
【0017】
図1は、自動販売機の制御装置の構成図である。主制御部1と各端末制御部2,3,・・・とを、通信線A,Bで接続すると共に、主制御部1と1番目の端末制御部2,1番目の端末制御部2と2番目の端末制御部3,・・・というように、順次、制御線Cを接続する。そして、最終段の端末制御部4から主制御部1へも制御線Dを接続する。
【0018】
主制御部1は、各端末制御部2,3,・・・を個別に指定する個別アドレスと、全ての端末制御部を同時に指定する共通アドレスとを内部に保持しており、また、通信異常を検知するためのエラータイマーを持っている。そしてまた、各制御部では、制御入力ポートMC-IN,C-INの電圧レベルが“L”のときアクティブであり、“H”のとき非アクティブであると認識される。
【0019】
そして、電源投入時、およびリセット時には、主制御部1の制御出力ポートMC-OUT,各端末制御部の制御出力ポートC-OUT 共“H”になるようにしている。また、各端末制御部では、制御入力ポートC-INが“H”のとき、制御出力ポートC-OUT は“H”になる。
【0020】
そして、主制御部1は、各端末制御部2,3,・・・へ、一斉同報によりデータを出力しようとする場合、まず、通信線Aに接続されている全ての端末制御部2,3,・・・に対して、一斉同報により、通信線Aに上記共通アドレスを出力してから、所定のデータを出力する。そして、それと同時に、上記エラータイマーのカウントダウンを開始する。また、制御出力ポートMC-OUTを“L”にする。
【0021】
一方、端末制御部2では、主制御部1から一斉同報を受け取り、制御入力ポートC-INが“H”から“L”に変化したら、次段の端末制御部3への制御出力ポートC-OUT を“H”から“L”に切り換える。以下、端末制御部3以降においても、同様な処理が順次実行され、最後の端末制御部4での処理が終了すると、その制御出力ポートC-OUT が“H”から“L”に切り換えられ、それが主制御部1の制御入力ポートMC-IN に入力される。
【0022】
そのようにして、主制御部1の制御入力ポートMC-IN が“L”に切り換わったことにより、主制御部1は、全ての端末制御部に一斉同報の通信が伝わったことを知る。そして、次の通信に備えて初期状態に戻すため、制御出力ポートMC-OUTを“H”とし、エラータイマーのカウントダウンを開始する。主制御部1が制御出力ポートMC-OUTを“H”とすると、端末制御部2の制御出力ポートC-OUT が“H”になり、その結果、次段の端末制御部3の制御出力ポートC-OUT が“H”になる。そのようにして、次々に端末制御部の制御出力ポートC-OUT が“H”になり、最後の端末制御部4の制御出力ポートC-OUT が“H”になって、主制御部1の制御入力ポートMC-IN が“H”に切り換わると、主制御部1は、制御出力ポートの切り換えが正常に終了したものと判断し、次の出力や入力の処理を行う。
【0023】
しかし、主制御部1が制御出力ポートMC-OUTを“H”に切り換えた後、エラータイマーが0になるまでの間に、制御入力ポートMC-IN が“H”に切り換わらなかったときは、何らかの異常があったものと判断する。
【0024】
次に、主制御部1における処理をフローチャートを使って説明する。
図3は、主制御部の通信処理のフローチャートである。
ステップ1…通信線Aを通して、各端末制御部に対して、一斉同報によりデータを出力する。
ステップ2…エラータイマーのカウントを初期化する。
ステップ3…制御出力ポートMC-OUTを“H”から“L”に切り換える。
【0025】
ステップ4…制御入力ポートMC-IN が“L”に切り換っているか否かを判別する。
ステップ5…“L”に切り換っていなかったら、まだ、各端末制御部からのデータ送信が完了していないということになる。そこで、エラータイマーのカウントダウンが終了して0になっているか否かを判別し、0になっていなければ、ステップ4に戻す。
【0026】
ステップ6…ステップ5で、エラータイマーのカウントが0になっていたら、所定時間以内に処理が終了しなかったので、何らかの異常が発生したものとみなし、故障処理として、再度出力許可コマンド出力からやり直すため、制御出力ポートMC-OUTを“H”にしてから十分な時間をおいて、各端末制御部の制御出力ポートC-OUT を“H”にして待機状態に戻す。そして、上記のような異常が何回も繰り返された場合は、故障が発生したものとして、全商品売切表示を行う等の処置をとる。
【0027】
ステップ7…ステップ4で、制御入力ポートMC-IN が“L”に切り換っていたら、各端末制御部へのデータ送信が完了したことになる。そこで、次の通信に備えて初期状態に戻すため、制御出力ポートMC-OUTを“H”に戻す。
ステップ8…エラータイマーのカウントを初期化する。
【0028】
ステップ9…制御入力ポートMC-IN が“H”に切り換わったか否かを判別する。
ステップ10…まだ、“H”に切り換わっていなかったら、エラータイマーのカンウントが終了して0になっているか否かを判別する。
ステップ11…0になっていたら、故障が発生したものとして、全商品売切表示を行う等の処理を行う。
【0029】
ステップ12…制御入力ポートMC-IN が“H”に切り換わるまで待つ。
ステップ13…“H”に切り換わったら、ステップ11で行った故障処理を解除する。
【0030】
ステップ14…ステップ9で、制御入力ポートMC-IN が“H”に切り換わっていたら、全ての端末制御部が待機状態に戻ったことになるので、他の通信処理を行う。
【0031】
次に、各端末制御部における処理をフローチャートを使って説明する。
図4は、端末制御部の通信処理のフローチャートである。この処理は、電源オンまたはリセットと同時に開始される。
ステップ1…まず、制御出力ポートC-OUT を“H”にして待機状態に入る。
ステップ2…一斉同報データを受信したことを示すフラグFLG1と、制御入力ポートC-INが“H”になったことを示すフラグFLG2をリセットする。
【0032】
ステップ3…主制御部1から一斉同報データを受信したか否かを判別する。
ステップ4…受信したら、フラグFLG1をセットする。
ステップ5…制御入力ポートC-INが“H”であるか否かを判別する。
ステップ6…“H”であったら、制御出力ポートC-OUT を“H”にする。
ステップ7…制御入力ポートC-INが“H”になったので、フラグFLG2をセットする。
【0033】
ステップ8…ステップ5で、制御入力ポートC-INが“H”でなく、“L”であったら、フラグFLG1がセットされているか否かを判別し、一斉同報データを受信したか否かを調べる。
ステップ9…フラグFLG1がセットされていたら、一斉同報データを受信していることになる。そこで、制御入力ポートC-INが“H”から“L”へ変化したことを確認するため、フラグFLG2がセットされているか否かを判別し、フラグFLG2がセットされていなかったら、ステップ3に戻す。
【0034】
ステップ10…フラグFLG2がセットされていたら、制御入力ポートC-INが“H”から“L”に変化したことになる。そこで、制御出力ポートC-OUT を“L”に切り換えて、次段の端末制御部の制御入力ポートC-INを“L”にする。
ステップ11…フラグFLG1とフラグFLG2をリセットする。
【0035】
【発明の効果】
本発明は、以上説明したように構成されているので、次に記載するような効果を奏する。
請求項1記載の自動販売機の制御装置は、主制御部と1番目の端末制御部との間、各端末制御部の間、さらに、最終段の端末制御部と前記主制御部との間に制御線を接続し、各端末制御部は、前記データを受信したら、前記制御線を順次アクティブに切り換えることにより、データ受信を通知するようにしたので、高いコストをかけることなく、一斉同報によるデータの受信確認が確実にできる。
【0036】
また、請求項2記載の自動販売機の制御装置は、主制御部は、データを出力した後、一定時間以内に、最終段の端末制御部の制御線出力がアクティブに切り換わらなかったことにより通信異常を検知できるようにしたので、いずれかの端末制御部で、一斉同報によるデータを受け取れないような異常が発生しても、その検知ができて、データの再送等の対処が可能になる。
【図面の簡単な説明】
【図1】自動販売機の制御装置の構成図である。
【図2】自動販売機の制御装置の制御ブロック図である。
【図3】主制御部の通信処理のフローチャートである。
【図4】端末制御部の通信処理のフローチャートである。
【図5】従来の自動販売機の制御装置の構成図である。
【図6】従来の自動販売機の制御装置における、端末制御部からの応答信号説明図である。
【符号の説明】
1…主制御部
2…端末制御部
10,20…表示ユニット
11…表示制御部
12…販売可表示用LED
13…売切表示用LED
14…商品選択スイッチ
30,40…販売ユニット
31…販売制御部
32…リレー
33…売切スイッチ
[0001]
BACKGROUND OF THE INVENTION
In the present invention, a product selection switch, a sale-ready lamp, a sold-out lamp, a product carry-out solenoid, a sold-out switch, etc. are made into one unit for each product, and each unit is controlled by a terminal control unit, and such a terminal The present invention relates to a control device for a vending machine in which a control unit is centrally controlled by a main control unit.
[0002]
[Prior art]
In a conventional general vending machine control device, the inside of the vending machine is divided into a display mechanism, a sales mechanism, a coin processing mechanism, etc., and each part is controlled by a terminal control unit, and these terminal controls are performed. The main control unit was in charge of overall control. However, in such a vending machine control device, when the number of products sold by a single vending machine increases, for example, the display control unit connects to a product selection button, a sellable lamp, a sold-out lamp, or the like. The number of harnesses becomes several hundreds, which takes time for wiring work and increases costs.
[0003]
Therefore, the display mechanism is unitized with a product selection switch, a sellable lamp, and a sold-out lamp for each product, and a terminal control unit is provided for each unit, and serial communication is performed between the terminal control unit and the main control unit. A control device for a vending machine has been proposed in which the number of harnesses is reduced by performing control. In such a vending machine control device, the number of terminal control units is several tens.
[0004]
In such a vending machine control device having a large number of terminal control units, it takes too much time to perform communication between the main control unit and the terminal control unit using the polling method. Therefore, it has been proposed to perform communication using a simultaneous broadcast between the main control unit and the terminal control unit.
[0005]
FIG. 5 is a configuration diagram of a control device of a conventional vending machine. The main control unit 1 and the terminal control units 2, 3,... Are connected by a serial transmission path. The serial transmission path includes a clock line CL for transmitting a synchronization clock, and various data. Transmission and reception communication lines A and B.
[0006]
For example, when the main control unit 1 requests data from each terminal control unit 2, 3,... Send the information address. When receiving the data, the terminal control units 2, 3,... Transmit predetermined data to the main control unit 1.
[0007]
At that time, the data transmitted from each terminal control unit 2, 3,... To the main control unit 1 is transmitted as a set of data as shown in FIG. That is, the terminal control unit 2 transmits the data of the first terminal control unit 2 at the first clock and transmits the data of the second terminal control unit 3 at the second clock. Data is transmitted sequentially from. Then, the main control unit 1 that has received it determines and processes what number of data is from which terminal control unit from the sequence of the received data. In this way, the communication time can be shortened compared to the polling method.
[0008]
Incidentally, as a conventional document related to the control device of such a vending machine, there is, for example, Japanese Patent No. 2581813 (G07F 9/00).
[0009]
[Problems to be solved by the invention]
By the way, in such a vending machine control device, in order to maintain the reliability of communication, the data transmitted by the main control unit 1 by simultaneous broadcast is sent to each terminal control unit 2, 3,. It is necessary to confirm that it has arrived securely. In the conventional vending machine control device, the main control unit 1 transmits the address for simultaneous broadcast, and then performs main control from each terminal control unit 2, 3,. It is necessary to transmit a response signal for notifying the reception to the unit 1. The response signal at that time is transmitted as a set of data as shown in FIG.
[0010]
However, in such a transmission method, there is a problem that the data changes to an incorrect value if the timing is shifted even a little due to the influence of noise or the like, and in order to prevent it, when trying to increase the timing accuracy, There was the problem that the cost for that became high.
[0011]
An object of the present invention is to solve such a problem and to ensure reception confirmation at the time of simultaneous broadcasting without incurring high costs.
[0012]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, a control device for a vending machine according to claim 1 is configured to control a plurality of terminal control units that individually control each unit of the vending machine and the plurality of terminal control units through a communication line. A control device for a vending machine comprising a main control unit to control, connecting a control line between the main control unit and a first terminal control unit of the plurality of terminal control units, The control lines are sequentially connected between the remaining terminal control units, and further, the control lines are connected between the terminal control unit at the final stage and the main control unit, and the main control unit is connected to each terminal control unit. At the same time that data is output by simultaneous broadcast, the control line connected to the first terminal control unit is activated, and each terminal control unit receives the data, and then the input control line is inactive. The output control line is inactive Wherein the switch to activate. In this way, it is possible to reliably confirm the reception of data by simultaneous broadcasting without incurring high costs.
[0013]
According to a second aspect of the present invention, the main control unit outputs the control line of the terminal control unit at the final stage from inactive to active within a predetermined time after outputting the data. It is characterized by detecting the presence or absence of communication abnormality depending on whether or not it has been changed. In this way, even if an abnormality that cannot receive data by simultaneous broadcasting occurs in any of the terminal control units, the abnormality can be detected and countermeasures such as data retransmission can be made.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 2 is a control block diagram of the control device of the vending machine. In FIG. 2, 10 and 20 are unitized display units corresponding to specific product storage columns, 11 is a display control unit for controlling the display unit, 12 is a displayable LED, and 13 is a sold-out display. LED, 14 is a product selection switch, 30 and 40 are unit sales units corresponding to specific product storage columns, 31 is a sales control unit for controlling the sales unit, and 32 is a product discharge solenoid. A relay 33 is a sold-out switch.
[0015]
Although not shown, the display unit 20 has a display control unit, a sale-ready display LED, a sold-out display LED, and a product selection switch, as with the display unit 10, and the sales unit 40 is a sales unit 30. As well as, it has a sales control unit, a relay, and a sellout switch. The display control unit 11 and the sales control unit 31 are connected to the main control unit 1 and controlled by the main control unit 1 as a terminal control unit. For example, in a 32-column vending machine, 32 display control units and 32 sales control units are required, and the total number of terminal control units is 64 or more.
[0016]
It takes too much time to communicate with such a large number of terminal control units by using a polling method as in the prior art. Therefore, communication performed between the main control unit and the terminal control unit is performed using simultaneous broadcast. In the present invention, reception confirmation at that time can be reliably performed.
[0017]
FIG. 1 is a configuration diagram of a control device of a vending machine. The main control unit 1 and each terminal control unit 2, 3,... Are connected by communication lines A and B, and the main control unit 1, the first terminal control unit 2, the first terminal control unit 2, and the like. The control lines C are sequentially connected as the second terminal control unit 3. The control line D is also connected from the terminal control unit 4 at the final stage to the main control unit 1.
[0018]
The main control unit 1 internally retains individual addresses that individually specify each terminal control unit 2, 3,... And a common address that simultaneously specifies all terminal control units, and a communication error Has an error timer to detect. Each control unit recognizes that the voltage level of the control input ports MC-IN and C-IN is active when the voltage level is “L” and inactive when the voltage level is “H”.
[0019]
When the power is turned on and reset, both the control output port MC-OUT of the main control unit 1 and the control output port C-OUT of each terminal control unit are set to “H”. In each terminal control unit, when the control input port C-IN is “H”, the control output port C-OUT is “H”.
[0020]
When the main control unit 1 tries to output data to each terminal control unit 2, 3,... By simultaneous broadcast, first, all the terminal control units 2, 2 connected to the communication line A 3 and so on, the above-mentioned common address is outputted to the communication line A by simultaneous broadcast, and then predetermined data is outputted. At the same time, the error timer starts counting down. Further, the control output port MC-OUT is set to “L”.
[0021]
On the other hand, when the terminal control unit 2 receives the broadcast from the main control unit 1 and the control input port C-IN changes from “H” to “L”, the control output port C to the terminal control unit 3 at the next stage is received. -OUT is switched from “H” to “L”. Thereafter, similar processing is sequentially executed in the terminal control unit 3 and later, and when the processing in the last terminal control unit 4 is completed, the control output port C-OUT is switched from “H” to “L”. It is input to the control input port MC-IN of the main control unit 1.
[0022]
In this way, when the control input port MC-IN of the main control unit 1 is switched to “L”, the main control unit 1 knows that broadcast communication has been transmitted to all terminal control units. . Then, in order to return to the initial state in preparation for the next communication, the control output port MC-OUT is set to “H”, and the count-down of the error timer is started. When the main control unit 1 sets the control output port MC-OUT to “H”, the control output port C-OUT of the terminal control unit 2 becomes “H”, and as a result, the control output port of the terminal control unit 3 in the next stage C-OUT becomes “H”. In this way, the control output port C-OUT of the terminal control unit sequentially becomes “H”, the control output port C-OUT of the last terminal control unit 4 becomes “H”, and the main control unit 1 When the control input port MC-IN is switched to “H”, the main control unit 1 determines that the switching of the control output port has been normally completed, and performs the next output and input processing.
[0023]
However, if the control input port MC-IN does not switch to “H” before the error timer becomes 0 after the main control unit 1 switches the control output port MC-OUT to “H”. Judge that something was wrong.
[0024]
Next, processing in the main control unit 1 will be described using a flowchart.
FIG. 3 is a flowchart of communication processing of the main control unit.
Step 1... Data is output by simultaneous broadcasting to each terminal control unit through the communication line A.
Step 2 ... Initialize the error timer count.
Step 3... The control output port MC-OUT is switched from “H” to “L”.
[0025]
Step 4: It is determined whether or not the control input port MC-IN is switched to “L”.
Step 5... If not switched to “L”, it means that data transmission from each terminal control unit has not been completed yet. Therefore, it is determined whether the countdown of the error timer has ended and becomes zero. If not, the process returns to step 4.
[0026]
Step 6... If the error timer count is 0 in step 5, the process has not been completed within a predetermined time, so it is assumed that some abnormality has occurred, and the output permission command is output again as a failure process. Therefore, after a sufficient time has elapsed from setting the control output port MC-OUT to “H”, the control output port C-OUT of each terminal control unit is set to “H” to return to the standby state. If the above-described abnormality is repeated many times, it is determined that a failure has occurred and measures such as displaying all products sold out are taken.
[0027]
Step 7... If the control input port MC-IN is switched to “L” in Step 4, data transmission to each terminal control unit is completed. Therefore, in order to return to the initial state in preparation for the next communication, the control output port MC-OUT is returned to “H”.
Step 8: The error timer count is initialized.
[0028]
Step 9: It is determined whether or not the control input port MC-IN is switched to "H".
Step 10... If it has not yet been switched to “H”, it is determined whether or not the count of the error timer has ended and becomes zero.
If it is step 11... 0, it is assumed that a failure has occurred and processing such as displaying all products sold out is performed.
[0029]
Step 12: Wait until the control input port MC-IN switches to “H”.
Step 13... After switching to “H”, the failure processing performed in Step 11 is canceled.
[0030]
Step 14... If the control input port MC-IN is switched to “H” in step 9, all the terminal control units have returned to the standby state, and other communication processing is performed.
[0031]
Next, processing in each terminal control unit will be described using a flowchart.
FIG. 4 is a flowchart of communication processing of the terminal control unit. This process is started simultaneously with power-on or reset.
Step 1 First, the control output port C-OUT is set to “H” to enter a standby state.
Step 2: The flag FLG1 indicating that the broadcast data has been received and the flag FLG2 indicating that the control input port C-IN has become “H” are reset.
[0032]
Step 3... It is determined whether or not simultaneous broadcast data is received from the main control unit 1.
Step 4: When received, the flag FLG1 is set.
Step 5: It is determined whether or not the control input port C-IN is “H”.
Step 6... If “H”, the control output port C-OUT is set to “H”.
Step 7: Since the control input port C-IN becomes "H", the flag FLG2 is set.
[0033]
Step 8: If the control input port C-IN is not “H” but “L” in step 5, it is determined whether or not the flag FLG1 is set, and whether or not the broadcast data is received. Check out.
Step 9: If the flag FLG1 is set, the broadcast data is received. Therefore, in order to confirm that the control input port C-IN has changed from “H” to “L”, it is determined whether or not the flag FLG2 is set. If the flag FLG2 is not set, step 3 is performed. return.
[0034]
Step 10: If the flag FLG2 is set, the control input port C-IN is changed from "H" to "L". Therefore, the control output port C-OUT is switched to “L”, and the control input port C-IN of the terminal control unit at the next stage is set to “L”.
Step 11: The flag FLG1 and the flag FLG2 are reset.
[0035]
【The invention's effect】
Since the present invention is configured as described above, the following effects can be obtained.
The control device for the vending machine according to claim 1 is provided between the main control unit and the first terminal control unit, between each terminal control unit, and between the terminal control unit at the final stage and the main control unit. When each terminal control unit receives the data, the terminal control unit sequentially switches the control line to active so as to notify the reception of the data. Confirmation of data reception can be ensured.
[0036]
Further, in the control device for the vending machine according to claim 2, the main control unit outputs the data because the control line output of the terminal control unit at the final stage is not switched to active within a predetermined time. Communication errors can be detected so that any terminal control unit can detect an error that cannot be received by simultaneous broadcast, and can respond to data retransmission. Become.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a control device of a vending machine.
FIG. 2 is a control block diagram of the control device of the vending machine.
FIG. 3 is a flowchart of communication processing of a main control unit.
FIG. 4 is a flowchart of communication processing of a terminal control unit.
FIG. 5 is a configuration diagram of a control device of a conventional vending machine.
FIG. 6 is an explanatory diagram of a response signal from a terminal control unit in a conventional vending machine control device.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 1 ... Main control part 2 ... Terminal control part 10,20 ... Display unit 11 ... Display control part 12 ... LED for sale possible display
13 ... Sold out LED
14 ... Product selection switch 30, 40 ... Sales unit 31 ... Sales control unit 32 ... Relay 33 ... Sold out switch

Claims (2)

自動販売機の各部を個別に制御する複数の端末制御部と、前記複数の端末制御部を通信線を通して統括して制御する主制御部とを具えた自動販売機の制御装置であって、前記主制御部と前記複数の端末制御部の内の1番目の端末制御部との間に制御線を接続し、以下、残りの端末制御部の間に順次制御線を接続し、さらに、最終段の端末制御部と前記主制御部との間に制御線を接続し、前記主制御部は、各端末制御部に一斉同報によりデータを出力すると同時に、前記1番目の端末制御部との間に接続した制御線をアクティブにし、各端末制御部は、前記データを受信した後、入力側の制御線が非アクティブからアクティブに変化した時、出力側の制御線を非アクティブからアクティブに切り換えることを特徴とする自動販売機の制御装置。A control device for a vending machine comprising a plurality of terminal control units that individually control each part of the vending machine, and a main control unit that controls the plurality of terminal control units through a communication line. A control line is connected between the main control unit and the first terminal control unit among the plurality of terminal control units, and subsequently, control lines are sequentially connected between the remaining terminal control units, and the final stage. A control line is connected between the terminal control unit and the main control unit, and the main control unit outputs data to each terminal control unit by simultaneous broadcast, and at the same time, between the terminal control unit and the first terminal control unit. When the control line on the input side changes from inactive to active after receiving the data, each terminal control unit switches the control line on the output side from inactive to active. Vending machine control device. 前記主制御部は、データを出力した後、一定時間以内に、前記最終段の端末制御部の制御線出力が非アクティブからアクティブに切り換わったか否かにより通信異常の有無を検知することを特徴とする請求項1記載の自動販売機の制御装置。The main control unit detects the presence or absence of communication abnormality depending on whether or not the control line output of the terminal control unit at the final stage is switched from inactive to active within a certain time after outputting data. The control device for a vending machine according to claim 1.
JP28293797A 1997-09-30 1997-09-30 Vending machine control device Expired - Fee Related JP3885317B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28293797A JP3885317B2 (en) 1997-09-30 1997-09-30 Vending machine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28293797A JP3885317B2 (en) 1997-09-30 1997-09-30 Vending machine control device

Publications (2)

Publication Number Publication Date
JPH11110618A JPH11110618A (en) 1999-04-23
JP3885317B2 true JP3885317B2 (en) 2007-02-21

Family

ID=17659053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28293797A Expired - Fee Related JP3885317B2 (en) 1997-09-30 1997-09-30 Vending machine control device

Country Status (1)

Country Link
JP (1) JP3885317B2 (en)

Also Published As

Publication number Publication date
JPH11110618A (en) 1999-04-23

Similar Documents

Publication Publication Date Title
US4639889A (en) System for controlling communication between a main control assembly and programmable terminal units
US7248229B2 (en) Dynamic message sign display panel communication error detection and correction
CN111245635B (en) System with master and slave devices and ID number setting method of slave device thereof
JP3885317B2 (en) Vending machine control device
KR20000018869A (en) Ipc(inter processor communication) system and a method thereof in an exchange
US5058057A (en) Link control system communicating between terminals
US7053862B2 (en) System and method for rapidly refreshing a dynamic message sign display panel
KR19990021918A (en) Digital Data Bus System with Arbitration
JP2002163713A (en) Vending machine controller
GB2070302A (en) Data communication system
JP3815118B2 (en) Vending machine controller
JPH11110619A (en) Controller for automatic vending machine
JPS5994194A (en) Control of vending machine
JPS588392A (en) Vending machine with premium function
JP2000057430A (en) Controller for vending machine
JPH11110621A (en) Controller for automatic vending machine
JPS6235154B2 (en)
JP3641988B2 (en) Vending machine controller
JP3632465B2 (en) Vending machine control device
JPS6045478B2 (en) How to display when vending machines can sell products and when they are sold out
JP2750440B2 (en) Vending machine product transport mechanism protection device
JPH11167666A (en) Vending machine
JP3363045B2 (en) How to set the station number of the switch unit
JP2000322636A (en) Automatic vending machine controller
KR0131758B1 (en) Control device for automatic vending machine

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060307

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: 20061031

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20061113

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: 20101201

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101201

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20111201

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20121201

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121201

Year of fee payment: 6

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: 20121201

Year of fee payment: 6

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: 20121201

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

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: 20121201

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20131201

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees