JP2732911B2 - Article detection method - Google Patents

Article detection method

Info

Publication number
JP2732911B2
JP2732911B2 JP1268416A JP26841689A JP2732911B2 JP 2732911 B2 JP2732911 B2 JP 2732911B2 JP 1268416 A JP1268416 A JP 1268416A JP 26841689 A JP26841689 A JP 26841689A JP 2732911 B2 JP2732911 B2 JP 2732911B2
Authority
JP
Japan
Prior art keywords
light
article
unit
conversion unit
sample
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1268416A
Other languages
Japanese (ja)
Other versions
JPH03129585A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1268416A priority Critical patent/JP2732911B2/en
Priority to US07/598,162 priority patent/US5095203A/en
Priority to EP90311327A priority patent/EP0424097B1/en
Priority to KR1019900016449A priority patent/KR930006797B1/en
Priority to DE69021495T priority patent/DE69021495T2/en
Publication of JPH03129585A publication Critical patent/JPH03129585A/en
Application granted granted Critical
Publication of JP2732911B2 publication Critical patent/JP2732911B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第8図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例 (a) 一実施例の説明(第2図) (b) 一実施例の動作の説明(第3図乃至第7図) (c) 他の実施例の説明 発明の効果 〔概要〕 検知空間に発光部から検知光を出射し、検知空間から
の反射光を受光部で受光して、光量変化から物品を検出
する物品検出方式に関し、 高電源を設けなくても、外乱光強度が強い場合も物品
の検出を行いうることを目的とし、 検知空間に検知光を出射する発光部と、検知空間から
の反射光を受光する受光部と、複数の感度を選択でき、
該受光部の受光量を選択された感度で光電変換する光電
変換部と、該光電変換部の反射光強度出力をA/D変換す
るA/D変換部と、複数の基準電圧を有し、選択に応じて
所定の基準電圧を該A/D変換部に供給する基準電圧発生
部と、該A/D変換部の出力から光量変化を検出して、物
品を検出する制御部とを有し、物品検知前に、該制御部
がA/D変換部の出力値を検出し、該出力に応じて該光電
変換部の感度と該A/D変換部の基準電圧を選択制御す
る。
Detailed Description of the Invention [Table of Contents] Overview Industrial application field Conventional technology (Fig. 8) Problems to be solved by the invention Means for solving the problem (Fig. 1) Action Embodiment (a) One Description of Embodiment (FIG. 2) (b) Description of Operation of One Embodiment (FIGS. 3 to 7) (c) Description of Another Embodiment Effect of the Invention [Outline] Detection from Light Emitting Unit to Detection Space With regard to an article detection method that emits light, receives light reflected from the detection space at the light receiving unit, and detects the article from a change in the amount of light, it does not require a high power supply and can detect articles even when the intensity of disturbance light is strong. For the purpose of being able to do, a light emitting unit that emits detection light to the detection space, a light receiving unit that receives reflected light from the detection space, and multiple sensitivities can be selected,
A photoelectric conversion unit that photoelectrically converts the amount of light received by the light receiving unit with a selected sensitivity, an A / D conversion unit that A / D converts a reflected light intensity output of the photoelectric conversion unit, and has a plurality of reference voltages, A reference voltage generator that supplies a predetermined reference voltage to the A / D converter in accordance with the selection, and a controller that detects a change in the amount of light from an output of the A / D converter and detects an article. Before detecting the article, the control unit detects the output value of the A / D conversion unit, and selectively controls the sensitivity of the photoelectric conversion unit and the reference voltage of the A / D conversion unit according to the output.

〔産業上の利用分野〕[Industrial applications]

本発明は、検知空間に発光部から検知光を出射し、検
知空間からの反射光を受光部で受光して、光量変化から
物品を検出する物品検出方式に関する。
The present invention relates to an article detection method in which detection light is emitted from a light emitting unit to a detection space, reflected light from the detection space is received by a light receiving unit, and an article is detected from a change in light amount.

バーコードを付した物品を読み取り空間に進入させ、
物品のバーコードを読取る定置式バーコードリーダーが
盛んに利用されている。
The bar-coded article enters the reading space,
Stationary barcode readers for reading barcodes of articles are widely used.

このようなバーコードリーダーでは、常時読み取り空
間に光走査パターンを出射するのは、光源の寿命を短く
し且つ電力消費も大となる。
In such a barcode reader, constantly emitting the light scanning pattern to the reading space shortens the life of the light source and increases power consumption.

このため、バーコードリーダーに物品検出部(装置)
を設け、物品が読み取り空間に進入してきたことを検出
したときに、光走査パターンを出射するようにしてい
る。
Therefore, the bar code reader has an article detection unit (device)
The optical scanning pattern is emitted when it is detected that the article has entered the reading space.

このような物品検出装置では、外乱光の強度が強くて
も、適切に物品の検出が可能なことが望まれている。
It is desired that such an article detection device can appropriately detect an article even when the intensity of disturbance light is high.

〔従来の技術〕[Conventional technology]

第8図は従来技術の説明図である。 FIG. 8 is an explanatory diagram of the prior art.

