JPH0836064A - Optical sensor controlling method - Google Patents

Optical sensor controlling method

Info

Publication number
JPH0836064A
JPH0836064A JP16927994A JP16927994A JPH0836064A JP H0836064 A JPH0836064 A JP H0836064A JP 16927994 A JP16927994 A JP 16927994A JP 16927994 A JP16927994 A JP 16927994A JP H0836064 A JPH0836064 A JP H0836064A
Authority
JP
Japan
Prior art keywords
sensor
output value
margin
value
slice level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP16927994A
Other languages
Japanese (ja)
Other versions
JP3166117B2 (en
Inventor
Toshihiko Tazaki
俊彦 田▲崎▼
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP16927994A priority Critical patent/JP3166117B2/en
Priority to KR1019950021283A priority patent/KR0149574B1/en
Priority to CN 95109625 priority patent/CN1065632C/en
Publication of JPH0836064A publication Critical patent/JPH0836064A/en
Application granted granted Critical
Publication of JP3166117B2 publication Critical patent/JP3166117B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To detect only a stained sensor and prevent an impediment of the sensor due to the stains by cleaning the sensor. CONSTITUTION:Based on the fact that the sensor output becomes larger when a sensor is stained more, it is judged that there is no margin for stains in the case where the sensor output value under a condition of no obstacle is compared with a previously stored stain margin check value and the output value is found higher than the stain margin check value, and the result is displayed on a displaying apparatus. Meanwhile, in the case where the output value is found smaller than the margin check value, it is judged that there is a margin. In this way, only a detected sensor is cleaned. Before the comparison of the output value with the stain margin check value, the current of an electroluminescent element is made to be a weak current in order to make the alteration of the sensor output value large.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、紙葉類を検出する光学
センサの制御方法に関し、特に塵埃の付着により誤検出
のおそれのある光学センサを検出するための汚れマージ
ンチェック制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method of an optical sensor for detecting paper sheets, and more particularly to a stain margin check control method for detecting an optical sensor which may be erroneously detected due to dust adhesion.

【0002】[0002]

【従来の技術】従来より、券売機,現金取引装置,紙葉
類検知装置等には、乗車券、入場券、紙幣等の有無を検
出する光学センサが用いられており、光学センサで読み
取った電圧と基準電圧とを比較して、読み取り電圧が基
準電圧より高いときには紙等が有りと判定し、低いとき
には無しと判定していた。しかし、光学センサは、紙の
通過時に空気により運ばれる粒子、繊維、汚染物等によ
り表面が汚染されるため、機能低下を招き、その結果、
センサの照射レベルを減少させる。従って、理想的に
は、時々清浄作業等の保守を行って機能を維持すること
が必要であるが、人手を要するために高価となり、また
機能をその間停止させる必要がある。この対策として、
例えば特開昭62−65188号公報に記載されている
方法では、センサの感度を一定レベルで切り替えられる
ようにしておき、使用されてから一定期間経過する毎に
切り替えていた。また、例えば、特開平1−22338
6号公報に記載された紙葉類検知装置では、紙葉類が無
いにもかかわらず、紙葉類有りと判定されたときには、
光学センサ(発光素子と受光素子)が塵埃により汚染さ
れているため、発光量に余裕がないと判断し、自動調整
回路で発光レベルを2ランク上げて、その値を記憶し、
処理を行う。このようにして、常に発光量に余力をもた
せて、検知を行っていた。また、例えば、特開昭63−
47691号公報に記載されたセンサ検出装置では、マ
イクロプロセッサにより光学センサの出力をディジタル
化して読み取り、記憶部に予め記憶されている判定レベ
ルと検出されたデータとを比較して、新しい判定レベル
を作成し、この新しい判定レベルを次回の判定レベルと
して記憶部に記憶する方法が記載されている。
2. Description of the Related Art Conventionally, an optical sensor for detecting the presence or absence of a ticket, an admission ticket, a bill, etc. has been used in a ticket vending machine, a cash transaction device, a paper sheet detection device, etc., and read by the optical sensor. The voltage and the reference voltage are compared, and it is determined that the paper or the like is present when the reading voltage is higher than the reference voltage, and it is determined that the paper is not present when the reading voltage is lower than the reference voltage. However, since the surface of the optical sensor is contaminated by particles, fibers, contaminants, etc., which are carried by the air when passing through the paper, the function is deteriorated, and as a result,
Reduce the illumination level of the sensor. Therefore, ideally, it is necessary to perform maintenance such as cleaning from time to time to maintain the function, but it is expensive because it requires manpower, and it is necessary to stop the function during that time. As a measure against this,
For example, in the method disclosed in Japanese Patent Laid-Open No. 62-65188, the sensitivity of the sensor is switched at a constant level, and the sensor sensitivity is switched every time a fixed period of time elapses. In addition, for example, Japanese Patent Laid-Open No. 1-22338
In the paper sheet detection device described in Japanese Patent Publication No. 6, when it is determined that there is a paper sheet even though there is no paper sheet,
Since the optical sensor (light emitting element and light receiving element) is contaminated with dust, it is judged that there is no margin in the light emission amount, the light emission level is increased by 2 ranks by the automatic adjustment circuit, and the value is stored,
Perform processing. In this way, the amount of light emission is always provided with a surplus power for detection. In addition, for example, Japanese Patent Laid-Open No. 63-
In the sensor detection device described in Japanese Patent No. 47691, the output of the optical sensor is digitized and read by the microprocessor, the determination level previously stored in the storage unit is compared with the detected data, and the new determination level is determined. It describes a method of creating and storing this new determination level in the storage unit as the next determination level.

【0003】[0003]

【発明が解決しようとする課題】前述のように、従来に
おいては、光学センサの発光量を変える方法、あるい
は、個々の光学センサの旧判定レベルを記憶しておき、
光センサの出力と比較することにより新しい判定レベル
を作成して記憶する方法、あるいは光センサの出力が一
定になるように受光側の増幅器のゲインを調整する方
法、あるいは発光光量とスライスレベルの両方を切り替
えて、汚れをチェックすることにより、発光光量を切り
替えて運用する方法等が行われていた。しかしながら、
これらの方法では、複数個のセンサのうちある少数のセ
ンサのみに塵埃が付着した場合、どのセンサを清掃すれ
ばよいかが不明であり、その結果、全てのセンサを清掃
することになるので、新品のセンサに対しても無駄な作
業をする必要があり、手数がかかってしまう。また、特
定のセンサのみを清掃するだけで再び新品同様のセンサ
になるにもかかわらず、判定レベルを変更したり、発光
光量を切り替える等の制御を行う必要がある。本発明の
目的は、これら従来の課題を解決し、マージンチェック
により汚れが付着しているセンサのみを検出して、その
センサを清掃することにより、汚れによるセンサ障害を
防止することができる光学センサ制御方法を提供するこ
とにある。
As described above, in the prior art, the method of changing the light emission amount of the optical sensor or the old determination level of each optical sensor is stored in advance.
A method of creating and storing a new judgment level by comparing with the output of the optical sensor, or a method of adjusting the gain of the amplifier on the light receiving side so that the output of the optical sensor is constant, or both the amount of emitted light and the slice level. A method of operating by changing the amount of emitted light by switching the switch and checking the dirt has been performed. However,
In these methods, if dust adheres to only a small number of the sensors, it is unclear which sensor should be cleaned, and as a result, all the sensors should be cleaned. It is necessary to perform unnecessary work for the sensor of, and this is troublesome. In addition, it is necessary to perform control such as changing the determination level or switching the amount of emitted light, even if only a specific sensor is cleaned to obtain a sensor similar to a new one. An object of the present invention is to solve these conventional problems, detect only a sensor with dirt attached by a margin check, and clean the sensor to prevent a sensor failure due to dirt. It is to provide a control method.

【0004】[0004]

【課題を解決するための手段】上記目的を解決するため
に、本発明の光学センサ制御方法は、(i)発光素子の
発光動作を発光電流制御素子により制御し、制御された
該発光素子に対応する受光素子の出力値を検出し、該発
光素子と受光素子間の遮蔽物の有無を判定するために、
予めスライスレベルを設定しておき、該受光素子の出力
値と上記スライスレベルを比較して遮蔽物の有無を判定
する光学センサにおいて、各光学センサの汚れマージン
チェック値を記憶部に記憶しておき、上記受光素子の出
力値と上記汚れマージンチェック値とを比較して、汚れ
に対するマージンを判定することを特徴としている。ま
た、(ii)前記発光素子に流れる電流を減少させ、減少
させた時点の受光素子の出力値と上記汚れマージンチェ
ック値とを比較することも特徴としている。
In order to solve the above-mentioned object, an optical sensor control method of the present invention comprises: (i) controlling a light emitting operation of a light emitting element by a light emitting current control element, and controlling the light emitting element. In order to detect the output value of the corresponding light receiving element and determine the presence or absence of a shield between the light emitting element and the light receiving element,
The slice level is set in advance, and in the optical sensor that determines the presence or absence of a shield by comparing the output value of the light receiving element with the slice level, the dirt margin check value of each optical sensor is stored in the storage unit. The output value of the light receiving element is compared with the stain margin check value to determine the margin for stain. Further, (ii) the current flowing through the light emitting element is reduced, and the output value of the light receiving element at the time of the reduction is compared with the stain margin check value.

【0005】[0005]

【作用】本発明においては、発光電流切り替え処理によ
り複数個の発光素子を逐次切り替えて発光させ、受光出
力切り替え部によって発光させたセンサの出力値を読み
取ることにより、複数個のセンサ制御を行う。そして、
“1”,“0”判定はROMに格納されているスライス
レベルを参照することにより、CPUがこれを実行す
る。“0”の判定、つまり紙幣が無い状態と判定された
場合に、発光素子に流れる電流を弱電流状態にしてその
出力値と予め記憶されているマージンチェック値とを比
較し、出力値がマージンチェック値より大きいときには
マージン無し、小さいときにはマージン有りと判定す
る。このようにして、複数のセンサを順次チェックして
いく。このようにして、本発明では、汚れの付着による
誤検出を防止することができ、またマージンチェックに
より汚れの付着したセンサを検出して、それを清掃する
ことにより汚れによるセンサ障害を防止することができ
る。
In the present invention, a plurality of light emitting elements are sequentially switched by the light emission current switching process to emit light, and a plurality of sensor controls are performed by reading the output value of the sensor emitted by the light receiving output switching section. And
The "1" and "0" judgments are performed by the CPU by referring to the slice level stored in the ROM. When it is determined to be “0”, that is, when it is determined that there is no banknote, the current flowing through the light emitting element is set to a weak current state, and the output value is compared with the margin check value stored in advance. If it is larger than the check value, it is judged that there is no margin, and if it is smaller, it is judged that there is a margin. In this way, the plurality of sensors are sequentially checked. In this way, according to the present invention, it is possible to prevent erroneous detection due to adhesion of dirt, and to detect a sensor with dirt by margin check and clean it to prevent sensor failure due to dirt. You can

【0006】[0006]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明が適用される光学センサ制御
部の構成図である。図1において、センサS1〜センサ
Snは、それぞれ発光ダイオードLED1〜LEDnと
フォトトランジスタPT1〜PTnの各対から構成され
る。センサS1〜Snの発光ダイオ−ドLED1〜LE
Dnは、CPU1が出力ポ−ト7を介して出力する発光
電流切り替え用のLED1ON〜LEDnON信号によ
り制御される。LED1ON信号によりLED駆動トラ
ンジスタTR1をONすることにより、発光電流IF1
が流れて発光ダイオ−ドLED1が発光する。また、C
PU1が出力ポ−ト7を介して出力するVLED切換信
号により、発光電流の量を切り換えることができる。V
LEDトランジスタTr0がONの時には+15Vより
強電流が流れ、トランジスタTr0がOFFの時には+
5Vより弱電流が流れる。センサS1〜センサSnの受
光素子であるフォトトランジスタPT1〜PTnのコレ
クタはそれぞれアナログマルチプレクサ6に接続されて
おり、CPU1が出力ポ−ト7を介して出力するセンサ
出力セレクト信号により選択されたセンサの出力が、A
/Dコンバ−タ5でデジタル値に変換されCPU1に入
力される。センサS1〜センサSnの順序で発光ダイオ
−ドLED1〜LEDnを発光させ、発光させたセンサ
をアナログマルチプレクサ6で選択することにより、順
次、各センサの出力を読み取る。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a configuration diagram of an optical sensor control unit to which the present invention is applied. In FIG. 1, the sensors S1 to Sn are composed of light emitting diodes LED1 to LEDn and phototransistors PT1 to PTn, respectively. Light emitting diodes LED1 to LE of the sensors S1 to Sn
Dn is controlled by the LED1ON to LEDnON signals for switching the emission current, which the CPU 1 outputs via the output port 7. By turning on the LED drive transistor TR1 by the LED1 ON signal, the light emission current IF1
And the light emitting diode LED1 emits light. Also, C
The amount of light emission current can be switched by the VLED switching signal output from PU1 via the output port 7. V
When the LED transistor Tr0 is ON, a stronger current than + 15V flows, and when the transistor Tr0 is OFF +
A weak current flows from 5V. The collectors of the phototransistors PT1 to PTn, which are the light receiving elements of the sensors S1 to Sn, are connected to the analog multiplexer 6, respectively, and the sensors selected by the sensor output select signal output from the CPU 1 via the output port 7 are selected. Output is A
It is converted into a digital value by the / D converter 5 and input to the CPU 1. The light emitting diodes LED1 to LEDn are caused to emit light in the order of the sensors S1 to Sn, and the sensors that have emitted light are selected by the analog multiplexer 6, whereby the output of each sensor is sequentially read.

【0007】図6、図7は、それぞれ図1における一般
の紙幣有無の判定処理フローチャート、および図1のS
RAMに格納されたスライスレベル記憶エリアの内容を
示す図である。図1において、先ず、VLEDトランジ
スタTr0をONして、強電流状態にしておく(ステッ
プ201)。次に、センサS1を点灯させ(ステップ2
02)、センサS1の出力値を読み取る(ステップ20
3)。読み取った出力値とSRAM3のスライスレベル
記憶エリアに記憶されているS1スライスレベルとを比
較し(ステップ204)、出力値がスライスレベルより
大きい場合は紙幣有りと判定し(ステップ205,20
6)、出力値がスライスレベルより小さい場合は紙幣無
しと判定する(ステップ207)。判定が終了すると、
センサS1を消灯する(ステップ208)。以下同様
に、センサS2、S3・・・の順に紙幣有無の判定を行
っていく(ステップ209・・210)。なお、図6
は、通常の運用時の紙幣有無判定処理フローであって、
多数のセンサを時分割で有無判定処理を行っている。な
お、図7に示すように、SRAM3のスライスレベル記
憶エリアには、発光素子と受光素子の間に遮蔽物がない
状態で受光素子の出力値を測定して、それに応じて更新
したスライスレベルを格納する。S1スライスレベルは
センサS1の最新スライスレベルを意味する。S1から
Snまでのスライスレベルが格納される。
FIG. 6 and FIG. 7 are flowcharts of the general processing for determining the presence or absence of banknotes in FIG. 1 and S in FIG.
It is a figure which shows the content of the slice level storage area stored in RAM. In FIG. 1, first, the VLED transistor Tr0 is turned on and kept in a strong current state (step 201). Next, the sensor S1 is turned on (step 2
02), the output value of the sensor S1 is read (step 20).
3). The read output value is compared with the S1 slice level stored in the slice level storage area of the SRAM 3 (step 204). If the output value is larger than the slice level, it is determined that there is a bill (steps 205, 20).
6) If the output value is smaller than the slice level, it is determined that there is no bill (step 207). When the judgment is completed,
The sensor S1 is turned off (step 208). Similarly, the presence / absence of banknotes is determined in the order of the sensors S2, S3, ... (Steps 209 ... 210). Note that FIG.
Is a bill presence / absence determination processing flow during normal operation,
Presence / absence determination processing is performed on a large number of sensors in a time division manner. As shown in FIG. 7, in the slice level storage area of the SRAM 3, the output value of the light receiving element is measured in the state where there is no shield between the light emitting element and the light receiving element, and the slice level updated accordingly. Store. The S1 slice level means the latest slice level of the sensor S1. Slice levels from S1 to Sn are stored.

