JP6576714B2 - Card-like medium counting device and control method for card-like medium counting device - Google Patents

Card-like medium counting device and control method for card-like medium counting device Download PDF

Info

Publication number
JP6576714B2
JP6576714B2 JP2015135484A JP2015135484A JP6576714B2 JP 6576714 B2 JP6576714 B2 JP 6576714B2 JP 2015135484 A JP2015135484 A JP 2015135484A JP 2015135484 A JP2015135484 A JP 2015135484A JP 6576714 B2 JP6576714 B2 JP 6576714B2
Authority
JP
Japan
Prior art keywords
card
medium
rank
threshold
sensor signal
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.)
Active
Application number
JP2015135484A
Other languages
Japanese (ja)
Other versions
JP2017016573A (en
Inventor
上村 吉治
吉治 上村
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP2015135484A priority Critical patent/JP6576714B2/en
Publication of JP2017016573A publication Critical patent/JP2017016573A/en
Application granted granted Critical
Publication of JP6576714B2 publication Critical patent/JP6576714B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Conveying Record Carriers (AREA)
  • Controlling Sheets Or Webs (AREA)

Description

本発明は、厚さ方向で重なるように収容されるカード状媒体の枚数を算出するカード状媒体計数装置に関する。また、本発明は、かかるカード状媒体計数装置の制御方法に関する。   The present invention relates to a card-like medium counting device that calculates the number of card-like media accommodated so as to overlap in the thickness direction. The present invention also relates to a method for controlling such a card-like medium counting device.

従来、積層状態で収容部に収容された通帳の冊数を算出するための紙葉類計数装置が知られている(たとえば、特許文献1参照)。特許文献1に記載の紙葉類計数装置は、発光素子と受光素子とを有する反射型の光学式センサを備えている。この光学式センサは、収容部に収容される通帳の厚さ方向へ移動可能となっている。また、特許文献1に記載の紙葉類計数装置は、光学式センサの信号を受け取るセンサ部と、センサ部で受け取った信号を処理して通帳の数を算出する制御部と、制御部で算出された通帳の数や正常終了あるいは異常終了といった終了ステータスを上位装置等に送信する通知部とを備えている。   2. Description of the Related Art Conventionally, a paper sheet counting apparatus for calculating the number of passbooks stored in a storage unit in a stacked state is known (see, for example, Patent Document 1). The paper sheet counting apparatus described in Patent Document 1 includes a reflective optical sensor having a light emitting element and a light receiving element. This optical sensor is movable in the thickness direction of the passbook accommodated in the accommodating portion. Further, the paper sheet counting apparatus described in Patent Document 1 is calculated by a sensor unit that receives a signal from an optical sensor, a control unit that processes the signal received by the sensor unit to calculate the number of passbooks, and a control unit. A notification unit that transmits the number of passbooks completed and an end status such as normal end or abnormal end to a higher-level device or the like.

特許文献1に記載の紙葉類計数装置では、制御部は、天地判定処理と凹部検証処理と幅検証処理とをこの順番で実行し、天地判定結果、凹部検証結果および幅検証結果の全てが正常である場合に、通知部を介して上位装置等に通帳の計数結果を通知する。一方、制御部は、天地判定結果、凹部検証結果および幅検証結果のいずれかが異常であった場合には、通知部を介して上位装置等に通帳のセット異常を通知する。   In the paper sheet counting apparatus described in Patent Document 1, the control unit executes the top / bottom determination processing, the concave portion verification processing, and the width verification processing in this order, and the top / bottom determination result, the concave portion verification result, and the width verification result are all obtained. If it is normal, the banking unit is notified of the counting result of the passbook via the notification unit. On the other hand, when any of the top / bottom determination result, the recessed portion verification result, and the width verification result is abnormal, the control unit notifies the host device or the like of the bankbook set abnormality via the notification unit.

特開2011−65378号公報JP 2011-65378 A

特許文献1に記載の紙葉類計数装置が搭載される上位装置の制御部に通帳のセット異常が通知される場合には、収容部に収容された通帳をセットし直さなければその後の処理が実行できないほどのセット異常が発生している場合もあれば、収容部に収容された通帳をセットし直さなくてもその後の処理を適切に実行することが可能な軽微なセット異常が発生している場合もある。   When a bankbook set abnormality is notified to the control unit of the host device on which the paper sheet counting device described in Patent Document 1 is mounted, the subsequent processing is performed unless the bankbook stored in the storage unit is reset. There may be a set abnormality that cannot be performed, or there may be a minor set abnormality that can be performed properly without resetting the bankbook stored in the storage unit. There may be.

しかしながら、特許文献1に記載の紙葉類計数装置が搭載される上位装置の制御部には、軽微なセット異常が発生している場合であってもセット異常が通知される。そのため、軽微なセット異常が発生している場合であって、通帳を収容部にセットし直す必要がない場合であっても、上位装置のユーザは、セット異常が通知されると、収容部に収容された通帳を確認する必要がある。また、通帳を収容部にセットし直す必要がない場合であってもセット異常が通知される場合には、通帳の計数結果が上位装置に通知されないため、上位装置のユーザは、再度、通帳の計数結果を取得するための処理を実行しなければならない。このように、特許文献1に記載の紙葉類計数装置が搭載される上位装置の使い勝手は良いとはいえない。   However, the control unit of the host device on which the paper sheet counting device described in Patent Document 1 is mounted is notified of the set abnormality even when a slight set abnormality has occurred. Therefore, even if a minor set abnormality has occurred and it is not necessary to reset the passbook in the storage unit, the user of the host device is notified of the set abnormality in the storage unit. It is necessary to confirm the stored passbook. Even if it is not necessary to reset the bankbook in the storage unit, if the set abnormality is notified, the counting result of the bankbook is not notified to the host device. Processing for obtaining the counting result must be executed. Thus, it cannot be said that the convenience of the host device on which the paper sheet counting device described in Patent Document 1 is mounted is good.

そこで、本発明の課題は、厚さ方向で重なるように収容されるカード状媒体の枚数を算出するカード状媒体計数装置において、このカード状媒体計数装置が搭載される上位装置の使い勝手を高めることが可能なカード状媒体計数装置を提供することにある。また、本発明の課題は、厚さ方向で重なるように収容されるカード状媒体の枚数を算出するカード状媒体計数装置が搭載される上位装置の使い勝手を高めることが可能となるカード状媒体計数装置の制御方法を提供することにある。   Accordingly, an object of the present invention is to improve the usability of a host device in which the card-like medium counting device is mounted in a card-like medium counting device that calculates the number of card-like media accommodated so as to overlap in the thickness direction. It is an object of the present invention to provide a card-like medium counting device capable of performing the above. Another object of the present invention is to provide a card-like medium counter capable of improving the usability of a host device on which a card-like medium counting device for calculating the number of card-like media accommodated so as to overlap in the thickness direction is mounted. It is to provide a method for controlling an apparatus.

上記の課題を解決するため、本発明のカード状媒体計数装置は、厚さ方向で重なるように収容されるカード状媒体の枚数を算出するカード状媒体計数装置であって、カード状媒体がカード状媒体の厚さ方向で重なるように収容される媒体収容部と、媒体収容部に収容されたカード状媒体の枚数を算出するためのセンサと、媒体収容部に収容されたカード状媒体の端面に沿ってカード状媒体の計数時にカード状媒体の厚さ方向へセンサを移動させる移動機構と、センサの出力信号であるセンサ信号が入力される制御部とを備え、制御部は、センサ信号に基づいて、媒体収容部に収容されたカード状媒体の枚数を算出するとともに、センサ信号に基づいて、算出されたカード状媒体の枚数の確からしさである第1確からしさ、媒体収容部に収容されたカード状媒体の種類および形状が正しいことの確からしさである第2確からしさ、および、媒体収容部に収容されたカード状媒体が正しい状態で収容されていることの確からしさである第3確からしさが比較的高い第1ランクと、第1確からしさが第1ランクと同程度でかつ第2確からしさと第3確からしさとの少なくともいずれか一方が第1ランクよりも低い第2ランクと、第1確からしさが第1ランクよりも低くかつ第2確からしさと第3確からしさとの少なくともいずれか一方が第1ランクよりも低い第3ランクとの少なくとも3つのランクにランク分けをしてランク付けを行い、算出されたカード状媒体の枚数情報とランク付けされたランクの情報であるランク情報とを、カード状媒体計数装置が搭載される上位装置の制御部へ送信することを特徴とする。   In order to solve the above problems, a card-like medium counting device of the present invention is a card-like medium counting device that calculates the number of card-like media accommodated so as to overlap in the thickness direction, and the card-like medium is a card. Medium accommodating portion accommodated so as to be overlapped in the thickness direction of the medium, a sensor for calculating the number of card-like media accommodated in the medium accommodating portion, and an end face of the card-like medium accommodated in the medium accommodating portion And a control unit to which a sensor signal that is an output signal of the sensor is input, and the control unit outputs a sensor signal to the sensor signal. And calculating the number of card-like media accommodated in the medium accommodating portion, and, based on the sensor signal, the first probability that is the certainty of the calculated number of card-like media, accommodated in the medium accommodating portion. The second certainty is the certainty that the type and shape of the card-like medium are correct, and the third certainty is the certainty that the card-like medium accommodated in the medium accommodating portion is accommodated in the correct state. A first rank having a relatively high likelihood, a second rank having a first likelihood that is approximately the same as the first rank, and at least one of the second likelihood and the third probability being lower than the first rank, Rank by classifying into at least three ranks, the first likelihood being lower than the first rank and at least one of the second probability and the third probability being lower than the first rank. The number information of the calculated card-like medium and the rank information that is the ranked rank information are sent to the control unit of the host device on which the card-like medium counting device is mounted. Characterized by trust.

また、上記の課題を解決するため、本発明のカード状媒体計数装置の制御方法は、カード状媒体がカード状媒体の厚さ方向で重なるように収容される媒体収容部と、媒体収容部に収容されたカード状媒体の枚数を算出するためのセンサと、媒体収容部に収容されたカード状媒体の端面に沿ってカード状媒体の計数時にカード状媒体の厚さ方向へセンサを移動させる移動機構とを備えるカード状媒体計数装置の制御方法であって、センサ信号に基づいて、媒体収容部に収容されたカード状媒体の枚数を算出するとともに、センサ信号に基づいて、算出されたカード状媒体の枚数の確からしさである第1確からしさ、媒体収容部に収容されたカード状媒体の種類および形状が正しいことの確からしさである第2確からしさ、および、媒体収容部に収容されたカード状媒体が正しい状態で収容されていることの確からしさである第3確からしさが比較的高い第1ランクと、第1確からしさが第1ランクと同程度でかつ第2確からしさと第3確からしさとの少なくともいずれか一方が第1ランクよりも低い第2ランクと、第1確からしさが第1ランクよりも低くかつ第2確からしさと第3確からしさとの少なくともいずれか一方が第1ランクよりも低い第3ランクとの少なくとも3つのランクにランク付けを行い、算出されたカード状媒体の枚数情報とランク付けされたランクの情報であるランク情報とを、カード状媒体計数装置が搭載される上位装置の制御部へ送信することを特徴とする。   Further, in order to solve the above-described problem, the control method of the card-like medium counting device according to the present invention includes a medium accommodating unit that accommodates the card-like medium so as to overlap in the thickness direction of the card-like medium, and A sensor for calculating the number of card-like media accommodated and a movement for moving the sensor in the thickness direction of the card-like media when counting the card-like media along the end surface of the card-like media accommodated in the medium accommodating portion And a card-like medium counting device comprising a mechanism for calculating the number of card-like media accommodated in the medium accommodating portion based on the sensor signal and calculating the card-like shape based on the sensor signal. A first likelihood that is the certainty of the number of media, a second certainty that is the certainty that the type and shape of the card-like medium accommodated in the medium accommodating portion are correct, and the medium accommodating portion The first rank, which has a relatively high third likelihood, which is the certainty that the received card-like medium is stored in the correct state, and the second likelihood, the first likelihood is comparable to the first rank. And / or the third likelihood, the second rank is lower than the first rank, the first likelihood is lower than the first rank, and at least one of the second likelihood and the third likelihood Is ranked in at least three ranks with a third rank lower than the first rank, and the card-like medium count is calculated by calculating the number information of the card-like medium and the rank information that is the ranked rank information. It transmits to the control part of the high-order apparatus in which an apparatus is mounted, It is characterized by the above-mentioned.

本発明では、センサ信号に基づいて、媒体収容部に収容されたカード状媒体の枚数を算出するとともに、第1確からしさと第2確からしさと第3確からしさとの3つの確からしさをランク判定の基準とする第1ランクと第2ランクと第3ランクとの少なくとも3つのランクにランク分けをしてランク付けを行い、算出されたカード状媒体の枚数情報とランク付けされたランクの情報であるランク情報とを上位装置の制御部へ送信している。そのため、本発明では、上位装置に送信されてきたランク情報に基づいて、上位装置側で、媒体収容部に収容されたカード状媒体を本当に確認する必要があるのか否かを判断することが可能になる。たとえば、第3ランクのランク情報が送信されてきた場合には、媒体収容部に収容されたカード状媒体を確認するが、第2ランクのランク情報が送信された場合には、媒体収容部に収容されたカード状媒体を確認しないといった判断を上位装置側ですることが可能になる。また、本発明では、どのようなランクにランク付けされても、算出されたカード状媒体の枚数情報がランク情報と一緒に上位装置の制御部に送信されるため、媒体収容部に収容されたカード状媒体を確認しないと上位装置側で判断した場合に、そのまま、上位装置の処理を実行することが可能になる。したがって、本発明では、カード状媒体計数装置が搭載される上位装置の使い勝手を高めることが可能になる。   In the present invention, the number of card-like media stored in the medium storage unit is calculated based on the sensor signal, and the three probabilities of the first probability, the second probability, and the third probability are ranked. The rank is classified into at least three ranks of the first rank, the second rank, and the third rank, and the number information of the card-like medium and the rank information calculated are used. Certain rank information is transmitted to the control unit of the host device. Therefore, in the present invention, based on the rank information transmitted to the host device, it is possible to determine whether the host device really needs to check the card-like medium stored in the medium storage unit. become. For example, when rank information of the third rank is transmitted, the card-like medium accommodated in the medium accommodating portion is confirmed. When rank information of the second rank is transmitted, the medium accommodating portion is confirmed. It is possible to make a determination that the received card-like medium is not confirmed on the host device side. Also, in the present invention, the calculated card number information of the card-like medium is transmitted to the control unit of the host device together with the rank information regardless of the rank, so that it is accommodated in the medium accommodating unit. If the higher-level device determines that the card-like medium is not confirmed, it is possible to execute the processing of the higher-level device as it is. Therefore, in the present invention, it is possible to improve the usability of the host device on which the card-like medium counting device is mounted.

本発明において、たとえば、制御部は、センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合に、センサ信号の信号レベルの、第1閾値を超える隣り合うピークの時間間隔であるピーク間隔を算出し、計数対象となるカード状媒体の厚さに基づいて予め設定される基準値とピーク間隔との比較結果に基づいて、媒体収容部に収容されたカード状媒体の枚数を算出するとともに、少なくとも3つのランクにランク付けする。   In the present invention, for example, when the plurality of peaks of the signal level of the sensor signal exceed a predetermined first threshold, the control unit is arranged at a time interval between adjacent peaks exceeding the first threshold of the signal level of the sensor signal. A certain peak interval is calculated, and the number of card-like media accommodated in the media accommodating portion is calculated based on a comparison result between a reference value preset based on the thickness of the card-like medium to be counted and the peak interval. Calculate and rank at least three ranks.

本発明において、たとえば、制御部は、センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合であって、かつ、センサ信号の信号レベルの複数個のボトムが所定の第2閾値以下となる場合に、センサ信号の信号レベルの、第2閾値以下の隣り合うボトムの時間間隔であるボトム間隔を算出し、計数対象となるカード状媒体の厚さに基づいて予め設定される基準値とボトム間隔との比較結果に基づいて、媒体収容部に収容されたカード状媒体の枚数を算出するとともに、少なくとも3つのランクにランク付けする。 In the present invention, for example, the control unit is a case where a plurality of peaks of the signal level of the sensor signal exceed a predetermined first threshold value, and a plurality of bottoms of the signal level of the sensor signal is a predetermined second. When the signal level of the sensor signal is equal to or less than the threshold value, the bottom interval, which is the time interval between adjacent bottoms that is equal to or less than the second threshold value, is calculated and preset based on the thickness of the card-like medium to be counted. Based on the comparison result between the reference value and the bottom interval , the number of card-like media stored in the medium storage unit is calculated, and at least three ranks are ranked.

本発明において、制御部は、センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合に、センサ信号の信号レベルの、第1閾値を超える隣り合うピークの時間間隔であるピーク間隔を算出し、センサ信号の信号レベルの複数個のピークが第1閾値を超える場合であって、かつ、センサ信号の信号レベルの複数個のボトムが所定の第2閾値以下となる場合に、センサ信号の信号レベルの、第2閾値以下の隣り合うボトムの時間間隔であるボトム間隔を算出し、センサによるカード状媒体の検出時にセンサ信号の信号レベルが第1閾値および第2閾値よりも小さい所定の第3閾値を超えてから第3閾値以下となるまでの時間間隔である総時間間隔をセンサ信号の第1閾値を超えるピークの数で割った数を平均間隔とすると、ピーク間隔の全てが所定の第1基準範囲内にあり、ボトム間隔の全てが所定の第2基準範囲内にあり、かつ、平均間隔が所定の第3基準範囲内にある場合に、センサ信号の第1閾値を超えるピークの数を、媒体収容部に収容されたカード状媒体の枚数として算出するとともに、第1ランクとランク付けすることが好ましい。   In the present invention, the control unit, when a plurality of peaks of the signal level of the sensor signal exceeds a predetermined first threshold, a peak that is a time interval between adjacent peaks of the signal level of the sensor signal exceeding the first threshold. When the intervals are calculated and the plurality of peaks of the signal level of the sensor signal exceed the first threshold value, and the plurality of bottoms of the signal level of the sensor signal is equal to or lower than the predetermined second threshold value, The bottom interval, which is the time interval between adjacent bottoms below the second threshold value of the signal level of the sensor signal, is calculated, and the signal level of the sensor signal is smaller than the first threshold value and the second threshold value when the card-like medium is detected by the sensor. Assuming that the average interval is the number obtained by dividing the total time interval, which is the time interval from the time when the predetermined third threshold value is exceeded to the time when the value falls below the third threshold value, by the number of peaks exceeding the first threshold value of the sensor signal When all of the intervals are within a predetermined first reference range, all of the bottom intervals are within a predetermined second reference range, and the average interval is within a predetermined third reference range, It is preferable that the number of peaks exceeding one threshold is calculated as the number of card-like media stored in the medium storage unit and ranked as the first rank.

このように構成すると、第1ランクのランク情報が上位装置に送信されてきたときの、カード状媒体の枚数の確からしさである第1確からしさ、媒体収容部に収容されたカード状媒体の種類および形状が正しいことの確からしさである第2確からしさ、および、媒体収容部に収容されたカード状媒体が正しい状態で収容されていることの確からしさである第3確からしさがより高くなる。したがって、第1ランクのランク情報が上位装置に送信されてきたときには、媒体収容部に収容されたカード状媒体を確認しなくても、その後の上位装置の処理を安心して実行することが可能になる。   With this configuration, when the rank information of the first rank is transmitted to the host device, the first probability that is the probability of the number of card-like media, the type of the card-like media accommodated in the medium accommodating portion The second likelihood, which is the certainty that the shape is correct, and the third probability, which is the certainty that the card-like medium accommodated in the medium accommodating portion is accommodated in the correct state, are further increased. Therefore, when the rank information of the first rank is transmitted to the host device, the subsequent processing of the host device can be executed with peace of mind without checking the card-like medium stored in the medium storage unit. Become.

本発明において、制御部は、たとえば、ピーク間隔の少なくとも1つが第1基準範囲から外れるとともに第1基準範囲から外れるピーク間隔が所定の第1基準値以下である場合、ボトム間隔の少なくとも1つが第2基準範囲から外れるとともに第2基準範囲から外れるボトム間隔が所定の第2基準値以下である場合、および、平均間隔が第3基準範囲内から外れている場合の少なくともいずれか1つの場合に、センサ信号の第1閾値を超えるピークの数をカード状媒体の枚数として算出するとともに、第2ランクとランク付けする。この場合、第2ランクとランク付けされるときには、ピーク間隔が第1基準範囲から外れていても第1基準値以下であるため、また、ボトム間隔が第2基準範囲から外れていても第2基準値以下であるため、第1ランクの第1確からしさと第2ランクの第1確からしさとをより同程度の確からしさとすることが可能になる。   In the present invention, for example, when at least one of the peak intervals is out of the first reference range and the peak interval out of the first reference range is equal to or less than a predetermined first reference value, at least one of the bottom intervals is In the case where at least one of the case where the bottom interval deviating from the second reference range and deviating from the second reference range is equal to or less than the predetermined second reference value and the average interval deviating from within the third reference range, The number of peaks exceeding the first threshold value of the sensor signal is calculated as the number of card-like media and ranked as the second rank. In this case, when ranked as the second rank, even if the peak interval is out of the first reference range, it is equal to or less than the first reference value, and the bottom interval is out of the second reference range. Since it is below the reference value, it is possible to make the first likelihood of the first rank and the first likelihood of the second rank more similar.

本発明において、制御部は、たとえば、ピーク間隔の少なくとも1つが第1基準範囲から外れるとともに第1基準範囲から外れるピーク間隔が第1基準値を超える場合、および、ボトム間隔の少なくとも1つが第2基準範囲から外れるとともに第2基準範囲から外れるボトム間隔が第2基準値を超える場合の少なくともいずれか1つの場合に、第3ランクとランク付けする。   In the present invention, the control unit, for example, when at least one of the peak intervals is out of the first reference range and the peak interval out of the first reference range exceeds the first reference value, and at least one of the bottom intervals is the second. The third rank is ranked in at least one of cases where the bottom interval that is out of the reference range and out of the second reference range exceeds the second reference value.

本発明において、制御部は、ピーク間隔が第1基準値を超える場合であってかつこのピーク間隔におけるセンサ信号の信号レベルのボトムが第1閾値および第2閾値よりも小さい所定の第4閾値を超える場合に、第1基準値を超えるピーク間隔に基づいて算出される補正値をセンサ信号の第1閾値を超えるピークの数に加えた値をカード状媒体の枚数として算出し、ピーク間隔が第1基準値以下であってかつボトム間隔が第2基準値を超える場合に、第2基準値を超えるボトム間隔に基づいて算出される補正値をセンサ信号の第1閾値を超えるピークの数に加えた値をカード状媒体の枚数として算出し、ピーク間隔が第1基準値を超える場合であってかつこのピーク間隔におけるセンサ信号の信号レベルのボトムが第4閾値以下となる場合に、センサ信号の第1閾値を超えるピークの数をカード状媒体の枚数として算出することが好ましい。このように構成すると、第3ランクにランク付けされた場合の第1確からしさ(カード状媒体の枚数の確からしさ)を高めることが可能になる。   In the present invention, the control unit sets a predetermined fourth threshold value when the peak interval exceeds the first reference value and the bottom of the signal level of the sensor signal at the peak interval is smaller than the first threshold value and the second threshold value. If it exceeds, a correction value calculated based on the peak interval exceeding the first reference value is added to the number of peaks exceeding the first threshold value of the sensor signal to calculate the number of card-like media. If the bottom interval exceeds the second reference value when it is less than or equal to one reference value, a correction value calculated based on the bottom interval exceeding the second reference value is added to the number of peaks exceeding the first threshold of the sensor signal When the peak interval exceeds the first reference value and the bottom of the signal level of the sensor signal at the peak interval is equal to or less than the fourth threshold value. It is preferable to calculate the number of peaks exceeding a first threshold value of the sensor signal as a number of card media. If comprised in this way, it will become possible to raise the 1st certainty (the certainty of the number of card-like media) at the time of ranking to the 3rd rank.

本発明において、制御部は、たとえば、センサ信号の第1閾値を超えるピークが1個であり、かつ、総時間間隔が所定の第3基準値以下である場合に、媒体収容部に収容されるカード状媒体の枚数を1枚と算出するとともに、第1ランクとランク付けする。また、本発明において、制御部は、たとえば、センサによるカード状媒体の検出時にセンサ信号の信号レベルが第3閾値を超えない場合に、媒体収容部に収容されるカード状媒体の枚数を0枚と算出するとともに、第1ランクとランク付けする。この場合には、媒体収容部に収容されるカード状媒体の枚数が1枚または0枚であっても、媒体収容部に収容されるカード状媒体の枚数を適切に算出することが可能になるとともに、適切なランク付けを行うことが可能になる。   In the present invention, the control unit is accommodated in the medium accommodating unit when, for example, the number of peaks exceeding the first threshold of the sensor signal is one and the total time interval is equal to or less than a predetermined third reference value. The number of card-like media is calculated as one and ranked first. In the present invention, for example, when the card-like medium is detected by the sensor and the signal level of the sensor signal does not exceed the third threshold value, the control unit sets the number of card-like media to be accommodated in the medium accommodating unit to zero. And rank with the first rank. In this case, even if the number of card-like media accommodated in the medium accommodating portion is one or zero, it is possible to appropriately calculate the number of card-like media accommodated in the medium accommodating portion. At the same time, it is possible to perform an appropriate ranking.

本発明において、制御部は、センサ信号の信号レベルが第1閾値よりも小さい所定の第3閾値を超える場合であって、かつ、センサによるカード状媒体の検出時におけるセンサ信号の信号レベルのピークの全てが第1閾値以下となる場合、あるいは、センサ信号の信号レベルが第1閾値を超える回数が1回であり、かつ、センサによるカード状媒体の検出時にセンサ信号の信号レベルが第3閾値を超えてから第3閾値以下となるまでの時間間隔である総時間間隔が所定の第3基準値を超える場合に、第1確からしさと第2確からしさと第3確からしさとが第3ランクよりも低い第4ランクとランク付けするとともに、総時間間隔を、計数対象となるカード状媒体の厚さに基づいて予め設定される基準値で割った値をカード状媒体の枚数として算出することが好ましい。このように構成すると、第1確からしさと第2確からしさと第3確からしさとが第3ランクよりも低い第4ランクのランク情報と一緒にカード状媒体の枚数情報を上位装置に送信することが可能になる。   In the present invention, the control unit is a case where the signal level of the sensor signal exceeds a predetermined third threshold value smaller than the first threshold value, and the peak of the signal level of the sensor signal when the sensor detects the card-like medium. Or the number of times that the signal level of the sensor signal exceeds the first threshold is one, and the signal level of the sensor signal is the third threshold when the sensor detects the card-like medium. When the total time interval, which is the time interval from exceeding the third threshold value to exceeding the third threshold, exceeds a predetermined third reference value, the first probability, the second probability, and the third probability are the third rank. As the number of card-like media, the total time interval is divided by a preset reference value based on the thickness of the card-like media to be counted. It is preferable to leave. If comprised in this way, the number information of a card-like medium will be transmitted to a high-order apparatus with the rank information of 4th rank in which 1st probability, 2nd probability, and 3rd probability are lower than 3rd rank. Is possible.

本発明において、センサは、たとえば、発光部と発光部からの光を受光する受光部とを備える光学式のセンサである。   In the present invention, the sensor is, for example, an optical sensor including a light emitting unit and a light receiving unit that receives light from the light emitting unit.

以上のように、本発明のカード状媒体計数装置では、このカード状媒体計数装置が搭載される上位装置の使い勝手を高めることが可能になる。また、本発明のカード状媒体計数装置の制御方法によれば、カード状媒体計数装置が搭載される上位装置の使い勝手を高めることが可能になる。   As described above, in the card-like medium counting device of the present invention, it becomes possible to improve the usability of the host device on which this card-like medium counting device is mounted. Moreover, according to the control method of the card-like medium counting device of the present invention, it becomes possible to improve the usability of the host device on which the card-like medium counting device is mounted.

本発明の実施の形態にかかるカード状媒体計数装置が搭載されるカード発行装置の概略平面図である。1 is a schematic plan view of a card issuing device on which a card-like medium counting device according to an embodiment of the present invention is mounted. 図1に示すカード収容装置に組み込まれるカード状媒体計数装置の機械的な構成を説明するための概略図である。It is the schematic for demonstrating the mechanical structure of the card-shaped medium counting device integrated in the card accommodation apparatus shown in FIG. 本発明の実施の形態にかかるカード状媒体計数装置でのカード状媒体の枚数の算出制御およびランク付け制御に関連する構成のブロック図である。It is a block diagram of the structure relevant to calculation control and ranking control of the number of card-like media in the card-like media counting device concerning an embodiment of the invention. 図3に示すカード状媒体計数装置において、カード状媒体の枚数の算出およびランク付けを行うときのカード状媒体計数装置の制御フローの一例を示すフローチャートである。4 is a flowchart illustrating an example of a control flow of the card-like medium counting device when calculating and ranking the number of card-like media in the card-like medium counting device shown in FIG. 3. 図4の枚数算出/ランク付けステップでの処理フローの一例を示すフローチャートである。5 is a flowchart illustrating an example of a processing flow in a number calculating / ranking step in FIG. 4. 図3に示す制御部で第1ランクとランク付けされるときのセンサ信号の例を示す図である。It is a figure which shows the example of a sensor signal when it ranks with a 1st rank in the control part shown in FIG. 図3に示す制御部で第2ランクとランク付けされるときのセンサ信号の例を示す図である。It is a figure which shows the example of a sensor signal when it ranks with a 2nd rank in the control part shown in FIG. 図3に示す制御部で第3ランクとランク付けされるときのセンサ信号の例を示す図である。It is a figure which shows the example of a sensor signal when it ranks with a 3rd rank in the control part shown in FIG. 図3に示す制御部で第4ランクとランク付けされるときのセンサ信号の例を示す図である。It is a figure which shows the example of a sensor signal when ranking with a 4th rank in the control part shown in FIG.

以下、図面を参照しながら、本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

(カード発行装置の概略構成)
図1は、本発明の実施の形態にかかるカード状媒体計数装置1が搭載されるカード発行装置3の概略平面図である。図2は、図1に示すカード収容装置5に組み込まれるカード状媒体計数装置1の機械的な構成を説明するための概略図である。
(Schematic configuration of card issuing device)
FIG. 1 is a schematic plan view of a card issuing device 3 on which a card-like medium counting device 1 according to an embodiment of the present invention is mounted. FIG. 2 is a schematic diagram for explaining the mechanical configuration of the card-like medium counting device 1 incorporated in the card accommodating device 5 shown in FIG.

本形態のカード状媒体計数装置1は、厚さ方向で重なるように収容されるカード状媒体2の枚数を算出するための装置であり、所定の上位装置に搭載されている。本形態のカード状媒体2は、厚さが0.7〜0.8mm程度の矩形状の塩化ビニール製のカードである。したがって、以下では、カード状媒体2を「カード2」とし、カード状媒体計数装置1を「カード計数装置1」とする。また、本形態では、カード計数装置1が搭載される上位装置は、カード2を発行するカード発行装置3である。カード発行装置3は、たとえば、銀行等に設置されており、新規の顧客に渡される新規のカード2(キャッシュカード)を発行する。   The card-like medium counting device 1 of this embodiment is a device for calculating the number of card-like media 2 accommodated so as to overlap in the thickness direction, and is mounted on a predetermined host device. The card-like medium 2 of this embodiment is a rectangular vinyl chloride card having a thickness of about 0.7 to 0.8 mm. Therefore, hereinafter, the card-like medium 2 is referred to as “card 2”, and the card-like medium counting device 1 is referred to as “card counting device 1”. In this embodiment, the host device on which the card counting device 1 is mounted is the card issuing device 3 that issues the card 2. The card issuing device 3 is installed in a bank or the like, for example, and issues a new card 2 (cash card) to be given to a new customer.

カード発行装置3は、発行されるカード2にデータの記録等を行うカードリーダ4と、発行前の複数のカード2が収容されるカード収容装置5と、カード収容装置5からカードリーダ4へカード2を搬送するカード搬送装置6とを備えている。本形態のカード発行装置3は、たとえば、5個のカード収容装置5を備えている。カード計数装置1は、5個のカード収容装置5のそれぞれに組み込まれており、カード収容装置5の一部を構成している。   The card issuing device 3 includes a card reader 4 that records data on the issued card 2, a card storage device 5 that stores a plurality of cards 2 before issuance, and a card from the card storage device 5 to the card reader 4. 2 and a card transport device 6 for transporting 2. The card issuing device 3 of this embodiment includes, for example, five card accommodation devices 5. The card counting device 1 is incorporated in each of the five card storage devices 5 and constitutes a part of the card storage device 5.

カードリーダ4とカード搬送装置6とカード収容装置5とは、前後方向(図1のX方向)において、この順番で配置されている。5個のカード収容装置5は、左右方向(図1のY方向)に配列されている。カードリーダ4は、磁気ヘッドや印字機構等を備えている。カード搬送装置6は、たとえば、左右方向へ移動するキャリッジを備えており、このキャリッジには、前後方向へカード2を搬送するカード搬送機構が搭載されている。カード収容装置5は、カード2が収容される媒体収容部としてのカードカセット9と、カードカセット9に収容されたカード2をカード搬送装置6へ送り出すカード送出機構10とを備えている。   The card reader 4, the card transport device 6, and the card storage device 5 are arranged in this order in the front-rear direction (X direction in FIG. 1). The five card storage devices 5 are arranged in the left-right direction (Y direction in FIG. 1). The card reader 4 includes a magnetic head, a printing mechanism, and the like. The card transport device 6 includes, for example, a carriage that moves in the left-right direction, and a card transport mechanism that transports the card 2 in the front-rear direction is mounted on the carriage. The card accommodating device 5 includes a card cassette 9 as a medium accommodating portion in which the card 2 is accommodated, and a card sending mechanism 10 that sends out the card 2 accommodated in the card cassette 9 to the card conveying device 6.

カード発行装置3において、カード2が発行されるときには、まず、発行されるカード2が収容されるカード収容装置5の前方にカード搬送装置6のキャリッジが配置された状態で、カード収容装置5からカード2が送り出される。送り出されたカード2がキャリッジの中に収容されると、キャリッジは、カードリーダ4が配置された位置まで移動して、カードリーダ4にカード2を送り込む。カードリーダ4は、磁気データの記録やカード2の表面への印字を行う等の所定の処理を実行してカード2を排出する。カードリーダ4からカード2が排出されると、カード発行装置3におけるカード2の発行処理が完了する。   In the card issuing device 3, when the card 2 is issued, first, from the card storage device 5 in a state where the carriage of the card transport device 6 is arranged in front of the card storage device 5 in which the issued card 2 is stored. Card 2 is sent out. When the sent-out card 2 is accommodated in the carriage, the carriage moves to a position where the card reader 4 is arranged, and sends the card 2 to the card reader 4. The card reader 4 ejects the card 2 by executing predetermined processes such as recording magnetic data and printing on the surface of the card 2. When the card 2 is ejected from the card reader 4, the card issuance process of the card 2 in the card issuing device 3 is completed.

(カード収容装置の構成)
図3は、本発明の実施の形態にかかるカード計数装置1でのカード2の枚数の算出制御およびランク付け制御に関連する構成のブロック図である。
(Configuration of card accommodation device)
FIG. 3 is a block diagram of a configuration related to calculation control and ranking control of the number of cards 2 in the card counting device 1 according to the embodiment of the present invention.

カード収容装置5は、上述のように、カードカセット9とカード送出機構10とを備えている。また、カード収容装置5は、カードカセット9が収容される本体フレーム11と、カードカセット9に収容されたカード2の枚数を算出するためのセンサ12と、カード2の計数時にセンサ12を移動させる移動機構13とを備えている。   The card accommodating device 5 includes the card cassette 9 and the card sending mechanism 10 as described above. Further, the card storage device 5 moves the sensor 12 when counting the card 2, the main body frame 11 in which the card cassette 9 is stored, the sensor 12 for calculating the number of cards 2 stored in the card cassette 9. And a moving mechanism 13.

カードカセット9は、上下方向に細長い略直方体の箱状に形成されている。カードカセット9には、発行前の複数のカード2が積層されて収容されている。すなわち、カードカセット9には、カード2の厚さ方向と上下方向(鉛直方向)とが略一致するように配置される発行前の複数のカード2が収容されるとともに、複数のカード2がカード2の厚さ方向(上下方向)で重なるように収容されている。   The card cassette 9 is formed in a substantially rectangular parallelepiped box shape elongated in the vertical direction. In the card cassette 9, a plurality of cards 2 before being issued are stacked and accommodated. That is, the card cassette 9 accommodates a plurality of pre-issue cards 2 arranged so that the thickness direction of the card 2 and the vertical direction (vertical direction) substantially coincide with each other, and the plurality of cards 2 are cards. 2 are accommodated so as to overlap in the thickness direction (vertical direction).

カード送出機構10は、本体フレーム11の下端側部分に配置されている。このカード送出機構10は、カードカセット9に収容された複数のカード2の中で一番下に収容されているカード2(最下位のカード2)の後端に係合してカードカセット9からカード2を1枚ずつ送り出す送出爪16と、送出爪16が固定されるチェーン17と、チェーン17が掛け渡される一対のスプロケット18とを備えている。図示を省略するモータの動力でスプロケット18が回転すると、送出爪16が移動して、カードカセット9に収容された最下位のカード2がカードカセット9の外部へ送り出される。   The card sending mechanism 10 is disposed at the lower end side portion of the main body frame 11. The card delivery mechanism 10 engages with the rear end of the card 2 (the lowest card 2) accommodated at the bottom of the plurality of cards 2 accommodated in the card cassette 9 so that the card cassette 9 A feeding claw 16 for feeding out the cards 2 one by one, a chain 17 to which the feeding claw 16 is fixed, and a pair of sprockets 18 on which the chain 17 is stretched are provided. When the sprocket 18 is rotated by the power of a motor (not shown), the delivery claw 16 moves and the lowest card 2 accommodated in the card cassette 9 is sent out of the card cassette 9.

センサ12は、発光部と発光部からの光を受光する受光部とを備える光学式のセンサである。具体的には、センサ12は、カードカセット9に収容されるカード2の端面に向かって光を照射する発光部と、カード2の端面等で反射された光を受光する受光部とを備える反射型の光学式センサである。センサ12の受光部は、受光量に応じて変動する出力信号を出力する。具体的には、センサ12の受光部は、受光量が大きいと信号レベルが高くなり、受光量が小さいと信号レベルが低くなる出力信号を出力する。また、センサ12は、センサホルダ20に固定されている。   The sensor 12 is an optical sensor including a light emitting unit and a light receiving unit that receives light from the light emitting unit. Specifically, the sensor 12 includes a light emitting unit that emits light toward the end surface of the card 2 accommodated in the card cassette 9 and a light receiving unit that receives light reflected from the end surface of the card 2 or the like. Type optical sensor. The light receiving unit of the sensor 12 outputs an output signal that varies according to the amount of received light. Specifically, the light receiving unit of the sensor 12 outputs an output signal whose signal level increases when the amount of received light is large and decreases when the amount of received light is small. The sensor 12 is fixed to the sensor holder 20.

移動機構13は、センサホルダ20に固定されるナット部材21と、ナット部材21が係合するボールネジ等のネジ部材22と、ネジ部材22を回転させるモータ(図示省略)と、センサホルダ20が直線的に移動するようにセンサホルダ20を案内するガイド軸23とを備えている。ネジ部材22は、ネジ部材22の軸方向と上下方向とが一致するように配置され、ガイド軸23は、ガイド軸23の軸方向と上下方向とが一致するように配置されている。移動機構13は、カードカセット9に収容されたカード2の計数時に、カードカセット9に収容されたカード2の端面に沿って上下方向(すなわち、カード2の厚さ方向)へセンサ12を移動させる。具体的には、移動機構13は、最下位のカード2よりも下側に配置されているセンサ12を所定の上限位置まで移動させる。   The moving mechanism 13 includes a nut member 21 fixed to the sensor holder 20, a screw member 22 such as a ball screw engaged with the nut member 21, a motor (not shown) for rotating the screw member 22, and the sensor holder 20 being linear. And a guide shaft 23 for guiding the sensor holder 20 so as to move. The screw member 22 is arranged so that the axial direction of the screw member 22 and the vertical direction coincide with each other, and the guide shaft 23 is arranged so that the axial direction of the guide shaft 23 coincides with the vertical direction. The moving mechanism 13 moves the sensor 12 in the vertical direction (that is, the thickness direction of the card 2) along the end surface of the card 2 accommodated in the card cassette 9 when counting the cards 2 accommodated in the card cassette 9. . Specifically, the moving mechanism 13 moves the sensor 12 disposed below the lowest card 2 to a predetermined upper limit position.

本形態では、カードカセット9、センサ12、センサホルダ20および移動機構13等によってカード計数装置1が構成されている。カード計数装置1の制御部25には、センサ12の出力信号(具体的には、センサ12の受光部の出力信号)であるセンサ信号SGが入力される。制御部25は、センサ信号SGを処理するための増幅回路26とA/D変換回路27とCPU28とを備えている。また、制御部25は、移動機構13のモータを駆動する駆動回路を備えている。この制御部25は、カード発行装置3の制御部である上位制御部30に接続されている。   In this embodiment, the card counting device 1 is constituted by the card cassette 9, the sensor 12, the sensor holder 20, the moving mechanism 13, and the like. A sensor signal SG which is an output signal of the sensor 12 (specifically, an output signal of the light receiving unit of the sensor 12) is input to the control unit 25 of the card counting device 1. The control unit 25 includes an amplifier circuit 26, an A / D conversion circuit 27, and a CPU 28 for processing the sensor signal SG. In addition, the control unit 25 includes a drive circuit that drives the motor of the moving mechanism 13. The control unit 25 is connected to a higher-level control unit 30 that is a control unit of the card issuing device 3.

制御部25は、制御部25に入力されるセンサ信号SGに基づいて、カードカセット9に収容されたカード2の枚数を算出する。また、算出されたカード2の枚数の確からしさを「第1確からしさ」とし、カードカセット9に収容されたカード2の種類および形状が正しいことの確からしさを「第2確からしさ」とし、カードカセット9に収容されたカード2が正しい状態で収容されていることの確からしさを「第3確からしさ」とすると、制御部25は、センサ信号SGに基づいて、第1確からしさと第2確からしさと第3確からしさとが比較的高い「Aランク」と、第1確からしさがAランクと同程度でかつ第2確からしさと第3確からしさとの少なくともいずれか一方がAランクよりも低い「Bランク」と、第1確からしさがAランクよりも低くかつ第2確からしさと第3確からしさとの少なくともいずれか一方がAランクよりも低い「Cランク」と、第1確からしさと第2確からしさと第3確からしさとがCランクよりも低い「Dランク」の4つのランクにランク分けをしてランク付けを行う。   The control unit 25 calculates the number of cards 2 accommodated in the card cassette 9 based on the sensor signal SG input to the control unit 25. In addition, the probability of the calculated number of cards 2 is defined as “first probability”, the probability that the type and shape of the card 2 accommodated in the card cassette 9 is correct is defined as “second probability”, and the card If the probability that the card 2 stored in the cassette 9 is stored in the correct state is “third likelihood”, the control unit 25 determines whether the first probability and the second certainty are based on the sensor signal SG. “A rank” with a relatively high likelihood and third likelihood and a first likelihood that is comparable to the A rank, and at least one of the second probability and the third likelihood is lower than the A rank “B rank” and “C rank” in which the first likelihood is lower than the A rank and at least one of the second probability and the third probability is lower than the A rank, To rank and the ranking in the To four ranks of "D rank" lower than the second probability and the third probability and the C rank.

また、制御部25は、算出されたカード2の枚数情報とランク付けされたランクの情報であるランク情報とを上位制御部30へ送信する。以下、カード2の枚数の算出方法およびランク付け方法について説明する。なお、本形態のAランクは第1ランクであり、Bランクは第2ランクであり、Cランクは第3ランクであり、Dランクは第4ランクである。   In addition, the control unit 25 transmits the calculated number information of the cards 2 and rank information that is rank information of the ranks to the upper control unit 30. Hereinafter, a method for calculating the number of cards 2 and a ranking method will be described. In this embodiment, the A rank is the first rank, the B rank is the second rank, the C rank is the third rank, and the D rank is the fourth rank.

(カード枚数の算出方法およびランク付け方法)
図4は、図3に示すカード計数装置1において、カード2の枚数の算出およびランク付けを行うときのカード計数装置1の制御フローの一例を示すフローチャートである。図5は、図4の枚数算出/ランク付けステップS5での処理フローの一例を示すフローチャートである。図6は、図3に示す制御部25でAランクとランク付けされるときのセンサ信号SGの例を示す図である。図7は、図3に示す制御部25でBランクとランク付けされるときのセンサ信号SGの例を示す図である。図8は、図3に示す制御部25でCランクとランク付けされるときのセンサ信号SGの例を示す図である。図9は、図3に示す制御部25でDランクとランク付けされるときのセンサ信号SGの例を示す図である。
(Card number calculation method and ranking method)
FIG. 4 is a flowchart showing an example of a control flow of the card counting device 1 when calculating and ranking the number of cards 2 in the card counting device 1 shown in FIG. FIG. 5 is a flowchart showing an example of a processing flow in the number calculating / ranking step S5 of FIG. FIG. 6 is a diagram illustrating an example of the sensor signal SG when the control unit 25 illustrated in FIG. FIG. 7 is a diagram illustrating an example of the sensor signal SG when the control unit 25 illustrated in FIG. FIG. 8 is a diagram illustrating an example of the sensor signal SG when the control unit 25 illustrated in FIG. FIG. 9 is a diagram illustrating an example of the sensor signal SG when the control unit 25 illustrated in FIG.

カード計数装置1において、カード2の枚数の算出およびランク付けを行うときには、まず、制御部25は、移動機構13のモータを起動し(ステップS1)、最下位のカード2よりも下側に配置されているセンサ12を上昇させてセンサ信号SGを取得する(ステップS2)。センサ12の上昇とセンサ信号SGの取得は、センサ12が所定の上限位置に到達するまで行われ(すなわち、ステップS3で“Yes”となるまで行われ)、センサ12が上限位置に到達すると、制御部25は、移動機構13のモータを停止させる(ステップS4)。その後、制御部25は、ステップS2で取得したセンサ信号SGに基づいてカード2の枚数の算出とランク付けを行い(ステップS5)、算出されたカード2の枚数情報とランク付けされたランク情報とを上位制御部30へ送信する(ステップS6)。以下、ステップS5におけるカード2の枚数の算出方向とランク付け方法を具体的に説明する。   When calculating and ranking the number of cards 2 in the card counting device 1, first, the control unit 25 activates the motor of the moving mechanism 13 (step S1) and arranges it below the lowest card 2. The sensor 12 being moved is raised to obtain a sensor signal SG (step S2). The rise of the sensor 12 and the acquisition of the sensor signal SG are performed until the sensor 12 reaches a predetermined upper limit position (that is, performed until “Yes” in step S3), and when the sensor 12 reaches the upper limit position, The control unit 25 stops the motor of the moving mechanism 13 (step S4). Thereafter, the control unit 25 calculates and ranks the number of cards 2 based on the sensor signal SG acquired in step S2 (step S5), and calculates the calculated number information of the cards 2 and ranked rank information. Is transmitted to the host control unit 30 (step S6). Hereinafter, the calculation direction and ranking method of the number of cards 2 in step S5 will be specifically described.

ステップS5では、制御部25は、まず、センサ信号SGの信号レベルが所定の閾値th0を超えているのか否かを判断する(ステップS11)。閾値th0は、センサ信号SGの信号レベルのピークの値の0.3〜0.6倍程度の値に設定されており、ステップS11では、センサ信号SGの信号レベルが閾値th0を超えるのか否かを判断することによって、カードカセット9の中にカード2が収容されているのか否かを判断する。ステップS11において、センサ信号SGの信号レベルが閾値th0を超えている場合には、制御部25は、センサ信号SGの信号レベルのピークとボトムとを特定する(ステップS12)。   In step S5, the control unit 25 first determines whether or not the signal level of the sensor signal SG exceeds a predetermined threshold th0 (step S11). The threshold value th0 is set to a value about 0.3 to 0.6 times the peak value of the signal level of the sensor signal SG. In step S11, whether or not the signal level of the sensor signal SG exceeds the threshold value th0. It is determined whether or not the card 2 is accommodated in the card cassette 9. In step S11, when the signal level of the sensor signal SG exceeds the threshold th0, the control unit 25 specifies the peak and bottom of the signal level of the sensor signal SG (step S12).

その後、制御部25は、閾値th0よりも大きい所定の閾値th1をセンサ信号SGの信号レベルのピークが超えているのか否かを判断する(ステップS13)。ステップS13において、信号レベルのピークが閾値th1を超えている場合には、制御部25は、閾値th1を超えているピークの数が1個であるのか否かを判断する(ステップS14)。ステップS14において、閾値th1を超えるピークの数が2個以上(複数個)である場合には、制御部25は、センサ信号SGの信号レベルの、閾値th1を超える隣り合うピークの時間間隔であるピーク間隔tiを算出する(ステップS15)。たとえば、図6(A)に示すように、制御部25は、9個のピーク間隔t1〜t9を算出する。   Thereafter, the control unit 25 determines whether or not the peak of the signal level of the sensor signal SG exceeds a predetermined threshold th1 that is larger than the threshold th0 (step S13). If the signal level peak exceeds the threshold th1 in step S13, the control unit 25 determines whether the number of peaks exceeding the threshold th1 is one (step S14). When the number of peaks exceeding the threshold th1 is two or more (plural) in step S14, the control unit 25 is the time interval between adjacent peaks exceeding the threshold th1 in the signal level of the sensor signal SG. The peak interval ti is calculated (step S15). For example, as illustrated in FIG. 6A, the control unit 25 calculates nine peak intervals t1 to t9.

また、ステップS14において閾値th1を超えるピークの数が2個以上である場合であって、かつ、センサ信号SGの信号レベルの2個以上(複数個)のボトムが所定の閾値th2以下となる場合に、制御部25は、ステップS15において、センサ信号SGの信号レベルの、閾値th2以下の隣り合うボトムの時間間隔であるボトム間隔Tiを算出する。たとえば、図6(A)に示すように、制御部25は、8個のボトム間隔T1〜T8を算出する。なお、本形態では、閾値th2は、閾値th1よりも小さくなっている。また、閾値th2は、閾値th0よりも大きくなっている。   Further, in step S14, the number of peaks exceeding the threshold th1 is two or more, and two or more (plural) bottoms of the signal level of the sensor signal SG are equal to or less than the predetermined threshold th2. In addition, in step S15, the control unit 25 calculates a bottom interval Ti that is a time interval between adjacent bottoms of the signal level of the sensor signal SG that is equal to or less than the threshold th2. For example, as illustrated in FIG. 6A, the control unit 25 calculates eight bottom intervals T1 to T8. In the present embodiment, the threshold th2 is smaller than the threshold th1. The threshold th2 is larger than the threshold th0.

その後、制御部25は、ステップS15で算出されたピーク間隔tiおよびボトム間隔Tiが正常であるのか否かを判断する(ステップS16)。具体的には、ステップ16において、制御部25は、ピーク間隔tiの全てが所定の第1基準範囲内にあるのか否かを判断するとともに、ボトム間隔Tiの全てが所定の第2基準範囲内にあるのか否かを判断する。本形態では、カード計数装置1の計数対象となるカード2の厚さ(具体的には、正規のカード2の正規の厚さ)に基づいて、ピーク間隔tiおよびボトム間隔Tiと比較される基準値RVが予め設定されている。具体的には、計数対象となるカード2の厚さを、移動機構13によって移動するセンサ12の移動速度で割った値が基準値RVとなっている。第1基準範囲は(a1×RV)から(a2×RV)までの範囲であり、たとえば、a1は0.8程度であり、a2は1.2程度である。同様に、第2基準範囲は(b1×RV)から(b2×RV)までの範囲であり、たとえば、b1は0.8程度であり、b2は1.2程度である。   Thereafter, the control unit 25 determines whether or not the peak interval ti and the bottom interval Ti calculated in step S15 are normal (step S16). Specifically, in step 16, the control unit 25 determines whether or not all of the peak intervals ti are within a predetermined first reference range, and all of the bottom intervals Ti are within a predetermined second reference range. It is determined whether or not there is. In this embodiment, a reference to be compared with the peak interval ti and the bottom interval Ti based on the thickness of the card 2 to be counted by the card counting device 1 (specifically, the normal thickness of the normal card 2). A value RV is preset. Specifically, a value obtained by dividing the thickness of the card 2 to be counted by the moving speed of the sensor 12 moved by the moving mechanism 13 is the reference value RV. The first reference range is a range from (a1 × RV) to (a2 × RV). For example, a1 is about 0.8 and a2 is about 1.2. Similarly, the second reference range is a range from (b1 × RV) to (b2 × RV), for example, b1 is about 0.8 and b2 is about 1.2.

ステップS16において、ピーク間隔tiの全てが第1基準範囲内にあり、かつ、ボトム間隔Tiの全てが第2基準範囲内にある場合には、制御部25は、センサ信号SGの信号レベルが閾値th0を超えてから閾値th0以下となるまでの時間間隔である総時間間隔Wを算出するとともに、閾値th1を超えるピークの数で総時間間隔Wを割った数である平均間隔Waを算出する(ステップS17)。その後、制御部25は、平均間隔Waが正常であるのか否かを判断する(ステップS18)。具体的には、ステップ18において、制御部25は、平均間隔Waが所定の第3基準範囲内にあるのか否かを判断する。第3基準範囲は(c1×RV)から(c2×RV)までの範囲であり、たとえば、c1は0.8程度であり、c2は1.2程度である。   In step S16, when all of the peak intervals ti are within the first reference range and all of the bottom intervals Ti are within the second reference range, the control unit 25 determines that the signal level of the sensor signal SG is a threshold value. The total time interval W, which is the time interval from exceeding th0 to the threshold th0 or less, is calculated, and the average interval Wa, which is the number obtained by dividing the total time interval W by the number of peaks exceeding the threshold th1, is calculated ( Step S17). Thereafter, the control unit 25 determines whether or not the average interval Wa is normal (step S18). Specifically, in step 18, the control unit 25 determines whether or not the average interval Wa is within a predetermined third reference range. The third reference range is a range from (c1 × RV) to (c2 × RV). For example, c1 is about 0.8 and c2 is about 1.2.

ステップS18において、平均間隔Waが第3基準範囲内にある場合には、制御部25は、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Aランクと判定してAランクとランク付けする(ステップS19)。このように、制御部25は、ピーク間隔tiの全てが第1基準範囲内にあり、ボトム間隔Tiの全てが第2基準範囲内にあり、かつ、平均間隔Waが第3基準範囲内にある場合に、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Aランクとランク付けする。たとえば、センサ信号SGの信号レベルが図6(A)に示すように変動する場合に、制御部25は、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Aランクとランク付けする。   In step S18, when the average interval Wa is within the third reference range, the control unit 25 calculates the number of peaks exceeding the threshold value th1 of the sensor signal SG as the number of cards 2 accommodated in the card cassette 9. At the same time, it is determined as A rank and ranked as A rank (step S19). As described above, the control unit 25 determines that all of the peak intervals ti are in the first reference range, all of the bottom intervals Ti are in the second reference range, and the average interval Wa is in the third reference range. In this case, the number of peaks exceeding the threshold value th1 of the sensor signal SG is calculated as the number of cards 2 accommodated in the card cassette 9, and is ranked as A rank. For example, when the signal level of the sensor signal SG varies as shown in FIG. 6A, the control unit 25 determines the number of peaks exceeding the threshold th1 of the sensor signal SG in the card 2 accommodated in the card cassette 9. And the A rank.

また、ステップS16において、ピーク間隔tiの少なくとも1つが第1基準範囲から外れている場合、および/または、ボトム間隔Tiの少なくとも1つが第2基準範囲から外れている場合には、制御部25は、第1基準範囲から外れているピーク間隔tiが所定の第1基準値RV1以下であり、かつ、第2基準範囲から外れているボトム間隔Tiが所定の第2基準値RV2以下であるのか否かを判断する(ステップS21)。第1基準値RV1および第2基準値RV2は、基準値RVに基づいて設定される値である。第1基準値RV1は(d1×RV)であり、たとえば、d1は1.6〜1.7である。また、第2基準値RV2は(d2×RV)であり、たとえば、d2は1.6〜1.7である。   In step S16, when at least one of the peak intervals ti is out of the first reference range and / or when at least one of the bottom intervals Ti is out of the second reference range, the control unit 25 Whether the peak interval ti deviating from the first reference range is equal to or smaller than the predetermined first reference value RV1, and the bottom interval Ti deviating from the second reference range is equal to or smaller than the predetermined second reference value RV2. Is determined (step S21). The first reference value RV1 and the second reference value RV2 are values set based on the reference value RV. The first reference value RV1 is (d1 × RV), and for example, d1 is 1.6 to 1.7. Moreover, 2nd reference value RV2 is (d2 * RV), for example, d2 is 1.6-1.7.

たとえば、図7に示すように、ピーク間隔t7が第1基準範囲から外れ、ボトム間隔T7が第2基準範囲から外れている場合に、制御部25は、ステップS21において、ピーク間隔t7が第1基準値RV1以下であり、かつ、ボトム間隔T7が第2基準値RV2以下であるのか否かを判断する。また、たとえば、図8(A)に示すように、ピーク間隔t6が第1基準範囲から外れ、ボトム間隔T6が第2基準範囲から外れている場合に、制御部25は、ステップS21において、ピーク間隔t6が第1基準値RV1以下であり、かつ、ボトム間隔T6が第2基準値RV2以下であるのか否かを判断する。また、図8(B)に示すように、ピーク間隔t7が第1基準範囲から外れている場合に、制御部25は、ステップS21において、ピーク間隔t7が第1基準値RV1以下であるのか否かを判断する。   For example, as shown in FIG. 7, when the peak interval t7 is out of the first reference range and the bottom interval T7 is out of the second reference range, the control unit 25 determines that the peak interval t7 is the first in step S21. It is determined whether the reference value RV1 or less and the bottom interval T7 is less than or equal to the second reference value RV2. Further, for example, as shown in FIG. 8A, when the peak interval t6 is out of the first reference range and the bottom interval T6 is out of the second reference range, the control unit 25 determines that the peak in step S21 It is determined whether or not the interval t6 is less than or equal to the first reference value RV1 and the bottom interval T6 is less than or equal to the second reference value RV2. Also, as shown in FIG. 8B, when the peak interval t7 is out of the first reference range, the control unit 25 determines whether or not the peak interval t7 is equal to or less than the first reference value RV1 in step S21. Determine whether.

ステップS21において、第1基準範囲から外れているピーク間隔tiが第1基準値RV1以下であり、かつ、第2基準範囲から外れているボトム間隔Tiが第2基準値RV2以下である場合には、制御部25は、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Bランクと判定してBランクとランク付けする(ステップS22)。すなわち、この場合には、制御部25は、第1確からしさ(算出されたカード2の枚数の確からしさ)は、Aランクと同程度であるが、たとえば、カードカセット9に収容されたカード2の中に種類や形状等の異なるカード2が混ざっており、第2確からしさ(カードカセット9に収容されたカード2の種類および形状が正しいことの確からしさ)がAランクよりも低いと判断して、Bランクとランク付けする。あるいは、この場合には、制御部25は、第1確からしさはAランクと同程度であるが、たとえば、カードカセット9に収容されるカード2が斜めに傾いた状態で収容されていたり、カード2の間にごみ等が挟まれていたりしており、第3確からしさ(カードカセット9に収容されたカード2が正しい状態で収容されていることの確からしさ)がAランクよりも低いと判断して、Bランクとランク付けする。   In step S21, when the peak interval ti deviating from the first reference range is equal to or less than the first reference value RV1, and the bottom interval Ti deviating from the second reference range is equal to or less than the second reference value RV2. The control unit 25 calculates the number of peaks exceeding the threshold th1 of the sensor signal SG as the number of cards 2 accommodated in the card cassette 9, and determines the rank B to rank the rank B (step S22). ). That is, in this case, the control unit 25 has the first likelihood (the probability of the calculated number of cards 2) that is about the same as the A rank, but for example, the card 2 stored in the card cassette 9 Cards 2 of different types and shapes are mixed together, and the second probability (the certainty that the type and shape of the card 2 stored in the card cassette 9 is correct) is determined to be lower than the A rank. Rank B. Alternatively, in this case, the control unit 25 has a first likelihood that is about the same as the A rank. For example, the card 2 accommodated in the card cassette 9 is accommodated in a slanted state, It is determined that the third probability (the probability that the card 2 accommodated in the card cassette 9 is accommodated in the correct state) is lower than the A rank because dust or the like is sandwiched between the two. And rank B.

