JPH03154994A - Controller for automatic vending machine - Google Patents

Controller for automatic vending machine

Info

Publication number
JPH03154994A
JPH03154994A JP29431989A JP29431989A JPH03154994A JP H03154994 A JPH03154994 A JP H03154994A JP 29431989 A JP29431989 A JP 29431989A JP 29431989 A JP29431989 A JP 29431989A JP H03154994 A JPH03154994 A JP H03154994A
Authority
JP
Japan
Prior art keywords
data
control unit
slave control
address data
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP29431989A
Other languages
Japanese (ja)
Other versions
JP2581813B2 (en
Inventor
Kazuhiko Sugino
一彦 杉野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP1294319A priority Critical patent/JP2581813B2/en
Publication of JPH03154994A publication Critical patent/JPH03154994A/en
Application granted granted Critical
Publication of JP2581813B2 publication Critical patent/JP2581813B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the communication time by collectively transmitting display data, push button data, or the like without adding address data peculiar to each slave control part in the collective communication mode. CONSTITUTION:Collective transmission data generated by a collective transmission data generating means 103 is transmitted from a master control part 100 to each slave control part 50. At this time, transmission data corresponding to the slave control part 50 is selected from transmitted collective transmission data based on peculiar address data by a transmission data selecting means 54 and is sent to a data processing means 55 in the slave control part 50. Since transmitted data is approximately simultaneously fetched into respective slave control parts 50 in the collective communication mode, the time required for data transmission is shortened.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、各々が所定の制御を行う複数個のスレーブ制
御部をシリアル伝送路を介してマスター制御部にて集中
制御するようにした自動販売機の制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is an automatic control system in which a master control unit centrally controls a plurality of slave control units each performing predetermined control via a serial transmission path. This invention relates to a control device for a vending machine.

[従来の技術] この種の制御装置の制御ブロック図を第6図に示してい
る。
[Prior Art] A control block diagram of this type of control device is shown in FIG.

10は、後述の各商品選択釦ユニット20をスレーブ制
御部として制御するマスター制御部てあ各々のスレーブ
制御部からマスター制御部に対して送信する前記送信デ
ータの送信タイミングを、各々固有のアドレスデータに
基づいて決定する送信タイミンク決定手段と、 マスター制御部より送信されたアドレスデータが、記憶
手段に記憶された固有のアドレスデータと合致するかを
判定し、合致する場合、個別交信モードとし、その後に
、送信データ作成手段で作成された送信データをマスタ
ー制御部へ送信させる自アドレス判定手段と、 マスター制御部より送信されたアドレスデータか、記憶
手段に記憶された一括交信用のアドレスデータと合致す
るかを判定し、合致する場合、括交信モードとし、前記
送信タイミング決定手段で決定した送信タイミングでも
って前記送信データをマスター制御部へ送信させる一括
交信判定手段と、 マスター制御部と交信するための交信手段とを備えたこ
とを特徴とする自動販売機の制御装置。
Reference numeral 10 indicates a master control unit that controls each product selection button unit 20 (described later) as a slave control unit, and determines the transmission timing of the transmission data transmitted from each slave control unit to the master control unit using unique address data. a transmission timing determination means that determines based on the above, and determines whether the address data transmitted from the master control unit matches the unique address data stored in the storage means, and if they match, sets the communication mode to individual communication mode, and then , self-address determination means for transmitting the transmission data created by the transmission data creation means to the master control unit, and address data transmitted from the master control unit or address data for batch communication stored in the storage means. and if they match, set the communication mode to batch communication mode and transmit the transmission data to the master control unit at the transmission timing determined by the transmission timing determination unit; and for communicating with the master control unit. A control device for a vending machine, characterized in that it is equipped with a communication means.

(3)請求項1及び2の各手段を備えるとともす、自動
販売機全体を制御するメインCPU(不図示)とシリア
ル伝送路で接続される制御CP011と、制御CPUI
Iと各商品選択釦ユニット20よりのシリアル伝送路り
とを接続するためのバッファ12と、制御CPUIIに
対するクロックを供給−4°ろクロック回路13とを備
える。尚、シリアル伝送路りにおいて、Llは、各商品
選択釦ユニット20に対して同期用のクロックを送信す
る伝送路であり、Ll!、L3は、種々のデータの送信
及び受信用の伝送路である。
(3) A control CPU 011 connected via a serial transmission path to a main CPU (not shown) that controls the entire vending machine, and a control CPU U, which is equipped with each of the means of claims 1 and 2.
A buffer 12 for connecting I and a serial transmission path from each product selection button unit 20, and a -4° clock circuit 13 for supplying a clock to the control CPU II. In the serial transmission path, Ll is a transmission path that transmits a synchronization clock to each product selection button unit 20, and Ll! , L3 are transmission paths for transmitting and receiving various data.

商品選択釦ユニット20(20−1,20−2゜2O−
n)において、21は、マスター制御部10よりの表示
指令に従い、販売可表示用LED22及び売切表示用L
ED23の表示を行なうと共に、商品選択釦24のオン
を検知してマスター制御部IOへ送信する機能と、シリ
アル伝送路りへの物理的なインターフェース機能と、マ
スター制御部10の制御CPUIIとの間の通信プロト
コルを制御する機能とを存するLSIである。
Product selection button unit 20 (20-1, 20-2゜2O-
n), in accordance with the display command from the master control unit 10, 21 is an LED 22 for indicating sales availability and L for indicating sold out.
Between the function of displaying the ED 23, detecting the ON of the product selection button 24, and transmitting it to the master control unit IO, the physical interface function to the serial transmission path, and the control CPU II of the master control unit 10. This is an LSI that has the function of controlling communication protocols.

25は、LS121を動作させるためのクロツりを供給
するクロック回路であり、26は、各商品選択釦ユニッ
ト20を識別ずろための固有のアドレスデータを記憶す
るE E P ROMである。
25 is a clock circuit that supplies a clock for operating the LS 121, and 26 is an EEPROM that stores unique address data for identifying each product selection button unit 20.

次に上記構成になる従来の制御装置でなされる交信手順
を第7図のタイムヂャートを参照して述へろ。
Next, the communication procedure performed by the conventional control device having the above configuration will be described with reference to the time chart shown in FIG.

各商品選択釦ユニット20のLED22.23を表示さ
せろ場合、マスター制御部IOから最初、商品選択釦ユ
ニット20−1に対するアドレスデータを送信し、商品
選択釦ユニット20−1が前記アドレスを受信すると、
この商品選択釦ユニット20−1は、受信可能状態とな
り、次にマスター制御部10から表示データを送信する
ことにより、受信可能となった商品選択釦ユニット20
1がその表示データを受信し、この表示データに基づき
販売可表示用LED22あるいは売切表示用LED23
を点灯制御する。次のサイクルには、マスター制御部1
0から商品選択釦ユニッ)・202に対して同様にアド
レスデータ及び表示データを送信し、このようにして全
ての商品選択釦ユ上記の制御回路のごとく、表示データ
に2ビツト、押釦データに1ヒツトて計3ピッl−Lか
必要とないデータの交信に無駄が生じた。
When displaying the LEDs 22 and 23 of each product selection button unit 20, the master control unit IO first transmits address data to the product selection button unit 20-1, and when the product selection button unit 20-1 receives the address,
This product selection button unit 20-1 becomes ready to receive data, and then by transmitting display data from the master control unit 10, the product selection button unit 20-1 becomes ready to receive data.
1 receives the display data, and based on this display data, the LED 22 for indicating sales availability or the LED 23 for indicating sold out
Control the lighting. In the next cycle, master control unit 1
Similarly, the address data and display data are transmitted from 0 to the product selection button unit 202, and in this way, all product selection button units have 2 bits for display data and 1 bit for push button data, as in the above control circuit. A total of 3 pins were lost due to unnecessary communication of data.