第8図(A)に示すように、バーコードリーダーBCR
は、デスク等に固定され、物品検出部ASUとバーコード
読取部SCRとを有し、物品検出部ASUで所定の物品検知空
間に検出光を出射し、反射光から物品の進入を検知する
と、バーコード読取部SCRが光走査パターンを発生し、
読み取り空間に出射し、物品のバーコードからの反射光
を受光し、解析して、バーコードを読取るものである。
As shown in FIG. 8 (A), the bar code reader BCR
Is fixed to a desk or the like, has an article detection unit ASU and a barcode reading unit SCR, emits detection light to a predetermined article detection space in the article detection unit ASU, and detects entry of an article from reflected light, The barcode reading unit SCR generates an optical scanning pattern,
The light is emitted to the reading space, receives the reflected light from the bar code of the article, analyzes the light, and reads the bar code.

従来の物品検出方式は、第8図(B)に示すように、
発光部1を駆動部1aでパルス変調駆動し、パルス変調さ
れた検知光を出射する。
As shown in FIG. 8 (B), the conventional article detection method is as follows.
The light emitting unit 1 is pulse-modulated by the driving unit 1a to emit pulse-modulated detection light.

受光部2は反射光を受光し、光電変換部2aで光電変換
し、反射光強度を出力し、A/D変換部10でデジタル値に
変換した後、このデジタル反射光強度の光量(強度)変
化から光量変化検出部6が物品を検出するようにしてい
た。
The light receiving unit 2 receives the reflected light, performs photoelectric conversion in the photoelectric conversion unit 2a, outputs the reflected light intensity, and converts the reflected light intensity into a digital value in the A / D conversion unit 10, and then the light amount (intensity) of the digital reflected light intensity The light amount change detection unit 6 detects the article from the change.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

ところで、このような物品検出においては、外乱光の
強度が強いと、受光系が飽和して、光量変化による物品
の検出ができなくなる。
By the way, in such article detection, if the intensity of disturbance light is high, the light receiving system is saturated, and it becomes impossible to detect an article by a change in light amount.

この外乱光の強度が強くても物品の検出を行わせるた
め、従来光電変換部2aの動作領域を拡大するように、電
源電圧を上げるようにしていた。
In order to detect an article even when the intensity of the disturbance light is high, conventionally, the power supply voltage has been increased so as to enlarge the operation area of the photoelectric conversion unit 2a.

しかしながら、従来技術では、他のローパワーの部品
を駆動する低電源の他に、光電変換部2aのための高電源
を設けねばならず、装置が高価になるという問題があっ
た。
However, in the prior art, a high power supply for the photoelectric conversion unit 2a must be provided in addition to a low power supply for driving other low-power components, and there is a problem that the device becomes expensive.

従って、本発明は、高電源を設けなくても、外乱光強
度が強い場合も物品の検出を行いうる物品検出方式を提
供することを目的とする。
Therefore, an object of the present invention is to provide an article detection method capable of detecting an article even when the intensity of disturbance light is strong, without providing a high power supply.

〔課題を解決するための手段〕[Means for solving the problem]

第1図は本発明の原理図である。 FIG. 1 is a diagram illustrating the principle of the present invention.

本発明は、第1図に示すように、検知空間に検知光を
出射する発光部1と、検知空間からの反射光を受光する
受光部2と、複数の感度を選択でき、該受光部2の受光
量を選択された感度で光電変換する光電変換部2aと、該
光電変換部2aの反射光強度出力をA/D変換するA/D変換部
10と、複数の基準電圧を有し、選択に応じて所定の基準
電圧を該A/D変換部10に供給する基準電圧発生部5と、
該A/D変換部10の出力から光量変化を検出して、物品を
検出する制御部6とを有し、物品検知前に、該制御部6
がA/D変換部10の出力値を検出し、該出力に応じて該光
電変換部2aの感度と該A/D変換部10の基準電圧を選択制
御するものである。
As shown in FIG. 1, the present invention provides a light emitting section 1 for emitting detection light to a detection space, a light receiving section 2 for receiving light reflected from the detection space, and a plurality of sensitivities. A photoelectric conversion unit 2a that photoelectrically converts the amount of received light with a selected sensitivity, and an A / D conversion unit that A / D converts the reflected light intensity output of the photoelectric conversion unit 2a
A reference voltage generator 5 having a plurality of reference voltages and supplying a predetermined reference voltage to the A / D converter 10 according to selection;
A control unit 6 for detecting a change in the amount of light from the output of the A / D conversion unit 10 to detect an article;
Detects the output value of the A / D converter 10 and selectively controls the sensitivity of the photoelectric converter 2a and the reference voltage of the A / D converter 10 according to the output.

〔作用〕[Action]

本発明では、複数の感度選択できる光電変換部2aと複
数の基準電圧を選択できる基準電圧発生部5とを設け、
制御部6で物品検知前に、外乱光強度であるA/D変換部1
0の出力をモニターして、感度と基準電圧を選択するよ
うにし、高電源を用いずにダイナミックレンジを拡大す
るようにしている。
In the present invention, a photoelectric conversion unit 2a capable of selecting a plurality of sensitivities and a reference voltage generating unit 5 capable of selecting a plurality of reference voltages are provided.
Before the article is detected by the controller 6, the A / D converter 1
By monitoring the output of 0, the sensitivity and the reference voltage are selected, and the dynamic range is expanded without using a high power supply.

このため、外乱光強度が強ければ、光電変換部2aを低
感度側に、A/D変換部10を低基準電圧側に切換え制御
し、光電変換部2aのダイナミックレンジを拡大する。
For this reason, if the intensity of the disturbance light is high, the photoelectric conversion unit 2a is switched to the low sensitivity side and the A / D conversion unit 10 is switched to the low reference voltage side to control the dynamic range of the photoelectric conversion unit 2a.