【0008】図4はスライスレベル更新テーブルの内容
を示す図であり、図5はセンサ出力波形を示す図であ
る。発光ダイオ−ドLED1とフォトトランジスタPT
1の間に遮蔽物が無い時で、かつ汚れがない時には、約
0Vの出力が得られる(図5(b)参照)。遮蔽物が完
全に光を遮断する物質であれば、遮蔽状態でセンサ出力
は約5Vまで変化する。ところが、紙幣はある程度光を
透過するため、遮蔽状態のでセンサ出力の変化量は少な
くなり、紙幣有無を検出するためにはスライスレベルを
低い値に設定しておく必要がある。ところが、センサに
汚れが付着してくると、遮蔽物が無い時でもセンサ出力
が高くなり、スライスレベルを超えると紙幣が無いにも
かかわらず紙幣有りと判定してしまう。そこで、遮蔽物
が無い状態でのセンサ出力値によってスライスレベルを
更新することにより、汚れの付着による誤検出を防止し
ていする。
FIG. 4 is a diagram showing the contents of the slice level update table, and FIG. 5 is a diagram showing the sensor output waveform. Light emitting diode LED1 and phototransistor PT
When there is no shield between 1 and when there is no stain, an output of about 0 V is obtained (see FIG. 5 (b)). If the shield is a substance that completely blocks light, the sensor output changes to about 5 V in the shielded state. However, since the banknotes transmit light to some extent, the amount of change in the sensor output is small in the shielded state, and it is necessary to set the slice level to a low value in order to detect the presence or absence of the banknotes. However, if dirt is attached to the sensor, the sensor output becomes high even when there is no shield, and if the slice level is exceeded, it is determined that there is a bill even though there is no bill. Therefore, the slice level is updated by the sensor output value in the state where there is no shield, thereby preventing erroneous detection due to adhesion of dirt.