この発明は、」二足の問題点をなくすためになされたも
のであり、個別のアドレスデータの送信を不要にして高
速にデータの交信が行える自動販売機の制御装置を提供
することを目的とする。
This invention was made in order to eliminate the problem of two pairs of hands, and its purpose is to provide a control device for a vending machine that can exchange data at high speed without the need to transmit individual address data. do.

[課題を解決するための手段] 第1の発明になる自動販売機の制御装置は、第1図に示
すように、各々が所定の制御を行う複数個のスレーブ制
御部50をシリアル伝送路I7を介してマスター制御部
100にて集中制御するようにした自動販売機の制御装
置であって、マスター制御部100は: 個々のスレーブ制御部50と交信するための固有のアド
レスデータ及び、全てのスレーブ制御部50と一括して
交信するためのアドレスデータを作成するアドレスデー
タ作成手段101と、個々のスレーブ制御部50に対し
て個別に送信するデータを作成する送信データ作成手段
102ニット20に対して同様な交信制御を行う。
[Means for Solving the Problems] As shown in FIG. 1, the vending machine control device according to the first invention connects a plurality of slave control units 50, each of which performs a predetermined control, to a serial transmission path I7. This is a control device for a vending machine that is centrally controlled by a master control section 100 via a master control section 50, and the master control section 100: An address data creation means 101 that creates address data for communicating with the slave control units 50 all at once, and a transmission data creation unit 102 that creates data to be transmitted individually to each slave control unit 50. Similar communication control is performed using

一方、マスター制御部IOが各商品選択釦ユニット20
から商品選択釦24のオン又はオフ状態を示ず押釦デー
タを取り込む場合、最初、商品選択釦ユニット20−1
からEEP110M26に記憶されたアドレスデータを
マスター制御部10に送信することにより、マスター制
御部IOと商品選択釦ユニット20=1との間の交信か
許可され、この商品選択釦ユニット20−1から押釦デ
ータを送信し、商品選択釦ユニッl−20−2以降につ
いても同様な交信制御を行う。
On the other hand, the master control unit IO selects each product selection button unit 20.
When importing push button data without indicating the on or off state of the product selection button 24, first, the product selection button unit 20-1
By transmitting the address data stored in the EEP 110M26 to the master control unit 10, communication between the master control unit IO and the product selection button unit 20=1 is permitted, and the button is pressed from the product selection button unit 20-1. Data is transmitted, and similar communication control is performed for the product selection button unit l-20-2 and subsequent ones.

[発明か解決しようとする課題] 以上説明したように、従来の制御装置においては、マス
ター制御部IOと各商品選択釦ユニット20との間で交
信を行う場合には必ずアドレスデータの送受を必要とす
るので特に商品選択釦ユニット20の個数が多い場合に
は、全ての商品選択釦ユニッ20と交信するのに時間が
かかるといった問題があった。又、交信データの単位と
しては一般に7ビツト又は8ビツトとなっているのに対
し、全てのスレーブ制御部50に対して一括にして送信
するデータを作成する一括送信データ作成手段103と
、 シリアル伝送路1.を介して各スレーブ制御部50と交
信するための交信手段104とを備え、各スレーブ制御
部50は。
[Problem to be solved by the invention] As explained above, in the conventional control device, when communicating between the master control unit IO and each product selection button unit 20, it is necessary to send and receive address data. Therefore, especially when the number of product selection button units 20 is large, there is a problem that it takes time to communicate with all the product selection button units 20. Furthermore, while the unit of communication data is generally 7 bits or 8 bits, there is also a batch transmission data creation means 103 that creates data to be sent to all slave control units 50 at once, and serial transmission. Road 1. and a communication means 104 for communicating with each slave control section 50 via.