〔実施例〕〔Example〕

(a) 一実施例の構成の説明 第2図は本発明の一実施例ブロック図である。 (A) Description of Configuration of One Embodiment FIG. 2 is a block diagram of one embodiment of the present invention.

図中、第1図及び第8図で示したものと同一のもの
は、同一の記号で示してある。
In the figure, the same components as those shown in FIGS. 1 and 8 are indicated by the same symbols.

光電変換部2aは、フォトダイオードで構成される受光
部2に接続される増幅アンプAMPと、アンプAMPのゲイン
抵抗r1、r2と、ゲイン抵抗r2を接続、切断するアナログ
スイッチAS1とを有し、アナログスイッチAS1によるゲイ
ン抵抗r2の接続/切断でゲイン(感度)を高/低に選択
できるようになっている。
The photoelectric conversion portion 2a, the amplifier AMP is connected to the composed light receiving portion 2 with the photodiode, the gain resistor r 1, r 2 of the amplifier AMP, connect the gain resistor r 2, and an analog switch AS1 for cutting a, it is possible to select the gain (sensitivity) to the high / low at the connection / disconnection gain resistor r 2 by the analog switch AS1.

3はハイパスフィルタであり、光電変換部2aの出力の
直流(低周波)成分をカットするもの、4は交流増幅部
であり、ハイパスフィルタ3の出力を交流増幅して、交
流出力(第3図参照)を出力するものである。
Reference numeral 3 denotes a high-pass filter that cuts a DC (low frequency) component of the output of the photoelectric conversion unit 2a. Reference numeral 4 denotes an AC amplifying unit that amplifies the output of the high-pass filter 3 by AC and outputs an AC output (FIG. 3). Reference).

7aは最大値サンプルホールド回路であり、交流増幅部
4の交流出力の最大値をサンプルホールド信号CTL1−
DLYによりサンプルホールドするもの、7bは最小値サン
プルホールド回路であり、交流出力の最小値をサンプ
ルホールド信号CTL2−DLYによりサンプルホールドする
ものである。
Reference numeral 7a denotes a maximum value sample-hold circuit, which converts the maximum value of the AC output of the AC amplifier 4 into a sample-hold signal CTL1−
A sample-and-hold circuit 7b for sampling and holding by DLY is a minimum value sample-and-hold circuit for sampling and holding the minimum value of the AC output by a sample-and-hold signal CTL2-DLY.

8は差動増幅部であり、最大値サンプルホールド回路
7aの出力から最小値サンプルホールド回路7bの出力を差
し引き、増幅して、差動増幅出力を発生するもの、9は
サンプルホールド部であり、差動増幅器8の差動出力
をサンプルホールド信号CTL3によりサンプルホールドす
るもの、10は前述のA/D(アナログ/デジタル)変換部
であり、サンプルホールド信号をデジタル値に変換す
るもの、5は前述の基準電圧発生部であり、分圧回路に
より高基準電圧Vref1と低基準電圧Vref2とを発生し、ア
ナログスイッチAS4、AS5によって切換えてA/D変換部10
へ出力するものである。
8 is a differential amplifier, which is a maximum value sample hold circuit
The output of 7a is subtracted from the output of the minimum value sample-hold circuit 7b and amplified to generate a differential amplified output. 9 is a sample-and-hold unit, and the differential output of the differential amplifier 8 is converted by a sample-and-hold signal CTL3. The sample / hold 10 is the above-mentioned A / D (analog / digital) converter, which converts the sample-and-hold signal into a digital value. The reference voltage generator 5 is the above-mentioned reference voltage generator. The voltage Vref 1 and the low reference voltage Vref 2 are generated and switched by the analog switches AS4 and AS5.
Output to

AS2、AS3は各々アナログスイッチであり、制御信号CT
L9により制御され、アナログスイッチAS2はインバータI
Vで反転された制御信号CTL9によって開き、光電変換部2
aの出力を直接A/D変換部10へ与え、アナログスイッチAS
3は、制御信号CTL9によって開き、サンプルホールド回
路9の出力をA/D変換部10へ入力するものである。
AS2 and AS3 are analog switches, respectively, and control signals CT
Controlled by L9, analog switch AS2 is connected to inverter I
Opened by the control signal CTL9 inverted by V, the photoelectric conversion unit 2
The output of a is given directly to the A / D converter 10 and the analog switch AS
Reference numeral 3 denotes a circuit which is opened by the control signal CTL9 and inputs the output of the sample hold circuit 9 to the A / D converter 10.

制御部(光量変化検出部)6は以下のもので構成され
る。
The control section (light quantity change detection section) 6 is configured as follows.

