JPH033098A - Card quantity reader - Google Patents

Card quantity reader

Info

Publication number
JPH033098A
JPH033098A JP13621389A JP13621389A JPH033098A JP H033098 A JPH033098 A JP H033098A JP 13621389 A JP13621389 A JP 13621389A JP 13621389 A JP13621389 A JP 13621389A JP H033098 A JPH033098 A JP H033098A
Authority
JP
Japan
Prior art keywords
cards
signal
card
sensor
pulse
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP13621389A
Other languages
Japanese (ja)
Inventor
Yuzuru Okutomi
奥富 譲
Shiyunei Taekawa
俊英 妙川
Shigemi Kita
北 茂美
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.)
NIPPON KURARII BIJINESU KK
TOHO DENSHI KK
Original Assignee
NIPPON KURARII BIJINESU KK
TOHO DENSHI KK
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 NIPPON KURARII BIJINESU KK, TOHO DENSHI KK filed Critical NIPPON KURARII BIJINESU KK
Priority to JP13621389A priority Critical patent/JPH033098A/en
Publication of JPH033098A publication Critical patent/JPH033098A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

PURPOSE:To make it unnecessary to execute manual operation for counting up the number of sold cards and the stocked number of cards and to accurately and rapidly check the sold number of cards in each frequency and sort by reading out reflected light from the end face of a card by a sensor. CONSTITUTION:Cards 21 are divided in each sort by partition plates 20, 22, reflected light reflected from the group of the cards 21 is converted into an electric signal, the low frequency component of the signal is removed by a 1st waveform shaping means 37 and a period corresponding to the thickness of the cards 21 is outputted as a 1st pulse signal. The high frequency component of the signal is removed by a 2nd waveform shaping means 40, AND operation between the 1st pulse signal and a 2nd pulse signal 38 of the time width corresponding to the thickness of the card is found out to remove a noise, and the AND-operated newest pulse period is compared with the preceding one to calculate the number of cards from the number of pulses. Consequently, the number of cards can be calculated in each sort within a short time and the reading accuracy can be improved by comparing the numbers of cards and card periods between an inserting route and a returning route.

Description

【発明の詳細な説明】[Detailed description of the invention]

[産業上の利用分野] この発明は例えば、テレホンカードの売上枚数をカウン
トするカード数量読取り装置に関するものである。
[Industrial Application Field] The present invention relates to, for example, a card quantity reading device for counting the number of telephone cards sold.

【従来の技術】[Conventional technology]