また、ステップS18において、平均間隔Waが第3基準範囲から外れている場合にも、ステップS22に進んで、制御部25は、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Bランクとランク付けする。すなわち、この場合には、制御部25は、第1確からしさはAランクと同程度であるが、たとえば、カードカセット9に収容されたカード2の中に種類や形状等の異なるカード2が多数混ざっており、第2確からしさがAランクよりも低いと判断して、Bランクとランク付けする。   In step S18, also when the average interval Wa is out of the third reference range, the process proceeds to step S22, and the control unit 25 sets the number of peaks exceeding the threshold value th1 of the sensor signal SG to the card cassette 9. It is calculated as the number of stored cards 2 and ranked as B rank. In other words, in this case, the control unit 25 has a first likelihood that is about the same as the A rank. For example, the card 2 accommodated in the card cassette 9 includes many cards 2 of different types and shapes. It is determined that the second probability is lower than the A rank, and is ranked as the B rank.

このように、制御部25は、ピーク間隔tiの少なくとも1つが第1基準範囲から外れるとともに第1基準範囲から外れるピーク間隔tiが第1基準値RV1以下である場合、ボトム間隔Tiの少なくとも1つが第2基準範囲から外れるとともに第2基準範囲から外れるボトム間隔Tiが第2基準値RV2以下である場合、および、平均間隔Waが第3基準範囲から外れている場合の少なくともいずれか1つの場合に、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Bランクとランク付けする。たとえば、センサ信号SGの信号レベルが図7に示すように変動する場合に、制御部25は、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Bランクとランク付けする。   As described above, when at least one of the peak intervals ti is out of the first reference range and the peak interval ti out of the first reference range is equal to or less than the first reference value RV1, at least one of the bottom intervals Ti is When the bottom interval Ti deviating from the second reference range and deviating from the second reference range is equal to or less than the second reference value RV2, and at least one of the cases where the average interval Wa is deviating from the third reference range The number of peaks exceeding the threshold value th1 of the sensor signal SG is calculated as the number of cards 2 accommodated in the card cassette 9, and ranked as B rank. For example, when the signal level of the sensor signal SG varies as shown in FIG. 7, the control unit 25 determines the number of peaks exceeding the threshold th1 of the sensor signal SG as the number of cards 2 accommodated in the card cassette 9. Calculate and rank with B rank.

