JPS58171169A - Method for receiving coin of public telephone set - Google Patents

Method for receiving coin of public telephone set

Info

Publication number
JPS58171169A
JPS58171169A JP5406182A JP5406182A JPS58171169A JP S58171169 A JPS58171169 A JP S58171169A JP 5406182 A JP5406182 A JP 5406182A JP 5406182 A JP5406182 A JP 5406182A JP S58171169 A JPS58171169 A JP S58171169A
Authority
JP
Japan
Prior art keywords
coin
coins
storage
call
lowest
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
JP5406182A
Other languages
Japanese (ja)
Other versions
JPH0137904B2 (en
Inventor
Yoshiaki Takeda
竹田 義昭
Tetsuo Fukuda
哲夫 福田
Toshiaki Hayasaka
早坂 年昭
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.)
Tamura Electric Works Ltd
Original Assignee
Tamura Electric Works 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 Tamura Electric Works Ltd filed Critical Tamura Electric Works Ltd
Priority to JP5406182A priority Critical patent/JPS58171169A/en
Publication of JPS58171169A publication Critical patent/JPS58171169A/en
Publication of JPH0137904B2 publication Critical patent/JPH0137904B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M17/00Prepayment of wireline communication systems, wireless communication systems or telephone systems
    • H04M17/02Coin-freed or check-freed systems, e.g. mobile- or card-operated phones, public telephones or booths
    • H04M17/023Circuit arrangements

Abstract

PURPOSE:To remove the limitation of the duration of a call, by receiving a coin accumulated on the lowermost position of a route during the call when the unreceived charge of the call exceeds the amount of said coin and the route is filled with coins, and calculating exactly the total charge for the call at the end of the call. CONSTITUTION:When a transmitter/receiver of a telephone circuit 10 is unhooked, a control part 20 is actuated and the operation is started by power supply from a power supply part 15. A coin processing part 30 discriminates the kinds of injected coins and that the injected coins are real one or nor, accumulates the injected coins on one accumulation route and stores the kinds of coins and the injected order of the coins in the RAM 24. After starting the call, the CPU 22 counts up charging signals from a station and stores the counted value in the RAM 24 as an unreceived charge. When the route is filled with coins and the unreceived charge exceeds the amount of the coin located on the lowermost position of the route, the CPU 22 designates the reception of the lowermost coin to the coin processing part 30 to enable the sucdeeding coin to be injected. After completing the call, the CPU 20 selects the kinds of accumulated coins so that the user's loss of change is minimized and designates the reception of the coins to the coin processing part 30.

Description

【発明の詳細な説明】 本発明は、1つの蓄積軌道に複数種の硬貨を投入順に蓄
積するようにした公衆電話機における硬貨収納方式に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a coin storage system in a public telephone that stores a plurality of types of coins in one storage track in the order in which they are inserted.

従来1つの蓄積軌道を有する公衆電話機においては、課
金信号の到来に応じて最下位硬貨から順次収納する方法
が採られていたため、例えば低額貨、高額貨等、種類の
異なる硬貨を併用する場合、低額貨優先、高額貨優先も
しくは利用者の釣銭の被害を最小にする最小被害方式環
、任意の収納方式を採用することができなかつ友。
Conventionally, public telephones with one storage track have adopted a method of storing coins sequentially starting from the lowest coin according to the arrival of a billing signal. Therefore, when using different types of coins together, such as low denomination coins and high denomination coins, for example, Priority is given to low denomination coins, high denomination coins, or a minimum damage method that minimizes the damage to the user's change, and it is not possible to adopt an arbitrary storage method.

これを解決する手段として、通話中は硬貨の収納を行な
わず、通話終了後に各種収納方式により未収納通話料金
を精算する蓄積硬貨の組合せを選定し、その選定結果に
従って蓄積硬貨を順次収納と返却とに振シ分ける方法が
ある。
As a means to solve this problem, coins are not stored during a call, and after the call ends, a combination of stored coins is selected to settle uncollected call charges using various storage methods, and the stored coins are sequentially stored and returned according to the selection results. There is a way to sort it out.

しかしながら、このような方法による場合、他方で、蓄
積軌道の蓄積容量を越える通話は行なえず、蓄積容量に
自ら限度がある以上、通話時間が限定されてしまうとい
う欠点が生じる。
However, when using such a method, on the other hand, it is impossible to make a call that exceeds the storage capacity of the storage track, and since the storage capacity has its own limit, there is a drawback that the call time is limited.

本発明は、このような状況に鑑みてなされたものであシ
、その目的は、1蓄積軌道に複数種の硬貨を混在して蓄
積する方式をとシながら任意の収納方式を採用し得、し
かも通話時間に制約を与えない公衆電話機の硬貨収納方
式を提供することにある。
The present invention has been made in view of the above situation, and its purpose is to adopt any storage method while storing a mixture of multiple types of coins in one storage track. Moreover, it is an object of the present invention to provide a coin storage system for public telephones that does not impose restrictions on call time.

このようが目的を達成するために、本発明は、硬貨の投
入を検出する硬貨検出手段と、最下位蓄積硬貨の種類を
判別する手段とを備え、通話継続中は蓄積軌道が満杯で
あシかつ未収納通話料金が最下位蓄積硬貨の硬貨額よシ
大きい時に硬貨の追加投入があった場合に、最下位硬貨
を収納するようにしたものである。また、投入硬貨を蓄
積軌道と返却通路に振シ分ける蓄積レバーを備え、正貨
の追加投入に呼応して上述したような条件の下に最下位
硬貨が収納された場合、および蓄積軌道が満杯でない時
に正貨の追加投入があった場合に、上記蓄積レバーを動
作させて当該正貨の蓄積を許可するようにしたものであ
る。以下、実施例を用いて本発明の詳細な説明する。
In order to achieve this object, the present invention is provided with a coin detection means for detecting the insertion of a coin and a means for determining the type of the lowest accumulated coin. In addition, when additional coins are inserted when the unaccumulated call charge is larger than the coin amount of the lowest accumulated coin, the lowest accumulated coin is stored. In addition, it is equipped with a storage lever that distributes the input coins into the storage track and the return path, and when the lowest coin is stored under the conditions described above in response to additional coin insertion, the storage track is full. If additional specie coins are inserted at a time when the coins are not in use, the accumulation lever is operated to permit accumulation of the specie coins. Hereinafter, the present invention will be explained in detail using Examples.

構成説明 第1図は、本発明を局電源方式の公衆電話機に適用した
場合の一実施例を示す回路構成図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a circuit diagram showing an embodiment of the present invention applied to a central power supply type public telephone.

本実施例は、送受器を外すこと(オフフック)によシ硬
貨の投入を待たずに交換機との間に回線が閉成され、ま
た一定の通話が行なわれた後にその間の通話料金に相当
する硬貨を収納する、いわゆる先ループ・後収納方式を
採用し、利用者の釣銭の被害が最も少ない最小被害方式
をとった例であシ、全体の構成は、大別して通常の電話
機回路部10、この電話機回路部10を通じて図示しな
い交換機から課金信号を受けて硬貨の収納・返却等を制
御する制御部20.および制御部20からの指令に基い
て実際に硬貨を検知選別し、図示しない金庫へ収納し、
あるいは返却を行なう硬貨処理部30からなる。また、
この他に、フックスイッチ40、リレー制御回路50、
表示回路6o1および3×4マトリクス構成のテンキー
形式のキーボード70を有している。
In this embodiment, the line with the exchange is established by disconnecting the handset (off-hook) without waiting for coins to be inserted, and after a certain number of calls have been made, the telephone charges for that period are calculated. This is an example in which a so-called front loop/rear storage method is adopted to store coins, and a minimum damage method is adopted that causes the least damage to the user's change.The overall configuration can be roughly divided into a normal telephone circuit section 10, A control section 20 receives a billing signal from an exchange (not shown) through the telephone circuit section 10 and controls coin storage, return, etc. and actually detects and sorts coins based on instructions from the control unit 20, stores them in a safe (not shown),
Alternatively, it consists of a coin processing section 30 that performs returns. Also,
In addition, hook switch 40, relay control circuit 50,
It has a display circuit 6o1 and a numeric keypad keyboard 70 having a 3×4 matrix configuration.

上記電話機回路10は、局線端子Ll、L2により、局
線を介して図示しない交換機に接続されている。そして
、局線端子L1.L2には、着信があることを報知する
ベル回路11、交換機からの課金信号を検出する課金信
号受信回路12、ダイオードブリッジ回路13、リレー
接点gBzダイヤルパルス送出および強制切断回路14
、電源回路15並びに通話回路16が順次配列接続され
ている。
The telephone circuit 10 is connected to an exchange (not shown) via a central office line through central office line terminals Ll and L2. Then, the station line terminal L1. L2 includes a bell circuit 11 that notifies that there is an incoming call, a billing signal receiving circuit 12 that detects a billing signal from the exchange, a diode bridge circuit 13, and a relay contact gBz dial pulse sending and forced disconnection circuit 14.
, a power supply circuit 15, and a communication circuit 16 are sequentially arranged and connected.

上記構成において、送受器を置いたオンフック状態で杜
、接点gsは図示のような状態にあるが、この状態でオ
フフックすると、フックスイッチ40がオンし、リレー
制御回路50が働いて、接点gsは図示とは反対側に切
換わる(以下、これを動作もしくはオンするといい、図
示の状態に戻ることを復1日もしくはオフするという)
。これによシ、局線端子L1.L2に対してダイヤルパ
ルス送出および強制切断回路14および通話回路16を
含む直流ループが閉成される。
In the above configuration, in the on-hook state with the handset placed, the contact gs is in the state shown in the figure, but if you go off-hook in this state, the hook switch 40 is turned on, the relay control circuit 50 is activated, and the contact gs is in the state shown in the figure. Switching to the opposite side from that shown in the diagram (hereinafter referred to as operating or turning on, and returning to the state shown in the diagram is referred to as turning on or off)
. Accordingly, the central line terminal L1. A DC loop including dial pulse sending and forced disconnection circuit 14 and speech circuit 16 is closed for L2.

ここで、上記回路14には、直流ループに対して直列に
トランジスタが挿入されておシ、常時はオンとなってい
るが、制御部20からのダイヤル信号に応じてオン・オ
フを繰返し、これによシ交換機側へダイヤルパルスを送
出して相手加入者番号を通知すると共に、同じく制御部
20から連続的なオフ信号を受けることによシ、連続的
にオフ状態となって、接点gsを動作状態としたまま上
記直流ループを強制的に切断状態とすることができる。
Here, a transistor is inserted in the circuit 14 in series with the DC loop, and although it is always on, it is repeatedly turned on and off in response to a dial signal from the control section 20. In addition to transmitting a dial pulse to the switching equipment side to notify the other party's subscriber number, the switch also receives continuous off signals from the control unit 20, so that it is continuously turned off and the contact gs is turned off. The DC loop can be forcibly cut off while remaining in the operating state.