従来例の技術をテレホンカードを例にして説明する。例
えば窓口でテレホンカードを発売する場合は発売担当者
が絵柄別に区別して机の引出しに、保管し、そこから引
出して発売していた。 したがって売上枚数及び在庫枚数を確認する場合は、テ
レホンカードの金額別(以下度数別という)に手作業に
より、売上枚数及び在庫枚数を数えてていた。 [発明が解決しようとする課題] 上記のようにテレホンカードの売上枚数及び在庫枚数を
数えるのに、手作業で実施するため、種類も多いことか
ら1回の確認に数名の作業者で実施しても、長時間の作
業となるという問題点があった。 この発明は、かかる問題点を解決するためになされたも
ので、売上枚数及び在庫枚数を数えるのに手作業で確認
せず、正確に敏速に度数別及び種類別に売上枚数を確認
できる装置を得ることを目的とする。 [課題を解決するための手段] この発明に係るカード数量読取り装置は、端面で光を反
射するカードを種類別に反射板を有する仕切り板で仕切
って収納する収納ケースと、カードの端面に光を放射し
、その反射光を受光する第1のセンサー及び反射板に光
を放射し、その反射光を受光する第2の光センサーを有
したセンサー部と、センサー部を所定の制御信号により
、収納ケースに添って移動させる駆動手段と、第1のセ
ンサーの出力信号の低周波成分を除去した後に波形整形
して第1のパルス信号を出力する第1の波形整形手段と
、第1のセンサーの出力信号を入力し、その出力信号の
高周波成分を除去した後に波形整形し、仕切り板で挟2
まれだカードの厚さに対応した時間幅のパルス信号を第
2のパルス信号として出力する第2の波形整形手段と、
第1のパルス信号及び前記第2のパルス信号を入力して
論理積演算し、その結果を第3のパルス信号として出力
する演算手段と、駆動手段に前記センサー部を移動させ
る制御信号を出力し、その後に第2の光センサーの出力
信号が所定の時間幅になると、第3のパルス信号を読み
、その最新パルス周期とそれ以前とのパルス周期とを比
較し、一致の有無を検出すると共にパルス数からカード
枚数を算出するマイクロコンピュータとを備えたもので
ある。 また、マイクロコンピュータはセンサー部を駆動手段を
介して反射板間を往復させ、往路における各カード周期
の一致及び不一致を検出すると共にそのカード枚数を算
出し、さらに復路の各カード周期の一致及び不一致を検
出すると共にそのカード枚数を算出するものである。 さらに、センサー部が往復したときにカード枚数及びカ
ード周期が不一致であれば、センサー部を所定回数往復
させ、各カード枚数が一致し、かつ、その周期が一致し
たときに正常値としてその枚数を出力するものである。 [作用] この発明においては、マイクロコンピュータが駆動手段
にセンサー部を収納ケースに添って移動させる制御信号
を出力して、その後に第2の光センサーの出力信号が所
定の時間幅になると、その仕切り板の反射板の反射光を
第2のセンサーを介して読込んだ後に所定の処理を実行
し、さらにセンサー部を移動させる。すると、カードの
端面からの反射光は第1のセンサーを介して、第1の波
形整形手段に出力され、低周波成分が除去された後に波
形整形された第1のパルス゛信号を演算手段に出力する
。また、第1のセンサーの出力信号は第2の波形整形手
段で高周波成分が除去されて波形整形された後に、仕切
り板で挟まれたカードの厚さに対応した時間幅の第2の
パルス信号となり、演算手段に出力される。演算手段は
、第1のパルス信号及び第2のパルス信号を論理積演算
し、その結果を第3のパルス信号としてマイクロコンピ
ュータに出力する。 マイクロコンピュータは第3のパルス信号を読み、その
最新パルス周期とそれ以前とのパルス周期とを比較し、
一致の有無を検出すると共にパルス数からカード枚数を
算出する。 さらに、マイクロコンピュータがセンサー部を駆動手段
を介して反射板間を往復させると、往路における各カー
ド周期の一致及び不一致を検出すると共にそのカード枚
数を算出し、さらに復路の各カード周期の一致及び不一
致を検出すると共にそのカード枚数を算出する。さらに
、センサー部が往復したときにカード枚数及びカード周
期が不一致であれば、センサー部を所定回数往復させ、
各カード枚数が一致し、かつ、その周期が一致したとき
に正常値としてその枚数を出力する。 [実施例] 第1図は本発明のカード数量読取り装置の正面図であり
、図において、(1)は操作部、(2)はプリンタ・(
3)は操作ドア、(4)はテレホンカードが格納される
1段目の収納棚、(5)は2段目の収納棚、(6)は3
段目の収納棚、(7)は4段目の収納棚、(8)はテレ
ホンカードの度数及びエラー処理の基づく表示をする表
示器である。 操作部(1)の操作ドアは開放ができ、また収納棚は、
テレホンカードの金額(以下度数という)別に4段設け
て、操作部(1)側から下段方向に1段目の収納棚(4
)2段目の収納棚(5) 、3段目の収納棚(6) 、
4段目の収納棚(7)とする。 第2図は操作部(1)の操作ドア(3)を開放したとき
の上面図である。図において(1)〜(3)は第1図と
同様なものであり、(9)はテンキー、(10)は表示
器、(11)はタイマーキー (12)はセットキ(1
3)は時刻合わせキー (14)は集計キー (I5)
は度数セットキー (16)はスタートキー (17)
はCLRキー (1B)はENTERキーである。 カード数量読取り装置は上記のキー入力により所定の処
理を実行する。 第3図は、1段目の収納棚(4)を引出したときの立体
図である。図において、(4)〜(8)は第1図と同様
なものであり、(2o)はA列のダミー仕切り板、(2
1)は第1のテレホンカード群、(22)は第1のテレ
ホンカー下群(21)の仕切り板(以下第1の仕切り板
という) 、(23)は第2のテレホンカード群、(2
4)は第2のテレホンカード群(23)の仕切り板(以
下第2の仕切り板という) 、(25)はA列のテレホ
ンカード群及び仕切り板等を収納する第1のケース、(
26)はB列のケース(以下第2のケースという) 、
(30)は電気回路部である。 第4図は本発明の一実施例の概略構成図であり、図にお
いて、(1)〜(23)は第1図〜第3図と同様なもの
である。 (20a)はA列のダミー仕切り板(2o)の底部に設
けた反射板、(22a)は第1の仕切り板(22)の底
部に設けた反射板である。 (31)はキー入力に基づいて所定の処理を実行する操
作部(1)のCPU、(32)は−枚のテレホンカード
の縁に光を放射する発光素子とその縁からの反射光のみ
受光する受光素子を有した反射型センサー(以下カード
検出センサーという)である。 (33)は反射板に光を放射する発光素子と反射光のみ
受光する受光素子を有した反射型ホトセンサ(以下反射
板検出センサーという) 、(34)及び(35)はカ
ード検出センサー(32)と反射板検出センサー(33
) (以下総称してセンサー部という)とが移動する範
囲を決める光センサーである。 (36)はカード検出センサー(32)の出力信号を増
幅する増幅回路、(39)は反射板検出センサー(33
)の出力信号を増幅する増幅回路、(42)はセンサー
部を移動させる直流モータである。 (37)は増幅回路(3B)からの増幅信号(3Ba)
を入力し、その信号の振幅を所望の振幅にするリミッタ
回路、(38)はリミッタ回路(37)からの出力信号
を入力し、その内部に設定している基準電圧と比較し、
デジタル信号を出力するコンパレータである。 (4G)は増幅信号(36a)を入力し、増幅して反転
した第2の増幅信号(40a)を出力し、かつ増幅信号
を電圧ホールドした電圧を信号として出力する電圧ホー
ルド回路である。 (41)は第2の増幅信号(40a)と信号(40b)
を入力し、それを比較して所定のパルス信号(41a)
を出力するコンパレータ回路、(45)はコンパレータ
回路(38)の出力信号と信号(41a)を入力し、反
転したパルス信号(45a)を出力するミキサ回路、(
43)はモータ(42)を駆動するドライバー回路であ
る。 (44)は先センサー(34)及び(35)の電気信号
を入力し、制御信号によりドライバー回路(43)に駆
動信号を出力するモータコントロール回路、(48)は
増幅回路(39)からの出力信号及び信号(45a)を
入力し、CP U (31)からの指令に基づく制御信
号を出力するとともに表示器(4B)に度数を表示させ
るCPUである。 上記のように構成されたカード数量読取り装置は、スタ
ートキー(lG)を押して、ENTERキー(18)を
押すと、その信号に対応するコマンド信号を1段目から
順次出力する。 すると、1段目の収納棚(4)のCP U (4B)は
光センサ−(35)から出力信号があるかを読み、電気
信号がなければセンサー部を光センサ−(35)側に移
動させる信号をモータコントロール回路(44)に出力
する。 モータコントロール回路(44)は、この信号を所望の
制御信号に変換してドライバー回路(43)に出力する
。ドライバー回路(43)は、この制御信号に基づいて
直流電圧をモータ(42)に印加する。するとモータ(
42)はセンサー部を光センサ−(35)側に移動(以
下正方向という)させる。光センサ−(35)はセンサ
ー部が入力すると、放射している光が遮断されるので、
ローレベル(以下りという)の信号をCP U (4g
)に出力する。 CP U (4g)は光センサ−(35)からの信号が
Lになると、モータコントロール回路(44)にモータ
(42)の回転を停止させる移動信号を出力する。する
とモータコントロール回路(44)は、この信号に基づ
く制御信号をドライバー(43)に出力する。 ドライバー(43)はこの制御信号から逆直流電圧をモ
ータ(42)に印加し、モータ(42)を停止させ、そ
して、センサー部を動作状態にし、モータ(42)を回
転させてセンサー部を光センサ−(34)側に移動(以
下逆方向という)させる。以下タイミングチャートを用
いて説明する 第5図は電気回路部(30)の動作を説明するタイミン
グチャートである。 図において、(33a)は反射板検出センサー(33)
の出力信号、(39a)は増幅回路(39)の出力信号
、(32a)はカード検出センサー(32)の出力信号
、(36a)は増幅回路(3B)の出力信号、(37a
)はリミッタ回路(37)の出力信号、(38a)はコ
ンパレータ(88)の出力信号、(40a)は電圧ホー
ルド回路(40)で増幅回路(36)の出力信号H6a
)を反転した出力信号、(40b)は出力信号(36a
)の電圧値をホールドした出力信号、(41a)はコン
パレータ(41)の出力信号、(45a)はミキサ(4
5)の出力信号である。 例えば、センサー部がダミー仕切り板(20)の反射板
(20a)の下にくると、反射板検出センサー(33)
が放射した光を検出し、電気信号に変換して増幅回路(
39)に反射板検出信号(aaa)を出力する。 増幅回路(39)は、この信号を増幅して波形整形した
後で、反転させた出力信号(39a)をCP U (4
8)に出力する。 CP IJ (4B>は、この信号が入力すると、セン
サー部が最初のダミー仕切り板(20)の位置に来たこ
とを検知し、モータ(42)を停止させる処理を実行し
、その後に、センサー部を正方向に移動させると、カー
ド検出センサー(32)がテレホンカードから反射光を
検出し、その反射光を電気信号に変換した出力信号(3
2a)を増幅回路(3B)に出力する。 このときダミー仕切り板及び仕切り板の底部には反射板
を除き、黒色の塗料を付着しであるので、カード検出セ
ンサー(32)からの放射された光は吸収され、その電
気信号(32a)は暗電流程度であるので信号としては
検知できないようにしている。 増幅回路(3B)は、この信号(a2a)を所望の増幅
度で増幅した出力信号(36a)をリミッタ回路(37
)及び電圧ホールド回路(40)に出力する。 リミッタ回路(37)は、出力信号(36a)が入力す
ると、直流分をカットし、さらにカード信号より低いノ
イズをフィルタで除去する。そして信号成分のみを反転
増幅し、その後にリミッタをかけた出力信号(37a)
をコンパレータ(38)に出力する。 コンパレータ(38)はリミッタ回路(37)からの出
力信号(37a)が入力すると、この信号と基準電圧と
比較し、基準電圧より大きければHとし、低ければLと
した出力信号(38a)をミキサ(45)に出力する。 また電圧ホールド回路(40)の入力には、高調波を除
去するためのフィルタを備えており出力信号(38a)
に含まれるカード信号より高い周波数があればそれを除
去し、その後に出力信号(36a)を反転増幅した出力
信号(40a)及び増幅回路(36)の出力信号(38
a)を反転増幅し、電圧値をホールドした出力信号(4
0b)をコンパレータ(41)に出力する。 このコンパレータ(41)は、電圧ホールド回路の出力
信号(40a)と出力信号(40b)とを比較し、出力
信号(40b)の電圧より出力信号(40a)が大きけ
ればHの出力信号(41a)をミキサ(45)に出力す
る・ミキサ(45)は、この2つの信号を入力して混合
し、信号(41a)とのNANDをとった出力信号(4
5a)をCP U (4g)に出力する。 したがって、反射板(20a)と反射板(22a)の間
の信号のみを有効とすることができる。 第6図はカード数量読取り装置の動作を説明するフロー
チャートである。 操作部(1)のCP U (31)は電源スィッチを投
入すると、現在時刻を表示器(8)に表示しくS5)、
そしてキーによる入力があるかを判断する(S8)。入
力があれば、押されたキーを読み(SIO) 、そのキ
ーの入力に基づく処理を表示器(8)に表示する(S1
2)。モしてCLRキー(17)が押されないかを判断
し、押されればステップS5に戻る(914)。 CLRキー(17)が押されなければ3分以内にENT
ERキー(18)が押されたかを判断し、押されなけれ
ばステップS5に戻り現在時刻を表示する(S16)。 3分以内にENTERキー(18)が押されれば、入力
されたキーに対応するアドレスを読み(S18)  J
UMPテーブルからキーに対応する処理ルーチンに制御
を移す(S20)。 次に、この処理ルーチンについて説明する。ステップS
8で集計キー(14)が押されれば、集計ルーチンに制
御を移しく8200)、度数セットキー(13)が押さ
れれば度数登録ルーチンに制御を移す(8100)。 まtニタイマーキー(11)が押されればオートカウン
ト登録ルーチンに制御を移しく5400)、時刻合わせ
キーが押されれば、現在時刻合わせルーチンに制御を移
す(3800)。さらに、スタートキー(16)が押さ
れればカウントルーチンに制御を移す(8700)。 さらにエラールーチン及び印字ルーチンがある。 次にステップS8でキーによる入力がなければタイマー
モードかを判断し、タイマーに時刻が設定されていなけ
ればステップS5に戻る(822)。タイマーモードと
判断すれば、どのようなタイマーモードかを判断しく5
23) 、タイマー1とタイマー2の両方の時刻を表示
しく82G) 、タイマー2だけが設定してあればタイ
マー2の時刻を表示する(82B)。 またタイマー1であればタイマー1の時刻を表示器(8
)に表示する(S30)。次に、それぞれのタイマー時
刻と現在時刻が一致したかを判断し、致していればカウ
ントメインルーチンに制御を移す(S32)。これは、
タイマーごとに判断される。 次に、上記で説明した処理ルーチンが終了すればステッ
プS5に戻る(834)。 第7図(a)〜(d)はカウントメインルーチンの動作
を説明するフローチャートである。 スタートキー(16)が押されたとすれば、上記第6図
のステップS5からステップ820までの処理を実行し
、カウントメインルーチンが選択されたとする。すると
、CP U (31)が通信ポートに、これらのコマン
ドは1段目のCP U (411)に対するコマンドで
あるとし、1段目選択アドレスを出力する(8501)
。このコマンドは全段のCPUが受けとるが1段目のア
ドレスであるため、−段目のCPU(48)のみがリセ
ットを解除しく5eot)、操作部(1)のCP U 
(31)に処理できる状態であるREADY信号を出力
する(!3803)。 これを読込んだ(8502)、操作部(1)のCP U
 (31)はアドレス十カウントスタートコマンド信号