固有のアドレスデータ及び一括交信用のアドレスデータ
を記憶する記憶手段51と、 マスター制御部100より送信されたアドレスデータが
、記憶手段51に記憶された固有のアドレスデータと合
致するかを判定し、合致する場合、個別交信モードとし
、その後に送信される個別の送信データを取り込む自ア
ドレス判定手段52と、マスター制御部100より送信
されたアドレスデータが、記憶手段51に記憶された一
括交信用のアドレスデータと合致するかを判定し、合致
する場合、一括交信モードとする一括交信判定手段53
と、 一括交信モードのとき、その後に送信される0 括送信データの中から当該スレーブ制御部5oに該当す
る送信データを、固有のアドレスデータに基づき選出す
る送信データ選出手段54と、送信データ選出手段54
により得た送信データもしくは、前記アドレス判定手段
52にて取り込んた送信データに基づき所定の制御を行
うデータ処理手段55と、 マスター制御部+00と交信するための交信手段56と
を備えたことを特徴とする。
A storage means 51 for storing unique address data and address data for bulk communication; and determining whether the address data transmitted from the master control unit 100 matches the unique address data stored in the storage means 51; If they match, the mode is set to individual communication mode, and the self-address determination means 52 takes in the individual transmission data transmitted thereafter, and the address data transmitted from the master control unit 100 is set to the individual communication mode. Bulk communication determination means 53 that determines whether it matches the address data and, if it does, sets the batch communication mode.
and a transmission data selection means 54 that selects transmission data corresponding to the slave control unit 5o from among the 0 batch transmission data transmitted subsequently in the batch communication mode, based on unique address data; Means 54
or data processing means 55 for performing predetermined control based on the transmission data obtained by the address determination means 52, and communication means 56 for communicating with the master control unit +00. shall be.

第2の発明になる自動販売機の制御装置は、第2図に示
すように、各々が所定の制御を行う複数個のスレーブ制
御部50をシリアル伝送路りを介してマスター制御部1
00にて集中制御するようにした自動販売機の制御装置
であって、マスター制御部+00は: 個々のスレーブ制御部50と交信するための固有のアド
レスデータ及び、全てのスレーブ制御部50と一括して
交信するためのアドレスデータを作成するアドレスデー
タ作成手段101と、スレーブ制御部50から一括して
送信されるデマスター制御部100より送信されたアド
レスデータが、記憶手段51に記憶された一括交信用の
アドレスデータと合致するかを判定し、合致する場合、
一括モード交信モードとし、前記送信タイミング決定手
段58で決定した送信タイミングでもって前記送信デー
タをマスター制御部100へ送信させる一括交信判定手
段53と、マスター制御部100と交信するための交信
手段56とを備えたことを特徴とする。
As shown in FIG. 2, the vending machine control device according to the second invention connects a plurality of slave control units 50, each of which performs a predetermined control, to a master control unit 50 via a serial transmission path.
This is a control device for a vending machine that performs centralized control at 00, and the master control unit +00 has: Unique address data for communicating with each slave control unit 50, and collective control with all slave control units 50. address data creation means 101 that creates address data for communication, and address data sent from the demaster control section 100 that is sent in batches from the slave control section 50 is stored in the storage section 51 in bulk. Determine whether it matches the address data for communication, and if it matches,
a batch communication determination means 53 for setting the communication mode to be a batch mode and transmitting the transmission data to the master control unit 100 at the transmission timing determined by the transmission timing determination unit 58; and a communication unit 56 for communicating with the master control unit 100. It is characterized by having the following.

[作用] 第1の発明になる制御装置jこおいて、マスター制御部
100から個別にスレーブ制御部50に表示データ等の
送信データを送出する場合、アドレスデータ作成手段+
01で作成された個別のアドレスデータと共に、送信デ
ータ作成手段102で作成された個別の送信データがス
レーブ制御部50側に送信される。各スレーブ制御部5
0側においては、最初に送信されてきた個別のアドレス
データと、記憶手段51に記憶されていた固有のアドレ
スデータとが合致するか否かが自アドレス判3 −タの中から、それぞれのスレーブ制御部5oに対する
個々のデータを読み取る一括送信データ読取手段105
と、 シリアル伝送路りを介して各スレーブ制御部50と交信
するための交信手段104とを備え、各スレーブ制御部
50は マスター制御部100に対して送信すべきデータを作成
する送信データ作成手段57と、固有のアドレスデータ
及び一括交信用のアドレスデータを記憶する記憶手段5
Iと、 各々のスレーブ制御部50からマスター制御部100に
対して送信する前記送信データの送信タイミングを、各
々固有のアドレスデータに基づいて決定する送信タイミ
ング決定手段58と、マスター制御部+00より送信さ
れたアドレスデータが、記憶手段51に記憶された固有
のアドレスデータと合致するかを判定し、合致する場合
、個別交信モードとし、その後に、送信データ作成手段
57で作成された送信データをマスター制御部100へ
送信させる自アドレス判定手段52と、足手段52にて
判定され、合致したスレーブ制御部50が交信可能状態
となり、続いて送信される前記送信データが自アドレス
判定手段52によって取り込まれ、データ処理手段55
に送出される。
[Operation] In the control device j according to the first invention, when transmitting data such as display data from the master control section 100 to the slave control section 50 individually, the address data creation means +
The individual transmission data created by the transmission data creation means 102 is transmitted to the slave control unit 50 side together with the individual address data created in step 01. Each slave control unit 5
On the 0 side, whether or not the individual address data transmitted first matches the unique address data stored in the storage means 51 is determined by each slave from its own address judgment 3-ta. Bulk transmission data reading means 105 for reading individual data for the control unit 5o
and communication means 104 for communicating with each slave control section 50 via a serial transmission path, and each slave control section 50 has a transmission data creation means for creating data to be transmitted to the master control section 100. 57, and storage means 5 for storing unique address data and address data for bulk communication.
I, a transmission timing determining means 58 that determines the transmission timing of the transmission data to be transmitted from each slave control unit 50 to the master control unit 100 based on each unique address data, and transmission from the master control unit +00. It is determined whether the received address data matches the unique address data stored in the storage means 51, and if they match, the mode is set to individual communication mode, and then the transmission data created by the transmission data creation means 57 is mastered. The self-address determination means 52 to be transmitted to the control section 100 and the slave control section 50 that has been determined and matched by the foot means 52 are in a communicable state, and the subsequently transmitted transmission data is captured by the self-address determination means 52. , data processing means 55
sent to.