また、ステップS21において、第1基準範囲から外れているピーク間隔tiが第1基準値RV1を超えている場合、および、第2基準範囲から外れているボトム間隔Tiが第2基準値RV2を超えている場合の少なくともいずれか1つの場合には、制御部25は、ピーク間隔tiが第1基準値RV1を超えるのか否かを判断する(ステップS23)。   In step S21, when the peak interval ti outside the first reference range exceeds the first reference value RV1, and the bottom interval Ti outside the second reference range exceeds the second reference value RV2. In at least any one of the cases, the control unit 25 determines whether or not the peak interval ti exceeds the first reference value RV1 (step S23).

ステップS23において、ピーク間隔tiが第1基準値RV1以下であり、第2基準範囲から外れているボトム間隔Tiが第2基準値RV2を超えている場合には、制御部25は、第2基準値RV2を超えるボトム間隔Tiに基づいて算出される補正値を算出する(ステップS24)。具体的には、第2基準値RV2を超えるボトム間隔Tiを基準値RVで割った値から1を引いた値に最も近い整数を補正値として算出する。たとえば、図8(A)に示す例では、ボトム間隔T6が第2基準値RV2を超えており、ボトム間隔T6を基準値RVで割った値から1を引いた値に最も近い整数は1であるため、補正値は1となる。   In step S23, when the peak interval ti is equal to or less than the first reference value RV1 and the bottom interval Ti that is out of the second reference range exceeds the second reference value RV2, the control unit 25 sets the second reference value RV1. A correction value calculated based on the bottom interval Ti exceeding the value RV2 is calculated (step S24). Specifically, an integer closest to a value obtained by subtracting 1 from a value obtained by dividing the bottom interval Ti exceeding the second reference value RV2 by the reference value RV is calculated as a correction value. For example, in the example shown in FIG. 8A, the bottom interval T6 exceeds the second reference value RV2, and the integer closest to the value obtained by subtracting 1 from the value obtained by dividing the bottom interval T6 by the reference value RV is 1. Therefore, the correction value is 1.