を一段目のCP U (48)に出力する(8503)
。このコマンド信号が出力されると一段目のCP U 
(48)は処理中であるとしたBUSY信号を操作部(
1)のCP U (31)に出力する(S605)。 このBUSY信号を操作部(1)のCP U (31)
は読込み(8505)、この信号に基づ(処理を表示器
(8)に出力する(S507)。この場合は、1段目カ
ウント中と表示する。これは、1段目のCP U (4
8)がBUSY信号を解除し、READY信号が出力さ
れるまでステップ5507の処理を実行する(8509
)。 また、このときCP U (48)はJ UMPテーブ
ルからコマンドに該当する処理ルーチンを選択し、カウ
ントルーチンに制御を移す(S607)。 カウントルーチンになると、使用バッファメモリをクリ
アにしく8615)、棚が開いているかのチエツク処理
をする(S617)。 次に、光センサ−(35)から電気信号があるかを判断
しく5619)、なければモータ(42)を回転させセ
ンサー部を逆方向に移動させる(S621)。電気信号
水りと判断すれば、モータ(42)の回転を停止させ、
モータを回転させてセンサー部を正方向に移動させる(
8623)。 次に出力信号(39a)から反射板の信号ありかを判断
し、なければセンサ部をさらに正方向に移動させ(98
25)、あればモータ停止用逆転パルスを出力してモー
タ(42)にブレーキをかける(8627)。次にモー
タの回転は停止したかを判断し、停止しなければ再びブ
レーキをかけ、ステップ5627に戻る(SI329)
。ステップ5629でモータが停止したと判断すれば、
出力信号(39a)の時間幅を読み(8G31)、セン
サー部は所定の位置にあるかを判断する(S633)。 所定の位置でないと判断すれば、その時間幅からセンサ
ー部が行き過ぎかを判断しく5835)、行き過ぎてな
ければその距離より、モータ(42)の回転速度を計算
し、モータ(42)を少し回転させセンサー部を正方向
に移動させ(8837)、ステップ5627に戻る。 次に、ステップ5635でセンサー部が行き過ぎと判断
されれば、その距離からどのようなパルスを出力させる
かを算出し、適当な逆転パルスを印加し、センサー部を
逆方向に移動して(S639)、ステップ5627に戻
る。この処理はセンサー部が所定の位置になるまで実行
される。 第8図は逆転パルスを説明するタイミングチャートであ
り、(a)は逆転パルス幅、(b)はパルス間隔、(4
4a)は1回目の逆転パルス、(44b)は2回目の逆
転パルス、(44c)は3回目の逆転パルスである。 このパルス幅(a)及びパルス間隔(b)は、例えば3
回でセンサー部が所定の位置になったとすれば、以下に
示す関係がある。 逆転パルス幅(a) −1回目の逆転パルス(44a)
く2回目の逆転パルス(44b) < 3回目の逆転パ
ルス(44e) パルス間隔(b)−1回目の逆転パルス(44a) >
2回目の逆転パルス(44b)>3回目の逆転パルス(
44c) すなわち序々に速くする。また正方向についても同様で
ある。 次に、ステップ5633でセンサー部が所定の位置であ
ると判断されれば、再び出力信号(39a)を読み、そ
の時間幅を読む(8641)。そして、その時間幅が所
定の位置に対してずれていないかを判断する(3643
)。ずれていればステップ8635に戻る。この処理で
の逆転パルスは第8図の逆転パルスを出力する。 次にずれていないと判断されれば、センサー部は反射板
(20a)と反射板(22a)の間を往復したかを判断
する(9845)。この場合には、センサー部は往復し
ていないので、往復してないと判断する。 往復してなければ、回転方向を算出しく5647)、正
逆を判断する(9849)。この場合は正方向に算出さ
れ、センサー部を正方向に移動する(S851)。 そして、出力信号(39a)及び出力信号(45a)を
読む(8653)。読まれた信号から反射板がらがを判
断する(8657)。 この場合は反射板からとする。すると、ステップ562
7に戻り、ステップ8633までの処理を実行する。こ
のときには、まだセンサー部は往復してぃないのでステ
ップ5G47に戻る。ステップ5647での回転方向の
算出は逆方向に算出され、センサー部を逆方向に移動さ
せる(S855)。次に、ステップ5653で出力信号
(39a)及び出力信号(45a)を読み、反射板から
の出力信号(39a)があるかを判断する。 この場合にも反射板からと判断されると、ステップ56
27にもどり、ステップ3643までの処理を実行する
。そして、ステップ5845では、センサー部が往復し
たと判断される。 第9図はセンサー部の移動動作を説明する図であり、(
20)〜(22a)は上記第6図と同様なものである。 この図は、例えば反射板(20a)と反射板(22a)
の間を往復し、往復した後に正方向に移動する場合には
カウント処理を実行しないことを示すものである。また
エラー設定回数はこの往復動作を最大3回実施すること
であり、この場合は、3回往復動作を実施した後に正方
向に移動するときにカウント処理を実行しない。 往復したと判断されれば、正方向と逆方向のカード枚数
を比較しく5eeo)、両方向の枚数が同じかを判断す
る(8862)。同じと判断されれば、記憶されたカー
ドのエラーフラグを読み(8684)、0になっている
かを判断する(988B)。 なしと判断されれば、カード枚数が0枚であるかを判断
しく8688)、0枚であればバッファメモリに0と記
憶する(9670)。この場合は0である。 次に、カード枚数がありと判断されれば、カウントした
枚数をストアメモリに記憶する(8672)。 そして10区間カウント終了かを判断する(S674)
。終了していなければ、センサー部からの出力信号を読
まないようにしく887B)、ステップ5847に戻る
。 次に、ステップ5B62で同じでないと判断されればエ
ラーしたときの往復設定回数を読む(SCH3)。 この場合は3回と設定していることとする。次に3回往
復したかを判断しく561112)、3回以上であれば
エラー処理を実行する(8884)。3回往復してなけ
ればステップ5647に戻る。 次に、カードをカウントするためにデータを初期設定し
く8690)、出力したカード信号を記憶する(S69
2)。次に、このカード信号の周期から4枚以上かを判
断しく8694)、4枚以上と判断されれば4枚目のカ
ード周期と3枚目及び2枚目のカー′ド周期を比較し、
その結果を記憶する(889B)。 次に、3枚目のカード信号の周期と2枚目のカード周期
を比較し、結果を記憶する(869g)。さらに4枚目
のカード周期と3枚目のカード周期を比較する(870
0)。 第10図はカード信号の読取りについて説明する図であ
り、(45b)は1枚目のカード信号、(45c)は2
枚目のカード信号、(45d)は3枚目のカード信号、
(45e)は4枚目のカード信号である。 この図は1回目と2回目の出力信号(45a)を示した
ものであり、例えばテレホンカードが一枚であれば、1
枚目のカード信号(45b)を記憶し、センサー部が逆
方向に移動したときの出力信号(45a)である2回目
の1枚目のカード信号(45b)との立ち下がりエツジ
から立ち下がりエツジまでの時間幅(以下カード周期と
いう)を比較する。これは3枚目のカード信号(45d
)まで同様な処理を実行する。 次に、それぞれの記憶した比較結果を読み(S702)
、カード周期の相違する結果があるかを判断する(97
04)。相違する周期があればエラーフラグを記憶しく
8708)、なければステップ5653に戻る。 次に、ステップ5694で4枚以上でないと判断されれ
ばステップ5653に戻る。 次に、ステップ5674で10区間終了と判断すれば、
度数表示器(4B)にA列のカード合計枚数を表示させ
る(8712)。また仕切り板間のカード枚数を3往復
してもカウントエラーしたときには、何番目がカウント
エラーであったかを表示させる。 そして、B列のカードをカウントする処理をステップ8
615〜ステツプ5712の処理に基づいて実行する(
8713)。 次に、度数表示器(46)に所望の結果を表示後にBU
SYを解除し、カウントが終了したことを操作部(1)
のCP U (31)に知らせ、1段目のCPU(48
)はREADY状態となる(8715)。 READY信号が出力されると、操作部(1)のCP 
U (31)はステップ5509でREADY信号が出
力されたと判断し、その信号を読み(8511)、操作
部(1)のCP U (31)はアドレス士データ収集
コマンド信号をCP U (4g)に出力する(S51
3)。このコマンド信号が出力されると、−段目のCP
 U (4g)は処理中であるBUSY信号を出力する
