JP2001330432A - Distance sensor - Google Patents

Distance sensor

Info

Publication number
JP2001330432A
JP2001330432A JP2000153144A JP2000153144A JP2001330432A JP 2001330432 A JP2001330432 A JP 2001330432A JP 2000153144 A JP2000153144 A JP 2000153144A JP 2000153144 A JP2000153144 A JP 2000153144A JP 2001330432 A JP2001330432 A JP 2001330432A
Authority
JP
Japan
Prior art keywords
light
light receiving
sum
receiving signals
gain
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
JP2000153144A
Other languages
Japanese (ja)
Other versions
JP3513079B2 (en
Inventor
Hisanori Imai
寿教 今井
Masataka Hayashi
正隆 林
Atsuro Toda
敦郎 戸田
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.)
Panasonic Industrial Devices SUNX Co Ltd
Original Assignee
Sunx 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 Sunx Ltd filed Critical Sunx Ltd
Priority to JP2000153144A priority Critical patent/JP3513079B2/en
Publication of JP2001330432A publication Critical patent/JP2001330432A/en
Application granted granted Critical
Publication of JP3513079B2 publication Critical patent/JP3513079B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Measurement Of Optical Distance (AREA)
  • Optical Radar Systems And Details Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a distance sensor which can further shorten the time required until a distance is sensed after an object to be detected is positioned in a sensing area. SOLUTION: By a CPU, the gain of a variable-gain amplifier is stored in a RAM when the sum C of light receiving signals is within a prescribed range (L<C<H) ((4)). When the sum C of the light receiving signals is less than a lower-limit value L (=C') even when the gain is set to be maximum, the gain of the variable-gain amplifier is set to a value stored in the RAM until the sum C is changed ((5), (6)).

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、被検出物との距離
を光学的手段によって測定する反射型の距離センサに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a reflection type distance sensor for measuring a distance to an object by optical means.

【0002】[0002]

【従来の技術】図6は、一般的な反射型距離センサの光
学系を中心とする構成例を示すものである。即ち、駆動
回路1によりLED2などの投光素子を駆動させて発光
させ、その光を、投光レンズ3を介して被検出物4に投
光させる。すると、被検出物4の表面で反射された光
は、受光レンズ5を介して一次元位置検出素子であるP
SD(Positon Sensitive Device)6の受光面に照射され
る。
2. Description of the Related Art FIG. 6 shows an example of a configuration centering on an optical system of a general reflection type distance sensor. That is, the light emitting element such as the LED 2 is driven by the drive circuit 1 to emit light, and the light is emitted to the object 4 via the light emitting lens 3. Then, the light reflected on the surface of the detection target 4 passes through the light receiving lens 5 to the one-dimensional position detection element P
The light is irradiated on a light receiving surface of an SD (Positon Sensitive Device) 6.

【0003】PSD6は、受光面の受光位置に応じて強
度が変化する2つの受光信号A(NEAR),B(FAR) を出力
するようになっている。即ち、距離センサから被検出物
4までの距離が変化すると、PSD6の受光面における
反射光の受光位置が一次元的に変化するので、2つの受
光信号A,Bの大きさに基づいて被検出物4までの距離
が検出可能となる。
The PSD 6 outputs two light receiving signals A (NEAR) and B (FAR) whose intensity changes according to the light receiving position on the light receiving surface. That is, when the distance from the distance sensor to the detection target 4 changes, the light receiving position of the reflected light on the light receiving surface of the PSD 6 changes one-dimensionally, so that the detection is performed based on the magnitudes of the two light receiving signals A and B. The distance to the object 4 can be detected.

【0004】斯様な距離センサは、例えば、工場の搬送
ラインにおいて順次搬送されてくる製品に部品を取付
け,圧入した後の寸法チェック,部品の高さ(公差)検
出,ねじ締めが良好に行われていることのチェックなど
に使用される。
[0004] Such a distance sensor mounts components on products that are sequentially conveyed on a transport line in a factory, performs dimensional checking after press-fitting, detects the height (tolerance) of components, and performs screw tightening satisfactorily. It is used for checking that things are being done.

【0005】図7は、距離センサの電気的構成を詳細に
示すものである。投光側において、駆動回路1は、駆動
用アンプ7とNPN型のトランジスタ8とで構成されて
おり、LED2は、電源とトランジスタ8のコレクタと
の間に接続されている。また、トランジスタ8のエミッ
タは、グランドに接続されている。
FIG. 7 shows the electrical configuration of the distance sensor in detail. On the light projecting side, the drive circuit 1 includes a drive amplifier 7 and an NPN transistor 8, and the LED 2 is connected between the power supply and the collector of the transistor 8. The emitter of the transistor 8 is connected to the ground.

【0006】駆動用アンプ7の入力端子には、CPU
(マイクロコンピュータ)9から所定周期で出力される
投光パルス信号が与えられるようになっており、駆動用
アンプ7の出力端子は、トランジスタ8のベースに接続
されている。そして、CPU9は、駆動用アンプ7のゲ
インを制御することでトランジスタ8のベース電流を変
化させて、LED2の投光量が制御可能となっている。
The input terminal of the driving amplifier 7 has a CPU
(Microcomputer) 9 is provided with a light emission pulse signal output at a predetermined cycle. The output terminal of the driving amplifier 7 is connected to the base of the transistor 8. The CPU 9 changes the base current of the transistor 8 by controlling the gain of the driving amplifier 7 so that the amount of light emitted from the LED 2 can be controlled.

【0007】一方、受光側において、PSD6の一方(N
EAR 側)の出力端子6Aには、I−V変換部10A,可
変ゲインアンプ11A,サンプルホールド回路12A及
びA/Dコンバータ13Aが直列に接続されており、A
/Dコンバータ13Aの出力データはCPU9に与えら
れている。尚、PSD6の他方(FAR側)の出力端子6B
側も同様に構成されており、図6では符号に“B”を付
して示している。また、以降において特にA,Bの区別
を付ける必要がない場合には、符号にはこれらを付さず
に記載する。
On the other hand, one of the PSDs 6 (N
An output terminal 6A on the EAR side is connected in series with an IV converter 10A, a variable gain amplifier 11A, a sample and hold circuit 12A, and an A / D converter 13A.
The output data of the / D converter 13A is given to the CPU 9. The output terminal 6B on the other side (FAR side) of the PSD 6
The side is also configured in the same manner. In FIG. 6, "B" is added to the reference numeral. In the following, unless it is particularly necessary to distinguish between A and B, reference numerals are used without adding them.

【0008】サンプルホールド回路12A及び12Bの
出力端子は、加算器14の2つの入力端子に夫々接続さ
れており、その加算器14の出力端子は、A/Dコンバ
ータ15の入力端子に接続されている。A/Dコンバー
タ15の出力データは、A/Dコンバータ13A,13
Bと同様にCPU9に与えられている。尚、サンプルホ
ールド回路12は、アナログスイッチ12a,コンデン
サ12b及びボルテージ・フォロワ(オペアンプ)12
cによって構成されている。
The output terminals of the sample and hold circuits 12A and 12B are connected to two input terminals of an adder 14, respectively. The output terminal of the adder 14 is connected to the input terminal of an A / D converter 15. I have. The output data of the A / D converter 15 is output to the A / D converters 13A and 13A.
Like B, it is given to the CPU 9. The sample and hold circuit 12 includes an analog switch 12a, a capacitor 12b, and a voltage follower (operational amplifier) 12
c.

【0009】そして、CPU9は、可変ゲインアンプ1
1にゲインコントロール信号を与えてそれらのゲインを
制御すると共に、サンプルホールド回路12のアナログ
スイッチ12aにS/H信号を与えて、可変ゲインアン
プ11からの出力信号のレベルをホールドさせる。
Then, the CPU 9 controls the variable gain amplifier 1
1 is supplied with a gain control signal to control the gain thereof, and the analog switch 12a of the sample hold circuit 12 is supplied with an S / H signal to hold the level of the output signal from the variable gain amplifier 11.

【0010】サンプルホールド回路12は、S/H信号
が与えられてアナログスイッチ12aがONすると、コ
ンデンサ12bが可変ゲインアンプ11の出力信号のレ
ベルで充電され、アナログスイッチ12aがOFFして
いる間は、コンデンサ12bの充電レベルを保持するよ
うになっている。そして、ボルテージ・フォロワ12c
の出力信号のレベルは、コンデンサ12bの充電レベル
と同一になる。
When the S / H signal is applied and the analog switch 12a is turned on, the sample-and-hold circuit 12 charges the capacitor 12b at the level of the output signal of the variable gain amplifier 11 while the analog switch 12a is turned off. , The charge level of the capacitor 12b is held. And Voltage Follower 12c
Is the same as the charge level of the capacitor 12b.

【0011】図8及び図9は、CPU9の制御内容を示
すフローチャートであり、図10は、フローチャートの
実行に伴う各信号の変化を示すタイミングチャートであ
る。尚、可変ゲインアンプ11のゲインは、初期状態で
最小(MIN)に設定されている。先ず、CPU9は、
駆動回路1に投光パルスを出力してLED2を発光させ
ると(ステップS1)、サンプルホールド回路12にS
/H信号を出力して、PSD6が出力している2つの受
光信号のレベル(可変ゲインアンプ11の出力レベル)
をホールドさせる(ステップS2)。
FIGS. 8 and 9 are flowcharts showing the contents of control by the CPU 9, and FIG. 10 is a timing chart showing changes in each signal accompanying the execution of the flowchart. Note that the gain of the variable gain amplifier 11 is set to a minimum (MIN) in an initial state. First, the CPU 9
When a light emission pulse is output to the drive circuit 1 to cause the LED 2 to emit light (step S1), the sample hold circuit 12
/ H signal is output, and the level of the two light receiving signals output by the PSD 6 (output level of the variable gain amplifier 11)
Is held (step S2).

【0012】次に、CPU9は、A/Dコンバータ15
の出力データとして与えられる前記2つの受光信号レベ
ルの和Cを読み込んで(ステップS3)、その和Cが所
定範囲(略目標値)の下限値Lよりも小であるか否かを
判定する(ステップS4)。被検出物4が距離センサの
検出エリアにない時点(図10,)では反射光は受光
側に入光せず、受光信号レベルは“0”であるため、C
PU9は「NO」と判断して可変ゲインアンプ11のゲ
インを最大(MAX)まで上昇させる(ステップS
5)。以降、被検出物4が検出エリアに位置するまでこ
のままの状態が維持され、この間は、ステップS1〜S
5が繰り返し実行される。
Next, the CPU 9 includes an A / D converter 15
Is read (step S3), and it is determined whether or not the sum C is smaller than a lower limit L of a predetermined range (substantially a target value) (step S3). Step S4). When the object 4 is not in the detection area of the distance sensor (FIG. 10), the reflected light does not enter the light receiving side and the light receiving signal level is "0".
The PU 9 determines “NO” and increases the gain of the variable gain amplifier 11 to the maximum (MAX) (Step S
5). Thereafter, this state is maintained until the object to be detected 4 is located in the detection area.
5 is repeatedly executed.

【0013】そして、被検出物4が検出エリアに位置す
ると(図10,)、LED2からの投光が被検出物4
の表面で反射され、その反射光がPSD6によって受光
される。この時、可変ゲインアンプ11のゲインは最大
となっているため、CPU9がステップS3で読み込ん
だ受光信号レベルの和Cは飽和する。すると、CPU9
は、ステップS4において「NO」と判断して、和Cが
所定範囲の上限値Hよりも大であるか否かを判定する
(ステップS6)。
When the object 4 is located in the detection area (FIG. 10), the light emitted from the LED 2 is emitted from the object 4.
The reflected light is received by the PSD 6. At this time, since the gain of the variable gain amplifier 11 is at the maximum, the sum C of the light receiving signal levels read by the CPU 9 in step S3 is saturated. Then, the CPU 9
Determines "NO" in step S4, and determines whether the sum C is greater than the upper limit H of the predetermined range (step S6).

【0014】この場合、和Cは飽和しているのでCPU
9は「YES」と判断して、和Cが上限値H以下となる
まで、可変ゲインアンプ11のゲインを1段階ずつ低下
させる(ステップS7)。そして、図10の時点にお
いて和Cが上限値H以下になり(ステップS7,「N
O」)L<C<Hの範囲内に入ると、CPU9は、図9
に示す演算ルーチンを実行して(ステップS8)被検出
物4までの距離を検出する。
In this case, since the sum C is saturated, the CPU
9 determines “YES”, and decreases the gain of the variable gain amplifier 11 by one step until the sum C becomes equal to or less than the upper limit value H (step S7). Then, at the time of FIG. 10, the sum C becomes equal to or less than the upper limit H (step S7, “N
O ") When the value falls within the range of L <C <H, the CPU 9 proceeds to FIG.
(Step S8), the distance to the object 4 is detected.

【0015】このように、受光信号の和Cが、L<C<
H,の範囲内に入った場合に距離を検出するのは、被検
出物4の表面の状態によって反射率にばらつきが生じる
ことがあり、和Cのレベルが飽和した場合には演算ルー
チンにおける距離検出が不能となるからである。
Thus, the sum C of the light receiving signals is L <C <
The reason for detecting the distance when the value falls within the range of H, is that the reflectivity may vary depending on the state of the surface of the detection target 4. If the level of the sum C is saturated, the distance is calculated in the calculation routine. This is because detection becomes impossible.

【0016】演算ルーチンにおいて、CPU9は、受光
信号AとBとの差分値Dを得ると(ステップT1)、そ
の差分値Dを和Cで除すことによって検出距離信号Xを
求める(ステップT2)。そして、ステップS8の演算
ルーチンを終了すると、ステップS1に戻る。
In the calculation routine, when the CPU 9 obtains the difference value D between the light receiving signals A and B (step T1), the CPU 9 obtains the detection distance signal X by dividing the difference value D by the sum C (step T2). . When the calculation routine of step S8 ends, the process returns to step S1.

【0017】そして被検出物4が距離センサの検出エリ
アを外れると(図10,)、時点と同様に反射光が
受光側に入光しなくなるため、CPU9は、再びステッ
プS4で「YES」と判断して、可変ゲインアンプ11
のゲインを最大まで上昇させる。
When the object 4 goes out of the detection area of the distance sensor (FIG. 10), the reflected light does not enter the light receiving side as in the case of the time point, and the CPU 9 returns "YES" in step S4 again. Judge, the variable gain amplifier 11
Increase the gain of the maximum.

【0018】[0018]

【発明が解決しようとする課題】即ち、以上述べたよう
に、CPU9は、被検出物4が距離センサの検出エリア
を外れる毎に可変ゲインアンプ11のゲインを最大に設
定し、次に、被検出物4が検出エリア内に到来すると、
可変ゲインアンプ11のゲインを段階的に低下させ、受
光信号の和Cが、L<C<Hの範囲内に入るまで待って
距離を検出している。そのため、被検出物4が検出エリ
アに入ってから距離を検出するまでの時間が長くならざ
るを得ず、搬送ラインにおける搬送速度を、距離センサ
の検出時間に応じて制限しなければならないという問題
があった。
That is, as described above, the CPU 9 sets the gain of the variable gain amplifier 11 to the maximum every time the object 4 goes out of the detection area of the distance sensor. When the detection object 4 arrives in the detection area,
The gain of the variable gain amplifier 11 is reduced stepwise, and the distance is detected until the sum C of the light receiving signals falls within the range of L <C <H. Therefore, the time from when the detection target 4 enters the detection area to when the distance is detected must be long, and the transport speed on the transport line must be limited according to the detection time of the distance sensor. was there.

【0019】本発明は上記事情に鑑みてなされたもので
あり、その目的は、被検出物が検出エリアに位置してか
ら、距離を検出するまでに要する時間をより短くするこ
とができる距離センサを提供することにある。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a distance sensor capable of shortening the time required for detecting a distance after an object is located in a detection area. Is to provide.

【0020】[0020]

【課題を解決するための手段】上記目的を達成するた
め、本発明の距離センサは、被検出物に投光する投光手
段と、前記投光の前記被検出物による反射光を該被検出
物との距離に応じた受光点で受光するように設けられ、
その受光点の位置に応じた第1及び第2の受光信号を出
力する受光手段と、前記第1及び第2の受光信号を増幅
する一対の増幅手段と、この増幅手段により増幅された
第1及び第2の受光信号を受けて、これらの受光信号の
和が略目標値となるように前記投光手段の投光量または
前記増幅手段の増幅率を制御する制御手段と、前記第1
及び第2の受光信号の和が略目標値となる場合の第1及
び第2の受光信号に基づいて、前記被検出物までの距離
を演算する演算手段とを備えてなるものにおいて、前記
制御手段は、前記受光信号の和が略目標値となる場合の
前記投光手段の投光量または前記増幅手段の増幅率を記
憶手段に記憶させ、前記投光量または前記増幅率を最大
に設定しても前記受光信号の和が前記目標値を下回って
いる場合には、その和が変化するまでの間、前記投光量
または前記増幅率を前記記憶手段に記憶させた値に設定
するように構成されていることを特徴とする。
To achieve the above object, a distance sensor according to the present invention comprises: a light projecting means for projecting light onto an object; It is provided to receive light at the light receiving point according to the distance to the object,
Light receiving means for outputting first and second light receiving signals corresponding to the position of the light receiving point, a pair of amplifying means for amplifying the first and second light receiving signals, and a first amplifying means amplified by the amplifying means Control means for receiving the second light receiving signal and controlling the light emitting amount of the light projecting means or the amplification factor of the amplifying means so that the sum of these light receiving signals becomes substantially a target value;
And calculating means for calculating the distance to the object based on the first and second light receiving signals when the sum of the second light receiving signal and the second light receiving signal is substantially equal to the target value. The means stores the light emission amount of the light emitting means or the amplification rate of the amplifying means in the storage means when the sum of the light receiving signals is substantially a target value, and sets the light emission amount or the amplification rate to a maximum. Also, when the sum of the light receiving signals is lower than the target value, the light emitting amount or the amplification factor is set to a value stored in the storage unit until the sum changes. It is characterized by having.

【0021】即ち、被検出物が検出エリア内に位置して
いない状態では、受光手段が反射光を受光することがな
いので、投光手段の投光量や増幅手段の増幅率を最大に
設定しても受光信号の和が目標値を下回る状態になる。
その場合に、制御手段は、前記投光量または前記増幅率
を記憶手段に記憶させた値に設定するので、投光量また
は増幅率は、被検出物が検出エリア内に位置している場
合と同じレベルとなる。
That is, when the object to be detected is not located in the detection area, the light receiving means does not receive the reflected light, so that the light amount of the light projecting means and the amplification factor of the amplifying means are set to the maximum. Even so, the sum of the light receiving signals falls below the target value.
In this case, the control unit sets the projected light amount or the amplification factor to the value stored in the storage unit, so that the projected light intensity or the amplification factor is the same as when the object is located in the detection area. Level.

【0022】そして、次回に被検出物が検出エリア内に
位置することで受光手段が反射光を受光すると、その時
点で前記投光量または前記増幅率は記憶手段に記憶させ
た値に設定されているので、受光信号の和は略目標値と
なる。従って、制御手段は距離の検出を直ちに開始する
ことができるようになる。
Next, when the object to be detected is located in the detection area next time and the light receiving means receives the reflected light, the light emission amount or the amplification factor is set to the value stored in the storage means at that time. Therefore, the sum of the light receiving signals is substantially equal to the target value. Therefore, the control means can immediately start detecting the distance.

【0023】[0023]

【発明の実施の形態】以下、本発明の一実施例について
図1乃至図5を参照して説明する。尚、図6乃至図7と
同一部分には同一符号を付して説明を省略し、以下異な
る部分についてのみ説明する。本実施例の構成は、図6
及び図7に示すものと略同様であり、電気的構成を示す
図5においては、CPU9に代わるCPU(制御手段)
21における処理内容が異なっている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS. 6 and 7 are denoted by the same reference numerals and description thereof is omitted, and only different portions will be described below. The configuration of this embodiment is shown in FIG.
5, which is substantially the same as that shown in FIG. 7, and in FIG.
21 is different.

【0024】即ち、図1のフローチャートにおいては、
ステップS6においてCPU21が「NO」と判断した
場合、ステップS8の演算ルーチンを実行する以前に、
CPU21は、その時点の可変ゲインアンプ(増幅手
段)11のゲイン(増幅率)をゲインSTRとして内部
のRAM(記憶手段)21aに記憶させる(ステップS
9)。
That is, in the flowchart of FIG.
When the CPU 21 determines “NO” in step S6, before executing the calculation routine in step S8,
The CPU 21 stores the gain (amplification rate) of the variable gain amplifier (amplifying means) 11 at that time in the internal RAM (storage means) 21a as the gain STR (step S).
9).

【0025】また、図4に示すタイミングチャートにお
いても、各信号の変化は時点〜までは図10に示す
タイミングチャートと同様であるが、上述したステップ
S9は時点で実行される。
In the timing chart shown in FIG. 4, the change of each signal is the same as the timing chart shown in FIG. 10 up to the point in time, but the above-described step S9 is executed at the point in time.

【0026】CPU21は、ステップS8の実行後は、
図2に示すステップS10〜S13を実行するが、これ
らの処理内容はステップS1〜S4と同じである。そし
て、図4の時点において被検出物4が距離センサの検
出エリアを外れて、LED(投光手段)2からの投光を
PSD(受光手段)6が受光できなくなった場合、CP
U21は、ステップS13で「YES」と判断してステ
ップS14に移行し、現在の可変ゲインアンプ11のゲ
インが最大に設定されているか否かを判断する。ゲイン
が最大でなければ(「NO」)、その時点でステップS
5と同様にゲインを最大に設定する(ステップS1
5)。それから、ステップS10に戻る。
After the execution of step S8, the CPU 21
Steps S10 to S13 shown in FIG. 2 are executed, and the processing contents are the same as steps S1 to S4. When the object 4 is out of the detection area of the distance sensor at the time point in FIG. 4 and the PSD (light receiving means) 6 cannot receive the light emitted from the LED (light emitting means) 2, the CP
U21 determines "YES" in step S13, and proceeds to step S14, where it determines whether the current gain of the variable gain amplifier 11 is set to the maximum. If the gain is not the maximum ("NO"), then step S
5, the gain is set to the maximum (step S1).
5). Then, the process returns to step S10.