また、制御部25は、センサ信号SGの閾値th1を超えるピークの数に補正値を加えた数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Cランクとランク付けする(ステップS25)。すなわち、この場合には、制御部25は、算出されたカード2の枚数に補正値が含まれているため、第1確からしさがAランクよりも低いと判断するとともに、たとえば、カードカセット9に収容されたカード2の中に種類や形状等の異なるカード2が混ざっており、第2確からしさがAランクよりも低いと判断して、あるいは、たとえば、カードカセット9に収容されるカード2が斜めに傾いた状態で収容されており、第3確からしさがAランクよりも低いと判断して、Cランクとランク付けする。   Further, the control unit 25 calculates the number obtained by adding the correction value to the number of peaks exceeding the threshold th1 of the sensor signal SG as the number of cards 2 accommodated in the card cassette 9, and ranks it as the C rank ( Step S25). That is, in this case, the control unit 25 determines that the first probability is lower than the A rank because the calculated number of cards 2 includes a correction value, and for example, stores the card cassette 9 in the card cassette 9. It is determined that the cards 2 of different types and shapes are mixed in the stored cards 2 and the second probability is lower than the A rank, or, for example, the cards 2 stored in the card cassette 9 are It is accommodated in a slanted state, and it is determined that the third likelihood is lower than the A rank, and is ranked as the C rank.