と共に(S717)、仕切り板間のカウント値をストア
メモリがら順次CP U (3υに出力する(S719
)。 すると、操作部(1) (7) CP U (31)は
BUSY信号を読みこんでから(351B)、出力され
たカウントデータを読む(9518)。そしてデータが
終了したがはデータ数をCP U (31)が監視すル
(S520)。ココで述べたデータ収集コマンドはコマ
ンド−回に対して1区間のカウントデータを返す。 データ収集が終了すると、操作部(1)のCPU(31
)は、2段目の棚(5)にカウントを実行させるコマン
ド信号を出力し、上記で説明したカウント処理を実行さ
せ、データを収集する(S522)。 次に2段目が終了すれば3段目を実行しく8524)、
4段目を実行する(8526)。そして、1段目〜4段
目が終了すれば、その結果をプリンタに出力し印字させ
る(852g)。 第11図は度数登録メインルーチンを説明するフローチ
ャートであり、例えば、1段目のA列及びB列のテレホ
ンカードを500円のものとし、その度数を50度数と
して操作部(1)のCP U (31)が記憶しでいる
こととする。さらに2段目を1500円として105度
数、3段目を3000円として320度数、4段目を5
000円とし、540度敗としてそれぞれ記憶している
こととする。 度数セットキー(15)が押されると第6図のステップ
S5からステップ320までの処理を実行する。 この場合はステップS12で保管する度数をセットし、
ENTERキー(18)を押すことと表示されたとし、
またCLRキー(17)は押されず、ENTERキー(
18)がステップS9で押され、1段目のA列の登録さ
れている度数が表示されて度数登録メインルーチンに制
御を移したとする。 度数登録メインルーチンに制御を移すと、記憶している
1段目のA列の度数を表示する(31(11)。 次に度数セットキー(13)が押されたかを判断し、押
されなければステップ9101に戻り、記憶されている
A列の度数を表示する(8102)。次に、度数セット
キー(15)が押されたと判断されれば記憶されている
A列の50度数を表示させ(8104)、そして度数セ
ットキー(15)が3回以上になったかを判断する(3
106)。 次に3回以上であれば、度数セットキー(15)の入力
回数に基づく処理を表示する(S10g)。 これは度数セットキー(15)が押される毎に表示が4
種類の度数に替わる。例えば現在の度数が105度数と
すると、320度数〜540度数〜50度数〜105度
数〜320度数と替わる。 次に、CLRキー(15)が押されたかを判断し、押さ
れればステップ8101に戻る(SIIO)。そしてE
NTERキー(18)が3分以内で入力ありかを判断し
く8112)、なければステップS5にもどり、3分以
内に入力があれば、ステップ5tosで表示している度
数を登録する(8114)。 登録されれば操作部(1)のCP U (31)は1段
目のCP U (48)に度数コマンド信号を出力する
(sit6)。すると、CP U (48)はリセット
を解除し、出力されたコマンド信号に基づく初期設定を
第7図のステップS!301〜ステップ9613の処理
にもとづいて実行しく図示せず) (Still)、そ
してそのJUMPテーブルから対応するアドレスを読み
(8120)、そのルーチンに制御を移す。 次に、登録された度数を読み(8122)、読込んだ度
数を度数表示器(46)に出力する(8124)。そし
て、度数を登録したことをCP U (31)に知らせ
る信号を出力する(S12B)。するとCP U (4
8)はリセット状態になる。 度数を登録したことをCP U (31)に知らせる信
号を出力されるとCP U (31)はB列の度数を表
示;jt セ(812g)、ステップ8101からステ
ップ8126までの処理を実行する(8130)。この
ときに表示するのはB列を表示する。 次にENTERキー(18)が押されたかを判断しく8
134)、押されなければステップs5にもどる。ただ
し、ステップ5104で表示されているのはB列である
。 次に、ENTERキー(18)が3分以内に押されたと
判断すれば次段のA列を表示しく8138)、そしてス
テップ5IOIからステップ312Bまでの処理を実行
する(813g)。次に、各段終了かを判断しく814
0)、終了していなければステップ8134に戻る。こ
の終了していないかの判断は登録された各段の度数に基
づいて判断される。 第12図(a)及び(b)は集計ルーチンを説明するフ
ローチャートである。この集計ルーチンは当日受入枚数
及び収納箱以外の在庫枚数を度数毎にテンキー(7)に
より入力すると、前日残枚数がら計算により、当日在庫
枚数及び当日払い枚数、度数ごとの合計枚数、総合合計
枚数を算出するものである。 集計キーが押されると第6図のステップs5がらステッ
プ820までの処理を実行する。この場合はステップ8
12でカード枚数集計、ENTERキーを押すことと表
示されたとし、またCLRキー(15)は押されず、E
NTERキー(18)がステップs9で押され、前日に
集計した50度数の枚数が表示されて集計ルーチンに制
御を移したとする。 次に集計ルーチンに制御を移すと、50度数の当日受入
枚数がテンキー(7)により、入力されたかを判断し、
入力されなければ第6図ステップSt2に戻る (82
01)。テンキー(7)により入力があると判断されれ
ば、変更された50度数の枚数を表示しく8203)、
CLRキー(17)による入力が有るかを判断する(8
205)。CLRキー(17)が押されたと判断されれ
ば、テンキー(9)による入力枚数をクリアにしく82
07)、ステップS12にもどる。 次に、CLRキー(15)が押されなければENTER
キー(18)が入力されたかを判断しく5210)、押
されなければステップ812に戻り、押されれば記憶す
る(8212)。 次に、ステップ8201〜ステツプ5212の処理を実
行し、105度数の集計をする(S215)。そして、
320度数の集計をステップ8201〜ステツプ921
2の処理に基づいて実行しく8217)、さらに540
度数の集計をステップ8201〜ステツプ8212の処
理に基づいて実行する(3219)。 次に、ENTERキー(18)が押されたがを判断しく
8222)、押されれば50度数の前日の箱以外在庫枚
数を表示する(S224)。次に、当日の箱以外の在庫
枚数がテンキー(7)の入力により変更されたかを判断
し、入力がなければステップ5224に戻る(822B
)。次に、入力された箱以外の在庫枚数を表示しく82
2g)、CLRキー(17)による入力が有るかを判断
する(S230)。CLRキー(17)が押されたと判
断されれば、テンキー(9)による入力枚数をクリアに
しく3232)、ステップ5224にもどる。 次に、CLRキー(17)が押されなければENTER
キー(18)が入力されたかを判断しく8234)、押
されなければステップ5224に戻り、押されれば記憶
する(9238)。 次に、ステップ8224〜ステツプ8236の処理を実
行し、105度数の箱以外の集計をする(8218)。 そして、320度数の箱以外の集計をステップ8224
〜ステツプ823Bの処理に基づいて実行しく9240
)、さらに540度数の集計をステップ3224〜ステ
ツプ823Gの処理に基づいて実行する(S242)。 次にENTERキー(18)が押されたかを判断しく3
244)、押されれば現在時刻を読み、印字させる(8
24B)。次に、当日の50度数の受入枚数を読込み印
字させる(S2t8)。 次に前日の残枚数を読み、印字させ(S250)、そし
て当日の最後にカウントした在庫枚数を読み、印字させ
る(8252)。 次に、当日の払い枚数を以下の式により算出し、前日残
十当日受入枚数−当日の在庫 そして印字させる(8254)。 次に、箱以外の在庫枚数を読み、印字させ(825B)
、50度数の合計枚数を算出し印字させる(S258)
。さらに105度数の印字処理をステップ8246〜ス
テツプ8258に基づいて実行する(826G)。 次に、320度数の印字処理をステップ8246〜ステ
ツプ825Bの処理に基づいて実行する(9282)。 そして540度数の印字処理をステップ8246〜ステ
ツプ8258の処理に基づいて実行しく8284)、全
度数の合計枚数を算出し印字する(828B)次にタイ
マーキー(11)が押されればオートカウントルーチン
を実行し、タイマー1及びタイマー2に登録した時刻に
なれば自動的にカードをカウントさせる。 以上の処理を実行させることにより、テレホンカードを
収納棚にいれたまま所定のキーを押すことにより、即時
に枚数をカウントし、度数表示器(4B)に度数ごとに
枚数を表示させ、かつカードの種類別にプリンタ(2)
に印字させることが可能である。 なお上記実施例では、テレホンカードとして例示したが
、この発明はテレホンカードに限定されるものではなく
、カードの縁から光を反射できるカードであればよい。 またテレホンカードの周期の比較は往路と復路で比較し
てもよい。 さらに、例えばカード周期を記憶し、A列あるいはB列
の最後でカード枚数を集計してもよい。 さらに、プリンタに印字することを例示したがCRT等
の表示器に表示してもよい。 C発明の効果] 以上のようにこの発明によれば、カードを種類別に仕切
り板で区別し、カードから反射される反射光を電気信号
として、その信号を第1の波形整形手段で低周波成分を
除去してカードの厚みに対応する周期を第1のパルス信
号とし、また第2の波形整形手段で高周波成分を除去し
、カードの厚みに対応する時間幅の第2のパルス信号と
の論理積をとることによりノイズが除去でき、論理積さ
れた最新のパルス周期と、それ以前のパルス周期と比較
し、そのパルス数からカード枚数を算出することにより
、短時間に種類別にカード枚数を算出することが可能で
ある。 さらに、往路及び復路のカード枚数とカード周期を比較
すると、さらに読取り精度が向上する。 またエラーが発生すれば所定回数を往復させることによ
り、エラー発生を少なくできるという効果が得られる。
A conventional technique will be explained using a telephone card as an example. For example, when selling telephone cards at a counter, the person in charge of sales would store them in a desk drawer, sorting them by design, and then pulling them out and selling them. Therefore, when checking the number of telephone cards sold and the number of cards in stock, the number of telephone cards sold and the number of cards in stock had to be manually counted by price (hereinafter referred to as frequency). [Problem to be solved by the invention] As mentioned above, counting the number of telephone cards sold and the number in stock is done manually, and since there are many kinds of telephone cards, several workers are required to perform one check. However, there was a problem in that it required long hours of work. This invention was made to solve this problem, and provides a device that can accurately and quickly check the number of sold items by strength and type without manually checking the number of sold items and inventory items. The purpose is to [Means for Solving the Problems] A card quantity reading device according to the present invention includes a storage case that stores cards whose end surfaces reflect light and partitions each type with a partition plate having a reflective plate; and a storage case that stores cards whose end surfaces reflect light. A sensor unit includes a first sensor that emits light and receives the reflected light, and a second optical sensor that emits light to a reflecting plate and receives the reflected light, and the sensor unit is housed by a predetermined control signal. a driving means for moving the first sensor along the case; a first waveform shaping means for removing a low frequency component of the output signal of the first sensor and then shaping the waveform to output a first pulse signal; After inputting the output signal and removing the high frequency components of the output signal, the waveform is shaped, and the output signal is sandwiched between two
a second waveform shaping means that outputs a pulse signal with a time width corresponding to the thickness of the rare card as a second pulse signal;
a calculation means for inputting the first pulse signal and the second pulse signal, performing an AND operation, and outputting the result as a third pulse signal; and outputting a control signal for moving the sensor section to the driving means. Then, when the output signal of the second optical sensor reaches a predetermined time width, the third pulse signal is read, the latest pulse period is compared with the previous pulse period, and the presence or absence of a match is detected. It is equipped with a microcomputer that calculates the number of cards from the number of pulses. In addition, the microcomputer moves the sensor section back and forth between the reflectors via the driving means, detects the coincidence and mismatch of each card period on the outgoing trip, calculates the number of cards, and furthermore calculates the coincidence and mismatch of each card period on the return trip. This is to detect the number of cards and calculate the number of cards. Furthermore, if the number of cards and the card cycle do not match when the sensor unit moves back and forth, the sensor unit is moved back and forth a predetermined number of times, and when the number of each card matches and the cycle matches, that number is determined as a normal value. This is what is output. [Function] In the present invention, the microcomputer outputs a control signal to the driving means to move the sensor part along the storage case, and then when the output signal of the second optical sensor reaches a predetermined time width, After reading the reflected light from the reflection plate of the partition plate via the second sensor, a predetermined process is executed, and the sensor section is further moved. Then, the reflected light from the end face of the card is outputted to the first waveform shaping means via the first sensor, and after the low frequency component is removed, the waveform shaped first pulse signal is outputted to the calculation means. do. Further, the output signal of the first sensor is waveform-shaped by removing high-frequency components by a second waveform shaping means, and then converted into a second pulse signal having a time width corresponding to the thickness of the card sandwiched between the partition plates. and is output to the calculation means. The calculation means performs an AND operation on the first pulse signal and the second pulse signal, and outputs the result to the microcomputer as a third pulse signal. The microcomputer reads the third pulse signal and compares the latest pulse period with the previous pulse period,
The presence or absence of a match is detected and the number of cards is calculated from the number of pulses. Furthermore, when the microcomputer moves the sensor section back and forth between the reflectors via the driving means, it detects the coincidence and mismatch of each card period on the outward trip, calculates the number of cards, and further calculates the coincidence and mismatch of each card period on the return trip. Inconsistency is detected and the number of cards is calculated. Furthermore, if the number of cards and the card cycle do not match when the sensor unit reciprocates, the sensor unit is reciprocated a predetermined number of times,
When the numbers of each card match and their cycles match, that number is output as a normal value. [Example] Fig. 1 is a front view of the card quantity reading device of the present invention, in which (1) is the operation section, (2) is the printer/(
3) is the operation door, (4) is the first storage shelf where telephone cards are stored, (5) is the second storage shelf, and (6) is the 3rd storage shelf.
The storage shelf (7) is the fourth storage shelf, and (8) is a display that displays the number of telephone cards and error processing. The operation door of the operation unit (1) can be opened, and the storage shelf is
There are four shelves for each telephone card amount (hereinafter referred to as frequency), and the first storage shelf (4
) 2nd storage shelf (5), 3rd storage shelf (6),
This will be the fourth storage shelf (7). FIG. 2 is a top view when the operation door (3) of the operation section (1) is opened. In the figure, (1) to (3) are the same as in Figure 1, (9) is the numeric keypad, (10) is the display, (11) is the timer key, and (12) is the set key (1
3) is the time adjustment key (14) is the tally key (I5)
is the frequency set key (16) is the start key (17)
is the CLR key (1B) is the ENTER key. The card quantity reading device executes a predetermined process in response to the above key input. FIG. 3 is a three-dimensional view when the first storage shelf (4) is pulled out. In the figure, (4) to (8) are the same as those in Figure 1, (2o) is a dummy partition plate in row A, and (2o) is a dummy partition plate in row A.
1) is the first telephone card group, (22) is the partition plate of the first telephone car lower group (21) (hereinafter referred to as the first partition plate), (23) is the second telephone card group, (2
4) is the partition plate for the second telephone card group (23) (hereinafter referred to as the second partition plate), (25) is the first case for storing the A row of telephone card groups and the partition plate, etc.;
26) is the case in column B (hereinafter referred to as the second case),
(30) is an electric circuit section. FIG. 4 is a schematic diagram of an embodiment of the present invention, and in the figure, (1) to (23) are the same as those in FIGS. 1 to 3. (20a) is a reflecting plate provided at the bottom of the dummy partition plate (2o) in the A row, and (22a) is a reflecting plate provided at the bottom of the first partition plate (22). (31) is the CPU of the operation unit (1) that executes predetermined processing based on key input, and (32) is a light emitting element that emits light to the edge of - telephone cards and receives only the reflected light from the edge. This is a reflective sensor (hereinafter referred to as a card detection sensor) that has a light-receiving element. (33) is a reflective photosensor (hereinafter referred to as a reflector detection sensor) that has a light emitting element that emits light to a reflector and a light receiving element that receives only reflected light, (34) and (35) are card detection sensors (32) and reflector detection sensor (33
) (hereinafter collectively referred to as the sensor section) is an optical sensor that determines the range of movement. (36) is an amplifier circuit that amplifies the output signal of the card detection sensor (32), and (39) is a reflector detection sensor (33).
), and (42) is a DC motor that moves the sensor unit. (37) is the amplified signal (3Ba) from the amplifier circuit (3B)
A limiter circuit (38) inputs the output signal from the limiter circuit (37) and compares it with a reference voltage set internally,
This is a comparator that outputs a digital signal. (4G) is a voltage hold circuit which inputs an amplified signal (36a), outputs a second amplified signal (40a) which is amplified and inverted, and outputs a voltage obtained by holding the amplified signal as a signal. (41) is the second amplified signal (40a) and the signal (40b)
and compare them to obtain a predetermined pulse signal (41a).
(45) is a mixer circuit which inputs the output signal of the comparator circuit (38) and the signal (41a) and outputs an inverted pulse signal (45a);
43) is a driver circuit that drives the motor (42). (44) is a motor control circuit that inputs the electric signals from the previous sensors (34) and (35) and outputs a drive signal to the driver circuit (43) based on the control signal, and (48) is the output from the amplifier circuit (39). The CPU inputs signals and signals (45a), outputs control signals based on commands from the CPU (31), and displays the degree on the display (4B). When the start key (lG) is pressed and the ENTER key (18) is pressed, the card quantity reading device configured as described above sequentially outputs command signals corresponding to the signals from the first stage. Then, the CPU (4B) of the first storage shelf (4) reads whether there is an output signal from the optical sensor (35), and if there is no electrical signal, moves the sensor part to the optical sensor (35) side. A signal is output to the motor control circuit (44). The motor control circuit (44) converts this signal into a desired control signal and outputs it to the driver circuit (43). The driver circuit (43) applies a DC voltage to the motor (42) based on this control signal. Then the motor (
42) moves the sensor section toward the optical sensor (35) (hereinafter referred to as the positive direction). When the light sensor (35) receives input from the sensor section, the emitted light is blocked.
The low level (hereinafter referred to as low level) signal is sent to the CPU (4G
). When the signal from the optical sensor (35) becomes L, the CPU (4g) outputs a movement signal to the motor control circuit (44) to stop the rotation of the motor (42). Then, the motor control circuit (44) outputs a control signal based on this signal to the driver (43). The driver (43) applies a reverse DC voltage to the motor (42) from this control signal, stops the motor (42), puts the sensor section into operation, and rotates the motor (42) to illuminate the sensor section. It is moved toward the sensor (34) side (hereinafter referred to as the opposite direction). FIG. 5, which will be explained below using a timing chart, is a timing chart explaining the operation of the electric circuit section (30). In the figure, (33a) is a reflector detection sensor (33)
(39a) is the output signal of the amplifier circuit (39), (32a) is the output signal of the card detection sensor (32), (36a) is the output signal of the amplifier circuit (3B), (37a)
) is the output signal of the limiter circuit (37), (38a) is the output signal of the comparator (88), (40a) is the voltage hold circuit (40) and the output signal H6a of the amplifier circuit (36).
) is the inverted output signal, (40b) is the output signal (36a
), (41a) is the output signal of the comparator (41), (45a) is the output signal of the mixer (4
5) is the output signal. For example, if the sensor section is under the reflector (20a) of the dummy partition plate (20), the reflector detection sensor (33)
detects the light emitted by the
A reflector detection signal (aaa) is output to 39). The amplifier circuit (39) amplifies this signal and shapes the waveform, and then sends the inverted output signal (39a) to the CPU (4
8). When this signal is input, CP IJ (4B>) detects that the sensor unit has come to the position of the first dummy partition plate (20), executes processing to stop the motor (42), and then When the part is moved in the forward direction, the card detection sensor (32) detects the reflected light from the telephone card, and outputs an output signal (32) that converts the reflected light into an electrical signal.
2a) is output to the amplifier circuit (3B). At this time, since the dummy partition plate and the bottom of the partition plate, except for the reflective plate, are coated with black paint, the light emitted from the card detection sensor (32) is absorbed, and the electric signal (32a) is Since it is only a dark current, it cannot be detected as a signal. The amplifier circuit (3B) amplifies this signal (a2a) to a desired degree of amplification and outputs the output signal (36a) to the limiter circuit (37).
) and a voltage hold circuit (40). When the output signal (36a) is input, the limiter circuit (37) cuts the DC component and also filters out noise lower than the card signal. Then, only the signal component is inverted and amplified, and then a limiter is applied to the output signal (37a)
is output to the comparator (38). When the output signal (37a) from the limiter circuit (37) is input, the comparator (38) compares this signal with the reference voltage, sets it to H if it is higher than the reference voltage, and sets it to L if it is lower than the reference voltage, and mixes the output signal (38a). (45). In addition, the input of the voltage hold circuit (40) is equipped with a filter for removing harmonics, and the output signal (38a)
If there is a higher frequency than the card signal contained in the card signal, it is removed, and then the output signal (40a) obtained by inverting and amplifying the output signal (36a) and the output signal (38) of the amplifier circuit (36) are removed.
a) is inverted and amplified, and the output signal (4
0b) is output to the comparator (41). This comparator (41) compares the output signal (40a) and the output signal (40b) of the voltage hold circuit, and if the output signal (40a) is larger than the voltage of the output signal (40b), an H output signal (41a) is generated. is output to the mixer (45).The mixer (45) inputs and mixes these two signals, and outputs the output signal (4) which is NANDed with the signal (41a).
5a) is output to the CPU (4g). Therefore, only the signal between the reflector (20a) and the reflector (22a) can be made valid. FIG. 6 is a flowchart explaining the operation of the card quantity reading device. When the CPU (31) of the operation unit (1) turns on the power switch, it displays the current time on the display (8) (S5).
Then, it is determined whether there is any key input (S8). If there is an input, the pressed key is read (SIO) and the process based on the input of that key is displayed on the display (8) (S1
2). It is determined whether or not the CLR key (17) has been pressed, and if it has been pressed, the process returns to step S5 (914). ENT within 3 minutes unless the CLR key (17) is pressed.
It is determined whether the ER key (18) has been pressed, and if it has not been pressed, the process returns to step S5 and the current time is displayed (S16). If the ENTER key (18) is pressed within 3 minutes, the address corresponding to the input key is read (S18) J
Control is transferred from the UMP table to the processing routine corresponding to the key (S20). Next, this processing routine will be explained. Step S
If the total key (14) is pressed at step 8, the control is transferred to the total routine (8200), and if the frequency set key (13) is pressed, the control is transferred to the frequency registration routine (8100). If the automatic timer key (11) is pressed, the control is transferred to the automatic count registration routine (5400), and if the time adjustment key is pressed, the control is transferred to the current time adjustment routine (3800). Further, if the start key (16) is pressed, control is transferred to a counting routine (8700). There are also error routines and print routines. Next, in step S8, if there is no key input, it is determined whether the timer mode is set, and if the time is not set in the timer, the process returns to step S5 (822). If it is determined that it is a timer mode, it is difficult to determine what kind of timer mode it is.5
23) Display the time of both timer 1 and timer 2 82G) If only timer 2 is set, display the time of timer 2 (82B). Also, if it is timer 1, the timer 1 time is displayed on the display (8
) (S30). Next, it is determined whether each timer time and the current time match, and if so, control is transferred to the counting main routine (S32). this is,
Judged for each timer. Next, when the processing routine described above is completed, the process returns to step S5 (834). FIGS. 7(a) to 7(d) are flowcharts illustrating the operation of the count main routine. If the start key (16) is pressed, the processes from step S5 to step 820 in FIG. 6 are executed, and the count main routine is selected. Then, the CPU (31) outputs the first stage selection address to the communication port, assuming that these commands are for the first stage CPU (411) (8501).
. This command is received by the CPUs of all stages, but since it is the address of the first stage, only the CPU (48) of the - stage must release the reset (5eot), and the CPU of the operation unit (1)
(31) outputs a READY signal that is ready for processing (!3803). The CPU of the operation unit (1) read this (8502)
(31) outputs the address 10 count start command signal to the first stage CPU (48) (8503)
. When this command signal is output, the first stage CPU
(48) sends the BUSY signal indicating that it is being processed to the operating unit (
1) is output to the CPU (31) (S605). This BUSY signal is sent to the CPU (31) of the operation unit (1).
is read (8505), and based on this signal, the processing is output to the display (8) (S507). In this case, it is displayed that the first stage is counting.
8) releases the BUSY signal and executes the process of step 5507 until the READY signal is output (8509
). Also, at this time, the CPU (48) selects a processing routine corresponding to the command from the JUMP table, and transfers control to the counting routine (S607). When the count routine is reached, the used buffer memory is cleared (8615) and a check is performed to see if the shelf is open (S617). Next, it is determined whether there is an electric signal from the optical sensor (35) (5619), and if not, the motor (42) is rotated to move the sensor section in the opposite direction (S621). If it is determined that there is an electric signal, the rotation of the motor (42) is stopped,
Rotate the motor to move the sensor part in the forward direction (
8623). Next, it is determined from the output signal (39a) whether there is a signal from the reflector plate, and if there is no signal, the sensor section is further moved in the forward direction (98
25), if so, output a reversal pulse for stopping the motor and brake the motor (42) (8627). Next, it is determined whether the motor rotation has stopped, and if it has not stopped, the brake is applied again and the process returns to step 5627 (SI329).
. If it is determined in step 5629 that the motor has stopped,
The time width of the output signal (39a) is read (8G31), and it is determined whether the sensor section is at a predetermined position (S633). If it is determined that it is not at the predetermined position, it is determined from the time width whether the sensor unit has gone too far (5835), and if it has not gone too far, the rotation speed of the motor (42) is calculated from that distance, and the motor (42) is rotated a little. to move the sensor section in the forward direction (8837), and return to step 5627. Next, if it is determined in step 5635 that the sensor unit has gone too far, calculate what kind of pulse to output from that distance, apply an appropriate reverse pulse, and move the sensor unit in the opposite direction (S639 ), the process returns to step 5627. This process is executed until the sensor section is at a predetermined position. FIG. 8 is a timing chart explaining the reversal pulse, in which (a) is the reversal pulse width, (b) is the pulse interval, (4
4a) is the first reversal pulse, (44b) is the second reversal pulse, and (44c) is the third reversal pulse. The pulse width (a) and pulse interval (b) are, for example, 3
Assuming that the sensor unit is at a predetermined position in the second time, the relationship shown below is established. Reverse pulse width (a) - 1st reverse pulse (44a)
2nd reversal pulse (44b) < 3rd reversal pulse (44e) Pulse interval (b) - 1st reversal pulse (44a) >
2nd reversal pulse (44b) > 3rd reversal pulse (
44c) In other words, speed up gradually. The same applies to the forward direction. Next, if it is determined in step 5633 that the sensor section is at a predetermined position, the output signal (39a) is read again and its time width is read (8641). Then, it is determined whether the time width is shifted from a predetermined position (3643
). If there is a deviation, the process returns to step 8635. The reverse pulse in this process outputs the reverse pulse shown in FIG. Next, if it is determined that there is no deviation, the sensor unit determines whether the reflection plate (20a) and the reflection plate (22a) have been moved back and forth (9845). In this case, since the sensor part is not reciprocating, it is determined that it is not reciprocating. If it is not reciprocating, calculate the rotation direction (5647) and determine whether it is forward or reverse (9849). In this case, the calculation is made in the positive direction, and the sensor section is moved in the positive direction (S851). Then, the output signal (39a) and the output signal (45a) are read (8653). The reflector junk is determined from the read signal (8657). In this case, it is from the reflector. Then, step 562
7 and executes the processing up to step 8633. At this time, the sensor section has not yet reciprocated, so the process returns to step 5G47. The rotation direction in step 5647 is calculated in the opposite direction, and the sensor section is moved in the opposite direction (S855). Next, in step 5653, the output signal (39a) and the output signal (45a) are read to determine whether there is an output signal (39a) from the reflector. In this case as well, if it is determined that the source is from the reflector, step 56
27 and executes the processing up to step 3643. Then, in step 5845, it is determined that the sensor section has reciprocated. FIG. 9 is a diagram explaining the moving operation of the sensor section, (
20) to (22a) are similar to those shown in FIG. 6 above. This figure shows, for example, a reflector (20a) and a reflector (22a).
This indicates that the count process is not executed if the counter moves back and forth between the two, and then moves in the forward direction after the reciprocation. Further, the error setting number is to perform this reciprocating operation a maximum of three times, and in this case, the counting process is not executed when moving in the forward direction after performing the reciprocating operation three times. If it is determined that the card has gone back and forth, the number of cards in the forward direction and the number of cards in the reverse direction are compared (5eeeo), and it is determined whether the number of cards in both directions is the same (8862). If it is determined that they are the same, the stored error flag of the card is read (8684) and it is determined whether it is 0 (988B). If it is determined that there are no cards, it is determined whether the number of cards is 0 (8688), and if it is 0, it is stored as 0 in the buffer memory (9670). In this case it is 0. Next, if it is determined that there are enough cards, the counted number is stored in the store memory (8672). Then, it is determined whether the 10 section count is finished (S674).
. If not completed, the output signal from the sensor unit is not read (887B) and the process returns to step 5847. Next, if it is determined in step 5B62 that they are not the same, the set number of round trips at the time of error is read (SCH3). In this case, it is assumed that it is set to three times. Next, it is determined whether the round trip has been made three times (561112), and if it is three or more times, error processing is executed (8884). If the process has not returned three times, the process returns to step 5647. Next, data is initialized to count cards (8690), and the output card signal is stored (S69).
2). Next, it is determined from the cycle of this card signal whether there are 4 or more cards (8694), and if it is determined that there are 4 or more cards, the cycle of the 4th card is compared with the cycles of the 3rd and 2nd cards,
The result is stored (889B). Next, the cycle of the third card signal is compared with the cycle of the second card, and the result is stored (869g). Furthermore, compare the period of the fourth card and the period of the third card (870
0). FIG. 10 is a diagram explaining reading of card signals, (45b) is the first card signal, (45c) is the second card signal.
The signal of the third card, (45d) is the signal of the third card,
(45e) is the fourth card signal. This figure shows the first and second output signals (45a). For example, if there is one telephone card, one
The second card signal (45b) is memorized, and the output signal (45a) when the sensor section moves in the opposite direction is the falling edge to the second falling edge of the first card signal (45b). Compare the time width (hereinafter referred to as card cycle). This is the third card signal (45d
). Next, read each stored comparison result (S702)
, determine whether there are different results for card cycles (97
04). If there is a different period, the error flag is stored (8708), otherwise the process returns to step 5653. Next, if it is determined in step 5694 that there are not more than four sheets, the process returns to step 5653. Next, if it is determined in step 5674 that the 10th section has ended,
The total number of cards in column A is displayed on the frequency display (4B) (8712). Furthermore, if a counting error occurs even after reciprocating the number of cards between the partition plates three times, the number of cards that caused the counting error is displayed. Then, step 8 counts the cards in column B.
Executes based on the processing from step 615 to step 5712 (
8713). Next, after displaying the desired result on the degree display (46), BU
Release SY and confirm that the count has ended by pressing the operation unit (1).
The first stage CPU (48) is notified.
) becomes READY (8715). When the READY signal is output, the CP of the operation unit (1)
U (31) determines that the READY signal has been output in step 5509, reads the signal (8511), and CPU (31) of operation unit (1) sends the addressee data collection command signal to CPU (4g). Output (S51
3). When this command signal is output, the −th stage CP
U (4g) outputs the BUSY signal being processed (S717), and sequentially outputs the count value between the partition plates to the CPU (3υ) from the store memory (S719).
). Then, the operation unit (1) (7) CPU (31) reads the BUSY signal (351B) and then reads the output count data (9518). After the data has been completed, the CPU (31) monitors the number of data (S520). The data collection command mentioned here returns one section of count data for each command. When data collection is completed, the CPU (31
) outputs a command signal to cause the second shelf (5) to perform counting, executes the counting process described above, and collects data (S522). Next, when the second stage is completed, the third stage will be executed 8524),
The fourth stage is executed (8526). When the first to fourth stages are completed, the results are output to the printer and printed (852g). FIG. 11 is a flowchart illustrating the frequency registration main routine. For example, suppose that the telephone cards in the first column A and B are worth 500 yen, and the frequency is 50 degrees, and the CPU of the operation unit (1) Assume that (31) is already memorized. Furthermore, the second step is 1500 yen and the number is 105 degrees, the third step is 3000 yen and the number is 320 degrees, and the fourth step is 50 degrees.
000 yen, and each is memorized as a 540-degree loss. When the frequency set key (15) is pressed, the processes from step S5 to step 320 in FIG. 6 are executed. In this case, set the frequency to be stored in step S12,
If you press the ENTER key (18) and it appears,
Also, the CLR key (17) is not pressed, and the ENTER key (
18) is pressed in step S9, the registered frequency in column A of the first row is displayed, and control is transferred to the frequency registration main routine. When the control is transferred to the power registration main routine, the stored power in column A of the first row is displayed (31 (11). Next, it is determined whether the power set key (13) has been pressed and Then, the process returns to step 9101 and displays the stored power of column A (8102).Next, if it is determined that the power set key (15) has been pressed, the stored 50 degree of column A is displayed. (8104), and determines whether the frequency set key (15) has been pressed three times or more (3
106). Next, if it is three or more times, a process based on the number of inputs of the frequency set key (15) is displayed (S10g). This means that every time the frequency set key (15) is pressed, the display changes to 4.
Replaces the frequency of the type. For example, if the current frequency is 105 degrees, it changes from 320 degrees to 540 degrees to 50 degrees to 105 degrees to 320 degrees. Next, it is determined whether the CLR key (15) has been pressed, and if it has been pressed, the process returns to step 8101 (SIIO). and E
It is determined whether the NTER key (18) has been input within 3 minutes (8112), and if not, the process returns to step S5, and if there has been an input within 3 minutes, the frequency displayed in step 5tos is registered (8114). If registered, the CPU (31) of the operation unit (1) outputs a frequency command signal to the first stage CPU (48) (sit6). Then, the CPU (48) releases the reset and performs the initial setting based on the output command signal in step S! of FIG. Based on the processing from step 301 to step 9613 (not shown) (Still), the corresponding address is read from the JUMP table (8120), and control is transferred to the routine. Next, the registered frequency is read (8122), and the read frequency is output to the frequency display (46) (8124). Then, it outputs a signal informing the CPU (31) that the frequency has been registered (S12B). Then CPU (4
8) enters the reset state. When a signal informing the CPU (31) that the frequency has been registered is output, the CPU (31) displays the frequency in column B; 8130). At this time, column B is displayed. Next, check whether the ENTER key (18) has been pressed.8
134), if the button is not pressed, the process returns to step s5. However, what is displayed in step 5104 is column B. Next, if it is determined that the ENTER key (18) has been pressed within 3 minutes, the next row A is displayed (8138), and the processes from step 5IOI to step 312B are executed (813g). Next, check 814 to determine whether each stage is completed.
0), if the process has not ended, the process returns to step 8134. This determination as to whether or not the process has been completed is made based on the registered frequency of each stage. FIGS. 12(a) and 12(b) are flowcharts illustrating the counting routine. This aggregation routine uses the numeric keypad (7) to input the number of sheets received on the day and the number of sheets in stock other than the storage box for each degree using the numeric keypad (7), and then calculates the number of sheets in stock on the day, the number of sheets paid on the day, the total number of sheets for each degree, and the overall total number. is calculated. When the total key is pressed, the processes from step s5 to step 820 in FIG. 6 are executed. In this case step 8
At 12, it is displayed to count the number of cards and press the ENTER key, and the CLR key (15) is not pressed and the E
Assume that the NTER key (18) is pressed in step s9, the number of 50-degree sheets counted on the previous day is displayed, and control is transferred to the counting routine. Next, when control is transferred to the aggregation routine, it is determined whether the number of 50 degrees received on the day has been input using the numeric keypad (7),
If no input is made, return to step St2 in Figure 6 (82
01). If it is determined that there is an input using the numeric keypad (7), the number of changed 50 degree sheets will be displayed.8203)
Determine whether there is an input using the CLR key (17) (8
205). If it is determined that the CLR key (17) has been pressed, the number of sheets input using the numeric keypad (9) will be cleared.82
07), return to step S12. Next, if the CLR key (15) is not pressed, press ENTER.
It is determined whether the key (18) has been input (5210), and if it has not been pressed, the process returns to step 812; if it has been pressed, it is stored (8212). Next, the processes from step 8201 to step 5212 are executed, and 105 frequencies are totaled (S215). and,
Steps 8201 to 921 calculate the 320 degrees.
8217), and further 540
Counting of frequencies is executed based on the processing of steps 8201 to 8212 (3219). Next, it is determined whether the ENTER key (18) has been pressed (8222), and if the ENTER key (18) has been pressed, the number of items in stock other than the previous day's 50-degree box is displayed (S224). Next, it is determined whether the number of items in stock other than the boxes for the day has been changed by inputting with the numeric keypad (7), and if there is no input, the process returns to step 5224 (822B
). Next, display the number of items in stock for boxes other than the one entered.82
2g), it is determined whether there is an input using the CLR key (17) (S230). If it is determined that the CLR key (17) has been pressed, the number of sheets input using the numeric keypad (9) is cleared (3232), and the process returns to step 5224. Next, if the CLR key (17) is not pressed, press ENTER.
It is determined whether the key (18) has been input (8234), and if it has not been pressed, the process returns to step 5224; if it has been pressed, it is stored (9238). Next, the processes from step 8224 to step 8236 are executed, and the boxes other than the 105 frequency box are totaled (8218). Then, in step 8224, the boxes other than the 320 frequency box are counted.
~ Execute 9240 based on the process of step 823B
), and further aggregation of 540 degrees is performed based on the processing from step 3224 to step 823G (S242). Next, check whether the ENTER key (18) has been pressed.
244), if pressed, reads the current time and prints it (8
24B). Next, the number of 50 sheets received on the day is read and printed (S2t8). Next, the remaining number of sheets from the previous day is read and printed (S250), and the number of sheets in stock counted at the end of the day is read and printed (8252). Next, the number of sheets paid for that day is calculated using the following formula, and the remaining number of sheets received on the previous day - the current day's inventory is printed (8254). Next, read the number of items in stock other than boxes and print it out (825B)
, calculate the total number of sheets of 50 degrees and print it (S258)
. Furthermore, printing processing for 105 degrees is executed based on steps 8246 to 8258 (826G). Next, 320 degree printing processing is executed based on the processing of steps 8246 to 825B (9282). Then, print processing for 540 degrees is executed based on the processing from step 8246 to step 8258 (8284), and the total number of sheets for all degrees is calculated and printed (828B).Next, when the timer key (11) is pressed, the auto count routine is executed. is executed, and when the time registered in timer 1 and timer 2 comes, the cards are automatically counted. By executing the above process, by pressing a predetermined key while placing telephone cards in the storage shelf, the number of cards can be immediately counted, the number of cards can be displayed for each degree on the frequency display (4B), and Printers by type (2)
It is possible to print on In the above embodiment, a telephone card is used as an example, but the present invention is not limited to a telephone card, and any card that can reflect light from the edge of the card may be used. Further, the telephone card cycles may be compared on the outbound and return trips. Furthermore, for example, the card cycle may be stored and the number of cards may be totaled at the end of column A or column B. Furthermore, although printing on a printer has been exemplified, it may also be displayed on a display such as a CRT. C. Effects of the Invention] As described above, according to the present invention, cards are distinguished by type using partition plates, and the reflected light reflected from the cards is converted into an electric signal, and the signal is converted into a low frequency component by the first waveform shaping means. is removed and a period corresponding to the thickness of the card is set as a first pulse signal, and a high frequency component is removed by a second waveform shaping means, and a second pulse signal with a time width corresponding to the thickness of the card is generated. Noise can be removed by taking the product, and by comparing the latest ANDed pulse period with the previous pulse period and calculating the number of cards from the number of pulses, the number of cards by type can be calculated in a short time. It is possible to do so. Furthermore, when the number of cards and the card cycle on the outward and return trips are compared, the reading accuracy is further improved. Furthermore, if an error occurs, by reciprocating a predetermined number of times, it is possible to reduce the occurrence of errors.

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