【0009】先ず、紙幣の有無を検出するために、図1
におけるVLEDトランジスタTr0をONし、強電流
状態にしておく。次に、センサS1を点灯させ、センサ
S1の出力値を読み取る。読み取った出力値とSRAM
3に記憶されているS1スライスレベルとを比較し、出
力値がスライスレベルより大きい場合は紙幣有りと判定
し、出力値がスライスレベルより小さい場合は紙幣無し
と判定する。紙幣無しと判定した時には、ROM2のス
ライスレベル更新テ−ブル(図4参照)を参照し、該当
する出力値のスライスレベルを求め、SRAM3に記憶
されているスライスレベル値を書き替える。例えば、図
5に示すように、紙幣無し、汚れ無しの時にはセンサ出
力値は0Vに近いレベル1の値となり、スライスレベル
1が設定されている(図5(b)参照)。汚れが付着し
てくるとセンサ出力値が高くなり、スライスレベル1に
近いレベル2まで上昇してくる(図5(d)参照)。こ
の状態では、センサ出力値は僅かにスライスレベル1よ
り低いため紙幣無しと判定できるが、あと少し汚れが付
着する紙幣有りに誤検知してしまう。そこで、スライス
レベルの更新処理により、出力値レベル2に対応するス
ライスレベル2にスライスレベルを更新し、汚れ付着に
よる誤検知を防止する。
First, in order to detect the presence or absence of banknotes, FIG.
The VLED transistor Tr0 in the above is turned on and kept in a strong current state. Next, the sensor S1 is turned on and the output value of the sensor S1 is read. Read output value and SRAM
The S1 slice level stored in No. 3 is compared, and when the output value is larger than the slice level, it is determined that there is a bill, and when the output value is smaller than the slice level, it is determined that there is no bill. When it is determined that there is no bill, the slice level update table (see FIG. 4) of the ROM 2 is referred to, the slice level of the corresponding output value is obtained, and the slice level value stored in the SRAM 3 is rewritten. For example, as shown in FIG. 5, when there is no banknote and no stain, the sensor output value is a level 1 value close to 0 V, and slice level 1 is set (see FIG. 5B). When dirt adheres, the sensor output value rises and rises to level 2 close to slice level 1 (see FIG. 5 (d)). In this state, since the sensor output value is slightly lower than the slice level 1, it can be determined that there is no banknote, but it is erroneously detected that there is a banknote with a little dirt attached. Therefore, the slice level is updated to the slice level 2 corresponding to the output value level 2 by the slice level update process to prevent erroneous detection due to contamination.