一方、ステップS23において、ピーク間隔tiが第1基準値RV1を超えている場合には、制御部25は、第1基準値RV1を超えているピーク間隔tiにおけるセンサ信号SGの信号レベルのボトムが閾値th0以下であるのか否かを判断する(ステップS26)。たとえば、図8(A)に示すように、第1基準値RV1を超えているピーク間隔t6におけるセンサ信号SGの信号レベルのボトムが閾値th0を超えている場合には、ステップS24に進み、制御部25は、第1基準値RV1を超えるピーク間隔tiに基づいて算出される補正値を算出する。具体的には、第1基準値RV1を超えるピーク間隔tiを基準値RVで割った値から1を引いた値に最も近い整数を補正値として算出する。たとえば、図8(A)に示す例では、ピーク間隔t6を基準値RVで割った値から1を引いた値に最も近い整数は1であるため、補正値は1となる。ステップS24で補正値が算出されると、ステップS25へ進む。   On the other hand, when the peak interval ti exceeds the first reference value RV1 in step S23, the control unit 25 determines that the bottom of the signal level of the sensor signal SG at the peak interval ti exceeding the first reference value RV1. It is determined whether or not the threshold value is th0 or less (step S26). For example, as shown in FIG. 8A, when the bottom of the signal level of the sensor signal SG at the peak interval t6 exceeding the first reference value RV1 exceeds the threshold th0, the process proceeds to step S24 and the control is performed. The unit 25 calculates a correction value calculated based on the peak interval ti exceeding the first reference value RV1. Specifically, an integer closest to a value obtained by subtracting 1 from a value obtained by dividing the peak interval ti exceeding the first reference value RV1 by the reference value RV is calculated as a correction value. For example, in the example shown in FIG. 8A, since the integer closest to the value obtained by subtracting 1 from the value obtained by dividing the peak interval t6 by the reference value RV is 1, the correction value is 1. When the correction value is calculated in step S24, the process proceeds to step S25.

また、たとえば、図8(B)に示すように、第1基準値RV1を超えているピーク間隔t7におけるセンサ信号SGの信号レベルのボトムが閾値th0以下となっている場合には、制御部25は、たとえば、カードカセット9に収容されるカード2の間に隙間が形成されていると判断して、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Cランクとランク付けする(ステップS27)。すなわち、この場合には、制御部25は、第1確からしさがAランクよりも低いと判断するとともに、第2確からしさおよび/または第3確からしさがAランクよりも低いと判断して、Cランクとランク付けする。   Further, for example, as shown in FIG. 8B, when the bottom of the signal level of the sensor signal SG at the peak interval t7 exceeding the first reference value RV1 is equal to or less than the threshold th0, the control unit 25 For example, it is determined that a gap is formed between the cards 2 accommodated in the card cassette 9, and the number of peaks exceeding the threshold th1 of the sensor signal SG is determined as the number of peaks of the cards 2 accommodated in the card cassette 9. It is calculated as the number of sheets and ranked C rank (step S27). That is, in this case, the control unit 25 determines that the first likelihood is lower than the A rank, and determines that the second likelihood and / or the third likelihood is lower than the A rank, and C Rank with rank.

このように、制御部25は、ピーク間隔tiが第1基準範囲から外れるとともに第1基準範囲から外れるピーク間隔tiが第1基準値RV1を超えている場合、および、ボトム間隔Tiが第2基準範囲から外れるとともに第2基準範囲から外れるボトム間隔Tiが第2基準値RV2を超えている場合の少なくともいずれか1つの場合に、Cランクとランク付けする。   As described above, the control unit 25 determines that the peak interval ti is out of the first reference range and the peak interval ti out of the first reference range exceeds the first reference value RV1, and the bottom interval Ti is the second reference range. The C rank is ranked in at least any one of cases where the bottom interval Ti deviating from the range and deviating from the second reference range exceeds the second reference value RV2.

また、以上のように、制御部25は、基準値RVに基づいて算出される第1基準範囲および第1基準値RV1と、ピーク間隔tiとの比較結果や、基準値RVに基づいて算出される第2基準範囲および第2基準値RV2と、ボトム間隔Tiとの比較結果に基づいて(すなわち、基準値RVとピーク間隔tiとの比較結果や、基準値RVとボトム間隔Tiとの比較結果に基づいて)、カードカセット9に収容されたカード2の枚数を算出するとともに、Aランク、BランクおよびCランクの3つのランクにランク付けをする。   Further, as described above, the control unit 25 is calculated based on the comparison result between the first reference range and the first reference value RV1 calculated based on the reference value RV and the peak interval ti and the reference value RV. Based on the comparison result between the second reference range and the second reference value RV2 and the bottom interval Ti (that is, the comparison result between the reference value RV and the peak interval ti, or the comparison result between the reference value RV and the bottom interval Ti). Based on the above, the number of cards 2 stored in the card cassette 9 is calculated, and the ranks A, B, and C are ranked.