第1図は本発明のカード数量読取り装置の正面図、第2
図は操作部(1)の操作ドア(3)を開放したときの上
面図、第3図は1段目の収納棚(4)を引出したときの
立体図、第4図は本発明の一実施例の概略構成図、第5
図は電気回路部(30)の動作を説明するタイミングチ
ャート、第6図はカード数量読取り装置の動作を説明す
−るフローチャート、第7図(a)〜(d)はカウント
メインルーチンの動作を説明するフローチャート、第8
図は逆転パルスを説明するタイミングチャート、第9図
はセンサー部の移動動作を説明する図、第10図はカー
ド信号の読取りについて説明する図、第11図は度数登
録メインルーチンを説明するフローチャート、第12図
(a)及び(b)は集計ルーチンを説明するフローチャ
ートである。 図において、(1)は操作部、(2)はプリンタ、(3
)は操作ドア、(4)は1段目の収納棚、(5)は2段
目の収納棚、(6)は3段目の収納棚、(7)は4段目
の収納棚、(9)はテンキー (lO)は表示器、(1
1)はタイマーキー (12)はセットキー (13)
は時刻合わせキー (14)は集計キー (15)は度
数セットキー (1B)はスタートキー、(17)はC
LRキ(18)はENTERキー (20)はA列のダ
ミー仕切り板、(21)は第1のテレホンカード群、(
22)は第1の仕切り板、(23)は第2のテレホンカ
ード群、(24)は第2の仕切り板、(25)は第1の
ケース、(26)は第2のケース、(30)は電気回路
部、(20a)はダミー仕切り板(20)の反射板、(
22a)は第1の仕切り板(22)の反射板、(31)
は操作部(1)のcpU、 (32)はカード検出セン
サー (33)は反射板検出センサー (34)及び(
35)は光センサ−(36)は増幅回路、(39)は反
射板検出センサー(33)の出力信号を増幅する増幅回
路、(42)は直流モータ、(37)はリミッタ回路、
(38)はコンパレータ、(40)は電圧ホールド回路
、(41)はコンパレータ回路、(45)はミキサ回路
、(43)はドライバー回路、(44)はモータコント
ロール回路、(48)はCP U、 (33a)は反射
板検出センサー(33)の出力信号、(39a)は増幅
回路(39)の出力信号、(32a)はカード検出セン
サー(32)の出力信号、(36a)は増幅回路(36
)の出力信号、(37a)はリミッタ回路(37)の出
力信号、(38a)はコンパレータ(38)の出力信号
、(40a)は電圧ホールド回路(4o)で増幅回路(
36)の出力信号(36a)を反転した出力信号、(4
0b)は出力信号(38a)の電圧値をホールドした出
力信号、(41a)はコンパレータ(41)の出力信号
、(45a)はミキサ(45)の出力信号、(a)は逆
転パルス幅、(b)はパルス間隔、(44a)は1回目
の逆転パルス、(44b)は2回目の逆転パルス、(4
4e)は3回目の逆転パルス、(45b)は1枚目のカ
ード信号、(45c)は2枚目のカード信号、(45d
)は3枚目のカード信号、(45e)は4枚目のカード
信号である。 代理人  弁理士  佐々木 宗 治
Figure 1 is a front view of the card quantity reading device of the present invention, Figure 2 is a front view of the card quantity reading device of the present invention;
The figure is a top view when the operation door (3) of the operation unit (1) is opened, FIG. 3 is a three-dimensional view when the first storage shelf (4) is pulled out, and FIG. Schematic configuration diagram of the embodiment, fifth
The figure is a timing chart explaining the operation of the electric circuit section (30), Figure 6 is a flowchart explaining the operation of the card quantity reading device, and Figures 7 (a) to (d) are the operation of the counting main routine. Flowchart to explain, No. 8
FIG. 9 is a timing chart explaining the reversal pulse, FIG. 9 is a diagram explaining the moving operation of the sensor section, FIG. 10 is a diagram explaining card signal reading, FIG. 11 is a flowchart explaining the frequency registration main routine, FIGS. 12(a) and 12(b) are flowcharts illustrating the counting routine. In the figure, (1) is the operation unit, (2) is the printer, and (3)
) is the operation door, (4) is the first storage shelf, (5) is the second storage shelf, (6) is the third storage shelf, (7) is the fourth storage shelf, ( 9) is the numeric keypad (lO) is the display, (1
1) is the timer key (12) is the set key (13)
is the time setting key (14) is the tally key (15) is the frequency set key (1B) is the start key, (17) is C
LR key (18) is the ENTER key (20) is the dummy partition plate for row A, (21) is the first telephone card group, (
(22) is the first partition plate, (23) is the second telephone card group, (24) is the second partition plate, (25) is the first case, (26) is the second case, (30 ) is the electric circuit section, (20a) is the reflection plate of the dummy partition plate (20), (
22a) is a reflection plate of the first partition plate (22), (31)
is the CPU of the operation unit (1), (32) is the card detection sensor, (33) is the reflector detection sensor (34) and (
35) is a light sensor, (36) is an amplifier circuit, (39) is an amplifier circuit that amplifies the output signal of the reflector detection sensor (33), (42) is a DC motor, (37) is a limiter circuit,
(38) is a comparator, (40) is a voltage hold circuit, (41) is a comparator circuit, (45) is a mixer circuit, (43) is a driver circuit, (44) is a motor control circuit, (48) is a CPU, (33a) is the output signal of the reflector detection sensor (33), (39a) is the output signal of the amplifier circuit (39), (32a) is the output signal of the card detection sensor (32), and (36a) is the output signal of the amplifier circuit (36).
), (37a) is the output signal of the limiter circuit (37), (38a) is the output signal of the comparator (38), (40a) is the voltage hold circuit (4o) and the amplifier circuit (
An output signal obtained by inverting the output signal (36a) of (36), (4
0b) is an output signal that holds the voltage value of the output signal (38a), (41a) is the output signal of the comparator (41), (45a) is the output signal of the mixer (45), (a) is the reverse pulse width, ( b) is the pulse interval, (44a) is the first reversal pulse, (44b) is the second reversal pulse, (4
4e) is the third reversal pulse, (45b) is the first card signal, (45c) is the second card signal, (45d)
) is the third card signal, and (45e) is the fourth card signal. Agent Patent Attorney Muneharu Sasaki

