JPS6134196B2 - - Google Patents
Info
- Publication number
- JPS6134196B2 JPS6134196B2 JP14305877A JP14305877A JPS6134196B2 JP S6134196 B2 JPS6134196 B2 JP S6134196B2 JP 14305877 A JP14305877 A JP 14305877A JP 14305877 A JP14305877 A JP 14305877A JP S6134196 B2 JPS6134196 B2 JP S6134196B2
- Authority
- JP
- Japan
- Prior art keywords
- selection
- selection information
- signal
- data
- 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
Links
- 230000004044 response Effects 0.000 claims description 2
- 230000015654 memory Effects 0.000 description 6
- 230000007257 malfunction Effects 0.000 description 2
- 101710190443 Acetyl-CoA carboxylase 1 Proteins 0.000 description 1
- 102100021334 Bcl-2-related protein A1 Human genes 0.000 description 1
- 101001106432 Homo sapiens Rod outer segment membrane protein 1 Proteins 0.000 description 1
- 102100021424 Rod outer segment membrane protein 1 Human genes 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Description
本発明は、自動販売機において選択スイツチ等
の選択手段より客の操作によつて生ずる選択信号
を確実に受入れしかも同時の二重操作によつて複
数の選択信号が生じても一つのみ採用し得る自動
販売機の制御回路を提供するものである。
従来選択スイツチの操作によつて得られる選択
信号がリレー回路に導入して励磁させ、機械的可
動接点を介して販売駆動回路を動作させる構成で
あるために接点不良若しくは誤動作に陥り易い欠
点がある。また選択信号が同時に複数生じた場合
には対応のリレー回路が全て励磁することになつ
て規定以上の商品を販売する不都合があつて選択
スイツチの二重操作を防止するための機構が必要
となつていた。
また従来装置における制御回路は取付けられる
自動販売機の商品種類に応じてかかるリレー回路
を装備しており、この制御回路は他の商品種類数
の異なる自動販売機には適用できず汎用性の面で
著しく遅れていた。
以上の点より本発明は発生した選択信号を受入
れてこれに応じた商品の販売駆動回路を正確に動
作させる制御回路を提供するとともに、更にこの
制御回路は商品種類数の異なる種々の自動販売機
に適用し得るように構成するものである。
更に本発明の別の目的はRAM(ランダムアク
セス・メモリ)又はROM(読取り専用メモリ)
を有効に利用してLSI化に好ましい制御回路を提
供するものである。
以下図面に基づいて本発明の一実施例を詳述す
る。
第1図は本発明の制御回路を示し、太線の矢印
はデータバスでデータは8ビツトパラレルに転送
されて制御ゲートG1‥‥G14の開閉によりデータ
の流れは制御される。加算器11はAn端及びBn
端に入力するデータの加算若しくは論理演算を行
なうものであるが、本実施例に於いては両データ
の論理積のみを演算するものでビツト毎にAND
ゲートを備えた論理ゲートと等価と考えてよい。
即ち8ビツトパラレルにAn端にはA1,A2,A3,
…,A8がそしてBn端にはB1,B2,B3,‥‥,B8
なるデータが入力すると各ビツトで論理積が取ら
れてSn端よりA1・B1,A2・B2,A3・B8,‥‥,
A8・B8なる演算結果が出力される。加算器11
の演算に必要なデータはデータROM10の各メ
モリに記憶されているデータ及びI/0ポート9を
介して入力してくる選択情報である。I/0ポート
9の8ビツトの入力端には夫々選択スイツチ1,
2,3,4,5,6,7,8が接続され、各選択
スイツチは顧客が所定の金額を投入後押圧操作す
ると「1」を出力するように構成されていてI/0
ポート9に於ける入力状況が選択情報となる。し
たがつて選択スイツチ1が押圧操作された場合の
選択情報は8ビツトで「0・0・0・0・0・
0・0・1」と表わされる。また加算器11によ
る演算結果はアキユムレータ(ACC)13に導
入され更にデコーダ12で判定を受けデコーダ1
2は演算結果にステータスを検出するとSta信号
「1」を出力するものである。第2図に示す如く
シーケンス制御部14はアドレスカウンタ15、
命令レジスタ16、クロツクパルス発生器17、
フリツプフロツプ回路18、制御ROM19及び
ANDゲート群で構成されていて、クロツクパル
ス発生器17より順次生じるクロツクパルスをア
ドレスカウンタ15がカウントアツプするのに伴
ない命令レジスタ16は順次シーケンスを指定す
るようになつている。そして制御ROM19は命
令レジスタ16より出力されるS1からB10までの
シーケンス信号によつて各シーケンスに応じた制
御ゲートを導通させるための制御ゲート信号を適
宜出力するように設定してある。またANDゲー
ト28,20,21,22,23,24,25,
26,27は一方に夫々S1,S3,S4,S5,S6,
S7,S8,S9,S10信号が入力しそして他方にはSta
信号「1」が入力するようになつている。
次に動作を説明しながら本発明を明らかにして
いく。
選択待機状態に於いてフリツプフロツプ回路1
8はリセツトしておりアドレスカウンタ15には
クロツクパルスが導入され得す命令レジスタ16
は継続してS1信号を出力すると共に制御ROM1
9は制御ゲート信号G2,G3,G13を出力してい
る。したがつて制御ゲートG13の導通にて選択情
報がI/0ポート9を介して入力可能とされ、更に
制御ゲートG3・加算器11・制御ゲートG2を介
してACC13に導入可能とされている。この状
態で選択スイツチ1,2,3,4,5,6,7,
8の何れかが操作れ対応のI/0ポート9の入力端
に「1」が入力すると、或るビツトに「1」を備
えた選択情報がACC13に導入されてデコーダ
12はステータスを検出しSta信号「1」を出力
する。そしてANDゲート28はSta信号「1」と
S1信号とで論理積が得られてフリツプフロツプ回
路18がセツトし、クロツクパルス発生器17よ
りのクロツクパルスがANDゲート29を介して
アドレスカウンタ15へ導入され、アドレスカウ
ンタ15はカウントアツプを開始して命令レジス
タ16は順次S2,S8,S4,‥‥S10信号を出力す
るものである。
S2信号の発生にて制御ROM19は制御ゲート
信号G1,G14を出力してレジスタ30に選択情報
をACC13より導入して記憶する。
続いて順次生じるS3,S4,S5…信号によつてシ
ーケンス制御部14は選択情報の何れのビツトに
「1」が生じているかを判別して操作された選択
スイツチを走査する。データROM10のメモリ
31,32,33,34,35,36,37,3
8には選択種類に対応したビツトのみ「1」の情
報を備えたデータが設定されており、順次生じる
S3,S4,S5‥‥信号によつてシーケンス制御部1
4はこのデータを読取り加算器11でレジスタ3
0に記憶された選択情報と比較し、一致が取れた
場合にデコーダ12に生じるSta信号「1」によ
つて操作された選択スイツチを判別するものであ
る。
先ずS8信号が生じると制御ROM19は制御ゲ
ート信号G2・G3・G4・G5・G14を出力してメモリ
31に設定されているデータ「0・0・0・0・
0・0・0・1」と選択情報を加算器11で比較
する。選択スイツチ1が操作されている場合には
選択情報は「0・0・0・0・0・0・0・1」
であり次の第1表の如く演算が行なわれACC1
3に導入された演算結果にデコーダ12はステー
タスを検出してSta信号「1」を出力するシーケ
ンス制御部14はデコーダ12に生じた
The present invention allows a vending machine to reliably accept a selection signal generated by a customer's operation from a selection means such as a selection switch, and even if a plurality of selection signals are generated due to simultaneous double operations, only one selection signal is adopted. This invention provides a control circuit for a vending machine. Conventionally, a selection signal obtained by operating a selection switch is introduced into a relay circuit to excite it, and the vending drive circuit is operated via a mechanical movable contact, which has the disadvantage of being prone to contact failure or malfunction. . Furthermore, if multiple selection signals are generated at the same time, all the corresponding relay circuits will be energized, resulting in the inconvenience of selling more products than the specified amount, and therefore a mechanism is required to prevent double operation of the selection switch. was. In addition, the control circuit in the conventional device is equipped with a relay circuit depending on the product type of the vending machine to which it is installed, and this control circuit cannot be applied to other vending machines with a different number of product types, resulting in a lack of versatility. was significantly delayed. In view of the above, the present invention provides a control circuit that accepts a generated selection signal and accurately operates a product sales drive circuit in accordance with the selection signal, and furthermore, this control circuit can be used in various vending machines with different numbers of product types. It is configured so that it can be applied to. Yet another object of the invention is to use RAM (Random Access Memory) or ROM (Read Only Memory).
The objective is to provide a control circuit that is suitable for LSI implementation by making effective use of this. An embodiment of the present invention will be described in detail below based on the drawings. FIG. 1 shows a control circuit according to the present invention. The bold arrow indicates a data bus, and data is transferred in 8-bit parallel fashion, and the flow of data is controlled by opening and closing control gates G 1 . . . G 14 . Adder 11 connects An end and Bn
At the end, addition or logical operation is performed on the input data, but in this embodiment, only the AND of both data is calculated, and AND is performed for each bit.
It can be considered equivalent to a logic gate with a gate.
That is, in 8-bit parallel, A 1 , A 2 , A 3 ,
..., A 8 and B 1 , B 2 , B 3 , . . . , B 8 at the Bn end
When data such as _ _
The calculation results A 8 and B 8 are output. Adder 11
The data necessary for the calculation are data stored in each memory of the data ROM 10 and selection information inputted via the I/0 port 9. The 8-bit input terminal of I/0 port 9 has selection switches 1 and 1, respectively.
2, 3, 4, 5, 6, 7, and 8 are connected, and each selection switch is configured to output "1" when the customer presses it after inserting a predetermined amount.
The input status at port 9 becomes selection information. Therefore, when selection switch 1 is pressed, the selection information is 8 bits "0, 0, 0, 0, 0,
0.0.1". Further, the calculation result from the adder 11 is introduced into an accumulator (ACC) 13 and further judged by a decoder 12.
2 outputs a Sta signal "1" when a status is detected in the calculation result. As shown in FIG. 2, the sequence control unit 14 includes an address counter 15,
instruction register 16, clock pulse generator 17,
Flip-flop circuit 18, control ROM 19 and
It is composed of a group of AND gates, and as an address counter 15 counts up clock pulses sequentially generated from a clock pulse generator 17, an instruction register 16 sequentially specifies a sequence. The control ROM 19 is set to appropriately output control gate signals for making the control gates conductive according to each sequence according to the sequence signals S 1 to B 10 outputted from the instruction register 16. Also, AND gates 28, 20, 21, 22, 23, 24, 25,
26 and 27 are respectively S 1 , S 3 , S 4 , S 5 , S 6 ,
S 7 , S 8 , S 9 , S 10 signals are input and Sta
The signal "1" is input. Next, the present invention will be clarified by explaining the operation. Flip-flop circuit 1 in selection standby state
8 is an instruction register 16 which has been reset and a clock pulse can be introduced into the address counter 15.
continues to output the S1 signal and control ROM1
9 outputs control gate signals G 2 , G 3 , and G 13 . Therefore, when the control gate G13 is turned on, the selection information can be inputted via the I/0 port 9, and further introduced into the ACC13 via the control gate G3 , the adder 11, and the control gate G2 . ing. In this state, select switches 1, 2, 3, 4, 5, 6, 7,
8 is operated and "1" is input to the input end of the corresponding I/0 port 9, selection information with "1" in a certain bit is introduced to the ACC 13, and the decoder 12 detects the status. Outputs Sta signal “1”. And the AND gate 28 receives the Sta signal “1”.
A logical product is obtained with the S1 signal and the flip-flop circuit 18 is set, and the clock pulse from the clock pulse generator 17 is introduced to the address counter 15 via the AND gate 29, and the address counter 15 starts counting up and commands. The register 16 sequentially outputs S 2 , S 8 , S 4 , . . . S 10 signals. Upon generation of the S 2 signal, the control ROM 19 outputs control gate signals G 1 and G 14 and inputs selection information from the ACC 13 into the register 30 and stores it therein. Subsequently, based on the S 3 , S 4 , S 5 , . . . signals that are generated sequentially, the sequence control unit 14 determines which bit of the selection information is “1” and scans the operated selection switch. Memories 31, 32, 33, 34, 35, 36, 37, 3 of data ROM 10
8 is set with data that has information of "1" only in the bit corresponding to the selected type, and the data is set sequentially.
S 3 , S 4 , S 5 ‥‥Sequence control unit 1 according to signals
4 reads this data and uses adder 11 to store it in register 3.
The selection information is compared with the selection information stored as 0, and if a match is found, the selection switch operated by the Sta signal ``1'' generated in the decoder 12 is determined. First, when the S 8 signal is generated, the control ROM 19 outputs the control gate signals G 2 , G 3 , G 4 , G 5 , and G 14 to read the data set in the memory 31 as “0, 0, 0, 0,
0.0.0.1" and the selection information are compared in an adder 11. When selection switch 1 is operated, the selection information is "0, 0, 0, 0, 0, 0, 0, 1".
The calculation is performed as shown in Table 1 below, and ACC1
3, the decoder 12 detects the status and outputs the Sta signal "1".
【表】
Sta信号「1」とS3信号とでANDゲート20に
出力A1が得られると選択スイツチ1が操作され
たことを検出できる。更にANDゲート20に生
じた出力A1でフリツプフロツプ回路18をリセ
ツトしてクロツクパルスかアドレスカウンタ15
に入力するのを禁止するためシーケンスの移行が
停止する。しかしながら選択スイツチ1以外の例
えば選択スイツチ3が操作されている場合選択情
報は「0・0・0・0・0・1・0・0」であ
り、第2表に示す如くSta信号は生じずアドレス
カウンタ15は続いて入力する基準パルスによつ
て更にカウントアツプし、命令レジスタ16はS4
信号を出力してメモリ32に設定されているデー
タ「0・0・0・0・0・0・1・0」との比較
が加算器11で行なわれる。[Table] When the output A1 is obtained from the AND gate 20 with the Sta signal "1" and the S3 signal, it can be detected that the selection switch 1 has been operated. Furthermore, the output A1 generated at the AND gate 20 resets the flip-flop circuit 18 and outputs the clock pulse or the address counter 15.
Sequence transition stops because input is prohibited. However, if a switch other than selection switch 1, for example selection switch 3, is operated, the selection information is "0, 0, 0, 0, 0, 1, 0, 0", and the Sta signal is not generated as shown in Table 2. The address counter 15 is further incremented by the subsequently input reference pulse, and the instruction register 16 is incremented by the S 4
The adder 11 outputs the signal and compares it with the data "0.0.0.0.0.0.1.0" set in the memory 32.
【表】
このようにして選択情報はSta信号「1」が生
じて何れかのANDゲート20,21,22,2
3,24,25,26,27に出力A1‥‥A8が
得られるまでメモリ31,32,33,34,3
5,36,37,38に設定されたデータとの比
較が順次行なわれる。そして出力が生じたAND
ゲート20,21,22,23,24,25,2
6,27に対応した選択スイツチ1,2,3,
4,5,6,7,8が操作されたことを判別す
る。更に操作された選択スイツチを判別した後図
示していないがアドレスカウンタ15を帰客させ
て動作を終了する。
以上詳述してきた本発明に依ると顧客による所
定の選択動作によつて選択出力を発生するような
選択手段をI/0ポートの入力端子に接続して選択
情報を得ると共にこの選択情報の何れのビツトに
出力があるかを検出することで選択種類を判別す
ることができる。したがつて選択出力を受入れる
のに機械的接点を介在させる必要が無いため誤動
作を防止できると共に選択手段と制御回路は別に
構成し得るために互換性を高めることができる。
しかも複数の選択手段が同時に操作されても順次
比較する過程で最初の一致が検出されると比較を
停止するために単数の選択種類しか判別を二重操
作が防止される。[Table] In this way, the selection information is generated when the Sta signal "1" is generated and the selection information is output to any of the AND gates 20, 21, 22, 2.
Memory 31, 32, 33, 34, 3 until output A 1 is obtained at 3, 24, 25 , 26, 27.
Comparisons with data set at 5, 36, 37, and 38 are performed sequentially. And the output resulted in AND
Gate 20, 21, 22, 23, 24, 25, 2
Selection switch 1, 2, 3, corresponding to 6, 27
It is determined that 4, 5, 6, 7, and 8 have been operated. After further determining which selection switch has been operated, the address counter 15 is returned (not shown) to end the operation. According to the present invention described in detail above, selection means that generates a selection output in response to a predetermined selection operation by a customer is connected to the input terminal of the I/0 port to obtain selection information and to The selection type can be determined by detecting whether there is an output in the bit. Therefore, since no mechanical contact is required to receive the selection output, malfunctions can be prevented, and compatibility can be improved since the selection means and the control circuit can be configured separately.
Moreover, even if a plurality of selection means are operated at the same time, the comparison is stopped when the first match is detected in the process of sequential comparison, so that only a single selection type is determined, thereby preventing double operations.
第1図は本発明による制御回路を示し、第2図
はシーケンス制御部の具体例を示す。
主な図番の説明 1,2,3,4,5,6,
7,8…選択スイツチ、9…I/0ポート、10…
データROM、11…加算器、12…デコーダ。
FIG. 1 shows a control circuit according to the present invention, and FIG. 2 shows a specific example of a sequence control section. Explanation of main drawing numbers 1, 2, 3, 4, 5, 6,
7, 8...Selection switch, 9...I/0 port, 10...
Data ROM, 11...adder, 12...decoder.
Claims (1)
力する選択手段と、前記選択信号を商品種毎に対
応したビツトに導入して選択情報を得る手段と、
対応する商品種類に応じた特定ビツトにのみデー
タをセツトしている商品種類毎の適正選択情報を
予め記憶している手段と、前記選択情報と前記適
正選択情報とを順次比較する手段と、比較の結果
或るビツトで一致が取れると一致が得られたビツ
トに対応する商品が選択されたことを判別する手
段とから成る自動販売機の制御方式。1. Selection means for outputting a selection signal in response to a predetermined operation by a customer, and means for obtaining selection information by introducing the selection signal into bits corresponding to each product type;
A means for storing in advance appropriate selection information for each product type in which data is set only in specific bits corresponding to the corresponding product type, and a means for sequentially comparing the selection information and the appropriate selection information. A control system for a vending machine comprising means for determining, when a match is found in a certain bit, that a product corresponding to the matched bit has been selected.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14305877A JPS5474800A (en) | 1977-11-28 | 1977-11-28 | Control system for slot machine |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14305877A JPS5474800A (en) | 1977-11-28 | 1977-11-28 | Control system for slot machine |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5474800A JPS5474800A (en) | 1979-06-15 |
| JPS6134196B2 true JPS6134196B2 (en) | 1986-08-06 |
Family
ID=15329922
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14305877A Granted JPS5474800A (en) | 1977-11-28 | 1977-11-28 | Control system for slot machine |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5474800A (en) |
-
1977
- 1977-11-28 JP JP14305877A patent/JPS5474800A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5474800A (en) | 1979-06-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4970418A (en) | Programmable memory state machine for providing variable clocking to a multimode memory | |
| EP0226950B1 (en) | Memory access control circuit | |
| US4064553A (en) | Information processor | |
| JPH01129322A (en) | Fifo buffer controller | |
| US4516202A (en) | Interface control system for high speed processing based on comparison of sampled data values to expected values | |
| US6449193B1 (en) | Burst access memory system | |
| US6501700B2 (en) | Internal addressing structure of a semiconductor memory | |
| US6473841B1 (en) | Signal processing apparatus with memory access history storage | |
| JPH01218126A (en) | Keyboard | |
| JPS6134196B2 (en) | ||
| EP0229695A2 (en) | A matrix switching apparatus for preventing pseudo input | |
| US5590303A (en) | Memory designation control device | |
| US4656631A (en) | Process and circuit arrangement for checking a program in data processing units | |
| EP0102445B1 (en) | Control system for a plasma display | |
| KR100228455B1 (en) | Semiconductor memory circuit | |
| US6826648B1 (en) | Storage control for effecting switching commands | |
| JPH1092175A (en) | Cas signal generator of synchronous dram | |
| US5838619A (en) | Method and apparatus for redundancy management of non-volatile memories | |
| JPS5818650B2 (en) | keyboard input device | |
| JPH08149160A (en) | Data receiver | |
| KR100242027B1 (en) | Dram interface controller | |
| KR100192541B1 (en) | timer | |
| US3184710A (en) | Method and arrangement for checking the operative condition of a contact matrix | |
| JPS61815A (en) | Faulty area detecting device of sequence circuit | |
| SU1287107A1 (en) | Device for programmed control of object |