また、ステップS14において、閾値th1を超えるピークの数が1個である場合には、制御部25は、センサ信号SGの信号レベルが閾値th0を超えてから閾値th0以下となるまでの時間間隔である総時間間隔Wが所定の第3基準値RV3以下であるのか否かを判断する(ステップS29)。ステップS29において、総時間間隔Wが第3基準値RV3以下である場合には、制御部25は、カードカセット9に収容されたカード2の枚数を1枚と算出するとともに、Aランクと判定してAランクとランク付けする(ステップS30)。たとえば、センサ信号SGの信号レベルが図6(B)に示すように変動する場合に、制御部25は、カードカセット9に収容されたカード2の枚数を1枚と算出するとともに、Aランクとランク付けする。   In step S14, when the number of peaks exceeding the threshold value th1 is one, the control unit 25 performs a time interval from when the signal level of the sensor signal SG exceeds the threshold value th0 until the threshold value th0 is reached. It is determined whether or not a certain total time interval W is equal to or smaller than a predetermined third reference value RV3 (step S29). In step S29, when the total time interval W is equal to or smaller than the third reference value RV3, the control unit 25 calculates the number of cards 2 stored in the card cassette 9 as one and determines the rank A. And rank A (step S30). For example, when the signal level of the sensor signal SG fluctuates as shown in FIG. 6B, the control unit 25 calculates the number of cards 2 accommodated in the card cassette 9 as one and ranks A. Rank.

一方、ステップS29において、総時間間隔Wが第3基準値RV3を超えている場合には、制御部25は、総時間間隔Wを基準値RVで割った値を算出し(ステップS31)、この値を、カードカセット9に収容されたカード2の枚数として算出するとともに、Dランクとランク付けする(ステップS32)。すなわち、この場合には、制御部25は、算出されたカード2の枚数が総時間間隔Wと基準値RVとに基づく全くの推定値であるため、第1確からしさがCランクよりも低いと判断するとともに、第2確からしさおよび/または第3確からしさもCランクよりも低いと判断して、Dランクとランク付けする。   On the other hand, when the total time interval W exceeds the third reference value RV3 in step S29, the control unit 25 calculates a value obtained by dividing the total time interval W by the reference value RV (step S31). The value is calculated as the number of cards 2 accommodated in the card cassette 9 and ranked as D rank (step S32). That is, in this case, since the calculated number of cards 2 is a completely estimated value based on the total time interval W and the reference value RV, the controller 25 determines that the first probability is lower than the C rank. At the same time, it is determined that the second likelihood and / or the third likelihood is also lower than the C rank, and is ranked as the D rank.

たとえば、図9(B)に示すように、カード2の光の反射率が低くてセンサ信号SGの信号レベルのピークとボトムとがはっきりせず、センサ信号SGの信号レベルが閾値th1を超える回数が1回である場合には、ステップS14において、閾値th1を超えるピークの数が1個であると判断されるとともに、ステップS29において、総時間間隔Wが第3基準値RV3を超えると判断される。そのため、センサ信号SGの信号レベルが図9(B)に示すように変動する場合に、制御部25は、総時間間隔Wを基準値RVで割った値を、カードカセット9に収容されたカード2の枚数として算出するとともに、Dランクとランク付けする。   For example, as shown in FIG. 9B, the light reflectance of the card 2 is low, the peak and bottom of the signal level of the sensor signal SG are not clear, and the signal level of the sensor signal SG exceeds the threshold th1. In step S14, it is determined that the number of peaks exceeding the threshold th1 is one, and in step S29, the total time interval W is determined to exceed the third reference value RV3. The Therefore, when the signal level of the sensor signal SG fluctuates as shown in FIG. 9B, the control unit 25 divides the value obtained by dividing the total time interval W by the reference value RV into the card accommodated in the card cassette 9. It is calculated as a number of 2 and ranked as D rank.

また、ステップS13において、センサ信号SGの信号レベルのピークの全てが閾値th1以下となる場合には、制御部25は、総時間間隔Wを基準値RVで割った値を算出し(ステップS33)、この値を、カードカセット9に収容されたカード2の枚数として算出するとともに、Dランクとランク付けする(ステップS34)。すなわち、この場合には、制御部25は、算出されたカード2の枚数が総時間間隔Wと基準値RVとに基づく全くの推定値であるため、第1確からしさがCランクよりも低いと判断するとともに、第2確からしさおよび/または第3確からしさもCランクよりも低いと判断して、Dランクとランク付けする。たとえば、センサ信号SGの信号レベルが図9(A)に示すように変動する場合に、制御部25は、総時間間隔Wを基準値RVで割った値を、カードカセット9に収容されたカード2の枚数として算出するとともに、Dランクとランク付けする。   If all the signal level peaks of the sensor signal SG are equal to or less than the threshold th1 in step S13, the control unit 25 calculates a value obtained by dividing the total time interval W by the reference value RV (step S33). This value is calculated as the number of cards 2 accommodated in the card cassette 9 and ranked as D rank (step S34). That is, in this case, since the calculated number of cards 2 is a completely estimated value based on the total time interval W and the reference value RV, the controller 25 determines that the first probability is lower than the C rank. At the same time, it is determined that the second likelihood and / or the third likelihood is also lower than the C rank, and is ranked as the D rank. For example, when the signal level of the sensor signal SG fluctuates as shown in FIG. 9A, the control unit 25 obtains the card accommodated in the card cassette 9 by dividing the total time interval W by the reference value RV. It is calculated as a number of 2 and ranked as D rank.

また、ステップS11において、センサ信号SGの信号レベルが閾値th0を超えない場合には、制御部25は、カードカセット9に収容されたカード2の枚数を0枚と算出するとともに、Aランクと判定してAランクとランク付けする(ステップS36)。たとえば、図6(C)に示すように、センサ信号SGの信号レベルが変動しない場合に、制御部25は、カードカセット9に収容されたカード2の枚数を0枚と算出するとともに、Aランクとランク付けする。   In step S11, if the signal level of the sensor signal SG does not exceed the threshold th0, the control unit 25 calculates the number of cards 2 stored in the card cassette 9 as 0 and determines that the rank is A. And rank A (step S36). For example, as shown in FIG. 6C, when the signal level of the sensor signal SG does not fluctuate, the control unit 25 calculates the number of cards 2 accommodated in the card cassette 9 as 0 and rank A Rank.

本形態の閾値th1は、第1閾値であり、閾値th2は、第2閾値である。また、本形態の閾値th0は、第3閾値であるとともに第4閾値である。なお、本形態では、第1閾値である閾値th1と第2閾値である閾値th2とが異なった値となっているが、第1閾値と第2閾値とが同じ値であっても良い。また、本形態では、第3閾値と第4閾値とが同じ値になっているが、第3閾値と第4閾値とが異なった値であっても良い。   In this embodiment, the threshold th1 is a first threshold, and the threshold th2 is a second threshold. In addition, the threshold th0 in this embodiment is a third threshold and a fourth threshold. In this embodiment, the threshold value th1 that is the first threshold value and the threshold value th2 that is the second threshold value are different from each other. However, the first threshold value and the second threshold value may be the same value. In the present embodiment, the third threshold value and the fourth threshold value are the same value, but the third threshold value and the fourth threshold value may be different values.

(本形態の主な効果)
以上説明したように、本形態では、制御部25は、センサ信号SGに基づいて、カードカセット9に収容されたカード2の枚数を算出するとともに、第1確からしさと第2確からしさと第3確からしさとの3つの確からしさをランク判定の基準とするAランク、Bランク、CランクおよびDランクの4つのランクにランク分けをしてランク付けを行っている。また、制御部25は、算出されたカード2の枚数情報とランク付けされたランクの情報であるランク情報とを上位制御部30へ送信している。
(Main effects of this form)
As described above, in the present embodiment, the control unit 25 calculates the number of cards 2 accommodated in the card cassette 9 based on the sensor signal SG, and the first probability, the second probability, and the third. Ranking is performed by classifying into four ranks of A rank, B rank, C rank, and D rank, which use the three probabilities of probability and the criterion of rank determination. In addition, the control unit 25 transmits the calculated number information of the cards 2 and rank information that is rank information of the ranks to the upper control unit 30.

そのため、本形態では、カード発行装置3に送信されてきたランク情報に基づいて、カード発行装置3側で、カードカセット9に収容されたカード2を本当に確認する必要があるのか否かを判断することが可能になる。たとえば、Cランク、Dランクのランク情報が送信されてきた場合には、カードカセット9に収容されたカード2を確認するが、Bランクのランク情報が送信された場合には、カードカセット9に収容されたカード2を確認しないといった判断をカード発行装置3側ですることが可能になる。また、本形態では、Aランク〜Dランクのいずれのランクにランク付けされても、算出されたカード2の枚数情報がランク情報と一緒に上位制御部30に送信されるため、カードカセット9に収容されたカード2を確認しないとカード発行装置3側で判断した場合に、そのまま、カード発行装置3の処理を実行することが可能になる。したがって、本形態では、カード計数装置1が搭載されるカード発行装置3の使い勝手を高めることが可能になる。   Therefore, in this embodiment, based on the rank information transmitted to the card issuing device 3, it is determined on the card issuing device 3 side whether or not the card 2 accommodated in the card cassette 9 really needs to be confirmed. It becomes possible. For example, when rank information of C rank and D rank is transmitted, the card 2 accommodated in the card cassette 9 is confirmed, but when rank information of B rank is transmitted, it is stored in the card cassette 9. The card issuing device 3 can make a determination not to check the stored card 2. Further, in this embodiment, the calculated card number information of the card 2 is transmitted to the upper control unit 30 together with the rank information regardless of the rank of rank A to rank D. When the card issuing device 3 determines that the stored card 2 is not confirmed, the processing of the card issuing device 3 can be executed as it is. Therefore, in this embodiment, it becomes possible to improve the usability of the card issuing device 3 on which the card counting device 1 is mounted.

本形態では、制御部25は、ピーク間隔tiの全てが第1基準範囲内にあり、ボトム間隔Tiの全てが第2基準範囲内にあり、かつ、平均間隔Waが第3基準範囲内にある場合に、Aランクとランク付けしている。すなわち、本形態では、制御部25は、ピーク間隔tiの全て、ボトム間隔Tiの全ておよび平均間隔Waが正常である場合に、Aランクとランク付けしている。そのため、本形態では、Aランクのランク情報がカード発行装置3に送信されてきたときの第1確からしさ、第2確からしさおよび第3確からしさがより高くなる。したがって、Aランクのランク情報が送信されてきたときには、カードカセット9に収容されたカード2を確認しなくても、その後のカード発行装置3の処理を安心して実行することが可能になる。   In the present embodiment, the control unit 25 has all the peak intervals ti within the first reference range, all the bottom intervals Ti within the second reference range, and the average interval Wa within the third reference range. In this case, it is ranked as A rank. That is, in this embodiment, the control unit 25 ranks the A rank when all of the peak intervals ti, all of the bottom intervals Ti, and the average interval Wa are normal. Therefore, in this embodiment, the first likelihood, the second likelihood, and the third likelihood when the rank A rank information is transmitted to the card issuing device 3 are further increased. Therefore, when rank information of rank A is transmitted, the subsequent processing of the card issuing device 3 can be executed with confidence without checking the card 2 accommodated in the card cassette 9.

本形態では、制御部25は、第1基準範囲から外れているピーク間隔tiが第1基準値RV1以下であり、かつ、第2基準範囲から外れているボトム間隔Tiが第2基準値RV2以下である場合に、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Bランクとランク付けしている。すなわち、本形態では、Bランクとランク付けされる場合には、ピーク間隔tiが第1基準範囲から外れていても第1基準値RV1以下であり、また、ボトム間隔Tiが第2基準範囲から外れていても第2基準値RV2以下であるため、Aランクの第1確からしさとBランクの第1確からしさとをより同程度の確からしさとすることが可能になる。   In this embodiment, the control unit 25 determines that the peak interval ti that is out of the first reference range is equal to or less than the first reference value RV1, and the bottom interval Ti that is out of the second reference range is equal to or less than the second reference value RV2. In this case, the number of peaks exceeding the threshold th1 of the sensor signal SG is calculated as the number of cards 2 accommodated in the card cassette 9, and is ranked as B rank. That is, in this embodiment, when ranked as B rank, even if the peak interval ti is out of the first reference range, it is not more than the first reference value RV1, and the bottom interval Ti is not more than the second reference range. Even if it is off, it is equal to or less than the second reference value RV2, so that the first likelihood of the A rank and the first likelihood of the B rank can be set to the same degree of certainty.

本形態では、制御部25は、ピーク間隔tiが第1基準値RV1以下であり、第2基準範囲から外れているボトム間隔Tiが第2基準値RV2を超えている場合に、第2基準値RV2を超えるボトム間隔Tiに基づいて算出される補正値を算出し、センサ信号SGの閾値th1を超えるピークの数に補正値を加えた数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Cランクとランク付けしている。また、制御部25は、ピーク間隔tiが第1基準値RV1を超えている場合であって、第1基準値RV1を超えているピーク間隔tiにおけるセンサ信号SGの信号レベルのボトムが閾値th0を超えている場合に、第1基準値RV1を超えるピーク間隔tiに基づいて算出される補正値を算出し、センサ信号SGの閾値th1を超えるピークの数に補正値を加えた数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Cランクとランク付けしている。さらに、制御部25は、第1基準値RV1を超えているピーク間隔tiにおけるセンサ信号SGの信号レベルのボトムが閾値th0以下となっている場合に、センサ信号SGの閾値th1を超えるピークの数を、カードカセット9に収容されたカード2の枚数として算出するとともに、Cランクとランク付けしている。そのため、本形態では、Cランクにランク付けされた場合の第1確からしさ(カード2の枚数の確からしさ)を高めることが可能になる。   In the present embodiment, the control unit 25 determines the second reference value when the peak interval ti is equal to or less than the first reference value RV1 and the bottom interval Ti that is out of the second reference range exceeds the second reference value RV2. A correction value calculated based on the bottom interval Ti exceeding RV2 is calculated, and the number obtained by adding the correction value to the number of peaks exceeding the threshold value th1 of the sensor signal SG is used as the number of cards 2 accommodated in the card cassette 9. While calculating, it ranks as C rank. Further, the controller 25 is a case where the peak interval ti exceeds the first reference value RV1, and the bottom of the signal level of the sensor signal SG at the peak interval ti exceeding the first reference value RV1 sets the threshold th0. If it exceeds, the correction value calculated based on the peak interval ti exceeding the first reference value RV1 is calculated, and the number obtained by adding the correction value to the number of peaks exceeding the threshold th1 of the sensor signal SG is obtained as a card cassette. 9 is calculated as the number of cards 2 accommodated in 9 and ranked as C rank. Further, the control unit 25 counts the number of peaks exceeding the threshold value th1 of the sensor signal SG when the bottom of the signal level of the sensor signal SG at the peak interval ti exceeding the first reference value RV1 is equal to or less than the threshold value th0. Is calculated as the number of cards 2 accommodated in the card cassette 9 and is ranked as C rank. Therefore, in this embodiment, it is possible to increase the first likelihood (the likelihood of the number of cards 2) when ranked in the C rank.

