JPH0769147B2 - Coin outer diameter data measuring device - Google Patents
Coin outer diameter data measuring deviceInfo
- Publication number
- JPH0769147B2 JPH0769147B2 JP19049190A JP19049190A JPH0769147B2 JP H0769147 B2 JPH0769147 B2 JP H0769147B2 JP 19049190 A JP19049190 A JP 19049190A JP 19049190 A JP19049190 A JP 19049190A JP H0769147 B2 JPH0769147 B2 JP H0769147B2
- Authority
- JP
- Japan
- Prior art keywords
- coin
- outer diameter
- value
- initial value
- counter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
- 238000001514 detection method Methods 0.000 claims description 16
- 230000003287 optical effect Effects 0.000 claims description 14
- 238000005096 rolling process Methods 0.000 claims description 4
- 238000000034 method Methods 0.000 description 13
- 238000003780 insertion Methods 0.000 description 11
- 230000037431 insertion Effects 0.000 description 11
- 238000005259 measurement Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 239000000463 material Substances 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000012790 confirmation Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 2
- 239000003990 capacitor Substances 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- BGPVFRJUHWVFKM-UHFFFAOYSA-N N1=C2C=CC=CC2=[N+]([O-])C1(CC1)CCC21N=C1C=CC=CC1=[N+]2[O-] Chemical compound N1=C2C=CC=CC2=[N+]([O-])C1(CC1)CCC21N=C1C=CC=CC1=[N+]2[O-] BGPVFRJUHWVFKM-UHFFFAOYSA-N 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000032683 aging Effects 0.000 description 1
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Testing Of Coins (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] 本発明は、硬貨転動通路に転動される硬貨の外形を計測
する硬貨外径データ計測装置に関するものである。TECHNICAL FIELD The present invention relates to a coin outer diameter data measuring device for measuring the outer shape of a coin rolled in a coin rolling passage.
[従来の技術] 従来、局電源方式の公衆電話機において、投入される硬
貨の外径を計測するための装置としては、例えば特願昭
63−276118号に記載のものがある。[Prior Art] Conventionally, as a device for measuring the outer diameter of a coin to be inserted in a public telephone of a station power supply system, for example, Japanese Patent Application No.
There is one described in 63-276118.
これは、第6図に示すように、硬貨、すなわちコインの
外径を選別する硬貨外径選別センサ3を複数備え、これ
ら複数のセンサ3による検出時間の比に応じてコインの
外径識別を行うものである。すなわち、第6図におい
て、1はコイン、2はコイン1の投入を検知する投入検
知センサ、3は上記した複数の硬貨外径選別センサ、4
は硬貨の材質,厚さ等を検出する材質・厚さ選別部、5
は振分マグネット、6は振分レバー、7はコイン1の通
過を検知する通過検知センサである。そして、投入され
たコイン1は、投入検知センサ2により検知されると、
まず、硬貨外径選別センサ3により選別され、さらに、
材質・厚さ選別部4により材質等が選別されて、正貨で
あると判定されると、コイン1は通過検知センサ7を通
過して蓄積される。また、硬貨選別の結果、正貨ではな
いと判定されると振分マグネット5が駆動され、この結
果、振分レバー6が作動しコイン1は返却される。As shown in FIG. 6, this is provided with a plurality of coin outer diameter sorting sensors 3 for sorting the outer diameter of coins, that is, coins, and discriminating the outer diameter of coins according to the ratio of the detection time by the plurality of sensors 3. It is something to do. That is, in FIG. 6, 1 is a coin, 2 is an insertion detection sensor for detecting insertion of the coin 1, 3 is a plurality of coin outer diameter sorting sensors described above, 4
Is a material / thickness selection unit that detects the material and thickness of coins, and 5
Is a distribution magnet, 6 is a distribution lever, and 7 is a passage detection sensor for detecting passage of the coin 1. When the inserted coin 1 is detected by the insertion detection sensor 2,
First, the coin outer diameter sorting sensor 3 sorts, and further,
When the material / thickness is selected by the material / thickness selection unit 4 and it is determined that the coin is a true coin, the coin 1 passes through the passage detection sensor 7 and is accumulated. Further, as a result of coin selection, when it is determined that the coin is not a true coin, the sorting magnet 5 is driven, and as a result, the sorting lever 6 operates and the coin 1 is returned.
次に、第7図は、コイン1の選別等の処理を行う硬貨処
理部の詳細なブロック図である。同図において、第6図
と同等部分は同一符号を付してその説明を省略する。第
7図において、9はコイン1の蓄積・返却処理を行う蓄
積・返却処理部、10はバイナリカウンタ、11はCPU、RST
はリセット信号、CKはクロック信号である。Next, FIG. 7 is a detailed block diagram of a coin processing unit that performs processing such as sorting of coins 1. In the figure, the same parts as those in FIG. 6 are designated by the same reference numerals and the description thereof will be omitted. In FIG. 7, 9 is a storage / return processing unit for storing / returning coin 1, 10 is a binary counter, 11 is a CPU, and RST.
Is a reset signal and CK is a clock signal.
そして、上記したように、硬貨の外径選別するために
は、複数(3個)のLED31〜33とこれと対向して配置さ
れこれらLEDの発する光を受光する複数のフォトトラン
ジスタ34〜36とが設けられ、これらの間をコイン1が通
過することによって遮る時間をカウントしてコイン1の
外径を計測するようにしている。すなわち、コイン1が
これらLED31〜33とフォトトランジスタ34〜36間を通過
している間、バイナリカウンタ10はクロック信号CKを入
力してこれをカウントし、このカウントされた値をCPU1
1が読み出して演算を行うことによりコインの外径が計
測される。Then, as described above, in order to select the outer diameter of coins, a plurality (three) of LEDs 3 1 to 3 3 and a plurality of phototransistors 3 4 which are arranged facing each other and which receive the light emitted from these LEDs are provided. to 3 6 and is provided, so that between these coins 1 measures the outer diameter of the coin 1 by counting the time to block by passing through. That is, while the coin 1 is passing between them LED 3 1 to 3 3 and the phototransistor 3 4-3 6, the binary counter 10 counts this by inputting the clock signal CK, the count value CPU1
The outer diameter of the coin is measured by reading out by 1 and performing calculation.
しかしながら、この公衆電話機は、局電源のみで動作さ
せる必要があるため、これら複数のコイル外径選別用の
LED31〜33を常時点灯するだけの電力を持ち合わせてい
ない。従って従来は、第8図に示す動作説明図に基づい
てコインの外径を計測するようにしている。なお、この
硬貨外径データ計測装置は、各硬貨外径選別用のセンサ
毎に全く同様の処理を行うので、この説明図上では1つ
のセンサによる外径データ検出の例について説明する。However, since this public telephone needs to be operated only by the local power supply, it is necessary to select the outside diameter of these coils.
It does not have enough power to light LEDs 3 1 to 3 3 all the time. Therefore, conventionally, the outer diameter of the coin is measured based on the operation explanatory diagram shown in FIG. Since this coin outer diameter data measuring device performs exactly the same process for each coin outer diameter sorting sensor, an example of outer diameter data detection by one sensor will be described on this explanatory diagram.
すなわち、ステップ50においてコインの投入が投入検知
センサ2により検知されると、ステップ51でこのコイン
の外径を選別するためのLED31に電源を供給して駆動
し、続いてステップ52でバイナリカウンタ10をリセット
信号RSTによりリセットする。その後、コイン1がLED31
とこのLED31に対向するフォトトランジスタ34間を通過
すると、この間、クロック信号CKがバイナリカウンタ10
に送出され、このクロック信号CKがカウントされる。そ
して、ステップ53で所定時間毎(3.3ms毎)にバイナリ
カウンタ10の値を読み込み、ステップ54でこの値がコイ
ンの外径の計測を開始させるべき値に達したか否か、す
なわち前回読み出したバイナリカウンタ10の値と今回の
読み出した値とが不一致となるか否かを判断し、これら
が一致して「N」と判断される場合は、ステップ53に戻
って引き続いてバイナリカウンタ10の値を読みだしする
が、バイナリカウンタ10の値が前回の値と不一致となり
コインの外径計測を開始するべき値になると、コインの
外径の計測を開始する。That is, if in step 50 insertion of a coin is detected by the insertion detection sensor 2, driven by supplying power to the LED 3 1 for sorting the outer diameter of the coin at step 51, followed by the binary counter in step 52 10 is reset by the reset signal RST. After that, coin 1 becomes LED3 1
And the phototransistor 3 4 facing the LED 3 1 passes, the clock signal CK is passed through the binary counter 10 during this time.
And the clock signal CK is counted. Then, in step 53, the value of the binary counter 10 is read every predetermined time (every 3.3 ms), and in step 54, it is read whether or not this value has reached the value at which the measurement of the outer diameter of the coin should be started, that is, the previous reading. It is determined whether or not the value of the binary counter 10 and the value read this time do not match. If they match and it is determined as "N", the process returns to step 53 and the value of the binary counter 10 continues. However, when the value of the binary counter 10 does not match the previous value and the coin outer diameter measurement should be started, the coin outer diameter measurement is started.
その後、所定時間毎に、バイナリカウンタ10の値を読み
出し(ステップ55)、この読み出した値と前回の読みだ
し値とが一致するまで、すなわちコインの外径の計測を
終了する値までバイナリカウンタ10の値を読み出すもの
となっている。そして、コインの計測終了すべき値とな
ってステップ56で「Y」と判定されると、計測開始時お
よび計測終了時のバイナリカウンタ10の値とからコイン
の外径データを算出し(ステップ57)、その後ステップ
58でコインの外径データを計測するためのLED31の電源
をオフする。このように従来は、限られた電力で動作さ
せる必要があるため、コインが投入検知されてからこの
外径を計測するためのLED31の電源を投入し、計測終了
時にはこの電源をオフするようにしている。また、CPU1
1は、通常、低消費電力モードであるスリープモードに
あり、所定時間毎にウェイクアップ(目覚め)してコイ
ン1の外径計測処理を行うようにしている。After that, the value of the binary counter 10 is read every predetermined time (step 55), and the binary counter 10 is read until the read value and the previous read value match, that is, the value at which the outer diameter of the coin is measured. The value of is read. When the value of the coin to be measured is determined to be "Y" in step 56, the outer diameter data of the coin is calculated from the value of the binary counter 10 at the time of starting and ending the measurement (step 57). ), Then step
Turn off the power of LED3 1 for measuring outer diameter data of coins at 58. In this way, in the past, since it was necessary to operate with limited power, the LED3 1 for measuring the outer diameter is turned on after the coin is detected, and this power is turned off at the end of the measurement. I have to. Also, CPU1
1 is usually in a sleep mode which is a low power consumption mode, and wakes up (wakes up) at predetermined time intervals to perform an outer diameter measurement process of the coin 1.
このように従来は、コインの投入検知後にLED31の電源
をオンするようにしているため、第9図に示すように、
このLED31のオン後の2〜4msの間(時間Yの間)は、コ
イン1が通過しないにもかかわらず、バイナリカウンタ
10が動作し、バイナリカウンタ10が安定動作してその値
が一定値となるデータ確定後には、このバイナリカウン
タ10の値は値A、すなわち初期値Xを示している。この
ため実際のコイン外径測定に用いられるカウント値は、
コイン1がこの硬貨外径選別センサ3を通過した後のカ
ウンタ値Bから初期値Xを減算するようにしている。Thus the prior art, because you have to turn on the LED 3 1 after insertion detection of the coin, as shown in FIG. 9,
Although the coin 1 does not pass for 2 to 4 ms after the LED3 1 turns on (during the time Y), the binary counter
The value of the binary counter 10 indicates the value A, that is, the initial value X after the data is determined such that 10 operates and the binary counter 10 operates stably and its value becomes a constant value. Therefore, the count value used for actual coin outer diameter measurement is
The initial value X is subtracted from the counter value B after the coin 1 has passed through the coin outer diameter selection sensor 3.
[発明が解決しようとする課題] 上述した従来の硬貨外径データ計測装置は、初期値Xを
固定値として予めメモリへ記憶し、この固定の初期値X
に基づいてコインの外径選別を行うようにしているの
で、素子のばらつきおよび経年変化等により初期値Xの
変動を来し正確なコインの外径選別を行うことができな
いという問題があった。[Problems to be Solved by the Invention] In the conventional coin outer diameter data measuring device described above, the initial value X is stored in the memory in advance as a fixed value, and the fixed initial value X is stored.
Since the outer diameter of the coin is selected based on the above, there is a problem in that the initial value X fluctuates due to variations in elements and changes over time, so that accurate outer diameter selection of the coin cannot be performed.
[課題を解決するための手段] このような課題を解決するために本発明に係る硬貨外径
データ計測装置の第1発明は、光センサの直前の硬貨転
動通路に設けられその検知出力によって光センサに電源
供給する投入検知手段と、光センサへの電源投入と同時
に動作を一旦開始するカウンタの初期値を確定する初期
値確定手段と、この手段によって確定された初期値を記
憶する記憶手段と、硬貨の通過を確認した時のカウンタ
値と記憶手段の初期値とから硬貨外径データを取り出す
手段とを備えたものである。[Means for Solving the Problem] In order to solve such a problem, a first invention of a coin outer diameter data measuring device according to the present invention is provided in a coin rolling passage immediately before an optical sensor, and is provided with a detection output thereof. Power-on detection means for supplying power to the optical sensor, initial value fixing means for fixing the initial value of the counter for starting the operation simultaneously with power-on of the optical sensor, and storage means for storing the initial value fixed by this means. And means for extracting coin outer diameter data from the counter value when the passage of the coin is confirmed and the initial value of the storage means.
また、第2発明は、光センサへの電源投入後一定周期毎
に読み出されたカウンタ値が同一値になったときにこの
値を初期値として確定するようにしたものである。In the second invention, when the counter value read out at a constant cycle after the power supply to the optical sensor becomes the same value, this value is fixed as the initial value.
また、第3発明は、光センサへの電源投入後に読み出さ
れたカウンタ値をこの読み出し周期の長短に応じて選択
するとともにこの選択されたデータ値を初期値として確
定するようにしたものである。Further, the third invention is such that the counter value read out after the power supply to the optical sensor is turned on is selected according to the length of the reading cycle and the selected data value is fixed as an initial value. .
[作用] 硬貨の通過を確認した時のカウンタ値と初期値確定手段
により確定された初期値とから硬貨外径データが求めら
れる。[Operation] The coin outer diameter data is obtained from the counter value when it is confirmed that the coin has passed and the initial value determined by the initial value determining means.
また、光センサへの電源投入後に一定周期で読み出され
たカウンタ値が同一値になったときにこの値が初期値と
して確定される。Further, when the counter value read out in a constant cycle after the power supply to the optical sensor becomes the same value, this value is fixed as the initial value.
また、光センサへの電源投入後に読み出されたカウンタ
値はこの読み出し周期の長短に応じて選択され、この選
択されたカウンタ値が初期値として確定される。Further, the counter value read after the power supply to the photosensor is turned on is selected according to the length of the read cycle, and the selected counter value is fixed as the initial value.
[実施例] 次に、本発明について図面を参照して説明する。EXAMPLES Next, the present invention will be described with reference to the drawings.
第1図は、本発明の硬貨外径データ計測装置を適用した
公衆電話機の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of a public telephone to which the coin outer diameter data measuring device of the present invention is applied.
この公衆電話機は、交換機からの電話回線が接続される
線路端子L1,L2に対し、フックスイッチHS1、課金信号受
信回路21、ダイオードブリッジ22、電源回路23、および
強制切断回路24を介し、通話ループの形成を行うととも
に通話回路25が接続されており、これにはハンドセット
26の送話器Tおよび受話器Rが接続されている。This public telephone is connected to line terminals L 1 and L 2 to which a telephone line from an exchange is connected, via a hook switch HS 1 , a billing signal receiving circuit 21, a diode bridge 22, a power supply circuit 23, and a forced disconnection circuit 24. , A call loop is formed and a call circuit 25 is connected to which a handset
Twenty-six transmitters T and receivers R are connected.
また、マイクロプロセッサおよびメモリ等から構成され
る制御部27(第7図のCPU11と同等)が設けてあり、課
金信号受信回路21、コイン1の選別,蓄積および収納等
を行う上述の硬貨処理部29、ダイヤルキー30、フックス
イッチHS2等の各出力に応じて制御上の判断を行い、硬
貨処理部29、表示部32、MF信号を発生するMF信号発生器
33、通話回路25および強制切断回路24等の制御を行うも
のとなっている。In addition, a control unit 27 (equivalent to the CPU 11 in FIG. 7) including a microprocessor and a memory is provided, and the above-mentioned coin processing unit for selecting, accumulating and storing the billing signal receiving circuit 21 and the coin 1. 29, dial key 30, hook switch HS 2, etc., a coin processing unit 29, a display unit 32, and an MF signal generator for generating an MF signal by making a control judgment according to each output.
33, the call circuit 25 and the forced disconnection circuit 24 are controlled.
なお、MF信号発生器33は、ダイヤルキー30の出力および
制御部27の制御に応動し、ダイヤルキー30の操作に従う
MF信号を発生し、通話回路25を介してMF信号をダイヤル
信号として送出するものとなっている。The MF signal generator 33 responds to the output of the dial key 30 and the control of the control unit 27 and follows the operation of the dial key 30.
An MF signal is generated and the MF signal is sent out as a dial signal via the communication circuit 25.
一方、電源回路23は、オフフックによるフックスイッチ
HS1のオンより、通話回路25を介して直流ループが閉成
され、ダイオードブリッジ22により一定極性となったル
ープ電流が通ずるのに従い、これによってコンデンサを
充電し、コンデンサの端子電圧を電源Vとして各部へ供
給するものとなっている。On the other hand, the power supply circuit 23 is a hook switch by off-hook.
When HS 1 is turned on, the DC loop is closed via the communication circuit 25, and as the loop current of constant polarity is passed by the diode bridge 22, the capacitor is charged by this, and the terminal voltage of the capacitor is set as the power supply V. It is to be supplied to each part.
従って、先ループ方式であれば、オフフックを行うと直
流ループの閉成がなされたうえ、コイン1の投入による
硬貨処理部29の出力に応じて制御部27が許可信号を送出
することにより、ダイヤルキー30によるダイヤル発信が
可能となり、相手側の応答により通話が自在となる。Therefore, in the case of the first-loop system, when the off-hook is performed, the DC loop is closed, and the control unit 27 sends a permission signal in response to the output of the coin processing unit 29 when the coin 1 is inserted, thereby dialing the dial. Dialing with the key 30 is possible, and the call can be made freely by the response of the other party.
また、相手側の応答に従い、交換機から転極パルス等の
課金信号が到来すると、これが課金信号受信回路21によ
り受信され、受信出力を生じて制御部27へ与えるため、
これに応じて制御部27が硬貨処理部29を制御しコイン1
の収納を行うとともに、投入されて待機中のコイン1が
不足となれば、強制切断回路24を制御して直流ループを
一定時間開放し、交換機を復旧させて通話を強制的に切
断するものとなっている。Also, when a charging signal such as a reversing pulse arrives from the exchange according to the response of the other party, this is received by the charging signal receiving circuit 21, and a reception output is generated and given to the control unit 27,
In response to this, the control unit 27 controls the coin processing unit 29 to control the coin 1
When the coins that have been inserted and are on standby are running out, the forced disconnection circuit 24 is controlled to open the DC loop for a certain period of time to restore the exchange and forcibly disconnect the call. Has become.
なお、表示部32は、コイン1の投入催促、コイン1の不
足表示およびコイン1の収納状況の異常等による使用不
可の表示を行うものとなっている。The display unit 32 displays a prompt to insert the coin 1, a shortage of the coin 1, and an indication that the coin 1 cannot be used due to an abnormality in the stored state of the coin 1.
次に、以上のような動作を行う公衆電話機において、こ
の電話機へ投入されたコイン1の外径データの計測を行
う硬貨外径データ計測装置の動作を第2図のフローチャ
ートに基づいて説明する。なお、この硬貨外径データ計
測装置は、各硬貨外径選別用のセンサ毎に全く同様の処
理を行うので、ここでは1つのセンサによる外径データ
検出の例について説明する。また、このフローチャート
に基づくプログラムの処理は、公衆電話機の消費電力を
低減させるために通常はスリープ状態の制御部27が3.3m
s毎に不図示の割り込み信号によりウェイクアップさ
れ、この割り込み処理の中で制御部27により実行される
ものである。Next, the operation of the coin outer diameter data measuring device for measuring the outer diameter data of the coin 1 inserted into the public telephone which performs the above-mentioned operation will be described based on the flowchart of FIG. Since this coin outer diameter data measuring device performs exactly the same processing for each coin outer diameter sorting sensor, an example of outer diameter data detection by one sensor will be described here. In addition, the processing of the program based on this flowchart is normally performed by the control unit 27 in the sleep state by 3.3 m in order to reduce the power consumption of the public telephone.
It is waked up by an interrupt signal (not shown) every s, and is executed by the control unit 27 in this interrupt process.
このプログラムが起動されると、ステップ60においてバ
イナリカウンタ10の値を読み込んで記憶する。そして、
最初は、後述する各状態フラグがセットされていないの
で、ステップ61〜ステップ63においては、いづれも
「N」と判断され、この結果、ステップ64において投入
検知センサ2の出力に基づくコイン投入検知を判断す
る。ステップ64においてコイン1の投入が検知されなけ
れば、そのまま終了して次の3.3ms後に再度その検知が
判断される。When this program is started, the value of the binary counter 10 is read and stored in step 60. And
Initially, since each state flag described later is not set, it is determined as "N" in any of steps 61 to 63, and as a result, coin insertion detection based on the output of the insertion detection sensor 2 is performed in step 64. to decide. If the insertion of the coin 1 is not detected in step 64, the detection is judged again after 3.3 ms after the end.
また、コイン1の投入が検知された場合は、ステップ64
で「Y」と判定され、この場合は、ステップ65で状態フ
ラグ「1」をセットし、さらにステップ66でこのコイン
1の外径を選別するためのLEDの電源をオンするととも
に、ステップ67でバイナリカウンタ10をリセットしてそ
の値を「0」に設定する。If the insertion of coin 1 is detected, step 64
In step 65, the state flag “1” is set, and in step 66, the power of the LED for selecting the outer diameter of the coin 1 is turned on, and in step 67. The binary counter 10 is reset and its value is set to "0".
こうして状態フラグ「1」がセットされると、次の3.3m
s後に再度このプログラムが実行され、この結果、ステ
ップ60でバイナリカウンタ10の値が読み込まれて記憶さ
れるとともに、ステップ61において状態フラグ「1」の
セットが「Y」と判定される。そしてこの場合は、ステ
ップ68において後述する初期値確定処理のサブルーチン
が実行され、この初期値確定処理の実行による初期値確
定フラグの有無を検出してステップ69で初期値確定の判
断を行う。そして、初期値が確定しなければ、そのまま
終了して次の3.3ms後に再度判断することになるが、初
期値が確定した場合は、ステップ70でこの初期値を記憶
するとともに、ステップ71で状態フラグ「2」をセット
して終了する。When the status flag "1" is set in this way, the next 3.3m
After s, this program is executed again, and as a result, the value of the binary counter 10 is read and stored in step 60, and the setting of the status flag "1" is determined to be "Y" in step 61. In this case, in step 68, a subroutine of an initial value finalizing process, which will be described later, is executed, the presence or absence of an initial value finalizing flag due to the execution of the initial value finalizing process is detected, and the initial value finalizing determination is made in step 69. Then, if the initial value is not fixed, the process will be terminated and the judgment will be made again in the next 3.3 ms. However, if the initial value is fixed, the initial value is stored in step 70 and the state is stored in step 71. The flag "2" is set and the process ends.
こうして状態フラグ「2」がセットされた後、次の3.3m
s後に再度このプログラムが実行され、この結果、ステ
ップ60でバイナリカウンタ10の値が再度読み込まれて記
憶されるとともに、ステップ62において状態フラグ
「2」のセットが「Y」と判定される。そしてこの場合
は、ステップ72においてこのコイン1の計測スタートの
判断を今回読み込んだデータ値と既に記憶されている初
期値としてのデータ値との不一致を検出することにより
行い、この結果、これらのデータ値が一致していれば、
そのまま終了して次の3.3ms後に再度判断することにな
るが、これらのデータ値が不一致となった場合は、計測
スタートと判断して(ステップ72で「Y」)、ステップ
73で今回読み込んだデータ値を記憶するとともに、ステ
ップ74で状態フラグ「3」をセットして終了する。After the status flag "2" is set in this way, the next 3.3m
After s, this program is executed again, and as a result, the value of the binary counter 10 is read and stored again in step 60, and the setting of the status flag "2" is determined to be "Y" in step 62. In this case, in step 72, the determination of the start of measurement of the coin 1 is made by detecting a mismatch between the data value read this time and the data value that has already been stored as the initial value. If the values match,
Although it will be ended and the judgment will be made again in the next 3.3 ms, if these data values do not match, it is judged that the measurement has started (“Y” in step 72), and the step
The data value read this time is stored in 73, and the state flag "3" is set in step 74, and the process ends.
また、状態フラグ「3」がセットされた後、次の3.3ms
後に再度このプログラムが実行されと、ステップ60でバ
イナリカウンタ10の値が再度読み込まれて記憶されると
ともに、ステップ63において状態フラグ「3」のセット
が「Y」と判定される。そしてこの場合は、ステップ75
においてこのコイン1の計測終了の判断を今回読み込ん
だデータ値と既に記憶されている初期値としてのデータ
値との一致を検出することにより行い、この結果、これ
らのデータ値が一致していなければ、そのまま終了して
次の3.3ms後に再度判断することになるが、これらのデ
ータ値が一致した場合は、計測終了と判断して(ステッ
プ75で「Y」)、続いてステップ76で今回読み込んだデ
ータ値と既に記憶されている初期値とからコイン1の外
径データを演算して確定し、さらにステップ77でコイン
1の外径を選別するためのLED3の電源をオフするととも
に、ステップ78で状態フラグをリセットして終了する。Also, after the status flag “3” is set, the next 3.3ms
When this program is executed again later, the value of the binary counter 10 is read again and stored in step 60, and the setting of the state flag "3" is determined to be "Y" in step 63. And in this case, step 75
In this case, the judgment of the measurement end of this coin 1 is made by detecting the coincidence between the data value read this time and the data value as the already stored initial value, and as a result, if these data values do not coincide with each other. , And it will be judged again after the next 3.3 ms, but if these data values match, it is judged that the measurement has ended (“Y” in step 75), and then this time is read in step 76. The outer diameter data of the coin 1 is calculated and determined from the data value and the already stored initial value, and the power of the LED 3 for selecting the outer diameter of the coin 1 is turned off in step 77, and step 78 To reset the status flag and exit.
次に、第3図は、上記した初期値確定処理のサブルーチ
ンのうち第1の初期値確定動作を説明する初期値確定処
理1のフローチャートである。Next, FIG. 3 is a flow chart of the initial value fixing process 1 for explaining the first initial value fixing operation in the subroutine of the initial value fixing process described above.
すなわち、ステップ80でメモリに予め記憶されている前
回のカウント値を読み出すとともに、この前回のカウン
ト値と3.3ms毎の割り込み処理の冒頭(第2図のフロー
チャートのステップ60)で読み出しされる今回のカウン
ト値との一致判断をステップ81で行い、これが同一の値
と判断された場合は、ステップ82で初期値確定フラグを
セットするようにしたものである。That is, the previous count value stored in advance in the memory in step 80 is read, and the current count value and the current count value read at the beginning of interrupt processing every 3.3 ms (step 60 in the flowchart of FIG. 2). If the coincidence with the count value is determined in step 81, and if they are determined to be the same value, the initial value confirmation flag is set in step 82.
この初期値確定方法によれば、LED31への電源オン後の
バイナリカウンタ10の値が同一値になった場合にこれを
初期値として決定するものであるが、3.3ms毎に読み出
したカウンタ値を比較しているので、データが確定する
までは、第5図に示すように、約10ms(3.3ms×3)要
し、コイン1の投入後にコイン1が硬貨外径選別センサ
3を10ms以上で通過するような装置においては極めて有
効である。しかしながら、コイン1の投入後にコイン1
が硬貨外径選別センサ3を10ms以下で通過するような装
置では外径選別が行えないことが考えられる。第4図は
このような装置に適用される第2の初期値確定動作を説
明するフローチャートである。According to this initial value determination method, when the value of the binary counter 10 after turning on the power to the LED3 1 becomes the same value, it is decided as the initial value, but the counter value read every 3.3 ms. As shown in Fig. 5, it takes about 10ms (3.3ms × 3) until the data is confirmed. After the coin 1 is inserted, the coin 1 causes the coin outer diameter sorting sensor 3 to be 10ms or more. It is extremely effective in a device that passes by. However, after inserting coin 1, coin 1
It is conceivable that outer diameter sorting cannot be performed with a device that passes the coin outer diameter sorting sensor 3 in less than 10 ms. FIG. 4 is a flow chart for explaining the second initial value fixing operation applied to such an apparatus.
ステップ90において予めメモリに記憶されているLED31
への電源投入後のカウント値の読み出し周期(リード周
期)の値をメモリから読み出して、ステップ91でこのリ
ード周期が4ms以上であるかの判断を行う。そして、こ
れが「Y」と判定される場合は、ステップ92でデータ
1、すなわち今回読み込んだカウント値を初期値として
設定し、ステップ93で初期値確定フラグを設定して終了
する。LED3 1 previously stored in memory in step 90 1
The value of the read cycle (read cycle) of the count value after the power is turned on is read from the memory, and in step 91 it is determined whether the read cycle is 4 ms or more. When it is determined to be "Y", the data 1 (that is, the count value read this time) is set as the initial value in step 92, the initial value confirmation flag is set in step 93, and the process ends.
また、リード周期の値が4ms以上ではない場合は、ステ
ップ91で「N」と判定され、この場合は、次にステップ
94でリード周期の値が4msと2msとの間にあるか否かを判
断し、これらの間にあれば、ステップ95でデータ2、す
なわち次回の割り込み時に読み込まれるカウント値を初
期値と設定し、ステップ93で初期値確定フラグを設定し
て終了する。If the value of the read cycle is not 4 ms or more, it is determined as “N” in step 91. In this case, the next step is
At 94, it is judged whether or not the value of the read cycle is between 4ms and 2ms, and if it is between these, at step 95, the data 2, that is, the count value read at the next interrupt is set as the initial value. In step 93, the initial value confirmation flag is set, and the process ends.
また、リード周期の値がこれらのいづれにも該当しなく
ステップ91およびステップ94で「N」と判定される場合
は、上述した初期値確定処理1がステップ96において実
行される。Further, when the value of the read cycle does not correspond to any of these and is determined to be “N” in step 91 and step 94, the above-described initial value fixing process 1 is executed in step 96.
このように、コイン1の投入が検知されLED31の電源が
オンされてからの2〜4ms間は、第5図に示すように、
バイナリカウンタ10のカウント値が一定値とならないた
め、この間にバイナリカウンタ10から読み込まれたカウ
ント値は初期値として用いず、LED31の電源がオンされ
てから4ms以上経過してバイナリカウンタ10のカウンタ
値が一定値となった後に読み込まれたカウント値を初期
値として用いるようにしたものである。この結果、コイ
ン1の投入後にコイン1が硬貨外径選別センサ3を10ms
以下で通過するような装置においてもコインの外径を充
分選別できる。Thus, among 2~4ms from power-on is detected in the LED 3 1 coin 1 is turned on, as shown in FIG. 5,
Since the count value of the binary counter 10 does not become a constant value, the count value read from the binary counter 10 during this period is not used as the initial value, the counter of the binary counter 10 has passed 4ms from more than LED 3 1 of the power supply is turned on The count value read after the value becomes a constant value is used as an initial value. As a result, after the coin 1 is inserted, the coin 1 moves the coin outer diameter selection sensor 3 for 10 ms.
The outer diameter of the coin can be sufficiently selected even in a device that passes through the following.
[発明の効果] 以上説明したように本発明に係る硬貨外径データ計測装
置は、硬貨の通過を確認した時のカウンタ値と初期値確
定手段により確定された初期値とから硬貨外径データを
取り出すようにしているので、初期値Xを固定値として
扱わず、従って素子のばらつきおよび経年変化等により
初期値Xが変動してもこれに応じた初期値を確定するこ
とができ、正確な硬貨外径選別を行えるという効果があ
る。[Effects of the Invention] As described above, the coin outer diameter data measuring device according to the present invention obtains coin outer diameter data from the counter value at the time of confirming the passage of coins and the initial value determined by the initial value determination means. Since the initial value X is taken out as a fixed value, even if the initial value X fluctuates due to variations in elements, aging, etc., the initial value corresponding to this can be determined and an accurate coin can be obtained. There is an effect that the outer diameter can be selected.
また、光センサへの電源投入後に一定周期で読み出され
たカウンタ値が同一値になったときにこの値を初期値と
して確定するようにしたので、初期値を正確に設定でき
るという効果がある。Further, when the counter value read out at a constant cycle after the power supply to the optical sensor becomes the same value, this value is set as the initial value, so that the initial value can be set accurately. .
また、光センサへの電源投入後に読み出されたカウンタ
値をこの読み出し周期の長短に応じて選択して初期値と
して確定するようにしたので、投入された硬貨が硬貨外
径選別センサを速い速度で通過するような装置において
も確実な硬貨外径の選別が行えるという効果がある。Also, the counter value read after the power supply to the optical sensor is selected according to the length of this read cycle to be fixed as the initial value, so that the inserted coin causes the coin outer diameter sorting sensor to operate at a high speed. There is an effect that the outer diameter of the coin can be reliably selected even in a device that passes by the.
第1図は本発明に係る硬貨外径データ計測装置を適用し
た公衆電話機の一実施例を示すブロック図、第2図〜第
4図はこの装置の動作を説明するフローチャート、第5
図はこの装置内のバイナリカウンタの動作を説明する
図、第6図は従来の硬貨外径データ計測装置の構成図、
第7図はこの装置のブロック図、第8図は従来装置の動
作を説明する動作説明図、第9図は従来装置内のバイナ
リカウンタの動作を説明する図である。 1……コイン、2……投入検知センサ、3……硬貨外径
選別センサ、31〜33……硬貨外径選別LED、34〜36……
硬貨外径選別フォトトランジスタ、10……バイナリカウ
ンタ、11……CPU、27……制御部、29……硬貨処理部、R
ST……リセット信号、CK……クロック信号。FIG. 1 is a block diagram showing an embodiment of a public telephone to which a coin outer diameter data measuring device according to the present invention is applied, and FIGS. 2 to 4 are flow charts for explaining the operation of this device, and FIG.
FIG. 6 is a diagram for explaining the operation of the binary counter in this device, FIG. 6 is a block diagram of a conventional coin outer diameter data measuring device,
FIG. 7 is a block diagram of this device, FIG. 8 is an operation explanatory diagram for explaining the operation of the conventional device, and FIG. 9 is a diagram for explaining the operation of the binary counter in the conventional device. 1 …… Coin, 2 …… Insertion detection sensor, 3 …… Coin outer diameter sorting sensor, 3 1 to 3 3 …… Coin outer diameter sorting LED, 3 4 to 3 6 ……
Coin outer diameter sorting phototransistor, 10 …… Binary counter, 11 …… CPU, 27 …… Control section, 29 …… Coin processing section, R
ST …… Reset signal, CK …… Clock signal.
Claims (3)
が通過している間クロック信号をカウンタによりカウン
トするとともに、カウンタの内容を一定周期で読み出し
て硬貨の通過を確認した時のカウンタの内容を外径デー
タとして取り出す硬貨外径データ計測装置において、 前記光センサの直前の硬貨転動通路に設けられその検知
出力によって光センサに電源供給する投入検知手段と、
前記光センサへの電源投入と同時に動作を一旦開始する
カウンタの初期値を確定する初期値確定手段と、この手
段によって確定された初期値を記憶する記憶手段と、硬
貨の通過を確認した時のカウンタ値と記憶手段の初期値
とから硬貨外径データを取り出す手段とを備えたことを
特徴とする硬貨外径データ計測装置。1. A counter for counting a clock signal by a counter while a coin is passing through an optical sensor provided in a coin rolling passage and reading the contents of the counter at a constant cycle to confirm the passage of the coin. In the coin outer diameter data measuring device for extracting the content of as the outer diameter data, an input detecting means which is provided in the coin rolling passage immediately before the optical sensor and which supplies power to the optical sensor by its detection output,
Initial value fixing means for fixing the initial value of the counter, which starts the operation once when the power supply to the optical sensor is turned on, storage means for storing the initial value fixed by this means, and when the passage of coins is confirmed. A coin outer diameter data measuring device comprising: means for extracting coin outer diameter data from a counter value and an initial value of a storage means.
置において、 前記初期値確定手段は前記光センサへの電源投入後一定
周期毎に読み出された前記カウンタの値が同一値になっ
たときにこのカウンタ値を初期値として確定するように
したことを特徴とする硬貨外径データ計測装置。2. The coin outer diameter data measuring device according to claim 1, wherein the initial value fixing means sets the value of the counter read at a constant cycle after the power supply to the optical sensor to the same value. The coin outer diameter data measuring device is characterized in that the counter value is fixed as an initial value when the coin has reached the limit.
置において、 前記初期値確定手段は前記光センサへの電源投入後に読
み出されたカウンタ値をこの読み出し周期の長短に応じ
て選択するとともに選択されたカウンタ値を初期値とし
て確定するようにしたことを特徴とする硬貨外径データ
計測装置。3. The coin outer diameter data measuring device according to claim 2, wherein the initial value fixing means selects a counter value read after powering on the optical sensor according to the length of the reading cycle. In addition, the coin outer diameter data measuring device is characterized in that the selected counter value is fixed as an initial value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19049190A JPH0769147B2 (en) | 1990-07-20 | 1990-07-20 | Coin outer diameter data measuring device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP19049190A JPH0769147B2 (en) | 1990-07-20 | 1990-07-20 | Coin outer diameter data measuring device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0477608A JPH0477608A (en) | 1992-03-11 |
| JPH0769147B2 true JPH0769147B2 (en) | 1995-07-26 |
Family
ID=16258980
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP19049190A Expired - Lifetime JPH0769147B2 (en) | 1990-07-20 | 1990-07-20 | Coin outer diameter data measuring device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0769147B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4705611B2 (en) * | 2007-07-10 | 2011-06-22 | 住友建機株式会社 | Driver assistance device for paving machines |
-
1990
- 1990-07-20 JP JP19049190A patent/JPH0769147B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0477608A (en) | 1992-03-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4612418A (en) | Method for controlling task process and device thereof | |
| US5809122A (en) | Apparatus for displaying call charges in telephone and method thereof | |
| EP0166745B2 (en) | Fraud prevention in an electronic coin telephone set | |
| JPH0769147B2 (en) | Coin outer diameter data measuring device | |
| JP2940969B2 (en) | Telephone line powered telephone | |
| CN1148075C (en) | A wireless pager and its power saving method | |
| EP0076809B2 (en) | Multiple rate electrical energy metering apparatus | |
| JP2962184B2 (en) | Coin sorting standard data setting system | |
| JPS59226991A (en) | Coin processor | |
| JPS59226990A (en) | Coin processor | |
| JP3760466B2 (en) | Card system management device | |
| JP3559411B2 (en) | Terminal network controller | |
| JP2556392B2 (en) | Public telephone | |
| KR930010665B1 (en) | Time display control system of vending machine and processing method thereof | |
| JPH07175982A (en) | Fire detector | |
| JPH0410270B2 (en) | ||
| JPS59226988A (en) | Coin processor | |
| JPH0626397B2 (en) | Call control device for telephone | |
| JPS6359302B2 (en) | ||
| JPS62142455A (en) | Telephone set with charging function | |
| JPH0589326A (en) | Card controller | |
| JPH0364976A (en) | Photosensor drive control circuit | |
| JP2001043305A (en) | Portable information terminal and portable information terminal setting stand | |
| JPS59221788A (en) | Coin processor | |
| JPS5892088A (en) | Coin material selector |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 12 Free format text: PAYMENT UNTIL: 20070726 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080726 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090726 Year of fee payment: 14 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100726 Year of fee payment: 15 |
|
| EXPY | Cancellation because of completion of term |