【0027】すると、CPU21は、次回の投光周期で
はステップS14で「YES」と判断してステップS1
6に移行し、ステップS9でRAM21に記憶させたゲ
インSTRを読み出して可変ゲインアンプ11に設定す
る(図4,)。尚、ステップS13の時点において、
被検出物4が距離センサの検出エリア内に位置すること
で受光信号の和Cが下限値L以上となると(「N
O」)、ステップS17〜S20が実行されるが、これ
らの処理はS6〜S9と同様である。
Then, the CPU 21 determines "YES" in step S14 in the next light emitting cycle, and proceeds to step S1.
6, the gain STR stored in the RAM 21 in step S9 is read and set in the variable gain amplifier 11 (FIG. 4). At the time of step S13,
When the detected object 4 is located within the detection area of the distance sensor and the sum C of the light receiving signals is equal to or larger than the lower limit L (“N
O "), steps S17 to S20 are executed, and these processes are the same as S6 to S9.

【0028】次に、CPU21は、図3に示すステップ
S21に移行し、その時点での受光信号の和CをC′と
してRAM21aに記憶させる。続くステップS22〜
S24の処理内容はステップS1〜S3と同じであり、
ステップS25においては、その時点での受光信号の和
CがステップS21でRAM21aに記憶させたC′に
等しいか否かを判断する。両者が等しければ(「YE
S」)ステップS21に戻るようになっており、即ち、
受光信号の和Cが変化しなければ、ステップS21〜S
25を繰り返し実行する。
Next, the CPU 21 proceeds to step S21 shown in FIG. 3, and stores the sum C of the light receiving signals at that time as C 'in the RAM 21a. Subsequent steps S22-
The processing content of S24 is the same as steps S1 to S3,
In step S25, it is determined whether or not the sum C of the received light signals at that time is equal to C 'stored in the RAM 21a in step S21. If both are equal ("YE
S "), the process returns to step S21, that is,
If the sum C of the received light signals does not change, steps S21 to S21
25 is repeated.

【0029】そして、次の被検出物4が検出エリア内に
位置すると(図4,)、受光信号の和Cが上昇するの
で(ステップS25,「NO」)、CPU21は、ステ
ップS26に移行してステップS4と同様の判断を行
い、和Cが下限値L以上であれば(「NO」)ステップ
S28に移行してステップS6と同様の判断を行う。
When the next object 4 is located within the detection area (FIG. 4), the sum C of the received light signals increases (step S25, "NO"), and the CPU 21 proceeds to step S26. The same determination as in step S4 is performed, and if the sum C is equal to or greater than the lower limit L ("NO"), the flow shifts to step S28 to perform the same determination as step S6.

【0030】この時、可変ゲインアンプ11のゲインは
STRに設定されているので、被検出物4表面の反射率
が前回と同等であれば、和Cは、L<C<Hの範囲内に
あるので、CPU21は、ステップS26,S28にお
いて何れも「NO」と判断する。そして、その時点にお
ける可変ゲインアンプ11のゲインをSTRとしてRA
M21aに記憶させて更新すると(ステップS30)、
図9に示す演算ルーチンを実行して距離検出信号Xを求
める(ステップS31)。それからステップS10に戻
る。
At this time, since the gain of the variable gain amplifier 11 is set to STR, if the reflectance of the surface of the object 4 is the same as the previous time, the sum C is within the range of L <C <H. Therefore, the CPU 21 determines “NO” in both steps S26 and S28. Then, the gain of the variable gain amplifier 11 at that time is set as STR and RA
When stored and updated in M21a (step S30),
The calculation routine shown in FIG. 9 is executed to obtain the distance detection signal X (step S31). Then, the process returns to step S10.

【0031】また、ステップS26において、被検出物
4表面の反射率が前回よりも低く、和Cが下限値L未満
であれば(「YES」)ステップS27に移行して可変
ゲインアンプ11のゲインを上昇させてからステップS
10に移行する。尚、この場合は、ステップS5のよう
にゲインをいきなり最大に設定する必要はなく、より小
さい値で上昇させるようにする。また、ステップS28
において、被検出物4表面の反射率が前回よりも高く、
和Cが上限値Hを超えた場合は(「YES」)ステップ
S29に移行して、可変ゲインアンプ11のゲインを低
下させてからステップS10に移行する。
If it is determined in step S26 that the reflectance of the surface of the object 4 is lower than the previous time and the sum C is less than the lower limit L ("YES"), the process proceeds to step S27 and the gain of the variable gain amplifier 11 is changed. And then step S
Move to 10. In this case, it is not necessary to set the gain to the maximum immediately as in step S5, but to increase the gain by a smaller value. Step S28
, The reflectance of the surface of the detection object 4 is higher than the previous time,
If the sum C exceeds the upper limit value H ("YES"), the process proceeds to step S29, in which the gain of the variable gain amplifier 11 is reduced, and then proceeds to step S10.

【0032】以上のように本実施例によれば、CPU2
1は、受光信号の和Cが所定範囲(目標値)内(L<C
<H)となる場合の可変ゲインアンプ11のゲインをR
AM21aに記憶させ、ゲインを最大に設定しても受光
信号の和Cが下限値Lを下回っている(=C′)場合に
は、その和Cが変化するまでの間、可変ゲインアンプ1
1のゲインをRAM21aに記憶させた値に設定するよ
うにした。
As described above, according to the present embodiment, the CPU 2
1 indicates that the sum C of the received light signals is within a predetermined range (target value) (L <C
<H), the gain of the variable gain amplifier 11 is set to R
If the sum C of the received light signals is smaller than the lower limit L (= C ′) even when the gain C is stored in the AM 21a and the gain is set to the maximum, the variable gain amplifier 1 is used until the sum C changes.
The gain of 1 is set to the value stored in the RAM 21a.

【0033】即ち、被検出物4が検出エリア内に位置し
ていない状態で、可変ゲインアンプ11のゲインは被検
出物4が検出エリア内に位置している場合と同じレベル
に維持される。そして、次回に被検出物4が検出エリア
内に位置することでPSD6が反射光を受光すると、従
来とは異なり受光信号の和Cが飽和することなく、その
時点で和Cは略所定範囲内となる。
That is, when the object 4 is not located in the detection area, the gain of the variable gain amplifier 11 is maintained at the same level as when the object 4 is located in the detection area. Then, when the PSD 6 receives the reflected light the next time the object 4 is positioned within the detection area, the sum C of the received light signal does not saturate, unlike the related art, and the sum C is substantially within the predetermined range at that time. Becomes

【0034】よって、CPU21は、和Cが所定範囲内
となるまでゲインを段階的に低下させて調整を行う必要
が殆どなく、距離の検出を直ちに開始することができ
る。また、被検出物4表面の反射率が前回と異なるため
和Cが所定範囲外となった場合でも、短時間で所定範囲
内となるように制御することができる。
Accordingly, the CPU 21 rarely needs to adjust the gain by gradually decreasing the gain until the sum C falls within the predetermined range, and can immediately start detecting the distance. Further, even if the sum C is out of the predetermined range because the reflectance of the surface of the detection object 4 is different from the previous time, the control can be performed so as to be within the predetermined range in a short time.

【0035】従って、被検出物4が検出エリア内に位置
してから距離の検出が完了するまでの時間を従来よりも
短縮して高速化することができるので、搬送ラインによ
る被検出物4の搬送速度をより速く設定することができ
る。よって、本実施例の距離センサを使用することで生
産効率を向上させることも可能となる。
Therefore, the time from when the object 4 is located in the detection area to when the distance detection is completed can be shortened and the speed can be increased as compared with the conventional art, so that the object 4 can be transported by the transport line. The transport speed can be set faster. Therefore, by using the distance sensor of the present embodiment, it is possible to improve production efficiency.

【0036】本発明は上記し且つ図面に記載した実施例
にのみ限定されるものではなく、以下のような変形また
は拡張が可能である。可変ゲインアンプ11のゲイン制
御をより速く収束させるため、受光信号の和Cが所定範
囲内(L<C<H)に入った場合のゲインをRAM21
aに記憶させるようにしたが、CPU21の処理速度が
十分速い場合には、受光信号の和Cが所定値(目標値)
となるように制御しても良い。CPU21の外部におい
て受光信号の和Cをハードウエアによって得る構成に代
えて、和Cを、CPU21の内部において、ソフトウエ
アにより受光信号A,Bから演算して求めても良い。可
変ゲインアンプ11のゲインを変化させるものに限ら
ず、LED2の投光量を変化させても良い。
The present invention is not limited to the embodiment described above and shown in the drawings, and the following modifications or extensions are possible. In order to make the gain control of the variable gain amplifier 11 converge more quickly, the gain when the sum C of the received light signals falls within a predetermined range (L <C <H) is stored in the RAM 21.
However, when the processing speed of the CPU 21 is sufficiently high, the sum C of the light receiving signals is equal to a predetermined value (target value).
May be controlled so that Instead of a configuration in which the sum C of the received light signals is obtained outside the CPU 21 by hardware, the sum C may be calculated inside the CPU 21 from the received light signals A and B by software. The present invention is not limited to changing the gain of the variable gain amplifier 11, and the light projection amount of the LED 2 may be changed.

【0037】[0037]

【発明の効果】本発明の距離センサによれば、制御手段
は、受光信号の和が略目標値となる場合の投光手段の投
光量または増幅手段の増幅率を記憶手段に記憶させ、前
記投光量または前記増幅率を最大に設定しても受光信号
の和が目標値を下回っている場合には、その和が変化す
るまでの間、前記投光量または前記増幅率を記憶手段に
記憶させた値に設定する。
According to the distance sensor of the present invention, the control means causes the storage means to store the light intensity of the light projecting means or the amplification factor of the amplifying means when the sum of the light receiving signals is substantially equal to the target value. If the sum of the received light signals is lower than the target value even when the light emission amount or the amplification factor is set to the maximum, the light emission amount or the amplification ratio is stored in the storage unit until the sum changes. Set the value to

【0038】即ち、被検出物が検出エリア内に位置して
いない状態では、増幅手段の増幅率または投光手段の投
光量は、被検出物が検出エリア内に位置している場合と
同じレベルに設定されるので、次回に被検出物が検出エ
リア内に位置することで受光手段が反射光を受光する
と、その受光信号の和は略目標値となる。従って、制御
手段は、被検出物までの距離の検出を従来よりも高速に
行うことができる。
That is, when the object is not located in the detection area, the amplification factor of the amplifying means or the light emission amount of the light projecting means is at the same level as when the object is located in the detection area. Therefore, when the light receiving means receives the reflected light the next time the object is located in the detection area, the sum of the light receiving signals becomes substantially the target value. Therefore, the control means can detect the distance to the object at a higher speed than before.

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

【図1】本発明の一実施例を示すものであり、CPUに
よる制御内容のフローチャート(その1)
FIG. 1, showing an embodiment of the present invention, is a flowchart of control by a CPU (part 1).

【図2】CPUによる制御内容のフローチャート(その
2)
FIG. 2 is a flowchart of control contents by a CPU (part 2).

【図3】CPUによる制御内容のフローチャート(その
3)
FIG. 3 is a flowchart of control contents by a CPU (part 3).

【図4】フローチャートの実行に伴う各信号の変化を示
すタイミングチャート
FIG. 4 is a timing chart showing changes in each signal according to execution of the flowchart.

【図5】距離センサの電気的構成を詳細に示す図FIG. 5 is a diagram showing the electrical configuration of the distance sensor in detail.

【図6】一般的な反射型距離センサの光学系を中心とす
る構成例を示す図
FIG. 6 is a diagram showing a configuration example centering on an optical system of a general reflection type distance sensor.

【図7】従来技術を示す図5相当図FIG. 7 is a diagram corresponding to FIG. 5 showing a conventional technique.

【図8】図1相当図FIG. 8 is a diagram corresponding to FIG. 1;

【図9】演算処理ルーチンのフローチャートFIG. 9 is a flowchart of an arithmetic processing routine;

【図10】図4相当図FIG. 10 is a diagram corresponding to FIG. 4;

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

2はLED(投光手段)、4は被検出物、6はPSD
(受光手段)、11は可変ゲインアンプ(増幅手段)、
21はCPU(制御手段)、21aはRAM(記憶手
段)を示す。
2 is an LED (light emitting means), 4 is an object to be detected, 6 is a PSD
(Light receiving means), 11 is a variable gain amplifier (amplifying means),
21 denotes a CPU (control means) and 21a denotes a RAM (storage means).

───────────────────────────────────────────────────── フロントページの続き (72)発明者 戸田 敦郎 東京都立川市曙町三丁目5番3号サンクス 株式会社内 Fターム(参考) 2F065 AA06 BB05 CC04 DD06 FF09 GG07 GG12 HH04 HH13 JJ02 JJ16 JJ25 NN02 NN13 NN17 PP22 QQ02 QQ03 QQ23 QQ25 QQ27 RR07 UU05 2F112 AA06 BA05 CA04 EA09 FA03 FA05 FA21 FA45 5J084 AA05 BA02 BA33 BB01 CA21 CA23 DA01 EA05 FA03  ──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Atsuro Toda 3-5-3 Akebonocho, Tachikawa-shi, Tokyo Sunkus Inc. F-term (reference) 2F065 AA06 BB05 CC04 DD06 FF09 GG07 GG12 HH04 HH13 JJ02 JJ16 JJ25 NN02 NN13 NN17 PP22 QQ02 QQ03 QQ23 QQ25 QQ27 RR07 UU05 2F112 AA06 BA05 CA04 EA09 FA03 FA05 FA21 FA45 5J084 AA05 BA02 BA33 BB01 CA21 CA23 DA01 EA05 FA03

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 被検出物に投光する投光手段と、 前記投光の前記被検出物による反射光を該被検出物との
距離に応じた受光点で受光するように設けられ、その受
光点の位置に応じた第1及び第2の受光信号を出力する
受光手段と、 前記第1及び第2の受光信号を増幅する一対の増幅手段
と、 この増幅手段により増幅された第1及び第2の受光信号
を受けて、これらの受光信号の和が略目標値となるよう
に前記投光手段の投光量または前記増幅手段の増幅率を
制御する制御手段と、 前記第1及び第2の受光信号の和が略目標値となる場合
の第1及び第2の受光信号に基づいて、前記被検出物ま
での距離を演算する演算手段とを備えてなる距離センサ
において、 前記制御手段は、前記受光信号の和が略目標値となる場
合の前記投光手段の投光量または前記増幅手段の増幅率
を記憶手段に記憶させ、前記投光量または前記増幅率を
最大に設定しても前記受光信号の和が前記目標値を下回
っている場合には、その和が変化するまでの間、前記投
光量または前記増幅率を前記記憶手段に記憶させた値に
設定するように構成されていることを特徴とする距離セ
ンサ。
1. A light projecting means for projecting light on an object to be detected, and provided so as to receive reflected light of the light emitted from the object at a light receiving point corresponding to a distance from the object. Light receiving means for outputting first and second light receiving signals corresponding to the position of the light receiving point; a pair of amplifying means for amplifying the first and second light receiving signals; Control means for receiving the second light receiving signal and controlling the light emitting amount of the light projecting means or the amplification factor of the amplifying means such that the sum of these light receiving signals becomes substantially a target value; A calculating means for calculating a distance to the object based on the first and second light receiving signals when the sum of the light receiving signals is substantially equal to a target value. , The amount of light emitted by the light emitting means when the sum of the light receiving signals is substantially the target value Alternatively, the amplification factor of the amplifying unit is stored in a storage unit, and if the sum of the light reception signals is less than the target value even when the light emission amount or the amplification factor is set to the maximum, the sum changes. The distance sensor is configured to set the projected light amount or the amplification factor to a value stored in the storage unit until the time elapsed.
JP2000153144A 2000-05-24 2000-05-24 Distance sensor Expired - Fee Related JP3513079B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000153144A JP3513079B2 (en) 2000-05-24 2000-05-24 Distance sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000153144A JP3513079B2 (en) 2000-05-24 2000-05-24 Distance sensor

Publications (2)

Publication Number Publication Date
JP2001330432A true JP2001330432A (en) 2001-11-30
JP3513079B2 JP3513079B2 (en) 2004-03-31

Family

ID=18658463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000153144A Expired - Fee Related JP3513079B2 (en) 2000-05-24 2000-05-24 Distance sensor

Country Status (1)

Country Link
JP (1) JP3513079B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008243949A (en) * 2007-03-26 2008-10-09 Institute Of Physical & Chemical Research Optical axis position detector of pulse laser beam, and optical axis position controller of pulse laser beam
JP2015175735A (en) * 2014-03-14 2015-10-05 株式会社日立ハイテクファインシステムズ rail displacement amount detector and rail displacement amount detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008243949A (en) * 2007-03-26 2008-10-09 Institute Of Physical & Chemical Research Optical axis position detector of pulse laser beam, and optical axis position controller of pulse laser beam
JP2015175735A (en) * 2014-03-14 2015-10-05 株式会社日立ハイテクファインシステムズ rail displacement amount detector and rail displacement amount detection method

Also Published As

Publication number Publication date
JP3513079B2 (en) 2004-03-31

Similar Documents

Publication Publication Date Title
JPH10239046A (en) Optical displacement measuring device and optical displacement measuring system
JP3513079B2 (en) Distance sensor
US10969477B2 (en) Method to detect a signal and optoelectronic sensor
JPH06249962A (en) Radar for vehicle
JP3051032B2 (en) Distance measuring device
JPH08327890A (en) Range finder for camera
JP3401800B2 (en) Photoelectric switch
JP2592316Y2 (en) Distance measuring device
JPH0562882U (en) Distance measuring device
JP2680977B2 (en) Photoelectric switch
US6452664B2 (en) Rangefinder apparatus
JP2004245780A (en) Ranging device
JP2000214375A (en) Range finder device
JP3223306B2 (en) Camera ranging device
US6421115B2 (en) Distance measuring apparatus
JPH0562883U (en) Distance measuring device
JP3288984B2 (en) Distance measuring device and automatic focusing device
JP2001188005A (en) Range sensor
JP2558645Y2 (en) Photoelectric switch
JP3232421B2 (en) Distance measuring device
KR200298535Y1 (en) Stabilization system for sensor in manufacturing apparatus of semiconductor
JP2004125651A (en) Optical range finder
JP4047738B2 (en) Multi-optical axis photoelectric switch
JP3321222B2 (en) Distance measuring device
JP2698380B2 (en) Semiconductor laser driver

Legal Events

Date Code Title Description
A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040108

LAPS Cancellation because of no payment of annual fees