本形態では、制御部25は、センサ信号SGの信号レベルの、閾値th1を超えるピークの数が1個であり、かつ、総時間間隔Wが第3基準値RV3以下である場合に、カードカセット9に収容されたカード2の枚数を1枚と算出するとともに、Aランクと判定してAランクとランク付けしている。また、本形態では、制御部25は、センサ信号SGの信号レベルが閾値th0を超えない場合に、カードカセット9に収容されたカード2の枚数を0枚と算出するとともに、Aランクと判定してAランクとランク付けしている。そのため、本形態では、カードカセット9に収容されるカード2の枚数が1枚または0枚であっても、カードカセット9に収容されるカード2の枚数を適切に算出することが可能になるとともに、適切なランク付けを行うことが可能になる。   In the present embodiment, the control unit 25 uses the card cassette when the signal level of the sensor signal SG has one peak that exceeds the threshold th1 and the total time interval W is equal to or less than the third reference value RV3. 9 calculates the number of cards 2 accommodated as one and determines it as A rank and ranks it as A rank. In the present embodiment, the control unit 25 calculates the number of cards 2 stored in the card cassette 9 as 0 and determines the rank A when the signal level of the sensor signal SG does not exceed the threshold th0. And rank A. Therefore, in this embodiment, even when the number of cards 2 accommodated in the card cassette 9 is 1 or 0, the number of cards 2 accommodated in the card cassette 9 can be appropriately calculated. It becomes possible to perform an appropriate ranking.

(他の実施の形態)
上述した形態は、本発明の好適な形態の一例ではあるが、これに限定されるものではなく本発明の要旨を変更しない範囲において種々変形実施が可能である。
(Other embodiments)
The above-described embodiment is an example of a preferred embodiment of the present invention, but is not limited to this, and various modifications can be made without departing from the scope of the present invention.

上述した形態では、制御部25は、ピーク間隔tiの全てが第1基準範囲内にあり、ボトム間隔Tiの全てが第2基準範囲内にあり、かつ、平均間隔Waが第3基準範囲内にある場合に、Aランクとランク付けしている。この他にもたとえば、制御部25は、ピーク間隔tiの全てが第1基準範囲内にある場合に、Aランクとランク付けしても良い。この場合には、たとえば、制御部25は、ピーク間隔tiの少なくとも1つが第1基準範囲から外れるとともに第1基準範囲から外れているピーク間隔tiが第1基準値RV1以下である場合に、Bランクとランク付けし、ピーク間隔tiの少なくとも1つが第1基準範囲から外れるとともに第1基準範囲から外れているピーク間隔tiが第1基準値RV1を超えている場合に、Cランクとランク付けする。   In the embodiment described above, the control unit 25 includes all the peak intervals ti within the first reference range, all the bottom intervals Ti within the second reference range, and the average interval Wa within the third reference range. In some cases, it is ranked A rank. In addition to this, for example, the control unit 25 may rank the A rank when all of the peak intervals ti are within the first reference range. In this case, for example, the control unit 25 determines that when at least one of the peak intervals ti is out of the first reference range and the peak interval ti out of the first reference range is equal to or less than the first reference value RV1. Rank with rank, and rank C rank when at least one of the peak intervals ti is out of the first reference range and the peak interval ti out of the first reference range exceeds the first reference value RV1. .

また、制御部25は、ボトム間隔Tiの全てが第2基準範囲内にある場合に、Aランクとランク付けしても良い。この場合には、たとえば、制御部25は、ボトム間隔Tiの少なくとも1つが第2基準範囲から外れるとともに第2基準範囲から外れているボトム間隔Tiが第2基準値RV2以下である場合に、Bランクとランク付けし、ボトム間隔Tiの少なくとも1つが第2基準範囲から外れるとともに第2基準範囲から外れているボトム間隔Tiが第2基準値RV2を超えている場合に、Cランクとランク付けする。   Further, the control unit 25 may rank the A rank when all of the bottom intervals Ti are within the second reference range. In this case, for example, the control unit 25 determines that when at least one of the bottom intervals Ti is out of the second reference range and the bottom interval Ti out of the second reference range is equal to or less than the second reference value RV2. Rank with rank, and rank C rank when at least one of the bottom intervals Ti is out of the second reference range and the bottom interval Ti out of the second reference range exceeds the second reference value RV2. .

上述した形態では、制御部25は、AランクからDランクまでの4つのランクにランク分けしているが、制御部25は、3つのランクにランク分けをしても良いし、5つ以上のランクにランク分けをしても良い。たとえば、制御部25は、上述した形態においてDランクとランク付けされたものをCランクとランク付けすることで、AランクからCランクまでの3つのランクにランク分けをしても良い。また、第1基準値RV1、第2基準値RV2とは別の基準値を追加で設定するとともに、制御部25は、ピーク間隔ti、ボトム間隔Tiと、この基準値との比較結果に基づいて、5つ以上のランクにランク分けをしても良い。   In the above-described form, the control unit 25 ranks into four ranks from A rank to D rank, but the control unit 25 may rank into three ranks, or five or more ranks. You may rank into ranks. For example, the control unit 25 may rank three ranks from A rank to C rank by ranking what is ranked D rank in the above-described form as C rank. Further, a reference value different from the first reference value RV1 and the second reference value RV2 is additionally set, and the control unit 25 determines whether the peak interval ti and the bottom interval Ti are compared with the reference value. You may rank into five or more ranks.

上述した形態では、センサ12は、反射型の光学式センサであるが、センサ12は、透過型の光学式センサであっても良い。また、上述した形態では、カード状媒体2は、厚さが0.7〜0.8mm程度の矩形状の塩化ビニール製のカードであるが、カード状媒体2は、厚さが0.18〜0.36mm程度のPET(ポリエチレンテレフタレート)カードや、所定の厚さの紙カード等であっても良い。また、本発明が適用されるカード状媒体2は、カード以外の媒体であっても良い。   In the embodiment described above, the sensor 12 is a reflective optical sensor, but the sensor 12 may be a transmissive optical sensor. Moreover, in the form mentioned above, although the card-shaped medium 2 is a rectangular card made of vinyl chloride having a thickness of about 0.7 to 0.8 mm, the card-shaped medium 2 has a thickness of 0.18 to A PET (polyethylene terephthalate) card of about 0.36 mm, a paper card with a predetermined thickness, or the like may be used. The card-like medium 2 to which the present invention is applied may be a medium other than a card.

上述した形態では、ソフトウエアを用いたCPU28での処理によって、制御部25に入力されるセンサ信号SGに基づいて、カードカセット9に収容されたカード2の枚数が算出されるとともにランク付けが行われている。この他にもたとえば、制御部25に入力されるセンサ信号SGに基づいて、カードカセット9に収容されたカード2の枚数が算出されるとともにランク付けが行われるように、制御部25のハードウエアが構成されても良い。   In the above-described embodiment, the number of cards 2 stored in the card cassette 9 is calculated and ranked based on the sensor signal SG input to the control unit 25 by the processing in the CPU 28 using software. It has been broken. In addition to this, for example, the hardware of the control unit 25 is calculated so that the number of cards 2 stored in the card cassette 9 is calculated and ranked based on the sensor signal SG input to the control unit 25. May be configured.

1 カード計数装置(カード状媒体計数装置)
2 カード(カード状媒体)
3 カード発行装置(上位装置)
9 カードカセット(媒体収容部)
12 センサ
13 移動機構
25 制御部
30 上位制御部(上位装置の制御部)
SG センサ信号
th0 第3閾値、第4閾値
th1 第1閾値
th2 第2閾値
W 総時間間隔
1 Card counting device (card-like medium counting device)
2 cards (card-like media)
3 Card issuing device (host device)
9 Card cassette (medium container)
12 sensor 13 moving mechanism 25 control unit 30 host control unit (control unit of host device)
SG sensor signal th0 third threshold, fourth threshold th1 first threshold th2 second threshold W total time interval

Claims (12)