11aは第1のレジスタであり、サンプル信号CTL4でA/D
変換部10の出力をサンプルして取り込むもの、11bは第
2のレジスタであり、サンプル信号CTL5でA/D変換部10
の出力をサンプルして取り込むもの、12aは第1のデレ
イ部であり、後述するCPU14からの発光駆動パルスCTL1
を遅延してサンプルホールド信号CTL1−DLYを出力する
もの、12bは第2のデレイ部であり、CPU14からの発光駆
動パルスCTL1の反転信号CTL2を遅延してサンプルホール
ド信号CTL2−DLYを出力するもの、13はA/D変換部であ
り、分圧回路からの物品検知用しいきい値Vthをデジタ
ル値に変換して、CPU14へ出力するもの、14はCPU(中央
演算処理部)であり、発光駆動パルスCTL1、その反転信
号CTL2、サンプルホールド信号CTL3、サンプル信号CTL
4、CTL5、選択信号CTL6、CTL7、CTL8、CTL9を出力し、A
/D変換部10の内容を読み込み、外乱光モニターし、レジ
スタ11a、11bの内容を読み出して、後述する第4図の処
理により、反射光量変化を演算し、物品の進入/排出検
知を行うものである。
11a is a first register, which is used for A / D conversion with the sample signal CTL4.
11b is a second register, which samples and captures the output of the conversion unit 10, and outputs the A / D conversion unit 10b with a sample signal CTL5.
12a is a first delay unit, which emits light emission drive pulses CTL1 from the CPU 14 described later.
12b is a second delay unit that delays the inverted signal CTL2 of the light emission drive pulse CTL1 from the CPU 14 and outputs a sample / hold signal CTL2-DLY. , 13 are A / D converters which convert the threshold value Vth for detecting an article from the voltage dividing circuit into a digital value and output it to the CPU 14, and 14 is a CPU (central processing unit) which emits light. Drive pulse CTL1, its inverted signal CTL2, sample hold signal CTL3, sample signal CTL
4, CTL5, select signals CTL6, CTL7, CTL8, CTL9
It reads the contents of the / D converter 10, monitors the disturbance light, reads the contents of the registers 11a and 11b, calculates the change in the amount of reflected light, and detects the entry / ejection of the article by the processing of FIG. It is.

(b) 一実施例の動作の説明 第3図は本発明の一実施例受光出力作成動作説明図、
第4図は本発明の一実施例物品検出処理フロー図、第5
図はその物品検出動作説明図、第6図はその外光サンプ
ル処理フロー図、第7図は外光サンプル動作説明図であ
る。
(B) Description of the operation of one embodiment FIG. 3 is an explanatory diagram of the light receiving output creation operation of one embodiment of the present invention,
FIG. 4 is a flowchart of an article detection process according to an embodiment of the present invention, and FIG.
FIG. 6 is an explanatory diagram of the article detection operation, FIG. 6 is a flowchart of the external light sample processing, and FIG. 7 is an explanatory diagram of the external light sample operation.

先ず、第3図により第2図の受光動作を説明する。 First, the light receiving operation of FIG. 2 will be described with reference to FIG.

CPU14は、発光駆動パルスCTL1を出力し、駆動部1aよ
り発光部(LED)1をパルス変調発光させる。
The CPU 14 outputs a light emission drive pulse CTL1, and causes the light emitting unit (LED) 1 to emit a pulse modulated light from the drive unit 1a.

変調反射光は、受光部2で受光され、光電変換部2aで
電気信号に変換され、ハイパスフィルタ3で直流分がカ
ットされ、交流増幅部4で交流増幅され、交流出力と
なる。
The modulated reflected light is received by the light receiving unit 2, converted into an electric signal by the photoelectric conversion unit 2 a, the DC component is cut by the high-pass filter 3, AC-amplified by the AC amplifying unit 4, and becomes an AC output.

発光駆動パルスCTL1は第1のデレイ部12aで遅延さ
れ、サンプルホールド信号CTL1−DLYを作成する。
The light emission drive pulse CTL1 is delayed by the first delay section 12a to generate a sample hold signal CTL1-DLY.

このサンプルホールド信号CTL1−DLYは、発光光と同
期しており、発光光による反射光が最大となる時間に発
生するよう作成される。
The sample hold signal CTL1-DLY is synchronized with the emitted light, and is generated so as to be generated at the time when the reflected light by the emitted light becomes maximum.

同様に、CPU14から与えられる発光駆動パルスの反転
信号CTL2は、第2のデレイ部12bで遅延され、サンプル
ホールド信号CTL2−DLYを作成する。
Similarly, the inverted signal CTL2 of the light emission drive pulse given from the CPU 14 is delayed by the second delay unit 12b to create a sample hold signal CTL2-DLY.

このサンプルホールド信号CTL2−DLYは、反転信号CTL
2と同期しており、反射光が最小となる時間に発生する
よう作成される。
This sample-and-hold signal CTL2-DLY is
Synchronized with 2 and created to occur at a time when reflected light is at a minimum.

従って、最大値サンプルホールド部7aは、サンプルホ
ールド信号CTL1−DLYによって交流出力の最大値をホ
ールドし、ホールド出力を出力し、最小値サンプルホ
ールド部7bは、サンプルホールド信号CTL2−DLYによっ
て交流出力の最小値をホールドし、ホールド出力を
出力する。
Therefore, the maximum value sample hold unit 7a holds the maximum value of the AC output by the sample hold signal CTL1-DLY and outputs a hold output, and the minimum value sample hold unit 7b outputs the AC output by the sample hold signal CTL2-DLY. Holds the minimum value and outputs the hold output.

差動増幅部8は、両ホールド出力、の差動をと
り、増幅し、差動増幅出力を出力する。
The differential amplifier 8 takes the difference between the two hold outputs, amplifies the output, and outputs a differential amplified output.

従って、差動増幅出力は、交流信号のpeak to pe
akを検出することになり、信号検出精度をS/N比を劣化
させずに向上させることができ、精度良い反射光強度が
得られる。
Therefore, the differential amplified output is the peak to pe of the AC signal.
Since ak is detected, the signal detection accuracy can be improved without deteriorating the S / N ratio, and an accurate reflected light intensity can be obtained.