Claims (3)

【特許請求の範囲】[Claims] (1)端面で光を反射するカードを種類別に反射板を有
する仕切り板で仕切って収納する収納ケースと、 前記カードの端面に光を放射し、その反射光を受光する
第1のセンサー及び前記反射板に光を放射し、その反射
光を受光する第2の光センサーを有したセンサー部と、 前記センサー部を所定の制御信号により、前記収納ケー
スに添って移動させる駆動手段と、前記第1のセンサー
の出力信号の低周波成分を除去した後に波形整形して第
1のパルス信号を出力する第1の波形整形手段と、 前記第1のセンサーの出力信号を入力し、その出力信号
の高周波成分を除去した後に波形整形し、前記仕切り板
で挟まれたカードの厚さに対応した時間幅のパルス信号
を第2のパルス信号として出力する第2の波形整形手段
と、 前記第1のパルス信号及び前記第2のパルス信号を入力
して論理積演算し、その結果を第3のパルス信号として
出力する演算手段と、 前記駆動手段に前記センサー部を移動させる制御信号を
出力し、その後に前記第2の光センサーの出力信号が所
定の時間幅になると、前記第3のパルス信号を読み、そ
の最新パルス周期とそれ以前とのパルス周期とを比較し
、一致の有無を検出すると共にパルス数からカード枚数
を算出するマイクロコンピュータと、 を備えたことを特徴とするカード数量読取り装置。
(1) A storage case that stores cards whose end surfaces reflect light, partitioning the cards by type using partition plates each having a reflecting plate; a first sensor that emits light to the end surface of the card and receives the reflected light; a sensor unit having a second optical sensor that emits light to a reflecting plate and receives the reflected light; a driving unit that moves the sensor unit along the storage case in response to a predetermined control signal; a first waveform shaping means that removes a low frequency component of the output signal of the first sensor and then shapes the waveform to output a first pulse signal; a second waveform shaping means that performs waveform shaping after removing high frequency components and outputs as a second pulse signal a pulse signal having a time width corresponding to the thickness of the card sandwiched between the partition plates; a calculation means for inputting a pulse signal and the second pulse signal, performing an AND operation, and outputting the result as a third pulse signal; outputting a control signal for moving the sensor section to the driving means; When the output signal of the second optical sensor reaches a predetermined time width, the third pulse signal is read, the latest pulse period is compared with the previous pulse period, and the presence or absence of a match is detected. A card quantity reading device comprising: a microcomputer that calculates the number of cards from the number of pulses;
(2)前記マイクロコンピュータは前記センサー部を前
記駆動手段を介して前記反射板間を往復させ、往路にお
ける各カード周期の一致及び不一致を検出すると共にそ
のカード枚数を算出し、さらに復路の各カード周期の一
致及び不一致を検出すると共にそのカード枚数を算出す
る請求項1記載のカード数量読取り装置。
(2) The microcomputer moves the sensor section back and forth between the reflectors via the driving means, detects coincidence and mismatch of each card period on the outward trip, calculates the number of cards, and further calculates the number of cards for each card on the return trip. 2. The card quantity reading device according to claim 1, which detects coincidence and mismatch of cycles and calculates the number of cards.
(3)前記センサー部が往復したときにカード枚数及び
カード周期が不一致であれば、前記センサー部を所定回
数往復させ、各カード枚数が一致し、かつ、その周期が
一致したときに正常値としてその枚数を出力する請求項
2記載のカード数量読取り装置。
(3) If the number of cards and the card cycle do not match when the sensor unit reciprocates, the sensor unit is reciprocated a predetermined number of times, and when the number of cards and the cycle match, it is determined as a normal value. The card quantity reading device according to claim 2, which outputs the number of cards.
JP13621389A 1989-05-31 1989-05-31 Card quantity reader Pending JPH033098A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13621389A JPH033098A (en) 1989-05-31 1989-05-31 Card quantity reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13621389A JPH033098A (en) 1989-05-31 1989-05-31 Card quantity reader