【0010】また、紙幣有りと判定した時には、スライ
スレベル更新は行なわず、センサS1を消灯する。以下
同様にS2、S3の順にSnまでスライスレベルの更新
を行なう。なお、SRAM3は電池4でバックアップさ
れているので、電源が切れてもスライスレベルは記憶さ
れており、次に電源が投入された時には前回更新された
スライスレベルを用いて紙幣の有無を判定することがで
きる。このように、スライスレベル更新処理は紙幣無し
の状態で行っているが、実際には、運用の合間の時間を
利用して更新処理を行うことになるので、当然のことな
がら出金ボックスのように紙幣のある部分が存在する。
従って、このような場所で処理を行ったときには、必ず
しも悪いセンサではないことを留意しておけばよい。こ
のようなセンサに対しては、また別の機会にチェックを
行うようにして、スライスレベルの更新を行う。
When it is determined that there is a bill, the slice level is not updated and the sensor S1 is turned off. Similarly, the slice level is updated up to Sn in the order of S2 and S3. Since the SRAM 3 is backed up by the battery 4, the slice level is stored even when the power is turned off, and the next time the power is turned on, the presence / absence of a bill is determined using the slice level updated last time. You can In this way, the slice level update process is performed without the banknotes, but in reality, the update process is performed using the time between operations, so it is natural that a There is a part of the bill in.
Therefore, it should be noted that the sensor is not necessarily a bad sensor when the processing is performed in such a place. For such a sensor, the slice level is updated by checking at another occasion.