一方、マスター制御部+00から一括交信を行うために
、アドレス作成手段lotで作成された括交信用のアド
レスデータが送信されると、各スレーブ制御部50にお
いて、送信されてきた一括交信用のアドレスデータと、
記憶手段51に記憶されていた一括交信用のアドレスデ
ータとが合致するか否かが一括交信判定手段53によっ
て判定されるが、この場合、全てのスレーブ制御部50
で双方のアドレスデータが合致するので、全てのスレー
ブ制御部は一括交信モードとなる。この後、一括送信デ
ータ作成手段103によって作成された一括送信データ
がマスター制御部+00からスレーブ制御部50に対し
て送信される。このとき、各スレーブ制御部50におい
ては、各々固有のアドレスデータに基づき、送信されて
きた一括送信データの中から当該スレーブ制御部50に
4 該当する送信データか送信データ選出手段54に1−っ
て選出され、データ処理手段55に送出される。このよ
うに、一括交信モートにおいては、送信したデータがそ
れぞれのスレーブ制御部50にほぼ同時に取り込まれる
ので、データ送信のための所要時間が短くなる。
On the other hand, when the address data for batch communication created by the address creation means lot is transmitted from the master control unit +00 in order to perform batch communication, each slave control unit 50 processes the address data for batch communication that has been sent. data and
The batch communication determining unit 53 determines whether or not the address data for batch communication stored in the storage unit 51 matches, but in this case, all the slave control units 50
Since both address data match, all slave control units enter the batch communication mode. Thereafter, the batch transmission data created by the batch transmission data creation means 103 is transmitted from the master control unit +00 to the slave control unit 50. At this time, each slave control unit 50 selects the corresponding transmission data from among the batch transmission data that has been transmitted based on the respective unique address data. and is sent to the data processing means 55. In this way, in the batch communication mode, the transmitted data is taken into each slave control section 50 almost simultaneously, so the time required for data transmission is shortened.