このようにリレー接点g8を介して直流ループの閉成・
開放を有力うようにしたのは、この公衆電話機が後収納
方式をとっているため、フックスイッチ40をオフした
稜も、未収納の通話料金を精算するために電源を必要と
するからである。即ち、回路13によシ直流ループを強
制切断して交換機に通話の終了を報知し、復旧させた後
、再びオン状態とし、交換機からの電流によシ充電され
る電源回路15の電源を用いて精算処理を行なうことが
できる。
In this way, the DC loop is closed and closed via relay contact g8.
The reason why the release was made so effective is that since this public phone uses a retractable system, even when the hook switch 40 is turned off, a power supply is required to settle uncollected call charges. . That is, the circuit 13 forcibly disconnects the DC loop, notifies the exchange that the call has ended, and after recovery, turns on again, using the power source of the power supply circuit 15, which is charged by the current from the exchange. You can perform payment processing using

なお、前記ダイヤルパルス送出中は、通話回路16は、
制御部20から入力されるダイヤルシャント信号によシ
短絡状態となるため、発呼者にダイヤルパルスによる雑
音は与えられないようになっている。
Note that while the dial pulse is being sent out, the telephone call circuit 16:
Since the dial shunt signal inputted from the control section 20 creates a short circuit state, the calling party is not affected by noise caused by the dial pulse.

また、電源回路15は、ループ電流によって生ずる定電
圧ダイオードZD1.ZD2のツェナー電圧によシ逆流
阻止用ダイオードDI 、D2 、D3 、D4 、D
5を介してコンデンサCI 、C2、C3を各個に充電
し、これらの端子電圧を電源電圧VEE、VMG、VD
Dとして制御部20および硬貨処理部30に供給するも
ので、コンデンサC1はオフフック時のみ充電されるが
、コンデンサC2,C3はオンフック時にも充電される
ようにしてあυ、これにより制御部20の後述する可変
メモリ240バツクアツプ用として常時必要な電源電圧
VERおよび硬貨の処理に際して電磁石を動作させるた
めに消耗が激しい電源々お、ダイオードブリッジ回路1
3は、局線端子Ll、L2間に印加される交換機からの
直流電圧の極性にかかわらず、回路15および通話回路
16に加わる電圧の極性を一定とするためのものである
Further, the power supply circuit 15 includes a constant voltage diode ZD1. Backflow blocking diodes DI, D2, D3, D4, D due to the Zener voltage of ZD2
5, capacitors CI, C2, and C3 are individually charged, and their terminal voltages are set to the power supply voltages VEE, VMG, and VD.
The capacitor C1 is charged only when off-hook, but the capacitors C2 and C3 are charged even when on-hook. The power supply voltage VER, which is always necessary for backing up the variable memory 240 (described later), the power supply, which is heavily consumed to operate the electromagnet when processing coins, and the diode bridge circuit 1.
3 is for keeping the polarity of the voltage applied to the circuit 15 and the communication circuit 16 constant regardless of the polarity of the DC voltage from the exchange applied between the office line terminals Ll and L2.

制御部20は、周知の入出力ボート21.中央処理装置
(以下CPUという)22.固定メモリ(以下ROMと
いう)23.可変メモリ(以下RAMという)24に加
え、更に、タイミング回路25および可変条件設定回路
26を備えている。このタイミング回路25は、25m
5周期のパルスを発生する発振回路から構成され、後述
するようにCPU22に対し、メインプログラムの処理
に対して、25m1Bで割込み処理を行なわせるだめの
割込み信号を与えるためのものである。また、可変条件
設定回路26は、例えば市内通話における単位料金当り
の通話時間や、1課金当シの単位通話料金、即ちタリフ
を任意に設定するためのもので、ディジタルスイッチ等
によシ構成される。
The control unit 20 includes a well-known input/output port 21. Central processing unit (hereinafter referred to as CPU) 22. Fixed memory (hereinafter referred to as ROM)23. In addition to a variable memory (hereinafter referred to as RAM) 24, a timing circuit 25 and a variable condition setting circuit 26 are further provided. This timing circuit 25 has a length of 25 m.
It is composed of an oscillation circuit that generates pulses of 5 cycles, and is used to give an interrupt signal to the CPU 22 to interrupt the main program processing at 25 m1B, as will be described later. Further, the variable condition setting circuit 26 is used to arbitrarily set, for example, the call time per unit charge in a local call or the unit call charge per charge, that is, the tariff, and is configured by a digital switch or the like. be done.

上記構成において、オフフックによシフツクスイッチ4
0がオンと々つた場合、リレー制御回路50によって接
点gsが動作され、直流ループが閉成されて電源回路1
5のコンデンサC1が充電される。この結果、CPU2
2 K電源電圧VDDが供給され、CPU22は、予め
ROM23に格納された処理プログラムに従って、RA
M24に対し必要なデータの書込み、読出しを行ないな
がら所定の制御動作を実行する。この動作については後
にフローチャートを用いて詳細に説明する。
In the above configuration, the off-hook shift switch 4
0 suddenly turns on, the contact gs is operated by the relay control circuit 50, the DC loop is closed, and the power supply circuit 1
5 capacitor C1 is charged. As a result, CPU2
2K power supply voltage VDD is supplied, and the CPU 22 operates the RA according to the processing program stored in the ROM 23 in advance.
A predetermined control operation is executed while writing and reading necessary data to and from M24. This operation will be explained in detail later using a flowchart.

硬貨処理部30は、硬貨選別装置31.蓄積マグネット
32.収納マグネット33および返却マグネット34か
ら構成される。
The coin processing section 30 includes a coin sorting device 31. Storage magnet 32. It is composed of a storage magnet 33 and a return magnet 34.