【0011】次に、図2、図3によりセンサの汚れに対
するマ−ジンのチエック方法を説明する。図2は、本発
明の一実施例を示す汚れマージンチェック動作のフロー
チャートであり、図3は汚れマージンチェック値テーブ
ルの内容を示す図である。図3のテーブルに記憶されて
いる汚れマージンチェック値は、各センサS1〜Sn対
応に設定されており、固定値である。各センサは、その
設置場所によりその発光ダイオードとフォトトランジス
タの間隙が異なり、各センタにより異なる各センタに適
合した汚れマージンチェック値が設定されている。セン
サに汚れが付着してくるとセンサ出力が高くなってくる
ので、遮蔽物が無い状態でのセンサ出力値によってセン
サの汚れ度合いを判定することができる。先ず、紙幣の
有無を検出するために、VLEDトランジスタTr0を
ONし強電流状態にしておく(ステップ101)。次
に、センサS1を点灯させ(ステップ102)、センサ
S1の出力値を読み取る(ステップ103)。読み取っ
た出力値とSRAM3に記憶されているS1スライスレ
ベルとを比較し(ステップ104)、出力値がスライス
レベルより大きい場合は紙幣有りと判定し(ステップ1
05)、出力値がスライスレベルより小さい場合は、紙
幣無しと判定する(ステップ105)。
Next, the method for checking the margin against dirt on the sensor will be described with reference to FIGS. FIG. 2 is a flowchart of the dirt margin check operation according to the embodiment of the present invention, and FIG. 3 is a diagram showing the contents of the dirt margin check value table. The dirt margin check value stored in the table of FIG. 3 is set for each sensor S1 to Sn and is a fixed value. In each sensor, the gap between the light emitting diode and the phototransistor differs depending on the installation location, and a stain margin check value suitable for each center is set for each center. Since the sensor output increases when dirt adheres to the sensor, the degree of dirt of the sensor can be determined by the sensor output value in the state where there is no shield. First, in order to detect the presence / absence of a bill, the VLED transistor Tr0 is turned on and kept in a strong current state (step 101). Next, the sensor S1 is turned on (step 102), and the output value of the sensor S1 is read (step 103). The read output value is compared with the S1 slice level stored in the SRAM 3 (step 104). If the output value is larger than the slice level, it is determined that there is a bill (step 1).
05), if the output value is smaller than the slice level, it is determined that there is no bill (step 105).