第2の発明になる制御装置では、スレーブ制御部50か
ら個別に押釦のオン/オフ等を示すデータをマスター制
御部+00に送信するとき、まず、マスター制御部10
0から交信先の固有のアドレスデータが送信され、この
アドレスデータに対応するスレーブ制御部50が受(」
とったとき、交信可能状態となり、送信データ作成手段
57で作成された送信データがマスター制御部+00に
対して送信される。
In the control device according to the second invention, when transmitting data indicating the on/off of a push button individually from the slave control unit 50 to the master control unit +00, first, the master control unit 10
0 transmits unique address data of the communication destination, and the slave control unit 50 corresponding to this address data receives ("
When this happens, the communication becomes possible, and the transmission data created by the transmission data creation means 57 is transmitted to the master control unit +00.

方、各スレーブ制御部50における送信データを一括に
してマスター制御部100へ送信する場合には、まず、
マスター制御部+00から一括交信用のアドレスデータ
が送信され、この一括交信用のアドレスデータを受信す
ることによって全以下に説明するような制御プログラム
を備えると共に、当該マスター制御部側から全ての商品
選択釦ユニット20に対して一括して送信する表示デー
タを作成する一括表示データ作成手段■〕と、商品選択
釦ユニット20側から一括にして送出される一括押釦デ
ータからそれぞれの商品選択釦ユニット20に該当する
押釦データを取り出ず一括押釦データ読取手段Qとを備
える。
On the other hand, when transmitting data from each slave control section 50 to the master control section 100 in a batch, first,
Address data for bulk communication is transmitted from the master control unit +00, and by receiving this address data for bulk communication, a control program as described below is provided, and all product selections are performed from the master control unit side. Batch display data creation means (■) that creates display data to be sent to the button units 20 all at once] and batch push button data sent out all at once from the product selection button unit 20 side to each product selection button unit 20 A push button data reading means Q is provided which does not take out the corresponding push button data.

又、各商品選択釦ユニット20のLSI21にも所定の
制御機能を備えるとともに、マスター制御部10から送
信される一括表示データの中から、固有のアドレスデー
タに従って、それぞれの商品選択釦ユニット20に該当
する表示データを取り込む表示データ選出手段Mと、各
商品選択釦ユニット20から送信すべきそれぞれの押釦
データをひとかたまりのデータとして送信するために、
それぞれ固有のアドレスデータに基づく送信タイミング
を決める送信タイミング決定手段Nとを備える。又、各
商品選択釦ユニット20のEEPROM26’は、それ
ぞれ固有のアドレスデータを7 てのスレーブ制御部50が一括交信モードとなり、この
後、各スレーブ制御部50においては、送信すべき送信
データの送信タイミングが、各々の固有アドレスデータ
に基づき、送信タイミング決定手段58により決められ
ており、この送信タイミングに従って送信データがマス
ター制御部+00へ送信される。これにより、各スレー
ブ制御部50における送信データは、ひとかたまりのデ
ータとして送信されるので交信時間を短縮できる。
In addition, the LSI 21 of each product selection button unit 20 is also equipped with a predetermined control function, and the LSI 21 of each product selection button unit 20 is selected from among the batch display data sent from the master control unit 10 according to unique address data. In order to transmit the display data selection means M that captures the display data to be displayed and the push button data to be transmitted from each product selection button unit 20 as a batch of data,
and transmission timing determining means N for determining transmission timing based on each unique address data. In addition, the EEPROM 26' of each product selection button unit 20 stores unique address data.All slave control units 50 enter the batch communication mode, and thereafter, each slave control unit 50 transmits the transmission data to be transmitted. The timing is determined by the transmission timing determining means 58 based on each unique address data, and the transmission data is transmitted to the master control unit +00 according to this transmission timing. As a result, the transmission data in each slave control section 50 is transmitted as a batch of data, so that the communication time can be shortened.

第3の発明のごとく、第1及び第2の発明よる装置の構
成要素を含み、スレーブ制御部50を商品選択釦ユニッ
トとすれば、一括交信モードのとき、表示データや押釦
データは、固有のアドレスデータをイマ1さずに一括に
して送信できるのでデータ送受信のための交信時間を短
縮できる。
If, as in the third invention, the components of the apparatus according to the first and second inventions are included, and the slave control section 50 is a product selection button unit, display data and push button data are unique to each other in the batch communication mode. Since the address data can be transmitted all at once without any delay, the communication time for data transmission and reception can be shortened.

[実施例コ 本発明になる制御装置の一実施例を第3図に示しており
、第6図の従来例と同一の部分には同一の符号を付して
いる。
[Embodiment] An embodiment of the control device according to the present invention is shown in FIG. 3, and the same parts as in the conventional example shown in FIG. 6 are given the same reference numerals.

マスター制御部10の制御CPUII°には、記憶する
とともに、一括交信用のアドレスデータを記憶している
The control CPU II° of the master control unit 10 also stores address data for batch communication.

次に、第3図の制御装置でなされる交信手順を第4図に
示すフローチャート及び第5図のタイムヂャートを参照
して説明する。
Next, the communication procedure performed by the control device shown in FIG. 3 will be explained with reference to the flowchart shown in FIG. 4 and the time chart shown in FIG. 5.

最初の表示データ交信モードにおいて、ステップS1に
て、マスター制御部10が一括交信モードを行うのか個
別交信モードを行うのかの判定が行なわれ、個別交信モ
ードの場合は、従来例で説明したのと同じ手順にて表示
データの交信が行なイつれるが、一括交信モートのとき
は、次のステップS2にて、マスター制御部10からシ
リアル伝送路り、を介して全ての商品選択釦ユニット2
0に対して一括交信用のアドレスデータを送信する。
In the first display data communication mode, in step S1, the master control unit 10 determines whether to perform the batch communication mode or the individual communication mode. Communication of display data is performed in the same procedure, but in the case of batch communication mode, in the next step S2, all product selection button units 2 are communicated from the master control unit 10 via the serial transmission path.
Send address data for bulk communication to 0.

商品選択釦ユニット20側では、ステップ#lにて、各
々のEEPROM26°に記憶された一括交信用アトレ
スデータと同一のアドレスデータを受信することにより
、全ての商品選択釦ユニット20が受信可能状態となる
。マスター制御部10では、一括表示データ作成手段P
によって、下表8 に示ずフ]−マツ)・になる−柄表示データが作成され
ており、次のステップS3でマスター制御部10から全
ての商品選択釦ユニット20に対して一括表示データを
送信する。この表示データの送信タイミングとしては、
マスター制御部IOより各商品選択釦ユニット20に対
しシリアル伝送路I71を介して送出している同期用の
クロックに基づいて行なわれろ。
On the product selection button unit 20 side, in step #l, all product selection button units 20 are in a receivable state by receiving the same address data as the address data for bulk communication stored in each EEPROM 26°. becomes. In the master control unit 10, the batch display data creation means P
, the pattern display data shown in Table 8 below has been created, and in the next step S3, the master control unit 10 sends the batch display data to all the product selection button units 20. Send. The timing for transmitting this display data is as follows:
This is done based on the synchronization clock sent from the master control unit IO to each product selection button unit 20 via the serial transmission path I71.

表示データ ー1−記の表示データにおいて、商品選択釦ユニッ)2
0−1の販売可表示用り、ED22及び売切表示用LE
D23に対する“1”、“0”は、点灯及び消灯を示ず
1ヒツトデータであり、ユニットlないしユニット4に
対する計8ビットがデータの−取り込んだ表示データに
従って、販売可表示用LEl)22及び売切表示用L 
E I) 23を点灯制御する。
Display data 1 - In the display data listed below, product selection button unit) 2
0-1 for displaying available for sale, ED22 and LE for displaying sold out
"1" and "0" for D23 do not indicate lighting or turning off, and are one-hit data, and a total of 8 bits for units 1 to 4 are data - LEL 22 for displaying sales availability and LE1 22 for displaying sales, according to the captured display data. L for off display
E I) Controls the lighting of 23.

次に押釦データ交信モードについて述べる。この場合も
、ステップS4にてマスター制御部10が一括交信モー
ドを行うのか個別交信モードを行うのかの判定が行なわ
れ、個別交信モードの場合は、従来例で同じ手順で行な
われるが、一括交信モートのときは、次のステップS5
にて、マスター制御部10からシリアル伝送路り、を介
して全ての商品選択釦ユニット20に対して一括交信用
のアドレスデータを送信する。商品選択釦ユニット20
側では、ステップ#4にて、各々のEEPr(0M26
°に記憶された一括交信用アドレスデータと同一のアド
レスデータを受信することにより、全ての商品選択釦ユ
ニット20が送信可能状態となる。
Next, the push button data communication mode will be described. In this case as well, it is determined in step S4 whether the master control unit 10 performs the batch communication mode or the individual communication mode, and in the case of the individual communication mode, the procedure is the same as in the conventional example, but the batch communication If it is a mote, the next step S5
Then, address data for batch communication is transmitted from the master control unit 10 to all product selection button units 20 via the serial transmission line. Product selection button unit 20
On the side, in step #4, each EEPr (0M26
By receiving the same address data as the address data for bulk communication stored in , all product selection button units 20 become ready for transmission.