厚さ方向で重なるように収容されるカード状媒体の枚数を算出するカード状媒体計数装置であって、
前記カード状媒体が前記カード状媒体の厚さ方向で重なるように収容される媒体収容部と、前記媒体収容部に収容された前記カード状媒体の枚数を算出するためのセンサと、前記媒体収容部に収容された前記カード状媒体の端面に沿って前記カード状媒体の計数時に前記カード状媒体の厚さ方向へ前記センサを移動させる移動機構と、前記センサの出力信号であるセンサ信号が入力される制御部とを備え、
前記制御部は、
前記センサ信号に基づいて、前記媒体収容部に収容された前記カード状媒体の枚数を算出するとともに、
前記センサ信号に基づいて、算出された前記カード状媒体の枚数の確からしさである第1確からしさ、前記媒体収容部に収容された前記カード状媒体の種類および形状が正しいことの確からしさである第2確からしさ、および、前記媒体収容部に収容された前記カード状媒体が正しい状態で収容されていることの確からしさである第3確からしさが比較的高い第1ランクと、前記第1確からしさが前記第1ランクと同程度でかつ前記第2確からしさと前記第3確からしさとの少なくともいずれか一方が前記第1ランクよりも低い第2ランクと、前記第1確からしさが前記第1ランクよりも低くかつ前記第2確からしさと前記第3確からしさとの少なくともいずれか一方が前記第1ランクよりも低い第3ランクとの少なくとも3つのランクにランク分けをしてランク付けを行い、
算出された前記カード状媒体の枚数情報とランク付けされた前記ランクの情報であるランク情報とを、前記カード状媒体計数装置が搭載される上位装置の制御部へ送信することを特徴とするカード状媒体計数装置。
A card-like medium counting device for calculating the number of card-like media accommodated so as to overlap in the thickness direction,
A medium accommodating portion for accommodating the card-like medium so as to overlap in a thickness direction of the card-like medium; a sensor for calculating the number of the card-like medium accommodated in the medium accommodating portion; A moving mechanism for moving the sensor in the thickness direction of the card-like medium when counting the card-like medium along the end surface of the card-like medium accommodated in the unit, and a sensor signal that is an output signal of the sensor is input And a control unit,
The controller is
Based on the sensor signal, the number of the card-like medium stored in the medium storage unit is calculated,
Based on the sensor signal, there is a first certainty that is the certainty of the calculated number of card-like media, and a certainty that the type and shape of the card-like medium accommodated in the medium accommodating portion are correct. A first rank having a relatively high third probability and a third probability that is a certainty that the card-like medium accommodated in the medium accommodating portion is accommodated in a correct state; and the first certainty A second rank that is similar to the first rank and at least one of the second likelihood and the third likelihood is lower than the first rank; and the first likelihood is the first rank At least three ranks that are lower than the rank and at least one of the second likelihood and the third likelihood is lower than the first rank are classified into at least three ranks. It performs a ranking with the click divided,
The card characterized by transmitting the calculated number information of the card-like medium and rank information which is the ranked rank information to a control unit of a host device on which the card-like medium counting device is mounted. Medium counting device.
前記制御部は、前記センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合に、前記センサ信号の信号レベルの、前記第1閾値を超える隣り合うピークの時間間隔であるピーク間隔を算出し、計数対象となる前記カード状媒体の厚さに基づいて予め設定される基準値と前記ピーク間隔との比較結果に基づいて、前記媒体収容部に収容された前記カード状媒体の枚数を算出するとともに、少なくとも3つの前記ランクにランク付けすることを特徴とする請求項1記載のカード状媒体計数装置。   The control unit, when a plurality of peaks of the signal level of the sensor signal exceeds a predetermined first threshold, a peak that is a time interval between adjacent peaks of the signal level of the sensor signal exceeding the first threshold An interval is calculated, and based on a comparison result between a reference value set in advance based on the thickness of the card-like medium to be counted and the peak interval, the card-like medium accommodated in the medium accommodating unit 2. The card-like medium counting device according to claim 1, wherein the number of sheets is calculated, and at least three ranks are ranked. 前記制御部は、前記センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合であって、かつ、前記センサ信号の信号レベルの複数個のボトムが所定の第2閾値以下となる場合に、前記センサ信号の信号レベルの、前記第2閾値以下の隣り合うボトムの時間間隔であるボトム間隔を算出し、計数対象となる前記カード状媒体の厚さに基づいて予め設定される基準値と前記ボトム間隔との比較結果に基づいて、前記媒体収容部に収容された前記カード状媒体の枚数を算出するとともに、少なくとも3つの前記ランクにランク付けすることを特徴とする請求項1または2記載のカード状媒体計数装置。 The control unit is a case where a plurality of peaks of the signal level of the sensor signal exceed a predetermined first threshold value, and a plurality of bottoms of the signal level of the sensor signal is equal to or less than a predetermined second threshold value. In this case, the bottom interval, which is the time interval between adjacent bottoms below the second threshold, of the signal level of the sensor signal is calculated, and preset based on the thickness of the card-like medium to be counted. 2. The number of the card-like media stored in the medium storage unit is calculated based on a comparison result between a reference value and the bottom interval, and at least three ranks are ranked. Or the card-like medium counting device according to 2; 前記制御部は、
前記センサ信号の信号レベルの複数個のピークが所定の第1閾値を超える場合に、前記センサ信号の信号レベルの、前記第1閾値を超える隣り合うピークの時間間隔であるピーク間隔を算出し、
前記センサ信号の信号レベルの複数個のピークが前記第1閾値を超える場合であって、かつ、前記センサ信号の信号レベルの複数個のボトムが所定の第2閾値以下となる場合に、前記センサ信号の信号レベルの、前記第2閾値以下の隣り合うボトムの時間間隔であるボトム間隔を算出し、
前記センサによる前記カード状媒体の検出時に前記センサ信号の信号レベルが前記第1閾値および前記第2閾値よりも小さい所定の第3閾値を超えてから前記第3閾値以下となるまでの時間間隔である総時間間隔を、前記センサ信号の前記第1閾値を超えるピークの数で割った数を平均間隔とすると、
前記ピーク間隔の全てが所定の第1基準範囲内にあり、前記ボトム間隔の全てが所定の第2基準範囲内にあり、かつ、前記平均間隔が所定の第3基準範囲内にある場合に、前記センサ信号の前記第1閾値を超えるピークの数を、前記媒体収容部に収容された前記カード状媒体の枚数として算出するとともに、前記第1ランクとランク付けすることを特徴とする請求項1から3のいずれかに記載のカード状媒体計数装置。
The controller is
When a plurality of peaks of the signal level of the sensor signal exceeds a predetermined first threshold, a peak interval that is a time interval between adjacent peaks exceeding the first threshold of the signal level of the sensor signal is calculated,
The sensor when the plurality of peaks of the signal level of the sensor signal exceed the first threshold and the plurality of bottoms of the signal level of the sensor signal are equal to or lower than a predetermined second threshold. Calculating a bottom interval that is a time interval between adjacent bottoms of the signal level of the signal that is equal to or less than the second threshold;
At a time interval from when the signal level of the sensor signal exceeds a predetermined third threshold value smaller than the first threshold value and the second threshold value to below the third threshold value when the card-like medium is detected by the sensor. When the total interval is divided by the number of peaks exceeding the first threshold of the sensor signal as an average interval,
When all of the peak intervals are within a predetermined first reference range, all of the bottom intervals are within a predetermined second reference range, and the average interval is within a predetermined third reference range; 2. The number of peaks of the sensor signal exceeding the first threshold value is calculated as the number of the card-like media stored in the medium storage unit, and ranked with the first rank. 4. The card-like medium counting device according to any one of items 1 to 3.
前記制御部は、前記ピーク間隔の少なくとも1つが前記第1基準範囲から外れるとともに前記第1基準範囲から外れる前記ピーク間隔が所定の第1基準値以下である場合、前記ボトム間隔の少なくとも1つが前記第2基準範囲から外れるとともに前記第2基準範囲から外れる前記ボトム間隔が所定の第2基準値以下である場合、および、前記平均間隔が前記第3基準範囲内から外れている場合の少なくともいずれか1つの場合に、前記センサ信号の前記第1閾値を超えるピークの数を前記カード状媒体の枚数として算出するとともに、前記第2ランクとランク付けすることを特徴とする請求項4記載のカード状媒体計数装置。   The control unit is configured such that when at least one of the peak intervals is out of the first reference range and the peak interval out of the first reference range is equal to or less than a predetermined first reference value, at least one of the bottom intervals is At least one of the case where the bottom interval deviating from the second reference range and deviating from the second reference range is equal to or less than a predetermined second reference value, and the average interval deviating from the third reference range. 5. The card form according to claim 4, wherein, in one case, the number of peaks exceeding the first threshold of the sensor signal is calculated as the number of the card-like media and ranked with the second rank. Medium counting device. 前記制御部は、前記ピーク間隔の少なくとも1つが前記第1基準範囲から外れるとともに前記第1基準範囲から外れる前記ピーク間隔が前記第1基準値を超える場合、および、前記ボトム間隔の少なくとも1つが前記第2基準範囲から外れるとともに前記第2基準範囲から外れる前記ボトム間隔が前記第2基準値を超える場合の少なくともいずれか1つの場合に、前記第3ランクとランク付けすることを特徴とする請求項5記載のカード媒体計数装置。   The control unit is configured such that at least one of the peak intervals is out of the first reference range and the peak interval out of the first reference range exceeds the first reference value, and at least one of the bottom intervals is the The third rank is ranked in at least any one of cases where the bottom interval outside the second reference range and outside the second reference range exceeds the second reference value. 5. The card medium counting device according to 5. 前記制御部は、
前記ピーク間隔が前記第1基準値を超える場合であってかつこのピーク間隔における前記センサ信号の信号レベルのボトムが前記第1閾値および前記第2閾値よりも小さい所定の第4閾値を超える場合に、前記第1基準値を超える前記ピーク間隔に基づいて算出される補正値を前記センサ信号の前記第1閾値を超えるピークの数に加えた値を前記カード状媒体の枚数として算出し、
前記ピーク間隔が前記第1基準値以下であってかつ前記ボトム間隔が前記第2基準値を超える場合に、前記第2基準値を超える前記ボトム間隔に基づいて算出される補正値を前記センサ信号の前記第1閾値を超えるピークの数に加えた値を前記カード状媒体の枚数として算出し、
前記ピーク間隔が前記第1基準値を超える場合であってかつこのピーク間隔における前記センサ信号の信号レベルのボトムが前記第4閾値以下となる場合に、前記センサ信号の前記第1閾値を超えるピークの数を前記カード状媒体の枚数として算出することを特徴とする請求項6記載のカード状媒体計数装置。
The controller is
When the peak interval exceeds the first reference value and the bottom of the signal level of the sensor signal at the peak interval exceeds a predetermined fourth threshold value smaller than the first threshold value and the second threshold value A value obtained by adding a correction value calculated based on the peak interval exceeding the first reference value to the number of peaks exceeding the first threshold of the sensor signal is calculated as the number of the card-like media;
When the peak interval is equal to or less than the first reference value and the bottom interval exceeds the second reference value, a correction value calculated based on the bottom interval exceeding the second reference value is used as the sensor signal. A value added to the number of peaks exceeding the first threshold is calculated as the number of the card-like media,
The peak exceeding the first threshold of the sensor signal when the peak interval exceeds the first reference value and the bottom of the signal level of the sensor signal at the peak interval is not more than the fourth threshold. The card-like medium counting device according to claim 6, wherein the number is calculated as the number of the card-like media.
前記制御部は、前記センサ信号の前記第1閾値を超えるピークが1個であり、かつ、前記総時間間隔が所定の第3基準値以下である場合に、前記媒体収容部に収容される前記カード状媒体の枚数を1枚と算出するとともに、前記第1ランクとランク付けすることを特徴とする請求項4から7のいずれかに記載のカード状媒体計数装置。   The control unit is accommodated in the medium accommodation unit when the sensor signal has one peak exceeding the first threshold and the total time interval is equal to or less than a predetermined third reference value. The card-like medium counting device according to any one of claims 4 to 7, wherein the number of card-like media is calculated as one and ranked with the first rank. 前記制御部は、前記センサによる前記カード状媒体の検出時に前記センサ信号の信号レベルが前記第3閾値を超えない場合に、前記媒体収容部に収容される前記カード状媒体の枚数を0枚と算出するとともに、前記第1ランクとランク付けすることを特徴とする請求項4から8のいずれかに記載のカード状媒体計数装置。   When the signal level of the sensor signal does not exceed the third threshold when the card-like medium is detected by the sensor, the control unit sets the number of card-like media to be accommodated in the medium accommodation unit to zero. The card-like medium counting device according to claim 4, wherein the card-like medium counting device according to claim 4, wherein the card-like medium is calculated and ranked with the first rank. 前記制御部は、
前記センサ信号の信号レベルが前記第1閾値よりも小さい所定の第3閾値を超える場合であって、かつ、前記センサによる前記カード状媒体の検出時における前記センサ信号の信号レベルのピークの全てが前記第1閾値以下となる場合、あるいは、
前記センサ信号の信号レベルが前記第1閾値を超える回数が1回であり、かつ、前記センサによる前記カード状媒体の検出時に前記センサ信号の信号レベルが前記第3閾値を超えてから前記第3閾値以下となるまでの時間間隔である総時間間隔が所定の第3基準値を超える場合に、
前記第1確からしさと前記第2確からしさと前記第3確からしさとが前記第3ランクよりも低い第4ランクとランク付けするとともに、前記総時間間隔を、計数対象となる前記カード状媒体の厚さに基づいて予め設定される基準値で割った値を前記カード状媒体の枚数として算出することを特徴とする請求項2から9のいずれかに記載のカード状媒体計数装置。
The controller is
All of the signal level peaks of the sensor signal when the signal level of the sensor signal exceeds a predetermined third threshold value smaller than the first threshold value and when the card-like medium is detected by the sensor. If the first threshold value or less, or
The number of times the signal level of the sensor signal exceeds the first threshold is one, and the third time after the signal level of the sensor signal exceeds the third threshold when the sensor detects the card-like medium. When the total time interval, which is the time interval until the threshold value is not exceeded, exceeds a predetermined third reference value,
The first probability, the second probability, and the third probability are ranked as a fourth rank lower than the third rank, and the total time interval of the card-like medium to be counted is determined. 10. The card-like medium counting device according to claim 2, wherein a value obtained by dividing by a reference value set in advance based on the thickness is calculated as the number of the card-like media.
前記センサは、発光部と前記発光部からの光を受光する受光部とを備える光学式のセンサであることを特徴とする請求項1から10のいずれかに記載のカード状媒体計数装置。   The card-like medium counting device according to claim 1, wherein the sensor is an optical sensor including a light emitting unit and a light receiving unit that receives light from the light emitting unit. カード状媒体が前記カード状媒体の厚さ方向で重なるように収容される媒体収容部と、前記媒体収容部に収容された前記カード状媒体の枚数を算出するためのセンサと、前記媒体収容部に収容された前記カード状媒体の端面に沿って前記カード状媒体の計数時に前記カード状媒体の厚さ方向へ前記センサを移動させる移動機構とを備えるカード状媒体計数装置の制御方法であって、
前記センサ信号に基づいて、前記媒体収容部に収容された前記カード状媒体の枚数を算出するとともに、
前記センサ信号に基づいて、算出された前記カード状媒体の枚数の確からしさである第1確からしさ、前記媒体収容部に収容された前記カード状媒体の種類および形状が正しいことの確からしさである第2確からしさ、および、前記媒体収容部に収容された前記カード状媒体が正しい状態で収容されていることの確からしさである第3確からしさが比較的高い第1ランクと、前記第1確からしさが前記第1ランクと同程度でかつ前記第2確からしさと前記第3確からしさとの少なくともいずれか一方が前記第1ランクよりも低い第2ランクと、前記第1確からしさが前記第1ランクよりも低くかつ前記第2確からしさと前記第3確からしさとの少なくともいずれか一方が前記第1ランクよりも低い第3ランクとの少なくとも3つのランクにランク付けを行い、
算出された前記カード状媒体の枚数情報とランク付けされた前記ランクの情報であるランク情報とを、前記カード状媒体計数装置が搭載される上位装置の制御部へ送信することを特徴とするカード状媒体計数装置の制御方法。
A medium accommodating portion that accommodates card-like media so as to overlap in the thickness direction of the card-like medium, a sensor for calculating the number of card-like media accommodated in the medium accommodating portion, and the medium accommodating portion And a moving mechanism for moving the sensor in the thickness direction of the card-like medium when counting the card-like medium along the end surface of the card-like medium accommodated in the card-like medium. ,
Based on the sensor signal, the number of the card-like medium stored in the medium storage unit is calculated,
Based on the sensor signal, there is a first certainty that is the certainty of the calculated number of card-like media, and a certainty that the type and shape of the card-like medium accommodated in the medium accommodating portion are correct. A first rank having a relatively high third probability and a third probability that is a certainty that the card-like medium accommodated in the medium accommodating portion is accommodated in a correct state; and the first certainty A second rank that is similar to the first rank and at least one of the second likelihood and the third likelihood is lower than the first rank; and the first likelihood is the first rank At least three ranks that are lower than the rank and at least one of the second likelihood and the third likelihood is lower than the first rank are classified into at least three ranks. Performed click with,
The card characterized by transmitting the calculated number information of the card-like medium and rank information which is the ranked rank information to a control unit of a host device on which the card-like medium counting device is mounted. Control method for a state-medium counting device.
JP2015135484A 2015-07-06 2015-07-06 Card-like medium counting device and control method for card-like medium counting device Active JP6576714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015135484A JP6576714B2 (en) 2015-07-06 2015-07-06 Card-like medium counting device and control method for card-like medium counting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015135484A JP6576714B2 (en) 2015-07-06 2015-07-06 Card-like medium counting device and control method for card-like medium counting device

Publications (2)

Publication Number Publication Date
JP2017016573A JP2017016573A (en) 2017-01-19
JP6576714B2 true JP6576714B2 (en) 2019-09-18

Family

ID=57829213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015135484A Active JP6576714B2 (en) 2015-07-06 2015-07-06 Card-like medium counting device and control method for card-like medium counting device

Country Status (1)

Country Link
JP (1) JP6576714B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018026083A (en) * 2016-08-08 2018-02-15 日本電産サンキョー株式会社 Number of card-like media counting method and number of card-like media counting device
WO2018030117A1 (en) * 2016-08-08 2018-02-15 日本電産サンキョー株式会社 Card-shaped medium number counting method and card-shaped medium number counting device
JP6834542B2 (en) * 2017-02-01 2021-02-24 セイコーエプソン株式会社 Image display device and its adjustment method
JP7017912B2 (en) * 2017-12-04 2022-02-09 日本電産サンキョー株式会社 Card-shaped medium counting device and card-shaped medium counting method
JP7310572B2 (en) * 2019-11-29 2023-07-19 日本電気株式会社 Counting device, control method, and program

Also Published As

Publication number Publication date
JP2017016573A (en) 2017-01-19

Similar Documents

Publication Publication Date Title
JP6576714B2 (en) Card-like medium counting device and control method for card-like medium counting device
US9864891B2 (en) Automatic print speed control for indicia printer
JP6472649B2 (en) Card reader
WO2015129447A1 (en) Card feeding mechanism, and card issuing device
JP2009271998A (en) Disk processor and its control method
US20160031661A1 (en) Medium stacker and medium feed device
CN110536799B (en) Printing apparatus and method for laterally translating output tray in printing apparatus
CN109214473B (en) Card issuing device
JP6003163B2 (en) RECORDING DEVICE, RECORDING DEVICE CONTROL METHOD, AND PROGRAM
JP6667303B2 (en) Card storage device
US10482295B2 (en) Card counting systems and methods for same
US9527324B2 (en) Control device, control method, and storage medium
US11260673B2 (en) Printing apparatus and printing method
CN108369654B (en) Card feeding device
JP6683538B2 (en) Card processing device and automatic transaction device
US20200039240A1 (en) Printing apparatus and printing method
US20200247637A1 (en) Card stacker
JP2008105832A (en) Medium processing device
US20210039915A1 (en) Execution of print commands
JP6212415B2 (en) Magnetic information reading apparatus, magnetic information reading method, and automatic transaction apparatus
CN109697477A (en) Card recycling box and card processing unit
JP7334400B2 (en) recording device
JP5033490B2 (en) Trading device
JP6704325B2 (en) Card-shaped medium number counting method and card-shaped medium number counting device
WO2018030117A1 (en) Card-shaped medium number counting method and card-shaped medium number counting device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190411

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190419

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190806

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190821

R150 Certificate of patent or registration of utility model

Ref document number: 6576714

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150