【0012】紙幣無しと判定した時には、汚れによるセ
ンサ出力値の変化が大きくなるようにVLEDトランジ
スタTr0をOFFし(ステップ106)、弱電流状態
にして、センサS1の出力値を読み取る(ステップ10
7)。ROM2のS1汚れマ−ジンチエック値(図3参
照)と比較し(ステップ108)、センサS1の出力値
がS1汚れマ−ジンチエック値より大きい時には、汚れ
に対するマ−ジンが無いと判定する(ステップ11
0)。また、センサS1の出力値がS1汚れマ−ジンチ
エック値より小さい時には、汚れに対するマ−ジンが有
ると判定する(ステップ111)。一方、紙幣有りの時
には(ステップ105)、マ−ジンチエックは行なわ
ず、センサS1を消灯する(ステップ112)。以下同
様に、S2、S3の順にSnまでマ−ジンチエックを行
ない(ステップ113,114)、汚れに対するマ−ジ
ンが無いと判定したセンサの番号を表示制御部8を介し
て表示器9に表示する(ステップ115)。
When it is determined that there is no banknote, the VLED transistor Tr0 is turned off so that the change in the sensor output value due to dirt becomes large (step 106), the weak current state is set, and the output value of the sensor S1 is read (step 10).
7). The value is compared with the S1 dirt margin check value of the ROM 2 (see FIG. 3) (step 108), and when the output value of the sensor S1 is larger than the S1 dirt margin check value, it is determined that there is no margin for dirt (step 11).
0). When the output value of the sensor S1 is smaller than the S1 dirt margin check value, it is determined that there is a margin for dirt (step 111). On the other hand, when there is a bill (step 105), the margin check is not performed and the sensor S1 is turned off (step 112). Similarly, the margin check is performed until Sn in the order of S2 and S3 (steps 113 and 114), and the number of the sensor determined to have no margin for dirt is displayed on the display 9 via the display controller 8. (Step 115).