この一括押釦データ交信モードにおいては、各商品選択
釦ユニット20からマスター制御部10へ送信すべき、
商品選択釦24のオン又はオフ状1 かたまりである1バイトとなる。従って商品選択釦ユニ
ット20の個数が1〜4個であれば表示データは1バイ
トで済み、商品選択釦ユニット20のり個数が5〜8個
であれば表示データは2バイトとなり、交信データの単
位とである1バイト毎に8ビツトの表示データを送出す
るのでデータ交信を高速に行える。
In this batch push button data communication mode, the data to be sent from each product selection button unit 20 to the master control unit 10 is
One byte is one block of on or off state of the product selection button 24. Therefore, if the number of product selection button units 20 is 1 to 4, the display data will be 1 byte, and if the number of product selection button units 20 is 5 to 8, the display data will be 2 bytes, and the unit of communication data. Since 8-bit display data is sent for each byte, data communication can be performed at high speed.

各商品選択釦ユニット20ては、各々のEEPROM2
6’に記憶された固有のアドレスデータに幇づき、シリ
アルにて送信される一括表示データの中から何ビット目
のデータを取り込むかが、それぞれの表示データ選出手
段Mにより決められており、ステップ#2において、1
番目の商品選択釦ユニット20−1は、上表に示した表
示データの中から1ビツト目と2ビツト目の“ビと”0
”のデータを取り込み、2番目の商品選択釦ユニット2
0−2は、3ビツト目と4ビツト目のデータ″0”と“
ピの表示データを取り込む。このようにして全ての商品
選択釦ユニット20が表示データを取り込むと、次のス
テップ#3にて、それぞれ態を示ず押釦データの送信タ
イミングが、各々の固育ア1−レスデータに基づき、送
信タイミング決定手段Nによって決められており、ステ
ップ#5において商品選択釦ユニット20−1は、前記
一括交信用アドレスデータを受信した時点より、前記ク
ロックのlクロック目で押釦データをシリアル伝送路L
3を介してスレーブ制御部IOへ送信し、次の2クロツ
ク目で商品選択釦ユニット202における押釦データを
同じ様にして送信する。
Each product selection button unit 20 has each EEPROM 2
Based on the unique address data stored in step 6', the number of bits of data to be fetched from the serially transmitted batch display data is determined by each display data selection means M. In #2, 1
The th product selection button unit 20-1 selects the 1st and 2nd bits of 0 from the display data shown in the table above.
” and select the second product selection button unit 2.
0-2 is the 3rd and 4th bit data "0" and "
Import the display data of Pi. When all the product selection button units 20 have taken in the display data in this way, in the next step #3, the transmission timing of the push button data is determined based on the respective fixed area data, without indicating the status of each button. The transmission timing is determined by the transmission timing determining means N, and in step #5, the product selection button unit 20-1 transmits the push button data to the serial transmission line L at the l-th clock from the time when the address data for bulk communication is received.
3 to the slave control unit IO, and in the next second clock, push button data in the product selection button unit 202 is transmitted in the same way.

従って、シリアル伝送路L3を介してマスター制御部I
Oに対して、法衣に示すごとく、個々の押釦データをひ
とかたまりのデータとしてシリアルにて送信されるので
データ交信を高速に行える。
Therefore, the master control unit I
As shown in the vestibule, the individual push button data is serially transmitted as a set of data to the O, so data communication can be performed at high speed.

押釦データ 2 10ては、面記送信された一括押釦データを受信し、受
信した一括押釦データの系列順から何番目の押釦データ
かとの商品選択釦ユニットよりの6のなのかが、一括押
釦データ読取手段Qによって判定され、その押釦データ
に基づき所定の販売のための制御を行う。
Push Button Data 2 10 Receives the batch push button data that was sent face-to-face, and determines the number of the push button data from the series order of the received batch push button data and 6 from the product selection button unit. This is determined by the reading means Q, and control for predetermined sales is performed based on the button push data.

なお、一括交信モートと個別交信モートとの使い分υは
例えば貨幣投入により販売可表示等は一括交信にて行い
、商品の売切による売切表示は個別交信で行うようにす
る。
Note that the use of the collective communication mote and the individual communication mote υ is such that, for example, displaying that the product is available for sale by inserting money is performed through the collective communication, and displaying that the product is sold out due to the product being sold out is performed using the individual communication.