差動増幅出力は、サンプルホールド部9でサンプル
ホールドされ、サンプルホールド出力を出力し、A/D
変換部10でデジタル値に変換され、レジスタ11a、11bに
出力される。
The differential amplified output is sampled and held by the sample and hold unit 9 and outputs a sample and hold output.
The data is converted into a digital value by the conversion unit 10 and output to the registers 11a and 11b.

このようにして得た反射光強度を用いて物品を検知す
る動作について第4図及び第5図により説明する。
The operation of detecting an article using the reflected light intensity thus obtained will be described with reference to FIGS.

尚、CPU14は、A/D変化部13のしきい値に基づいて進入
検知用しきい値Vth1と排出検知用しきい値Vth2とを作成
し、両しきい値Vth1、Vth2と、進入サンプル回数C1と、
排出サンプル回数C2とを格納している。
Incidentally, CPU 14 creates a the approach detection threshold Vth 1 and a discharge detection threshold Vth 2, based on a threshold value of the A / D change unit 13, and both the threshold Vth 1, Vth 2 , The number of entry samples C1,
Stores the number C2 of discharge samples.

CPU14は、先ず各部をイニシャライズする。The CPU 14 first initializes each unit.

次に、CPU14は、M2サンプル数C1を「0」にリセッ
トし、第6図にて後述する外光サンプル処理を行い、光
電検出部2aの感度及びA/D変換部10の基準電圧の選択を
行う。
Next, the CPU 14 resets the number C1 of M2 samples to “0”, performs external light sampling processing described later with reference to FIG. 6, and selects the sensitivity of the photoelectric detection unit 2a and the reference voltage of the A / D conversion unit 10. I do.

更に、CPU14は、発光駆動パルスCTL1の出力を開始さ
せ、発光部1をパルス点灯させた上で、レジスタ11aに
サンプル指示(M1サンプルという)M1(CTL4)を与え、
A/D変換部10の出力をレジスタ11aに取り込む。
Further, the CPU 14 starts the output of the light emission drive pulse CTL1, turns on the light emitting unit 1 in a pulsed manner, and then gives a sample instruction (referred to as M1 sample) M1 (CTL4) to the register 11a.
The output of the A / D converter 10 is taken into the register 11a.

次に、CPU14は、レジスタ11bにサンプル指示(M2サ
ンプルという)M2(CTL5)を与え、A/D変換部10の出力
をレジスタ11bに取り込む。
Next, the CPU 14 gives a sample instruction (referred to as M2 sample) M2 (CTL5) to the register 11b, and takes the output of the A / D converter 10 into the register 11b.

そして、CPU14はレジスタ11a、11bのサンプルデータM
1、M2を読み込み、(M1−M2)の演算をし、更に(M1−M
2)の絶対値|M1−M2|を求め、進入検知用しきい値Vth1
と比較する。
Then, the CPU 14 stores the sample data M of the registers 11a and 11b.
1, M2 is read, (M1-M2) is calculated, and (M1-M2)
The absolute value of 2) | M1-M2 | look, entry detection threshold Vth 1
Compare with

ステップで、比較結果により、|M1−M2|>Vth1
ないと判断すると、CPU14は物品進入検知でないと判定
し、M2サンプル数C1を(C1+1)に更新する。
In step, by comparison, | M1-M2 |> Vth 1 not equal Judging, CPU 14 determines that it is not an article enters the detection, updates the M2 sample number C1 to (C1 + 1).

そして、CPU14は、更新されたM2サンプル数C1が所定
値X1に達したかを調べ、C1=X1でなければ、ステップ
に戻り、C1=X1であれば、ステップに戻る。
Then, the CPU 14 checks whether the updated M2 sample number C1 has reached the predetermined value X1. If C1 = X1, the process returns to the step. If C1 = X1, the process returns to the step.

一方、ステップで、比較結果により、|M1−M2|>
Vth1と判断すると、CPU14は物品進入検知と判断し、物
品有り処理を行う。
On the other hand, in the step, | M1-M2 |>
When it is determined that the threshold value is Vth 1 , the CPU 14 determines that article entry has been detected, and performs article presence processing.

例えば前述のバーコードリーダーの例ではバーコード
読取部SCRを起動する。
For example, in the example of the above-described barcode reader, the barcode reading unit SCR is activated.

次にCPU14は、レジスタ11bにM2サンプルせしめ、A/
D変換部10の出力をレジスタ11bに取り込む。
Next, the CPU 14 causes the register 11b to sample M2, and
The output of the D conversion unit 10 is taken into the register 11b.

そして、CPU14は、レジスタ11a、11bのサンプルデー
タM1、M2を読み込み、(M1−M2)の演算をし、更に(M1
−M2)の絶対値|M1−M2|を求め、排出検知用しきい値Vt
h2と比較する。
Then, the CPU 14 reads the sample data M1 and M2 of the registers 11a and 11b, calculates (M1-M2), and further calculates (M1
−M2) and the absolute value | M1−M2 |
compared with the h 2.

ステップで、比較結果により、|M1−M2|<Vth2
なければ、物品は読み取り空間にあると判断する。
In step, by comparison, | M1-M2 | unless <Vth 2, article determines that the reading space.