【0013】このように、本実施例では、紙幣無しと判
定した後に、汚れによるセンサ出力値の変化が大きくな
るように発光素子の電流を弱電流に切り替えることが特
徴である。弱電流状態のセンサS1の出力値を読み取る
ことにより、出力値と記憶されているマージンチェック
値とを比較して、出力値が大きいときには汚れマージン
無しと判定して、警報を送出するか、表示器に表示す
る。なお、紙幣有りの場合には、処理を行わずにセンサ
を消灯しているが、運用時には、出金ボックスのように
紙幣が有る部分が必ず存在するので、そのようなセンサ
に対しては別の機会にチェックすればよい。また、汚れ
マージンチェックの場合には、ステップ115で汚れマ
ージン無しのセンサ番号を表示器に表示するので、『紙
幣有りのセンサ番号の表示』も行うようにして、保守要
員や係員に判断させてもよい。
As described above, the present embodiment is characterized in that the current of the light emitting element is switched to the weak current so that the change in the sensor output value due to the dirt becomes large after it is determined that there is no bill. By reading the output value of the sensor S1 in the weak current state, the output value is compared with the stored margin check value, and when the output value is large, it is determined that there is no dirt margin, and an alarm is sent or displayed. Display on the container. Note that when there is a bill, the sensor is turned off without performing any processing, but during operation, there is always a portion where there is a bill, such as a dispensing box. You can check at the opportunity. Further, in the case of the dirt margin check, the sensor number without the dirt margin is displayed on the display device in step 115, so that the "display of the sensor number with banknote" is also performed so that the maintenance staff or the staff can judge. Good.

【0014】[0014]

【発明の効果】以上説明したように、本発明によれば、
マ−ジンチエックにより汚れが付着しているセンサを検
出できるので、そのセンサのみを清掃することによって
汚れによるセンサ障害を防止できるという効果がある。
As described above, according to the present invention,
Since the sensor attached with dirt can be detected by the margin check, the sensor failure due to the dirt can be prevented by cleaning only the sensor.

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

【図1】本発明が適用される光学センサ制御部の構成図
である。
FIG. 1 is a configuration diagram of an optical sensor control unit to which the present invention is applied.

【図2】本発明の一実施例を示す汚れマ−ジンチエック
処理のフロ−チャ−トである。
FIG. 2 is a flowchart of a stain marine check process according to an embodiment of the present invention.

【図3】図1のROMに格納されている汚れマ−ジンチ
エック値テ−ブルの内容を示す図である。
FIG. 3 is a diagram showing the contents of a dirty margin check value table stored in the ROM of FIG.

【図4】図1のROMに格納されているスライスレベル
更新テ−ブルの内容を示す図である。
4 is a diagram showing the contents of a slice level update table stored in the ROM of FIG.

【図5】本発明におけるセンサ出力波形を示す図であ
る。
FIG. 5 is a diagram showing a sensor output waveform in the present invention.

【図6】通常の紙幣有無判定フローチャートである。FIG. 6 is a normal bill presence / absence determination flowchart.

【図7】図1のSRAMに格納されているスライスレベ
ル記憶エリアの内容を示す図である。
7 is a diagram showing the contents of a slice level storage area stored in the SRAM of FIG.

【符号の説明】[Explanation of symbols]

1 CPU、2 ROM、3 SRAM、4 電池、5
A/Dコンバ−タ、6 アナログマルチプレクサ、7
出力ポ−ト、8 表示制御部、9 表示器、10 紙
幣、S1〜Sn センサ、LED1〜LEDn 発光ダ
イオ−ド、PT1〜PTn フォトトランジスタ、TR
1〜TRn LED駆動トランジスタ、TR0 VLE
Dトランジスタ。
1 CPU, 2 ROM, 3 SRAM, 4 batteries, 5
A / D converter, 6 analog multiplexer, 7
Output port, 8 display control section, 9 indicator, 10 banknote, S1 to Sn sensor, LED1 to LEDn light emitting diode, PT1 to PTn phototransistor, TR
1-TRn LED drive transistor, TR0 VLE
D transistor.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G07B 5/00 F G07D 7/00 E ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G07B 5/00 F G07D 7/00 E

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 発光素子の発光動作を発光電流制御素子
により制御し、制御された該発光素子に対応する受光素
子の出力値を検出し、該発光素子と受光素子間の遮蔽物
の有無を判定するために、予めスライスレベルを設定し
ておき、該受光素子の出力値と上記スライスレベルを比
較して遮蔽物の有無を判定する光学センサにおいて、各
光学センサの汚れマージンチェック値を記憶部に記憶し
ておき、上記受光素子の出力値と上記汚れマージンチェ
ック値とを比較して、汚れに対するマージンを判定する
ことを特徴とする光学センサ制御方法。
1. The light emitting operation of a light emitting element is controlled by a light emitting current control element, an output value of a light receiving element corresponding to the controlled light emitting element is detected, and presence or absence of a shield between the light emitting element and the light receiving element is detected. In order to make a determination, a slice level is set in advance, and in an optical sensor that determines the presence or absence of a shield by comparing the output value of the light receiving element with the slice level, the storage unit stores the stain margin check value of each optical sensor. The optical sensor control method, wherein the output value of the light receiving element is compared with the dirt margin check value to determine the margin for dirt.
【請求項2】 請求項1に記載の光学センサ制御方法に
おいて、前記発光素子に流れる電流を減少させ、減少さ
せた時点の受光素子の出力値と上記汚れマージンチェッ
ク値とを比較することを特徴とする光学センサ制御方
法。
2. The optical sensor control method according to claim 1, wherein the current flowing through the light emitting element is reduced, and the output value of the light receiving element at the time of the reduction is compared with the stain margin check value. Optical sensor control method.
JP16927994A 1994-07-21 1994-07-21 Optical sensor control method Expired - Lifetime JP3166117B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP16927994A JP3166117B2 (en) 1994-07-21 1994-07-21 Optical sensor control method
KR1019950021283A KR0149574B1 (en) 1994-07-21 1995-07-20 Optical sensor controlling method
CN 95109625 CN1065632C (en) 1994-07-21 1995-07-20 Method for controlling photoelectric sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16927994A JP3166117B2 (en) 1994-07-21 1994-07-21 Optical sensor control method