「発明の効果コ 以」−説明したように、本発明は、一括交信モードにお
いては、各スレーブ制御部固有のアドレスデータを付さ
ずに表示データや押釦データ等を一括に送信するように
したので、交信時間の短縮が図れる。
"Effects of the Invention" - As explained, in the batch communication mode, the present invention transmits display data, push button data, etc. all at once without attaching address data unique to each slave control unit. Therefore, communication time can be shortened.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は第1の発明になる自動販売機の制御装置のクレ
ーム対応図、第2図は第2の発明になる自動販売機の制
御装置のクレーム対応図、第3図は、第1の発明及び第
2の発明を適用した一実施例を示す制御ブロック図、第
4図及び第5図は、第3図の制御装置における制御動作
を示すフローチャー1・及びタイムチャート、第6図は
、従来の制御装置にお:Jる交信手順を示すタイムヂャ
−1・、第7図は、第6図図示の装置でなされる交信手
順を示すタイムチャートである。 10・・マスター制御部、 11 ・制御CPU、+2・・バッファ、13.25・
クロック回路、 20・・・商品選択釦ユニット、 21’・LSI、22・・販売可表示用LED。 23 ・売切表示用LED、 24・・押釦、26’ −EEPROM。
Figure 1 is a claim correspondence diagram of the vending machine control device which is the first invention, Figure 2 is a claim correspondence diagram of the vending machine control device which is the second invention, and Figure 3 is the claim correspondence diagram of the vending machine control device which is the second invention. A control block diagram showing an embodiment to which the invention and the second invention are applied, FIGS. 4 and 5 are a flowchart 1 and a time chart showing the control operation in the control device of FIG. 3, and FIG. FIG. 7 is a time chart showing the communication procedure performed by the apparatus shown in FIG. 6. 10.. Master control unit, 11. Control CPU, +2.. Buffer, 13.25.
Clock circuit, 20... Product selection button unit, 21' LSI, 22... LED for displaying sales availability. 23 - LED for displaying sold out, 24... push button, 26'-EEPROM.

Claims (3)

【特許請求の範囲】[Claims] (1)各々が所定の制御を行う複数個のスレーブ制御部
をシリアル伝送路を介してマスター制御部にて集中制御
するようにした自動販売機の制御装置であって、 マスター制御部は; 個々のスレーブ制御部と交信するための固有のアドレス
データ及び、全でのスレーブ制御部と一括して交信する
ためのアドレスデータを作成するアドレスデータ作成手
段と、 個々のスレーブ制御部に対して個別に送信するデータを
作成する送信データ作成手段と、 全てのスレーブ制御部に対して一括にして送信するデー
タを作成する一括送信データ作成手段と、シリアル伝送
路を介して各スレーブ制御部と交信するための交信手段
とを備え、 各スレーブ制御部は; 固有のアドレスデータ及び一括交信用のアドレスデータ
を記憶する記憶手段と、 マスター制御部より送信されたアドレスデータが、記憶
手段に記憶された固有のアドレスデータと合致するかを
判定し、合致する場合、個別交信モードとし、その後に
送信される個別の送信データを取り込む自アドレス判定
手段と、 マスター制御部より送信されたアドレスデータが、記憶
手段に記憶された一括交信用のアドレスデータと合致す
るかを判定し、合致する場合、一括交信モードとする一
括交信判定手段と、 一括交信モードのとき、その後に送信される一括送信デ
ータの中から当該スレーブ制御部に該当する送信データ
を、固有のアドレスデータに基づき選出する送信データ
選出手段と、 送信データ選出手段により得た送信データもしくは、前
記アドレス判定手段にて取り込んだ送信データに基づき
所定の制御を行うデータ処理手段と、 マスター制御部と交信するための交信手段とを備えたこ
とを特徴とする自動販売機の制御装置。
(1) A control device for a vending machine in which a plurality of slave control units each performing predetermined control are centrally controlled by a master control unit via a serial transmission line, and the master control unit: address data creation means for creating unique address data for communicating with the slave control unit of the slave control unit and address data for communicating with all the slave control units at once; A transmission data creation means for creating data to be transmitted; a batch transmission data creation means for creating data to be transmitted at once to all slave control units; and a means for communicating with each slave control unit via a serial transmission path. Each slave control unit is equipped with: storage means for storing unique address data and address data for batch communication; A self-address determination means that determines whether the address data matches the address data and, if it matches, enters the individual communication mode and captures the individual transmission data that will be transmitted thereafter; and a storage means that stores the address data transmitted from the master controller. A batch communication determination means that determines whether the address data matches the stored address data for batch communication, and if it matches, sets the batch communication mode; a transmission data selection means for selecting transmission data corresponding to the slave control unit based on unique address data; and a predetermined control based on the transmission data obtained by the transmission data selection means or the transmission data taken in by the address determination means. A control device for a vending machine, comprising: data processing means for performing the following steps; and communication means for communicating with a master control section.
(2)各々が所定の制御を行う複数個のスレーブ制御部
をシリアル伝送路を介してマスター制御部にて集中制御
するようにした自動販売機の制御装置であって、 マスター制御部は; 個々のスレーブ制御部と交信するための固有のアドレス
データ及び、全てのスレーブ制御部と一括して交信する
ためのアドレスデータを作成するアドレスデータ作成手
段と、 スレーブ制御部から一括して送信されるデータの中から
、それぞれのスレーブ制御部に対する個々のデータを読
み取る一括送信データ読取手段と、シリアル伝送路を介
して各スレーブ制御部と交信するための交信手段とを備
え、 各スレーブ制御部は; マスター制御部に対して送信すべきデータを作成する送
信データ作成手段と、 固有のアドレスデータ及び一括交信用のアドレスデータ
を記憶する記憶手段と、 各々のスレーブ制御部からマスター制御部に対して送信
する前記送信データの送信タイミングを、各々固有のア
ドレスデータに基づいて決定する送信タイミング決定手
段と、 マスター制御部より送信されたアドレスデータが、記憶
手段に記憶された固有のアドレスデータと合致するかを
判定し、合致する場合、個別交信モードとし、その後に
、送信データ作成手段で作成された送信データをマスタ
ー制御部へ送信させる自アドレス判定手段と、 マスター制御部より送信されたアドレスデータが、記憶
手段に記憶された一括交信用のアドレスデータと合致す
るかを判定し、合致する場合、一括交信モードとし、前
記送信タイミング決定手段で決定した送信タイミングで
もって前記送信データをマスター制御部へ送信させる一
括交信判定手段と、 マスター制御部と交信するための交信手段とを備えたこ
とを特徴とする自動販売機の制御装置。
(2) A control device for a vending machine in which a plurality of slave control units each performing predetermined control are centrally controlled by a master control unit via a serial transmission line, wherein the master control unit: address data creation means for creating unique address data for communicating with the slave control unit and address data for communicating with all the slave control units at once; and data transmitted from the slave control unit at once. Each slave control unit is equipped with a batch transmission data reading means for reading individual data for each slave control unit from the inside, and a communication means for communicating with each slave control unit via a serial transmission line, and each slave control unit is; Transmission data creation means for creating data to be transmitted to the control unit; storage means for storing unique address data and address data for batch communication; transmission data from each slave control unit to the master control unit; Transmission timing determining means for determining the transmission timing of the transmission data based on respective unique address data; and determining whether the address data transmitted from the master control unit matches the unique address data stored in the storage means. self-address determination means that sets the individual communication mode if the transmission data creation means matches, and then transmits the transmission data created by the transmission data creation means to the master control unit; Determine whether the address data matches the address data for batch communication stored in the means, and if they match, set the batch communication mode and transmit the transmission data to the master control unit at the transmission timing determined by the transmission timing determination means. A control device for a vending machine, comprising a collective communication determination means and a communication means for communicating with a master control section.
(3)請求項1及び2の各手段を備えるとともに、上記
スレーブ制御部を、商品選択用の押釦及び該押釦に対応
して設けられた販売可否の表示用ランプを具備する商品
選択釦ユニットとし、上記マスター制御部からスレーブ
制御部に送信するデータを表示用ランプに対する表示デ
ータとし、そして、スレーブ制御部からマスター制御部
へ送信するデータを押釦のオン/オフ状態を示す押釦デ
ータとしたことを特徴とする自動販売機の制御装置。
(3) In addition to each of the means of claims 1 and 2, the slave control section is a product selection button unit comprising a push button for product selection and a lamp for displaying whether or not the product can be sold, which is provided corresponding to the push button. The data transmitted from the master control section to the slave control section is display data for the display lamp, and the data transmitted from the slave control section to the master control section is push button data indicating the on/off state of the push button. Features of vending machine control device.
JP1294319A 1989-11-13 1989-11-13 Vending machine control device Expired - Lifetime JP2581813B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1294319A JP2581813B2 (en) 1989-11-13 1989-11-13 Vending machine control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1294319A JP2581813B2 (en) 1989-11-13 1989-11-13 Vending machine control device