即ち、レジスタ11aのサンプル値M1は、ステップの
ように、物品無しの背景レベルのものであったので、レ
ジスタ11bのサンプル値M2がそれに落ちないと、物品無
しとは検出されず、しきい値Vth以上なら未だ物品は読
み取り空間にあると判断される。
That is, since the sample value M1 of the register 11a is of the background level without the article, as in the step, unless the sample value M2 of the register 11b falls to that level, it is not detected that there is no article, and the threshold value is not detected. If Vth or more, it is determined that the article is still in the reading space.

そして、CPU14は、M2カウント数C2を(C2+1)と更
新し、更新したM2カウント数C2を予定数X2と比較する。
Then, the CPU 14 updates the M2 count number C2 to (C2 + 1), and compares the updated M2 count number C2 with the planned number X2.

M2カウント数C2が予定数X2に達していなければ、ステ
ップに戻り、予定数X2に達していれば、物品は有る
が、動かない状態にあるとして、ステップの物品無し
としてしまう。
If the M2 count number C2 has not reached the planned number X2, the process returns to the step. If the M2 count number C2 has reached the planned number X2, it is determined that there is an article but it is in a state where it does not move, and there is no article in the step.

ステップで、CPU14は|M1−M2|<Vth2であれば、
レジスタ11bのサンプル値M2が背景レベルに落ちたと
し、物品無しと判定し、M2カウント数C2を零にして、ス
テップへ戻る。
In step, the CPU 14 determines that if | M1−M2 | <Vth 2 ,
It is determined that the sample value M2 of the register 11b has fallen to the background level, it is determined that there is no article, the M2 count number C2 is set to zero, and the process returns to the step.

このようにして、第5図のように、レジスタ4bをレジ
スタ4aより短い周期でサンプルし、両レジスタ11a、11b
の差(M1−M2)をとることによりレジスタ11aの背景レ
ベルに対する変化を検出することができる。
In this way, as shown in FIG. 5, the register 4b is sampled at a shorter cycle than the register 4a, and the two registers 11a and 11b are sampled.
By taking the difference (M1-M2), a change in the background level of the register 11a can be detected.

そして、その差を絶対値化して、しきい値と比較する
ことにより、背景レベルの変化をノイズとして拾わず、
誤検出を避けることができる。
Then, by converting the difference into an absolute value and comparing it with a threshold value, a change in the background level is not picked up as noise,
False detection can be avoided.

このM1サンプルの周期は、物品無しの状態では、ステ
ップの「X1」であり、一定であるが、物品検出される
と、ステップの物品無し検出まで又はステップの
「X2」の可変となる。
The cycle of the M1 sample is “X1” in the step when there is no article, and is constant. However, when an article is detected, the cycle becomes variable until the absence of the article in the step or “X2” in the step.

又、この実施例では、2つのしきい値Vth1、Vth2を用
いて、物品の進入と排出が検知でき、便利である。
Further, in this embodiment, the entry and discharge of the article can be detected using the two threshold values Vth 1 and Vth 2 , which is convenient.

更に、一定時間X2物品有りと判定すると、物品が動か
ないものとして物品無しの処理をするので、無駄に物品
無しとなるまで処理を繰返すことがない。
Further, if it is determined that there is an X2 article for a certain period of time, the article is processed assuming that the article does not move, so that the processing is not repeated until the article is useless.

次に、第6図及び第7図により外光サンプルについて
説明する。
Next, the external light sample will be described with reference to FIGS. 6 and 7. FIG.

先ず、CPU14は、制御信号CTL9をオフとし、アナロ
グスイッチAS2をオン、アナログスイッチAS3をオフとす
る。
First, the CPU 14 turns off the control signal CTL9, turns on the analog switch AS2, and turns off the analog switch AS3.

これによって、A/D変換部10は、サンプルホールド部
9との接続が断たれ、光電変換部2aの出力を直接A/D変
換することになる。
As a result, the A / D converter 10 is disconnected from the sample hold unit 9 and directly A / D converts the output of the photoelectric converter 2a.

この時、発光部1は発光していないので、A/D変換部1
0は、受光部2の受光する外光を直接A/D変換することに
なる。
At this time, since the light emitting unit 1 does not emit light, the A / D converter 1
0 means that the external light received by the light receiving unit 2 is directly subjected to A / D conversion.

そして、CPU14は、制御信号CTL6をオンとし、CTL7
をオフとして、基準電圧発生部5のアナログスイッチAS
4をオン、アナログスイッチAS5をオフとし、高基準電圧
Vref1をA/D変換部10へ基準電圧として与える。
Then, the CPU 14 turns on the control signal CTL6, and
Is turned off, and the analog switch AS of the reference voltage generator 5 is turned off.
4 on, analog switch AS5 off, high reference voltage
Vref 1 is supplied to the A / D converter 10 as a reference voltage.

又、CPU14は、制御信号CTL8をオフとし、光電変換部2
aのアナログスイッチAS1をオフとし、ゲイン抵抗r2を切
断し、アンプAMPのゲインを高ゲインとする。
Further, the CPU 14 turns off the control signal CTL8, and
and turning off the analog switch AS1 of a, disconnect the gain resistor r 2, the gain of the amplifier AMP and a high gain.

この状態で、CPU14は、A/D変換部10の出力値(外光
強度)をサンプルし、サンプル値DCと予定の外光しきい
値Vth3とを比較する。
In this state, CPU 14 is to sample the output value of the A / D converter 10 (the external light intensity), and compares the external light threshold Vth 3 scheduled the sample value DC.

