JP3698521B2 - Vending machine control device - Google Patents

Vending machine control device Download PDF

Info

Publication number
JP3698521B2
JP3698521B2 JP14695597A JP14695597A JP3698521B2 JP 3698521 B2 JP3698521 B2 JP 3698521B2 JP 14695597 A JP14695597 A JP 14695597A JP 14695597 A JP14695597 A JP 14695597A JP 3698521 B2 JP3698521 B2 JP 3698521B2
Authority
JP
Japan
Prior art keywords
sub
control
processing
unit
control unit
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 - Lifetime
Application number
JP14695597A
Other languages
Japanese (ja)
Other versions
JPH10334323A (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.)
Kubota Corp
Original Assignee
Kubota Corp
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 Kubota Corp filed Critical Kubota Corp
Priority to JP14695597A priority Critical patent/JP3698521B2/en
Publication of JPH10334323A publication Critical patent/JPH10334323A/en
Application granted granted Critical
Publication of JP3698521B2 publication Critical patent/JP3698521B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は自動販売機の制御装置に関する。
【0002】
【従来の技術】
自動販売機の制御処理機能としては、おおまかには以下の3つの機能の部分に分けることができる。
【0003】
▲1▼接客部:商品選択用の押しボタンなどによる選択動作に関係する制御動作や投入金を示す金額表示の制御処理を行う。
▲2▼搬送部:商品を保存するための温度調節機構の制御や商品を払い出す搬送機構の制御処理を行う。
【0004】
▲3▼データ処理部:販売条件の設定や、販売結果の記録、外部記録装置への入出力に関する制御処理を行う。
従来の自動販売機においては、図8に概略的に示すように、自動販売機全ての制御処理を1つのマイクロプロセッサーユニット(以下MPUと略す)により集中して行っていた。ここで、図8において、1は押しボタンの機構や金額表示を行う回路などが設けられている接客部、2は搬送機構や温度調節機構などが設けられている搬送部、3は基板で、この基板3に1つのMPU4が設けられている。また、基板3に対して接客部1や搬送部2の各電気系構成部分がそれぞれワイヤーハーネス5A,5Bを介して接続されている。
【0005】
このような集中型制御方式を採用することにより、1つのMPU4にて全ての制御処理を行うので、処理が一元化し、シーケンス的考えに基づく処理が作り易いという長所がある。その反面、MPU4にかかる負荷が集中して大きくなるため、処理能力の高い高価なMPU4が必要となる。また、1つのMPU4を中心として電気回路が集中するので基板3のサイズが大きくなり、一部だけでも変更があると、基板3の変更に手間がかかり、さらに、電気回路を集積化しようとすると、専用の半導体が必要となるなど比較的多額の初期投資が必要となるという課題がある。さらに、ワイヤーハーネス5A,5Bの配線も1つのMPU4に向けて集中することとなり、基板3内の配置や配線の分配が難しいという短所もある。
【0006】
このような課題や短所を解消すべく、制御処理を分散させて行ういわゆる分散型制御方式の自動販売機が採用されつつある。
この分散型制御方式は、MPUの数を増やして機能を分散させ、MPUに対する制御ソフトの処理や電気回路の集中を避けるように図られている。すなわち、図9に示すように、接客部1に対応する接客制御処理を行う専用のサブMPU6(MPU_B)と、搬送部2に対応する搬送制御処理を行う複数種類のサブMPU7(MPU_C,C′,C″...)と、データ制御処理を行うメインMPU8(MPU_A)とを設けて、各サブMPU6,7と接客部1,搬送部2とはワイヤーハーネス5A,5Bで接続する一方、サブMPU6,7とメインMPU8とを通信線10を介して接続している。そして、サブMPU6,7からの個別の結果データを通信線10を介してメインMPU8に送信して出力していた。なお、図9における9A,9BはサブMPU6,7が搭載されているサブ基板である。
【0007】
この構成により、サブMPU6,7として記憶容量は比較的小さいが安価であるワンチップマイクロコンピュータを使用することで量産効果による低コスト化を図っている。このような構成を採用すると、接客制御処理や搬送制御処理をメインMPU8で行わなくても済むため、メインMPU8などを載せている基板11を小型化できるとともに、メイン基板11やサブ基板9A,9Bにおける配置に関しても比較的自由度が高まり、ワイヤーハーネス5A,5Bも効率良く配線することができた。
【0008】
【発明が解決しようとする課題】
しかし、このような自動販売機によれば、処理機能を各MPU(メインMPU8,サブMPU6,7)に分割したために、各処理を標準化することが困難となり、例えば各機種の搬送制御処理の違いに応じてプログラムや品種が異なる複数のサブMPU7(MPU_C,C′,C″... )を用いることとなって、意図していたような量産効果による低コスト化を達成することができなかった。また、サブ制御に盛り込めない機能の一部をメイン制御に取り込んだため、処理の流れがメインMPU8とサブMPU6,7にまたがったものとなってソフトの構造が崩れ、制御内容の品質が低下するおそれがあった。
【0009】
本発明は上記問題を解決するもので、低コスト化を図ることができ、かつ制御内容も安定させることができる自動販売機の制御装置を提供することを目的とするものである。
【0010】
【課題を解決するための手段】
上記問題を解決するために本発明は、1つのメイン制御部と、各構成ユニット毎に対応して設けられて接続されているとともに前記メイン制御部と通信線を介して接続されている複数のサブ制御部とを備え、前記メイン制御部は、実行する必要のある各種の制御処理において、各サブ制御部とそのサブ制御部に接続された構成ユニットとの間の入出力処理だけで行うことができるサブ側制御処理を判断するとともに、そのサブ側制御処理に対応するサブ制御部の構成ユニットに対する分岐条件および分岐先を設定して該当サブ制御部へ指示データとして出力し、各サブ制御部は、前記指示データの分岐条件と分岐先とに基づいて前記サブ側制御処理を構成ユニットに対して行い、その処理結果をメイン制御部に対して出力する構成としたものである。
【0012】
この構成によると、サブ制御部はメイン制御部から指示データを入力して、その指示データの分岐条件と分岐先とに基づくサブ制御部内でのサブ側制御処理を構成ユニットに対して行い、その処理結果をメイン制御部に対して出力するという入出力動作を行うだけでよいため、このような制御処理を行える共通の種類のマイクロコンピュータなどをサブ制御部として採用することができて、コストを低減することができる。また、制御処理内容自体はすべてメイン制御部で管理するため、制御内容の変更も自由に行うことができながら、処理の流れがメイン制御部とサブ制御部との間でまたがって行われることがなく、制御内容の指示やその結果データがサブ制御部とメイン制御部との間で入出力されるだけであるため、制御内容の品質が低下することはない。
【0014】
【発明の実施の形態】
以下、本発明の実施の形態を図面に基づき説明する。なお、従来と同機能のものには同符号を付してその説明は省略する。
【0015】
図1に示すように、この自動販売機の制御装置は、接客部1と搬送部2とにそれぞれワイヤーハーネス5A,5Bを介してサブMPU12,13を接続し、これらのサブMPU12,13と1つのメインMPU14とをそれぞれ通信線10を介して接続している。そして、サブMPU12,13における制御ソフトの内容を、接客部1や搬送部2などの構成ユニットに対する入出力処理による制御とメインMPU14に対する通信処理とに限定して、メインMPU14によりデータ制御処理だけでなく接客制御処理や搬送制御処理のプログラム管理も行う構成とする。これにより、サブMPU12,13を、共通の動作(構成ユニットに対する入出力処理とメインMPU14に対する通信処理)を行える同種類のワンチップマイクロコンピュータ(MPU_B)により構成することができるので、量産効果による低コスト化を図ることができ、また、制御処理ソフト自体はメインMPU14に集中させているため、新規開発などに伴ってソフトの変更も柔軟に対応できて制御内容の品質の低下もない。
【0016】
しかしながら、接客部1や搬送部2の商品選択用の押しボタン,金額表示部,温度調節機構,搬送機構などの自動販売機を構成する複数の構成ユニットからの出力データを各サブMPU12,13が入力するたびに、そのデータをそのまま通信線10を介してメインMPU14に出力し、そのデータに対する処理判断をメインMPU14にて行い、その後の指示をメインMPU14から各サブMPU12,13に対して通信線10を介して出力する構成とすると、各構成ユニットにおける状態変化の通知などの度に毎回サブMPU12,13とメインMPU14との間で通信しなければならず、通信回数が非常に多大となって通信デバイスやメインMPU14として高価なものが必要となってしまうとともに、通信処理の時間分だけ処理タイミングが遅れるという不具合も生じてしまう。
【0017】
例えば、サブMPU12,13に接続された構成ユニットにおける所定の機構を作動(ON)させて、その構成ユニットに別途設けられた検知手段の情報に基づいて前記機構を停止(OFF)する入力待ち処理の場合には、以下の動作を行う。すなわち、図6の(a),(b)に示すように、まず、メインMPU14から通信線10を介して前記機構を駆動させる指示をサブMPU12,13が受けて前記機構を駆動させた後、サブMPU12,13は検知手段からの検知情報を待ち、検知情報を得た段階で、そのサブMPU12,13が前記検知情報を通信線10を介してメインMPU14に出力し、メインMPU14はこの検知情報から前記機構を停止させる必要があることを判定するとともに、通信線10を介して前記機構を停止させる指示信号をサブMPU12,13に対して出力し、この指示に基づいてサブMPU12,13にて前記機構を停止させるように制御しなければならない。このように、1つの入力待ち処理に対して3回の通信処理が必要であるとともに、サブMPU12,13は検知情報を得た後に2回の通信処理を行って、ようやく停止指示を行うこととなるため、それだけ停止時間の処理に遅れを生じることとなる。
【0018】
また、サブMPU12,13に接続された構成ユニットにおける所定の機構を作動(ON)させて、所定時間後に前記機構を停止(OFF)させる時間待ち処理の場合には、以下の動作を行う。すなわち、図7の(a),(b)に示すように、まず、メインMPU14から通信線10を介して前記機構を駆動させる指示をサブMPU12,13に出力し、この駆動指示をサブMPU12,13が受けて前記機構を駆動させ、この後、前記所定時間が経過したことをメインMPU14が判定し、メインMPU14から通信線10を介して前記機構を停止させる指示をサブMPU12,13が受けて前記機構を停止させるように制御しなければならない。このように、1つの時間待ち処理に対して2回の通信処理が必要であるとともに、サブMPU12,13は通信線10を介して駆動または停止指示を得た後に前記機構を駆動または停止させるため、前記機構は駆動時および停止時にそれぞれ通信処理分の時間の遅れを生じることとなる。
【0019】
したがって、このような不具合を解消すべく、各サブMPU12,13とそのサブMPU12,13に接続されている構成ユニット(例えば、サブMPU12に対応する構成ユニットは接客部1、サブMPU13に対応する構成ユニットは搬送部2である)との間だけで行うことのできる制御処理(以下サブ側制御処理と称す)は各サブMPU12,13内で入出力処理として行い、サブMPU12,13とメインMPU14との間の通信回数を低減させる。
【0020】
つまり、図2に示すように、メインMPU14はデータ制御処理、接客制御処理や搬送制御処理などの各種制御処理において、各サブMPU12,13とそのサブMPU12,13に対応する構成ユニットとの入出力処理だけで行うことができてメインMPU14が介在しなくても済むサブ側制御処理を判断し(ステップ#1)、そのサブ側制御処理をサブMPU12,13で行う必要があると判断した場合には、その制御処理がどのような分岐処理(入力待ち分岐処理と時間待ち分岐処理との何れか、またはこれら入力待ち分岐処理と時間待ち分岐処理との組み合わせ)からなるかを判定するとともに設定し(ステップ#2,3)、その一連の制御処理の分岐条件と分岐先とを指示する指示データをブロック化し、サブMPU12,13の入出力ポートの指定と出力指示に加えて前記ブロック化した指示データを出力コマンドとともにサブMPU12,13に通信線10を介して出力する(ステップ#4)。
【0021】
この指示データを受けたサブMPU12,13は、メインMPU14からの指示データに基づいてサブ側制御処理を実行して(ステップ#11)構成ユニットとの間で入出力処理を行うとともに、この制御処理による結果が出た際にメインMPU14に対して通信して、この処理結果をメインMPU14に出力する(ステップ#12)。メインメインMPU14はサブMPU12,13からの結果データの入力があった場合には、その結果データに基づいて判断し、必要な制御処理を行う(ステップ#5,6)。
【0022】
簡単な例として、所定のサブMPU12,13において単一の入力待ち処理を行う場合、例えば、所定の機構などを検知センサで検知する所定位置まで駆動させる場合などのような入力待ち処理の場合には、メインMPU14は、所定の機構を駆動させること、分岐条件が検知センサからの検知信号の入力待ちであること、分岐の際の各分岐先内容(分岐条件が成立しなかった場合でのループ内容)、分岐条件が成立した場合に機構を停止させることをまとめて1ブロックのコマンドとして作成し、このコマンドを通信線10を介して所定のサブMPU12,13に出力する。
【0023】
また、所定のサブMPU12,13において単一の時間待ち処理を行う場合、例えば、所定の機構を所定時間だけ動作させるような時間待ち処理の場合には、メインMPU14は、所定の機構を駆動させること、分岐条件が時間待ちであること、分岐の際の待ち時間の設定値、分岐条件が成立した場合に機構を停止させることをまとめて1ブロックのコマンドとして作成し、このコマンドを通信線10を介して所定のサブMPU12,13に出力する。
【0024】
また、実際的には、複数の入力待ち処理と時間待ち処理とを組み合わせ、つまり、分岐条件の設定および分岐先の指定を複数組み合わせてまとめ、1ブロックのコマンドとして作成し、このコマンドを通信線10を介して所定のサブMPU12,13に出力する。また、各サブMPU12,13に対して上記のようにして作成したコマンドを複数並送することも可能である。
【0025】
このようにして、メインMPU14から通信線10を介してコマンドを受信したサブMPU12,13では、そのコマンドから入力待ち処理および時間待ち処理の各分岐条件および分岐先のデータを取り込み、これに応じて各入力待ち処理および時間待ち処理にかかる制御処理をそのサブMPU12,13だけで接客部1または搬送部2の各構成ユニットに対して行う(図3〜図5参照)。
【0026】
このように、各構成ユニットに対する制御処理は通信線10を介することなくサブMPU12,13により直接行われるため、通信処理による処理タイミングの遅れが生じることはない。したがって、msecオーダーなど、短時間間隔での制御を行う場合においても、通信処理による処理タイミングの遅れが生じないため、サブMPU12,13とメインMPU14との間での通信に高速性を特に必要としなくても済み、通信デバイスや各MPUとして低価なもので済ますことができる。
【0027】
また、各構成ユニットに対する制御処理がサブMPU12,13とメインMPU14との間でまたがって行われることがないので、制御内容が低下することがない。
【0028】
そして、サブMPU12,13に対応する各構成ユニットの処理結果だけが、その後にサブMPU12,13からメインMPU14に通信線10を介して出力される。したがって、1つのコマンドにまとめられた制御処理内容に対して、通信での受け渡しは1回で済み、サブMPU12,13とメインMPU14との通信処理回数を大幅に低減でき、通信デバイスを低価なもので済ましても支障を生じることがない。
【0029】
なお、上記実施の形態においては、接客部1や搬送部2の構成ユニットを対象とした場合を説明したが、これに限るものではなく、その他の構成ユニットに対しても同様に対処できることは申すまでもない。また、サブMPU12,13の数は何ら限定されるものではない。
【0030】
【発明の効果】
以上のように本発明によれば、1つのメイン制御部と、各構成ユニット毎に対応して設けられて接続されているとともに前記メイン制御部と通信線を介して接続されている複数のサブ制御部とを備え、前記メイン制御部は、実行する必要のある各種の制御処理において、各サブ制御部とそのサブ制御部に接続された構成ユニットとの間の入出力処理だけで行うことができるサブ側制御処理を判断するとともに、そのサブ側制御処理に対応するサブ制御部の構成ユニットに対する分岐条件および分岐先を設定して該当サブ制御部へ指示データとして出力し、各サブ制御部は、前記指示データの分岐条件と分岐先とに基づいて前記サブ側制御処理を構成ユニットに対して行い、その処理結果をメイン制御部に対して出力する構成としたことにより、制御はサブ制御部とメイン制御部との間でまたがって行われることがないので、制御内容が低下することを防止でき、かつ各サブ制御部とそのサブ制御部に接続された構成ユニットとの間の入出力処理だけで行うことができるサブ側制御処理はサブ制御部内で行わせるために、サブ制御部とメイン制御部との通信処理回数を低減でき、また、通信処理による処理タイミングの遅れが生じることがなく、サブ制御部とメイン制御部との間での通信に高速性を特に必要としなくても済み、通信デバイスや各MPUとして低価なもので済ますことができる。さらに、サブ制御部を共通の動作を行える同種類のワンチップマイクロコンピュータにより構成することができるので、量産効果による低コスト化を図ることができ、また、制御処理ソフト自体はメイン制御部に集中させているため、新規開発などに伴ってソフトの変更も柔軟に対応できて制御内容の品質の低下もない。
【図面の簡単な説明】
【図1】本発明の一実施の形態に係る自動販売機の制御装置を概略的に示すブロック図である。
【図2】同制御装置の制御処理を示すフローチャートである。
【図3】(a)および(b)は同制御装置により単一の入力待ち処理を行う場合のサブMPUにおける概略的な制御動作を示すフローチャートおよびタイムチャートである。
【図4】(a)および(b)は同制御装置により単一の時間待ち処理を行う場合のサブMPUにおける概略的な制御動作を示すフローチャートおよびタイムチャートである。
【図5】同制御装置により入力待ち処理および時間待ち処理を行う場合のサブMPUにおける概略的な制御動作を示すフローチャートである。
【図6】(a)および(b)は不具合を説明するための、入力待ち処理を行う際のメインMPUとサブMPUとの通信データの受け渡しを概念的に示す図およびこの際のタイムチャートである。
【図7】(a)および(b)は不具合を説明するための、時間待ち処理を行う際のメインMPUとサブMPUとの通信データの受け渡しを概念的に示す図およびこの際のタイムチャートである。
【図8】従来の自動販売機の制御装置を概略的に示すブロック図である。
【図9】従来の自動販売機の制御装置を概略的に示すブロック図である。
【符号の説明】
1 接客部(構成ユニット)
2 搬送部(構成ユニット)
5A,5B ワイヤーハーネス
10 通信線
12,13 サブMPU(サブ制御部)
14 メインMPU(メイン制御部)
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a control device for a vending machine.
[0002]
[Prior art]
The control processing function of the vending machine can be roughly divided into the following three functions.
[0003]
{Circle around (1)} Customer Service Department: Control operations related to selection operations such as product selection push buttons and control processing for displaying money amounts indicating input money.
(2) Conveying section: Controls a temperature adjusting mechanism for storing products and performs control processing of a conveying mechanism for paying out products.
[0004]
(3) Data processing section: Performs control processing related to setting of sales conditions, recording of sales results, and input / output to / from an external recording device.
In a conventional vending machine, as schematically shown in FIG. 8, the control processing of all the vending machines is concentrated by one microprocessor unit (hereinafter abbreviated as MPU). Here, in FIG. 8, 1 is a customer service section provided with a push button mechanism and a circuit for displaying a price, 2 is a transport section provided with a transport mechanism, a temperature control mechanism, etc., 3 is a substrate, One MPU 4 is provided on the substrate 3. Moreover, each electric system component part of the customer service part 1 and the conveyance part 2 is connected with respect to the board | substrate 3 via wire harness 5A, 5B, respectively.
[0005]
By adopting such a centralized control method, all the control processing is performed by one MPU 4, so that there is an advantage that processing is unified and processing based on a sequence concept is easy to create. On the other hand, since the load on the MPU 4 is concentrated and increased, an expensive MPU 4 with high processing capability is required. In addition, since the electric circuit is concentrated around one MPU 4, the size of the substrate 3 becomes large. If only a part of the circuit 3 is changed, it takes time to change the substrate 3, and further, it is attempted to integrate the electric circuit. There is a problem that a relatively large amount of initial investment is required, such as a dedicated semiconductor. Furthermore, the wiring of the wire harnesses 5A and 5B is also concentrated toward one MPU 4, and there is a disadvantage that it is difficult to arrange the wiring in the substrate 3 and to distribute the wiring.
[0006]
In order to solve such problems and disadvantages, so-called distributed control type vending machines that perform distributed control processing are being adopted.
In this distributed control method, functions are distributed by increasing the number of MPUs, and control software processing and electric circuit concentration on the MPUs are avoided. That is, as shown in FIG. 9, a dedicated sub MPU 6 (MPU_B) that performs customer service control processing corresponding to the customer service unit 1 and a plurality of types of sub MPUs 7 (MPU_C, C ′) that perform transport control processing corresponding to the transport unit 2. , C ″,...) And a main MPU 8 (MPU_A) for performing data control processing, and the sub MPUs 6 and 7 are connected to the customer service unit 1 and the transport unit 2 through wire harnesses 5A and 5B. The MPUs 6 and 7 and the main MPU 8 are connected via the communication line 10. The individual result data from the sub MPUs 6 and 7 are transmitted to the main MPU 8 via the communication line 10 and output. 9A and 9B in FIG. 9 are sub-boards on which sub-MPUs 6 and 7 are mounted.
[0007]
With this configuration, the sub-MPUs 6 and 7 use a one-chip microcomputer that has a relatively small storage capacity but is inexpensive, thereby reducing the cost due to the mass production effect. When such a configuration is adopted, the customer service control process and the transport control process need not be performed by the main MPU 8, so that the board 11 on which the main MPU 8 and the like are mounted can be reduced in size and the main board 11 and the sub boards 9A and 9B. In addition, the degree of freedom with respect to the arrangement of the wire harnesses 5A and 5B was relatively high, and the wire harnesses 5A and 5B could be wired efficiently.
[0008]
[Problems to be solved by the invention]
However, according to such a vending machine, since the processing function is divided into each MPU (main MPU8, sub MPU6, 7), it becomes difficult to standardize each process. By using a plurality of sub MPUs 7 (MPU_C, C ′, C ″,...) Having different programs and varieties depending on the situation, it is not possible to achieve the cost reduction due to the mass production effect as intended. In addition, since some of the functions that cannot be included in the sub-control are included in the main control, the processing flow spans the main MPU 8 and the sub-MPUs 6 and 7, and the software structure is disrupted. There was a risk of decline.
[0009]
SUMMARY OF THE INVENTION An object of the present invention is to provide a control device for a vending machine capable of reducing the cost and stabilizing the control contents.
[0010]
[Means for Solving the Problems]
In order to solve the above-described problem, the present invention provides a plurality of main control units that are provided correspondingly for each component unit and connected to the main control unit via communication lines. The main control unit performs only the input / output processing between each sub control unit and a component unit connected to the sub control unit in various control processes that need to be executed. The sub-side control processing that can be performed, and the branch conditions and branch destinations for the constituent units of the sub-control unit corresponding to the sub-side control processing are set and output as instruction data to the corresponding sub-control unit. Is configured to perform the sub-side control processing on the constituent units based on the branch condition and branch destination of the instruction data and output the processing results to the main control unit. A.
[0012]
According to this configuration, the sub-control unit inputs instruction data from the main control unit, performs sub-side control processing in the sub-control unit based on the branch condition and branch destination of the instruction data for the configuration unit, and Since it is only necessary to perform an input / output operation of outputting the processing result to the main control unit, a common type of microcomputer capable of performing such control processing can be adopted as a sub-control unit, which reduces the cost. Can be reduced. In addition, since all the control processing content itself is managed by the main control unit, the control flow can be changed between the main control unit and the sub control unit while the control content can be freely changed. In addition, since the control content instruction and the result data are only input / output between the sub-control unit and the main control unit, the quality of the control content is not deteriorated.
[0014]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. In addition, the same code | symbol is attached | subjected to the same function as the past, and the description is abbreviate | omitted.
[0015]
As shown in FIG. 1, the control device of this vending machine connects sub MPUs 12 and 13 to the customer service unit 1 and the transport unit 2 via wire harnesses 5A and 5B, respectively. Two main MPUs 14 are connected to each other via the communication line 10. Then, the contents of the control software in the sub MPUs 12 and 13 are limited to the control by the input / output process for the constituent units such as the customer service unit 1 and the transport unit 2 and the communication process for the main MPU 14, and only the data control process by the main MPU 14. In addition, the program management of customer service control processing and transport control processing is also performed. Thus, the sub MPUs 12 and 13 can be configured by the same type of one-chip microcomputer (MPU_B) that can perform common operations (input / output processing for the constituent units and communication processing for the main MPU 14). Costs can be reduced, and the control processing software itself is concentrated on the main MPU 14, so that the software can be flexibly changed with new development and the quality of the control contents is not deteriorated.
[0016]
However, the sub MPUs 12 and 13 receive output data from a plurality of constituent units constituting a vending machine such as a push button for product selection of the customer service section 1 and the transport section 2, a price display section, a temperature control mechanism, and a transport mechanism. Each time the data is input, the data is output as it is to the main MPU 14 via the communication line 10, the main MPU 14 determines the processing for the data, and the subsequent instructions are sent from the main MPU 14 to the sub MPUs 12 and 13. 10, the sub MPUs 12 and 13 and the main MPU 14 must communicate each time a status change is notified in each constituent unit, and the number of communications becomes very large. An expensive communication device or main MPU 14 is required, and a processing time corresponding to the communication processing time is required. Ring occurs also a problem that is delayed.
[0017]
For example, an input waiting process in which a predetermined mechanism in a constituent unit connected to the sub MPUs 12 and 13 is operated (ON) and the mechanism is stopped (OFF) based on information of a detection unit separately provided in the constituent unit. In this case, the following operation is performed. That is, as shown in FIGS. 6A and 6B, first, after the sub MPUs 12 and 13 receive an instruction to drive the mechanism from the main MPU 14 via the communication line 10, the mechanism is driven. The sub MPUs 12 and 13 wait for detection information from the detection means, and when the detection information is obtained, the sub MPUs 12 and 13 output the detection information to the main MPU 14 via the communication line 10, and the main MPU 14 detects the detection information. From the above, it is determined that the mechanism needs to be stopped, and an instruction signal for stopping the mechanism is output to the sub MPUs 12 and 13 via the communication line 10, and the sub MPUs 12 and 13 based on this instruction The mechanism must be controlled to stop. As described above, three communication processes are required for one input waiting process, and the sub MPUs 12 and 13 perform the two communication processes after obtaining the detection information, and finally issue a stop instruction. Therefore, the processing of the stop time is delayed accordingly.
[0018]
In the case of a time waiting process in which a predetermined mechanism in the constituent units connected to the sub MPUs 12 and 13 is operated (ON) and the mechanism is stopped (OFF) after a predetermined time, the following operation is performed. That is, as shown in FIGS. 7A and 7B, first, an instruction to drive the mechanism from the main MPU 14 via the communication line 10 is output to the sub MPUs 12 and 13, and this driving instruction is output to the sub MPUs 12 and 13. 13 receives and drives the mechanism. Thereafter, the main MPU 14 determines that the predetermined time has elapsed, and the sub MPUs 12 and 13 receive an instruction to stop the mechanism from the main MPU 14 via the communication line 10. The mechanism must be controlled to stop. In this way, two communication processes are required for one time waiting process, and the sub MPUs 12 and 13 drive or stop the mechanism after obtaining a drive or stop instruction via the communication line 10. The mechanism causes a time delay for communication processing at the time of driving and stopping.
[0019]
Therefore, in order to solve such a problem, the sub MPUs 12 and 13 and the configuration units connected to the sub MPUs 12 and 13 (for example, the configuration unit corresponding to the sub MPU 12 is a configuration corresponding to the customer service unit 1 and the sub MPU 13). Control processing (hereinafter referred to as sub-side control processing) that can be performed only with the unit (conveying unit 2) is performed as input / output processing within each sub MPU 12, 13, and the sub MPUs 12, 13 and the main MPU 14 Reduce the number of communications between the two.
[0020]
That is, as shown in FIG. 2, the main MPU 14 inputs / outputs between the sub MPUs 12 and 13 and the constituent units corresponding to the sub MPUs 12 and 13 in various control processes such as a data control process, a customer service control process, and a transport control process. When the sub-side control process that can be performed only by the process and does not require the main MPU 14 is determined (step # 1), and when it is determined that the sub-MPUs 12 and 13 need to perform the sub-side control process Determines and sets what branch processing the control processing consists of (input waiting branch processing and time waiting branch processing, or a combination of these input waiting branch processing and time waiting branch processing). (Steps # 2 and 3), the instruction data for instructing the branch condition and branch destination of the series of control processes are blocked, and the sub MPUs 12 and 13 are input. In addition to the output port designation and output instruction, the blocked instruction data is output to the sub MPUs 12 and 13 through the communication line 10 together with the output command (step # 4).
[0021]
Receiving this instruction data, the sub MPUs 12 and 13 execute sub-side control processing based on the instruction data from the main MPU 14 (step # 11) and perform input / output processing with the constituent units. When the result is obtained, the main MPU 14 is communicated with and the processing result is output to the main MPU 14 (step # 12). When there is an input of result data from the sub MPUs 12 and 13, the main main MPU 14 makes a determination based on the result data and performs necessary control processing (steps # 5 and # 6).
[0022]
As a simple example, when a single input waiting process is performed in the predetermined sub MPUs 12 and 13, for example, when an input waiting process is performed such as driving a predetermined mechanism to a predetermined position detected by a detection sensor. The main MPU 14 drives a predetermined mechanism, the branch condition is waiting for input of a detection signal from the detection sensor, and the contents of each branch destination at the time of branch (the loop when the branch condition is not satisfied) Contents), the stop of the mechanism when the branch condition is satisfied is collectively created as one block command, and this command is output to the predetermined sub MPUs 12 and 13 via the communication line 10.
[0023]
When performing a single time waiting process in the predetermined sub-MPUs 12 and 13, for example, in a time waiting process in which a predetermined mechanism is operated for a predetermined time, the main MPU 14 drives the predetermined mechanism. That the branch condition is waiting for time, the set value of the waiting time at the time of branching, and stopping the mechanism when the branch condition is satisfied are collectively created as a one-block command. To the predetermined sub-MPUs 12 and 13.
[0024]
Also, in practice, a plurality of input waiting processes and time waiting processes are combined, that is, a plurality of branch condition settings and branch destination specifications are combined to create a command of one block. 10 to the predetermined sub MPUs 12 and 13. It is also possible to send a plurality of commands created as described above to the sub MPUs 12 and 13 in parallel.
[0025]
In this way, the sub MPUs 12 and 13 that have received a command from the main MPU 14 via the communication line 10 take in each branch condition and branch destination data of the input waiting process and the time waiting process from the command, and accordingly Control processing related to each input waiting process and time waiting process is performed on each component unit of the customer service unit 1 or the transport unit 2 only by the sub MPUs 12 and 13 (see FIGS. 3 to 5).
[0026]
As described above, since the control processing for each constituent unit is directly performed by the sub MPUs 12 and 13 without passing through the communication line 10, there is no delay in processing timing due to the communication processing. Therefore, even when control is performed at short time intervals such as msec order, there is no delay in processing timing due to communication processing, and thus high speed is particularly required for communication between the sub MPUs 12 and 13 and the main MPU 14. It is not necessary, and a low-priced device can be used as a communication device or each MPU.
[0027]
In addition, since the control processing for each constituent unit is not performed across the sub MPUs 12 and 13 and the main MPU 14, the control content does not deteriorate.
[0028]
Then, only the processing result of each component unit corresponding to the sub MPUs 12 and 13 is output from the sub MPUs 12 and 13 to the main MPU 14 via the communication line 10 thereafter. Therefore, only one transfer is required for communication with respect to the control processing contents collected in one command, the number of communication processings between the sub MPUs 12 and 13 and the main MPU 14 can be greatly reduced, and the communication device is inexpensive. It will not cause any trouble even if it is done with things.
[0029]
In the above-described embodiment, the case where the constituent units of the customer service unit 1 and the transport unit 2 are targeted has been described. However, the present invention is not limited to this, and it can be dealt with in the same manner for other constituent units. Not too long. Further, the number of sub MPUs 12 and 13 is not limited at all.
[0030]
【The invention's effect】
As described above, according to the present invention, one main control unit and a plurality of sub-units provided correspondingly for each component unit and connected to the main control unit via a communication line are connected. The main control unit can perform only the input / output processing between each sub-control unit and a component unit connected to the sub-control unit in various control processes that need to be executed. The sub-control processing that can be performed is determined, and branch conditions and branch destinations for the constituent units of the sub-control unit corresponding to the sub-side control processing are set and output as instruction data to the corresponding sub-control unit. The sub-side control processing is performed on the constituent unit based on the branch condition and branch destination of the instruction data, and the processing result is output to the main control unit. Since the control is not performed across the sub-control unit and the main control unit, it is possible to prevent the control content from being lowered, and between each sub-control unit and the component units connected to the sub-control unit. Sub-side control processing that can be performed only by input / output processing between them can be performed in the sub-control unit, so that the number of communication processing between the sub-control unit and the main control unit can be reduced, and processing timing delays due to communication processing Therefore, communication between the sub-control unit and the main control unit does not require high speed, and the communication device and each MPU can be inexpensive. Furthermore, since the sub-control unit can be composed of the same type of one-chip microcomputer that can perform common operations, the cost can be reduced due to the mass production effect, and the control processing software itself is concentrated on the main control unit. Therefore, it is possible to flexibly respond to software changes accompanying new development, etc., and there is no deterioration in the quality of control content.
[Brief description of the drawings]
FIG. 1 is a block diagram schematically showing a control device of a vending machine according to an embodiment of the present invention.
FIG. 2 is a flowchart showing a control process of the control device.
FIGS. 3A and 3B are a flowchart and a time chart showing a schematic control operation in a sub MPU when a single input waiting process is performed by the control device.
FIGS. 4A and 4B are a flowchart and a time chart showing a schematic control operation in a sub MPU when a single time waiting process is performed by the control device.
FIG. 5 is a flowchart showing a schematic control operation in the sub-MPU when an input waiting process and a time waiting process are performed by the control device.
FIGS. 6A and 6B are diagrams conceptually showing the delivery of communication data between the main MPU and the sub MPU when performing an input waiting process and a time chart at this time for explaining a problem. is there.
FIGS. 7A and 7B are diagrams conceptually showing delivery of communication data between a main MPU and a sub MPU when performing time waiting processing and a time chart at this time for explaining a problem; is there.
FIG. 8 is a block diagram schematically showing a control device of a conventional vending machine.
FIG. 9 is a block diagram schematically showing a control device of a conventional vending machine.
[Explanation of symbols]
1 Customer Service Department (component unit)
2 Conveyance unit (component unit)
5A, 5B Wire harness 10 Communication line 12, 13 Sub MPU (sub control unit)
14 Main MPU (Main Control Unit)

Claims (1)

自動販売機を構成する複数の構成ユニットを制御する自動販売機の制御装置であって、1つのメイン制御部と、各構成ユニット毎に対応して設けられて接続されているとともに前記メイン制御部と通信線を介して接続されている複数のサブ制御部とを備え、前記メイン制御部は、実行する必要のある各種の制御処理において、各サブ制御部とそのサブ制御部に接続された構成ユニットとの間の入出力処理だけで行うことができるサブ側制御処理を判断するとともに、そのサブ側制御処理に対応するサブ制御部の構成ユニットに対する分岐条件および分岐先を設定して該当サブ制御部へ指示データとして出力し、各サブ制御部は、前記指示データの分岐条件と分岐先とに基づいて前記サブ側制御処理を構成ユニットに対して行い、その処理結果をメイン制御部に対して出力する構成とした自動販売機の制御装置。  A control device for a vending machine that controls a plurality of constituent units constituting a vending machine, wherein the main control unit is connected to one main control unit corresponding to each constituent unit. And a plurality of sub-control units connected via communication lines, and the main control unit is connected to each sub-control unit and the sub-control unit in various control processes that need to be executed. Determine the sub-side control processing that can be performed only by input / output processing with the unit, and set the branch condition and branch destination for the component unit of the sub-control unit corresponding to the sub-side control processing, and the corresponding sub-control Each sub-control unit performs the sub-side control processing on the constituent unit based on the branch condition and branch destination of the instruction data, and the processing result Control apparatus for an automatic vending machine configured to output to the main control unit.
JP14695597A 1997-06-05 1997-06-05 Vending machine control device Expired - Lifetime JP3698521B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14695597A JP3698521B2 (en) 1997-06-05 1997-06-05 Vending machine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14695597A JP3698521B2 (en) 1997-06-05 1997-06-05 Vending machine control device

Publications (2)

Publication Number Publication Date
JPH10334323A JPH10334323A (en) 1998-12-18
JP3698521B2 true JP3698521B2 (en) 2005-09-21

Family

ID=15419366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14695597A Expired - Lifetime JP3698521B2 (en) 1997-06-05 1997-06-05 Vending machine control device

Country Status (1)

Country Link
JP (1) JP3698521B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2351829B (en) * 1999-06-30 2003-04-30 Ncr Int Inc Self service terminal

Also Published As

Publication number Publication date
JPH10334323A (en) 1998-12-18

Similar Documents

Publication Publication Date Title
EP0304880A3 (en) Programmable controller with parallel processors
JP3698521B2 (en) Vending machine control device
JPH10190299A (en) Electronic-component mounting line and electronic-component mounting method
US4750731A (en) Sheet storing appartus
EP1022697B1 (en) Control apparatus for vending machine
JPH0895614A (en) Controller
JPS61192458A (en) Production line system
JP2581813B2 (en) Vending machine control device
JP2004258787A (en) Control device of vending machine
JPS5941214B2 (en) Condition monitoring method
JP3561321B2 (en) Line monitoring method for mounting lines
JPH0773250A (en) Invertory managing method and device therefor
KR100427789B1 (en) Data input / output method
JPH0537335Y2 (en)
JP2512832B2 (en) Series controller
JPS63177202A (en) Data transfer device for multiplexing controller
JP2002082703A (en) Equipment with medium conveyance system, and method and device for its control
JP2001042916A (en) Work feed device, and its control method and storage medium
JP2001256071A (en) Redundant system
JP2002163636A (en) Visual examination device
JP2004220335A (en) Production process control system
JPH04311256A (en) Inspection system
JPH02143371A (en) Data processing terminal equipment
JPH08210908A (en) Combination measuring device
JPH07152314A (en) Controller

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040202

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040622

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050408

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050705

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110715

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120715

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130715

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20140715

Year of fee payment: 9

EXPY Cancellation because of completion of term