Publications (2)

Publication Number Publication Date
JPH03154994A true JPH03154994A (en) 1991-07-02
JP2581813B2 JP2581813B2 (en) 1997-02-12

Family

ID=17806156

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1294319A Expired - Lifetime JP2581813B2 (en) 1989-11-13 1989-11-13 Vending machine control device

Country Status (1)

Country Link
JP (1) JP2581813B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114810A (en) * 2013-12-11 2015-06-22 セイコーエプソン株式会社 Detector, sensor, electronic apparatus, and mobile body
WO2017131163A1 (en) * 2016-01-27 2017-08-03 ミネベアミツミ株式会社 Switch unit and automatic vending machine
WO2019244410A1 (en) * 2018-06-18 2019-12-26 ソニーセミコンダクタソリューションズ株式会社 Communication system, master device, slave device, and communication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114810A (en) * 2013-12-11 2015-06-22 セイコーエプソン株式会社 Detector, sensor, electronic apparatus, and mobile body
WO2017131163A1 (en) * 2016-01-27 2017-08-03 ミネベアミツミ株式会社 Switch unit and automatic vending machine
JP2017134594A (en) * 2016-01-27 2017-08-03 ミネベアミツミ株式会社 Switch unit and automatic vending machine
US10535215B2 (en) 2016-01-27 2020-01-14 Minebea Mitsumi Inc. Switch unit and vending machine
WO2019244410A1 (en) * 2018-06-18 2019-12-26 ソニーセミコンダクタソリューションズ株式会社 Communication system, master device, slave device, and communication method
JPWO2019244410A1 (en) * 2018-06-18 2021-07-08 ソニーセミコンダクタソリューションズ株式会社 Communication system, master device, slave device and communication method

Also Published As

Publication number Publication date
JP2581813B2 (en) 1997-02-12

Similar Documents

Publication Publication Date Title
JPS59127133A (en) Data transmitting system
JPH03104459A (en) Data communication equipment
JPH03154994A (en) Controller for automatic vending machine
JP3369874B2 (en) Device for detecting configuration parameters of asynchronous data link
KR101816895B1 (en) Management serial bus for chassis type communication equipment
TWI417728B (en) Serial peripheral interface communication circuit
JPH0430217B2 (en)
JPS6361533A (en) Serial data transfer device
JP2000227803A (en) Method and system for controlling transmission in data link system of programmable controller
JP2743780B2 (en) Distributed processing equipment
JPS62117006A (en) Programmable controller
JP3641988B2 (en) Vending machine controller
JP2745617B2 (en) Transmission order control method for remote monitoring control device
JP2003114707A (en) Numerical control system
JPH11328110A (en) Communication device, signal content separating method and storage medium
JPS6051964A (en) Computer system
JP3852340B2 (en) Optical transmission apparatus and optical data link control method
JPS63101986A (en) Ic card reader/writer
JPS63216153A (en) Boot loading system
JPH03150656A (en) Bus priority control system
JPS6336353A (en) Vme data transmission equipment
JPS6388933A (en) Information transmitter
JPS58123106A (en) Input and output unit of programmable controller
JPS6046639A (en) Switching network communication control system
JPH03238582A (en) Distributed processing system for automatic vending machine

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20071121

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20081121

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20091121

Year of fee payment: 13

EXPY Cancellation because of completion of term