サンプル値DCが外光しきい値Vth3以上なら、外乱光
が強いと判断し、CPU14は、第7図の点線のように、制
御信号CTL6をオフとし、CTL7をオンとし、基準電圧発生
部5のアナログスイッチAS4をオフ、アナログスイッチA
S5をオンとし、低基準電圧Vref2をA/D変換部10へ基準電
圧として与えるとともに、制御信号CTL8をオンとし、光
電変換部2aのアナログスイッチAS1をオンとし、ゲイン
抵抗r2を接続し、アンプAMPのゲインを低ゲインとす
る。
If the sample value DC external light threshold Vth 3 or more, it is determined that the ambient light is strong, CPU 14, as the dotted line in FIG. 7, a control signal CTL6 is turned off and then turned on the CTL7, reference voltage generator Turn off analog switch AS4 of 5, analog switch A
Turn on S5, apply the low reference voltage Vref 2 as a reference voltage to the A / D conversion unit 10, turn on the control signal CTL8, turn on the analog switch AS1 of the photoelectric conversion unit 2a, connect the gain resistor r2, The gain of the amplifier AMP is set to a low gain.

サンプル値DCが外光しきい値Vth3を越えない場合
は、制御信号CTL6、7、8をそのままとし、高ゲイン、
高基準電圧に設定する。
If the sample value DC does not exceed the external light threshold Vth 3 is a control signal CTL6,7,8 as it is, a high gain,
Set to high reference voltage.

そして、サンプル値DCが外光しきい値を越えない場合
又はステップの終了により、CPU14は制御信号CTL9を
オンとし、アナログスイッチAS2をオフ、アナログスイ
ッチAS3をオンとして、A/D変換部10と光電変換部2aの接
続を断ち、サンプルホールド部9と接続せしめて、リタ
ーンする。
Then, when the sample value DC does not exceed the external light threshold value or upon completion of the step, the CPU 14 turns on the control signal CTL9, turns off the analog switch AS2, turns on the analog switch AS3, and connects with the A / D conversion unit 10. The connection of the photoelectric conversion unit 2a is disconnected, and the photoelectric conversion unit 2a is connected to the sample hold unit 9, and the process returns.

このようにして、物品検出前に外乱光をモニターし、
外乱光強度が所定値以上であると、光電変換部2aを低ゲ
イン(感度)に、A/D変換部10の基準電圧を低電圧に切
換えることによって、ダイナミックレンジを拡大する。
In this way, the disturbance light is monitored before the article is detected,
When the intensity of the disturbance light is equal to or more than a predetermined value, the dynamic range is expanded by switching the photoelectric conversion unit 2a to a low gain (sensitivity) and switching the reference voltage of the A / D conversion unit 10 to a low voltage.

(c) 他の実施例の説明 上述の実施例では、ゲイン、基準電圧を2段階とした
が、3段階以上であってもよく、CPUが外光強度に応じ
て選択するようにしてもよい。
(C) Description of Another Embodiment In the above-described embodiment, the gain and the reference voltage are set in two steps. However, the gain and the reference voltage may be set in three or more steps, and the CPU may select the gain and the reference voltage in accordance with the external light intensity. .

又、光量変化検出部を制御部と一体のものとして説明
したが、別のものであってもよく、CPUの演算の一部を
専用のハードウェアで構成してもよい。
Also, the light amount change detection unit has been described as being integrated with the control unit, but may be another unit, and a part of the calculation of the CPU may be configured by dedicated hardware.

更に、バーコードリーダーへの適用を例に説明した
が、他のものに適用することもできる。
Further, the application to a barcode reader has been described as an example, but the invention can be applied to other types.

以上本発明を実施例により説明したが、本発明は本発
明の主旨に従い種々の変形が可能であり、本発明からこ
れらを排除するものではない。
Although the present invention has been described with reference to the embodiments, the present invention can be variously modified in accordance with the gist of the present invention, and these are not excluded from the present invention.

〔発明の効果〕〔The invention's effect〕

以上説明した様に、本発明によれば、予め外乱光をモ
ニターし、光電変換部の感度とA/D変換部の基準電圧を
選択するようにしたので、高電源を用いずにダイナミッ
クレンジを拡大でき、外乱光強度が強くても適切に反射
光強度から物品検出できるという効果を奏する。
As described above, according to the present invention, the disturbance light is monitored in advance and the sensitivity of the photoelectric conversion unit and the reference voltage of the A / D conversion unit are selected, so that the dynamic range can be increased without using a high power supply. This provides an effect that the article can be appropriately detected from the reflected light intensity even if the disturbance light intensity is high.

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

第1図は本発明の原理図、 第2図は本発明の一実施例ブロック図、 第3図は本発明の一実施例受光出力作成動作説明図、 第4図は本発明の一実施例物品検出処理フロー図、 第5図は本発明の一実施例物品検出動作説明図、 第6図は第4図における外光サンプル処理フロー図、 第7図は第6図の外光サンプル動作説明図、 第8図は従来技術の説明図である。 図中、1……発光部、 2……受光部、 2a……光電変換部、 5……基準電圧発生部、 6……制御部、 10……A/D変換部。 FIG. 1 is a principle diagram of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. FIG. 5 is an explanatory diagram of an article detecting operation according to one embodiment of the present invention, FIG. 6 is a flowchart of an external light sample processing in FIG. 4, and FIG. FIG. 8 is an explanatory view of the prior art. In the figure, 1 ... light emitting section, 2 ... light receiving section, 2a ... photoelectric converting section, 5 ... reference voltage generating section, 6 ... control section, 10 ... A / D converting section.

