JPH0220952A - Public telephone set - Google Patents

Public telephone set

Info

Publication number
JPH0220952A
JPH0220952A JP12657489A JP12657489A JPH0220952A JP H0220952 A JPH0220952 A JP H0220952A JP 12657489 A JP12657489 A JP 12657489A JP 12657489 A JP12657489 A JP 12657489A JP H0220952 A JPH0220952 A JP H0220952A
Authority
JP
Japan
Prior art keywords
coin
coins
storage
stored
memory
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
JP12657489A
Other languages
Japanese (ja)
Other versions
JPH0320948B2 (en
Inventor
Yoshiaki Takeda
竹田 義昭
Makoto Iwabuchi
岩渕 信
Takashi Oyamada
小山田 隆
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 JP12657489A priority Critical patent/JPH0220952A/en
Publication of JPH0220952A publication Critical patent/JPH0220952A/en
Publication of JPH0320948B2 publication Critical patent/JPH0320948B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Prepayment Telephone Systems (AREA)

Abstract

PURPOSE:To adopt an arbitrary receiving system such as low amount coin priority or high amount coin priority, etc., by selecting a combination of accumulated coins which become the total amount exceeding an unreceived speech rate and being the most approximate to the unreceived speech rate, when a speech has been ended. CONSTITUTION:A fraction of an unreceived speech rate is raised to a unit of the lowest coin amount, and a combination of accumulated coins corresponding to the unreceived speech rate is selected. In this case, in order from the highest coin amount, whether a coin exists or not is checked, and with regard to the combination in which its coin exists, a receiving permission frequency is derived by dividing the unreceived speech rate by the coin amount. This processing is executed successively extending from a high amount coin to a low amount coin, which coin and how many coins are to be received are decided, and coins of its combination are received. That is, when a speech has been ended, from the contents of the storage means and the unreceived speech rate, a combination of accumulated coins which become the total amount exceeding the unreceived speech rate and being the most approximate to the unreceived speech rate is selected by a selecting means, and in accordance with its result, coin receiving means 105A, 105B... are driven and the coins are received. In such a way, coins in an arbitrary position can be received.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、1つの蓄積軌道に複数種の硬貨を混在して
蓄積するようにした公衆電話機に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a public telephone set in which a plurality of types of coins are mixed and stored in one storage track.

[従来の技術] 一般に、この種の電話機は使用硬貨の種類に応じて複数
種の蓄積軌道を設けた場合に比較して、構成部品、構成
規模を小さくでき、また利用者も硬貨の種類に応じて硬
貨投入口を逐一確認しながら入れる必要がないなどのメ
リットを有する。
[Prior Art] In general, this type of telephone can have smaller components and a smaller scale than a phone that has multiple types of storage tracks depending on the type of coin used, and the user can also This has the advantage that there is no need to check each coin slot accordingly.

[発明が解決しようとする課題] しかしながら、従来このような電話機では、硬貨は投入
順に蓄積し、且つ蓄積順に収納する他はなく、任意位置
の硬貨を収納することはできなかった。従って、低額硬
貨優先あるいは高額硬貨優先等、任意の収納方式を採用
することができず、利用者の釣銭の被害に考慮を払うこ
とも当然できなかった。
[Problems to be Solved by the Invention] However, conventional telephones have no choice but to store coins in the order in which they are inserted and in the order in which they are accumulated, and it is not possible to store coins in arbitrary positions. Therefore, it is not possible to adopt an arbitrary storage method such as giving priority to low-denomination coins or high-value coins, and it is also impossible to take into account damage to the user's change.

この発明の目的は一つの蓄積軌道に複数種の硬貨を混在
して蓄積する方式をとりながら、簡単な軌道構成により
任意位置の硬貨を収納し得る装置を提供することにある
It is an object of the present invention to provide a device that can store coins at arbitrary positions with a simple track configuration while adopting a method of storing a plurality of types of coins in a mixed manner on one storage track.

[課題を解決するための手段] この発明の構成を第10図を参照して説明する。[Means to solve the problem] The configuration of this invention will be explained with reference to FIG.

図において200は硬貨投入の通路であり、ここに投入
された硬貨は硬貨選別手段201で正貨であるか否かお
よび、その種類を判別するようになっている。104a
、104b・・・・は硬貨選別手段201で選別された
硬貨を順次個別に蓄積する蓄積領域であり、各MFft
領域に蓄積された硬貨の種類は記憶手段203で記憶さ
れるようになっている。204は通話終了時に記憶手段
203の内容と未収納通話料金とから未収納通話料金以
上で当該未収納通話料金に最も近い総額となる蓄積硬貨
の組合せを選定する選定手段である。105a、105
b・・・・は前記蓄積領域の一部を構成し、選定手段2
04によって選定された組合せに該当する硬貨を個別に
収納する収納手段、206は収納された硬貨を収納する
収納通路である。
In the figure, reference numeral 200 denotes a coin insertion passage, and a coin sorting means 201 determines whether or not the coins inserted therein are genuine coins, and the type thereof. 104a
, 104b, . . . are storage areas for sequentially and individually storing coins sorted by the coin sorting means 201, and each MFft
The types of coins accumulated in the area are stored in storage means 203. Reference numeral 204 denotes a selection means for selecting, from the contents of the storage means 203 and the uncollected call charges, a combination of accumulated coins that has a total amount equal to or greater than the uncollected call charges and closest to the uncollected call charges at the end of the call. 105a, 105
b... constitutes a part of the storage area, and the selection means 2
206 is a storage passage for storing the stored coins.

[作用] このように構成された装置は次のように動作する。投入
された硬貨は先ず、硬貨選別手段201で正貨であるか
否かおよび、その種類が判別され、判別された硬貨は蓄
積領域104a、104b・・・・に順次個別に蓄積さ
れると共に記憶手段203で記憶される。
[Operation] The device configured as described above operates as follows. The inserted coin is first judged by the coin sorting means 201 as to whether it is a genuine coin or not and its type, and the judged coins are sequentially accumulated and stored individually in the accumulation areas 104a, 104b, . . . It is stored in means 203.

この動作は10頁から11頁に詳細に記載されているよ
うに、第1図および第2図の記号31で示される硬貨選
別装置によって、投入硬貨がこの電話機で使用を予定さ
れている正貨であるか否か、正貨であった場合にその金
種を判断し、その結果をCPU22の指示によってRA
M24に書き込むことで行われる。そして14頁から1
6頁に詳細に記載されているように、硬貨が選別され正
貨であると判別されると、第2図に記号103cと記載
された蓄積レバーが回動し、硬貨は蓄積軌道104に誘
導される。この蓄積軌道104は斜めに構成されている
ので、最初の硬貨は第2図に記号104Aと記載された
蓄積領域に収容される、その後に選別された硬貨はこの
蓄積領域104Aの位置に収容された硬貨の上を通って
次の蓄積領域104Bに蓄積される。次の硬貨も同様に
して順次、個別に蓄積される 通話終了時には記憶手段203の内容と未収納通話料金
とから、未収納通話料金以上で当該未収納通話料金に最
も近い総額となる蓄積硬貨の組み合わせを選定手段20
4で選定し、その結果に従って硬貨収納手段105A、
105B・・・を駆動し、硬貨を収納する。
As described in detail on pages 10 to 11, this operation is performed by a coin sorting device, indicated by symbol 31 in FIGS. If it is a genuine coin, the denomination is determined, and the result is sent to the RA according to instructions from the CPU 22.
This is done by writing to M24. and 1 from page 14
As described in detail on page 6, when the coin is sorted and determined to be a genuine coin, the storage lever labeled 103c in FIG. 2 rotates, and the coin is guided to the storage track 104. be done. Since this storage track 104 is configured diagonally, the first coin is stored in the storage area marked 104A in FIG. 2, and subsequently sorted coins are stored in the storage area 104A. The accumulated coins pass over the coins that have been accumulated and are accumulated in the next accumulation area 104B. The next coins are accumulated one after another in the same way.At the end of the call, based on the contents of the storage means 203 and the uncollected call charges, the accumulated coins that have a total value that is greater than or equal to the uncollected call charges and closest to the uncollected call charges are selected. Combination selection means 20
4, and according to the result, the coin storage means 105A,
105B... is driven to store coins.

この収納動作は37頁から42頁に詳細に記載されてい
るが、簡単に要約すると、未収納通話料金の端数を最低
硬貨額の単位で切り上げ、未収納通話料金に相当する蓄
積硬貨の組合せを選定する。
This storage operation is described in detail on pages 37 to 42, but to briefly summarize, round up the fraction of uncollected call charges to the lowest coin amount, and calculate the combination of accumulated coins corresponding to the uncollected call charges. Select.

このとき最高硬貨額から順に硬貨の有無がチエツクされ
、その硬貨が存在しているものについて、未収納通話料
金を当該硬貨額で別って収納許可回数を求める。この処
理を高額硬貨から低頷硬貨について順次行い、どの硬貨
をどれだけ収納したら良いかを判断し、釣銭の被害が最
小の組合せを選定して、その組合せの硬貨を収納する。
At this time, the presence or absence of coins is checked in order from the highest coin amount, and for those coins present, the number of permitted collections is determined by dividing the uncollected call charges by the coin amount. This process is performed sequentially for coins with a high value to low nods, determines which coins and how much should be stored, selects the combination that causes the least damage to change, and stores the coins of that combination.

[実施例] 1人反胛 第1図はこの発明を局電源方式の公衆電話機に適用した
場合の一実施例を示す回路構成図である。
[Embodiment] Figure 1 is a circuit configuration diagram showing an embodiment in which the present invention is applied to a central power supply type public telephone.

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

電話機回路10は、局線端子LL、L2により、局線を
介して図示しない交換機に接続されている。
The telephone circuit 10 is connected to an exchange (not shown) via a central office line through central office line terminals LL and L2.

そして、局線端子LL、L2には、着信があることを報
知するベル回路11、交換機からの課金信号を検出する
課金信号受信回路12、ダイオードブリッジ回路13、
リレー接点gs、ダイヤルパルス送出および強制切断回
路14、電源回路15並びに通話回路16が順次配列接
続されている。
The office line terminals LL and L2 include 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,
A relay contact gs, a dial pulse sending and forced disconnection circuit 14, a power supply circuit 15, and a communication circuit 16 are connected in sequence.

この構成において、送受器を置いたオンフック状態では
、接点gsは図示のような状態にあるが、この状態でオ
フフックすると、フックスイッチ40がオンし、リレー
制御回路50が働いて、接点gsは図示と反対側に切り
換わる(以下、これを動作状態もしくはオンすると称し
、図示の状態に戻ることを復旧もしくはオフすると称す
る)、これにより、局線端子LL、L2に対してダイヤ
ルパルス送出および強制切断回路14と、通話回路16
を含む直流ループが閉成される。
In this configuration, in the on-hook state with the handset placed, the contact gs is in the state shown in the figure, but when 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. (Hereinafter, this will be referred to as operating state or turning on, and returning to the state shown in the figure will be referred to as restoring or turning off.) As a result, dial pulses are sent and forced disconnection to station line terminals LL and L2. circuit 14 and call circuit 16
A DC loop is closed.

ここで、前記回路14には直流ループに対して直列にト
ランジスタが挿入されており、通常はオンとなっている
が、制御部20からのダイヤル信号に応じてオン・オフ
を繰り返し、これにより交換機へダイヤルパルスを送出
して相手加入者番号を通知すると共に、同じく制御部2
0から連続的なオフ信号を受けることにより、連続的に
オフ状態としたまま前記直流ループを強制的に切断状態
とすることができる。このようにリレー接点gsを介し
て直流ループの閉成・開放を行うようにしたのは、この
公衆電話機が後収納方式をとっているため、フックスイ
ッチ40をオフした後も、未収納の通話料金を清算する
ために電源を必要とするからである。即ち、回路14に
より直流ループを強制切断して交換機に通話の終了を報
知し、復旧させた後、再びオン状態とし、交換機からの
電流により充電される電源回路15の電源を用いて清算
処理を行うことができる。
Here, a transistor is inserted in the circuit 14 in series with the DC loop, and although it is normally on, it is repeatedly turned on and off in response to a dial signal from the control section 20, thereby causing the switching The controller 2 sends a dial pulse to notify the other party's number, and also sends a dial pulse to the controller 2.
By receiving a continuous OFF signal from 0, the DC loop can be forcibly cut off while remaining in the OFF state continuously. The reason why the DC loop is closed and opened through the relay contact gs is that this public telephone uses a rear storage system, so even after the hook switch 40 is turned off, unstored calls can still be made. This is because a power source is required to settle charges. That is, the DC loop is forcibly cut off by the circuit 14 to notify the exchange that the call has ended, and after recovery, the circuit is turned on again and the settlement process is performed using the power of the power supply circuit 15 that is charged by the current from the exchange. It can be carried out.

なお、前記ダイヤルパルス送出中、通話回路16は制御
部20から入力されるダイヤルシャント信号により短絡
状態となるため、発呼者にダイヤルパルスによる減音は
与えられないようになっている。
Note that while the dial pulse is being sent, the telephone call circuit 16 is short-circuited by the dial shunt signal inputted from the control section 20, so that the caller is not given any sound reduction by the dial pulse.

また電源回路15は、ループ電流によって生ずる定電圧
ダイオードZDI、ZD2のツェナー電圧により逆流阻
止用ダイオードDi、D2.D3゜D4.D5を介して
コンデンサCI、C2,C3を各個に充電し、これらの
端子電圧を電源電圧VEE、VMG、VDDとして制御
部20および硬貨処理部30に供給するもので、コンデ
ンサC1はオフフック時のみ充電されるが、コンデンサ
C2、C3はオンフック時にも充電されるようにしてあ
り、これにより制御部20の後述する可変メモリ24の
バックアップ用として常時必要な電源電圧VERおよび
硬貨の処理に際して電磁石を動作させるために消耗が激
しい電源電圧VEEおよび硬貨の処理に際して電磁石を
動作させるために消耗が激しい電源電圧VGMを確保し
ている。
Further, the power supply circuit 15 operates to reverse current blocking diodes Di, D2, . D3゜D4. Capacitors CI, C2, and C3 are individually charged via D5, and the terminal voltages of these terminals are supplied to the control section 20 and coin processing section 30 as power supply voltages VEE, VMG, and VDD, and the capacitor C1 is charged only when off-hook. However, the capacitors C2 and C3 are charged even when on-hook, thereby operating the power supply voltage VER which is always necessary for backing up the variable memory 24 of the control unit 20, which will be described later, and the electromagnet when processing coins. Therefore, a power supply voltage VEE, which is heavily consumed, is secured, and a power supply voltage VGM, which is heavily consumed to operate the electromagnet during coin processing, is secured.

なお、ダイオードブリッジ回路13は、局線端子LL、
L2間に印加される交換機からの直流電圧の極性にかか
わらず、回路14および電源回路15に加わる電圧の極
性を一定とするためのものである。
Note that the diode bridge circuit 13 has a central line terminal LL,
This is to keep the polarity of the voltage applied to the circuit 14 and the power supply circuit 15 constant regardless of the polarity of the DC voltage from the exchanger applied between L2.

制御部20は、周知の入出力ボート21、中央処理装置
(以下、CPUと称する)22、固定メモリ(以下、R
OMと称する)23、可変メモリ(以下、RAMと称す
る)24に加え、さらにタイミング回路25および可変
条件設定回路26を備えている。このタイミング回路2
5は、■周期のパルスを発生する発振回路回路構成され
、後述するようにCPU22に対し、メインプログラム
の処理に対して、25m5で割り込みを行わせるための
割り込み信号を与えるためのものである。また、可変条
件設定回路26は、例えば市内通話における単位通話料
金、即ちタリフを任意に設定するためのもので、デジタ
ルスイッチ等によって構成される。
The control unit 20 includes a well-known input/output board 21, a central processing unit (hereinafter referred to as CPU) 22, and a fixed memory (hereinafter referred to as R
In addition to a variable memory (hereinafter referred to as RAM) 24, a timing circuit 25 and a variable condition setting circuit 26 are provided. This timing circuit 2
Reference numeral 5 denotes an oscillation circuit that generates a pulse with a period of 2, and is used to give an interrupt signal to the CPU 22 to interrupt the processing of the main program at 25m5, as will be described later. Further, the variable condition setting circuit 26 is for arbitrarily setting a unit call charge, that is, a tariff, for example in a local call, and is constituted by a digital switch or the like.

前記構成において、オフフックによりフックスイッチ4
0がオンとなった場合、リレー制御回路50によって接
点gsが動作され、直流ループが閉成されて電源回路1
5のコンデンサC1が充電される。この結果、CPU2
2に電源電圧VDDが供給され、CPU22は予めRO
M23に格納された処理プログラムに従って、RAM2
4に対し必要なデータの書き込み、読み出しを行いなが
ら所定の制御動作を実行する。この動作については後に
フローチャートを用いて詳細に説明する。
In the above configuration, the off-hook causes the hook switch 4 to
0 is turned 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
2 is supplied with the power supply voltage VDD, and the CPU 22
According to the processing program stored in M23, RAM2
A predetermined control operation is executed while writing and reading necessary data to and from the memory. This operation will be explained in detail later using a flowchart.

硬貨処理部30は、硬貨選別装置31、蓄積マグネット
32、第1〜第4の収納マグネット33A〜33D、お
よび返却マグネット34から構成される。
The coin processing unit 30 includes a coin sorting device 31, a storage magnet 32, first to fourth storage magnets 33A to 33D, and a return magnet 34.

ここで、硬貨選別装置31は、投入された硬貨が当電話
機において使用が予定されている正貨であるか否かおよ
び、正貨であるとしてその金種を判断するためのもので
あり、例えば硬貨の落下軌道を挟んで対向して配置され
た発光素子および受光素子からなる光センサを備えた硬
貨外径識別装置と、同じく落下軌道を挟んで対向して配
置され、かつ相互に電磁的に結合した発振コイルおよび
受信コイルからなる検知コイルを備えた硬貨材質選別装
置とによって構成することができる。すなわち前者は落
下する硬貨が発光・受光素子間の光路を遮る時間が当該
硬貨の外径によって異なることを利用するもの、後者は
例えば受信コイルに誘導される出力電圧のピーク値が両
コイル間に介在する硬貨の材質により異なることを利用
するものであるが、この発明の適用において、この硬貨
選別装置の構成はこれに限られるものではなく、他の任
意の選別手段を用い得るものであるから、詳細な説明は
省略する。
Here, the coin sorting device 31 is for determining whether or not the inserted coin is a genuine coin that is scheduled to be used in this telephone, and the denomination of the coin if it is a genuine coin, for example. A coin outer diameter identification device equipped with an optical sensor consisting of a light-emitting element and a light-receiving element arranged opposite to each other across the falling trajectory of the coin; The coin material sorting device includes a detection coil consisting of a coupled oscillation coil and a reception coil. In other words, the former utilizes the fact that the time a falling coin interrupts the optical path between the light emitting and light receiving elements differs depending on the outer diameter of the coin, while the latter utilizes the fact that the peak value of the output voltage induced in the receiving coil is between the two coils. This method utilizes the fact that the coin sorting device differs depending on the material of the intervening coin, but in application of the present invention, the configuration of this coin sorting device is not limited to this, and any other sorting means can be used. , detailed explanation will be omitted.

前記の外径および材質選別装置の選別結果により、正貨
か疑似貨かの判定を行い、正貨であればその種別に対応
する選別信号がCP tJ 22に送出され、RAM2
4の一定領域にメモリされる。例えば、使用される硬貨
が100円、50円、20円、10円の4金種であると
すれば、RAM 24の特定メモリエリアを硬貨投入メ
モリとし、その下位4ビツトを各金種に対応させ、10
0円硬貨を示す選別信号の入力があれば上位から5番目
、以下、順次低額になるに従ってそれぞれ6番目。
Based on the sorting results of the outer diameter and material sorting device, it is determined whether the coin is a genuine coin or a counterfeit coin, and if it is a genuine coin, a sorting signal corresponding to the type is sent to the CP tJ 22 and stored in the RAM 2.
It is stored in a certain area of 4. For example, if the coins used are of four denominations: 100 yen, 50 yen, 20 yen, and 10 yen, a specific memory area of the RAM 24 is used as the coin input memory, and the lower 4 bits correspond to each denomination. let 10
If a sorting signal indicating a 0 yen coin is input, the coin will be ranked 5th from the top, and then the coins will be ranked 6th as the denomination decreases.

7番目、8番目のビットを「1」とするようにすれば、
この硬貨投入メモリの内容を見ることにより、どの金種
の正貨が投入されたか確認することができる。なお、硬
貨選別装置31から制御部20への信号線に斜線を入れ
、傍らに「4」の数字を付したのは4金種についてそれ
ぞれ選別信号送出用の信号線が設けであることを示した
ものである。なお、前述したような投入硬貨の検知選別
は、後述するように割り込み処理プログラムの先頭に置
かれたエツジ検出処理ステップにおいて25s+s周期
で行われる。
If you set the 7th and 8th bits to "1",
By looking at the contents of this coin insertion memory, it is possible to confirm which denomination of genuine coin has been inserted. 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 The detection and sorting of inserted coins as described above is carried out every 25s+s in an edge detection processing step placed at the beginning of the interrupt processing program, as will be described later.

蓄積マグネット32.第1〜第4の収納マグネット33
A〜33D、返却マグネット34は、それぞれ後述する
蓄積レバー、第1〜第4の収納レバー、返却レバーを動
作させるもので、制御部20からの動作指令信号により
動作される。これらについては後に第2図を用いて説明
を補足する。
Storage magnet 32. First to fourth storage magnets 33
A to 33D and the return magnet 34 operate an accumulation lever, first to fourth storage levers, and a return lever, which will be described later, respectively, and are operated by an operation command signal from the control unit 20. A supplementary explanation of these will be provided later using FIG. 2.

また、表示回路60は、例えば周知の7セグメン表示方
式の表示器およびこれを制御する表示制御回路から構成
され、制御部20の制御に基づいて、蓄積硬貨総額から
未収納通話料金を減じた未使用硬貨、即ちクレジットの
値を表示して発呼者に知らせる。この表示器60の構成
は特に限定されないが、消費電力の抑制の観点からは例
えば液晶表示器が好適である。
The display circuit 60 is composed of, for example, a well-known 7-segment display type display and a display control circuit that controls the display, and the display circuit 60 also includes an unaccumulated call fee subtracted from the total amount of accumulated coins based on the control of the control unit 20. The value of the used coins, ie, credits, is displayed and notified to 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 the embodiment has been described above, and FIG. 2 shows an outline of its track configuration.

第2図において、硬貨投入口100から投入された硬貨
101は傾斜した選別軌道102を転勤落下しながら硬
貨選別装置31による選別を受ける。選別軌道102の
下端は、図示しない返却口へ通じているが、その途中に
蓄積レバー103が配置されている。
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. The lower end of the sorting track 102 leads to a return port (not shown), and a storage lever 103 is disposed in the middle thereof.

この蓄積レバー103は、中心線103aの回りに回動
自在に構成され、図上省略したが通常は軌道側壁に穿設
された孔からレール部103bを軌道内に出して蓄積軌
道104の入口をふさいでいる。したがって、通常は硬
貨101はこのレール部103bの上を通って矢印Aで
示すように返却口へ返却される。これに対し、後述する
ようにCPU22からの動作指令信号により蓄積マグネ
ット32が励磁された場合、アーマチュア103Cが吸
引されて回動し、レール部103bが軌道から引っ込む
。このため、硬貨101は蓄積軌道104に入る。
The storage lever 103 is configured to be rotatable around a center line 103a, and although not shown in the figure, normally the rail portion 103b is brought out into the track through a hole drilled in the side wall of the track, and the entrance of the storage track 104 is opened. It's blocked. Therefore, the coin 101 normally passes over this rail portion 103b and is returned to the return slot as shown by arrow A. On the other hand, when the storage magnet 32 is excited by an operation command signal from the CPU 22 as described later, the armature 103C is attracted and rotates, and the rail portion 103b is retracted from the track. Therefore, the coin 101 enters the accumulation trajectory 104.

蓄積軌道104はそれぞれ第1〜第4の収納レバー10
5A〜105Dと、第1〜第4の返却レバー106A〜
106Dを備えた4個の蓄積領域104A〜104Dに
よって構成される。各収納レバー105A〜105Dお
よび返却レバー106A〜106Dは基本的に前述した
N積しバー103と同様の構成を有し、常時はそのレー
ル部を軌道内に出している。そこで、初めに蓄積軌道1
04に入った硬貨101は、最上位の蓄積領域104A
に蓄積される。次いで蓄積軌膚・104に入った硬貨は
、先に蓄積領域104Aに蓄積された硬貨の上を通って
第2の蓄積領域104Bに入る。
The storage tracks 104 correspond to the first to fourth storage levers 10, respectively.
5A to 105D and the first to fourth return levers 106A to
It is constituted by four storage areas 104A to 104D with 106D. Each of the storage levers 105A to 105D and the return levers 106A to 106D basically have the same configuration as the above-mentioned N stacking bar 103, and normally have their rail portions exposed within the track. Therefore, at the beginning, the accumulation trajectory 1
The coin 101 that entered 04 is stored in the highest accumulation area 104A.
is accumulated in Next, the coins entering the accumulation track 104 pass over the coins previously accumulated in the accumulation area 104A and enter the second accumulation area 104B.

以下、順次第3.第4の硬貨が第3.第4の収納マグネ
ット33A〜33Dが励磁され、収納レバー105A〜
105Dが回動してそのレール部が軌道から引っ込んだ
場合には、各硬貨は矢印Bに示すように、図示しない金
庫に収納される。また返却レバー106A〜106Dに
ついては、図上そのレール部のみ示したが、基本的には
前述した蓄積レバー103および収納レバー105A〜
105Dと同様の構成を有し、図上省略した返却マグネ
ット34が励磁された場合、回動して前記レール部が軌
道から引っ込む、この場合、各返却レバー106A〜1
06Dは連動して一斉に動作するため、蓄積硬貨は各収
納レバー105A〜105Dのレール部上を転勤落下し
て矢印Fで示すように返却口へ導かれる。なお、前記各
マグネットとレバーとの具体的な構成は任意である。
Below, in order: 3. The fourth coin is the third. The fourth storage magnets 33A to 33D are excited, and the storage levers 105A to 33D are excited.
When 105D rotates and its rail portion retracts from the track, each coin is stored in a safe (not shown) as shown by arrow B. Regarding the return levers 106A to 106D, only the rail portion thereof is shown in the figure, but basically the above-mentioned storage lever 103 and storage lever 105A to
When the return magnet 34, which has the same configuration as 105D and is omitted in the figure, is excited, it rotates and the rail portion retracts from the track. In this case, each return lever 106A to 1
06D operate all at once in conjunction with each other, the accumulated coins fall on the rails of each storage lever 105A to 105D and are guided to the return slot as shown by arrow F. Note that the specific configurations of each of the magnets and levers are arbitrary.

仇酌皮呼 次にこの構成の装置の動作を第3図〜第8図のフローチ
ャートを用いて説明する。なお、ここでの説明は、この
発明に特有な処理を流れを理解する上で必要な範囲に限
定したものであり、CPUを用いた制御において当然に
必要とされる周知の処理動作の詳細については省略しで
ある。
Next, the operation of the apparatus having this configuration will be explained using the flowcharts shown in FIGS. 3 to 8. Note that the explanation here is limited to the range necessary for understanding the flow of processing unique to this invention, and details of well-known processing operations that are naturally required in control using a CPU are not provided. is omitted.

金体l団ゴへ魁1 初めに、第3図に示すメインルーチンおよび第4図に示
す割り込みルーチンについて全体的な動作の流れを説明
する。
First, the overall flow of operations of the main routine shown in FIG. 3 and the interrupt routine shown in FIG. 4 will be explained.

先にも述べた通り、この実!#、例においては、第3図
に示すメインルーチンに対し、25m5の周期で割り込
み信号が入り、第4図のルーチンが割り込み処理される
。実際に割り込みルーチンの処理に要する時間は場合に
より一定ではないが、25IIIs毎に処理が開始され
、一連のステップを経て再びメインルーチンの処理に戻
る動作が繰り返される。
As mentioned earlier, this fruit! In the example, 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 depending on the case, processing is started every 25IIIs, and the operation of returning to the main routine processing after passing through 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, the DC loop is closed, and the supply of the power supply voltage VDD becomes possible.

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

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

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

ここでは、入出力ボート21を介して電話機回路部10
および硬貨処理部30から入力される各入力信号をチエ
ツクし、その結果を示すデータをRAM24の所定のメ
モリエリアに格納する。例えば課金信号受信回路12を
通じて課金信号の入力があった場合には、課金フラグメ
モリの内容を[1」として、課金信号の到来を示す課金
フラグをセットする。また、硬貨選別装置31から選別
信号の入力があれば、前述したように硬貨投入メモリに
当該硬貨の投入を示すデータが書き込まれる。
Here, the telephone circuit unit 10 via the input/output boat 21
and each input signal input from the coin processing section 30, and stores data representing the results in a predetermined memory area of the RAM 24. For example, when a billing signal is input through the billing signal receiving circuit 12, 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, when a sorting signal is input from the coin sorting device 31, data indicating the insertion of the coin is written into the coin insertion memory as described above.

次にプログラムの実行はダイヤル制御処理ステップ20
01に移行する。即ち、キーボード70によって構成さ
れた押しボタンダイヤルからの入力があれば、それに応
じて市内か市外か、また無料や禁止の番号でないか等、
ダイヤル番号種類の判定等が行われるが、この発明の要
旨には直接関係しないので詳細な説明は省略する。
Next, the program is executed in dial control processing step 20.
01. That is, if there is an input from the push-button dial configured by the keyboard 70, it will be possible to determine whether the number is within the city or outside the city, whether it is a toll-free number or a prohibited number, etc.
Determination of the type of dial number, etc. is performed, but since it is not directly related to the gist of the present invention, a 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, detailed explanation will be omitted.

次いで、プログラムの実行は課金演算処理ステップ20
03に移行する。
Next, the program is executed in billing calculation processing step 20.
Move to 03.

ここでは前記課金フラグメモリにフラグがセットされて
いるか否かをチエツクし、セットされていれば、RAM
24の一部に設けられた課金メモリの内容を1インクリ
メントすると共に、同じくRAM24の一部に設けられ
た未収納通話料金メモリの内容を更新する。前記課金メ
モリの内容は、前述したように課金信号が到来するごと
に1ずっ加算される一方、後述するように収納判断処理
が行われる毎に1ずつ減算される。また、未収納通話料
金メモリは、未収納の通話料金を示すデータを格納する
ものである。従って、その内容はこの課金演算処理ステ
ップ2003において1課金毎にタリフ分ずつ加算され
る一方、後述するように収納処理において硬貨の収納が
あった場合には、収納硬貨領分だけ減算される。他方、
前述したように課金フラグがセットされている場合には
、クレジットメモリの内容からタリフ分を減算する。
Here, it is checked whether or not a flag is set in the billing flag memory, and if it is set, it is stored in the RAM.
The contents of the charging memory provided in a part of the RAM 24 are incremented by 1, and the contents of the uncollected call charge memory also provided in a part of the RAM 24 are updated. The contents of the billing memory are incremented by 1 each time a billing signal arrives, as described above, and are subtracted by 1 each time storage determination processing is performed, as will be described later. The uncollected call charge memory stores data indicating uncollected call charges. Therefore, the content is incremented by the tariff amount for each charge in this charge calculation processing step 2003, while, as will be described later, when coins are stored in the storage process, the amount of the stored coin area is subtracted. On the other hand,
If the billing flag is set as described above, the tariff is subtracted from the contents of the credit memory.

このクレジットメモリはRAM24の一部に設けられ、
クレジットを示すデータを格納するものである。なお、
前記減算の結果、クレジットが0より小さくなった場合
には、RAM24の特定エリアに設けられたフック処理
フラグメモリの内容を「1」として、後述するフック処
理を指示するフック処理フラグをセットする。
This credit memory is provided in a part of the RAM 24,
It stores data indicating credits. In addition,
If the credit becomes smaller than 0 as a result of the subtraction, the content of the hook processing flag memory provided in a specific area of the RAM 24 is set to "1", and a hook processing flag instructing a hook processing to be described later is set.

これに対し、課金フラグがセットされていなければ、プ
ログラムの実行は直ちに次の硬貨投入処理ステップ20
04に移行する。
On the other hand, if the charging flag is not set, the program execution immediately proceeds to the next coin insertion processing step 20.
Move to 04.

この硬貨投入処理ステップ2004においては、後に第
5図のフローチャートを用いて詳述するように、前記硬
貨投入メモリの内容により、硬貨の投入をチエツクし、
一定の条件の下に蓄積マグネット32を動作させ、硬貨
の蓄積を許可する。
In this coin insertion processing step 2004, as will be explained 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 to allow coins to be stored.

次のタイマ処理ステップ2005においては、RAM2
4に設けられた各種タイマリクエストフラグメモリの内
容に応じ、フラグがセットされていれば、同じ<RAM
24に設けられた、各タイマの内容を1インクリメント
する。すなわち、タイマリクエストフラグがセットされ
ている間、25■S周期でタイマの内容がインクリメン
トされるため、このタイマの内容によって計時が行える
In the next timer processing step 2005, RAM2
According to the contents of the various 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 one. That is, while the timer request flag is set, the contents of the timer are incremented every 25 seconds, 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 number 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において行われ、
所定のフラグメモリに診断結果を示すフラグがセットさ
れる。従って、ステップ1001における処理自体は、
所定のフラグレジスタの内容をチエツクすることである
が、この発明の要旨には直接関係しないため詳細な説明
は省略する。
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 system uses various sensors (not shown) placed on the coin accumulation track to self-diagnose the presence or absence of coin jams and other failures, but the actual output state of the Senna system is detected in the edge detection processing step. Conducted in 2000,
A flag indicating the diagnosis result is set in a predetermined flag memory. Therefore, the process itself in step 1001 is
The purpose of this 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に移行し、返却レバー1
06A〜106Dを硬貨返却阻止状態として硬貨を蓄積
できるようにする。
If it is confirmed that there is no abnormality, the program execution moves to call permission processing step 1002, and return lever 1 is pressed.
06A to 106D are placed in a coin return prevention state so that coins can be accumulated.

従って、ここで発呼者が硬貨を投入してダイヤル繰作を
行い、被呼者が応答すれば通話状態に入る。
Therefore, the calling party inserts a coin and performs a dialing process, and if the called party answers, the call state is entered.

次いで、プログラムの実行は、オンフックか否かの判断
処理ステップ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 the off-hook state is confirmed by checking the input signal from the hook switch 40, the program moves to the next storage determination step 1004. . On the other hand, if an on-footer 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, coins to be stored are determined according to certain conditions, as will be explained in detail later using the flowchart of FIG.

次いで、プログラムの実行はフック処理フラグがセット
されているか否かの判断処理ステップ1005に移行す
る。フラグがセットされていなければ、次の収納処理ス
テップ1006に移行する。
Next, program execution moves to step 1005, where it is determined whether the hook processing flag is set. 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, coins are 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.

次いでプログラムの実行はフック処理フラグがセットさ
れているか否かの判断処理ステップ1007に移行し、
フラグがセットされていればフック処理ステップ100
9に移行する。フラグがセットされていなければステッ
プ1003に戻る。
Next, program execution moves to step 1007, where it is determined whether the hook processing flag is set.
If the flag is set, hook processing step 100
Move to 9. If the flag is not set, the process returns to step 1003.

以降、通話が有効に継続される限り、ステップ1003
からステップ1007までの処理が繰り返し実行される
Thereafter, as long as the call continues effectively, step 1003
The processes from step 1007 to step 1007 are repeatedly executed.

フック処理ステップ1009では、前記ダイヤルパルス
送出および強制切断回路14のトランジスタをオフする
ことにより、接点gsを動作状態としたままで、800
濡Sの間だけ直流ループが切断される。これにより交換
機に対しては通話の終了を通知できると共に、電源回路
はオフフック時と同様の状態を保持したまま、次の清算
処理ステップ10 ]、 Oに移行できる。なお、この
時点で交換機は復旧するから、もはや課金信号の到来は
なくなる。
In the hook processing step 1009, the transistor of the dial pulse sending and forced disconnection circuit 14 is turned off, thereby keeping the contact gs in the operating state.
The DC loop is cut only during wet S. As a result, the exchange can be notified of the end of the call, and the power circuit can proceed to the next clearing process step 10], O while maintaining the same state as when off-hook. It should be noted that at this point, the exchange is restored, so the billing signal no longer arrives.

清算処理ステップ1010においては、後に第8図のフ
ローチャートを用いて説明するように、未収納通話料金
を利用者にとっての釣銭の被害が最も少なくなるような
方法で清算する蓄積硬貨の組合せを選定する。
In the settlement process step 1010, as will be explained later using 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 to the user. .

次いで、プログラムの実行は収納処理ステップ1011
に移行する。ここでは前記清算処理ステップ1010に
おいて選定された組合せに従って、当該組合せに該当す
る硬貨を収納する。プログラム自体は先に述べた収納処
理ステップ1006と同様であり、後に第7図のフロー
チャートを用いて詳細に説明する。
Next, the program is executed in storage processing step 1011.
to move to. Here, according to the combination selected in the settlement process step 1010, coins corresponding to the combination are stored. 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に移行す
る。ここでは、前記清算処理において決定した最終的な
返却類の所定表示時間が経過したことを確認し、かつ電
源電圧VGMが4.5v以上に充電されたことを確認し
、更にオンフック状態が継続していることを確認した上
で、接点gsを復旧させると共に、返却マグネット34
を動作させて残った硬貨を返却口に返却する。
Program execution then moves to termination step 1012. Here, it is confirmed that the predetermined display time for the final return item determined in the payment process has elapsed, it is confirmed that the power supply voltage VGM has been charged to 4.5V or more, and the on-hook state continues. After confirming that the contact gs is restored, return magnet 34
and return the remaining coins to the return slot.

次に、先に述べたように、硬貨投入処理、収納判断処理
、収納処理、清算処理の各ステップについて、第5図〜
第8図のフローチャートを用いて詳細に説明するが、そ
こでの理解を容易にするために、ここで、特に重要ない
くつかのメモリについて次の表に掲げ、その構成につい
てまとめて説明しておく。なお、これらのメモリは、先
に説明した硬貨投入メモリ、未収納通話料金メモリ、ク
レジットメモリ等と同様に、RAM24の特定エリアを
利用して設けられ、収納メモリ以外はそれぞれ8ビツト
の容量を有している。
Next, as mentioned earlier, each step of the coin insertion process, the storage judgment process, the storage process, and the settlement process is explained in Figures 5 to 5.
This will be explained in detail using the flowchart in Figure 8, but in order to make it easier to understand, some particularly important memories are listed in the table below, and their configurations will be summarized and explained. . These memories, like the coin insertion memory, uncollected call charge memory, credit memory, etc. described earlier, are provided using specific areas of the RAM 24, and each of them except the storage memory has a capacity of 8 bits. are doing.

第1表 先ず、蓄積メモリは、蓄積軌道104の各蓄積領域にど
の金種の硬貨が蓄積されているかを示すデータを格納す
るものである。ここでは蓄積軌道104の蓄積容量は4
枚であるから、(0)〜(3)の4個の蓄積メモリが、
それぞれ最上位から順次最下位まで4個の蓄積領域10
4A〜104Dに対応し、それぞれ蓄積されている硬貨
の硬貨額を示すデータを格納する。先に述べたように、
この電話機で使用される4fiの硬貨が、100円、5
0円、20円、10円の硬貨であるものとすれば、これ
らの硬貨額を示すデータ、即ち16進表記でr64」(
100円)、r32」(50円)、「14J (20円
>、roAJ (10円)の各データが格納される。
Table 1 First, the storage memory stores data indicating which denomination of coins are stored in each storage area of the storage track 104. Here, the storage capacity of the storage orbit 104 is 4
Since there are 4 storage memories (0) to (3),
4 storage areas 10 each sequentially from the highest level to the lowest level
Corresponding to 4A to 104D, data indicating the amount of each accumulated coin is stored. As mentioned earlier,
The 4fi coins used in this phone are 100 yen, 5
If the coins are 0 yen, 20 yen, and 10 yen, the data indicating the amount of these coins, that is, r64 in hexadecimal notation.
100 yen), "r32" (50 yen), "14J (20 yen>), and roAJ (10 yen)" are stored.

次に、蓄積枚数メモリは、蓄積軌道全体にどの金種の硬
貨が何枚蓄積されているかを示すデータを格納するもの
であり、(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 low denomination coins (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).

また、収納メモリはどの蓄積位置の硬貨を収納すべきか
を示すデータを格納するものである。即ち、1バイトの
メモリエリア中の最下位から4ビツト目までがそれぞれ
最上位から最下位までの各蓄積領域に対応しており、当
該ビットが「1」の場合、対応する蓄積位置の硬貨を収
納すべきことを示す、従って、この収納メモリの内容は
、前記収納メモリの内容に示される収納枚数を、各蓄積
領域の硬貨に割り当てたものになっている。割り当ては
例えば最上位から行われる。即ち、10円硬貨が最下位
と最上位に蓄積されている場合に、その収納枚数が1枚
であれば、収納メモリの最上位の蓄積領域に対応する最
下位のビットに「1」が書き込まれる。
Further, the storage memory stores data indicating which storage position coins should be stored. In other words, the lowest to fourth bits in a 1-byte memory area correspond to each storage area from the highest to the lowest, and if the bit is "1", the coin at the corresponding storage position is stored. The contents of this storage memory, which indicate that coins should be stored, are the number of coins to be stored, which is indicated by the contents of the storage memory, and are assigned to the coins in each storage area. Assignment is performed, for example, from the top level. In other words, if 10 yen coins are stored in the lowest and highest positions, and the number of stored coins is 1, "1" is written to the lowest bit corresponding to the highest storage area of the storage memory. It will be done.

鼠皮長入延l 第5図は、硬貨投入処理ルーチンを示すフローチャート
である。この硬貨投入処理ルーチンは前述したように、
25+*s周期で開始される割り込みルーチンにおいて
、課金演算処理に引き続いて実行される。プログラムの
実行が硬貨投入処理に移行すると、先ずステップ201
0において、新たな正貨の投入があったか否かの判断が
行われる。
Figure 5 is a flowchart showing the coin insertion processing routine. As mentioned above, this coin insertion processing routine is
The interrupt routine starts every 25+*s and is executed following the billing calculation process. When the program execution moves to coin insertion processing, first step 201
At 0, a determination is made as to whether new specie has been inserted.

これは前記硬貨投入メモリに格納されたデータをチエツ
クすることにより行われる。即ち、硬貨投入メモリのそ
れぞれの金種に対応するビットが「1」であれば、当該
金種の正貨の投入があったことになる。
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に移行し、
蓄積軌道が満杯であるか否かを判断する。これは、前記
最下位に対応する蓄積メモリ(3)に硬貨類データが書
き込まれているか否かで判定することができる。
Now, the denomination itself does not matter, but if the input of specie is confirmed, the program execution moves to step 2011,
Determine whether the storage orbit is full. This can be determined by checking whether coin data has been written in the storage memory (3) corresponding to the lowest level.

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

このようにM積を許可した場合には、次いで硬貨投入演
算処理ステップ2013において、クレジットメモリお
よび蓄積メモリ並びに蓄積枚数メモリの内容の更新が行
われる。即ち、クレジットメモリの内容に新たに蓄積し
た硬貨の硬貨額を加算すると共に、硬貨額データの書き
込みがない蓄積メモリのうちで最も上位の蓄積領域に対
応するものに硬貨額データを書き込み、更に当該金種に
対応する蓄積枚数メモリの内容を1インクリメントする
If M products are permitted in this manner, then in coin insertion calculation processing step 2013, the contents of the credit memory, storage memory, and storage number memory are updated. 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 area corresponding to the highest storage area among the storage memories in which no coin amount data is written, and then the corresponding coin amount data is added to the contents of the credit memory. The contents of the accumulated number of coins memory corresponding to the denomination are incremented by one.

これに対し、ステップ2010において正貨の投入が検
出されなかった場合、およびステップ2011において
蓄積軌道が既に満杯であった場合には、以降の処理を行
わず直ちに硬貨投入処理ルーチンを終了する。前者の場
合は、硬貨の追加投入が全く無かった場合と、投入はあ
ったが疑似貨であった場合とがあるが、この疑似貨は、
蓄積レバー103が動作しないため、直接返却口へ返却
される。同様に蓄積軌道が満杯の場合も、投入硬貨はそ
のまま返却口に返却される。
On the other hand, if insertion of a genuine coin is not detected in step 2010, and if the accumulation track is already full in step 2011, the coin insertion processing routine is immediately ended without performing subsequent processing. In the former case, there are cases where no additional coins were inserted, and cases where coins were inserted but were pseudo coins.
Since the storage lever 103 does not operate, the item is returned directly to the return slot. Similarly, if the storage track is full, the inserted coins will be returned to the return slot as is.

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

媛旌に4廼1 第6図は収納判断処理ルーチンを示すフローチャートで
ある。この収納判断処理は、先に述べたように、通話の
継続中において収納すべき硬貨を決定する際に行われる
Figure 6 is a flowchart showing the storage determination processing routine. As described above, this storage determination process is performed when determining the coins to be stored while the call continues.

プログラムの実行が収納判断処理に移行すると、先ずス
テラ71020において収納メモリの内容のクリアが行
われる。
When the execution of the program shifts to storage determination processing, first, the contents of the storage memory are cleared in Stella 71020.

次いで、ステップ1021において新たな課金信号の到
来があったか否かの判断を行う。この判断は、前述した
課金レジスタの内容がrQJか否かで行う。
Next, in step 1021, it is determined whether a new billing signal has arrived. This determination is made based on whether the contents of the billing register described above are rQJ.

課金レジスタの内容が「0」でない場合、即ち前回の収
納判断から今回の収納′#Ig@処理までの間に新たな
課金信号の到来があった場合には、次のステップ102
2において前記課金レジスタの内容を「1」減算し、ス
テップ1023以降の実質的な収納判断処理を開始する
。これに対し、課金レジスタの内容が[0」である場合
には、実質的な処理には入らずに直ちにこの収納判断処
理ルーチンを終了する。
If the content of the charging register is not "0", that is, if a new charging signal arrives between the previous collection decision and the current collection '#Ig@ processing, the process proceeds to the next step 102.
In step 2, the content of the charge register is subtracted by "1", and the actual collection determination process starting from step 1023 is started. On the other hand, if the content of the charging register is [0], the collection determination processing routine is immediately ended without entering into the actual processing.

そこで、課金レジスタの内容の減算を行った場合、先ず
最高額硬貨がち順に、蓄積硬貨の有無をチエツクするこ
とから行われるが、はじめにステップ1023において
全金種の処理が終了したか否かを判断し、終了していな
ければ、ステップ1024において最高額硬貨に対応す
る蓄積枚数メモリ(0)から順に指定して、硬貨の有無
をチエツクする。
Therefore, when subtracting the contents of the billing register, first the presence or absence of accumulated coins is checked in order of the highest denomination coin, but first, in step 1023, it is determined whether processing for all denominations has been completed. However, if the coins have not been completed, in step 1024, the presence or absence of coins is checked by specifying them in order from the stored number memory (0) corresponding to the highest coin value.

そこで、ステップ1025において当該金種の硬貨の蓄
積があることが確認された場合には、次のステップ10
26において、未収納通話料金を当該硬貨額で割って収
納許可回数、即ち当該硬貨をその回数分だけ収納しても
未収納通話料金を越えない最大限の回数を求める。
Therefore, if it is confirmed in step 1025 that coins of the relevant denomination are accumulated, the next step 10
At step 26, the uncollected call charge is divided by the amount of the coin to find the number of permitted storages, that is, the maximum number of times that the coin can be collected for the number of times without exceeding the uncollected call charge.

次いで、ステップl027において、前記回数が「0」
であるか否かを判断し、r□、であれば直ちに収納判断
処理ルーチンを終了する0例えばはじめ未収納通話料金
が10円であるのに対して、100円硬貨の蓄積がある
場合には、その100円硬貨はまだ収納することができ
ない。
Next, in step l027, the number of times is set to "0".
If it is r , the 100 yen coin cannot be stored yet.

これに対して前記収納許可回数が「o」でなければ、次
のステップ1028において収納メモリに収納を示すデ
ータを書き込む、即ちここでは先ず、当該金種の硬貨の
蓄積領域を蓄積メモリの内容から確認し、その蓄積領域
に対応する収納メモリのビットアドレスのビットを「1
」とする。例えば、100円硬貨が最下位に蓄積されて
いる場合なら、収納メモリの上位から第5ビツト目のビ
・ソトを「1」とする、この場合、当該金種の硬貨が2
枚以上蓄積されている場合には、より上位の硬貨を優先
することは先に述べた通りである。前記収納許可回数が
「2」以上となる場合にも最上位優先で割り当てて行く
が、タリフが最低額硬貨額以下程度と小額であり、かつ
課金信号の到来間隔もある程度大きい場合には、通話継
続中におけるこの収納許可回数はほぼ0かlに限られよ
う。
On the other hand, if the storage permission number is not "o", data indicating storage is written in the storage memory in the next step 1028. In other words, first, the storage area for coins of the relevant denomination is determined from the contents of the storage memory. Confirm and set the bit of the storage memory bit address corresponding to the storage area to “1”.
”. For example, if 100 yen coins are stored at the bottom, the 5th bit from the top of the storage memory is set to "1". In this case, if the coin of the denomination is 2
As mentioned above, if more coins are accumulated, priority is given to higher ranking coins. Even if the number of allowed storage times is "2" or more, the allocation will be given to the highest priority, but if the tariff is small, less than the minimum amount of coins, and the interval between the arrival of billing signals is long enough, calls will not be accepted. The number of times this storage is permitted during the continuation is likely to be limited to approximately 0 or 1.

これに対し、ステップ1025において当該金種の硬貨
の蓄積がないことが確認された場合には、プログラムの
実行はステップ1023に移行し、より低額な硬貨につ
いて同様の処理を行い、全金種についての検討が終了す
れば、この収納判断ルーチンは終了となる。従って、こ
の収納判断処理を要約すれば、蓄積硬貨額中で最も高額
な硬貨については、未収納通話料金がその硬貨額を越え
ていれば、当該硬貨の収納が決定されるということにな
る。
On the other hand, if it is confirmed in step 1025 that there is no accumulation of coins of the relevant denomination, the program execution moves to step 1023, where the same process is performed for coins of lower denominations, and all denominations are When the consideration is completed, this storage judgment routine ends. Therefore, to summarize this storage determination process, for the coin with the highest value among the accumulated coin amounts, if the uncollected call charge exceeds the coin amount, it is determined that the coin will be stored.

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

暖旌見1 第7図は収納処理ルーチンを示すフローチャートである
。この収納処理は先に述べたように、前記収納判断処理
もしくは、次に詳細に説明する清算処理において収納す
べき蓄積硬貨が決定され、決定結果を示すデータが収納
メモリに書き込まれた後に、前記データに基づいて実際
に硬貨を収納する際に行われる。
Warm View 1 FIG. 7 is a flowchart showing the storage processing routine. As mentioned above, this storing process is performed after the accumulated coins to be stored are determined in the storing judgment process or the clearing process described in detail below, and data indicating the determination result is written in the storing memory. This is done when coins are actually stored based on the data.

プログラムの実行が収納処理に移行すると、ステップ1
030において収納メモリの内容が収納を表すものであ
るか否かが判断される。即ち収納メモリの下位4ビツト
中のいずれかに「1」のビットがあれば、対応する蓄積
領域にある硬貨を収給すべきであることが分かる。
When the program execution moves to storage processing, step 1
At 030, it is determined whether the contents of the storage memory represent storage. That is, if any of the lower 4 bits of the storage memory is "1", it is known that the coins in the corresponding storage area should be collected.

そこで、収納を示すデータが格納されている場合には、
引き続きステップ1031において、収納メモリの「1
」のビットに対応する蓄積領域の収納マグネットを動作
させる。この結果、当該蓄積軌道の収納レバーは軌道か
ら引っ込み、蓄積硬貨は金庫へ収納される。この場合、
収納硬貨が2枚以上ある場合にも、それらは同時に収納
される。
Therefore, if data indicating storage is stored,
Continuing in step 1031, "1" in the storage memory is
” Activate the storage magnet in the storage area corresponding to the bit. As a result, the storage lever of the storage track is retracted from the track, and the storage coins are stored in the safe. in this case,
Even if there are two or more stored coins, they are stored at the same time.

このように硬貨を収納した場合には、次いでステップ1
032において収納硬貨に対応する蓄積メモリの内容を
クリアする。即ち、例えば最下位に蓄積されていた10
0円硬貨を収納した場合なら、このステップ1032に
おいて、M積メモリ(3)の内容が「64」から「00
」に書き換えられる。
If the coins are stored in this way, then step 1
At 032, the contents of the storage memory corresponding to the stored coins are cleared. That is, for example, the 10 stored at the bottom
If a 0 yen coin is stored, the contents of the M product memory (3) change from "64" to "00" in step 1032.
' can be rewritten as '.

次いで、ステップ1033において、未収納通話料金か
ら収納した硬貨の額を減算する処理を行った後、ステッ
プ1034において収納した硬貨の金種に対応する蓄積
メモリの内容を収納枚数だけ減算する。
Next, in step 1033, the amount of the collected coins is subtracted from the uncollected call charges, and then in step 1034, the contents of the storage memory corresponding to the denomination of the stored coins are subtracted by the number of stored coins.

これに対し、通話継続中において、ステップ1030に
おいて収納メモリに収納を示すデータが全く格納されて
いないことが確認された場合には、以降の処理は全く行
わず、直ちに収納処理ルーチンを終了する。
On the other hand, if it is confirmed in step 1030 that no data indicating storage is stored in the storage memory while the call is continuing, the storage processing routine is immediately terminated without performing any subsequent processing.

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

注141 第8図は清算処理ルーチンを示すフローチャートである
。この清算処理は先に述べたように通話終了後、即ちフ
ック処理ステップ1009の終了後に、未収納通話料金
を利用者にとって釣銭の被害が最も少なくなるように清
算する蓄積硬貨の組合せを決定するためのものである。
Note 141 Figure 8 is a flowchart showing the settlement processing routine. As mentioned above, this settlement process is performed after the call ends, that is, after the end of the hook process step 1009, in order to determine the combination of accumulated coins to settle the uncollected call charges so as to minimize the loss of change for the user. belongs to.

プログラムの実行が清算処理に移行すると、ステラ71
040において未収納通話料金の端数を最低硬貨額の単
位で切り上げる処理が行われる。
When the program execution moves to the settlement process, Stella 71
At 040, a process is performed to round up the fraction of the uncollected call charge to the unit of the lowest coin amount.

即ち未収納通話料金は必ずしも最低額硬貨額の整数倍と
はならないが、実際に収納し得る金額は最低額硬貨額が
単位となるからである。具体的には未収納通話料金を最
低額硬貨額で除し、余りがあれば商自体に最低額硬貨額
を乗じることにより算出できる。
That is, although the uncollected call charge is 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 can be calculated by dividing the uncollected call charges by the minimum amount in coins, and if there is a remainder, multiplying the quotient itself by the minimum amount in coins.

次に、ステップ1041において、未収納通話料金を示
すデータを、RAM24の特定エリアに設けたワーキン
グメモリに格納したデータに基づいて、未収納通話料金
に相当する蓄積硬貨の組合せを選定する。
Next, in step 1041, a combination of accumulated coins corresponding to the uncollected call charges is selected based on data indicating the uncollected call charges stored in a working memory provided in a specific area of the RAM 24.

即ち先ず、最高額硬貨から順に硬貨の有無をチエツクす
ることから行うが、初めにステップ1042において全
金種の処理が終了したか否かを判断し、終了していなけ
れば、ステップ1043において最高額硬貨に対応する
蓄積メモリ(0)から順に指定して、硬貨の有無をチエ
ツクする動作に入る。
That is, first, the presence or absence of coins is checked in order from the highest denomination coin. First, in step 1042, it is determined whether or not processing of all denominations has been completed. If not, in step 1043, the highest denomination coin is checked. The storage memory (0) corresponding to a coin is designated in order, and the operation of checking the presence or absence of a coin begins.

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

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

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

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

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

次いでステップ1050において前記減算の結果、未収
納通話料金が零となったが否かが判断され、零であれ・
ば次のステップ1051に移行するが、零でなければス
テップ1042に戻り、順次より低額な硬貨について同
様の処理を繰り返す。
Next, in step 1050, it is determined whether or not the uncollected call charge becomes zero as a result of the subtraction, and if it is zero,
If the value is not zero, the process moves to the next step 1051, but if it is not zero, the process returns to step 1042 and the same process is repeated for successively lower denomination coins.

なお、ステップ1044において、当該金種の硬貨の蓄
積がないことが確認された場合には、プログラムの実行
は直ちにステップ1043に移行してより低額な硬貨に
ついての処理を行う。
Note that if it is confirmed in step 1044 that there is no accumulation of coins of the denomination, the execution of the program immediately moves to step 1043 to perform processing on coins of lower denominations.

この結果、未収納通話料金が丁度零とならないのに全金
種についての処理が−通り終了してしまった場合、即ち
未収納通話料金に丁度対応する蓄積硬貨の組合せが無い
場合には、プログラムの実行はステップ1042から1
052に移行し、未収納通話料金に最低額硬貨額を加算
し、加算後の未収納通話料金について、ステップ104
1から前記と同様の処理を繰り返す。その結果、なお未
収納通話料金に一致する金額の蓄積硬貨の組合せが選定
できなければ、更に最低額硬貨額を加算して同様に繰り
返す。
As a result, if the processing for all denominations is completed even though the uncollected call charges are not exactly zero, that is, if there is no combination of accumulated coins that exactly corresponds to the uncollected call charges, the program is executed from step 1042 to 1
052, the minimum coin amount is added to the uncollected call charges, and the uncollected call charges after the addition are processed in step 104.
Repeat the same process as above from step 1. As a result, if it is still not possible to select a combination of accumulated coins with an amount that matches the uncollected call charges, the minimum amount of coins is further added and the process is repeated.

このようにして未収納通話料金に一致する蓄積硬貨の組
合せが選定できた場合、即ちステップ1050において
、ワーキングメモリの内容としてのみ収納通話料金が零
となった場合、プログラムの実行はステップ1051に
移行し、収納枚数メモリと蓄積メモリの内容に従って、
収納メモリに収納データを書き込んで行く。これは、先
に述べたように、各金種別の収納枚数を現実に蓄積メモ
リの内容で示されるように蓄積されている各硬貨に割り
当てて行く作業であり、割り当ては上位優先で行う。
If a combination of accumulated coins that matches the uncollected call charges is selected in this way, that is, if the collected call charges become zero only as a content of the working memory in step 1050, the program execution moves to step 1051. Then, according to the storage number memory and storage memory contents,
The storage data is written to the storage 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 top coins.

従って、例えば蓄積されている硬貨が上位から20円、
20円、100円であれば、各蓄積メモリ(0)〜(3
〉の内容はそれぞれ’14J  (20円)’14J、
’64J (100円)、rooJである。これに対し
、収納枚数メモリ(0)〜(3)の内容がそれぞれrl
」、ro」、rl」、rojで成る場合、即ち100円
硬貨と20円硬貨とをそれぞれ1枚ずつ収納すべき場合
には、上位から3番目の100円硬貨と、最上位の20
円硬貨を収納すべきことが決定され、2番目の20円は
返却すべきこととなる。この結果、収納メモリには、最
下位および下位から3番目のビットを「1」としたデー
タが書き込まれる。
Therefore, for example, the accumulated coins are 20 yen from the top,
If it is 20 yen or 100 yen, each storage memory (0) to (3
> Contents are '14J (20 yen)'14J, respectively.
'64J (100 yen), rooJ. On the other hand, the contents of storage number memory (0) to (3) are rl
", ro", rl", roj, that is, if one 100 yen coin and one 20 yen coin should be stored, the third 100 yen coin from the top and the 20 yen coin from the top
It is decided that the yen coins should be stored, and the second 20 yen should be returned. As a result, data with the least significant bit and the third bit from the least significant being "1" is written into the storage memory.

このようにして収納すべき蓄積硬貨の組合せが決定され
、収納メモリにその組合せを示すデータが書き込まれた
後、プログラムの実行はステップ1011に移行し、先
に述べた収納処理が行われる。
After the combination of accumulated coins to be stored is determined in this way and data indicating the combination is written into the storage memory, the program execution moves to step 1011 and the storage process described above is performed.

夫1鮭へ腹膜 以上、第1図および第2図に示した動作について、第3
図〜第8図のフローチャートを用いて詳細に説明したが
、前述のことから明らかなように、この実施例は次のよ
うな効果を有する。
For the movements shown in Figures 1 and 2 above the peritoneal membrane of the salmon, the third
This embodiment has been explained in detail using the flowcharts shown in FIGS. 8 to 8, and as is clear from the above, this embodiment has the following effects.

即ち通話継続中においては未収納通話料金が蓄積硬貨の
うち最も高額な硬貨の額を越えた場合にのみ、その硬貨
を収納するようにし、また特に通話終了後においては、
未収納通話料金以上でありかつ、当該未収納通話料金に
最も近い総額となる蓄積硬貨の組合せを選定して収納す
るため、利用者の釣銭の被害を最小にすることができる
That is, while the call is continuing, the coins are stored only when the uncollected call charge exceeds the amount of the most expensive coin among the accumulated coins, and especially after the call ends,
Since a combination of accumulated coins that is equal to or greater than the uncollected call charge and has a total value closest to the uncollected call charge is selected and stored, damage to the user's change can be minimized.

また選定された組合せに該当する蓄積硬貨の蓄積領域の
収納レバーを一斉に動作させて各蓄積硬貨を同時に収納
することにより、迅速な清算処理が可能で、電話機の利
用率を向上させることができる。
In addition, by simultaneously operating the storage levers in the storage area of the accumulated coins that correspond to the selected combination and storing each accumulated coin at the same time, quick payment processing is possible and the usage rate of the telephone can be improved. .

更に投入された硬貨が正貨である場合にのみ蓄積レバー
103を動作させるため1、即ち正貨のみを蓄積軌道1
04に入れるようにしたため、その後の収納処理が円滑
に行える。
Furthermore, in order to operate the accumulation lever 103 only when the inserted coin is a genuine coin, the accumulation lever 103 is set to 1, that is, only genuine coins are stored in the orbit 1.
04, the subsequent storage process can be carried out smoothly.

直m鮭 なお、前述した実施例では正貨の投入を示す区別信号を
CPUに取り込み、CPUから一定条件の下に蓄積マグ
ネットに動作指令を与えて蓄積レバーを動かし、M積を
許可する構成をとったが、前記正貨の投入を示す選別信
号を、専用の論理回路を介して動作指令信号として蓄積
マグネットに与えることにより、蓄積レバーを動かす構
成をとっても良い、その場合たとえば蓄積軌道が満杯の
場合にCPUからの信号によって前記論理回路を構成す
るゲートを開けるように構成すれば良い。
Furthermore, in the above-mentioned embodiment, a distinction signal indicating the insertion of specie coins is input into the CPU, and an operating command is given from the CPU to the storage magnet under certain conditions to move the storage lever, thereby permitting the M product. However, it is also possible to adopt a configuration in which the storage lever is moved by giving the sorting signal indicating the insertion of genuine coins to the storage magnet as an operation command signal via a dedicated logic circuit.In that case, for example, when the storage track is full, In such a case, the gates constituting the logic circuit may be opened by a signal from the CPU.

また、前述した実施例においては、常時閉状態にある蓄
積レバーを設け、正貨の投入にのみ応答してM8ルバー
を開けて蓄積を許可する方式を用いたが、これに限定さ
れることなく、蓄積軌道の入口では常時開状態としてお
き、蓄積軌道が満杯でオーバーフローしない限り、投入
硬貨は全て蓄積する方式を用いても良い、その場合には
、例えば当該硬貨が疑似貨であることをメモリに記憶し
て、その硬貨については無条件に返却するように処理す
れば良い。
Furthermore, in the above-mentioned embodiment, a storage lever that is always closed is provided, and the M8 lever is opened to permit storage only in response to the insertion of specie coins. However, the present invention is not limited to this. , a method may be used in which the entrance to the storage track is always open and all input coins are stored as long as the storage track is full and does not overflow. It is sufficient to memorize it and process the coin to be returned unconditionally.

更に、前述した実施例においては、利用者にとって釣銭
の被害が最小となるように清算する方式についてのみ説
明したが、これにも限定されるものではなく、通話の継
続中、終了後を問わず、例えば低額硬貨優先あるいは高
額硬貨優先等、任意の収納方式に適用することが可能で
ある。従って課金信号の到来に応じて先に一定の硬貨を
収納し、収納分に相当する時間の通話を許可する先収納
方式によっても良い。
Furthermore, in the above-mentioned embodiment, only the method of settling the change so that the damage to the user is minimized has been described, but the method is not limited to this, and regardless of whether the call is ongoing or after the end of the call. It is possible to apply this method to any storage method, such as giving priority to low denomination coins or high denomination coins. Therefore, a pre-accumulation method may be used in which a certain amount of coins is first accumulated in response to the arrival of a billing signal, and a call is permitted for a time corresponding to the amount of coins accumulated.

また、前述した実施例では、返却レバーによって各硬貨
を各蓄積領域に固定すると共に、当該返却レバーを動作
させて全蓄積硬貨を返却するようにしたが、各硬貨の分
M固定のためにはストッパを設け、返却はフラッパによ
って行うように構成しても良い。
In addition, in the above-mentioned embodiment, each coin is fixed in each accumulation area by the return lever, and all accumulated coins are returned by operating the return lever, but in order to fix the portion M of each coin, A stopper may be provided and the return may be performed using a flapper.

更に、前述した実施例においては、第2番目以降の硬貨
は先に蓄積された硬貨の上を転勤してそのM積位置に到
達するように構成したが、特に金種間で硬貨の直径に大
きな差があって円滑に落下しない恐れがあるような場合
には、第9図のようなガイドレバー107A−107D
を設けることが有効である。
Furthermore, in the embodiment described above, the second and subsequent coins are configured to transfer over the previously accumulated coins and reach the M pile position. If there is a large difference and there is a risk that it will not fall smoothly, use guide levers 107A-107D as shown in Figure 9.
It is effective to provide

第9図(a)において、例えばガイドレバー107Dは
中心線107Daの回りに回動自在に構成され、常時は
同図(C)に示すように錘り107Dbによって矢印a
に示すように付勢されて、その下端107Dcが軌道側
壁108aに穿設された孔から軌道内に出ると共に、前
記ガイド部107Ddが軌道から引っ込んだ形となって
いる。
In FIG. 9(a), for example, the guide lever 107D is configured to be rotatable around the center line 107Da, and is normally moved by the arrow a by the weight 107Db as shown in FIG. 9(C).
As shown in FIG. 1, the lower end 107Dc comes out into the track through a hole drilled in the track side wall 108a, and the guide portion 107Dd is retracted from the track.

これに対し、ここに硬貨が入って来た場合、硬貨はその
自重によって錘り107Dbにょる付勢に抗して下端1
07Dcを押し上げる。これにより、ガイドレバー10
7dは矢印aと反対方向に回動し、同図<b>で示すよ
うに硬貨が収納レバー105Dのレール部に達した時に
はガイド部107Ddは軌道側壁108aと108bと
の間に架は渡された形となる。これはガイドレバー10
7A〜107Cについても全く同様である。従って後続
の硬貨は、先に硬貨が収納されたより上位の蓄積位置の
ガイドレバーの平坦な上面を円滑に転勤落下して、その
蓄積領域に到達することができる。
On the other hand, when a coin enters here, the coin resists the force exerted by the weight 107Db due to its own weight.
Push up 07Dc. As a result, the guide lever 10
7d rotates in the opposite direction to the arrow a, and when the coin reaches the rail portion of the storage lever 105D as shown in the figure <b>, the guide portion 107Dd is placed between the track side walls 108a and 108b. It becomes a shape. This is guide lever 10
The same applies to 7A to 107C. Therefore, subsequent coins can smoothly transfer and fall on the flat upper surface of the guide lever at the higher storage position than the one in which the coin was previously stored, and can reach the storage area.

また、各蓄積領域の蓄積硬貨を検知確認するため、光セ
ンサを設けても良い。
Furthermore, an optical sensor may be provided to detect and confirm the accumulated coins in each accumulation area.

ζα&乳へ然果 以上説明したようにこの発明は、通話終了時に未収納通
話料金以上で当該未収納通話料金に最も近い総詣となる
蓄積硬貨の組み合わせを選定する選定し、選定された組
合せに該当する硬貨を個別に収納するようにしたので、
利用者の釣銭の被害が最小になるという効果を有する。
As explained above, this invention selects a combination of accumulated coins that is equal to or greater than the uncollected call charge at the end of a call and is closest to the uncollected call charge, and Since the corresponding coins are stored individually,
This has the effect of minimizing damage to the user's change.

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

第1図はこの発明の一実施例を示す公衆電話機の回路構
成図、第2図は第1図の公衆電話機の硬貨軌道の構成例
を示す説明図、第3図は第1図の公衆電話機の制御部に
おけるメインルーチンプログラムの一例を示すフローチ
ャート、第4図は同じく割り込みルーチンプログラムの
一例を示すフローチャート、第5図は硬貨投入処理ルー
チンプログラムの一例を示すフローチャート1、第6図
は収納判断ルーチンプログラムの一例を示すフローチャ
ート、第7図は収納判断ルーチンプログラムの一例を示
すフローチャート、第8図は清算処理ルーチンプログラ
ムの一例を示すフローチャート、第9図は他の軌道構成
を示す説明図、第10図はこの発明の詳細な説明するた
めのブロック図である。 10・・・・電話機回路、20・・・・制御部、21・
・・・入出力ボート、22・・・・中央処理装置、23
・・・・固定メモリ、24・可変メモリ、30・・・・
硬貨処理部、31・・・・硬貨選別装置、33A〜33
D・・・・収納マグネット、34・・・・返却マグネッ
ト、104・・・・蓄積軌道、104A〜104D蓄積
領域、105A〜105D・・・・収納レバー、106
・・・・返却レバー
FIG. 1 is a circuit diagram of a public telephone according to an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of the structure of the coin track of the public telephone of FIG. 1, and FIG. 3 is a diagram of the public telephone of FIG. 1. 4 is a flowchart showing an example of an interrupt routine program, FIG. 5 is a flowchart 1 showing an example of a coin insertion processing routine program, and FIG. 6 is a storage judgment routine. FIG. 7 is a flowchart showing an example of a storage judgment routine program; FIG. 8 is a flowchart showing an example of a settlement processing routine program; FIG. 9 is an explanatory diagram showing another trajectory configuration; The figure is a block diagram for explaining the invention in detail. 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, 33A-33
D...Storage magnet, 34...Return magnet, 104...Storage track, 104A-104D storage area, 105A-105D...Storage lever, 106
・・・Return lever

Claims (1)

【特許請求の範囲】 一つの蓄積軌道に複数種の硬貨を混在して蓄積するよう
にした公衆電話機において、 投入硬貨が正貨であるか否かおよびその種類を選別する
硬貨選別手段と、 選別後の硬貨を順次個別に蓄積する複数の蓄積領域と、 各蓄積領域に蓄積された硬貨の種類を記憶する記憶手段
と、 通話終了時にこの記憶手段の内容と未収納通話料金とか
ら未収納通話料金以上で当該未収納通話料金に最も近い
総額となる蓄積硬貨の組み合わせを選定する選定手段と
、 前記蓄積領域の一部を構成し選定手段により選定された
組合せに該当する硬貨を個別に収納する複数の硬貨収納
手段とを備えたことを特徴とする公衆電話機。
[Scope of Claims] A public telephone configured to store a plurality of types of coins in a mixed manner in one storage track, comprising a coin sorting means for sorting out whether or not an input coin is a genuine coin and its type; a plurality of storage areas for individually storing later coins; a storage means for storing the type of coins accumulated in each storage area; a selection means for selecting a combination of accumulated coins that is equal to or greater than the charge and has a total value closest to the uncollected call charge; and individually storing coins forming part of the accumulation area and corresponding to the combination selected by the selection means. A public telephone set comprising a plurality of coin storage means.
JP12657489A 1989-05-22 1989-05-22 Public telephone set Granted JPH0220952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12657489A JPH0220952A (en) 1989-05-22 1989-05-22 Public telephone set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12657489A JPH0220952A (en) 1989-05-22 1989-05-22 Public telephone set

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP5785582A Division JPS58173955A (en) 1982-04-06 1982-04-06 Public telephone set

Publications (2)

Publication Number Publication Date
JPH0220952A true JPH0220952A (en) 1990-01-24
JPH0320948B2 JPH0320948B2 (en) 1991-03-20

Family

ID=14938536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12657489A Granted JPH0220952A (en) 1989-05-22 1989-05-22 Public telephone set

Country Status (1)

Country Link
JP (1) JPH0220952A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994003875A1 (en) * 1992-07-30 1994-02-17 Mars, Incorporated Method and apparatus for controlling the dispensing of money

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1994003875A1 (en) * 1992-07-30 1994-02-17 Mars, Incorporated Method and apparatus for controlling the dispensing of money

Also Published As

Publication number Publication date
JPH0320948B2 (en) 1991-03-20

Similar Documents

Publication Publication Date Title
US4192972A (en) Pay-telephone station with deferred collection
US4612418A (en) Method for controlling task process and device thereof
JPS61205065A (en) Public telephone set
US3589492A (en) Magnetic control means for vending machines and the like
CA1222334A (en) Fraud prevention in an electronic coin telephone set
JPH0220952A (en) Public telephone set
EP0089687A2 (en) Method of and electronic device for detecting the lifting of the telephone handset in presence of ringing current
US4674114A (en) Fraud prevention in an electronic coin telephone set
US3307671A (en) Coin controlled means
JPH0137905B2 (en)
JPH0137904B2 (en)
JPS58173956A (en) Coin storing system of public telephone set
JPS58171168A (en) Public telephone set
JP2962184B2 (en) Coin sorting standard data setting system
JPS58171167A (en) Method for receiving coin of public telephone set
JPH0137901B2 (en)
JPS58137359A (en) Public telephone set
US4232689A (en) Coin dispenser
JPS58137092A (en) Coin storage control system
JP3189742B2 (en) Coin storage device
JPS58137357A (en) Charging system of public telephone set
JP3293525B2 (en) Coin storage device
JP2953339B2 (en) Coin sorting equipment
JPS61194591A (en) Coin processor
SU1520597A1 (en) Drain storage