ここで、硬貨選別装置31は、投入された硬貨が当型新
機において使用が予定されている正貨であるか否かおよ
び正貨であるとしてその金椎を判別するためのものであ
シ、例えば硬貨の落下軌道を挾んで対向して配置された
発光素子および受光素子t・らなる光センサを備えた硬
貨外径識別装置と、同じく落下軌道を挾んで対向して配
置されかつ相互に電磁的に結合した発信コイルおよび受
信コイルからなる検知コイルを備えた硬貨材質選別装置
とによって構成することができる。即ち、前者は発光・
受光素子間の光路を落下硬貨が辿る時間が当該硬貨の外
径によシ異なることを利用するもの、後者は例えば受信
コイルに誘導される出力電圧のピーク値が両コイル間に
介在する硬貨の材質によシ異なることを利用するもので
あるが、これらはいずれも公知であり、また本発明の適
用において、この硬貨選別装[31の構成はこれに限ら
れるものではなく、他の任意の選別手段を用い得るもの
であるから、詳細な説明は省略する。
Here, the coin sorting device 31 is used to determine whether or not the inserted coin is a genuine coin that is scheduled to be used in this new machine, and to determine whether the coin is a genuine coin or not. For example, a coin outer diameter identification device equipped with an optical sensor consisting of a light emitting element and a light receiving element t arranged opposite to each other across the falling trajectory of the coin, and a coin outer diameter identification device equipped with an optical sensor consisting of a light emitting element and a light receiving element t arranged opposite to each other across the falling trajectory of the coin; The coin material sorting device includes a detection coil consisting of a transmitter coil and a receiver coil that are electromagnetically coupled. In other words, the former emits light and
The latter utilizes the fact that the time it takes a falling coin to follow the optical path between the light receiving elements differs depending on the outer diameter of the coin. Although different materials are utilized, all of these are known, and in the application of the present invention, the structure of this coin sorting device [31 is not limited to this, and any other arbitrary structure may be used. Since a sorting means can be used, detailed explanation will be omitted.

上記外径および材質選別装置の選別結果により、正貨か
擬似貨の判定を行ない、正貨であれば、その種別に対応
する選別信号がCPU22に送出され、RAM24の一
定領域にメモリされる。例えば、使用される硬貨が10
0円、50円、20円、10円の4金攬であるとすれば
、RAM24の特定のメモリアドレスを有する容量8ビ
ツトのメモリエリアを硬貨投入メモリとし、その下位4
ビツトを各金種に対応させ、100円硬貨を示す選別信
号の入力があれば上位から第5番目、以下、順次低額に
なるに従ってそれぞれ第6番目、第7番目、第8番目の
ビットを“1″とするようにすれば、この硬貨投入メモ
リの内容を見ることによシどの金種の正貨が投入された
か確認することができる。なお、硬貨選別装置31から
制御部20への信号線に斜線を入れ、傍らに@4#の数
字を付したのは4金種についてそれぞれ選別信号送出用
の信号線が設けであることを示したものである。
Based on the selection results of the outside diameter and material selection device, a determination is made as to whether the coin is a genuine coin or a counterfeit coin. If the coin is a genuine coin, a selection signal corresponding to the type is sent to the CPU 22 and stored in a certain area of the RAM 24. For example, the coin used is 10
If there are four coins of 0 yen, 50 yen, 20 yen, and 10 yen, the memory area with a capacity of 8 bits having a specific memory address in RAM 24 is used as the coin input memory, and the lower 4 coins are
The bits are made to correspond to each denomination, and if a sorting signal indicating a 100 yen coin is input, the fifth bit from the top is selected, and the sixth, seventh, and eighth bits are selected from the top as the denomination decreases. 1'', it is possible to confirm which denomination of genuine coin has been inserted by checking the contents of this coin insertion memory. Note that the signal line from the coin sorting device 31 to the control unit 20 is shaded and the number @4# is attached next to it to indicate that signal lines for sending out sorting signals are provided for each of the four denominations. It is something that

なお、上述したような投入硬貨の検知選別は、後述する
ように割込み処理プログラムの先頭に置かれたエツジ検
出処理ステップにおいて25m5周期で行々われる。
The detection and sorting of inserted coins as described above is carried out every 25 m5 in an edge detection processing step placed at the beginning of the interrupt processing program, as will be described later.

蓄積マグネット32.収納マグネット33.返却マグネ
ット34は、それぞれ後述する蓄積レバー、収納レバー
、返却レバーを動作させるもので、制御部20からの動
作指令信号によシ動作される。
Storage magnet 32. Storage magnet 33. The return magnet 34 operates a storage lever, a storage lever, and a return lever, which will be described later, respectively, and is operated by an operation command signal from the control unit 20.

これらについては後に第2図を用いて説明を補足する。A supplementary explanation of these will be given later using FIG. 2.

ント表示方式の表示器およびこれを制御する表示制御回
路から構成され、制御部20の制御に基いて、蓄積硬貨
総額から未収納通話料金を減じた未使用硬貨額、即ちク
レジットの値を表示し、発呼者に知らせる。この表示器
60の構成は特に限定されないが、消費電力の抑制の観
点からは例えば液晶表示器が好適である。
It is composed of a display with an index display method and a display control circuit that controls the display, and under the control of the control unit 20, displays the amount of unused coins obtained by subtracting the uncollected call charges from the total amount of accumulated coins, that is, the value of credits. , inform the caller. Although the configuration of the display 60 is not particularly limited, a liquid crystal display, for example, is suitable from the viewpoint of suppressing power consumption.

以上、本実施例の公衆電話機の全体的な回路構成を説明
したが、第2図にその軌道構成の概略を示す。
The overall circuit configuration of the public telephone according to this embodiment has been described above, and FIG. 2 shows an outline of its track configuration.

第2図において、硬貨投入口100から投入された硬貨
101は、傾斜した選別軌道102を転勤落下しながら
硬貨選別装置31による選別を受ける。
In FIG. 2, coins 101 inserted from a coin input port 100 are sorted by a coin sorting device 31 while moving down an inclined sorting track 102.

選別軌道102の下端は矢印Aで示すように図示しない
返却口へ通じているが、その途中に蓄積レバー103が
配置され、この蓄積レバー103が蓄積マグネット32
の励磁によシ吸引されて動作して軌道から引っ込んだ場
合、硬貨101は蓄積軌道104に入る。蓄積軌道10
4屯傾斜軌道からなり、その下端に、収納マグネット3
3および返却マグネット34の励磁により吸引されて動
作する収納レバー105および返却レバー106が配置
されている。
The lower end of the sorting track 102 leads to a return port (not shown) as indicated by arrow A, and a storage lever 103 is disposed in the middle thereof, and this storage lever 103 connects to the storage magnet 32.
When the coin 101 is attracted by the excitation of the coin 101 and withdraws from the orbit, the coin 101 enters the storage orbit 104. Accumulation trajectory 10
It consists of a 4-ton inclined track, with 3 storage magnets at the bottom end.
3, and a storage lever 105 and a return lever 106 that are attracted and operated by the excitation of the return magnet 34 are arranged.

上記収納レバー105および返却レバー106が動作状
態に々い場合には、硬貨101はこの蓄積軌道104に
蓄積される。この実施例では、蓄積容量は5枚である。
When the storage lever 105 and the return lever 106 are in full operating condition, the coins 101 are stored in this storage track 104. In this embodiment, the storage capacity is 5 sheets.

これに対し、収納レバー105が動作して軌道から引込
んだ場合、硬貨101は矢印Bで示すように図示しない
金庫に収納される。また、返却レバー106が動作して
軌道から引込んだ場合には硬貨101は矢印Cで示すよ
うに返却口へ導かれる。
On the other hand, when the storage lever 105 is operated and withdrawn from the track, the coin 101 is stored in a safe (not shown) as shown by arrow B. Further, when the return lever 106 is operated and withdrawn from the track, the coin 101 is guided to the return port as shown by arrow C.

なお、上記各マグネットとレバーとの具体的構成は任意
である。
Note that the specific configurations of each of the above magnets and levers are arbitrary.

動作説明 次に、上記構成を有する公衆電話機の動作を、第3図〜
第8図のフローチャートを用いて説明する。なお、ここ
での説明は本発明に特有な処理の流れを理解する上で必
要な範囲に限定したものであり、CPUを用いた制御に
おいて当然に必要とされる周知の処理動作の詳細につい
ては省略しである。
Explanation of operation Next, the operation of the public telephone having the above configuration will be explained as shown in Figs.
This will be explained using the flowchart shown in FIG. Note that the explanation here is limited to the scope necessary for understanding the flow of processing specific to the present invention, and details of well-known processing operations that are naturally required for control using a CPU are not provided. It is omitted.

全体の動作説明 はじめに、第3図に示すメインルーチンおよび第4図に
示す割込みルーチンについて全体的な動作の流れを説明
する。
Overall Operational Description First, the overall operational flow of the main routine shown in FIG. 3 and the interrupt routine shown in FIG. 4 will be explained.

先にも述べた通シ、本実施例においては、第3図に示す
メインルーチンに対し、25m5の周期で割込み信号が
入り、第4図のルーチンが割込み処理される。実際に割
込みルーチンの処理に要する時間は場合によシ一定では
ないが、25mBごとに処理が開始され、一連のステッ
プを経て再びメインルーチンの処理に戻る動作が繰返さ
れる。
As mentioned above, in this embodiment, an interrupt signal is input to the main routine shown in FIG. 3 at a cycle of 25 m5, and the routine shown in FIG. 4 is interrupted. Although the time actually required for processing the interrupt routine is not constant in some cases, processing is started every 25 mB, and the operation of returning to the main routine processing after a series of steps is repeated.

即ち、先ずオンフック状態から発呼者が送受器を外すと
、前述したように接点gsが動作し、直流ループが閉成
されて電源電圧VDDの供給が可能上なる。
That is, first, when the caller removes the handset from the on-hook state, the contact gs operates as described above, and the DC loop is closed, making it possible to supply the power supply voltage VDD.

そこで、制御部20は、所定の電源電圧VDDが供給さ
れると第3図のイニシャライズ処理ステップ1=000
を実行する。即ち、CPU22はROM 23にアクセ
スし、RAM24の各メモリエリアや入出力ボ−ト21
のバックアメモリ等をイニシャライズする。このイニシ
ャライズ処理の最終段階で、硬貨選別装置31の動作が
許可されると共に、割込みが許可されてタイミング回路
25は割込み信号の送出を開始する。従って、これ以降
CPU22は、第3図のメインルーチンの進行状況如何
にかかわらず25m5ごとに第4図の割込みルーチンに
示される処理を1口実行する。
Therefore, when the control section 20 is supplied with the predetermined power supply voltage VDD, the initialization processing step 1 in FIG.
Execute. That is, the CPU 22 accesses the ROM 23 and stores data in each memory area of the RAM 24 and the input/output board 21.
Initialize the backup memory, etc. At the final stage of this initialization process, the operation of the coin sorting device 31 is permitted, and interrupts are also permitted, and the timing circuit 25 starts sending out an interrupt signal. Therefore, from now on, the CPU 22 executes the process shown in the interrupt routine in FIG. 4 every 25 m5, regardless of the progress of the main routine in FIG.

そこで、次にこの割込みルーチンについてその概略を説
明する。
Next, an outline of this interrupt routine will be explained.

即ち、プログラムの実行が割込み処理に移行すると、は
じめにエツジ検出処理ステップ2000が実行される。
That is, when the execution of the program shifts to interrupt processing, edge detection processing step 2000 is executed first.

ここでは、入出力ボート21を介して電話機回路部10
および硬貨処理部3oがら入力される各入力信号をチェ
ックし、その結果を示すデータを、RAM24の所定の
メモリエリアに格納する。例えば課金信号受信回路12
を通じて課金信号の入力があった場合には、課金フラグ
メモリの内容を「1」として、課金信号の到来を示す課
金フラグをセットする。また、硬貨選別装置31貨投入
メモリに当該硬貨の投入を示すデータが書込まれる。
Here, the telephone circuit unit 10 via the input/output boat 21
and each input signal inputted from the coin processing unit 3o, and stores data representing the results in a predetermined memory area of the RAM 24. For example, the billing signal receiving circuit 12
When a billing signal is input through the charger, the content of the billing flag memory is set to "1" and a billing flag indicating the arrival of the billing signal is set. Further, data indicating the insertion of the coin is written into the coin insertion memory of the coin sorting device 31.

次に、プログラムの実行はダイヤル制御処理ステップ2
001に移行する。即ち、キーボードTOKよって構成
された押しボタンダイヤルからの入力があれば、それに
応じて市内か市外が、また無料や禁止の番号でないかな
どダイヤル番号種類の判定等が行なわれるが、本発明の
要旨には直接関係しないので詳細な説明は省略する。
Next, the program execution is dial control processing step 2.
Move to 001. That is, if there is an input from the push-button dial configured by the keyboard TOK, the type of dialed number is determined depending on the input, such as whether it is within the city or outside the city, and whether it is a toll-free or prohibited number. Since it is not directly related to the gist of the above, detailed explanation will be omitted.

ダイヤル制御処理が終了すると、プログラムの実行は、
次いで表示処理ステップ2002に移行する。ここでは
、前述したように表示回路60を構成する表示器にクレ
ジットの額を表示させる処理が行なわれるが、本発明の
要旨には直接関係しないため、これ以上の説明は省略す
る。
When the dial control process is finished, the program execution is
Next, the process moves to display processing step 2002. Here, as described above, processing is performed to display the amount of credit on the display device constituting the display circuit 60, but since this is not directly related to the gist of the present invention, further explanation will be omitted.

次いで、プログラムの実行は課金演算処理ステップ20
03に移行する。ここでは、前記眸金フラグメモリにフ
ラグがセットされているか否かをチェックし、セットさ
れていれば、RAM24の一部に設けられた未収納通話
料金メモリの内容を更新する0即ち、このメモリは、未
収納通話料金を示すデータを格納するものであシ、従っ
て、1課金ごとにタリフ分ずつ加算される。同様に、ク
レジットを示すクレジットメモリの内容からタリフ分を
減算する。なお、この減算の結果、クレジットが0未満
となった場合には、RAM24の特定エリアに設けられ
たフック処理フラグメモリの内容を「1」としてフック
処理フラグをセットする。これに対し、課金フラグがセ
ットされていなければ、プログラムの実行は直ちに次の
硬貨投入処理ステップ2004に移行する。
Next, the program is executed in billing calculation processing step 20.
Move to 03. Here, it is checked whether or not a flag is set in the money flag memory, and if it is set, the contents of the uncollected call charge memory provided in a part of the RAM 24 are updated to 0, that is, this memory is used to store data indicating uncollected call charges, therefore, the tariff is added for each charge. Similarly, the tariff is subtracted from the contents of the credit memory indicating credits. Note that if the credit becomes less than 0 as a result of this subtraction, the content of the hook processing flag memory provided in the specific area of the RAM 24 is set to "1" and the hook processing flag is set. On the other hand, if the billing flag is not set, the program execution immediately moves to the next coin insertion process step 2004.

この硬貨投入処理ステップ2004においては、後に第
5図のフローチャートを用いて詳述するように、前記硬
貨投入メモリの内容により硬貨の投入をチェックし、一
定の条件の下に蓄積マグネット32を動作させ、硬貨の
蓄積を許可する。
In this coin insertion processing step 2004, as will be described in detail later using the flowchart of FIG. 5, coin insertion is checked based on the contents of the coin insertion memory, and the storage magnet 32 is operated under certain conditions. , allowing the accumulation of coins.

次のタイマ処理ステップ2005においては、RAM2
4に設けられた各糧タイマリクエストフラグメモリの内
容に応じ、フラグがセットされていれは、同じ<RAM
24に設けられた各タイマの内容を「1」インクリメン
トする。即ち、タイマリクエストフラグがセットされて
いる間、25m5周期でタイマの内容がインクリメント
されるため、このタイマの内容によって計時が行なえる
In the next timer processing step 2005, RAM2
Depending on the content of each food timer request flag memory provided in 4, if the flag is set, the same <RAM
The contents of each timer provided in 24 are incremented by "1". That is, while the timer request flag is set, the contents of the timer are incremented every 25 m5, so that time can be measured based on the contents of this timer.

次いで、プログラムの実行はダイヤル送出処理ステップ
2006に移行する。ここでは、キーボード70からの
入力に応じ、交換機に被呼者の番号を示すダイヤル信号
を送出して通知する。
Program execution then moves to dialing processing step 2006. Here, in response to input from the keyboard 70, a dial signal indicating the number of the called party is sent to the exchange and notified.

このように割込みルーチンを1回終了した後、プログラ
ムの実行は再びメインルーチンに戻り、中断位置から処
理が再開される。
After completing the interrupt routine once in this way, the program execution returns to the main routine again and processing is resumed from the interrupted position.

さて、第3図に示すメインルーチンにおいて、イニシャ
ライズ処理ステップ1000が終了すると、プログラム
の実行は自己診断処理ステップ1001に移行する。こ
れは、硬貨軌道に配置された図示しない各種センサ等を
用いて硬貨詰シその他の故障の有無を自己診断するもの
であるが、実際のセンサ系の出力状態の検出は前記エツ
ジ検出処理ステップ2000において行なわれ、所定の
フラグメモリに診断結果を示すフラグがセットされる。
Now, in the main routine shown in FIG. 3, when the initialization processing step 1000 is completed, the execution of the program shifts to the self-diagnosis processing step 1001. This is to self-diagnose the presence or absence of coin jamming or other failures using various sensors (not shown) placed on the coin track, but the actual output state of the sensor system is detected in the edge detection processing step 2000. A flag indicating the diagnosis result is set in a predetermined flag memory.

従って、ステップ1001における処理自体は、所定の
フラグレジスタの内容をチェックすることであるが、本
発明の要旨には直接関係しないため詳細な説明は省略す
る。
Therefore, the process itself in step 1001 is to check the contents of a predetermined flag register, but since it is not directly related to the gist of the present invention, a detailed explanation will be omitted.

異常がないことが確認された場合、プログラムの実行は
通話許可処理ステップ1002に移行し、返却マグネッ
ト34を動作させて返却レバー106を硬貨返却阻止状
態とし、硬貨の蓄積が可能な状態とする。
If it is confirmed that there is no abnormality, the execution of the program moves to call permission processing step 1002, and the return magnet 34 is operated to set the return lever 106 in a coin return inhibiting state, so that coins can be stored.

従って、ここで発呼者が硬貨を投入し、ダイヤル操作を
行ない、被呼者が応答すれば通話状態が開始される。
Therefore, if the calling party inserts a coin and performs a dialing operation, and the called party answers, a telephone conversation is started.

次いで、プログラムの実行はオンフックか否かの判断処
理ステップ1003に移行し、フックスイッチ40から
の入力信号をチェックすることによシオフフツクの継続
が確認、されれば次の収納判断処理ステップ1004に
移行する。これに対し、オンフックが確認された場合に
は、ステップ1008に移行してフック処理フラグをセ
ットした後、後述するフック処理ステップ1009に移
行する。
Next, the execution of the program moves to step 1003 to determine whether or not the hook is on-hook, and if the continuation of off-hook is confirmed by checking the input signal from the hook switch 40, the process moves to step 1004 to determine whether the hook is on-hook. do. On the other hand, if on-hook is confirmed, the process moves to step 1008, where a hook processing flag is set, and then the process moves to hook processing step 1009, which will be described later.

収納判断処理ステップ1004においては、後に第6図
のフローチャートを用いて詳述するように、一定の条件
に従って、最下位の蓄積硬貨を収納すべきか否かが判定
される。
In storage determination processing step 1004, it is determined whether or not the lowest accumulated coin should be stored, according to certain conditions, as will be explained in detail later with reference to the flowchart of FIG.

次いで、プログラムの実行はフック処理フラグがセット
されているか否かの判断処理ステップ1005に移行し
、フラグがセットされていれば、フック処理ステップ1
009に移行する。フラグがセットされていなければ、
次の収納処理ステップ1006に移行する。
Next, program execution moves to step 1005, which determines whether the hook processing flag is set, and if the flag is set, hook processing step 1 is performed.
Transition to 009. If the flag is not set,
The process moves to the next storage processing step 1006.

この収納処理ステップ1006においては、後に第7図
のフローチャートを用いて詳述するように、先に収納判
断処理ステップ1004において決定された結果に基き
、実際に最下位硬貨の収納が行なわれる。
In this storage processing step 1006, the lowest coin is actually stored based on the result previously determined in the storage determination processing step 1004, as will be described in detail later with reference to the flowchart of FIG.

次いで、プログラムの実行はフック処理フラグがセット
されているか否かの判断処理ステップ1001に移行し
、フラグがセットされていればフック処理ステップ10
09に移行する。フラグがセットされていなければステ
ップ10o3に戻る。以降、通話が有効に継続される限
シ、ステップ1003かもステップ1ooyまでの処理
が繰返し実行される。
Next, the execution of the program moves to step 1001, which determines whether the hook processing flag is set, and if the flag is set, the process proceeds to hook processing step 10.
Move to 09. If the flag is not set, the process returns to step 10o3. Thereafter, as long as the call continues effectively, the processes from step 1003 to step 1ooy are repeatedly executed.

フック処理ステップ1009では、前記ダイヤルパルス
送出および強制切断回路14のトランジスタをオフする
ことによシ、接点gsを動作状態としたままで、800
mBの間だけ直流ループが切断される。これによシ交換
機に対しては通話の終了を通知できると共に、電源回路
はオフフック時と同様の状態を保持したまま、次の精算
処理ステップ1010に移行できる。なお、この時点で
交換機は復旧するから、も社や課金信号の到来はなくな
る。
In the hook processing step 1009, by turning off the transistor of the dial pulse sending and forced disconnection circuit 14, the 800
The DC loop is disconnected for only mB. As a result, the end of the call can be notified to the exchange, and the power circuit can proceed to the next payment processing step 1010 while maintaining the same state as when off-hook. Note that at this point, the exchange will be restored, so there will be no more calls or billing signals.

精算処理ステップ1010においては、後に第8図のフ
ローチャートを用いて説明するように未収納通話料金を
利用者にとって釣銭の被害が最も少々くなるような方法
で精算する蓄積硬貨の組合せを選定する。
In the settlement processing step 1010, as will be explained later with reference to the flowchart of FIG. 8, a combination of accumulated coins is selected to settle the uncollected call charges in a manner that minimizes the loss of change for the user.

次いで、プログラムの実行は収納処理ステップ1011
に移行する。ここでは、上記精算処理ステップ1010
において選定された組合せに従って、各蓄積硬貨を最下
位硬貨から順に収納もしくは返却して行く。プログラム
自体は先に述べた収納処理ステップ1006と同様であ
り、後に第7図のフローチャートを用いて詳細に説明す
る。
Next, the program is executed in storage processing step 1011.
to move to. Here, the above-mentioned payment processing step 1010
According to the combination selected in , each accumulated coin is stored or returned in order starting from the lowest coin. The program itself is similar to the storage processing step 1006 described above, and will be explained in detail later using the flowchart of FIG.

次に、プログラムの実行は終了処理ステップ1012に
移行する。ここでは、前記精算処理において決定した最
終的な返却類の所定表示時間が経過したことを確認し、
かつ電源電圧VMGが4.5V以上に充電されたことを
確認し、更にオンフック状態が継続していることを確認
した上で、接点gsを復旧させる。
Next, program execution moves to termination processing step 1012. Here, it is confirmed that the final predetermined display time for return items determined in the payment process has elapsed,
After confirming that the power supply voltage VMG has been charged to 4.5V or higher and further confirming that the on-hook state continues, the contact gs is restored.

次に、先に述べたように、硬貨投入処理、収納判断処理
、収納処理、精算処理の各ステップにつここで、特に重
要々いくつかのメモリについて下の表に掲げ、その構成
についてまとめて説明、しておく。なお、これらのメモ
リは、先に説明した硬貨投入メモリ、未収納通話料金メ
モリ、クレジツトメモリ等と同様にRAM24の特定エ
リアを利用して設けられ、それぞれ8ビツトの容量を有
している。
Next, as mentioned earlier, for each step of coin insertion processing, storage judgment processing, storage processing, and payment processing, some particularly important memories are listed in the table below and their configuration is summarized. Let me explain. These memories are provided using specific areas of the RAM 24, and each has a capacity of 8 bits, similar to the coin insertion memory, uncollected call charge memory, credit memory, etc. described above.

先ず、蓄積メモリは、蓄積軌道104の舌蓄積位置にど
の金種の硬貨が蓄積されているかを示すデータを格納す
るものである。ここでは蓄積軌道104の蓄積容量は5
枚であるから、(O)〜(4)の5個の蓄積メモリが、
それぞれ最下位から順次最上位まで5個の蓄積位置に対
応し、それぞれ蓄積されている硬貨の硬貨額を示すデー
タを格納する。先に述べたように本電話機で使用される
4金種の硬貨が、100円、50円、20円、10円硬
貨であるものとすれば、これらの硬貨額を示すデータ、
即ち16進表記で°64”(100円) 、”32’(
50円) 、@14”(20円)、′″OA”(10円
)の各データが格納される。力お、第6番目の(5)の
メモリは予備メモリである。
First, the storage memory stores data indicating which denomination of coins are stored at the tongue storage position of the storage track 104. Here, the storage capacity of the storage orbit 104 is 5
Since there are 5 storage memories (O) to (4),
Each corresponds to five storage positions from the lowest position to the highest position, and stores data indicating the amount of each stored coin. As mentioned earlier, if the four denominations of coins used in this telephone are 100 yen, 50 yen, 20 yen, and 10 yen coins, data indicating the denominations of these coins,
In other words, in hexadecimal notation, °64" (100 yen), "32" (
50 yen), @14" (20 yen), and '"OA" (10 yen). The sixth memory (5) is a spare memory.

これについては後述する。This will be discussed later.

次に、蓄積枚数メモリは、蓄積軌道全体にどの金種の硬
貨が何枚蓄積されているかを示すデータを格納するもの
であり、(0)〜(4)の各メモリは、それぞれ最高額
硬貨(100円)から順次最低額硬貨(10円)までに
対応している。即ち、前記蓄積メモリの内容を金種別に
書換えた内容と表っている。
Next, the storage number memory stores data indicating how many coins of which denomination are stored in the entire storage trajectory, and each memory (0) to (4) stores the highest denomination coin. (100 yen) to the lowest denomination coin (10 yen). In other words, the contents of the storage memory are rewritten for each denomination.

これに対し、収納枚数メモリは、蓄積硬貨のうち収納す
べき硬貨の枚数を金種別に示すデータを格納するもので
、(0)〜(4)の各メモリが、それぞれ最高額硬貨(
100円)から順次最低額硬貨(10円)までに対応し
ている。
On the other hand, the storage number memory stores data indicating the number of coins to be stored among the accumulated coins by denomination, and each memory (0) to (4) stores the highest denomination coin (
100 yen) to the lowest denomination coin (10 yen).

また、収納・返却メモリは、(0)〜(4)までそれぞ
れ最下位から順次最上位までの蓄積位置に対応し、各蓄
積位置の硬貨が収納すべきか返却すべきかを示すデータ
が格納されている。即ち、収納である場合には′″01
’(16進表記、以下同様)、返却の場合には″01#
、どちらでもない場合には処理終了データとして”nl
の各データが格納される。従って、この収納・返却メモ
リの内容は、前記収納枚数メモリの内容に示される収納
枚数を、各蓄積位置の硬貨に割当てたものになっている
。割当ては例えば最下位から行なわれる。例えば10円
硬貨が最下位と最上位に蓄積されている場合に、その収
納枚数が1枚であれば、最下位に対応する収納・返却メ
モリ(0)に収納データ@01#が書込まれる0 硬貨投入処理 第5図は、硬貨投入処理ルーチンを示すフローチャート
である。この硬貨投入処理ルーチンは、前述したように
% 25m5周期で開始される割込みルーチンにおいて
、課金演算処理に引続いて実行される。
In addition, the storage/return memory corresponds to the storage positions (0) to (4) from the lowest to the highest, and stores data indicating whether the coins at each storage position should be stored or returned. There is. In other words, if it is storage, '''01
' (in hexadecimal notation, the same applies below), in case of return, ``01#
, if neither is the case, "nl" is used as the processing end data.
Each data is stored. Therefore, the contents of this storage/return memory are the number of coins to be stored, which is shown in the contents of the storage number memory, and are assigned to the coins at each storage position. Allocation is performed, for example, starting from the lowest level. For example, if 10 yen coins are stored at the lowest and highest positions, and the number of coins stored is 1, storage data @01# is written to the storage/return memory (0) corresponding to the lowest position. 0 Coin Insertion Process FIG. 5 is a flowchart showing the coin insertion process routine. This coin insertion processing routine is executed following the billing calculation processing in the interrupt routine that is started every %25m5 period as described above.

プログラムの実行が硬貨投入処理に移行すると、先ず、
ステップ2010において新たな正貨の投入があったか
否かの判断が行なわれる。これは、前記硬貨投入メモリ
に格納されたデータをチェックすることにより行なわれ
る。即ち、硬貨投入メモリのそれぞれの金種に対応する
ビットが@1”であれば、当該金種の正貨の投入があっ
たことになる。
When the program execution moves to the coin insertion process, first,
In step 2010, a determination is made as to whether new specie coins have been inserted. This is done by checking the data stored in the coin input memory. That is, if the bit corresponding to each denomination in the coin insertion memory is @1'', it means that a genuine coin of that denomination has been inserted.

今、その金種自体は問わないが、正貨の投入が確認され
れば、プログラムの実行はステップ2011に移行し、
蓄積軌道が満杯であるか否かを判断する。これは、前記
最上位に対応する蓄積メモリ(4)に硬貨額データが書
込まれているか否かで判定することができる。
Now, the denomination itself does not matter, but if the input of specie coins is confirmed, the program execution moves to step 2011,
Determine whether the storage orbit is full. This can be determined by whether or not coin amount data is written in the storage memory (4) corresponding to the topmost one.

そして、満杯でない場合には直ちに蓄積マグネット処理
ステップ2013に移行し、蓄積マグネット32を動か
して蓄積レバー103を軌道から引込め、転勤落下して
来る投入硬貨101を蓄積軌道104に導く。
If it is not full, the process immediately proceeds to storage magnet processing step 2013, where the storage magnet 32 is moved to retract the storage lever 103 from the track and guide the input coins 101 falling from the transfer to the storage track 104.

このように蓄積を許可した場合には、次いで、硬貨投入
演算処理ステップ2014において、クレジットメモリ
および蓄積メモリの内容の更新が行なわれる。即ち、ク
レジットメモリの内容に新たに蓄積した硬貨の硬貨額を
加算すると共に、硬貨額データの書込みがない蓄積メモ
リのうちで最も下位の蓄積位置に対応するものに硬貨額
データを書込む。
When accumulation is permitted in this manner, the contents of the credit memory and accumulation memory are then updated in coin insertion calculation processing step 2014. That is, the coin amount of the newly accumulated coin is added to the contents of the credit memory, and the coin amount data is written to the storage memory corresponding to the lowest storage position among the storage memories in which no coin amount data is written.

これに対し、蓄積軌道が既、lζ満杯であった場合には
、プログラムの実行はステップ2011から次のステッ
プ2012へ移行し、未収納通話料金が最下位の硬貨額
を上回っているか否かが判断される。
On the other hand, if the accumulation trajectory is already lζ full, the program execution moves from step 2011 to the next step 2012, where it is determined whether the uncollected call charge exceeds the lowest coin amount. be judged.

これは、未収納通話料金メモリの内容と蓄積メモリ(0
)の内容とを比較することによって行表われる。
This includes the contents of the uncollected call charge memory and the accumulated memory (0
) by comparing the contents of

そして、未収納通話料金が既に最下位硬貨額を上回って
いる場合には、引続きステップ2013が実行され、投
入硬貨の蓄積が行なわれるが、未収納通話料金が未だ最
下位硬貨額以下である場合には、蓄積は許可されず、投
入硬貨はオーバーフローの状態で直接返却口へ返却され
る。これは、次の収納判断処理および収納処理において
説明するように、通話が継続している間は原則として硬
貨の収納は行なわず、蓄積軌道が満杯でかつ未収納通話
料金が既に最下位硬貨額を上回っている時にのみ、正貨
の追加投入があった場合、最下位硬貨を収納する方式を
とっていることによる。即ち、上記条件の時にのみ、追
加投入された硬貨の蓄積を許可すると共に、最下位の硬
貨を収納する。このように満杯状態で蓄積を許可した場
合には、当骸追加投入硬貨の硬貨額を示すデータは、暫
定的に予備の蓄積メモリ(5)に書込まれる。なお、こ
のように満杯で蓄積を許可する場合に、最下位硬貨の収
納はメインルーチンで別個に行なわれるため、収納が後
になシ、そのために蓄積が円滑に行なわれないおそれが
あるようなら、蓄積軌道の実際の容量を6枚としておけ
ば良い。
If the uncollected call charge already exceeds the lowest coin amount, step 2013 is subsequently executed and the inserted coins are accumulated; however, if the uncollected call charge is still below the lowest coin amount. , no accumulation is allowed and the inserted coins are returned directly to the return slot in an overflow state. As explained in the next storage judgment process and storage process, coins are not stored as long as the call continues, and the coins are not stored when the storage track is full and the uncollected call charge has already reached the lowest coin amount. This is due to the system in which the lowest coin is stored only when additional specie coins are inserted. That is, only when the above conditions are met, the storage of additionally inserted coins is allowed, and the lowest coin is stored. In this way, when storage is permitted in a full state, data indicating the coin amount of the additional coins to be inserted is provisionally written into the spare storage memory (5). In addition, when allowing accumulation when the coin is full, the storage of the lowest coin is done separately in the main routine, so if it is necessary to store it later, and there is a risk that the accumulation will not be carried out smoothly, It is sufficient to set the actual capacity of the storage orbit to 6 sheets.

また、ステップ2010の実行の際、正貨の追加投入が
検出されない場合には、それ以上の実質的な処理は伺ら
行なわずに、この硬貨投入処理ルーチンを終了する。
Further, when executing step 2010, if additional insertion of genuine coins is not detected, this coin insertion processing routine is ended without any further substantive processing.

次に、収納判断処理について説明する。Next, storage determination processing will be explained.

収納判断処理 第6図は、収納判断処理ルーチンを示すフローチャート
である。この収納判断処理は、先に述べたように、通話
の継続中において、最下位硬貨を収納すべきか否かを決
定するものである。
Storage Judgment Process FIG. 6 is a flowchart showing the storage judgment processing routine. As described above, this storage determination process determines whether or not the lowest coin should be stored while the call continues.

プログラムの実行が収納判断処理に移行すると、先ず、
ステップ1020において命令「収納の返却メモリの内
容を“FF”とする」が実行される。ここでは、5個の
収納・返却メモリのすべてに処理終了デーダFF”が格
、納される0 次いで、ステップ1021において先のステップ201
0と同様に正貨の投入があったか否かが判断される。
When the program execution moves to storage determination processing, first,
In step 1020, the command "set the contents of storage return memory to 'FF'" is executed. Here, the process end data FF'' is stored in all five storage/return memories.
Similarly to 0, it is determined whether or not specie coins have been inserted.

正貨の投入が検出された場合には、プログラムの実行は
ステップ1022に移行し、先に説明したステップ20
11と同様に蓄積軌道が満杯であるか否かが判断される
If insertion of specie coins is detected, program execution moves to step 1022 and proceeds to step 20 as previously described.
Similarly to 11, it is determined whether the storage orbit is full or not.

蓄積が満杯である場合には、ステップ1023において
、先に説明したステップ2012におけると同様に、未
収納通話料金が最下位硬貨額を上回っているか否かが判
断される。
If the storage is full, it is determined in step 1023 whether the uncollected call charge exceeds the lowest coin amount, similarly to step 2012 described above.

未収納通話料金が最下位硬貨額を上回っている場合には
、次のステップ1024において、最下位に対応する収
納・返却メモリ(0)に、収納を示すデータ@01#を
書込む。
If the uncollected call charge exceeds the lowest coin amount, in the next step 1024, data @01# indicating collection is written in the storage/return memory (0) corresponding to the lowest coin.

これに対し、正貨の投入がなかった場合、投入があって
も蓄積軌道が満杯でなかった場合、および満杯でも未収
納通話料金が最下位硬貨額以下である場合には、いずれ
も以降の処理を行なわずに収納判断処理ルーチンを終了
する。
On the other hand, if there is no input of specie coins, if the accumulation orbit is not full even if there is input, or if the unaccumulated call charge is less than the lowest coin amount even if it is full, the subsequent The storage determination processing routine ends without performing any processing.

次に、収納処理について説明する。Next, storage processing will be explained.

収納処理 第7図は、収納処理ルーチンを示すフローチャートであ
る。この収納処理は、先に述べたように、上記収納判断
処理、もしくは次に詳述する精算処理において、各蓄積
硬貨の収納・返却が判断され、判断結果を示すデータが
収納・返却メモリに書込まれた後に、当該データに基い
て各蓄積硬貨を実際に収納・返却する場合に行なわれる
。ただし、通話継続中においては最下位硬貨の収納のみ
が対象になることは先に述べた通シである。
Storage Processing FIG. 7 is a flowchart showing the storage processing routine. As mentioned earlier, in this storage process, the storage/return of each accumulated coin is determined in the storage judgment process described above or the settlement process described in detail next, and data indicating the judgment result is written to the storage/return memory. This is done when each accumulated coin is actually stored and returned based on the data after being stored. However, as mentioned above, only the lowest coin is stored while the call is continuing.

プログラムの実行が収納処理に移行すると、ステップ1
030において、最下位に対応する収納・返却メモリ(
0)の内容が収納データであるか否かを判断する。
When the program execution moves to storage processing, step 1
At 030, the storage/return memory (
0) is stored data.

そして、これが収納データである場合には次の硬貨収納
処理ステップ1031に移行し、収納マグネット33を
動作させて収納レバー105を蓄積軌道から引込め、最
下位の硬貨を、金庫へ通じる収納通路に落下させる。な
お、この場合、上記収納レバー105に連動して図上省
略したが周知のエスケープ機構によってストップビンが
働き、よシ上位の蓄積硬貨が続いて落下するのを防ぐ。
If this is storage data, the process moves to the next coin storage processing step 1031, where the storage magnet 33 is operated to retract the storage lever 105 from the storage track, and the lowest coin is placed in the storage path leading to the safe. let it fall. In this case, a stop bin is operated by a well-known escape mechanism (not shown in the figure) in conjunction with the storage lever 105 to prevent the accumulated coins from falling down.

このように硬貨を収納した場合には、次いで硬貨演算処
理ステップ1032に移行する。ここでは、蓄積メモリ
の内容のシフトダウンおよび未収納通話料金メモリの内
容の更新が行なわれる。即ち、下位から2番目以上の各
蓄積メモリ(1)〜(51の格納データを、それぞれ1
段階下位に対応する蓄積メモリ(0)〜(4)に転送す
ると共に、未収納通話料金メモリの内容から収納した硬
貨の硬貨額を減算する。
When coins are stored in this manner, the process then moves to coin calculation processing step 1032. Here, the contents of the storage memory are shifted down and the contents of the uncollected call charge memory are updated. In other words, each storage memory (1) to (51) from the second lowest to the lowest is
The coins are transferred to storage memories (0) to (4) corresponding to lower levels, and the amount of stored coins is subtracted from the contents of the uncollected call charge memory.

これに対し、収納・返却メモリ(0)の内容が収納デー
タでなかった場合には、プログラムの実行はステップ1
030からステップ1033に移行し、当該メモリの内
容が返却データであるか否かが判断される。
On the other hand, if the contents of storage/return memory (0) are not storage data, the program execution is performed in step 1.
The process moves from step 030 to step 1033, where it is determined whether the contents of the memory are return data.

返却データである場合には、次の硬貨返却処理ステップ
1034に移行し、返却マグネット34を動作させて返
却レバー106を引込め、最下位の硬貨を、返却口へ通
じる返却通路に落下させる。この場合も、返却レバー1
06に連動してストップビンが働き、後続の硬貨の落下
を防ぐ。
If it is return data, the process moves to the next coin return processing step 1034, the return magnet 34 is operated to retract the return lever 106, and the lowest coin is dropped into the return path leading to the return slot. In this case as well, return lever 1
A stop bin operates in conjunction with 06 to prevent subsequent coins from falling.

上記収納マグネット33および返却マグネット34は共
に動作時間は300m+1であシ、300mB経過後復
旧し、収納レバー105および返却レバー106も復旧
する。同時にストップビンも復旧するため、後続硬貨は
収納レバー105および返却レバー106で係止される
位置まで落下して最下位硬貨となる。
Both the storage magnet 33 and the return magnet 34 have an operating time of 300 m+1, and are restored after 300 mB, and the storage lever 105 and the return lever 106 are also restored. Since the stop bin is also restored at the same time, the subsequent coin falls to the position where it is stopped by the storage lever 105 and the return lever 106 and becomes the lowest coin.

上記硬貨演算処理ステップ1032もしくは硬貨返却処
理ステップ1034の終了後、プログラムの実行はイン
ターバル処理ステップ1035に移行する。これは、収
納もしくは返却マグネットを動作させて収納もしくは返
却を行なった後、次の収納もしくは返却動作まで、30
0m5のインターバルを置くためのものであり、終了後
、プログラムの実行は再びステップ1030に移行し、
先の収納もしくは返却で更新された収納・返却メモリ(
0)の内容のチェックを行なう。そして、上述したと同
様の処理を、収納・返却メモリ(0)の内容が処理終了
データ”FF”となるまで繰返す。
After the coin calculation processing step 1032 or the coin return processing step 1034 is completed, the program execution moves to an interval processing step 1035. This means that after operating the storage or return magnet to store or return the item, it will take 30 minutes until the next storage or return operation.
This is to set an interval of 0m5, and after the end, the program execution moves to step 1030 again.
The storage/return memory updated by the previous storage or return (
Check the contents of 0). Then, the same process as described above is repeated until the contents of the storage/return memory (0) become the process end data "FF".

即ち、上記収納・返却メモリ(0)の内容が”FF″と
なった場合には、ステップ1030およびステップ10
33を経て直ちに収納処理ルーチンを終了する。
That is, if the content of the storage/return memory (0) is "FF", steps 1030 and 10 are executed.
Immediately after step 33, the storage processing routine ends.

従って、通話継続中に関しては、前述したように1回の
収納判断処理ルーチンでは場合によって1個の収納・返
却メモリ(0)に収納データ@01”が書込まれるのみ
であるため、1回の収納−処理ルーチンは、最下位硬貨
を1個収納して終了するか屯しくけ収納も返却も全く行
なわずに終了するかのいずれかである。
Therefore, while the call is continuing, as mentioned above, in one storage judgment processing routine, storage data @01'' is only written to one storage/return memory (0) depending on the case. The storage-processing routine either ends with one lowest coin stored or ends without storing or returning the coin at all.

これに対し、通話終了後においては、次に述べる精算処
理における決定結果に従い、全蓄積硬貨について収納ま
たは返却のいずれかが行なわれる。
On the other hand, after the end of the call, all accumulated coins are either stored or returned in accordance with the decision result in the payment processing described below.

そこで、次に精算処理について説明する。Therefore, the payment processing will be explained next.

精算処理 第8図は、精算処理ルーチンを示すフローチャートであ
る。この精算処理は、先に述べたように、通話終了後、
即ちフック処理ステップ1009の終了後に未収納通話
料金を精算する蓄積硬貨の組合せを決定するためのもの
である。
Settlement Processing FIG. 8 is a flowchart showing the settlement processing routine. As mentioned earlier, this settlement process is carried out after the call ends.
That is, this is to determine the combination of accumulated coins for settling uncollected call charges after hook processing step 1009 is completed.

プログラムの実行が精算処理に移行すると、ステップ1
040において金種別の蓄積枚数を示すデータが各蓄積
枚数メモリに格納される。これは、先に述べたように蓄
積メモリの内容に従って最高額硬貨から順に蓄積枚数を
計数し、結果を当該金種硬貨の蓄積枚数として対応する
蓄積枚数メモリに格納することによシ行なわれる。
When the program execution moves to payment processing, step 1
At 040, data indicating the number of accumulated coins for each denomination is stored in each accumulated quantity memory. This is done by counting the accumulated number of coins in order from the highest denomination coin according to the contents of the accumulated memory as described above, and storing the result in the corresponding accumulated number memory as the accumulated number of coins of the relevant denomination.

次いで、ステップ1041において未収納通話料金の端
数を最低額硬貨額の単位で切上ける処理が行なわれる。
Next, in step 1041, a process is performed to round up the fraction of the uncollected call charge to the unit of the lowest coin amount.

即ち、未収納通話料金は必ずしも最低額硬貨額の整数倍
とはならないが、実際に収納し得る金額は最低額硬貨額
が単位となるからである。具体的には、未収納通話料金
を最低額硬貨額で除し、余りがあれは商に「1」を加え
た値、余りがなければ商自体に最低額硬貨額を乗じるこ
とによシ算出できる。
That is, although the uncollected call charges are not necessarily an integral multiple of the minimum amount in coins, the amount that can actually be collected is based on the minimum amount in coins. Specifically, it is calculated by dividing the uncollected call charges by the minimum amount in coins, and if there is a remainder, add "1" to the quotient, and if there is no remainder, multiply the quotient itself by the minimum amount in coins. can.

次に、ステップ1042において、未収納通話料金を示
すデータを、RAM24の特定エリアに設けたワーキン
グメモリに格納する。以下、このワーキングメモリに格
納したデータに基いて、未収納通話料金に相当する蓄積
硬貨の組合せを選定するが、高額硬貨を優先に収納する
方式で行なう。
Next, in step 1042, data indicating uncollected call charges is stored in a working memory provided in a specific area of the RAM 24. Thereafter, based on the data stored in the working memory, a combination of accumulated coins corresponding to the uncollected call charges is selected, but this is done in such a way that high value coins are stored preferentially.

即ち、先ず、最高額硬貨から順に硬貨の有無をチェック
することから行なわれるが、はじめに1か否かを判断し
、終了していなければステップ1044において最高額
硬貨に対応する蓄積ンモリ(0)から順に指定して硬貨
の有無をチェックする動作に入る。
That is, first, the presence or absence of coins is checked in order from the highest denomination coin. First, it is determined whether the coin is 1 or not. If the coin is not completed, in step 1044, the accumulated coins are checked from the accumulated coin amount (0) corresponding to the highest denomination coin. The operation starts by specifying the coins in order and checking the presence or absence of coins.

そこで、ステップ1045において当該金種の硬貨が蓄
積されていることが確認された場合には、ステップ10
46において、前記ワーキングメモリの内容としての未
収納通話料金を当該硬貨額で割って、収納許可回数、即
ち、当該硬貨をその回数だけ収納しても未収納通話料金
を越えない最大回数を求める。
Therefore, if it is confirmed in step 1045 that coins of the relevant denomination are accumulated, step 1045
At step 46, the uncollected call charge as the content of the working memory is divided by the amount of the coin to find the permitted number of storages, that is, the maximum number of times the coin is stored that number of times without exceeding the uncollected call charge.

しかし、実際にそれだけの蓄積がなければ現実には収納
できない。そこで、ステップ1047において上記収納
許可回数以上の蓄積枚数が有るか否かを判断する。
However, in reality, it cannot be stored unless there is actually that much accumulation. Therefore, in step 1047, it is determined whether or not the number of accumulated sheets is equal to or greater than the number of storage permissions.

第1のケースとして、蓄積枚数が収納許可回数以上であ
れば、ステップ1048において未収納通話料金から収
納許可回数分の硬貨総額を減算し、当該金種の硬貨を収
納したものとした場合になお残る未収納通話料金額を算
出する。
In the first case, if the accumulated number is equal to or greater than the number of permitted storages, the total amount of coins for the number of permitted storages is subtracted from the uncollected call charge in step 1048, and it is assumed that the coins of the relevant denomination have been stored. Calculate the remaining uncollected call charges.

これに対し、第2のケースとして蓄積枚数が収納許可回
数を下回る場合には、ステップ1049において、未収
納通話料金から、現実に収納できる枚数としての蓄積枚
数分の硬貨総額を減算する。
On the other hand, in the second case, when the accumulated number of coins is less than the permitted number of times of storage, in step 1049, the total amount of coins corresponding to the accumulated number of coins, which is the number of coins that can actually be stored, is subtracted from the uncollected call charges.

上記いずれかの減算処理の終了後、ステップ105Gに
おいて収納メモリに収納枚数を示すデータを書込む。即
ち、第1のケースでは収納許可回数がそのまま、第2の
ケースでは蓄積枚数が、それぞれ書込まれる。
After one of the above subtraction processes is completed, data indicating the number of sheets stored is written in the storage memory in step 105G. That is, in the first case, the number of permitted storages is written as is, and in the second case, the number of accumulated sheets is written.

次いで、ステップ1051において上記減算の結果、未
収納通話料金が零となったか否かが判断され、零であれ
ば次のステップ1052に移行するが、零でなければス
テップ1043に戻シ、順次よシ低額な硬貨について同
様の処理を繰返す。なお、ステップ1045において、
当該金種の硬貨の蓄積がないことが確認された場合には
、プログラムの実行は直ちにステップ1043に移行し
てより低額な硬貨についての処理を行なう。
Next, in step 1051, it is determined whether or not the uncollected call charge has become zero as a result of the above-mentioned subtraction. If it is zero, the process moves to the next step 1052, but if it is not zero, the process returns to step 1043, and the steps are sequentially performed. Repeat the same process for low denomination coins. Note that in step 1045,
If it is confirmed that there is no accumulation of coins of the relevant denomination, the execution of the program immediately moves to step 1043 to perform processing on coins of lower denominations.

この結果、未収納通話料金が丁度零とならないのに全会
1についての処理が一通シ終了してしまった場合、即ち
、未収納通話料金に丁度対応する蓄積硬貨の組合せがな
い場合には、プログラムの実行はステップ1043から
ステップ1053に移行し、未収納通話料金に最低額硬
貨額を加算し、加算後の未収納通話料金について、ステ
ップ1042から前記と同様の処理を繰返す。その結果
、なお未収納通話料金に一致する金額の蓄積硬貨の組合
せが選定できなければ、更に最低額硬貨額を加算して同
様に繰返す。
As a result, if the processing for Plenary Session 1 is completed even though the uncollected call charges do not become exactly zero, that is, if there is no combination of accumulated coins that exactly corresponds to the uncollected call charges, the program The execution moves from step 1043 to step 1053, where the minimum coin amount is added to the uncollected call charges, and the same processing as described above is repeated from step 1042 for the uncollected call charges after the addition. As a result, if a combination of accumulated coins with an amount matching the uncollected call charges cannot be selected, the minimum amount of coins is further added and the same process is repeated.

とのようにして未収納通話料金に一致する蓄積硬貨の組
合せが選定できた場合、即ち、ステップ1051におい
てワーキングメモリの内容としての未収納通話料金が零
となった場合、プログラムの実行はステップ1052に
移行し、収納枚数メモリと蓄積メモリの内容に従って、
収納・返却メモリに収納もしくは返却データを書込んで
行く。これは、先に述べたように、各金程別の収納枚数
を現実に蓄積メモリの内容で示されるように蓄積されて
いる各硬貨に割当てて行く作業であシ、割当ては下位優
先で行なう。
If a combination of accumulated coins that matches the uncollected call charges can be selected as shown in FIG. , and according to the contents of the number of stored sheets memory and storage memory,
The storage or return data is written to the storage/return memory. As mentioned above, this is a task of allocating the number of stored coins for each denomination to each coin actually stored as indicated by the contents of the storage memory, and the allocation is performed with priority given to the lower order.

従って、例えば蓄積されている硬貨が下位から20円、
20円、100円であれば、各蓄積メモリ(0)〜(5
)の内容はそれぞれ″14”(20円)、”14’。
Therefore, for example, the accumulated coins are 20 yen from the lowest,
If it is 20 yen or 100 yen, each storage memory (0) to (5
) are "14" (20 yen) and "14" respectively.

”64”(100円) 、”oo’、 ”oo”である
。これに対し、収納枚数メモリ(0)〜(3)の内容が
それぞれ「1」 。
"64" (100 yen), "oo", "oo".On the other hand, the contents of the storage number memories (0) to (3) are "1", respectively.

rOJ 、 rlJ 、 rOJである場合、即ち10
0円硬貨と20円硬貨とをそれぞれ1枚ずつ収納すべき
場合には、下位から3番目の100円硬貨と、最下位の
20円硬貨を収納すべきことが決定され、2番目の20
円は返却すべきこととなる。この結果、収納・返却メモ
’) (0)〜(2)にはそれぞれ″01”、−oo”
rOJ, rlJ, rOJ, i.e. 10
If one 0 yen coin and one 20 yen coin should be stored, it is determined that the third 100 yen coin from the bottom and the lowest 20 yen coin should be stored, and the second 20 yen coin should be stored.
The yen must be returned. As a result, storage/return memo') (0) to (2) are "01" and -oo, respectively.
.

@Of”のデータが書込まれる。実際に硬貨が蓄積され
ていない蓄積位置に対応する残シの収納・返却メモリ1
31 、 +41の内容は@FF’のままである。
@Of" data is written.Remaining coin storage/return memory 1 corresponding to the storage position where no coins are actually stored.
The contents of 31 and +41 remain @FF'.

このように全蓄積硬貨のそれぞれKついて収納・返却が
決定され、収納・返却メモリに当該データが書込まれた
後、プログラムの実行はステップ1011に移行し、先
に述べた収納処理が行なわれる。
After it is determined whether to store or return each K of all accumulated coins and the data is written in the storage/return memory, the program execution moves to step 1011, where the storage process described above is performed. .

以上、第1図および第2図に示した本発明の1実施例の
動作について、第3図〜第8図の70−チャートを用い
て詳細に説明したが、上に述べたところから明らかなよ
うに、本実施例は次のような効果を有する。
The operation of one embodiment of the present invention shown in FIGS. 1 and 2 has been explained in detail using the 70-charts in FIGS. 3 to 8. As such, this embodiment has the following effects.

即ち、通話継続中は原則として硬貨の収納を行なわず、
通話終了時に、未収納通話料金以上であシかつ当該未収
納通話料金に最も近い総額となる組合せの蓄積硬貨を選
定して収納するため、利用者の釣銭の被害を最小とする
ことができる。
In other words, as a general rule, coins are not stored while the call is ongoing.
At the end of a call, a combination of accumulated coins that is equal to or greater than the uncollected call charge and whose total sum is closest to the uncollected call charge is selected and stored, so that damage to the user's change can be minimized.

また、通話継続中においても、蓄積軌道が満杯であシか
つ未収納通話料金が最下位蓄積硬貨額よυ大きい時に正
貨の追加投入があった場合という条件の下に最下位蓄積
硬貨を収納すると共に上記正貨を蓄積軌道に受入れるよ
うにすることによシ、蓄積軌道の容量による通話可能時
間の制約を免れることができる。特に、蓄積軌道が満杯
でない時を含めて蓄積軌道には正貨のみを受入れるより
にし、無効な硬貨は蓄積しないよう拠したことによシ、
より円滑に通話を継続することが可能である。
Additionally, even if the call is continuing, the lowest accumulated coins will be stored under the condition that additional specie coins are inserted when the accumulated orbit is full and the uncollected call charge is greater than the lowest accumulated coin amount. At the same time, by accepting the genuine coins into the storage track, it is possible to avoid restrictions on the callable time due to the capacity of the storage track. In particular, by making it a rule to accept only specie coins into the storage orbit, including when the storage orbit is not full, and to avoid accumulating invalid coins.
It is possible to continue the call more smoothly.

同様に、通話時間の制約を免れる手段として収納判断処
理ルーチンのプログラムを次のようにするととも有効で
ある。
Similarly, it is effective to program the storage determination processing routine as follows as a means to avoid the restriction on call time.

第2実施例 即ち、第9図は本発明の他の実施例における収納判断処
理ルーチンを示すフローチャートである。
The second embodiment, ie, FIG. 9 is a flowchart showing a storage determination processing routine in another embodiment of the present invention.

同図において、プログラムの実行が収納判断処理に移行
すると、ステップ1060において収納・返却メモリの
内容を″FF”とする命令が実行される。
In the figure, when the execution of the program moves to storage determination processing, an instruction to set the contents of the storage/return memory to "FF" is executed in step 1060.

次に、ステップ1061において正貨の投入が有った〃
・否かを判断し、投入が有ればステップ1D82におい
て蓄積軌道が満杯であるか否かを判断し、満杯であれば
更にステップ1063において未収納通話料金が最下位
蓄積硬貨額を上回っているか否かを判断し、上回ってい
ればステップ1064において収納・返却メモリ(0)
に最下位硬貨の収納を示すデータを書込み、上回ってい
なりればそのまま収納判断処理ルーチンを終了する処理
の流れは第6図を用いて説明した第1実施例の場合と同
様である。
Next, in step 1061, specie was inserted.
- If there is an input, it is determined in step 1D82 whether the accumulation orbit is full or not, and if it is full, it is further determined in step 1063 whether the uncollected call charge exceeds the lowest accumulated coin amount. It is determined whether the
The flow of the process is the same as that of the first embodiment described with reference to FIG. 6, in which data indicating the storage of the lowest coin is written in the storage area, and if the storage value is exceeded, the storage determination processing routine is terminated.

しかし、ステップ1061において正貨の投入が検出さ
れなかった場合、および、ステップ1062において蓄
積軌道が満杯でなかった場合には、プログラムの実行は
ステップ1065に移行し、最下位硬貨額、即ち蓄積メ
モリ(0)の内容が最高額硬貨額に等しいか否かを判断
し、等しい場合には更にステップ1066において未収
納通話料金が最高額硬貨額、即ち最下位硬貨額を上回っ
ているか否かを判断し、上回っていれば、ステップ10
64に移行して収納・返却メモリ(0)に収納データを
書込む0ステツプ1065において最下位硬貨額が最高
額硬貨額に等しくない場合、およびステップ1066に
おいて未収納通話料金が最高額硬貨額以下である場合に
は、直ちに収納判断処理ルーチンを終了する。
However, if the insertion of a specie coin is not detected in step 1061, and if the accumulation track is not full in step 1062, the program execution moves to step 1065, and the lowest coin amount, i.e., the accumulation memory It is determined whether the contents of (0) are equal to the highest coin amount, and if they are equal, it is further determined in step 1066 whether the uncollected call charge exceeds the highest coin amount, that is, the lowest coin amount. and if it is above, step 10
If the lowest coin amount is not equal to the highest coin amount in step 1065, and if the uncollected call charge is less than or equal to the highest coin amount in step 1066, proceed to If so, the storage determination processing routine is immediately terminated.

即ち、正貨の追加投入および蓄積軌道満杯の条件にかか
わシなく、最下位硬貨が最高額硬貨であれば、未収納通
話料金が尚該硬貨額を上回つ九時にはその最下位硬貨を
収納することにょシ、硬貨の追加投入を可能にし、通話
時間を延長することを可能にしたものであるが、上記条
件の下における通話継続中の収納は、通話終了時におけ
る最小被害方式による精算に全く影響を与えないことは
明らかである。
In other words, regardless of the conditions of additional specie input and full accumulation, if the lowest value coin is the highest value coin, the lowest value coin is stored at 9:00 when the uncollected call charge still exceeds the coin amount. However, under the above conditions, collection while the call is continuing will be subject to settlement using the least damage method at the end of the call. It is clear that it has no effect at all.

他の実施例 なお、上述した実施例では正貨の投入を示す選別信号を
CPUに取込み、cPUから一定条件の下に、蓄積レバ
ーを動かす蓄積マグネットに動作指令信号を与える構成
をとったが、正貨投入に示す選別信号を、専用の論理回
路を介して蓄積マグネットに与えることによシ蓄積レバ
ーを動かしても良い。
Other Embodiments In the above-described embodiments, a sorting signal indicating the insertion of specie coins is taken into the CPU, and an operation command signal is given from the cPU to the storage magnet that moves the storage lever under certain conditions. The storage lever may be moved by applying a selection signal indicating the insertion of genuine coins to the storage magnet via a dedicated logic circuit.

その場合、例えば、蓄積軌道が満杯でないか、あるいは
満杯であっても未収納通話料金が最下位硬貨額よシ大き
い場合にCPUからの信号によシ上記論理回路を構成す
るゲートを開ける構成をとっても良い。
In that case, for example, if the storage track is not full, or even if it is full but the uncollected call charge is larger than the lowest coin amount, the gate constituting the logic circuit may be opened by a signal from the CPU. Very good.

また、上述した実施例においては、常時閉状態にある蓄
積レバーを設け、正貨に対してのみ当該が、蓄積軌道の
入シロは常時開状態としておき、蓄積軌道が満杯となっ
てオーバーフローしない限シ、投入硬貨はすべて蓄積す
る方式を用いても、通話時間の制約を免れるという効果
には変わシはない◇即ち、この場合には、例えば当該硬
貨が擬僚貨であることをメモリに記憶し、その硬貨は無
条件に返却として処理すれば良い。しかし、蓄積軌道に
ははじめから正貨のみを蓄積するようにした方がよシ円
滑な処理が可能であることは勿論である。
In addition, in the above-mentioned embodiment, a storage lever that is normally closed is provided, and this applies only to specie coins, but the input end of the storage track is kept open at all times, unless the storage track is full and overflows. Even if a method is used in which all input coins are stored, the effect of escaping the call time restriction remains the same.In other words, in this case, for example, it is stored in memory that the coin in question is a counterfeit currency. However, the coins can be treated as unconditionally returned. However, it goes without saying that a smoother process is possible if only specie coins are stored in the storage orbit from the beginning.

更に、上述した実施例においては、通話終了後に利用者
にとって釣鋏の被害が最小となるような方式で精算して
収納する場合についてのみ説明したが、本発明の適用は
これに限定されるものではカ<、例えば低額硬貨優先あ
るいは高額硬貨優先など任意の収納方式を採用すること
ができる。
Further, in the above-mentioned embodiment, only the case where the user pays and stores the fishing scissors in a manner that minimizes the damage caused to the user after the end of the call is explained, but the application of the present invention is not limited to this. For example, any storage method can be adopted, such as giving priority to low-denomination coins or giving priority to high-value coins.

本発明の効果 即ち、本発明によれば、1蓄積軌道に複数種の硬貨を混
在して蓄積する公衆電話機において、通話継続中は原則
として収納を行なわないが、蓄積軌道が満杯となシかつ
未収納通話料金が最下位蓄積硬貨の硬貨額よシ大きくな
った時に硬貨の追加投入があった場合には最下位の硬貨
を収納することによシ、蓄積容量による通話時間の制約
を巧みに回避しながら任意の方式による精算が可能にな
る。特に、上記収納を正貨の投入があつ九場合に限定す
ると共に正貨のみ蓄積レバーを動作させて蓄積すること
によシ、よシ円滑な処理が可能である0
Effects of the present invention According to the present invention, in a public telephone that stores a mixture of coins of multiple types in one storage track, coins are not stored as a general rule while a call is continuing, but the coins are not stored until the storage track is full. If additional coins are inserted when the unstored call charge becomes larger than the coin amount of the lowest accumulated coin, the lowest accumulated coin is stored, thereby cleverly reducing the call time restriction due to the accumulated capacity. Payment can be made using any method while avoiding the above. In particular, by limiting the above-mentioned storage to only the cases in which specie coins are inserted and accumulating only specie coins by operating the accumulation lever, much smoother processing is possible.

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

第1図は本発明の一実施例を適用した公衆電話機を示す
回路構成図、第2図は第1図の公衆電話機の硬貨軌道の
構成を示す説明図、第3図は第1図の公衆電話機の制御
部におけるメインルーチンプログラムの一例を示すフロ
ーチャート、第4図は同じく割込みルーチンプログラム
の一例を示すフローチャート、第5図は硬貨投入処理ル
ーチンプログラムの一例を示すフローチャート、第6図
は収納判断処理ルーチンプログラムの一例を示すフロー
チャート、第7図は収納判断処理ルーチンプログラムの
一例を示すフローチャート、第8図は精算処理ルーチン
プログラムの一例を示すフローチャート、第9図は収納
判断処理ルーチンプログラムの他の例を示すフローチャ
ートである。 10・・・・電話機回路、20・・・・制御部、21・
・・・入出力ボート、22・−−・中央処理装置、23
・・番・固定メモリ、24・・・・可変メモリ、30・
・・・硬貨処理部、31・・・・硬貨選別装置、32・
・・・蓄積マグネット、33・・・−収納マグネット、
34・ ・・返却マグネット、102・・・轡選別軌道
、103・・φ・蓄積レバー、104・・・・蓄積軌道
、105・・・・収納レバー、106・・・・返却レバ
ー。 特許出願人  株式会社田村電機製作所代理人 山川政
樹(ほか1名) 2900             第5図第6図 第7図
FIG. 1 is a circuit configuration diagram showing a public telephone to which an embodiment of the present invention is applied, FIG. 2 is an explanatory diagram showing the configuration of the coin track of the public telephone in FIG. 1, and FIG. A flowchart showing an example of the main routine program in the control section of the telephone, FIG. 4 is a flowchart showing an example of the interrupt routine program, FIG. 5 is a flowchart showing an example of the coin insertion processing routine program, and FIG. 6 is a flowchart showing an example of the coin insertion processing routine program. A flowchart showing an example of a routine program, FIG. 7 is a flowchart showing an example of a storage judgment processing routine program, FIG. 8 is a flowchart showing an example of a payment processing routine program, and FIG. 9 is another example of a storage judgment processing routine program. It is a flowchart which shows. 10...Telephone circuit, 20...Control unit, 21...
...I/O boat, 22--Central processing unit, 23
・・Fixed memory, 24・・・・Variable memory, 30・
. . . Coin processing section, 31 . . . Coin sorting device, 32.
...Storage magnet, 33...-Storage magnet,
34... Return magnet, 102... Sorting track, 103... φ Accumulation lever, 104... Accumulation track, 105... Storage lever, 106... Return lever. Patent applicant Tamura Electric Manufacturing Co., Ltd. Agent Masaki Yamakawa (and one other person) 2900 Figure 5 Figure 6 Figure 7

Claims (1)

【特許請求の範囲】 (旧つの蓄積軌道に複数種の硬貨を投入順Kls[する
ようにした公衆電話機の硬貨収納方式において、硬貨の
投入を検出する硬貨検出手段と、最下位蓄積硬貨の種類
を判別する硬貨判別手段とを備え、通話継続中は蓄積軌
道が満杯であシかっ未収納通話料金が最下位蓄積硬貨額
よシ大きい時に硬貨の追加投入に応答して最下位硬貨を
収納するようにしたことを特徴とする公衆電話機の硬貨
収納方式。 (2)1つの蓄積軌道に複数種の硬貨を投入順に蓄積す
るようにした公衆電話機の硬貨収納方式において、硬貨
の投入を検出する硬貨検出手段と、投入硬貨が正貨であ
るか否かを選別する硬貨選別手段と、投入硬貨を蓄積軌
道と返却通路に振シ分ける蓄積レバーと、最下位蓄積硬
貨の種類を判別する硬貨判別手段とを備え、通話継続中
は蓄積軌道が満杯であシかつ未収納通話料金が最下位蓄
積硬貨額よシ大きい時の正貨の追加投入に応答して最下
位硬貨を収納すると共に、前記蓄積レバーは、当該最下
位硬貨の収納および蓄積軌道が満杯でない時の正貨の追
加投入に応答して動作して追加投入正貨を蓄積軌道に導
くことを特徴とする公衆電話機の硬貨収納方式。
[Claims] (In a coin storage system of a public telephone in which a plurality of types of coins are placed in an old storage track in the order of insertion Kls[, a coin detection means for detecting the insertion of coins, and a type of coins stored in the lowest order) and storing the lowest coin in response to additional coin insertion when the storage orbit is full and the unstored call charge is larger than the lowest accumulated coin amount while the call is continuing. (2) A coin storage system for a public phone that stores coins of a plurality of types in one storage track in the order in which they are inserted, which detects the insertion of coins. a detection means, a coin sorting means for sorting whether or not an inserted coin is a genuine coin, a storage lever for sorting the inserted coins into a storage track and a return passage, and a coin discrimination means for determining the type of the lowest accumulated coin. The storage track is full and the unaccumulated call charge is larger than the lowest accumulated coin amount while the call is continuing, and the lowest accumulated coin is stored in response to additional insertion of specie coins. A coin storage system for a public telephone, wherein the lever operates in response to storage of the lowest coin and addition of specie coins when the storage track is not full, and guides additionally inserted specie coins to the storage track.
JP5406182A 1982-03-31 1982-03-31 Method for receiving coin of public telephone set Granted JPS58171169A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5406182A JPS58171169A (en) 1982-03-31 1982-03-31 Method for receiving coin of public telephone set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5406182A JPS58171169A (en) 1982-03-31 1982-03-31 Method for receiving coin of public telephone set

Publications (2)

Publication Number Publication Date
JPS58171169A true JPS58171169A (en) 1983-10-07
JPH0137904B2 JPH0137904B2 (en) 1989-08-10

Family

ID=12960093

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5406182A Granted JPS58171169A (en) 1982-03-31 1982-03-31 Method for receiving coin of public telephone set

Country Status (1)

Country Link
JP (1) JPS58171169A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1340319A (en) * 1971-05-05 1973-12-12 Int Standard Electric Corp Coin-box telephone
JPS50131595A (en) * 1974-04-04 1975-10-17

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1340319A (en) * 1971-05-05 1973-12-12 Int Standard Electric Corp Coin-box telephone
JPS50131595A (en) * 1974-04-04 1975-10-17

Also Published As

Publication number Publication date
JPH0137904B2 (en) 1989-08-10

Similar Documents

Publication Publication Date Title
US4192972A (en) Pay-telephone station with deferred collection
US4612418A (en) Method for controlling task process and device thereof
US4028494A (en) Escrow telephone coin collection circuit and method
CA1222334A (en) Fraud prevention in an electronic coin telephone set
US4674114A (en) Fraud prevention in an electronic coin telephone set
EP0349302B1 (en) Method and apparatus for electronic payphone open switch interval management
US4599492A (en) Coin-telephone auditor
JPS58171169A (en) Method for receiving coin of public telephone set
JPS58171167A (en) Method for receiving coin of public telephone set
JPS58171168A (en) Public telephone set
JPS58173955A (en) Public telephone set
JPS58173956A (en) Coin storing system of public telephone set
JPH0320948B2 (en)
GB2078466A (en) Micro-processor controlled coin-box telephone instruments
JPH0137901B2 (en)
JPH0137900B2 (en)
US3890468A (en) Circuit arrangement for ground start coin operated telephones
JPS58137092A (en) Coin storage control system
JPS58137359A (en) Public telephone set
US3881062A (en) Totalizer circuit for coin operated telephones
JPS58137357A (en) Charging system of public telephone set
JPH0137902B2 (en)
AU620765B2 (en) Method and apparatus for electronic payphone open switch interval management
JP3293525B2 (en) Coin storage device
CN2187357Y (en) Telephone set with computer charges counter