Publications (2)

Publication Number Publication Date
JPH0836064A true JPH0836064A (en) 1996-02-06
JP3166117B2 JP3166117B2 (en) 2001-05-14

Family

ID=15883574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16927994A Expired - Lifetime JP3166117B2 (en) 1994-07-21 1994-07-21 Optical sensor control method

Country Status (3)

Country Link
JP (1) JP3166117B2 (en)
KR (1) KR0149574B1 (en)
CN (1) CN1065632C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100959155B1 (en) * 2007-12-24 2010-05-24 노틸러스효성 주식회사 Method for automated compensation
JP2018002459A (en) * 2016-07-07 2018-01-11 株式会社沖データ Medium detection device, medium conveyance device and image formation apparatus

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101388050B1 (en) * 2007-12-24 2014-04-23 노틸러스효성 주식회사 Method for automated compensation
CN104931084A (en) * 2015-05-26 2015-09-23 浪潮(山东)电子信息有限公司 Device and method for detecting state of card machine internal sensor
CN109708751B (en) * 2018-12-29 2021-05-14 奥克斯空调股份有限公司 Photosensitive sensor detection correction method and device and air conditioner

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100959155B1 (en) * 2007-12-24 2010-05-24 노틸러스효성 주식회사 Method for automated compensation
JP2018002459A (en) * 2016-07-07 2018-01-11 株式会社沖データ Medium detection device, medium conveyance device and image formation apparatus

Also Published As

Publication number Publication date
JP3166117B2 (en) 2001-05-14
KR0149574B1 (en) 1998-12-01
CN1065632C (en) 2001-05-09
CN1118881A (en) 1996-03-20

Similar Documents

Publication Publication Date Title
TWI451748B (en) Imaging system and method
US4785295A (en) Optical media monitoring device
JP3166117B2 (en) Optical sensor control method
US4937441A (en) Diagnosis apparatus for photo coupler and photo coupler device with diagnosis function
US20040200978A1 (en) Inspection apparatus and inspection method
US6394676B1 (en) Media sensor system for printer mechanism
JP2000172897A (en) Method for adjusting light emitted from sensor of optical two-sheet detecting device
JP2000019831A (en) Residual toner amount detector
JPH06336387A (en) Device to specify element in trouble of photodetector
JPH0416238Y2 (en)
NL1014729C2 (en) A method for recording and counting windings winding from a drum, as well as a device for carrying out this method.
KR101191235B1 (en) Apparatus for automated compensation and method for operating the same
JPH0452517B2 (en)
JPH0435979Y2 (en)
JPH04271663A (en) Image scanner
JPH05266307A (en) Operation management method for optical sensor
JPS6147539A (en) Apparatus for detecting kind of paper of paper feed apparatus
KR101127318B1 (en) Apparatus for sensor leveling and method for sensor leveling thereof
JPH0528794B2 (en)
KR950019705A (en) Surface defect inspection method and device
JP3389900B2 (en) Print processing apparatus and print processing method
JPH0761652A (en) Paper sheet detecting device for printer
JPH0540017A (en) Original size detecting device
JPH0217584A (en) Mark reader
JP2001004761A (en) Device and method for detecting body to be detected by photosensor

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090309

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100309

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110309

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120309

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130309

Year of fee payment: 12