JPH01120697A - Change dispenser for vending machine - Google Patents
Change dispenser for vending machineInfo
- Publication number
- JPH01120697A JPH01120697A JP62279604A JP27960487A JPH01120697A JP H01120697 A JPH01120697 A JP H01120697A JP 62279604 A JP62279604 A JP 62279604A JP 27960487 A JP27960487 A JP 27960487A JP H01120697 A JPH01120697 A JP H01120697A
- Authority
- JP
- Japan
- Prior art keywords
- change
- coins
- stored
- counter
- pipe
- 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.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 description 16
- CDBYLPFSWZWCQE-UHFFFAOYSA-L sodium carbonate Substances [Na+].[Na+].[O-]C([O-])=O CDBYLPFSWZWCQE-UHFFFAOYSA-L 0.000 description 14
- 239000004148 curcumin Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 101100084040 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) ppi-1 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000003631 expected effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F5/00—Coin-actuated mechanisms; Interlocks
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D5/00—Testing specially adapted to determine the identity or genuineness of coins, e.g. for segregating coins which are unacceptable or alien to a currency
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Abstract
Description
【発明の詳細な説明】
(イ)産業上の利用分野
本発明は複数の釣銭パイプを備えた自動販売機の釣銭演
算装置に関する。DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to a change calculation device for a vending machine equipped with a plurality of change pipes.
(ロ)従来の技術
釣銭演算装置は特公昭56−35230号公報で示され
ているように、釣銭をこの額に最も近い額の上位硬貨に
て払出すとともに釣銭額より払出し硬貨額を減算し、未
払釣銭額が未だこの上位硬貨額以上であるうちは払出し
と減算を繰り返し、未払釣銭額が上位硬貨額を下回ると
こんどはこの額に最も近い下位硬貨にて払出しを行なう
とともに減算を行なって、以下、未払釣銭額が0円とな
るまで順次次の下位硬貨にて払出しと減算を行なうよう
になっている。かかる構成は釣銭を上位硬貨優先で払出
すために、釣銭硬貨を最少限の枚数で払出すことができ
る。(b) As shown in Japanese Patent Publication No. 56-35230, the conventional change calculation device dispenses change in the higher coin of the amount closest to this amount and subtracts the amount of paid coins from the amount of change. As long as the unpaid change amount is still greater than or equal to this upper coin amount, the payout and subtraction are repeated, and when the unpaid change amount falls below the upper coin amount, the payout is made in the lower coin closest to this amount and the subtraction is performed. Thereafter, payouts and subtractions are performed in the next lower order coins in sequence until the unpaid change amount becomes 0 yen. This configuration allows change to be paid out with priority given to higher-ranking coins, so that change coins can be paid out in the minimum number of coins.
(ハ)発明が解決しようとする問題点
このように釣銭を各々の釣銭パイプから順次払出してい
ては釣銭払出しに時間がかかり、自動販売機の利用が殺
到するような場合に販売効率が悪いものとなる。そのた
めには複数の釣銭パイプからの同時払出しが望ましいの
であるが、この場合同時払出しを行なう釣銭パイプには
同種の硬貨をそれぞれ収納していなければ上位硬貨優先
払出しの原則を崩さなくてはならなくなる。そのため同
時払出しを行なう硬貨種類を限定してしまうと、その硬
貨を含む釣銭の払出し時にしか同時払出しが適用されず
期待される効果が得られない。(c) Problems to be solved by the invention If change is dispensed sequentially from each change pipe in this way, it takes time to dispense change, and sales efficiency is poor when the vending machine is flooded with users. becomes. For this purpose, simultaneous payout from multiple change pipes is desirable, but in this case, if the same type of coins are not stored in the change pipes for simultaneous payout, the principle of giving priority to higher coins will have to be broken. . Therefore, if the types of coins that are to be paid out simultaneously are limited, simultaneous payout will only be applied when paying out change that includes those coins, and the expected effect will not be obtained.
したがって本発明は、釣銭払出しに先立って釣銭パイプ
別の払出枚数を前もって決めておくことで同時払出しを
可能にするものである。Therefore, the present invention enables simultaneous payout by predetermining the number of payouts for each change pipe prior to payout of change.
(ニ)問題点を解決するための手段
上記の問題点を解決するために本発明に依る自動販売機
の釣銭演算装置は、複数の釣銭パイプを備えて、少くと
もそのうちの一個の釣銭パイプは他の全ての釣銭パイプ
或いは一部の釣銭パイプと同時に硬貨を払出すことがで
きるようにした釣銭演算装置において、釣銭額を演算す
る釣銭演算装置と、前記釣銭パイプ別に投入硬貨と払出
し硬貨を加減算することで各釣銭パイプ内の硬貨貯蔵枚
数を検出するパイプ別釣銭枚数検出装置と、前記釣銭パ
イプの各硬貨貯蔵枚数から金種別の硬貨保有枚数を検出
する金種別枚数検出装置と、前記釣銭額と金種別の前記
硬貨保有枚数とにより金種別の釣銭払出枚数を演算する
金種別払出枚数決定装置と、この金種別の釣銭払出枚数
と前記釣銭パイプの各硬貨貯蔵枚数とに基づき該釣銭パ
イプ毎の釣銭払出枚数を演算する釣銭パイプ別払出枚数
決定装置と、この釣銭パイプ別の釣銭払出枚数にて各釣
銭パイプからの釣銭払出しを制御するもので、同時払出
しが可能な釣銭パイプどうしの何れにも該釣銭払出枚数
が設定されていると、これら釣銭パイプの同時払出しを
制御する釣銭払出制御装置とを具備している。(d) Means for Solving the Problems In order to solve the above problems, the change calculating device for a vending machine according to the present invention is provided with a plurality of change pipes, and at least one of the change pipes is In a change calculation device that can dispense coins at the same time as all other change pipes or some change pipes, the change calculation device calculates the amount of change and adds and subtracts coins inserted and coins paid out for each change pipe. a change number detection device for each pipe to detect the number of coins stored in each change pipe, a number detection device for each denomination to detect the number of coins held for each denomination from the number of coins stored in each change pipe, and a change amount detection device for each denomination. and a payout number determining device for each denomination, which calculates the number of change to be paid out for each denomination based on the number of coins held for each denomination; A device for determining the number of change to be paid out for each change pipe, which calculates the number of change to be paid out for each change pipe, and a device for controlling the payout of change from each change pipe based on the number of change to be paid out for each change pipe. The machine also includes a change payout control device that controls simultaneous payout of these change pipes when the number of change payouts is set.
(ホ)作用
パイプ別釣銭枚数検出装置は、釣銭パイプ毎に投入硬貨
を加算し払出し硬貨を減算して、それぞれの硬貨貯蔵枚
数を検出している。そして複数の釣銭パイプのうち同金
種の硬貨を収納する場合があり、金種別枚数検出装置は
釣銭パイプ別の硬貨貯蔵枚数により金種別の硬貨保有枚
数を検出する。金種別払出枚数決定装置は釣銭演算装置
から釣銭額が与えられると金種別の硬貨保有枚数を参照
して、金種別の釣銭払出枚数を上位硬貨優先にて決定す
る。釣銭パイプ別払出枚数決定装置は、パイプ別の硬貨
貯蔵枚数を参照しながら金種別の釣銭払出枚数を各釣銭
パイプに割り振って、各釣銭パイプ別の釣銭払出枚数を
決定する。これにより釣銭払出制御装置は釣銭を払出す
必要のある釣銭パイプを検出してその払出しを制御し、
同時払出しが可能な釣銭パイプどうしの何れも釣銭を払
出す必要があると、これら釣銭パイプの同時払出しを制
御する。(E) The device for detecting the number of change for each working pipe adds the coins inserted and subtracts the coins put out for each change pipe to detect the number of coins stored in each pipe. There are cases where coins of the same denomination are stored among a plurality of change pipes, and the denomination-specific number detection device detects the number of coins held for each denomination based on the number of coins stored in each change pipe. When the change amount is given from the change calculation device, the payout number determining device for each denomination refers to the number of coins held for each denomination and determines the number of change payouts for each denomination, giving priority to higher-ranking coins. The device for determining the number of coins to be dispensed for each change pipe allocates the number of coins to be dispensed for each denomination to each change pipe while referring to the number of stored coins for each pipe, and determines the number of coins to be dispensed for each change pipe. As a result, the change dispensing control device detects the change pipe that needs to dispense change and controls the dispensing.
When it is necessary to dispense change from any of the change pipes capable of simultaneous dispensing, the simultaneous dispensing of these change pipes is controlled.
(へ)実施例
第1図は本発明による釣銭演算装置を示している。釣銭
払出機構(12)の構成を第2図の平面図にて説明する
と、10円・50円・100円・500円にそれぞれ対
応している釣銭パイプ(IA) 、 (IB) 、 <
IC) 、 (ID)は釣銭硬貨を収納するとともに、
自動販売機への投入硬貨にて自動補給されるもので、各
釣銭パイプの下方に配設されている硬貨排出装置(20
A) 、 <20B) 、 (20C) 、 (20D
)は伝達装置(21)を介してモータ(10)の出力軸
に接続されている。硬貨排出装置(20A) 、 (2
0B> 、 (20C) 、 (20D)は選択装置(
11)により一つのみが選択されて、モータ(10)の
駆動力が伝達されるようになっている。(F) Embodiment FIG. 1 shows a change calculating device according to the present invention. The configuration of the change dispensing mechanism (12) will be explained with reference to the plan view of Fig. 2. Change pipes (IA), (IB), and < corresponding to 10 yen, 50 yen, 100 yen, and 500 yen, respectively
IC) and (ID) store change coins, and
It is automatically replenished by coins inserted into the vending machine, and the coin ejecting device (20 coins) is installed below each change pipe.
A) , <20B) , (20C) , (20D
) is connected to the output shaft of the motor (10) via a transmission device (21). Coin ejection device (20A), (2
0B>, (20C), (20D) are selection devices (
11), only one is selected and the driving force of the motor (10) is transmitted.
したがってモータ(10)が駆動すると選択装置(11
)にて指定される一種類の釣銭パイプかも釣銭を排出す
る。釣銭パイプ(IE)は他の釣銭パイプと違って投入
硬貨にて自動補給されることがなく、予め10円・50
円・100円・500円のうちの何れか一種類の釣銭硬
貨が充填されており、その下方に配設きれている硬貨排
出装置(20E)はソレノイド(9)の駆動にて釣銭パ
イプ(IE)から釣銭を排出する。以下、釣銭パイプ(
IE)に収納されている硬貨の種類を便宜的にP1金種
と呼ぶことにする。Therefore, when the motor (10) is driven, the selection device (11)
) may be a type of change pipe that discharges change. Unlike other change pipes, the change pipe (IE) is not automatically replenished with coins inserted, and is pre-filled with 10 yen and 50 coins.
The coin ejecting device (20E), which is filled with change coins of one type of yen, 100 yen, or 500 yen, and which is disposed below the coin ejecting device (20E), is driven by the solenoid (9) to eject the change into the change pipe (IE). ) to dispense change. Below is the change pipe (
For convenience, the type of coins stored in IE) will be referred to as P1 denomination.
かかる釣銭払出機構はモータ(10)とソレノイドク9
)とを同時に駆動することで、釣銭パイプ(IA)、
(IB) 、 (IC) 、 (ID)の何れか一つと
釣銭パイプ(IE)からの釣銭の同時払出しが可能とな
る。This change dispensing mechanism includes a motor (10) and a solenoid 9.
) by simultaneously driving the change pipe (IA),
Change can be paid out simultaneously from any one of (IB), (IC), and (ID) and from the change pipe (IE).
釣銭演算装置(2)は投入金額から販売した商品の価格
を減算して釣銭額を演算する。パイプ別釣銭枚数検出装
置(3)は、釣銭パイプ(LA) 、 (IB> 。The change calculation device (2) calculates the amount of change by subtracting the price of the sold product from the input amount. The change number detection device (3) for each pipe includes change pipes (LA) and (IB>).
(IC> 、 (ID)にそれぞれ10円、50円、1
00円、500円が投入されて各投入信号CI、C2、
C3、C4が生じると加算計数し、釣銭払出制御装置(
7)から釣銭パイプ(IA) 、 (IB) 、 (I
C) 。(IC>, (ID) respectively 10 yen, 50 yen, 1
When 00 yen and 500 yen are input, each input signal CI, C2,
When C3 and C4 occur, it is added and counted, and the change dispensing control device (
7) Change pipes (IA), (IB), (I
C).
(LD> 、 (IE)の各払出信号Di、D2.D3
.D4、D5が生じると減算計数して、各釣銭パイプ(
IA) 、 (IB) 、 (IC) 、 (ID)
、 (IE)別の硬貨貯蔵枚数を検出する。本例の釣銭
パイプ(IE)は自動補給されないために、最初に設定
された硬貨貯蔵枚数から払出信号が入力するたびに減算
する。設定装置(8)は、釣銭パイプ(IE)に収納し
ている硬貨種類が設定されると、この硬貨種情報P1を
金種別枚数検出装置(4)と釣銭パイプ別払出枚数決定
装置(6)とに出力する。金種別枚数検出装置(4)は
、各釣銭パイプ(IA) 、 (IB> 、 (IC>
、 (ID) 、 (IE)の硬貨貯蔵枚数から金種
別の硬貨保有枚数を検出する。(LD>, (IE) each payout signal Di, D2.D3
.. When D4 and D5 occur, subtract and count each change pipe (
IA), (IB), (IC), (ID)
, (IE) Detect another coin storage number. Since the change pipe (IE) of this example is not automatically replenished, the number of stored coins is subtracted from the initially set number of coins each time a payout signal is input. When the coin type stored in the change pipe (IE) is set, the setting device (8) transmits this coin type information P1 to the number-of-coins-by-denomination detection device (4) and the payout number-of-coins determination device (6) by change pipe. Output to. The denomination-specific number detection device (4) detects each change pipe (IA), (IB>, (IC>)
, (ID) , (IE) The number of coins held by denomination is detected from the number of stored coins.
各釣銭パイプがそれぞれ別の金種の硬貨を収納していれ
ば硬貨貯蔵枚数がそのまま硬貨保有枚数となるが、本例
の釣銭パイプ(IE)は何れかの釣銭パイプ(IA)
、 (IB) 、 (IC) 、 <ID)に収納して
いるのと同じ金種の硬貨を収納しているために、金種別
枚数検出装置(4)は設定装置(8)から示されるP1
金種については、二本の釣銭パイプの硬貨保有枚数の合
計を硬貨保有枚数としている。金種別払出枚数決定装置
(4)は、釣銭額と金種別の硬貨保有枚数とにより金種
別の釣銭払出枚数を演算する。この場合、金種別払出枚
数決定装置(5)は、上位硬貨優先によりその保有枚数
の範囲内で釣銭を組立てることで金種別の払出枚数を決
定する。釣銭パイプ別払出枚数決定装置(6)は、パイ
プ別釣銭枚数検出装置(3)にて示される釣銭パイプ別
の硬貨貯蔵枚数を参照しながら、金種別の釣銭払出枚数
を各釣銭パイプ(IA) 、 (IB) 、 (IC)
、 (ID) 、 (IE)に割り振っ゛てそれぞれ
からの釣銭払出枚数を決定する。このとき釣銭パイプ(
IE)と何れかの釣銭パイプ(IA) 、 (IB)
、 (IC) 、 (LD)とが同じ金種を収納してい
れば、それぞれの硬貨貯蔵枚数の範囲内で当該金種の釣
銭払出枚数を等分に割り振っていく。If each change pipe stores coins of different denominations, the number of stored coins will be the same as the number of coins held, but the change pipe (IE) in this example is stored in either change pipe (IA).
, (IB), (IC), <ID), the denomination-specific number detection device (4) detects the coins of P1 indicated by the setting device (8).
Regarding denominations, the total number of coins held in the two change pipes is considered the number of coins held. The payout number determining device (4) for each denomination calculates the number of change payouts for each denomination based on the amount of change and the number of coins held for each denomination. In this case, the device (5) for determining the number of coins to be paid out for each denomination determines the number of coins to be paid out for each denomination by assembling change within the range of the number of coins held, giving priority to higher-ranking coins. The device (6) for determining the number of coins to be dispensed for each change pipe determines the number of coins to be dispensed for each denomination by referring to the number of coins stored for each change pipe indicated by the number of change detector (3) for each pipe. , (IB) , (IC)
, (ID), and (IE) to determine the number of change payouts from each. At this time, the change pipe (
IE) and any change pipe (IA), (IB)
, (IC), and (LD) store the same denomination, the number of coins to be paid out of that denomination is divided equally within the range of the number of stored coins for each.
釣銭払出制御装置(7)は、各釣銭パイプ別の釣銭払出
枚数にて釣銭払出機構(12)の動作を制御するが、釣
銭パイプ(LA> 、 <IB) 、 <IC) 、
(ID)の何れかと釣銭パイプ<IE)の両方から釣銭
を払出す必要があると、ソレノイド(9)及びモータ(
10)の両方に駆動信号を与えることで同時払出しを制
御する。The change dispensing control device (7) controls the operation of the change dispensing mechanism (12) based on the number of change dispensing for each change pipe, including change pipes (LA>, <IB), <IC),
(ID) and the change pipe <IE), the solenoid (9) and motor (
10) Simultaneous payout is controlled by applying a drive signal to both.
モしてモータ(10)の駆動力にて硬貨の払出しを行な
う釣銭パイプ(IA) 、 (IB> 、 (IC)
、 (ID)は、選択装置(11)にパイプ選択信号を
与えて指定する。Change pipes (IA), (IB>, (IC)) that dispense coins using the driving force of the motor (10).
, (ID) is specified by giving a pipe selection signal to the selection device (11).
かかる本発明によると、釣銭パイプ(IE)に収納して
いる硬貨の種類を問わず何れかの釣銭パイプ(IA)
、 (IB> 、 (IC) 、 (ID>との同時払
出しが達成され、しかも上位硬貨優先による釣銭の組立
てが可能となる。According to the present invention, regardless of the type of coins stored in the change pipe (IE), any change pipe (IA)
, (IB>, (IC), and (ID>) can be paid out simultaneously, and it is also possible to assemble change by giving priority to higher-ranking coins.
第3図は、第1図で説明する制御を達成するための一実
施例の回路構成をブロックにて示し、(13)はCPU
、(14)はRAM、(15)はROM、(16)はI
10インタフェースで、これらはアドレスバス(17)
及びデータバスク18)にて接続されている。I10イ
ンタフェース(16)にはモータ(10)とソレノイド
ク9)が接続され、CPU(13)からそれぞれ駆動信
号が与えられる。設定装置(8〉は、釣銭パイプ(IE
)に収納する金種が設定されると、この設定情報をI1
0インタフェース(16)を通してCPU(13)に出
力する。選択装置(11)はI10インタフェース(1
6)を通してCPU(13)からパイプ選択信号が与え
られる。コインスイッチ(19A) 、 (19B)
、 (19C)、 (19D)はI10インタフェース
(16)を通してCPU(13)に接続されており、そ
れぞれ10円・50円・100円・500円の投入を検
知するとコイン投入信号を出力する。CP U(13)
はこのフィン投入信号の入力にて投入金額を演算すると
ともに、釣銭パイプ(LA> 、 (IB) 、 (I
C) 、 <ID)内の硬貨貯蔵枚数に投入分を加算す
る。モしてCP U(13)は何しカノ釣銭パイプ(I
A) 、 (IB) 、 (IC) 、 (ID)から
の釣銭払出しを決定して選択装置(11)に対しパイプ
選択信号を出力したときに、当該釣銭パイプの硬貨貯蔵
枚数から払出分を減算する。またCPU(13〉はソレ
ノイド(9)に対し駆動信号を出力したときには、釣銭
パイプ(IE)の硬貨貯蔵枚数から払出分を減算するよ
うになっている。FIG. 3 shows in block form the circuit configuration of an embodiment for achieving the control explained in FIG.
, (14) is RAM, (15) is ROM, (16) is I
10 interfaces, these are address buses (17)
and a data busk 18). A motor (10) and a solenoid 9) are connected to the I10 interface (16), and each is given a drive signal from the CPU (13). The setting device (8) is the change pipe (IE
), when the denomination to be stored in is set, this setting information is stored in I1
0 interface (16) to the CPU (13). The selection device (11) has an I10 interface (1
A pipe selection signal is applied from the CPU (13) through 6). Coin switch (19A), (19B)
, (19C), and (19D) are connected to the CPU (13) through the I10 interface (16), and output a coin insertion signal when they detect insertion of 10 yen, 50 yen, 100 yen, and 500 yen, respectively. CPU (13)
calculates the input amount by inputting this fin input signal, and also connects the change pipes (LA> , (IB) , (I
C) Add the input amount to the number of stored coins in <ID). What does the CPU (13) do with the change pipe (I)?
A) When deciding to pay out change from , (IB), (IC), (ID) and outputting a pipe selection signal to the selection device (11), the amount to be paid is subtracted from the number of coins stored in the change pipe. do. Further, when the CPU (13) outputs a drive signal to the solenoid (9), it subtracts the payout amount from the number of coins stored in the change pipe (IE).
第4図はRA M(14)の記憶フォーマットを模式的
に表す図である。RAM(14)には少くとも8つの領
域(14a)” (14h)が形成きれる。領域(14
a)は500円から10円までの各金種別の払出可能枚
数を記憶するための領域であり、4通りの金種に対応し
て4個のアドレスを含み、各アドレスを該当する金種の
硬貨保有枚数を記憶するカウンタE500、Eloo、
E50.EIOに設定している。領域(14b)は釣銭
払出時において500円から10円までの各金種別の硬
貨払出枚数を記憶するための領域であり、4通りの金種
に対応する4個のアドレスを金種別の釣銭払出枚数を記
憶するカウンタP500.P100.P50.PIOに
設定している。領域(14c)はCPU(13)が演算
した釣銭額を記憶するための領域である。領域(14d
)は釣銭パイプ(IA) 、 (IB) 、 (IC>
、 (ID)及び(IE)別の払出可能枚数を記憶す
るための領域であり、5通りの釣銭パイプに対応して5
個のアドレスを含み、各アドレスを該当する釣銭パイプ
についての硬貨貯蔵枚数を記憶するカウンタES500
゜ESloo、ES50.ESIO及びEPIに設定し
ている。この硬貨貯蔵枚数は、前述したようにCPU(
13)にて釣銭パイプ(LA) 、 <IB) 、 <
IC) 。FIG. 4 is a diagram schematically representing the storage format of RAM (14). At least eight areas (14a)'' (14h) can be formed in the RAM (14).
a) is an area for storing the number of coins that can be paid out for each denomination from 500 yen to 10 yen, and includes 4 addresses corresponding to 4 denominations. Counter E500, Eloo, which stores the number of coins held
E50. It is set to EIO. The area (14b) is an area for storing the number of coins to be paid out for each denomination from 500 yen to 10 yen when change is paid out, and four addresses corresponding to the four denominations are used to store the number of coins to be paid out for each denomination from 500 yen to 10 yen. Counter P500 that stores the number of sheets. P100. P50. It is set to PIO. The area (14c) is an area for storing the amount of change calculated by the CPU (13). Area (14d
) are change pipes (IA), (IB), (IC>
, (ID) and (IE) This is an area for storing the number of coins that can be paid out.
Counter ES500 that stores the number of coins stored for the change pipe corresponding to each address.
゜ESloo, ES50. It is set to ESIO and EPI. This number of stored coins is determined by the CPU (
13) Change pipe (LA), <IB), <
IC).
(ID)毎にその投入硬貨枚数と払出硬貨枚数とを加減
算することで算出される。またC P U(13)は同
じ金種の硬貨を収納している釣銭パイプ内の硬貨貯蔵枚
数を加算することで前述した金種別の硬貨保有枚数を決
定する。このとき当該金種を収納している釣銭パイプが
一つしかないときは、このパイプ内の硬貨保有枚数がそ
の金種についての硬貨保有枚数となる。領域(14e)
は釣銭払出時において釣銭パイプ(IA) 、 (IB
) 、 <IC) 、 <ID)及び(IE)別の払出
枚数を記憶するための領域であり、5通りの領域パイプ
に対応する5個のアドレスを釣銭パイプ別の払出枚数を
記憶するカウンタPS500、PSloo、PS50.
PSIO及びPPIに設定している。領域(14f>は
払出金額を記憶するためのカウンタPNK領域である。It is calculated by adding or subtracting the number of coins inserted and the number of coins paid out for each (ID). Further, the CPU (13) determines the number of coins held for each denomination described above by adding up the number of coins stored in the change pipes storing coins of the same denomination. At this time, if there is only one change pipe storing the denomination, the number of coins held in this pipe becomes the number of coins held for that denomination. Area (14e)
When paying change, the change pipe (IA), (IB
), <IC), <ID) and (IE) This is an area for storing the number of coins to be paid out for each type, and there are five addresses corresponding to the five area pipes.A counter PS500 that stores the number of coins to be paid out for each change pipe. , PSloo, PS50.
It is set to PSIO and PPI. The area (14f>) is a counter PNK area for storing the payout amount.
領域(14g)には釣銭パイプ(IE)からの釣銭の払
出しを表わすためのフラグであるソレノイドフラグ5O
LFがセットされる。領域(14h)は5個のアドレス
を含み、それぞれ般用バッファとして使用される。以下
、この説明において、E500とかPsi Oなどのカ
ウンタを特定する記号にダッシュを付けて表わした場合
に、この記号は当該カウンタと同じ機能を有している般
用バッフγを示すものとする。In the area (14g), there is a solenoid flag 5O which is a flag for indicating the payout of change from the change pipe (IE).
LF is set. The area (14h) includes five addresses, each of which is used as a general buffer. Hereinafter, in this explanation, when a symbol identifying a counter such as E500 or Psi O is indicated with a dash, this symbol indicates a general-purpose buffer γ having the same function as the counter in question.
つぎに第5図乃至第11図のフローチャートによってこ
の実施例の動作を説明する。第5図のフローチャートは
第1図で説明する金種別払出枚数決定装置(5)の機能
を達成している。ステップ5100はカウンタE500
.E100.E50゜EIO及びPNDATAの内容を
般用バッファに記憶させている。尚、このステップに到
達するまでにCPU(13)は金種別の硬貨保有枚数を
決定してカウンタE500.E100.E50及びEl
oにストアするとともに、投入金額から販売した商品の
販売価格を減算して釣銭額をカウンタPNDATAにス
トアしている。ステップ5101は釣銭額が500円以
上であるかをバッファPNDATA’の内容から判定す
る。釣銭額が500円以上であると、ステップ5102
において500円の硬貨保有枚数が1枚以上であるかを
バッファE500’の内容から判定する。1枚以上の5
00円硬貨を保有していると500円の釣銭の払出しが
可能であるために、ステップ8103において、バッフ
ァPNDATA’に記憶している釣銭額から500円を
減算し、カウンタP500の500円の釣銭払出枚数に
1を加算し、そしてバッファE500’にストアしてい
る500円の硬貨保有枚数から1を減算する。このよう
な500円硬貨の払出枚数決定動作は、バッファPND
ATA゛の金額が500円以上で且つバッファE500
゛の枚数が1枚以上のうちは繰り返されて、カウンタP
500の500円の釣銭払出枚数は1づつ加算されてい
く。Next, the operation of this embodiment will be explained with reference to flowcharts shown in FIGS. 5 to 11. The flowchart in FIG. 5 achieves the function of the payout number determining device (5) for each denomination explained in FIG. Step 5100 is counter E500
.. E100. E50° The contents of EIO and PNDATA are stored in the general buffer. By the time this step is reached, the CPU (13) determines the number of coins held for each denomination and sets the counter E500. E100. E50 and El
o, and also subtracts the selling price of the sold product from the input amount and stores the change amount in the counter PNDATA. In step 5101, it is determined from the contents of the buffer PNDATA' whether the amount of change is 500 yen or more. If the amount of change is 500 yen or more, step 5102
It is determined from the contents of the buffer E500' whether the number of 500 yen coins held is one or more. 1 or more 5
If you have a 00 yen coin, you can pay out 500 yen change, so in step 8103, 500 yen is subtracted from the change amount stored in the buffer PNDATA', and the 500 yen change is stored in the counter P500. 1 is added to the number of coins to be paid out, and 1 is subtracted from the number of 500 yen coins stored in the buffer E500'. This operation of determining the number of 500 yen coins to be paid out is performed using the buffer PND.
ATA amount is 500 yen or more and buffer E500
As long as the number of ゛ is 1 or more, it is repeated and the counter P
The number of change payouts for 500 yen is added one by one.
ステップ5101においてバッファPNDATA゛の釣
銭額が500円未満であることを検出し、またはステッ
プ5102においてバッファE500゛の硬貨保有枚数
が無しであることを検出すると、つぎのステップ510
4でバッファPNDATA’に記憶している釣銭額が1
00円以上であるかを判定する。釣銭額が100円以上
であると、ステップ5105においてバッファE100
゛が記憶している100円の硬貨保有枚数が1枚以上で
あるかを判定し、1枚以上の場合にステップ8106に
おいて、バッファPNDATA’に記憶している釣銭額
から100円を減算し、カウンタP100の100円の
釣銭払出枚数に1を加算し、そしてバッファE100’
に記憶している100円の硬貨保有枚数から1を減算す
る。前述の500円硬貨と同様に、このような10.0
円硬貨の払出枚数決定動作は、バッファPNDATA゛
の金額が100円以上で且つバッファE100′の枚数
が1枚以上のうちは繰り返されて、カウンタP100の
100円の釣銭払出枚数は1づつ加算されていく。If it is detected in step 5101 that the amount of change in buffer PNDATA' is less than 500 yen, or if it is detected in step 5102 that the number of coins held in buffer E500' is zero, the process proceeds to step 510.
At 4, the change amount stored in buffer PNDATA' is 1.
It is determined whether the amount is 00 yen or more. If the amount of change is 100 yen or more, the buffer E100 is stored in step 5105.
Determine whether the number of 100 yen coins stored in " is one or more, and if it is one or more, in step 8106, subtract 100 yen from the change amount stored in the buffer PNDATA', Add 1 to the number of 100 yen change paid out in counter P100, and
Subtract 1 from the number of 100 yen coins stored in . Similar to the 500 yen coin mentioned above, such a 10.0
The operation for determining the number of yen coins to be paid out is repeated as long as the amount in the buffer PNDATA' is 100 yen or more and the number in the buffer E100' is 1 or more, and the number of 100 yen coins to be paid out in the counter P100 is incremented by 1. To go.
100円の釣銭払出枚数の決定後、バッファPNDAT
A’の金額が50円以上で且つバッファE50゛の50
円の硬貨保有枚数が1枚以上のうちは、バッファPND
ATA’に記憶している釣銭額から50円を減算し、カ
ウンタP50の50円の釣銭払出枚数に1を加算し、そ
してバッファE50′に記憶している50円の硬貨保有
枚数から1を減算するステップ5109の動作を行なっ
て50円の釣銭払出枚数を決定する。After determining the number of 100 yen change payments, buffer PNDAT
A' amount is 50 yen or more and buffer E50゛50
Buffer PND while holding 1 or more yen coins
Subtract 50 yen from the change amount stored in ATA', add 1 to the number of 50 yen coins paid out in counter P50, and subtract 1 from the number of 50 yen coins held in buffer E50'. The operation of step 5109 is performed to determine the number of 50 yen change to be paid out.
同様に50円の釣銭払出枚数の決定後は、バッファPN
DATA’の金額が10円以上で且つバッファE10′
の10円の硬貨保有枚数が1枚以上のうちは、バッファ
PNDATA’に記憶している釣銭額から10円を減算
し、カウンタP1Oの10円の釣銭払出枚数に1を加算
し、そしてバッファE10゛に記憶している10円の硬
貨保有枚数から1を減算するステップ5112の動作を
行なって10円の釣銭払出枚数を決定する。Similarly, after determining the number of 50 yen change payouts, the buffer PN
The amount of DATA' is 10 yen or more and the buffer E10'
If the number of 10 yen coins held is one or more, 10 yen is subtracted from the change amount stored in buffer PNDATA', 1 is added to the number of 10 yen coins paid out in counter P1O, and buffer E10 is The operation of step 5112 is performed to subtract 1 from the number of 10 yen coins stored in 5112 to determine the number of 10 yen coins to be paid out.
このように第5図のフローチャートの処理において、C
PU(13)は上位硬貨優先により釣銭額を組立てて、
そのときの金種別の釣銭払出枚数をカウンタP500〜
PIOまでにそれぞれ記憶させている。In this way, in the process of the flowchart in FIG.
PU (13) assembles the change amount by giving priority to higher-ranking coins,
Counter P500 ~ the number of change payouts by denomination at that time
Each is memorized by PIO.
第6図及び第7図のフローチャートは第1図で説明する
釣銭パイプ別払出枚数決定装e(6〉の機能を達成して
いる。ステップ3200はカウンタES500.ES1
00.ES50.ESIO及びEPIの内容を般用バッ
ファに記憶させている。ステップ5201は釣銭に50
0円硬貨を払出すか否かを、カウンタP500に記憶し
ている500円の釣銭払出枚数が1枚以上であるかによ
って判定する。500円の釣銭払出枚数が1枚以上であ
ると、つぎにステップ3202においてバッファES5
00゛に記憶している500円の釣銭パイプ(ID)の
硬貨貯蔵枚数が1枚以上かを判定する。500円の硬貨
貯蔵枚数が1枚以上であると釣銭パイプ(ID)から5
00円硬貨を払出すことを決定して、そのための処理を
ステップS20・3で行なう。このステップ5203で
は、カウンタPS500に記憶している釣銭パイプ(I
D)の払出枚数に1を加算し、バッファESS 00’
に記憶している硬貨貯蔵枚数から1を減算し、そしてカ
ウンタP500に記憶している500円の釣銭払出枚数
から1を減算する。つぎのステップ5204ではカウン
タP500の内容がOであるかを検出することで、更に
500円を払出す必要があるかを判定する。カウンタP
500の内容が1以上で更に500円硬貨を払出す必要
がある場合に、つぎのステップ5205で釣銭パイプ(
IE〉の設定金種P1が500円であるかを判定する。The flowcharts in FIGS. 6 and 7 achieve the function of the payout number determination device e (6) for each change pipe explained in FIG.
00. ES50. The contents of ESIO and EPI are stored in a general buffer. Step 5201 is 50 in change.
Whether or not to pay out 0 yen coins is determined based on whether the number of 500 yen coins stored in the counter P500 to be paid out is one or more. If the number of 500 yen change payouts is one or more, then in step 3202, the buffer ES5
It is determined whether the number of coins stored in the 500 yen change pipe (ID) stored in 00゛ is one or more. If the number of 500 yen coins stored is 1 or more, 5 coins will be sent from the change pipe (ID).
It is decided to pay out a 00 yen coin, and the process for that purpose is performed in step S20.3. In this step 5203, the change pipe (I
Add 1 to the number of coins paid out in D) and set buffer ESS 00'
1 is subtracted from the number of stored coins stored in counter P500, and 1 is subtracted from the number of 500 yen change dispensed stored in counter P500. In the next step 5204, by detecting whether the content of the counter P500 is O, it is determined whether it is necessary to pay out an additional 500 yen. counter P
If the content of 500 is 1 or more and it is necessary to pay out another 500 yen coin, in the next step 5205, the change pipe (
IE> is determined whether the set denomination P1 is 500 yen.
このステップ5204と8205の判定が同時払出しの
判定であり、本例の場合は釣銭パイプ(IA) 。The determinations in steps 5204 and 8205 are the determinations of simultaneous payouts, and in this example, the change pipe (IA).
(IB) 、 (IC) 、 (ID)の何れかと釣銭
パイプ(IE)とからの同時払出しが可能である。した
がってステンブ5205で釣銭パイプ(IE)の設定金
種P1が500円であることを確認すると、ステップ5
206においてカウンタEPI’に記憶している釣銭パ
イプ(IE)についての硬貨貯蔵枚数が1枚以上である
かを判定する。釣銭パイプ(IE〉の硬貨貯蔵枚数が1
枚以上であると、釣銭パイプ(IE)からも500円硬
貨を払出すことを決定して、そのための処理をステップ
5207で行なう。このステップ3207では、カウン
タPPIに記憶している釣銭パイプ(IE)の払出枚数
に1を加算し、バッファEPI’に記憶している硬貨貯
蔵枚数から1を減算し、モしてカウンタP500に記憶
している500円の釣銭払出枚数から1を減算する。It is possible to pay out any of (IB), (IC), and (ID) at the same time from the change pipe (IE). Therefore, when it is confirmed in step 5205 that the set denomination P1 of the change pipe (IE) is 500 yen, step 5
In 206, it is determined whether the number of coins stored in the change pipe (IE) stored in the counter EPI' is one or more. The number of coins stored in the change pipe (IE) is 1
If the number is more than 500 yen coins, it is decided to pay out 500 yen coins from the change pipe (IE), and processing for this purpose is performed in step 5207. In this step 3207, 1 is added to the payout number of the change pipe (IE) stored in the counter PPI, 1 is subtracted from the number of stored coins stored in the buffer EPI', and the sum is stored in the counter P500. Subtract 1 from the number of 500 yen change that you have given out.
ここまでの処理により釣銭パイプ(ID)及び(IE)
から500円硬貨を同時に払出すことが決定されて、カ
ウンタP500に記憶している500円の釣銭払出枚数
からは2枚が減算され、バッファES500’、EPI
’に記憶している各釣銭パイプ(ID) 、 (IE)
の硬貨貯蔵枚数からそれぞれ1枚が減算きれ、そしてカ
ウンタPS500 、PPIに記憶している各釣銭パイ
プ(ID) 、 (IE)における硬貨の払出枚数にそ
れぞれ1枚を加算する。By the processing so far, the change pipe (ID) and (IE)
It is decided to pay out 500 yen coins at the same time, and 2 coins are subtracted from the number of 500 yen coins stored in the counter P500, and the buffer ES500' and EPI
'Each change pipe (ID) stored in ', (IE)
One coin is subtracted from the number of stored coins, and one coin is added to the number of coins paid out in each change pipe (ID) and (IE) stored in the counter PS500 and PPI.
しかるにステップ5202においてバッファEss o
o’に記憶している500円の釣銭パイプ(ID)の
硬貨貯蔵枚数が0であることを検出すると、つぎのステ
ップ5208で、カウンタP500に記憶している50
0円の釣銭払出枚数を釣銭パイプ(IE)の硬貨払出枚
数を記憶するカウンタPP1へ導入した後、ステップ5
209の処理となる。すなわち(P2O3>O)で且つ
(ES50o ’−o )であるということはカウンタ
P500に記憶している500円の釣銭払出枚数は釣銭
パイプ(IE)に収納されていることであり、この枚数
は釣銭パイプ(IE)の硬貨払出枚数としてカウンタP
PIで記憶される。ステップ5204においてカウンタ
P500に記憶している500円の釣銭払出枚数がOで
あることを検出すると、500円の釣銭パイプ(ID)
以外からは500円を払出す必要がないためにステップ
5209の処理となる。However, in step 5202, the buffer Ess o
When it is detected that the number of coins stored in the 500 yen change pipe (ID) stored in o' is 0, in the next step 5208, the 50 coins stored in the counter P500 are changed.
After introducing the number of coins paid out for 0 yen to the counter PP1 that stores the number of coins paid out from the change pipe (IE), step 5
The process is 209. In other words, (P2O3>O) and (ES50o'-o) means that the number of 500 yen change stored in counter P500 is stored in the change pipe (IE), and this number is Counter P as the number of coins dispensed from the change pipe (IE)
Stored in PI. When it is detected in step 5204 that the number of 500 yen change payouts stored in the counter P500 is O, the 500 yen change pipe (ID)
Otherwise, there is no need to pay out 500 yen, so the process goes to step 5209.
ステップ5205において釣銭パイプ(IE)が500
円硬貨用に設定されていないことを検出すると、残りの
500円硬貨は釣銭パイプ(ID)から払出きなければ
ならず同時払出しは不可能であるとしてステップ520
1の処理となる。ステップ8206においてバッファE
PI’に記憶している釣銭パイプ(IE)の硬貨貯蔵枚
数が0であることを検出すると、この場合も残りの50
0円硬貨は釣銭パイプ(ID)から払出さなければなら
ないためにステップ5201の処理となる。In step 5205, the change pipe (IE) is 500
If it is detected that the setting is not for yen coins, the remaining 500 yen coins must be dispensed from the change pipe (ID) and simultaneous dispensing is impossible, so step 520
This is the process of step 1. In step 8206, the buffer E
When it is detected that the number of coins stored in the change pipe (IE) stored in PI' is 0, the remaining 50 coins are
Since the 0 yen coin must be paid out from the change pipe (ID), the process of step 5201 is performed.
ステップ8201から5207までの一連の処理は、カ
ウンタP500に記憶している500円硬貨の釣銭払出
枚数を払出す釣銭パイプを決定するもので、釣銭パイプ
(ID)に500円硬貨が収納されていないことをステ
ップ5202で検出した場合を除いて、上記の一連の処
理は、カウンタP500の内容が0になるまで繰り返さ
れる。したがってカウンタP500に記憶している50
0円の釣銭払出枚数を釣銭パイプ(ID> 、 (IE
)に交互に割り振っていくのであるが、これにより釣銭
パイプ(IE)から払出す分が不足してくるのをステッ
プ5206で検出すると、残りの分は釣銭パイプ(ID
)に割り振るべくステップ5201からステップ820
6までの処理を繰り返して、残りの枚数をカウンタPS
500に加算する。また割り振りにより釣銭パイプ(I
D)から払出す分が先に不足してくるのをステップ52
02で検出すると、残りの分は釣銭パイプ(IE)に割
り振るべくステップ8208にて残りの枚数をカウンタ
PPIに加算する。The series of processing from steps 8201 to 5207 is to determine the change pipe that pays out the number of 500 yen coins stored in the counter P500, and if no 500 yen coins are stored in the change pipe (ID). Unless this is detected in step 5202, the above series of processing is repeated until the content of counter P500 becomes 0. Therefore, the 50 stored in the counter P500
The number of 0 yen change paid out is changed to the change pipe (ID>, (IE
), but if it is detected in step 5206 that the amount paid out from the change pipe (IE) is insufficient, the remaining amount is allocated to the change pipe (IE).
) from step 5201 to step 820
Repeat the process up to 6 and count the remaining number on the counter PS.
Add to 500. Also, depending on the allocation, the change pipe (I)
In step 52, the amount paid out from D) becomes insufficient first.
If detected at step 02, the remaining number is added to the counter PPI at step 8208 in order to allocate the remaining amount to the change pipe (IE).
500円硬貨の何れの釣銭パイプから払出すかを決定す
ると、次に100円硬貨について上記と同様な決定動作
を行なう。ステップ3209では、100円硬貨の払出
しが必要であるかを100円の釣銭払出枚数を記憶する
カウンタP100の内容にて判定する。ステップ321
0では、バッファES100’に記憶している100円
の釣銭パイプ(IC)の硬貨貯蔵枚数が1枚以上かを決
定する。ステップ5211では、カウンタPS100に
記憶している釣銭パイプ(IC)の払出枚数に1を加算
し、バッファES100’に記憶している硬貨貯蔵枚数
から1を減算し、そしてカウンタP100に記憶してい
る100円の釣銭払出枚数から1を減算する。ステップ
5212では、カウンタP100の内容がOであるかを
判定する。ステップ5213では、釣銭パイプ(IE)
が100円硬貨用に設定されているかを判定する。ステ
ップ5214では、カウンタEPI’に記憶している釣
銭パイプ(IE)についての硬貨貯蔵枚数が1枚以上で
あるかを判定する。ステップ5215では、カウンタP
PIに記憶している釣銭パイプ(IE)の払出枚数に1
を加算し、バッファEPI’に記憶している硬貨貯蔵枚
数から1を減算し、そしてカウンタP100に記憶して
いる100円の釣銭払出枚数から1を減算する。ステッ
プ5216は、カウンタP100に記憶している100
円の釣銭払出枚数を釣銭パイプ(IC)の硬貨払出枚数
を記憶するカウンタPPIに加算する。After determining which change pipe the 500 yen coin should be dispensed from, the same determination operation as above is performed for the 100 yen coin. In step 3209, it is determined whether it is necessary to pay out 100 yen coins based on the contents of the counter P100 that stores the number of 100 yen coins to be paid out. Step 321
0, it is determined whether the number of coins stored in the 100 yen change pipe (IC) stored in the buffer ES100' is one or more. In step 5211, 1 is added to the payout number of change pipe (IC) stored in the counter PS100, 1 is subtracted from the number of stored coins stored in the buffer ES100', and the result is stored in the counter P100. Subtract 1 from the number of 100 yen change payouts. In step 5212, it is determined whether the content of counter P100 is O. In step 5213, the change pipe (IE)
It is determined whether or not is set for 100 yen coins. In step 5214, it is determined whether the number of coins stored in the change pipe (IE) stored in the counter EPI' is one or more. In step 5215, the counter P
1 for the payout number of change pipe (IE) stored in PI
is added, 1 is subtracted from the number of stored coins stored in buffer EPI', and 1 is subtracted from the number of 100 yen change dispensed stored in counter P100. Step 5216 is 100 stored in counter P100.
The number of yen change paid out is added to the counter PPI that stores the number of coins paid out of the change pipe (IC).
このような100円硬貨についての処理では、釣銭パイ
プ(IE)が100円硬貨用に設定されている場合には
、ステップ5209からステップ5215を繰り返して
、カウンタP100に記憶している100円の釣銭払出
枚数を釣銭パイプ(tC) 。In such processing for 100 yen coins, if the change pipe (IE) is set for 100 yen coins, steps 5209 to 5215 are repeated to collect the 100 yen change stored in counter P100. Change the number of coins to be paid out (tC).
(IE)に交互に割り振って、各カウンタPS100
、PPIをそれぞれ1づつ加算していくが、これにより
釣銭パイプ(IE)より払出す分が不足してくるのをス
テップ5214で検出すると、残りの分は釣銭パイプ(
IC)に割り振るべくステップ5209からステップ5
214までの処理を繰り返して、残りの枚数をカウンタ
PS100に加算する。また割り振りにより釣銭パイプ
(IC)から払出す分が先に不足してくるのをステップ
5210で検出すると、残りの分は釣銭パイプ(IE)
に割り振るべくステップ8216にて残りの枚数をカウ
ンタPPIに加算する。(IE), each counter PS100
, PPI are added by 1 each, but when it is detected in step 5214 that the amount to be paid out from the change pipe (IE) is insufficient, the remaining amount is added to the change pipe (IE).
Step 5209 to Step 5 to allocate to IC)
The process up to 214 is repeated and the remaining number of sheets is added to the counter PS100. Also, if it is detected in step 5210 that the amount to be paid out from the change pipe (IC) becomes insufficient due to allocation, the remaining amount is transferred to the change pipe (IE).
In step 8216, the remaining number of sheets is added to the counter PPI in order to allocate the remaining sheets to the counter PPI.
釣銭パイプ(IE)が100円硬貨用に設定きれていな
い場合には、カウンタP100が記憶している100円
の釣銭払出枚数は全て釣銭パイプ(IC)から払出さな
ければならず同時払出しは不可能で、ステップ5209
からステップ5213までを繰り返して、カウンタPS
100に釣銭払出枚数を加算する。If the change pipe (IE) is not set for 100 yen coins, all the 100 yen coins stored in the counter P100 must be paid out from the change pipe (IC) and cannot be paid out at the same time. possible, step 5209
By repeating steps 5213 to 5213, the counter PS
Add the number of change payouts to 100.
また釣銭パイプ(IC)に100円硬貨が初めから収納
されておらずバッファES100’の内容が0であると
、ステップ5216でカウンタP100に記憶している
100円の釣銭払出枚数をそのままカウンタPPIに加
算する。Further, if the change pipe (IC) does not contain 100 yen coins from the beginning and the contents of the buffer ES100' are 0, the number of 100 yen coins to be paid out stored in the counter P100 in step 5216 is directly transferred to the counter PPI. to add.
このようにして100円硬貨を払出す釣銭パイプを決定
すると、次に50円について払出す釣銭パイプの決定動
作となる。ステップ5217では、50円硬貨の払出し
が必要であるかを50円の釣銭払出枚数を記憶するカウ
ンタP50の内容にて判定する。ステップ8218では
、バッファES50’に記憶している50円の釣銭パイ
プ(IB)の硬貨貯蔵枚数が1枚以上かを判定する。ス
テップ5219では、カウンタPS50に記憶している
釣銭パイプ(IB)の払出枚数に1を加算し、バッファ
ES50’に記憶している硬貨貯蔵枚数から1を減算し
、そしてカウンタP50に記憶している50円の釣銭払
出枚数から1を減算する。Once the change pipe for dispensing 100 yen coins is determined in this way, the next step is to determine the change pipe for dispensing 50 yen coins. In step 5217, it is determined whether it is necessary to pay out 50 yen coins based on the contents of the counter P50 that stores the number of 50 yen coins to be paid out. In step 8218, it is determined whether the number of coins stored in the 50 yen change pipe (IB) stored in the buffer ES50' is one or more. In step 5219, 1 is added to the payout number of the change pipe (IB) stored in the counter PS50, 1 is subtracted from the number of stored coins stored in the buffer ES50', and the result is stored in the counter P50. Subtract 1 from the number of 50 yen change payouts.
ステップ5220では、カウンタP50の内容が0であ
るかを判定する。ステップ5221では、釣銭パイプ(
IE)が50円硬貨用に設定されているかを判定する。In step 5220, it is determined whether the content of counter P50 is 0. In step 5221, the change pipe (
IE) is set for 50 yen coins.
ステップ5222では、カウンタEP1’に記憶してい
る釣銭パイプ(IE)についての硬貨貯蔵枚数が1枚以
上であるかを判定する。In step 5222, it is determined whether the number of coins stored in the change pipe (IE) stored in the counter EP1' is one or more.
ステップ5223では、カウンタPPIに記憶している
釣銭パイプ(IE)の払出枚数に1を加算し、バッファ
EPI’に記憶している硬貨貯蔵枚数から1を減算し、
モしてカウンタP50に記憶している50円の釣銭払出
枚数から1を減算する。ステップ5224は、カウンタ
P50に記憶している50円の釣銭払出枚数を釣銭パイ
プ(IE)の硬貨払出枚数を記憶するカウンタPPIに
加算する。In step 5223, 1 is added to the payout number of the change pipe (IE) stored in the counter PPI, and 1 is subtracted from the number of stored coins stored in the buffer EPI'.
Then, 1 is subtracted from the number of 50 yen change stored in the counter P50. Step 5224 adds the number of 50 yen coins to be paid out stored in the counter P50 to the counter PPI which stores the number of coins to be paid out to the change pipe (IE).
このような50円硬貨についての処理では、釣銭パイプ
(IE)が50円硬貨用に設定されている場合には、ス
テップ5217からステップ5223を繰り返して、カ
ウンタP50に記憶している50円の釣銭払出枚数を釣
銭パイプ(IB) 、 (IE)に交互に割り振って、
各カウンタPS50.PPIをそれぞれ1づつ加算して
いくが、これにより釣銭パイプ(IE)より払出す分が
不足してくるのをステップ5222で検出すると、残り
の分は釣銭パイプ(IB)に割り振るべくステップ52
17からステップ5222までの処理を繰り返して、残
りの枚数をカウンタPS50に加算する。また割り振り
により釣銭パイプ(IB)から払出す分が先に不足して
くるのをステップ8218で検出すると、残りの分は釣
銭パイプ(IE)に割り振るべくステップ5224にて
残りの枚数をカウンタPPIに加算する。In such processing for 50 yen coins, if the change pipe (IE) is set for 50 yen coins, steps 5217 to 5223 are repeated to collect the 50 yen change stored in counter P50. Allocate the number of coins to be paid out alternately to the change pipe (IB) and (IE),
Each counter PS50. The PPI is added by 1 for each PPI, but when it is detected in step 5222 that the amount to be paid out from the change pipe (IE) is insufficient, the remaining amount is allocated to the change pipe (IB) in step 52.
The processes from step 17 to step 5222 are repeated, and the remaining number of sheets is added to the counter PS50. Further, if it is detected in step 8218 that the amount to be paid out from the change pipe (IB) becomes insufficient due to allocation, the remaining amount is transferred to the counter PPI in step 5224 in order to allocate the remaining amount to the change pipe (IE). to add.
釣銭パイプ(IE)が50円硬貨用に設定されていない
場合には、カウンタP50が記憶している50円の釣銭
払出枚数は全て釣銭パイプ(IB)から払出きなければ
ならず同時払出しは不可能で、ステップ5217からス
テップ5221までを繰り返して、カウンタPS50に
釣銭払出枚数を加算する。If the change pipe (IE) is not set for 50 yen coins, all the 50 yen coins stored in the counter P50 must be paid out from the change pipe (IB), and simultaneous payouts are not possible. If possible, steps 5217 to 5221 are repeated to add the number of change payouts to the counter PS50.
また釣銭パイプ(IB)に100円硬貨が初めから収納
されておらずバッファES50’の内容が0であると、
ステップ5224でカウンタP50に記憶している50
円の釣銭払出枚数をそのままカウンタPPIに加算する
。Also, if a 100 yen coin is not stored in the change pipe (IB) from the beginning and the content of buffer ES50' is 0,
50 stored in counter P50 in step 5224
The number of yen change paid out is directly added to the counter PPI.
50円硬貨を払出す釣銭パイプを決定すると、つぎは1
0円硬貨を払出す釣銭パイプの決定動作となる。ステッ
プ5225では、10円硬貨の払出しが必要であるかを
10円の釣銭払出枚数を記憶するカウンタPIOの内容
にて判定する。ステップ5226では、バッファESI
O’に記憶している10円の釣銭パイプ(IA)の硬貨
貯蔵枚数が1枚以上かを判定する。ステップ5227で
は、カウンタPSIOに記憶している釣銭パイプ(IA
)の払出枚数に1を加算し、バッファESIO’に記憶
している硬貨貯蔵枚数から1を減算し、そしてカウンタ
PIOに記憶している10円の釣銭払出枚数から1を減
算する。ステップ8228では、カウンタPIOの内容
が0であるかを判定する。ステップ5229では、釣銭
パイプ(IE)が10円硬貨用に設定されているかを判
定する。ステップ5230では、カウンタEPI’に記
憶している釣銭パイプ(IE〉についての硬貨貯蔵枚数
が1枚以上であるかを判定する。ステップ5231では
、カウンタPPIに記憶している釣銭パイプ(IE)の
払出枚数に1を加算し、バッファEPI’に記憶してい
る硬貨貯蔵枚数から1を減算し、そしてカウンタP10
0に記憶している100円の釣銭払出枚数から1を減算
する。ステップ5232は、カウンタPIOに記憶して
いる10円の釣銭払出枚数を釣銭パイプ(IE)の硬貨
払出枚数を記憶するカウンタPPIに加算する。After determining the change pipe that dispenses the 50 yen coin, the next step is 1.
This is the determining operation of the change pipe that dispenses 0 yen coins. In step 5225, it is determined whether it is necessary to pay out 10 yen coins based on the contents of the counter PIO that stores the number of 10 yen coins to be paid out. In step 5226, the buffer ESI
It is determined whether the number of coins stored in the 10 yen change pipe (IA) stored in O' is one or more. In step 5227, the change pipe (IA
) is added to the number of coins to be paid out, 1 is subtracted from the number of stored coins stored in the buffer ESIO', and 1 is subtracted from the number of coins to be paid out of 10 yen stored in the counter PIO. In step 8228, it is determined whether the contents of counter PIO are 0. In step 5229, it is determined whether the change pipe (IE) is set for 10 yen coins. In step 5230, it is determined whether the number of coins stored in the change pipe (IE) stored in the counter EPI' is one or more.In step 5231, it is determined whether the number of coins stored in the change pipe (IE) stored in the counter PPI' Add 1 to the number of coins to be paid out, subtract 1 from the number of stored coins stored in the buffer EPI', and then register the counter P10.
Subtract 1 from the number of 100 yen change payouts stored in 0. Step 5232 adds the number of 10 yen coins to be paid out, which is stored in the counter PIO, to the counter PPI, which stores the number of coins to be paid out to the change pipe (IE).
このような10円硬貨についての処理では、釣銭パイプ
(IE)が10円硬貨用に設定されている場合には、ス
テップ5225からステップ5231を繰り返して、カ
ウンタPIOに記憶している10円の釣銭払出枚数を釣
銭パイプ(IA) 、 (IE)に交互に割り振って、
各カウンタPsi O、PPIをそれぞれ1づつ加算し
ていくが、これにより釣銭パイプ(IE)より払出す分
が不足してくるのをステップ5230で検出すると、残
りの分は釣銭パイプ(IA〉に割り振るべくステップ5
225からステップ5230までの処理を繰り返して、
残りの枚数をカウンタPSIOに加算する。また割り振
りにより釣銭パイプ<IA)から払出す分が先に不足し
てくるのをステップ5226で検出すると、残りの分は
釣銭パイプ(IE)に割り振るべくステップ5232に
て残りの枚数をカウンタPPIに加算する。In such processing for 10 yen coins, if the change pipe (IE) is set for 10 yen coins, steps 5225 to 5231 are repeated to collect the 10 yen change stored in the counter PIO. Allocate the number of coins to be paid out alternately to the change pipes (IA) and (IE),
The counters Psi O and PPI are each incremented by 1, but when it is detected in step 5230 that the amount paid out from the change pipe (IE) is insufficient, the remaining amount is transferred to the change pipe (IA). Step 5 to allocate
Repeating the process from step 225 to step 5230,
Add the remaining number to counter PSIO. Furthermore, if it is detected in step 5226 that the amount to be paid out from the change pipe <IA) becomes insufficient due to the allocation, the remaining amount is transferred to the counter PPI in step 5232 in order to allocate the remaining amount to the change pipe (IE). to add.
釣銭パイプ(IE〉が10円硬貨用に設定されていない
場合には、カウンタPIOが記憶している10円の釣銭
払出枚数は全て釣銭パイプ(IA)から払出さなければ
ならず同時払出しは不可能で、ステップ5225からス
テップ5229までを繰り返して、カウンタPSIOに
釣銭払出枚数を加算する。If the change pipe (IE) is not set for 10 yen coins, the number of 10 yen coins stored in the counter PIO must all be paid out from the change pipe (IA), and they cannot be paid out at the same time. If possible, steps 5225 to 5229 are repeated to add the number of change payouts to counter PSIO.
また釣銭パイプ(IA)に10円硬貨が初めから収納さ
れておらずバッファESIO’の内容がOであると、ス
テップ5232でカウンタPIOに記憶している10円
の釣銭払出枚数をそのままカウンタPPIに加算する。Furthermore, if the change pipe (IA) does not contain 10 yen coins from the beginning and the content of the buffer ESIO' is O, the number of 10 yen coins to be paid out stored in the counter PIO is directly transferred to the counter PPI in step 5232. to add.
第6図乃至第7図のフローチャートの処理において、C
PU(13eは釣銭パイプ(ID> 、 (IC) 、
(1B) 、 (LA)及び(IE)に対応するカウ
ンタPS500.PSloo、PS50.PSIO及び
PPIに対して、それぞれの硬貨払出枚数を記憶させて
いる。In the processing of the flowcharts of FIGS. 6 and 7, C
PU (13e is change pipe (ID>, (IC),
Counter PS500. corresponding to (1B), (LA) and (IE). PSloo, PS50. The number of coins to be paid out is stored in PSIO and PPI.
第8図乃至第12図のフローチャートは第1図で説明す
る釣銭払出制御装置(7)の機能を達成している。ステ
ップ5300では、10円硬貨の払出枚数を記憶してい
るカウンタPSIOの内容が1枚以上であるかを検出し
て、10円硬貨を払出すか否かを判定する。10円硬貨
を払出す場合に、ステップ5301でカウンタPNKに
10円を加算するとともに、ソレノイドフラグ5OLF
をクリアする。ステップ3302では、釣銭パイプ(I
E)の硬貨払出枚数を記憶しているカウンタPP1の内
容が1枚以上であるかを検出して、P1金種硬貨を払出
すか否かを判定する。P1金種硬貨を払出す場合に、ス
テップ5303でソレノイドフラグ5OLFをセットし
、ステップ3304でカウンタPNKにPj金種額を加
算する。これにより釣銭パイプ(IA) 、 (IE)
から同時払出しされるそれぞれの硬貨の合計額がカウン
タPNKに記憶される。ステップ8305では、選択袋
!(11)に対して10円の釣銭パイプ(IA)からの
払出しを指示するパイプ選択信号を与え、モータ(10
)に対しては駆動信号を与える。これにより釣銭パイプ
(IA)からの−枚の10円硬貨の払出し動作となるが
、このときソレノイドフラグ5OLFをセットしている
場合はソレノイド(9)に対しても駆動信号を与えて釣
銭パイプ(IA) 、 (IE)からの同時払出しなる
。このとき釣銭パイプ(IE)の金種P1が10円硬貨
であると同種硬貨の同時払出しとなり、別の金種である
と異種硬貨の同時払出しとなる。The flowcharts in FIGS. 8 to 12 accomplish the functions of the change dispensing control device (7) explained in FIG. In step 5300, it is detected whether the contents of the counter PSIO storing the number of 10 yen coins to be paid out is one or more, and it is determined whether 10 yen coins are to be paid out. When paying out a 10 yen coin, 10 yen is added to the counter PNK in step 5301, and the solenoid flag 5OLF is
Clear. In step 3302, the change pipe (I
E) It is detected whether the contents of the counter PP1 storing the number of coins to be paid out is one or more, and it is determined whether or not to pay out P1 denomination coins. When paying out P1 denomination coins, the solenoid flag 5OLF is set in step 5303, and the Pj denomination amount is added to the counter PNK in step 3304. This allows the change pipe (IA), (IE)
The total amount of each coin paid out at the same time is stored in the counter PNK. In step 8305, select bag! A pipe selection signal is given to (11) to instruct the payout of 10 yen change from the change pipe (IA), and the motor (10
) is given a drive signal. This causes the operation of dispensing -10 yen coins from the change pipe (IA), but if the solenoid flag 5OLF is set at this time, a drive signal is also given to the solenoid (9) and the change pipe (IA) is dispensed. This will be a simultaneous payout from IA) and (IE). At this time, if the denomination P1 of the change pipe (IE) is a 10 yen coin, coins of the same type will be paid out at the same time, and if it is of a different denomination, coins of different types will be paid out at the same time.
釣銭パイプ(IA)からの硬貨の払出しが終了すると、
ステップ8306において、カウンタPS10に記憶し
ている10円硬貨の払出枚数から1を減算し、カウンタ
ESIOに記憶している釣銭パイプ(IA)の硬貨貯蔵
枚数から1を減算し、そしてカウンタE1.0に記憶し
ている10円硬貨の硬貨保有枚数から1を減算する。つ
ぎのステップ5307ではソレノイドフラグ5OLFの
セットを確認し、このフラグがセットされていると、ス
テップ5308でカウンタPPIに記憶している釣銭パ
イプ(IE)の硬貨払出枚数から1を減算するとともに
、カウンタEPIに記憶している釣銭パイプ(IE)の
硬貨貯蔵枚数から1を減算する。ステップ3309にお
いては、釣銭パイプ(IE〉の設定金種の硬貨保有枚数
を記憶しているE500からEloまでの何れかのカウ
ンタ(X>の内容から1を減算する。すなわち釣銭パイ
プ〈IE〉の設定金種が10円であればカウンタEIO
から1を減算する。Once the coins have been dispensed from the change pipe (IA),
In step 8306, 1 is subtracted from the number of 10 yen coins to be paid out stored in the counter PS10, 1 is subtracted from the number of coins stored in the change pipe (IA) stored in the counter ESIO, and the counter E1.0 is subtracted from the number of coins stored in the change pipe (IA) stored in the counter ESIO. Subtract 1 from the number of 10 yen coins stored in . In the next step 5307, it is confirmed whether the solenoid flag 5OLF is set, and if this flag is set, in step 5308, 1 is subtracted from the number of coins dispensed from the change pipe (IE) stored in the counter PPI, and the counter Subtract 1 from the number of coins stored in the change pipe (IE) stored in the EPI. In step 3309, 1 is subtracted from the contents of any counter (X>) from E500 to Elo that stores the number of coins of the set denomination of the change pipe (IE). If the set denomination is 10 yen, counter EIO
Subtract 1 from.
そしてステップ5310では、カウンタPNDATAに
記憶している釣銭額からカウンタPNKに記憶している
払出金額を減算してステップ5300に進む。Then, in step 5310, the payout amount stored in counter PNK is subtracted from the change amount stored in counter PNDATA, and the process proceeds to step 5300.
ステップ5300からステップ5310までの処理は、
カウンタPSIOに記憶されている10円硬貨の払出枚
数がOとなるまで繰り返されて、この間カウンタPPI
に記憶されているP1金種の払出枚数が1以上のうちは
、同時払出しが行なわれる。そしてカウンタPSIOよ
り早くカウンタPPIがOとなると、釣銭パイプ(IA
)からの払出しは7a統されるが、カウンタPSIOが
早くOとなると、カウンタPPIには残りの硬貨保有枚
数を保持したままでステップ5311の処理となる。し
たがってつぎに他の金種の払出し動作となると、カウン
タPPIの記憶内容にしたがって釣銭パイプ(IE)か
らも払出しが行なわれる。The processing from step 5300 to step 5310 is
This process is repeated until the number of 10 yen coins stored in the counter PSIO reaches O, and during this time the counter PPI
As long as the number of payout coins of the P1 denomination stored in is 1 or more, simultaneous payout is performed. When the counter PPI reaches O earlier than the counter PSIO, the change pipe (IA
), but if the counter PSIO reaches O quickly, the process goes to step 5311 while the counter PPI holds the remaining number of coins. Therefore, when it comes to the next payout operation for other denominations, the payout is also made from the change pipe (IE) according to the contents stored in the counter PPI.
釣銭パイプ(IC)からの100円硬貨払出し動作にお
いて、ステップ5311では、100円硬貨の払出枚数
を記憶しているカウンタPS100の内容が1枚以上で
あるかを検出する。ステップ5312では、カラン゛り
PNKに10円を加算するとともに、ソレノイドフラグ
5OLFをクリアする。ステップ5313では、釣銭パ
イプ(IE)の硬貨払出枚数を記憶しているカウンタP
PIの内容が1枚以上であるかを検出する。ステップ5
314では、ソレノイドフラグ5OLFをセットする。In the operation of paying out 100 yen coins from the change pipe (IC), in step 5311, it is detected whether the contents of the counter PS100 storing the number of 100 yen coins to be paid out is one or more. In step 5312, 10 yen is added to the empty PNK, and the solenoid flag 5OLF is cleared. In step 5313, the counter P that stores the number of coins dispensed from the change pipe (IE)
Detect whether the content of PI is one or more. Step 5
At 314, the solenoid flag 5OLF is set.
ステップ5315ではカウンタPNKにP1金種額を加
算する。ステップ5316では、釣銭パイプ(IC〉か
らの硬貨払出しを制御し、更に同時払出しの場合には釣
銭パイプ(IE)からの硬貨払出しも制御する。ステッ
プ8317では、カウンタPS100に記憶している1
00円硬貨の払出枚数から1を減算し、カウンタES1
00に記憶している釣銭パイプ(IC)の硬貨貯蔵枚数
から1を減算し、そしてカウンタE100に記憶してい
る100円硬貨の保有枚数から1を減算する。ステップ
8318ではソレノイドフラグ5OLFのセットを確認
する。ステップ5319ではカウンタPP1に記憶して
いる釣銭パイプ(IE)の硬貨払出枚数から1を減算す
るとともに、カウンタEPIに記憶している釣銭パイプ
(IE)の硬貨貯蔵枚数から1を減算する。ステップ5
320では、釣銭パイプ(IE)の設定金種についての
硬貨保有枚数を記憶しているE500からEIOまでの
何れかのカウンタE (X)の内容から1を減算する。In step 5315, the P1 denomination amount is added to the counter PNK. In step 5316, coin dispensing from the change pipe (IC) is controlled, and in the case of simultaneous dispensing, coin dispensing from the change pipe (IE) is also controlled.In step 8317, the coin dispensing from the change pipe (IE) is controlled.
Subtract 1 from the number of 00 yen coins to be paid out and set the counter ES1.
1 is subtracted from the number of coins stored in the change pipe (IC) stored in 00, and 1 is subtracted from the number of 100 yen coins stored in counter E100. In step 8318, it is confirmed whether the solenoid flag 5OLF is set. In step 5319, 1 is subtracted from the number of coins paid out in the change pipe (IE) stored in the counter PP1, and 1 is subtracted from the number of coins stored in the change pipe (IE) stored in the counter EPI. Step 5
At 320, 1 is subtracted from the contents of any counter E (X) from E500 to EIO that stores the number of coins held for the set denomination of the change pipe (IE).
ステップ5321では、カウンタPNDATAに記憶し
ている釣銭額からカウンタPNKに記憶している払出金
額を減算する。In step 5321, the payout amount stored in the counter PNK is subtracted from the change amount stored in the counter PNDATA.
釣銭パイプ(ID)からの500円硬貨払出し動作にお
いて、ステップ5322では、500円硬貨の払出枚数
を記憶しているカウンタPS500の内容が1枚以上で
あるかを検出する。ステップ5323では、カウンタP
NKに500円を加算するとともに、ソレノイドフラグ
5OLFをクリアする。ステップ5324では、釣銭パ
イプ(IE〉の硬貨払出枚数を記憶しているカウンタP
P1の内容が1枚以上であるかを検出する。ステップ5
325では、ソレノイドフラグ5OLFをセットする。In the operation of paying out 500 yen coins from the change pipe (ID), in step 5322, it is detected whether the contents of the counter PS500 storing the number of 500 yen coins to be paid out is one or more. In step 5323, the counter P
Add 500 yen to NK and clear solenoid flag 5OLF. In step 5324, the counter P that stores the number of coins dispensed from the change pipe (IE)
It is detected whether the contents of P1 are one or more. Step 5
At 325, the solenoid flag 5OLF is set.
ステップ5326ではカウンタPNKにP1金種額を加
算する。ステップ5327では、釣銭パイプ(10)か
らの硬貨払出しを制御し、更に同時払出しの場合には釣
銭パイプ(IE)からの硬貨払出しも制御する。ステッ
プ5328では、カウンタPS500に記憶している5
00円硬貨の払出枚数から1を減算し、カウンタES5
00に記憶している釣銭パイプ(ID)の硬貨貯蔵枚数
から1を減算し、そしてカウンタE500に記憶してい
る500円硬貨の保有枚数から1を減算する。ステップ
5329ではソレノイドフラグ5OLFのセ・/トを確
認する。ステップ5330ではカウンタPP1に記憶し
ている釣銭パイプ(IE)の硬貨払出枚数から1を減算
するとともに、カウンタEPIに記憶している釣銭パイ
プ(IE)の硬貨貯蔵枚数から1を減算する。ステップ
5331では、釣銭パイプ(IE〉の設定金種について
の硬貨保有枚数を記憶しているE500からEIOまで
の何れかのカラン)g<x)の内容から1を減算する。In step 5326, the P1 denomination amount is added to the counter PNK. In step 5327, coin dispensing from the change pipe (10) is controlled, and in the case of simultaneous dispensing, coin dispensing from the change pipe (IE) is also controlled. In step 5328, the 5 stored in counter PS500 is
Subtract 1 from the number of 00 yen coins to be paid out and set the counter ES5.
1 is subtracted from the number of coins stored in the change pipe (ID) stored in 00, and 1 is subtracted from the number of 500 yen coins stored in counter E500. In step 5329, it is confirmed whether the solenoid flag 5OLF is set or set. In step 5330, 1 is subtracted from the number of coins paid out in the change pipe (IE) stored in the counter PP1, and 1 is subtracted from the number of coins stored in the change pipe (IE) stored in the counter EPI. In step 5331, 1 is subtracted from the contents of the change pipe (any callan from E500 to EIO storing the number of coins held for the set denomination of IE) g<x).
ステップ5332では、カウンタPNDATAに記憶し
ている釣銭額からカウンタPNKに記憶している払出金
額を減算する。In step 5332, the payout amount stored in the counter PNK is subtracted from the change amount stored in the counter PNDATA.
釣銭パイプ(IB)からの50円硬貨払出し動作におい
て、ステップ5333では、50円硬貨の払出枚数を記
憶しているカウンタPS50の内容が1枚以上であるか
を検出する。ステップ5334では、カウンタPNKに
50円を加算するとともに、ソレノイドフラグ80LF
をクリアする。ステップ5335では、釣銭パイプ(I
E)の硬貨払出枚数を記憶しているカウンタPPIの内
容が1枚以上であるかを検出する。ステップ8336で
は、ソレノイドフラグ5OLFをセットする。ステップ
5337ではカウンタPNKにP1金種額を加算する。In the operation of paying out 50 yen coins from the change pipe (IB), in step 5333, it is detected whether the contents of the counter PS50 storing the number of 50 yen coins to be paid out is one or more. In step 5334, 50 yen is added to the counter PNK, and the solenoid flag 80LF is
Clear. In step 5335, the change pipe (I
E) It is detected whether the contents of the counter PPI storing the number of coins to be paid out are one or more. In step 8336, solenoid flag 5OLF is set. In step 5337, the P1 denomination amount is added to the counter PNK.
ステップ8338では、釣銭パイプ(IB)からの硬貨
払出しを制御し、更に同時払出しの場合には釣銭パイプ
(IE)からの硬貨払出しも制御する。ステップ533
9では、カウンタPS50に記憶している50円硬貨の
払出枚数から1を減算し、カウンタES50に記憶して
いる釣銭パイプ(IB)の硬貨貯蔵枚数から1を減算し
、そしてカウンタE50に記憶している50円硬貨の保
有枚数から1を減算する。ステップ5340ではソレノ
イドフラグ5OLFのセットを確認する。ステップ53
41ではカウンタPPIに記憶している釣銭パイプ(I
E)の硬貨払出枚数から1を減算するとともに、カウン
タEPIに記憶している釣銭パイプ(IE)の硬貨貯蔵
枚数から1を減算する。ステップ5342では、釣銭パ
イプ(IE)の設定金種についての硬貨保有枚数を記憶
しているE500からEloまでの何れかのカウンタE
(X)の内容から1を減算する。ステップ5343で
は、カウンタPNDATAに記憶している釣銭額からカ
ウンタPNKに記憶している払出金額を減算する。In step 8338, coin dispensing from the change pipe (IB) is controlled, and in the case of simultaneous dispensing, coin dispensing from the change pipe (IE) is also controlled. Step 533
At step 9, 1 is subtracted from the number of 50 yen coins to be paid out stored in the counter PS50, 1 is subtracted from the number of coins stored in the change pipe (IB) stored in the counter ES50, and then stored in the counter E50. Subtract 1 from the number of 50 yen coins you have. In step 5340, it is confirmed whether the solenoid flag 5OLF is set. Step 53
41, the change pipe (I) stored in the counter PPI
1 is subtracted from the number of coins paid out in E), and 1 is subtracted from the number of coins stored in the change pipe (IE) stored in the counter EPI. In step 5342, any counter E from E500 to Elo that stores the number of coins held for the set denomination of the change pipe (IE) is selected.
Subtract 1 from the contents of (X). In step 5343, the payout amount stored in the counter PNK is subtracted from the change amount stored in the counter PNDATA.
このようにしてカウンタPSIO,PS100、PS5
00.PS50の値がそれぞれOとなるまで各釣銭パイ
プ(IA) 、 (IB) 、 (IC> 、 (ID
>から釣銭が払出され、このときカウンタPPIの値が
1以上のうちは釣銭パイプ(IE)とで同時払出しが行
なわれる。しかしながらカウンタPSIO乃至PS50
0が全て0となってもカウンタPPIの値が1以上であ
ると、釣銭パイプ(IE)からの払出しは続行しなけれ
ばならない。したがってステップ5344では、釣銭パ
イプ(IE〉の硬貨払出枚数を記憶しているカウンタP
PIの内容が1枚以上であるかを検出し、1枚以上の場
合には釣銭パイプ(IE)からの単独払出しが必要であ
るとしてつぎのステップ5345に進む。ステップ53
45ではカウンタPNKにP1金種額を記憶する。ステ
ップ8346では、ソレノイド(9)に駆動信号を与え
て釣銭パイプ(IE)からの釣銭払出しを制御する。ス
テップ5347では、カウンタPPIに記憶している釣
銭パイプ(IE)の硬貨払出枚数から1を減算するとと
もに、カウンタEPIに記憶している釣銭パイプ(IE
)の硬貨貯蔵枚数から1を減算する。ステップ8348
では、釣銭パイプ(IE)の設定金種についての硬貨保
有枚数を記憶しているE500からEIOまでの何れか
のカウンタE(X)の内容から1を減算する。ステップ
5349では、カウンタPNDATAに記憶している釣
銭額からカウンタPNKに記憶しているP1金種額を減
算してステップ5344に進む。In this way, the counters PSIO, PS100, PS5
00. Each change pipe (IA), (IB), (IC>, (ID
Change is paid out from >, and at this time, as long as the value of the counter PPI is 1 or more, change is paid out simultaneously with the change pipe (IE). However, the counter PSIO to PS50
Even if all 0s become 0, if the value of the counter PPI is 1 or more, the payout from the change pipe (IE) must continue. Therefore, in step 5344, the counter P that stores the number of coins dispensed from the change pipe (IE)
It is detected whether the content of the PI is one or more coins, and if it is one or more coins, it is determined that individual payout from the change pipe (IE) is required and the process proceeds to the next step 5345. Step 53
At step 45, the P1 denomination amount is stored in the counter PNK. In step 8346, a drive signal is applied to the solenoid (9) to control the payout of change from the change pipe (IE). In step 5347, 1 is subtracted from the number of coins dispensed from the change pipe (IE) stored in the counter PPI, and 1 is subtracted from the coin payout number of the change pipe (IE) stored in the counter EPI.
) Subtract 1 from the number of stored coins. Step 8348
Now, 1 is subtracted from the contents of any counter E(X) from E500 to EIO that stores the number of coins held for the set denomination of the change pipe (IE). In step 5349, the P1 denomination amount stored in counter PNK is subtracted from the change amount stored in counter PNDATA, and the process proceeds to step 5344.
ステップ5344では再びカウンタPPIの値が1以上
であるかを判定し、カウンタPP1の内容がOになるま
でステップ5344乃至ステップ5349の処理を繰り
返して釣銭パイプ(IE)から釣銭を払出していく。In step 5344, it is determined again whether the value of the counter PPI is 1 or more, and the processing of steps 5344 to 5349 is repeated until the content of the counter PP1 becomes O, and change is paid out from the change pipe (IE).
そしてカウンタPSIO乃至PS500及びカウンタP
PIが全てOとなったときに釣銭払出動作を終了する。And counters PSIO to PS500 and counter P
The change dispensing operation ends when all PIs become O.
(ト)発明の効果
本発明に依ると、釣銭パイプ別の釣銭払出枚数を前もっ
て検出するために、同時払出しが可能な釣銭パイプにそ
れぞれ収納する硬貨種類の一致不一致の有無を問わず、
何れの釣銭パイプからも釣銭払出しの必要が生じた場合
には、無条件で同時払出しを行なうことができる。しか
もこのとき上位硬貨優先の原則を崩すことがないために
、釣銭を最少枚数の硬貨にで、同時払出による短時間で
払出すことができる。更に金種別の釣銭払出枚数から釣
銭パイプ別の釣銭払出枚数を決定するために、同一金種
の硬貨が複数の釣銭パイプに跨って収納されている場合
に両方から均等に払出すことができる。(G) Effects of the Invention According to the present invention, in order to detect in advance the number of change payouts for each change pipe, regardless of whether or not the types of coins stored in the change pipes that can be paid out at the same time match or do not match,
When it becomes necessary to pay out change from any of the change pipes, it is possible to pay out change at the same time without any conditions. Moreover, since the principle of giving priority to higher-order coins is not violated at this time, change can be made into the minimum number of coins and can be paid out in a short time by simultaneous payout. Furthermore, since the number of change payouts for each change pipe is determined from the number of change payouts for each denomination, when coins of the same denomination are stored across a plurality of change pipes, they can be paid out equally from both.
第1図は本発明による釣銭演算装置の構成図、第2図は
釣銭払出機構の平面図、第3図は制御の一実施例の回路
構成をブロックにて示す図、第4図はRAMの記憶フォ
ーマットを模式的に示す図、第5図乃至第12図は動作
を説明するためのフローチャートである。
(IA> 、 (IB> 、 (IC) 、 (ID>
、 (IE)・・・釣銭パイプ、(2)・・・釣銭演
算装置、 (3)・・・パイプ別釣銭枚数検出装置、
(5)・・・金種別払出枚数決定装置、 (6)・・・
釣銭パイプ別払出枚数決定装置、 (7)・・・釣銭払
出制御装置。Fig. 1 is a block diagram of a change calculation device according to the present invention, Fig. 2 is a plan view of a change dispensing mechanism, Fig. 3 is a block diagram showing a circuit structure of an embodiment of control, and Fig. 4 is a diagram of a RAM. The diagrams schematically showing the storage format and FIGS. 5 to 12 are flowcharts for explaining the operation. (IA>, (IB>, (IC), (ID>)
, (IE)...Change pipe, (2)...Change calculation device, (3)...Change number detection device for each pipe,
(5)... Device for determining the number of coins to be paid out by denomination, (6)...
Change payout number determining device for each change pipe, (7) Change payout control device.
Claims (1)
個の釣銭パイプは他の全ての釣銭パイプ或いは一部の釣
銭パイプと同時に硬貨を払出すことができるようにした
釣銭払出装置において、釣銭額を演算する釣銭演算装置
と、前記釣銭パイプ別に投入硬貨と払出し硬貨を加減算
することで各釣銭パイプ内の硬貨貯蔵枚数を検出するパ
イプ別釣銭枚数検出装置と、前記釣銭パイプの各硬貨貯
蔵枚数から金種別の硬貨保有枚数を検出する金種別枚数
検出装置と、前記釣銭額と金種別の前記硬貨保有枚数と
により金種別の釣銭払出枚数を演算する金種別払出枚数
決定装置と、この金種別の釣銭払出枚数と前記釣銭パイ
プの各硬貨貯蔵枚数とに基づき該釣銭パイプ毎の釣銭払
出枚数を演算する釣銭パイプ別払出枚数決定装置と、こ
の釣銭パイプ別の釣銭払出枚数にて各釣銭パイプからの
釣銭払出しを制御するもので、同時払出しが可能な釣銭
パイプどうしの何れにも該釣銭払出枚数が設定されてい
ると、これら釣銭パイプの同時払出しを制御する釣銭払
出制御装置とから成る自動販売機の釣銭払出装置。1. In a change dispensing device equipped with a plurality of change pipes, at least one of which can dispense coins at the same time as all other change pipes or some of the change pipes, a change calculation device that calculates the change amount, a change number detection device for each pipe that detects the number of coins stored in each change pipe by adding and subtracting an input coin and a payout coin for each change pipe, and a change number detection device for each pipe that detects the number of coins stored in each change pipe. a denomination-specific number detection device for detecting the number of coins held for each denomination; a denomination-based payout number determining device for calculating the change payout number for each denomination based on the amount of change and the number of coins held for each denomination; a payout number determination device for each change pipe that calculates the number of change payouts for each change pipe based on the number of change payouts and the number of coins stored in each change pipe; A vending machine that controls change dispensing, and includes a change dispensing control device that controls the simultaneous dispensing of change pipes when the change dispensing number is set for each of the change pipes that can dispensing the change at the same time. change dispensing device.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62279604A JPH01120697A (en) | 1987-11-05 | 1987-11-05 | Change dispenser for vending machine |
| KR1019880014635A KR920000554B1 (en) | 1987-11-05 | 1988-11-05 | Vending machine changer |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62279604A JPH01120697A (en) | 1987-11-05 | 1987-11-05 | Change dispenser for vending machine |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01120697A true JPH01120697A (en) | 1989-05-12 |
Family
ID=17613301
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62279604A Pending JPH01120697A (en) | 1987-11-05 | 1987-11-05 | Change dispenser for vending machine |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JPH01120697A (en) |
| KR (1) | KR920000554B1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01177191A (en) * | 1988-01-06 | 1989-07-13 | Fuji Electric Co Ltd | Coin paying device |
| ES2149121A1 (en) * | 1996-09-20 | 2000-10-16 | Mars Inc | Adaptable coin mechanism |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR950006806Y1 (en) * | 1992-06-15 | 1995-08-21 | 박경팔 | Frequency discriminator of input signal |
| CA2245118C (en) * | 1998-08-14 | 2003-09-23 | Ibm Canada Limited-Ibm Canada Limitee | Timed multi-function digital interface |
-
1987
- 1987-11-05 JP JP62279604A patent/JPH01120697A/en active Pending
-
1988
- 1988-11-05 KR KR1019880014635A patent/KR920000554B1/en not_active Expired
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01177191A (en) * | 1988-01-06 | 1989-07-13 | Fuji Electric Co Ltd | Coin paying device |
| ES2149121A1 (en) * | 1996-09-20 | 2000-10-16 | Mars Inc | Adaptable coin mechanism |
Also Published As
| Publication number | Publication date |
|---|---|
| KR920000554B1 (en) | 1992-01-16 |
| KR890008733A (en) | 1989-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6706078B2 (en) | Money management device, money processing system and money processing method | |
| EP0653085B1 (en) | Method and apparatus for controlling the dispensing of money | |
| JPH07509579A (en) | Money handling equipment | |
| JP6467844B2 (en) | Coin processing equipment | |
| EP1050857B1 (en) | Currency handling apparatus | |
| CA2170471C (en) | Global coin payout method and control apparatus | |
| US6356805B1 (en) | Method and apparatus for controlling the dispensing of money | |
| US5595277A (en) | Coin payout method and control means | |
| JPS5822789B2 (en) | Vending machine control device | |
| US5577957A (en) | Coin payout method and control apparatus | |
| US6050386A (en) | Inspection method in a bill processing machine | |
| JPH10198835A (en) | Coin storage and payment device | |
| JPH0325833B2 (en) | ||
| CN106688021A (en) | Coin processing device | |
| EP3751525A1 (en) | Coin withdrawal program, coin withdrawal method, and deposit and withdrawal device | |
| JP6203617B2 (en) | Coin processing equipment | |
| EP4425455A1 (en) | Control method for coin handling apparatus and coin handling apparatus | |
| JP4016820B2 (en) | vending machine | |
| JPH09161138A (en) | vending machine | |
| JPH07121745A (en) | Coin discharging device | |
| JP2024139195A (en) | Money deposit device, money handling system, and money handling method | |
| JPH06259636A (en) | Coin storage controller | |
| JPH09245226A (en) | Money handling equipment | |
| JP2025150307A (en) | Cash processing device and cash processing method | |
| JPH0243698A (en) | Coin processor |