Publications (1)

Publication Number Publication Date
JPH033098A true JPH033098A (en) 1991-01-09

Family

ID=15169955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13621389A Pending JPH033098A (en) 1989-05-31 1989-05-31 Card quantity reader

Country Status (1)

Country Link
JP (1) JPH033098A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02113365A (en) * 1988-10-22 1990-04-25 Anritsu Corp Card control device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02113365A (en) * 1988-10-22 1990-04-25 Anritsu Corp Card control device

Similar Documents

Publication Publication Date Title
US11829835B2 (en) Self-service parcel terminal with optimized shelving arrangement
EP0905658B1 (en) Method and apparatus for providing security to a self-service checkout terminal
US5408210A (en) Electronic cash register with customer line length indication
JPS5972561A (en) Time recorder with occasional rest processing function
JPH033098A (en) Card quantity reader
JP2982152B2 (en) Automatic coating machine inspection time detection display device
JPS62151973A (en) Restaurant charge calculator
CN215069013U (en) Multifunctional intelligent LED screen for bus stop
JP3143148B2 (en) Elevator type vending machine
JP2776567B2 (en) Vending machine change control device
JPS6129097Y2 (en)
JP2867291B2 (en) Trial lens set device
JPS63149791A (en) Shopping basket with registering function
JPH04204101A (en) Electronic counter
JP2602364B2 (en) POS terminal
JPH0223898B2 (en)
JP3769181B2 (en) Photoelectric sensor
EP0434728B1 (en) Card counter
JPH03268986A (en) Printer with data buffer used capacity display function
JP2536374B2 (en) Electronic weighing device
SU1527512A1 (en) Weight measuring device
JPS635100Y2 (en)
JP2581408B2 (en) Electronic weighing device
JPH02276702A (en) Article storage
JPS6327972A (en) Menu selection type terminal equipment