フロントページの続き (72)発明者 大山 吉博 東京都板橋区志村2丁目16番20号 株式 会社コパル内 (72)発明者 笹木 達男 東京都板橋区志村2丁目16番20号 株式 会社コパル内 (72)発明者 川合 弘晃 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (56)参考文献 特開 昭60−60576(JP,A)Continued on the front page (72) Inventor Yoshihiro Oyama 2-16-20 Shimura, Itabashi-ku, Tokyo Copal Corporation (72) Inventor Tatsuo Sasaki 2-16-20 Shimura, Itabashi-ku, Tokyo Copal Corporation (72 ) Inventor Hiroaki Kawai 1015 Uedanaka, Nakahara-ku, Kawasaki City, Kanagawa Prefecture Inside Fujitsu Limited (56) References JP-A-60-60576 (JP, A)

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】検知空間に検知光を出射する発光部(1)
と、 検知空間からの反射光を受光する受光部(2)と、 複数の感度を選択でき、該受光部(2)の受光量を選択
された感度で光電変換する光電変換部(2a)と、 該光電変換部(2a)の反射光強度出力をA/D変換するA/D
変換部(10)と、 複数の基準電圧を有し、選択に応じて所定の基準電圧を
該A/D変換部(10)に供給する基準電圧発生部(5)
と、 該A/D変換部(10)の出力から光量変化を検出して、物
品を検出する制御部(6)とを有し、 物品検知前に、該制御部(6)がA/D変換部(10)の出
力値を検出し、該出力に応じて該光電変換部(2a)の感
度と該A/D変換部(10)の基準電圧を選択制御すること
を 特徴とする物品検出方式。
A light emitting section for emitting detection light to a detection space.
And a light receiving unit (2) for receiving reflected light from the detection space; and a photoelectric conversion unit (2a) for selecting a plurality of sensitivities and photoelectrically converting the amount of light received by the light receiving unit (2) with the selected sensitivity. A / D for A / D converting the reflected light intensity output of the photoelectric conversion unit (2a)
A converter (10); a reference voltage generator (5) having a plurality of reference voltages and supplying a predetermined reference voltage to the A / D converter (10) according to selection;
And a control unit (6) for detecting a change in the amount of light from the output of the A / D conversion unit (10) to detect an article. The control unit (6) performs A / D conversion before the article is detected. Detecting an output value of the conversion unit (10) and selectively controlling the sensitivity of the photoelectric conversion unit (2a) and the reference voltage of the A / D conversion unit (10) according to the output value; method.
JP1268416A 1989-10-16 1989-10-16 Article detection method Expired - Fee Related JP2732911B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP1268416A JP2732911B2 (en) 1989-10-16 1989-10-16 Article detection method
US07/598,162 US5095203A (en) 1989-10-16 1990-10-16 Article detection device and method with shift registers and sampling
EP90311327A EP0424097B1 (en) 1989-10-16 1990-10-16 Article detection device and method for detecting the article
KR1019900016449A KR930006797B1 (en) 1989-10-16 1990-10-16 Article detection method and device
DE69021495T DE69021495T2 (en) 1989-10-16 1990-10-16 Article sensing device and method for determining the article.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1268416A JP2732911B2 (en) 1989-10-16 1989-10-16 Article detection method

Publications (2)

Publication Number Publication Date
JPH03129585A JPH03129585A (en) 1991-06-03
JP2732911B2 true JP2732911B2 (en) 1998-03-30

Family

ID=17458181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1268416A Expired - Fee Related JP2732911B2 (en) 1989-10-16 1989-10-16 Article detection method

Country Status (1)

Country Link
JP (1) JP2732911B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5790061A (en) * 1995-02-24 1998-08-04 Nec Corporation Adaptive A/D converting device for adaptively converting and input analog signal into an output digital signal having a constant quantizing error

Also Published As

Publication number Publication date
JPH03129585A (en) 1991-06-03

Similar Documents

Publication Publication Date Title
KR930006797B1 (en) Article detection method and device
US5359348A (en) Pointing device having improved automatic gain control and information reporting
US4356389A (en) Bar code scanner interface
JPH0650535B2 (en) Optical information reader
JP2732911B2 (en) Article detection method
JPH08129597A (en) Optical reader
US7247834B2 (en) Photoelectric sensor for detecting presence/absence of object
US5003378A (en) Automatic white balance circuit
US4950899A (en) Position detecting circuit with CCD and relatively moving source
KR100576821B1 (en) Image signal processing system
US5075542A (en) Photoelectric switch using pulse width discrimination
JP2732913B2 (en) Article detection device
JP2809549B2 (en) Amplifier
JP2732915B2 (en) Article detection method
JP2809551B2 (en) Synchronous amplification device
KR970011143B1 (en) Laserdiode control system for quantity of light and method of the same
KR100246772B1 (en) Device for driving laser
JPS61265878A (en) Optical modulation type detecting device
JP2761702B2 (en) Photodetector
JP2530719B2 (en) Photoelectric smoke detector
JP4754704B2 (en) Automatic sample hold device and pulse modulation high frequency signal generator
JPH03179816A (en) Electronic switch
JPH01149558A (en) Light transmitting data receiving circuit
JP4256745B2 (en) Optical information reader
JPH03129587A (en) Article detector

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071226

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20081226

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees