JPS58171168A - Public telephone set - Google Patents

Public telephone set

Info

Publication number
JPS58171168A
JPS58171168A JP5406082A JP5406082A JPS58171168A JP S58171168 A JPS58171168 A JP S58171168A JP 5406082 A JP5406082 A JP 5406082A JP 5406082 A JP5406082 A JP 5406082A JP S58171168 A JPS58171168 A JP S58171168A
Authority
JP
Japan
Prior art keywords
coins
storage
coin
call
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
JP5406082A
Other languages
Japanese (ja)
Other versions
JPH0137903B2 (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 JP5406082A priority Critical patent/JPS58171168A/en
Publication of JPS58171168A publication Critical patent/JPS58171168A/en
Publication of JPH0137903B2 publication Critical patent/JPH0137903B2/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 minimize the user's damage of change, by injecting plural kinds of coins into one accumulation route, and in case of calculating the charge for a call at the completion of the call, and selecting and receiving the accumulated coins. CONSTITUTION:When a transmitter/receiver of a telephone circuit 10 is unhooked a control part 20 including a CPU 22, an ROM 23, an RAM 24, an I/O port 21 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 ones or not, 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. After completing the call, the CPU 22 decides the combination of coins to be received by the unreceived charge and the kinds of accumulated coins and sends information indicating the position on the route from which the coin is to be received to the coin processing part 30. Consequently, the coin processing part 30 selects and receives prescribed coins and returns the remaining coins.

Description

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

従来、例えば低額貨・高額貨等、複数種の硬貨を併用で
きる公衆電話機においては、一般に硬貨投入ロ1選別軌
道、蓄積軌道などが各種硬貨にそれぞれ専用に設けられ
ているため、構成部品、構成規模共に大きくなる欠点を
有すると共に、利用者も投入しようとする硬貨のf!!
1類に従って投入口を確認しながら投入しなければなら
ない不便があった。
Conventionally, in public telephones that can handle multiple types of coins, such as low-denomination coins and high-denomination coins, generally, a coin input slot 1 sorting track, a storage track, etc. are provided specifically for each type of coin, so the component parts and configuration The f! !
There was the inconvenience of having to check the input port according to Category 1 before loading the product.

これに対(7、蓄積軌道を1つとして各種硬貨を投入順
に混在して蓄積するようにしたものでは、上述したよう
な欠点は解消できるが、反面、最下位の蓄積硬貨から頴
次収納する他はなく、例えば低額貨優先もしくは高額貨
優先等、任意の収納方式を採用することができなかった
。従って、利用者の釣銭の被害を最小にする配慮を行な
うことも当然できなかった。
In contrast to this (7), the above-mentioned drawbacks can be overcome by using one accumulation trajectory and accumulating various coins in a mixed manner in the order of input, but on the other hand, the coins are stored sequentially starting from the lowest accumulated coin. There was no other option, and it was not possible to adopt any storage method, such as giving priority to low-denomination or high-denomination coins.Therefore, it was naturally impossible to take any measures to minimize damage to users' change.

本発明は、このような状況に鑑みてなされ念ものであυ
、その目的は、1つの蓄積軌道に複数種の硬貨を混在し
て蓄積する方式をとυながら、任意の蓄積硬貨を収納し
得る公衆電話機を提供することにある。
The present invention was made in view of this situation.
The purpose is to provide a public telephone that can store any stored coins while using a method of storing a mixture of multiple types of coins in one storage track.

このような目的を達成するために、本発明は、硬貨選別
手段により選別された投入硬貨の種別を蓄積順に記憶す
る手段と、その記憶内容と未収納通話料金とから収納す
べき蓄積硬貨を選定する手段と、この選定結果に従って
各蓄積硬貨を収納通路と返却通路とに振シ分ける手段と
を設けたものである。以下、実施例を用いて本発明の詳
細な説明する。
In order to achieve such an object, the present invention provides a means for storing the types of input coins sorted by a coin sorting means in the order of accumulation, and a means for selecting accumulated coins to be stored from the stored contents and uncollected call charges. and a means for sorting each accumulated coin into a storage passage and a return passage according to the selection result. Hereinafter, the present invention will be explained in detail using Examples.

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

本実施例は、送受器を外すこと(オフフック)によシ硬
貨の投入を待たずに交換機との間に回線が閉成され、ま
た一定の通話が行なわれた彼にその間の通話料金に相当
する硬貨を収納する、いわゆる先ループ・後収納方式を
採用し、利用者の釣銭シ、全体の構成は、大別して通常
の電話機回路部10、この電話機回路部10を通じて図
示しない交換機から課金信号を受けて硬貨の収納・返却
等を制御する制御部20、および制御部20からの指令
に基いて実際に硬貨を検知選別し、図示しない金庫へ収
納し、あるいは返却を行なう硬貨処理部30からなる。
In this example, by disconnecting the handset (off-hook), a line is established with the exchange without waiting for coins to be inserted, and a certain number of calls are made. The system adopts a so-called front-loop/rear-storage system for storing coins, and the overall configuration is roughly divided into a normal telephone circuit section 10, through which billing signals are sent from an exchange (not shown). It consists of a control unit 20 that controls storage and return of coins based on the commands received from the control unit 20, and a coin processing unit 30 that actually detects and sorts coins and stores them in a safe (not shown) or returns them based on commands from the control unit 20. .

また、この他に、フックスイッチ40、リレー制御回路
50、表示回路60、および3X4マトリクス構成のテ
ンキー形式のキーボード10を有している。
In addition, it has a hook switch 40, a relay control circuit 50, a display circuit 60, and a numeric keypad keyboard 10 having a 3×4 matrix configuration.

上記電話機回路10は、局線端子Ll、L!にょう、局
線を介して図示しない交換機に接続されている。そして
、局線端子Ll、L2には、着信があることを報知する
ベル回路11、交換機からの課金信号を検出する課金信
号受信回路12、ダイオードブリッジ回路13、リレー
接点fB、ダイヤルパルス送出および強制切断回路14
、電源回路15並びに通話回路16が順次配列接続され
ている。
The telephone circuit 10 has office line terminals Ll, L! It is connected to an exchange (not shown) via a central office line. The office line terminals Ll and L2 are connected to 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 fB, a dial pulse sending and forcing Cutting circuit 14
, a power supply circuit 15, and a communication circuit 16 are sequentially arranged and connected.

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

ここで、上記回路14には、直流ループに対して直列に
トランジスタが挿入されており、常時はオンとなってい
るが、制御部20からのダイヤル信号に応じてオン・オ
フを繰返し、これにより交換機側へダイヤルパルスを送
出して相手加入者番号を通知すると共に、同じく制御部
20から連続的なオフ信号を受けることにより、連続的
にオフ状態となって、接点ハを動作状態とした11上記
直流ループを強制的に切断状態とすることができる。こ
のようにリレー接点9B を介して直流ループの閉成・
開放を行なうようにしたのは、この公衆電話機が後収納
方式をとっているため、フックスイッチ40をオフした
後も、未収納の通話料金を精算するために電源を必要と
するからである。
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. By transmitting a dial pulse to the exchange side to notify the other party's subscriber number and also receiving continuous off signals from the control unit 20, the contact C is continuously turned off and the contact C is put into the operating state (11). The DC loop can be forcibly cut off. In this way, the DC loop is closed and closed via relay contact 9B.
The reason why this is done is because this public telephone is of a retractable type and requires power to settle uncollected call charges even after the hook switch 40 is turned off.

即ち、回路13により直流ループを強制切断して交換機
に通話の終了を報知し、復旧させた後、再びオン状態と
し、交換機からの電流により充電される電源回路15の
電源を用いて精算処理を行なうことができる。
That is, the circuit 13 forcibly disconnects the DC loop, notifies the exchange that the call has ended, and after recovery, turns on again and performs the settlement process using the power of the power supply circuit 15, which is charged by the current from the exchange. can be done.

なお、前記ダイヤルパルス送出中は、通話回路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は、ループ電流によって生ずる定電
圧ダイオ−)ZZDI 、Zn2のツェナー電圧により
逆流阻止用ダイオードDI 、 D2 、D3、 D4
 、 D5  を介してコンデンサCI 、 C2,0
3を各個に充電し、これらの端子電圧を電源電圧VEE
、VMG、VDD 、!:して制御部20および硬貨処
理部30に供給するもので、コンデンサc1はオフフッ
ク時のみ充電されるが、コンテナC2゜C3はオンフッ
ク時にも充電されるようにしてあり、これにより、制御
部2oの後述する可変メモリ240バツクアツプ用とし
て常時必要な電源電圧VEEおよび硬貨の処理に際して
電磁石を動作させるために消耗が激しい電源電圧VMG
を確保している。
In addition, the power supply circuit 15 has reverse current blocking diodes DI, D2, D3, D4 due to the Zener voltage of constant voltage diodes ZZDI and Zn2 generated by the loop current.
, D5 through capacitor CI, C2,0
3 are charged individually, and these terminal voltages are set as the power supply voltage VEE.
, VMG, VDD,! The capacitor c1 is charged only when off-hook, but the containers C2 and C3 are charged even when on-hook. Power supply voltage VEE, which is always required for backing up the variable memory 240 described later, and power supply voltage VMG, which is heavily consumed to operate the electromagnet when processing coins.
is ensured.

なお、ダイオードブリッジ回路13は、局線端子Ll、
L2間に印加される交換機からの直流電圧の極性にかか
わらず、回路15および通話回路16に加わる電圧の極
性を一定とするためのものである。
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 15 and the communication circuit 16 constant regardless of the polarity of the DC voltage from the exchange applied between L2.

制御部20は、周知の入出カポ−)21.1処理装置(
以下CPUという)22.固定メモリ(以下ROMとい
う)23.可変メモリ(以下RAMという)24に加え
、更に、タイミング回路25および可変条件設定回路2
6を備えている。
The control unit 20 includes a well-known input/output capo) 21.1 processing device (
(hereinafter referred to as CPU)22. Fixed memory (hereinafter referred to as ROM)23. In addition to the variable memory (hereinafter referred to as RAM) 24, there is also a timing circuit 25 and a variable condition setting circuit 2.
It is equipped with 6.

このタイミング回路25は、25m5周期のパルスを発
生する発振回路から構成され、後述するようにCPU2
2  に対し、メインプqグラムの処理に対して、25
m5  で割込み処理を行なわせるための割込み信号を
与えるためのものである。また、可変条件設定回路26
Fi、例えば市内通話における単位料金当りの通話時間
や、1n金轟りの単位通話料金、即ちタリフを任意に設
定するためのもので、ディジタルスイッチ郷により構成
される。
This timing circuit 25 is composed of an oscillation circuit that generates a pulse with a period of 25 m5, and as described later, the timing circuit 25 is
2, whereas for main program qgram processing, 25
This is for providing an interrupt signal to cause m5 to perform interrupt processing. In addition, the variable condition setting circuit 26
Fi, for example, is used to arbitrarily set the call time per unit charge for local calls and the unit call charge for 1n gold, that is, the tariff, and is configured by Digital Switch Go.

上記構成において、オフフックにょシフツクスイッチ4
0がオンとなった場合、リレー制御回路50によって接
点9sが動作され、直流ループが閉成されて電源回路1
5のコンデンサC1が充電される。この結果、CPU2
2 に電源電圧V D DAl供給され、CPU22は
、予めROM23  に格納された処理プログラムに従
って、RAM24に対し必要なデータの書込み、読出し
を行ないながら所定の制御動作を実行する。この動作に
ついては後にフローチャートを用い工詳細に説明する。
In the above configuration, off-hook shift switch 4
0 is turned on, the contact 9s 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 a power supply voltage V D DAl, and the CPU 22 executes predetermined control operations while writing and reading necessary data to and from the RAM 24 according to a processing program stored in the ROM 23 in advance. 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は、投入された硬貨が当電新
機において使用が予定されている正貨であるか否かおよ
び正貨であるとしてその金種を判別するためのものであ
シ、例えば硬貨の落下軌道を挾んで対向して配置された
発光素子および受光集子からなる光センサを備えた硬貨
外径識別装置と、同じく落下軌道を挾んで対向して配置
されかつ相互に電磁的に結合した発信コイルおよび受信
コイルからなる検知コイルを備えた硬貨外径識別装置と
によって構成することができる。即ち、前者は発光・受
光素子間の光路を落下硬貨が遮る時間が尚誼硬貨の外径
によシ異なることを利用するもの、後者は例えば受信コ
イルに誘導される出力電圧のピーク値が両コイル間に介
在する硬貨の材質により異なることを利用するものであ
るが、これらはいずれも公知であシ、また本発明の適用
において、この硬貨選別装置31の構成はこれに限られ
るものではなく、他の任意の選別手段を用い得るもので
あるから、詳細な説明は省略する。
Here, the coin sorting device 31 is used to determine whether or not the inserted coin is a genuine coin scheduled to be used in this new machine, and to determine 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 collector arranged oppositely across the coin's falling trajectory, and a coin outer diameter identification device equipped with an optical sensor consisting of a light-emitting element and a light-receiving collector arranged oppositely across the coin's falling trajectory, and a coin outer diameter identification device also arranged oppositely across the falling trajectory and mutually electromagnetic. The coin outer diameter identification device includes a detection coil consisting of a transmitting coil and a receiving coil that are coupled to each other. That is, the former utilizes the fact that the time for a falling coin to block 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, for example, is both different. This method utilizes the fact that the material of the coin interposed between the coils differs depending on the material, but all of these are well known, and in the application of the present invention, the configuration of the coin sorting device 31 is not limited to this. , any other sorting means can be used, so a detailed explanation will be omitted.

上記外径および材質選別装置の選別結果によシ、正貨か
擬似貨の判定を行ない、正貨であれば、その種別に対応
する選別信号がCPU22 に送出され、RAM24 
の一定額域にメモリされる。例えば、使用される硬貨が
100円、50円、20円、10円の4金種であるとす
れば、RAM24の特定のメモリアドレスを有する容量
8ビツトのメモリエリアを硬貨投入メモリとし、その下
位4ビットヲ各金種に対応させ、100円硬貨を示す選
別信号の入力があれば上位から第5誉目、以下、順次低
額になるに従ってそれぞれ第6番目、第7番目、第8番
目のビットを 寧1“とするようにすれば、この硬貨投
入メモリの内容を見るととによりどの金遣の正貨が投入
されたか確認することができる。なお、硬貨選別装置3
1から制御部20への信号線に斜線を入れ、傍らに14
″の数字を付したのは4金橿についてそれぞれ選別信号
送出用の信号線が設けであることを示したものである。
Based on the sorting results of the outer diameter and material sorting device, it is determined whether the coin is genuine or a counterfeit coin. If the coin is genuine, a sorting signal corresponding to the type is sent to the CPU 22 and stored in the RAM 24.
is stored in a certain amount range. For example, if the coins used are of four denominations: 100 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 The 4 bits are made to correspond to each denomination, and when a sorting signal indicating a 100 yen coin is input, the 5th bit from the top is selected, and the 6th, 7th, and 8th bits are selected from the top as the denomination goes down. 1", it is possible to check which specie coin was inserted by looking at the contents of this coin input memory.Incidentally, the coin sorting device 3
Put a diagonal line in the signal line from 1 to the control unit 20, and put 14 next to it.
The number ``'' indicates that each of the four metal rods is provided with a signal line for transmitting a selection signal.

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

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

これらについては後にts2図を用いて説明を補足する
The explanation of these will be supplemented later using the ts2 diagram.

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

WJ2図において、硬貨投入口100から投入された硬
貨101 は、傾斜[7た選別軌道102 を転動落下
しながら硬貨選別装置31による選別を受ける。選別軌
道102の下端は矢印Aで示すように、図示しない返却
口へ通じているが、その途中に蓄積レバー103が配置
され、この蓄積レバー103が蓄積マグネット32の励
磁により吸引されて動作して軌道から引っ込んだ場合、
硬貨101は蓄積軌道104に入る。蓄積軌道104 
 も傾斜軌道からなり、その下端に、収納マグネット3
3および返却マグネット34の励磁にょシ吸引されて動
作する収納レバー105および返却レバー106が配置
されている。上記収納レバー105および返却レバー1
06か動作状態にない場合には、硬貨101/riこの
蓄積軌道104に蓄積される。
In Figure WJ2, coins 101 inserted from a coin input port 100 are sorted by a coin sorting device 31 while rolling down an inclined sorting track 102 . As shown by arrow A, 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, and this storage lever 103 is attracted and operated by the excitation of the storage magnet 32. If it withdraws from orbit,
Coin 101 enters accumulation trajectory 104. Accumulation trajectory 104
It also consists of an inclined track, and at the bottom end there is a storage magnet 3.
A storage lever 105 and a return lever 106 are arranged, which are operated by being attracted by the excitation of the magnet 3 and the return magnet 34. The above storage lever 105 and return lever 1
06 is not in the operating state, coins 101/ri are accumulated in this accumulation track 104.

この実施例では、蓄積容量は5枚である。これに対し、
収納レバー105が動作して軌道から引込んだ場合、硬
貨101 は矢印Bで示すように図示しない金庫に収納
される。また、返却レバー106が動作して軌道から引
込んだ場合には硬貨101は矢印Cで示すように返却口
へ導かれる。なお、上記各マグネットとレバーとの具体
的構成は任意である。
In this embodiment, the storage capacity is 5 sheets. 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図の70−チャートを用いて説明する。なお、ここ
での説明は本発明に特有な処理の流れを理解する上で必
要な範囲に限定したものであり、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 chart 70 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.

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

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

そこで、制御部20は、所定の電源電圧VDDが供給さ
れると第3図のイニシャライズ処理ステップ1000 
を実行する。即ち、CPU22扛ROM23にアクセス
し、RAM24  の各メモリエリアや入出力ボート2
1のバックアメモリ等をイニシャライズする。このイニ
シャライズ処理の最終段階で、硬貨選別装置31の動作
が許可されると共に、割込みが許可されてタイミング回
路25ti割込み信号の送出を開始する。従って、これ
以降CPU22は、第3図のメインルーチンの進行状況
如何にかかわらず25m5ごとに第4図の割込みルーチ
ンに示される処理を1口実行する。
Therefore, when the control section 20 is supplied with the predetermined power supply voltage VDD, the control section 20 performs the initialization processing step 1000 in FIG.
Execute. That is, the CPU 22 accesses the ROM 23, and each memory area of the RAM 24 and the input/output board 2
Initialize the backup memory etc. of 1. 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 25ti starts sending 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を介して電話機回路部1o
および硬貨処理部3oがら入力される各入力信号をチェ
ックし、その結果を示すデータを、RAM24  の所
定のメモリエリアに格納する。例えば課金信号受信回路
12全通して課金4iJ号の入力があった場合には、課
金7ラグメそすの内容を1−1」として、課金信号の到
来を示す課金7ラグをセットする。また、硬貨選別装置
31から選別信号の入力があれば、前述したように硬貨
投入メモリに当該硬貨の投入を示すデータが書込まれる
Here, the telephone circuit section 1o is
and each input signal inputted from the coin processing section 3o, and stores data representing the results in a predetermined memory area of the RAM 24. For example, when charge number 4iJ is input through all of the charge signal receiving circuits 12, the content of charge 7 lag is set to 1-1, and charge 7 lag indicating the arrival of the charge signal is set. Further, if 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.

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

ダイヤル制御処理が終了すると、プログラムの実行は、
次いで表示処理ステップ2002に移行する。ここでは
、前述したように表示回路6oを構成する表示器にクレ
ジットの額を表示させる処理が行なわれるが、本発明の
要旨には直接関係しないため、これ以上の説明は省略す
る。
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 6o, but since this is not directly related to the gist of the present invention, further explanation will be omitted.

次いで、プログラムの実行は課金演算処理ステップ20
03に移行する。ここでは、前記課金7ラグメモリに7
ラグがセットされているか否かをチェックし、セットさ
れていれば、RAM24の一部に設けられた未収納通話
料金メモリの内容を更新する。即ち、このメモリは、未
収納通話料金を示すデータを格納するものであり、従っ
て、1課金ごとにタリフ分ずつ加算される。同様に、ク
レジットを示すクレジットメモリの内容からタリフ分を
減算する。なお、この減算の結果、クレジットが0未満
となった場合には、RAM 24の特定エリアに設けら
れたフック処理フラグメモリの内容を「1」としてフッ
ク処理フラグをセットする。
Next, the program is executed in billing calculation processing step 20.
Move to 03. Here, the charging 7 lag memory has 7
It is checked whether or not the lag is set, and if it is set, the contents of the uncollected call charge memory provided in a part of the RAM 24 are updated. That is, this memory stores data indicating uncollected call charges, and 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.

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

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

次のタイマ処理ステップ2005において社、RAM2
4  に設けられた各種タイマリクエストフラグメモリ
の内容に応じ、フラグがセットされていれば、同じ(R
AM24 に設けられた各タイマの内容を「1」インク
リメントする。即ち、タイマリクエストフラグがセット
されている間、25m5周期でタイマの内容がインクリ
メントされるため、このタイマの内容によって計時が行
なえる。
In the next timer processing step 2005, RAM2
4. If the flag is set according to the contents of the various timer request flag memories provided in
The contents of each timer provided in AM24 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に移行する。ここでは、キーボード10からの
入力に応じ、交換機に被呼者の番号を示すダイヤル信号
を送出して通知する。
Program execution then moves to dialing processing step 2006. Here, in response to input from the keyboard 10, 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  において行なわれ
、所定の7ラグメモリに診断結果を示すブラダがセット
される。従って、ステップ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 is to self-diagnose whether there is a coin jam or other failure using various sensors (not shown) arranged on the coin track, but the actual output state of the senna system is detected in the edge detection processing step 2000. A bladder indicating the diagnosis result is set in a predetermined 7-lag memory. 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 a call permission processing step 1002, and the return magnet 34 is operated to put the return lever 106 in the 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 for determining whether or not the hook is on-hook, and if it is confirmed that the off-hook continues by checking the input signal from the hook switch 40, the program moves to step 1004 for determining storage. 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.

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

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

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

フック処理ステップ1009では、前記ダイヤルパルス
送出および強制切断回路14のトランジスタをオフする
ことにより、接点98  を動作状態としたiまで、8
00m5の間だけ直流ループが切断される。これにより
交換機に対しては通話の終了を通知できると共に、電源
回路はオフフック時と同様の状態を保持したtま、次の
精算処理ステップ1010に移行できる。なお、この時
点で交換機は復旧するから、もはや課金信号の到来はな
くなる。
In the hook processing step 1009, by turning off the transistor of the dial pulse sending and forced disconnection circuit 14, the contact point 98 is turned off until i is in the operating state.
The DC loop is cut only for 00 m5. As a result, the exchange can be notified of the end of the call, and the power circuit can proceed to the next payment processing step 1010 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 processing step 1010, as will be explained later using the frame chart in FIG. 8, a combination of accumulated coins is selected to settle uncollected call charges in a manner that minimizes the loss of change for the user. do.

次いで、プログラムの実行は収納処理ステップ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以上に充電されたことを
確認し、更にオンフック状態が継続していることを確認
した上で、接点9I  を復旧させる。
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 confirming that the on-hook state continues, the contact 9I is restored.

次に、先に述べたように、硬貨投入処理、収納判断処理
、収納処理、精算処理の各ステップについて、第5図〜
第8図のフローチャートを用いて詳細に説明するが、そ
こでの理解を容易にするために、ここで、特に重要ない
くつかのメモリについて下の表に掲げ、その構成につい
てまとめて説明しておく。なお、これらのメモリは、先
に説明した硬貨投入メモリ、未収納通話料金メモリ、ク
レジットメモリ等と同様にRAM24  の特定エリア
を利用して設けられ、それぞれ8ビツトの容量を有して
いる。
Next, as mentioned above, each step of coin insertion processing, storage judgment processing, storage processing, and payment processing is explained in Figures 5 to 5.
This will be explained in detail using the flowchart in Figure 8, but to facilitate understanding, some particularly important memories are listed in the table below, and their configurations will be summarized and explained. . 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の蓄積
容量は5枚であるから、(0)〜(4)の5個の蓄積メ
モリが、それぞれ最下位から順次最上位まで5個の蓄積
位置に対応し、それぞれ蓄積されている硬貨の硬貨額を
示すデータを格納する。
It stores data indicating which denomination of coins are stored at a location. Here, since the storage capacity of the storage track 104 is 5, the 5 storage memories (0) to (4) correspond to the 5 storage positions from the lowest to the highest, respectively, and are stored. Stores data indicating the coin amount of the coins.

先に述べたように本電話機で使用される4金種の硬貨が
、ioo円、so円、20円、10円硬貨であるものと
すれば、これらの硬貨額を示すデータ、即ち16進表記
で%64”(100円)、隼32#(50円)、%14
” (20円)、’OA’、(10円)の各データが格
納される。なお、M6番目の(5)のメモリは予備メモ
リである。これについては後述する。
As mentioned earlier, if the four denominations of coins used in this phone are IOO yen, SO yen, 20 yen, and 10 yen coins, then the data indicating the denominations of these coins, that is, the hexadecimal notation %64" (100 yen), Hayabusa 32# (50 yen), %14
” (20 yen), 'OA', and (10 yen) are stored. Note that the M6th memory (5) is a spare memory. This will be described later.

次に、蓄積枚数メモリは、蓄積軌道全体にどの金種の硬
貨が何枚蓄積され、ているかを示すデータを格納するも
のであり、(0)〜(4)の各メモリは、それぞれ最高
額硬貨(100円)から順次最低額硬貨(10円)tで
に対応している。即ち、前記蓄積メモリの内容を金種別
KIDえた内容となっている。
Next, the accumulation number memory stores data indicating how many coins of which denomination are accumulated in the entire accumulation trajectory, and each memory (0) to (4) stores data indicating how many coins of which denomination are accumulated in the entire accumulation orbit. The coins (100 yen) and the lowest denomination coins (10 yen) are supported sequentially. That is, the contents are obtained by dividing the contents of the storage memory by denomination KID.

これに対し、収納枚数メモリは、蓄積硬貨のうち収納す
べき硬貨の枚数を金種別に示すデータを格納するもので
、(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)tでそれぞ
れ最下位から順次最上位までの蓄積位置に対応し、各蓄
積位置の硬貨が収納すべきか返却すべきかを示すデータ
が格納されている。即ち、収納である場合には%01“
(16進表記、以下同様)、返却の場合にはIQIll
 、どちらでもない場合には処理終了データとしてS 
FF’ の各データが格納される。従って、この収納・
返却メモリの内容は、前記収納枚数メモリの内容は、前
記収納枚数メモリの内容に示される収納枚数を、各蓄積
位置の硬貨に割当てたものになっている。割当ては例え
ば最下位から行なわれる。例えば10円硬貨が最下位と
最上位に蓄積されている場合に、その収納枚数が1枚で
あれば、最下位に対応する収納・舷却メモリ(0)に収
納データ% 01”  が書込まれる。
In addition, the storage-return memory (0) to (4)t corresponds to the storage positions sequentially from the lowest to the highest, and stores data indicating whether the coins at each storage position should be stored or returned. ing. In other words, if it is storage, %01"
(Hexadecimal notation, same below), IQIll in case of return
, if neither is the case, S is used as processing end data.
Each data of FF' is stored. Therefore, this storage
The contents of the return memory are such that the stored number of coins shown in the stored coin number memory is 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/shipping memory (0) corresponding to the lowest position. It will be done.

硬貨投入処理 第5図は、硬貨投入処理ルーチンを示すフローチャート
である。この硬貨投入処理ルーチンは、前述したように
、25m5周期で開始される割込みルーチンにおいて、
課金演算処理に引続いて実行される。
Coin Insertion Process FIG. 5 is a flowchart showing the coin insertion process routine. As mentioned above, this coin insertion processing routine is an interrupt routine that starts every 25m5 cycles.
It is executed following the billing calculation process.

プログラムの実行が硬貨投入処理に移行すると1先ず、
ステップ2010において新たな正貨の投入があったか
否かの判断が行なわれる。これは、前記硬貨投入メモリ
に格納されたデータをチェックすることにより行なわれ
る。即ち、硬貨投入メモリのそれぞれの金種に対応する
ビットが11″であれば、当該金種の正貨の投入があっ
たことになる。
When the program execution moves to the coin insertion process, 1.
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 11'', 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,
Determining whether or not the storage track 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 K移行し、蓄積マグネット32を動
かして蓄積レバー103を軌道から引込め、転勤落下し
て来る投入硬貨101 を蓄積軌道104に導く。
If it is not full, the process immediately moves to the storage magnet processing step 2013K, moves the storage magnet 32 to retract the storage lever 103 from the track, and guides the input coins 101 falling from the transfer to the storage track 104.

このように蓄積を許可した場合には、次いで、硬貨投入
演算処理ステップ2014において、クレジットメモリ
および蓄積メモリの内容の更新が行なわれる。即ち、ク
レジットメモリの内容に新たに蓄積した硬貨の硬貨額を
加算すると共に、硬貨額データの書込みがない蓄積メモ
リのうちで最も下位の蓄積位置に対♂するものに硬貨額
データを書込む。゛ これに対し、蓄積軌道が既に満杯であった場合には、プ
ログラムの実行はステップ2011  から次のステッ
プ2012 へ移行し、未収納通話料金が最下位の硬貨
額を上回っているか否かが判断される。これは、未収納
通話料金メモリの内容と蓄積メモリ(0)の内容とを比
較することによって行なわれる。
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.゛On the other hand, if the accumulation trajectory is already full, the program execution moves from step 2011 to the next step 2012, and it is determined whether the uncollected call charge exceeds the lowest coin amount. be done. This is done by comparing the contents of the uncollected call charge memory and the contents of the storage memory (0).

そして、未収納通話料金が既に最下位硬貨額を上回って
いる場合には、引続きステップ2o13が実行され、投
入硬貨の蓄積が行なわれるが、未収納通話料金が未だ最
下位硬貨額以下である場合には、蓄積は許可されず、投
入硬貨はオーバー70−の状態で直接返却口へ返却され
る。これは、次の収納判断処理および収納処理において
説明するように、通話が継続している間は原則として硬
貨の収納は行なわず、蓄積軌道が満杯でかつ未収納通話
料金が既に最下位硬貨額を上回っている時にのみ、正貨
の追加投入があった場合、最下位硬貨を収納する方式を
とっていることによる。即ち、上記条件の時にのみ、追
加投入された硬貨の蓄積を許可すると共に、最下位の硬
貨を収納する。このように満杯状態で蓄積を許可した場
合には、当該追加投入硬貨の硬貨額を示すデータは、暫
定的に予備の蓄積メモリ(5)に書込まれる。なお、こ
のように満杯で蓄積を許可する場合に、最下位硬貨の収
納はメインルーチンで別個に行なわれるため、収納が後
になり、そのために蓄積が円滑に行なわれないおそれが
あるようなら、蓄積軌道の実際の容量を6枚としておけ
ば良い。
If the uncollected call charge already exceeds the lowest coin amount, step 2o13 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 a state of over 70-. 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 additionally inserted coin is provisionally written into the spare storage memory (5). In addition, when allowing accumulation when the coin is full in this way, the storage of the lowest coin is done separately in the main routine, so if the storage is delayed and there is a risk that the accumulation will not be carried out smoothly, the storage The actual capacity of the orbit should be set to 6 sheets.

また、ステップ201G の実行の際、正貨の追加投入
が検出されない場合には、それ以上の実質的な処理は何
ら行なわずに、この硬貨投入処理ルーチンを終了する。
Further, when executing step 201G, if additional insertion of genuine coins is not detected, the coin insertion processing routine is ended without any further substantial 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”とするj が実行される。
When the program execution moves to storage determination processing, first,
In step 1020, the command ``j'' to set the contents of storage/return memory to 'FF' is executed.

ここでは、5個の収納・返却メモリのすべてに処理終了
データ%FF” が格納される。
Here, processing completion data %FF'' is stored in all five storage/return memories.

次いで、ステップ1021 において先のステップ20
10 と同様に正貨の投入があったか否かが判断される
Then, in step 1021, the previous step 20
10, it is determined whether or not specie money has been inserted.

正貨の投入が検出された場合には、プログ2ムの実行は
ステップ1022に移行し、先に説明したステップ20
11 と同様に蓄積軌道が満杯であるか否かが判断され
る。
If the insertion of specie coins is detected, execution of the program moves to step 1022 and proceeds to step 20 described above.
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)に、収納を示すデータ雫Of” 
 を書込む。
If the uncollected call charge exceeds the lowest coin amount, in the next step 1024, a data drop indicating storage is stored in the storage/return memory (0) corresponding to the lowest coin amount.
Write.

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

次に、収納処理について説明する。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 continues.

プログラムの実行が収納処理に移行すると、ステップ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 を蓄積軌道から引込e
1最下位の硬貨を、金庫へ通じる収納通路に落下させる
。なお、この場合、上記収納レバー105 に連動して
図上省略したが周知のエスケープ機構によってストップ
ビンが働き、より上位の蓄積硬貨が続いて落下するのを
防ぐ。
If this is storage data, the process moves to the next coin storage processing step 1031, and the storage magnet 33
Operate to pull the storage lever 105 out of the storage track.
1. Drop the lowest coin into the storage passage leading to the safe. 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 higher accumulated coins from falling down.

このように硬貨を収納した場合には、次いで硬貨演算処
理ステップ1032に移行する。ここでは、蓄積メモリ
の内容のシフトダウンおよび未収納通話料金メモリの内
容の更新が行なわれる。即ち、下位から2番目以上の各
蓄積メモリ(1)〜(5)の格納データを、それぞれ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, the data stored in the second and higher storage memories (1) to (5) are each
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を引込め、最下位の硬貨を、返却口へ
通じる返却通路に落下させる。
If it is return data, the process moves to the next coin return processing step 1034, in which 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.

この場合も、返却レバー106 に連動してストップビ
ンが働き、後続の硬貨の落下を防ぐ。
In this case as well, the stop bin operates in conjunction with the return lever 106 to prevent subsequent coins from falling.

上記収納マグネット33および返却マグネット34は共
に動作時間は300m5 であり、300ms鮭過後復
旧し、収納レバー105および返却レノ(−106も復
旧する。同時にストップビン亀復旧するため、後続硬貨
は収納レバー105および返却レバー10@で係止され
る位置まで落下して最下位硬貨となる。
The operation time of both the storage magnet 33 and the return magnet 34 is 300m5, and they are restored after 300ms of salmon passing, and the storage lever 105 and the return coin (-106) are also restored.At the same time, the stop bin turtle is restored, so subsequent coins are transferred to the storage lever 105. Then, the coin falls to the position where it is stopped by the return lever 10@, and becomes the lowest coin.

上記硬貨演算処理ステップ1032 もしくは硬貨返却
処理ステップ1034の終了後、プログラムの実行はイ
ンターバル処理ステップ1035 に移行する。これは
、収納もしくは返却マグネットを動作させて収納もしく
は返却を行かった後、次の収納もしくは返却動作まで、
300mBのインターバルを置くためのものであり、終
了後、プログラムの実行は再びステップ1030に移行
し、先の収納もしくは返却で更新された収納・返却メモ
リ(0)の内容のチェックを行なう。そして、上述した
と同様の処理を、収納・返却メモリ(0)の内容が処理
終了データ’ FF’  となるまで繰返す。
After completing the coin calculation processing step 1032 or the coin return processing step 1034, the program execution moves to an interval processing step 1035. This means that after the storage or return magnet is operated to store or return the item, until the next storage or return operation,
This is to set an interval of 300 mB, and after the program is finished, the execution of the program moves to step 1030 again, and the contents of the storage/return memory (0) updated by the previous storage or return are checked. 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 およびステップ1
033を鮭て直ちに収納処理ルーチンを終了する。
That is, when the content of the storage/return memory (0) becomes 'FF', step 1030 and step 1 are performed.
033 and immediately ends the storage processing routine.

従って、通話継続中に関しては、前述したように1回の
収納判断処理ルーチンでは場合によって1個の収納・返
却メモリ(0)に収納データs01″が書込まれるのみ
であるため、1回の収納処理ルーチンは、最下位硬貨を
1個収納して終了するかもしくは収納も返却も全く行な
わずに終了するかのいずれかである。
Therefore, while the call is continuing, as mentioned above, in one storage judgment processing routine, the storage data s01'' is only written to one storage/return memory (0) depending on the case. The 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図は、精算処理ルーチンを示す70−チャートであ
る。この精算処理は、先に述べたように1通話終了後、
即ちフック処理ステップ1009の終了後に未収納通話
料金をn算する蓄積硬貨の組合せを決定するためのもの
である。
Settlement Processing FIG. 8 is a 70-chart showing the settlement processing routine. As mentioned earlier, this payment process is done after one call ends.
That is, after the hook processing step 1009 is completed, the combination of accumulated coins for calculating the uncollected call charges by n is determined.

プログラムの実行が精算処理に移行すると、ステップ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 number of accumulated coins in order from the highest denomination coin according to the contents of the accumulation memory as described above, and storing the result in the corresponding accumulated number mesori as the accumulated number of coins of the relevant denomination.

次いで、ステップ1041 において未収納通話料金の
端数を最低額硬貨額の単位で切上げる処理が行なわれる
。即ち、未収納通話料金は必ずしも最低額硬貨額の整数
倍とはならないが、実際に収納し得る金額は最低額硬貨
額が単位となるからである。具体的には、未収納通話料
金を最低額硬貨額で除し、余りがあれば商に「l」を加
えた値、とにより算出できる。
Next, in step 1041, a process is performed in which the fraction of the uncollected call charge is rounded up to the lowest coin amount. 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 can be calculated by dividing the uncollected call charges by the minimum amount in coins, and if there is a remainder, add "l" to the quotient.

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

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

そこで、ステップ1045において当該金種の硬貨が蓄
積されていることが確認された場合には、ステップ10
46において、前記ワーキングメモリの内容としての未
収納通話料金を当該硬貨額で割って、収納許可回数、即
ち、当該硬貨をその回数だけ収納して4未収納通話料金
を越えない最大回数を求める。
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 can be stored that number of times without exceeding 4 uncollected call charges.

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

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

これに対し、第2のケースとして蓄積枚数が収納許可回
数を下回る場合には、ステップ10491Cおいて、未
収納通話料金から、現実に収納できる枚数としての蓄積
枚数分の硬貨総額を減算する。
On the other hand, in the second case, if the number of accumulated coins is less than the permitted number of times of storage, in step 10491C, the total amount of coins equivalent to the number of accumulated 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 において上記減算の結果、
未収納通話料金が零となったか否かが判断され、零であ
れば次のステップ1o52に移行するが、零でなければ
ステップ1o43に戻や、順次より低額な硬貨について
同様の処理を繰返す。
Then, in step 1051, the result of the above subtraction is
It is determined whether or not the uncollected call charge has become zero. If it is zero, the process moves to the next step 1o52, but if it is not zero, the process returns to step 1o43, and the same process is repeated for successively lower denomination coins.

なお、ステップ1045において、当該金種の硬貨の蓄
積がないことが確認された場合には、プログラムの実行
は直ちにステップ1043に移行してより低額な硬貨に
ついての処理を行なう。
Note that if it is confirmed in step 1045 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.

この結果、未収納通話料金が丁度零とならないのに全金
種についての処理が一通シ終了してしまった場合、即ち
、未収納通話料金に丁度対応する蓄積硬貨の組合せがな
い場合には、プログラムの奥行はステップ1043から
ステップ10S3に移行し、未収納通話料金に最低額硬
貨額を加算し、加算後の未収納通話料金について、ステ
ップ1042から前記と同様の処理を繰返す。その結果
、なお未収納通話料金に一致する金額の蓄積硬貨の組合
せが選定できなければ更に最低額硬貨額を加算して同様
に繰返す。
As a result, if processing for all denominations has been completed even though the uncollected call charges have not reached exactly zero, in other words, if there is no combination of accumulated coins that exactly corresponds to the uncollected call charges, The depth of the program moves from step 1043 to step 10S3, where the minimum coin amount is added to the uncollected call charge, and the same processing as described above is repeated from step 1042 on the uncollected call charge 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  に
おいてワーキングメモリの内容としての未収納通話料金
が零となつ念場合、プログラムの実行はステップ105
2に移行し、収納枚数メモリと蓄積メモリの内容に従っ
て、収納・返却メモリに収納もしくは返却データを書込
んで行く。
If a combination of accumulated coins that matches the uncollected call charges is selected in this way, that is, if the uncollected call charges as the contents of the working memory become zero in step 1051, the program is executed in step 105.
2, storage or return data is written in the storage/return memory according to the storage number memory and the contents of the storage memory.

これは、先に述べたように、各金種別の収納枚数を現実
に蓄積メモリの内容で示されるように蓄積されている各
硬貨に割当てて行く作業であり、割当ては下位優先で行
なう。
As mentioned above, this is a task of allocating the number of stored coins of 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円)。
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
) contents are '14'' (20 yen) each.

114’ 、 % 64’ (100円)、’00’ 
、’00’である。これに対し、収納枚数メモリ(0)
〜(3)の内容がそれぞれrlj、l−0J、rlJ、
rOJである場合、即ち100円硬貨と20円硬貨とを
それぞれ1枚ずつ収納すべき場合には、下位から3番目
の100円硬貨と、最下位の20円硬貨を収納すべきこ
とが決定され、2番目の20円は返却すべきこととなる
。この結果、収納・返却メモリ(0) 〜(2) Kは
それぞれ’01’ 、  隼00” 、 Sol”+7
)データが書込まれる。実際に硬貨が蓄積されていない
蓄積位置に対応する残りの収納・返却メモリ(3) 、
 (4)の内容は’ FF”の壕まである。
114', %64' (100 yen), '00'
, '00'. In contrast, storage number memory (0)
The contents of ~(3) are rlj, l-0J, rlJ, respectively.
In the case of rOJ, that is, when one 100 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. , the second 20 yen must be returned. As a result, the storage/return memories (0) to (2) K are '01', Hayabusa 00'', and Sol''+7, respectively.
) data is written. The remaining storage/return memory (3) corresponding to the storage position where no coins are actually stored;
The contents of (4) even include the ``FF'' moat.

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

以上、第1図および第2図に示した本発明の1実施例の
動作について、第3図〜第8図のフローチャートを用い
て詳細に説明したが、上に述べたところから明らかなよ
うに、本実施例は次のような効果を有する。
The operation of the embodiment of the present invention shown in FIGS. 1 and 2 has been explained in detail using the flowcharts shown in FIGS. 3 to 8, but as is clear from the above, , 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.

また、通話継続中において本、蓄積軌道が満杯でありか
つ未収納通話料金が最下位蓄積硬貨額より大きい時に正
貨の追加投入があった場合という限定の下に、蓄積レバ
ーを動作させて上記追加投入された硬貨の蓄Sを許可し
、また最下位硬貨を収納するようにしたことにより、蓄
積容量による通話時間の制約から逃れることができる。
In addition, the accumulation lever can be operated to operate the accumulation lever under the limitation that if additional specie coins are inserted while the accumulation track is full and the unaccumulated call charge is greater than the lowest accumulation coin amount while the call is continuing. By allowing the storage S of additionally inserted coins and storing the lowest coin, it is possible to avoid restrictions on call time due to storage capacity.

同様に、通話時間の制約から逃れる手段として、収納判
断処理ルーチンのプログラムを次のように変更すること
も有効である。
Similarly, as a means of escaping from the call time constraints, it is also effective to change the storage determination processing routine program as follows.

m2実施例 即ち、第9図は、本発明の他の実施例における収納判断
処理ルーチンを示すフローチャートである。
Embodiment m2, 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 shifts to storage determination processing, an instruction to set the contents of the storage/return memory to 'FF' is executed in step 1060.

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

しかし、ステップ1061 において正貨の投入が検出
されなかった場合、および、ステップ1062において
蓄積軌道が満杯でなかった場合には、プログラムの実行
はステップ1065 に移行し、最下位硬貨額、即ち蓄
積メモリ(0)の内容が最高額硬貨額に等しいか否かを
判断し、等しい場合には更にステップ1066において
未収納通話料金が最高額硬貨額、即ち最下位硬貨額を上
回っているが否かを判断し、上回っていれば、ステップ
1064に移行して収納・返却メモ’) (0)に収納
データを書込む。ステップ1065において最下位硬貨
額が最高額硬貨額に等しくない場合、およびステップ1
066において未収納通話料金が最高額硬貨額以下であ
る場合には、直ちに収納判断処理ルーチンを終了する。
However, if 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 is stored in the accumulated 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 or not the uncollected call charge exceeds the highest coin amount, that is, the lowest coin amount. If the value exceeds the value, the process moves to step 1064 and the storage data is written in the storage/return memo') (0). If the lowest coin amount is not equal to the highest coin amount in step 1065, and step 1
If the uncollected call charge is less than the maximum coin amount at 066, the collection determination processing routine is immediately terminated.

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

他の実施例 なお、上述した実施例では正貨の投入を示す選下に、蓄
積レバーを動かす蓄積マグネットに動作指令信号を与え
る構成をとったが、正貨投入を示す選別信号を、専用の
論理回路を介して蓄積マグネットに与えることによシ蓄
積レバーを動かしても良い。その場合、例えば、蓄積軌
道が満杯でないか、あるいは満杯であっても未収納通話
料金が最下位硬貨額よシ大きい場合にCPUからの信号
により上記論理回路を構成するゲートを開ける構成をと
っても良い。
Other Embodiments In addition, in the above-described embodiment, an operation command signal is given to the storage magnet that moves the storage lever upon selection indicating the insertion of genuine coins. The storage lever may be actuated by feeding the storage magnet through a logic circuit. In that case, for example, if the storage track is not full, or even if it is full but the uncollected call charges are larger than the lowest coin amount, a gate forming the logic circuit may be opened by a signal from the CPU. .

また、上述した実施例においては、常時閉状態にある蓄
積レバー金膜け、正貨の場合のみ蓄積レバー全開けて蓄
積を許可する方式を用いたが、本発明はこれに限定され
るものではなく、蓄積軌道の入り口は常時開状態として
おき、蓄積軌道が満杯でオーバーフローしない限り、投
入硬貨はすべて蓄積する方式を用いても良い。その場合
には、例えば当該硬貨が擬似貨であることをメモリに記
憶し、その硬貨が最下位に来た場合には無条件に返却と
して処理すれば良い。
Furthermore, in the above-described embodiment, a method was used in which the storage lever is always closed with a gold film, and the storage lever is fully opened to permit storage only in the case of genuine coins, but the present invention is not limited to this. Alternatively, the entrance to the storage track may be kept open at all times, and all input coins may be stored as long as the storage track is full and does not overflow. In that case, for example, the fact that the coin is a pseudo coin may be stored in the memory, and when the coin reaches the lowest position, it may be processed as being returned unconditionally.

更に、上述し喪実施例においては、通話継続中は原則と
して収納は行なわず、通話終了後に利用者にとって釣銭
の被害が最小となるような方式で精算をして収納する場
合についてのみ説明したが、本発明の適用自体はこれに
限定されるものではなく、通話継続中、通話終了後を問
わず、例えば低額硬貨優先あるいは高額硬貨優先部、任
意の方針に従って収納すべき蓄積硬貨を決定して良い。
Furthermore, in the above-mentioned mourning example, in principle, change is not collected while the call is continuing, and only the case where change is collected and collected after the call ends in a manner that minimizes the damage to the user. However, the application of the present invention is not limited to this, and the accumulated coins to be stored can be determined according to an arbitrary policy, such as giving priority to low-value coins or giving priority to high-value coins, regardless of whether the call is continuing or after the call ends. good.

従って、課金信号の到来に応じて先に一定の硬貨を収納
し、収納分に相当する時間の通話を許可する先収納方式
によっても良い。
Therefore, a first storage method may be used in which a certain amount of coins is stored in advance in response to the arrival of a billing signal, and a call is permitted for a time corresponding to the amount of coins stored.

本発明の効果 即ち、本発明によれば、1つの蓄積軌道に蓄積された各
硬貨を自由に収納通路と返却通路とに振り分けることが
できるため、最小被害方式をはじめとする任意の収納方
式に従って任意の硬貨を収納することができると共に、
構成部品、構成規模を小さくでき、かつ利用者としても
いちいち硬貨の種類を確認することなく1つの硬貨投入
口から任意に投入することができ扱い易い等の種々優れ
た効果を有する。
Effects of the present invention According to the present invention, each coin accumulated in one accumulation track can be freely distributed to a storage path and a return path, so that coins can be freely distributed according to any storage method including the minimum damage method. It can store any coins, and
It has various excellent effects such as being able to reduce the component parts and the size of the structure, and being easy to handle as the user can insert coins arbitrarily from one coin slot without checking the type of coins one by one.

【図面の簡単な説明】[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楽)
FIG. 1 is a circuit configuration diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing the configuration of the coin track of the public telephone shown in FIG. 1, and FIG. FIG. 4 is a flowchart showing an example of the main routine program, 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 an example of the storage judgment processing routine program. FIG. 7 is a flowchart showing an example of the storage judgment processing routine program, FIG. 8 is a flowchart showing an example of the payment processing routine program, and FIG. 9 is a flowchart showing another example of the storage judgment processing routine program. . 10...Telephone circuit, 20...Control unit, 21...
...I/O boat, 22...-Central processing unit, 23
...-Fixed memory, 24#fist...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 Denko Seisakusho Co., Ltd. Agent: Masaki Yamakawa (and 1 other person)

Claims (2)

【特許請求の範囲】[Claims] (1)1つの蓄積軌道に複数種の硬貨を投入順に蓄積す
るようにした公衆電話機において、投入硬貨が正貨であ
るか否かおよびその種類を判別する硬貨選別手段と、蓄
積1[K硬貨の種別を記憶する記憶手段と、この記憶手
段の内容と未収納通話料金とから収納すべき蓄積硬貨を
選定する選定手段と、この選定結果に従って蓄積硬貨を
収納通路と返却通路とにIIり分ける手段とを備え死こ
とを轡像とする会衆電話機。
(1) In a public telephone that stores multiple types of coins in the order in which they are inserted into one storage track, there is provided a coin sorting means for determining whether or not an inserted coin is a genuine coin and its type; a storage means for storing the type of the storage means; a selection means for selecting accumulated coins to be stored from the contents of the storage means and uncollected call charges; and a selection means for sorting the accumulated coins into a storage passage and a return passage according to the selection result. A congregation telephone equipped with the means and the image of death.
(2)選定手段は、通話終了時に収納すべき蓄積硬貨と
して、未収納通話料金以上であ夛かつ幽誼未収納通話料
金に最も近い総額となる組合せの蓄積硬貨を選定するこ
とを特徴とする特許請求の範囲第1項記載の公衆電話機
(2) The selection means is characterized in that the selection means selects, as the accumulated coins to be stored at the end of the call, a combination of accumulated coins that is equal to or greater than the uncollected call charge and has a total value that is closest to the uncollected call charge. A public telephone set according to claim 1.
JP5406082A 1982-03-31 1982-03-31 Public telephone set Granted JPS58171168A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5406082A JPS58171168A (en) 1982-03-31 1982-03-31 Public telephone set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5406082A JPS58171168A (en) 1982-03-31 1982-03-31 Public telephone set

Publications (2)

Publication Number Publication Date
JPS58171168A true JPS58171168A (en) 1983-10-07
JPH0137903B2 JPH0137903B2 (en) 1989-08-10

Family

ID=12960067

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5406082A Granted JPS58171168A (en) 1982-03-31 1982-03-31 Public telephone set

Country Status (1)

Country Link
JP (1) JPS58171168A (en)

Citations (3)

* 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
JPS5124202A (en) * 1974-08-23 1976-02-27 Kazuo Hashimoto Rokuonsareta johooenkakuchikara kosokudodeshutokusuruhoshiki

Patent Citations (3)

* 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
JPS5124202A (en) * 1974-08-23 1976-02-27 Kazuo Hashimoto Rokuonsareta johooenkakuchikara kosokudodeshutokusuruhoshiki

Also Published As

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

Similar Documents

Publication Publication Date Title
US4192972A (en) Pay-telephone station with deferred collection
EP0352177B1 (en) Public telephon set
JPS59231966A (en) Processing control system of public telephone set
US4124775A (en) Coin box removal information processing arrangement
CN107980152A (en) ATM clears method, apparatus, system and ATM machine
US4625078A (en) Fraud prevention in an electronic coin telephone set
US4123623A (en) Pay telephone alarm and audit system
US4674114A (en) Fraud prevention in an electronic coin telephone set
JPS58171168A (en) Public telephone set
JPS58171169A (en) Method for receiving coin of public telephone set
JPS58173955A (en) Public telephone set
JPS58171167A (en) Method for receiving coin of public telephone set
JPH0320948B2 (en)
JPS58173956A (en) Coin storing system of public telephone set
JPS58137092A (en) Coin storage control system
JPH0137901B2 (en)
JPH0137900B2 (en)
JPS6193765A (en) Automatic dial telephone set
JPS58137359A (en) Public telephone set
JPS61154255A (en) Talking controller for telephone set
JPS58137357A (en) Charging system of public telephone set
JP2955898B2 (en) Public telephone
JPH0137902B2 (en)
JPS5813063A (en) Coin handling system of public telephone set
JPH0137899B2 (en)