JP2000111315A - Photoelectric sensor and its production method - Google Patents
Photoelectric sensor and its production methodInfo
- Publication number
- JP2000111315A JP2000111315A JP10294666A JP29466698A JP2000111315A JP 2000111315 A JP2000111315 A JP 2000111315A JP 10294666 A JP10294666 A JP 10294666A JP 29466698 A JP29466698 A JP 29466698A JP 2000111315 A JP2000111315 A JP 2000111315A
- Authority
- JP
- Japan
- Prior art keywords
- distance
- threshold value
- photoelectric sensor
- threshold
- value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Measurement Of Optical Distance (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、センサ装置および
その製造方法に関する。The present invention relates to a sensor device and a method for manufacturing the same.
【0002】[0002]
【従来の技術】従来のセンサ装置における感度設定方法
としては、ファイバ形光電スイッチなどで用いられてい
るティーチング方式の感度設定方法がある。これは、モ
ード切替スイッチをティーチングモードに設定し、ティ
ーチング用の押ボタン等を押すと、そのときの受光量に
基づいてしきい値を自動的に設定するものである。従っ
て、光電スイッチに一定強度の光を照射させておいてテ
ィーチングを行なうことにより、光電スイッチを一定の
しきい値に設定することができる。2. Description of the Related Art As a sensitivity setting method in a conventional sensor device, there is a teaching method sensitivity setting method used in a fiber type photoelectric switch or the like. When the mode changeover switch is set to the teaching mode and a push button for teaching or the like is pressed, the threshold value is automatically set based on the amount of received light at that time. Therefore, by performing teaching while irradiating the photoelectric switch with light having a constant intensity, the photoelectric switch can be set to a constant threshold value.
【0003】また、しきい値の特殊な設定方法として、
最大感度設定がある。これは、光電センサを特定のしき
い値に設定する方法のひとつであって、光電センサの感
度を最大値に設定する方法である。例えばファイバ形光
電スイッチのティーチング用押ボタンを3秒以上押し続
けると、その時の実際の受光量にかかわらず、投光ゲイ
ンおよび受光ゲインが最も大きくなり、そのため検出距
離が最長となってファイバ形光電スイッチが最大感度に
設定される。[0003] As a special setting method of the threshold value,
There is a maximum sensitivity setting. This is one of the methods for setting the photoelectric sensor to a specific threshold value, and is a method for setting the sensitivity of the photoelectric sensor to the maximum value. For example, if the teaching push button of the fiber-type photoelectric switch is kept pressed for 3 seconds or more, regardless of the actual amount of received light at that time, the light-emitting gain and the light-receiving gain will be the largest, so that the detection distance will be the longest and the fiber-type photoelectric switch The switch is set to maximum sensitivity.
【0004】[0004]
【発明が解決しようとする課題】しかしながら、上記フ
ァイバ形光電スイッチは、投光部と受光部の間を物体が
通過して遮光状態となるのを検出するものである。これ
に対し、物体の距離に応じて動作する光電スイッチ(距
離設定形光電スイッチ)では、距離設定範囲に最小値と
最大値が存在するため、特定のしきい値を複数点設定す
る必要があり、従来の設定方法では、距離設定範囲の最
小値の設定を行なえない。However, the above-mentioned fiber type photoelectric switch detects an object passing between the light projecting portion and the light receiving portion to be in a light blocking state. In contrast, a photoelectric switch that operates in accordance with the distance of an object (distance setting type photoelectric switch) has a minimum value and a maximum value in the distance setting range, and therefore it is necessary to set a plurality of specific threshold values. In the conventional setting method, the minimum value of the distance setting range cannot be set.
【0005】また、距離設定形光電スイッチでは、至近
距離に入光しない不感帯が存在するため、物体を光電ス
イッチの前方に置いて最小値を設定しようとすると、最
小設定距離より短い距離に物体があっても信号値として
は最大設定距離と同様の値になる場合があり、実際に物
体を置いて距離値を取得する方法では最小値と最大値を
区別できなかった。Further, in the distance setting type photoelectric switch, since there is a dead zone where light does not enter at a close distance, if an object is placed in front of the photoelectric switch to set a minimum value, the object is located at a distance shorter than the minimum setting distance. Even if there is a signal value, the signal value may be the same as the maximum set distance, and the method of acquiring the distance value by actually placing the object cannot distinguish the minimum value from the maximum value.
【0006】従来の光電センサでは、このように異なる
光電センサに同一のしきい値を設定することは困難であ
った。そのため、複数個の光電センサを同一の状態で設
置し、同一の対象物体を検知させようとすると、各光電
センサの前の同一距離に物体を置き、等しいしきい値と
なるように各光電センサを1台1台ティーチングにより
調整しなければならず、非常に面倒な作業を必要として
いた。In the conventional photoelectric sensor, it is difficult to set the same threshold value for such different photoelectric sensors. Therefore, if a plurality of photoelectric sensors are installed in the same state and the same target object is to be detected, the objects are placed at the same distance in front of each photoelectric sensor, and each photoelectric sensor is set to have the same threshold value. Had to be adjusted one by one by teaching, which required a very troublesome work.
【0007】本発明は上述の技術的問題点を解決するた
めになされたものであり、その目的とするところは、特
定のしきい値に容易に設定することができ、検出物体や
センサ取り付けの状況が一定している場合には、実際に
物体を置いてティーチングすることなく使用できる距離
設定型の光電センサおよびその製造方法を提供すること
にある。SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned technical problems. An object of the present invention is to set a specific threshold value easily, and to detect a detection object or a sensor. An object of the present invention is to provide a distance setting type photoelectric sensor which can be used without actually placing an object and teaching when a situation is constant, and a method for manufacturing the same.
【0008】[0008]
【発明の開示】請求項1に記載した光電センサは、位置
検出素子における受光位置に基づき、三角測距の原理に
より対象物体までの距離もしくは当該距離と等価な物理
量を求め、当該距離もしくはそれと等価な物理量としき
い値とを比較して距離判別する機能と、前記しきい値を
設定するためのティーチング機能とを備えた光電センサ
であって、所定の操作により特定のしきい値に設定する
ための入力手段を備えたものである。According to the photoelectric sensor of the present invention, a distance to a target object or a physical quantity equivalent to the distance is obtained by the principle of triangulation based on a light receiving position of the position detecting element, and the distance or an equivalent thereof is obtained. A photoelectric sensor having a function of comparing a physical quantity and a threshold value to determine a distance and a teaching function for setting the threshold value, for setting a specific threshold value by a predetermined operation. Is provided.
【0009】請求項1の光電センサでは、入力手段に所
定の操作を施すことにより、特定のしきい値を選択して
当該しきい値に設定させることができる。従って、複数
台の光電センサに同一のしきい値を設定したい場合に
は、各光電センサの前に実際に物体を置いて1台1台テ
ィーチングを行なうことなく、入力手段の操作だけで各
光電センサに特定のしきい値を設定させることができ、
簡単に各光電センサのしきい値を同一の値に揃えること
ができる。In the photoelectric sensor according to the first aspect, by performing a predetermined operation on the input means, a specific threshold value can be selected and set to the threshold value. Therefore, when it is desired to set the same threshold value for a plurality of photoelectric sensors, each of the photoelectric sensors can be operated only by operating the input means without actually placing an object in front of each photoelectric sensor and performing teaching one by one. Allow the sensor to set a specific threshold,
The threshold value of each photoelectric sensor can be easily set to the same value.
【0010】ここで、入力手段としては、光電センサに
設けられたスイッチのように手動操作するものに限ら
ず、光電センサに入力される外部信号によって特定のし
きい値に設定する場合も含む。また、距離と等価な物理
量とは、電気的信号などに変換されたものをさすだけで
なく、距離と1対1に対応する量(例えば、距離の定数
倍、定数を付加したもの、1対1写像された値など)も
含まれる。Here, the input means is not limited to a manually operated one such as a switch provided in the photoelectric sensor, but also includes a case where a specific threshold value is set by an external signal input to the photoelectric sensor. Further, the physical quantity equivalent to the distance means not only a value converted into an electric signal or the like, but also a quantity corresponding to the distance one-to-one (for example, a constant multiplied by a distance or a constant added, a one-to-one correspondence). 1 mapped value) is also included.
【0011】特に、請求項2の実施態様では、特定のし
きい値は最大距離しきい値もしくは最小距離しきい値と
なっている。最大距離しきい値と最小距離しきい値のう
ち一方だけが記憶されていて、その特定しきい値を選択
できるようになっていてもよく、両方のしきい値が記憶
されていていずれか一方を任意に選択できるようになっ
ていてもよい。ここで、最大距離しきい値とは、取りう
るしきい値の中で最大距離に対応するものであり、最小
距離しきい値とは、取りうるしきい値の中で最小距離に
対応するものである。In particular, in the second embodiment, the specific threshold is a maximum distance threshold or a minimum distance threshold. Only one of the maximum distance threshold and the minimum distance threshold may be stored, and the specific threshold may be selected, and both thresholds are stored and either one is stored. May be arbitrarily selected. Here, the maximum distance threshold corresponds to the maximum distance among the possible thresholds, and the minimum distance threshold corresponds to the minimum distance among the possible thresholds. .
【0012】特定しきい値として最大距離しきい値や最
小距離しきい値が設定可能になっていれば、最大距離よ
りも近い領域に物体が位置しているか否か、あるいは最
小距離よりも遠い領域に物体が位置しているか否かを判
別することができる。特に、最小距離しきい値に設定す
れば、応差が最小となるように設定(最小応差設定)す
ることができる。If a maximum distance threshold or a minimum distance threshold can be set as a specific threshold, it is determined whether or not the object is located in an area closer to the maximum distance or farther than the minimum distance. It can be determined whether an object is located in the area. In particular, if the distance is set to the minimum distance threshold value, the setting can be made so that the hysteresis becomes minimum (minimum hysteresis setting).
【0013】また、請求項3の実施態様のように、光電
センサに離散的な複数の特定のしきい値を記憶させてお
き、入力手段の操作によってその離散的なしきい値の中
から任意に選択した特定のしきい値に設定できるように
してもよい。このように複数のしきい値を選択できるよ
うになっていれば、用途に応じて必要な特定しきい値を
選択することができるので、より汎用性が高くなる。According to a third aspect of the present invention, a plurality of discrete thresholds are stored in the photoelectric sensor, and the discrete thresholds can be arbitrarily selected from the discrete thresholds by operating the input means. It may be possible to set a specific selected threshold value. If a plurality of thresholds can be selected in this way, a necessary specific threshold can be selected according to the application, so that the versatility is further improved.
【0014】このように複数の特定しきい値を選択でき
るようになっていても、何番目のしきい値というように
選択すれば、各光電センサを同一のしきい値に設定する
ことができる。Even if a plurality of specific thresholds can be selected as described above, if the number of thresholds is selected, each photoelectric sensor can be set to the same threshold. .
【0015】また、請求項4に記載の実施態様の光電セ
ンサは、設定されているしきい値を出力する手段を備え
ていることを特徴としている。設定されているしきい値
を出力する手段を備えているので、ティーチングや試行
錯誤によって設定したしきい値を目視で、あるいは電気
的に読み取り、各光電センサのしきい値が同じ値になる
ように設定できる。Further, the photoelectric sensor according to an embodiment of the present invention is characterized in that it comprises means for outputting a set threshold value. It has a means to output the set threshold, so that the threshold set by teaching or trial and error is read visually or electrically, so that the threshold of each photoelectric sensor becomes the same value. Can be set to
【0016】この実施態様では、光電センサに記憶させ
られている特定のしきい値以外のしきい値を各光電セン
サに設定したい場合に、その作業を容易にすることがで
きる。In this embodiment, when it is desired to set a threshold value other than the specific threshold value stored in the photoelectric sensor for each photoelectric sensor, the operation can be facilitated.
【0017】請求項5に記載の光電センサの光電センサ
の製造方法にあっては、規定の最大距離もしくは最小距
離に物体を置き、そのときの物体までの距離もしくはそ
れと等価な物理量の実測値をしきい値として記憶させて
いる。According to a fifth aspect of the present invention, there is provided a method for manufacturing a photoelectric sensor of a photoelectric sensor, wherein an object is placed at a specified maximum distance or a minimum distance, and an actual measured value of a distance to the object at that time or a physical quantity equivalent thereto is obtained. It is stored as a threshold.
【0018】従って、光電センサの入力手段を所定操作
し、記憶されている最大距離しきい値もしくは最小距離
しきい値を呼び出すことにより、請求項2の光電センサ
のように光電センサのしきい値を最大距離しきい値もし
くは最小距離しきい値に設定することができる。Therefore, by operating the input means of the photoelectric sensor in a predetermined manner and calling the stored maximum distance threshold value or minimum distance threshold value, the threshold value of the photoelectric sensor as in the photoelectric sensor of claim 2 can be obtained. Can be set as the maximum distance threshold or the minimum distance threshold.
【0019】また、請求項6に記載の光電センサの製造
方法では、位置検出素子の受光位置と対象物体の距離も
しくはそれと等価な物理量とを関係付ける関係式に含ま
れるパラメータを実測補正することを特徴としている。
このようなパラメータとしては、例えば、実施形態で説
明しているような直線性補正係数βがある。According to a sixth aspect of the present invention, in the method for manufacturing a photoelectric sensor, the parameters included in the relational expression relating the light receiving position of the position detecting element and the distance of the target object or a physical quantity equivalent thereto are measured and corrected. Features.
Such a parameter is, for example, a linearity correction coefficient β as described in the embodiment.
【0020】位置検出素子の受光位置(あるいは、光電
流)から距離を演算する関係式にはパラメータが含まれ
ており、このようなパラメータは光電センサにおける光
学系の配置に依存するので、光学系の誤差等によってパ
ラメータがばらつき、ティーチングや数値入力によって
しきい値を設定しようとしても各光電センサ毎にしきい
値がばらつく。The relational expression for calculating the distance from the light receiving position (or photocurrent) of the position detecting element includes a parameter. Such a parameter depends on the arrangement of the optical system in the photoelectric sensor. The parameter varies due to the error of the above, and even if the threshold is set by teaching or numerical input, the threshold varies for each photoelectric sensor.
【0021】しかし、この光電センサは製造時にパラメ
ータを実測補正されているので、各光電センサ間におけ
るパラメータのばらつきを非常に小さくすることがで
き、正確にしきい値設定することができ、入力手段(特
に、数値入力可能な入力手段)からしきい値を入力する
ことにより、各光電センサに特定のしきい値を入力して
各光電センサのしきい値を均一に揃えることが可能にな
る。However, since the parameters of this photoelectric sensor are actually measured and corrected at the time of manufacture, variations in parameters among the photoelectric sensors can be made very small, threshold values can be set accurately, and input means ( In particular, by inputting a threshold value from the input means capable of inputting numerical values, it becomes possible to input a specific threshold value to each photoelectric sensor and make the threshold values of each photoelectric sensor uniform.
【0022】また、請求項7に記載した光電センサの製
造方法では、非入光判定レベルを実測調整している。非
入光判定レベルを実測調整は、限界反射率の物体を用い
て行なう。このようにして製造された光電センサでは、
非入光レベルが実測調整されていて非入光判定レベルが
正確となっており、光電センサ間における非入光判定レ
ベルのばらつきが非常に小さくなっている。従って、各
光電センサに特定のしきい値を入力して各光電センサの
しきい値を均一に揃えることが可能になる。In the method of manufacturing a photoelectric sensor according to the present invention, the non-light-incident determination level is actually measured and adjusted. The actual measurement adjustment of the non-light-incident determination level is performed using an object having a limiting reflectance. In the photoelectric sensor manufactured in this way,
The non-light-incident level is actually measured and adjusted, and the non-light-incident determination level is accurate, and the variation in the non-light-incident determination level between the photoelectric sensors is extremely small. Therefore, it becomes possible to input a specific threshold value to each photoelectric sensor and to make the threshold values of each photoelectric sensor uniform.
【0023】[0023]
【発明の実施の形態】(第1の実施形態)本発明の一実
施形態による反射型光電センサ11の外観を図1の正面
図に示す。また、この光電センサ11の電気的構成を図
2のブロック図に示す。まず、電気的構成から説明する
と、この光電センサ11は、投光部12、受光部13、
信号処理部14、入力部15、表示部16、出力回路1
7等により構成されている。(First Embodiment) FIG. 1 is a front view showing the appearance of a reflection type photoelectric sensor 11 according to an embodiment of the present invention. The electrical configuration of the photoelectric sensor 11 is shown in the block diagram of FIG. First, the electrical configuration will be described. The photoelectric sensor 11 includes a light emitting unit 12, a light receiving unit 13,
Signal processing unit 14, input unit 15, display unit 16, output circuit 1
7 and the like.
【0024】投光部12は、発光ダイオード(LED)
や半導体レーザ素子(LD)等の発光素子19、発光素
子19を駆動する投光回路20、投光レンズ系(図示せ
ず)等からなり、発振回路26のクロック端子から出力
されるパルス信号と同期して投光回路20により発光素
子19が駆動され、発光素子19から前方へ向けてパル
ス光が出力される。The light projecting section 12 includes a light emitting diode (LED)
And a light emitting circuit 19 for driving the light emitting element 19, a light emitting lens system (not shown), etc., and a pulse signal output from a clock terminal of the oscillation circuit 26. The light emitting element 19 is driven by the light emitting circuit 20 in synchronism, and pulse light is output forward from the light emitting element 19.
【0025】受光部13は、受光レンズ系21、位置検
出素子(PSD)22、2つの受光回路23f、23r
からなる。光電センサ11の前方に物体18が存在すれ
ば、投光部12から投射された光が物体18で反射し、
受光レンズ系21を通って位置検出素子22で受光され
る。このとき位置検出素子22上に結像される光スポッ
トの位置を求めれば、三角測量の原理によって物体18
までの距離を求めることができる。The light receiving section 13 includes a light receiving lens system 21, a position detecting element (PSD) 22, and two light receiving circuits 23f and 23r.
Consists of If the object 18 exists in front of the photoelectric sensor 11, the light projected from the light projecting unit 12 is reflected by the object 18,
The light is received by the position detecting element 22 through the light receiving lens system 21. At this time, if the position of the light spot formed on the position detecting element 22 is obtained, the object 18 can be obtained by the principle of triangulation.
The distance to can be obtained.
【0026】位置検出素子22が受光すると、位置検出
素子22の2端子には受光面上における受光位置に応じ
た、すなわち物体18までの距離に応じた受光電流If
及びIrが流れる。受光回路23f、23rは、アンプ
部やA/D変換回路等からなり、位置検出素子22の各
端子から出力された受光電流If、Irはアンプ部で電
圧変換されると共に増幅され、A/D変換回路によりデ
ジタル信号に変換され、受光電流If、Irに比例した
受光信号Vf、Vrに変換され、平均化された受光信号
Vf、Vrが受光回路23f、23rから出力される。When the position detecting element 22 receives light, the two terminals of the position detecting element 22 have a light receiving current If corresponding to the light receiving position on the light receiving surface, ie, a distance to the object 18.
And Ir flow. The light receiving circuits 23f and 23r include an amplifier unit and an A / D conversion circuit, and the light receiving currents If and Ir output from the respective terminals of the position detection element 22 are voltage-converted and amplified by the amplifier unit. The light is converted into a digital signal by the conversion circuit, converted into light receiving signals Vf, Vr proportional to the light receiving currents If, Ir, and the averaged light receiving signals Vf, Vr are output from the light receiving circuits 23f, 23r.
【0027】信号処理部14は、メモリおよび周辺部を
含むマイクロコンピュータによって実現される。マイク
ロコンピュータによって実現される機能は、演算回路2
4、比較回路25、発振回路26、設定回路27、入力
時間計測回路28で表現される。The signal processing unit 14 is realized by a microcomputer including a memory and a peripheral unit. The function realized by the microcomputer is an arithmetic circuit 2
4, represented by a comparison circuit 25, an oscillation circuit 26, a setting circuit 27, and an input time measurement circuit 28.
【0028】演算回路24は受光部13の各受光回路2
3f、23rから出力された受光信号Vf及びVrに基
づいて物体18までの距離を評価する。光電センサ11
から物体18までの距離xは、受光信号Vf及びVrを
用いて次の(1)式で求めることができる。 x=P+Q[Vf/(Vr+βVf)] …(1) ここで、Pはオフセット定数、Qはスパン定数と呼ば
れ、いずれも投光部12及び受光部13の光学系の幾何
学的配置や位置検出素子22の受光面の長さによって決
まる定数である。また、βは位置検出素子22の受光特
性を直線補正するための直線性補正係数である。しか
し、物体18までの距離を評価し、物体18までの距離
としきい値Vthとを比較するのであれば、(1)式全体
を考慮することなく、 X=Vf/(Vr+βVf) …(2) だけを比較すればよい。よって、この光電センサ11内
部では、上記(2)式で定義されるXの値を物体18ま
での距離(距離と等価な値)として扱っている。The arithmetic circuit 24 includes the light receiving circuits 2 of the light receiving section 13.
The distance to the object 18 is evaluated based on the light receiving signals Vf and Vr output from 3f and 23r. Photoelectric sensor 11
The distance x from the object 18 to the object 18 can be obtained by the following equation (1) using the light receiving signals Vf and Vr. x = P + Q [Vf / (Vr + βVf)] (1) Here, P is called an offset constant and Q is called a span constant, and both are the geometrical arrangement and position of the optical system of the light projecting unit 12 and the light receiving unit 13. This is a constant determined by the length of the light receiving surface of the detection element 22. Β is a linearity correction coefficient for linearly correcting the light receiving characteristic of the position detecting element 22. However, if the distance to the object 18 is evaluated and the distance to the object 18 is compared with the threshold value Vth, X = Vf / (Vr + βVf) (2) without considering the entire equation (1). You only need to compare Therefore, inside the photoelectric sensor 11, the value of X defined by the above equation (2) is treated as the distance to the object 18 (a value equivalent to the distance).
【0029】このようにして演算回路24は、物体18
までの距離Xを求めると、距離情報を比較回路25及び
特徴量表示器29へ出力する。As described above, the arithmetic circuit 24 sets the object 18
When the distance X to the distance is obtained, the distance information is output to the comparison circuit 25 and the feature quantity display 29.
【0030】比較回路25は、演算回路24により演算
された物体18までの距離Xと予め設定されているしき
い値Vth(設定距離)とを比較判定し、物体18までの
演算距離Xとしきい値Vthとの大小に応じてオン信号ま
たはオフ信号からなる判定出力を生成する。そして、比
較回路25は、当該オン/オフ信号を出力表示灯31及
び出力回路17へ出力する。The comparison circuit 25 compares and determines the distance X to the object 18 calculated by the calculation circuit 24 with a preset threshold value Vth (set distance), and determines the calculated distance X to the object 18 as a threshold. A judgment output composed of an ON signal or an OFF signal is generated according to the magnitude of the value Vth. Then, the comparison circuit 25 outputs the on / off signal to the output indicator 31 and the output circuit 17.
【0031】設定回路27は、設定されているしきい値
Vthをディジタル値として記憶保持している。設定回路
27には、入力部15のしきい値設定スイッチ32を操
作することによってしきい値Vthを設定することができ
る。あるいは、光電センサ11の前方に基準物体を設置
し、入力部15でティーチング操作することにより、設
定回路27にしきい値Vthを設定することもできる。ま
た、設定回路27は、入力部15からの操作により設定
された検知モードと出力モードを保存して表示部16等
の各部のモード設定を行なう。The setting circuit 27 stores and holds the set threshold value Vth as a digital value. In the setting circuit 27, the threshold value Vth can be set by operating the threshold value setting switch 32 of the input unit 15. Alternatively, a threshold value Vth can be set in the setting circuit 27 by setting a reference object in front of the photoelectric sensor 11 and performing a teaching operation using the input unit 15. The setting circuit 27 stores the detection mode and the output mode set by the operation from the input unit 15 and sets the mode of each unit such as the display unit 16.
【0032】入力時間計測回路28は、ティーチング動
作時間すなわち後述のセットスイッチ32bが押されて
いる時間を計測する。The input time measuring circuit 28 measures a teaching operation time, that is, a time during which a set switch 32b described later is pressed.
【0033】表示部16は、比較回路25からのオン/
オフ信号を表示するための出力表示灯31と、物体18
までの距離又は物体18の位置を表示するための特徴量
表示器29と、しきい値Vthを表示するためのしきい値
表示器30とを有している。図1に示すように、出力表
示灯31は、1個のLED又はランプによって構成され
ており、比較回路25の判定結果(オン信号、オフ信
号)に応じて点灯または消灯する。また、特徴量表示器
29は、緑色発光ダイオードからなる複数の表示セグメ
ント29a、29b、…を一列に配列したものであっ
て、演算回路24で演算された演算結果(距離情報)を
受け取り、検知モードに応じて物体18までの距離をバ
ーグラフ表示(点灯する表示セグメント29a、29
b、…の数による距離表示)し、あるいは物体18の位
置を表示セグメント29a、29b、…の点灯位置によ
り位置表示する。The display section 16 is turned on / off from the comparison circuit 25.
An output indicator light 31 for displaying an OFF signal;
A threshold value display 29 for displaying the distance to the object or the position of the object 18; and a threshold value display 30 for displaying the threshold value Vth. As shown in FIG. 1, the output indicator 31 is configured by one LED or lamp, and is turned on or off according to the determination result (on signal, off signal) of the comparison circuit 25. Further, the feature quantity display 29 is configured by arranging a plurality of display segments 29a, 29b,... Made of a green light emitting diode in a line, and receives a calculation result (distance information) calculated by the calculation circuit 24 and detects and receives the result. The distance to the object 18 is displayed in a bar graph according to the mode (the display segments 29a and 29 which are turned on).
.., or the position of the object 18 is displayed by the lighting position of the display segment 29a, 29b,.
【0034】しきい値表示器30は、赤色発光ダイオー
ドからなる複数の表示セグメント30a、30b、…を
一列に配列したものであって、設定回路27により設定
されているしきい値Vthに対応して1個又は2個の表示
セグメント30a、30b、…が点灯される。しきい値
表示器30の各表示セグメント30a、30b、…は、
特徴量表示器29の表示セグメント29a、29b、…
間に配置されている。The threshold indicator 30 is composed of a plurality of display segments 30a, 30b,... Made of red light emitting diodes arranged in a line, and corresponds to the threshold Vth set by the setting circuit 27. One or two display segments 30a, 30b,... Are turned on. Each of the display segments 30a, 30b,.
The display segments 29a, 29b,.
It is located between them.
【0035】出力回路17は、比較回路25から得られ
るオン/オフ信号を、制御その他の目的のために外部装
置に与えるのに適した信号に変換して出力する。The output circuit 17 converts the on / off signal obtained from the comparison circuit 25 into a signal suitable for application to an external device for control or other purposes, and outputs the signal.
【0036】入力部15は、しきい値Vthを入力するた
めのしきい値設定スイッチ32、表示部16の検知モー
ドを切替えるための検知モード切替スイッチ33、設定
方法を切替えるための設定モード切替スイッチ34、出
力モード切替スイッチ35からなり、各スイッチによる
設定内容は設定回路27へ送信され、そこで設定され
る。すなわち、検知モード切替スイッチ33は、特徴量
表示器29において物体18までの検出距離Xをバーグ
ラフ表示すると共にしきい値表示器30においてオン/
オフの境界となるしきい値Vth0を点灯させるノーマル
モードと、特徴量表示器29において物体18の検出位
置を位置表示すると共にしきい値表示器30において上
限値Vth2と下限値Vth1でゾーン表示するゾーンモー
ドとに切り替えられる。また、設定モード切替スイッチ
34を操作すると、各検知モードにおいて、ティーチン
グモードと、調整モードと、通常の検知動作モードとに
切替えられるようになっている。設定モード切替スイッ
チ34をティーチングモードにセットすると、ティーチ
ング方式でしきい値Vthの設定が可能となり、設定回路
27がしきい値Vthの設定又は変更を保存する。また、
設定モード切替スイッチ34を調整モードにセットする
と、しきい値設定スイッチ32が入力可能となり、しき
い値設定スイッチ32を操作してしきい値Vthを入力す
ると、設定回路27がしきい値Vth0、上限値Vth2又
は下限値Vth1の設定又は変更を保存する。The input unit 15 includes a threshold setting switch 32 for inputting a threshold value Vth, a detection mode switch 33 for switching the detection mode of the display unit 16, and a setting mode switch for switching a setting method. 34, an output mode changeover switch 35. The setting contents of each switch are transmitted to the setting circuit 27, where they are set. That is, the detection mode changeover switch 33 displays the detection distance X to the object 18 on the feature quantity display 29 as a bar graph, and turns on / off the threshold value display 30.
A normal mode in which a threshold value Vth0 as an off boundary is turned on, a detection position of the object 18 is displayed on the feature amount display 29, and a zone display is performed on the threshold value display 30 with the upper limit value Vth2 and the lower limit value Vth1. Switch to zone mode. Further, when the setting mode changeover switch 34 is operated, each of the detection modes can be switched between the teaching mode, the adjustment mode, and the normal detection operation mode. When the setting mode changeover switch 34 is set to the teaching mode, the threshold value Vth can be set by the teaching method, and the setting circuit 27 saves the setting or change of the threshold value Vth. Also,
When the setting mode changeover switch 34 is set to the adjustment mode, the threshold setting switch 32 can be input. When the threshold setting switch 32 is operated to input the threshold Vth, the setting circuit 27 sets the threshold Vth0, The setting or change of the upper limit value Vth2 or the lower limit value Vth1 is saved.
【0037】なお、出力モード切替スイッチ35は、受
光レベルが高い(反射光が受光部13に入射している)
ときにセンサ出力をオンとするモード(出力表示灯31
が点灯する)と、受光レベルが低い(反射光が入射しな
い)ときにセンサ出力をオンとするモード(出力表示灯
31が点灯する)のうち一方を選択するためのものであ
る。The output mode switch 35 has a high light receiving level (reflected light is incident on the light receiving section 13).
Mode when the sensor output is turned on (output indicator 31
Turns on), and selects one of the modes in which the sensor output is turned on when the light receiving level is low (reflected light does not enter) (the output indicator 31 is turned on).
【0038】図1には、この入力部15の具体的構成の
一例が表わされている。検知モード切替スイッチ33
は、ノーマルモード(NORMAL)とゾーンモード
(ZONE)とに切替えられるようになっている。設定
モード切替スイッチ34は、ティーチングモード(TE
ACH)と、調整モード(ADJ)と、通常の動作モー
ド(RUN)とに切替え可能になっている。しきい値設
定スイッチ32は、点灯セグメント30a、30b、…
の移動方向を設定する設定方向切替スイッチ32aとセ
ットスイッチ32bとからなり、設定方向切替スイッチ
32aを上向き矢印位置にセットし、セットスイッチ3
2bを押すとしきい値表示器30の点灯セグメントが1
段上へ移動してしきい値Vthが大きくなり、設定方向切
替スイッチ32aを下向き矢印位置にセットし、セット
スイッチ32bを押すとしきい値表示器30の点灯セグ
メントが1段下へ移動してしきい値Vthが小さくなる。
なお、このセットスイッチ32bは、ティーチング時の
入力スイッチも兼ねている。FIG. 1 shows an example of a specific configuration of the input section 15. Detection mode switch 33
Are switched between a normal mode (NORMAL) and a zone mode (ZONE). The setting mode changeover switch 34 is connected to the teaching mode (TE
ACH), an adjustment mode (ADJ), and a normal operation mode (RUN). The threshold setting switch 32 switches the lighting segments 30a, 30b,.
A set direction switch 32a and a set switch 32b for setting the moving direction of the camera are set.
When 2b is pressed, the lighting segment of the threshold value display 30 becomes 1
When the threshold value Vth is increased by moving up the step, the setting direction switch 32a is set to the downward arrow position, and when the set switch 32b is pressed, the lighting segment of the threshold value display 30 moves down by one step. The threshold value Vth decreases.
The set switch 32b also serves as an input switch during teaching.
【0039】また、出力モード切替スイッチ35もスラ
イドスイッチによって構成されており、L.ON(ライ
ト・オン)位置にセットすると受光レベルVsがしきい
値Vthよりも高いときにオン出力されるモードとなり、
D.ON(ダーク・オン)位置にセットすると受光レベ
ルVsがしきい値レベルVthよりも低いときにオン出力
されるモードとなる。The output mode changeover switch 35 is also constituted by a slide switch. When the output mode changeover switch 35 is set to the L.ON (light-on) position, the output mode is switched on when the light receiving level Vs is higher than the threshold value Vth. ,
When set to the D.ON (dark ON) position, the mode is set to the ON output when the light receiving level Vs is lower than the threshold level Vth.
【0040】なお、しきい値Vthを設定するための信
号、表示部16の検知モードを切り替えるための信号、
あるいは検知モードとしきい値設定モードを切り替える
ための信号は、外部信号として信号処理部14に入力で
きるようになっていてもよい。A signal for setting the threshold value Vth, a signal for switching the detection mode of the display unit 16,
Alternatively, a signal for switching between the detection mode and the threshold setting mode may be input to the signal processing unit 14 as an external signal.
【0041】つぎに、上記光電センサ11の使用方法を
説明する。以下の説明においては、出力モード切替スイ
ッチ35がD.ON(ダーク・オン)位置にセットされ
ているものとして説明する。まず、検知モード切替スイ
ッチ33がノーマルモード(NORMAL)にセットさ
れている場合を説明する。まず、ティーチングモードで
しきい値Vthを設定する場合には、設定モード切替スイ
ッチ34をティーチングモード(TEACH)位置に合
わせ、基準物体を検出と非検出の境界位置に置いて基準
物体までの距離 X1=Vf/(Vr+βVf) を計測させる。この状態で、セットスイッチ32bを押
すと、設定回路27はそのときの取得距離X1から次の
(3)式によりしきい値Vth0を算出し、取得距離X1
よりも若干近距離にしきい値Vth0を設定し記憶する。 Vth0=X1・(1−α) …(3) ここで、αは0<α<1の定数である。こうして設定回
路27にしきい値Vth0が設定されると、しきい値表示
器30の対応する表示セグメント(例えば、30d)が
点灯する。Next, a method of using the photoelectric sensor 11 will be described. In the following description, it is assumed that the output mode switch 35 is set to the D.ON (dark ON) position. First, the case where the detection mode switch 33 is set to the normal mode (NORMAL) will be described. First, when the threshold value Vth is set in the teaching mode, the setting mode changeover switch 34 is set to the teaching mode (TEACH) position, the reference object is placed at the boundary between detection and non-detection, and the distance X1 to the reference object is set. = Vf / (Vr + βVf). When the set switch 32b is pressed in this state, the setting circuit 27 calculates a threshold value Vth0 from the acquired distance X1 at that time by the following equation (3), and obtains the acquired distance X1.
The threshold Vth0 is set and stored at a slightly shorter distance than the threshold Vth0. Vth0 = X1 · (1−α) (3) where α is a constant of 0 <α <1. When the threshold value Vth0 is set in the setting circuit 27 in this way, the corresponding display segment (for example, 30d) of the threshold value display 30 is turned on.
【0042】また、設定モード切替スイッチ34を調整
モード(ADJ)に合せると、しきい値設定スイッチ3
2によってしきい値Vth0を設定可能となる。すなわ
ち、設定方向切替スイッチ32aを上向き矢印位置に合
せてセットスイッチ32bを押すと、セットスイッチ3
2bを押す度にしきい値Vth0が一定距離ずつ長くな
り、しきい値表示器30の点灯セグメント位置が上方へ
移動する。また、設定方向切替スイッチ32aを下向き
矢印位置に合せてセットスイッチ32bを押すと、セッ
トスイッチ32bを押す度にしきい値Vth0が一定距離
ずつ短くなり、しきい値表示器30の点灯セグメント位
置が下方へ移動する。When the setting mode switch 34 is set to the adjustment mode (ADJ), the threshold setting switch 3
2, the threshold value Vth0 can be set. That is, when the set direction switch 32a is set to the upward arrow position and the set switch 32b is pressed, the set switch 3
Each time 2b is pressed, the threshold value Vth0 increases by a certain distance, and the lighting segment position of the threshold value indicator 30 moves upward. When the set direction switch 32a is set to the downward arrow position and the set switch 32b is pressed, each time the set switch 32b is pressed, the threshold value Vth0 is shortened by a fixed distance, and the lighting segment position of the threshold value display 30 is lowered. Move to.
【0043】いずれかの方法でしきい値Vth0を設定し
た後、設定モード切替スイッチ34を動作モード(RU
N)に切り替えるとしきい値Vth0が固定され、セット
スイッチ32bを操作してもしきい値表示器30の点灯
セグメントは変化しない。この動作モードでは、光電セ
ンサ11は物体18までの距離Xを計測しており、特徴
量表示器29にバーグラフ表示されている物体18まで
の距離(バーグラフの長さ)は計測された物体18まで
の距離Xに応じて変化する。また、計測距離Xは、比較
回路25で予め設定されているしきい値Vth0と比較さ
れ、計測距離Xがしきい値Vth0よりも大きい場合(X
>Vth0)には、あるいは表示上でいえば、図3のよう
に特徴量表示器29のバーグラフがしきい値表示器30
の点灯セグメント(例えば、30d)を超えると、比較
回路25からオフ信号が出力され、出力表示灯31が消
灯される。反対に、計測距離Xがしきい値Vth0よりも
小さい場合(X<Vth0)には、あるいは表示上でいえ
ば、図4のように特徴量表示器29のバーグラフがしき
い値表示器30の点灯セグメント(例えば、30d)を
超えないと、比較回路25からオン信号が出力され、出
力表示灯31が点灯される。After setting the threshold value Vth0 by any method, the setting mode changeover switch 34 is set to the operation mode (RU).
When switching to N), the threshold value Vth0 is fixed, and the lighting segment of the threshold value display 30 does not change even if the set switch 32b is operated. In this operation mode, the photoelectric sensor 11 measures the distance X to the object 18, and the distance to the object 18 (the length of the bar graph) displayed on the feature display 29 as a bar graph is the measured object. It changes according to the distance X to 18. The measurement distance X is compared with a threshold value Vth0 set in advance by the comparison circuit 25. If the measurement distance X is larger than the threshold value Vth0 (X
> Vth0), or in terms of display, the bar graph of the feature quantity display 29 is changed to the threshold display 30 as shown in FIG.
Exceeds the lighting segment (for example, 30d), the off signal is output from the comparison circuit 25, and the output indicator 31 is turned off. Conversely, when the measured distance X is smaller than the threshold value Vth0 (X <Vth0), or in terms of display, the bar graph of the feature quantity display 29 is changed to the threshold display 30 as shown in FIG. If the lighting segment (for example, 30d) is not exceeded, an ON signal is output from the comparison circuit 25, and the output indicator 31 is turned on.
【0044】つぎに、検知モードがゾーンモードに設定
されている場合を説明する。検知モード切替スイッチ3
3がゾーンモード(ZONE)にセットされ、設定モー
ド切替スイッチ34がティーチングモード(TEAC
H)にセットされている場合には、基準物体を検出ゾー
ンの中央に置いて基準物体までの距離 X2=Vf/(Vr+βVf) を計測させる。この状態で、セットスイッチ32bを押
すと、設定回路27はそのときの取得距離X2から次の
(4)式により下限値Vth1を算出し、取得距離X2よ
りも近距離に下限値Vth1を設定し記憶する。 Vth1=X2・(1−α) …(4) 続いて、設定回路27は取得距離X2から次の(5)式
により上限値Vth2を算出し、取得距離X2よりも遠距
離に上限値Vth2を設定し記憶する。 Vth2=X2・(1+α) …(5) ここでも、αは0<α<1の定数であるが、(3)式、
(4)式及び(5)式で用いられているαの値は互いに
異なっていてもよい。こうして設定回路27に上限値V
th2及び下限値Vth1が設定されると、しきい値表示器
30の対応する2つの表示セグメント(例えば、30
c、30e)が点灯する。Next, the case where the detection mode is set to the zone mode will be described. Detection mode switch 3
3 is set to the zone mode (ZONE), and the setting mode changeover switch 34 is set to the teaching mode (TEAC).
If H) is set, the reference object is placed at the center of the detection zone, and the distance X2 = Vf / (Vr + βVf) to the reference object is measured. In this state, when the set switch 32b is pressed, the setting circuit 27 calculates the lower limit value Vth1 from the acquired distance X2 at that time by the following equation (4), and sets the lower limit value Vth1 to a shorter distance than the acquired distance X2. Remember. Vth1 = X2 · (1−α) (4) Subsequently, the setting circuit 27 calculates the upper limit value Vth2 from the acquired distance X2 by the following equation (5), and sets the upper limit value Vth2 to a longer distance than the acquired distance X2. Set and memorize. Vth2 = X2 · (1 + α) (5) Again, α is a constant of 0 <α <1.
The values of α used in the expressions (4) and (5) may be different from each other. In this way, the upper limit V
When the threshold value th2 and the lower limit value Vth1 are set, the corresponding two display segments (for example, 30
c, 30e) light up.
【0045】また、検知モード切替スイッチ33をゾー
ンモード(ZONE)にセットし、設定モード切替スイ
ッチ34を調整モード(ADJ)に合せると、しきい値
設定スイッチ32によって検出ゾーンの上限値Vth2及
び下限値Vth1を設定可能となる。すなわち、設定方向
切替スイッチ32aを上向き矢印位置に合せてセットス
イッチ32bを押すと、セットスイッチ32bを押す度
に上限値Vth2と下限値Vth1の間が広がり、上限値V
th2を示すしきい値表示器30の点灯セグメント位置が
上方へ移動すると共に下限値Vth1を示すしきい値表示
器30の点灯セグメント位置が下方へ移動する。また、
設定方向切替スイッチ32aを下向き矢印位置に合せて
セットスイッチ32bを押すと、セットスイッチ32b
を押す度に上限値Vth2と下限値Vth1の間が狭くな
り、上限値Vth2を示すしきい値表示器30の点灯セグ
メント位置が下方へ移動すると共に下限値Vth1を示す
しきい値表示器30の点灯セグメント位置が上方へ移動
する。When the detection mode changeover switch 33 is set to the zone mode (ZONE) and the setting mode changeover switch 34 is set to the adjustment mode (ADJ), the upper limit value Vth2 and the lower limit value of the detection zone are set by the threshold value setting switch 32. The value Vth1 can be set. That is, when the set direction switch 32a is set to the upward arrow position and the set switch 32b is pressed, each time the set switch 32b is pressed, the range between the upper limit value Vth2 and the lower limit value Vth1 expands, and the upper limit value Vth is increased.
The lighting segment position of the threshold value display 30 indicating th2 moves upward, and the lighting segment position of the threshold value display 30 indicating the lower limit value Vth1 moves downward. Also,
When the set direction switch 32a is set to the downward arrow position and the set switch 32b is pressed, the set switch 32b is pressed.
Each time is pressed, the distance between the upper limit value Vth2 and the lower limit value Vth1 becomes narrower, the lighting segment position of the threshold value display 30 indicating the upper limit value Vth2 moves downward, and the threshold value display 30 indicating the lower limit value Vth1 is changed. The lighting segment position moves upward.
【0046】いずれかの方法で上限値Vth2及び下限値
Vth1を設定した後、設定モード切替スイッチ34を動
作モード(RUN)に切り替えると上限値Vth2及び下
限値Vth1が固定され、セットスイッチ32bを操作し
てもしきい値表示器30の点灯セグメントは変化しな
い。この動作モードでは、光電センサ11は物体18ま
での距離Xを計測しており、特徴量表示器29で1個
(中間値を表示したい場合には、2個点灯できるように
してもよい)だけ表示セグメント29a、29b、…を
点灯させることにより物体18の位置を表示しており、
点灯セグメント29a、29b、…による位置表示は物
体18の位置に応じて変化する。また、物体18の計測
距離Xは、比較回路25で予め設定されている上限値V
th2及び下限値Vth1と比較され、物体18が検出ゾー
ン内にある場合(Vth1<X<Vth2)には、あるいは
表示上でいえば、図5のように特徴量表示器29の点灯
セグメント(例えば、29d)が上限値に設定されてい
る点灯セグメント(例えば、30e)と下限値に設定さ
れている点灯セグメント(例えば、30c)の間にある
と、比較回路25からオフ信号が出力され、出力表示灯
31が消灯される。反対に、物体18が検出ゾーン外に
ある場合(X<Vth1、またはVth2<X)には、ある
いは表示上でいえば、図6のように特徴量表示器29の
点灯セグメント(例えば、29g)がしきい値表示器3
0の上限値に設定されている点灯セグメント(例えば、
30e)よりも上にあったり、特徴量表示器29の点灯
セグメント(例えば、29g)がしきい値表示器30の
下限値に設定されている点灯セグメント(例えば、30
c)よりも下にあったりすると、比較回路25からオン
信号が出力され、出力表示灯31が点灯される。After setting the upper limit value Vth2 and the lower limit value Vth1 by any method, when the setting mode changeover switch 34 is switched to the operation mode (RUN), the upper limit value Vth2 and the lower limit value Vth1 are fixed, and the set switch 32b is operated. However, the lighting segment of the threshold value display 30 does not change. In this operation mode, the photoelectric sensor 11 measures the distance X to the object 18, and only one feature quantity display 29 may be used (if it is desired to display an intermediate value, two may be turned on). The position of the object 18 is displayed by lighting the display segments 29a, 29b,.
The position display by the lighting segments 29a, 29b,... Changes according to the position of the object 18. The measured distance X of the object 18 is equal to the upper limit V
When the object 18 is within the detection zone (Vth1 <X <Vth2), or in terms of display, the lighting segment of the feature amount display 29 (for example, FIG. 5) , 29d) is between the lighting segment (for example, 30e) set to the upper limit value and the lighting segment (for example, 30c) set to the lower limit value, an off signal is output from the comparison circuit 25, and the output signal is output. The indicator light 31 is turned off. Conversely, when the object 18 is outside the detection zone (X <Vth1 or Vth2 <X), or in terms of display, the lighting segment (for example, 29g) of the feature quantity display 29 as shown in FIG. Is the threshold indicator 3
Lighting segments set to the upper limit of 0 (for example,
30e), or a lighting segment (for example, 30 g) in which the lighting segment (for example, 29 g) of the feature amount display 29 is set to the lower limit of the threshold value display 30.
If it is lower than c), an ON signal is output from the comparison circuit 25, and the output indicator 31 is turned on.
【0047】つぎに、工場出荷時に、この光電センサ1
1に記憶させられるしきい値(以下、特定しきい値とい
う)について説明する。この光電センサ11は、製造工
場において、光電センサ11の前方の規定距離にしきい
値設定用の物体を置かれ、前記手順でティーチングされ
る。すなわち、ノーマルモードでは、1つのしきい値が
ティーチングにより設定され、ゾーンモードでは2つの
しきい値(上限値および下限値)がティーチングにより
設定される。ここで、工場出荷時に設定される特定のし
きい値としては、ノーマルモードの場合には、図7に示
す最大設定距離(実空間)に対応する距離Xmax(最大
距離しきい値)、最小設定距離(実空間)に対応する距
離Xmin(最小距離しきい値)、あるいは任意に選択さ
れた中間値でもよく、ゾーンモードの場合には、任意に
選択された2つの中間値などである。Next, at the time of shipment from the factory, the photoelectric sensor 1
The threshold value stored in 1 (hereinafter referred to as a specific threshold value) will be described. The photoelectric sensor 11 is placed at a specified distance in front of the photoelectric sensor 11 at a manufacturing factory, and an object for setting a threshold value is taught in the above procedure. That is, in the normal mode, one threshold is set by teaching, and in the zone mode, two thresholds (upper limit and lower limit) are set by teaching. Here, in the case of the normal mode, the specific threshold value set at the time of factory shipment is a distance Xmax (maximum distance threshold value) corresponding to the maximum set distance (real space) shown in FIG. The distance Xmin (minimum distance threshold) corresponding to the distance (real space) or an arbitrarily selected intermediate value may be used. In the case of the zone mode, the arbitrarily selected two intermediate values are used.
【0048】ただし、工場出荷時にティーチングで設定
される特定しきい値は、実使用時にティーチングされる
しきい値とは別の場所に記憶され、EEPROMのよう
な不揮発性メモリにディジタル値として書き込まれる。
したがって、実使用時にティーチングされるしきい値は
新たにティーチングされたり、新たにしきい値設定され
たりすると消去されるのに対し、工場出荷時に設定され
た特定しきい値は実使用時に新たにティーチングされた
り、新たにしきい値設定されたりしても消去されること
はない。However, the specific threshold value set by teaching at the time of shipment from the factory is stored in a location different from the threshold value used for teaching during actual use, and is written as a digital value in a nonvolatile memory such as an EEPROM. .
Therefore, the threshold value that is taught during actual use is deleted when a new teaching or new threshold value is set, while the specific threshold value set at the factory is newly used during actual use. It is not erased even if the threshold value is set or a new threshold value is set.
【0049】こうして工場出荷時に設定された特定しき
い値を利用すると、簡単な作業により、すべての光電セ
ンサ11を同一のしきい値に設定することができる。例
えば、検知モード切替スイッチ33がノーマルモード
(NORMAL)にセットされている場合では、設定モ
ード切替スイッチ34をティーチングモード(TEAC
H)に合わせ、セットスイッチ32bを押すと、入力時
間計測回路28がスタートしてセットスイッチ32bの
押されている時間を計測する。セットスイッチ32bの
押されている時間が所定時間(例えば3秒)よりも短い
場合には、上述のような通常のティーチング動作とな
り、光電センサの前方に置かれている物体までの距離が
しきい値として設定される。When the specific threshold value set at the time of shipment from the factory is used, all photoelectric sensors 11 can be set to the same threshold value by a simple operation. For example, when the detection mode switch 33 is set to the normal mode (NORMAL), the setting mode switch 34 is set to the teaching mode (TEAC).
When the set switch 32b is pressed in accordance with H), the input time measuring circuit 28 starts to measure the time during which the set switch 32b is pressed. When the time during which the set switch 32b is pressed is shorter than a predetermined time (for example, 3 seconds), the normal teaching operation as described above is performed, and the distance to the object placed in front of the photoelectric sensor is threshold. Set as a value.
【0050】これに対し、セットスイッチ32bの押さ
れている時間が所定時間よりも長く入力時間計測回路が
カウントアップすると、不揮発性メモリに格納されてい
た特定しきい値(工場出荷時のしきい値)が読み出さ
れ、設定回路27にしきい値として設定され、しきい値
表示器30の対応する表示セグメントが点灯する。この
特定しきい値の値は、同一品番の光電センサ11につい
ては、いずれも同じ値を記憶させているので、このよう
な入力操作によりすべての光電センサ11を同一のしき
い値に簡単に設定することができる。また、特定しきい
値は、工場出荷時に規定の距離に物体を置いて記憶させ
たものであるから、絶対的に正確である。On the other hand, when the input time measuring circuit counts up while the set switch 32b is pressed for longer than the predetermined time, the specific threshold value stored in the nonvolatile memory (the threshold value at the time of shipment from the factory) is stored. Is read out and set in the setting circuit 27 as a threshold value, and the corresponding display segment of the threshold value display 30 is turned on. As the value of this specific threshold value, the same value is stored for all photoelectric sensors 11 having the same product number, so that all the photoelectric sensors 11 can be easily set to the same threshold value by such an input operation. can do. Further, the specific threshold value is obtained by placing an object at a specified distance at the time of shipment from the factory and memorizing the same, so that it is absolutely accurate.
【0051】特に、距離設定型光電スイッチでは、最小
設定距離となるようにティーチングすることはできない
が、この光電センサ11では、予め最小設定距離に対応
した最小距離しきい値を工場出荷時に記憶させておくこ
とができるので、簡単に最小距離しきい値に設定するこ
とも可能になる。工場出荷時に設定する特定しきい値を
最小設定距離に対応したしきい値(最小距離しきい値)
とすれば、応差(物体がしきい値よりも近い側から遠い
側へ移動する場合と、遠い側から近い側へ移動する場合
のしきい値のヒステリシス)が最小の状態に設定するこ
とが容易になる。また、工場出荷時に記憶させられてい
る最大距離しきい値や最小しきい値に設定できるように
すれば、検出物体の状態を考慮することなく、しきい値
を最大設定距離や最小設定距離に自由に設定することが
できるようになる。In particular, in the distance setting type photoelectric switch, teaching cannot be performed so as to be the minimum setting distance. However, in the photoelectric sensor 11, a minimum distance threshold value corresponding to the minimum setting distance is stored in advance at the time of factory shipment. Can be easily set to the minimum distance threshold value. Specified threshold set at the time of shipment from the factory (threshold for minimum distance)
Then, it is easy to set the hysteresis (the hysteresis of the threshold value when the object moves from a side closer to the far side than the threshold value and the hysteresis of the threshold value when the object moves from the far side to the closer side) easily. become. Also, if it is possible to set the maximum distance threshold and the minimum threshold stored at the time of shipment from the factory, the threshold can be set to the maximum setting distance and the minimum setting distance without considering the state of the detected object. It can be set freely.
【0052】また、通常のティーチングモードで前方に
置かれた物体の距離によってしきい値が設定された場合
には、ティーチング直後には、図3又は図4に示すよう
に、しきい値表示器30では中央の表示セグメント30
dが点灯するが、工場出荷時に設定された特定しきい値
によってしきい値設定された場合には、その特定しきい
値の値に応じた表示セグメントが点灯する。例えば、工
場出荷時に記憶されられていた最大距離しきい値に設定
された場合には、図8に示すように最上段の表示セグメ
ント30gが点灯し、工場出荷時に記憶されられていた
最小距離しきい値に設定された場合には、図9に示すよ
うに最下段の表示セグメント30aが点灯する。ティー
チング直後には、しきい値の設定方法によってしきい値
表示器30の表示形態が変わるので、いずれの設定方法
によって設定されたかが一目で分かり、また最大距離し
きい値に設定されたのか、最小距離しきい値に設定され
たのかも一目瞭然となる。When a threshold is set according to the distance of an object placed in front in a normal teaching mode, immediately after teaching, as shown in FIG. 3 or FIG. 30 is the central display segment 30
Although d lights up, when a threshold value is set by a specific threshold value set at the time of factory shipment, a display segment corresponding to the value of the specific threshold value is lit. For example, when the maximum distance threshold value stored at the time of shipment from the factory is set, the uppermost display segment 30g is turned on as shown in FIG. When the threshold value is set, the lowermost display segment 30a is turned on as shown in FIG. Immediately after teaching, the display mode of the threshold value indicator 30 changes depending on the setting method of the threshold value, so that it is possible to see at a glance which setting method has been set, and whether the maximum distance threshold value has been set or not. It is also clear at a glance whether the distance threshold has been set.
【0053】検知モード切替スイッチ33がゾーンモー
ド(ZONE)にセットされている場合には、設定モー
ド切替スイッチ34をティーチングモード(TEAC
H)に合わせ、セットスイッチ32bを押すと、入力時
間計測回路28がスタートしてセットスイッチ32bの
押されている時間を計測する。セットスイッチ32bの
押されている時間が所定時間(例えば3秒)よりも短い
場合には、上述のようにゾーンモードにおける通常のテ
ィーチング動作となり、光電センサの前方に置かれてい
る物体までの距離に基づいて上限値と下限値が設定され
る。When the detection mode switch 33 is set to the zone mode (ZONE), the setting mode switch 34 is set to the teaching mode (TEAC).
When the set switch 32b is pressed in accordance with H), the input time measuring circuit 28 starts to measure the time during which the set switch 32b is pressed. When the time during which the set switch 32b is pressed is shorter than a predetermined time (for example, 3 seconds), the normal teaching operation in the zone mode is performed as described above, and the distance to the object placed in front of the photoelectric sensor is determined. The upper and lower limits are set based on
【0054】これに対し、セットスイッチ32bの押さ
れている時間が所定時間よりも長く入力時間計測回路が
カウントアップすると、不揮発性メモリに格納されてい
た2つの特定しきい値(上限値、下限値)が読み出さ
れ、設定回路27に上限値及び下限値として設定され、
しきい値表示器30の対応する2つの表示セグメントが
点灯する。この上限値と下限値の値は、同一品番の光電
センサ11については、いずれも同じ値を記憶させてい
るので、このような入力操作によりすべての光電センサ
11を検出ゾーンとなるよう簡単かつ正確に設定するこ
とができる。On the other hand, when the time during which the set switch 32b is pressed is longer than the predetermined time and the input time measuring circuit counts up, the two specific threshold values (upper limit value, lower limit value) stored in the nonvolatile memory are stored. Value) is read and set in the setting circuit 27 as an upper limit value and a lower limit value,
The corresponding two display segments of the threshold indicator 30 light up. As for the upper limit value and the lower limit value, the same value is stored for each photoelectric sensor 11 of the same product number, so that such an input operation makes it easy and accurate to set all photoelectric sensors 11 to the detection zone. Can be set to
【0055】同一ラインで多数の光電センサを使用する
場合には、すべての光電センサの設定距離(しきい値)
を同じに設定することが多い。その場合、本発明の光電
センサ11では、各光電センサ11のしきい値を設定す
るのに、それぞれ設定用の物体をおいて同一のしきい値
となるように調整する必要がないので、しきい値設定時
間を大幅に短縮することができる。When a large number of photoelectric sensors are used on the same line, the set distance (threshold) of all photoelectric sensors is used.
Are often set the same. In that case, in the photoelectric sensor 11 of the present invention, it is not necessary to adjust the threshold value of each photoelectric sensor 11 so that the same threshold value is set for each setting object. Threshold setting time can be greatly reduced.
【0056】さらに、上記光電センサ11では、設定分
解能に合せて工場出荷時に複数個の特定しきい値を記憶
させておき、実使用時には、その複数個の特定しきい値
のうち任意の値を選択して光電センサ11にしきい値設
定させることもできる。複数個の特定しきい値として
は、例えば最小距離しきい値と最大距離しきい値との間
を等分割した値をそれぞれ特定しきい値として不揮発性
メモリに記憶させておいてもよく、あるいはランダムに
選んだ値を特定しきい値として不揮発性メモリに記憶さ
せておいてもよい。Further, in the photoelectric sensor 11, a plurality of specific thresholds are stored at the time of shipment from the factory according to the set resolution, and an arbitrary value among the plurality of specific thresholds is stored at the time of actual use. Alternatively, the threshold value can be set by the photoelectric sensor 11. As the plurality of specific thresholds, for example, values obtained by equally dividing the minimum distance threshold and the maximum distance threshold may be stored in the nonvolatile memory as the specific thresholds, respectively, or A value selected at random may be stored in the nonvolatile memory as a specific threshold value.
【0057】このように複数の特定しきい値を工場出荷
時にティーチングして記憶させておく場合には、レベル
選択回路36を用いる。すなわち、スイッチ操作や外部
信号入力等によってレベル設定回路36から特定しきい
値を識別させるためのデータ(例えば、しきい値レベル
ナンバー)を入力し、この識別データと共に各特定しき
い値を不揮発性メモリに記憶させておく。そして、実使
用時には、光電センサ11をティーチングモードにし、
設定しようとする特定しきい値を指示する識別データを
レベル設定回路36に入力してセットスイッチ32bを
所定時間以上押すと、複数の特定しきい値のうち識別デ
ータで指定された特定しきい値が不揮発性メモリから読
み出され、設定回路27に設定される。When teaching and storing a plurality of specific threshold values at the time of shipment from the factory as described above, the level selection circuit 36 is used. That is, data (for example, a threshold level number) for identifying a specific threshold is input from the level setting circuit 36 by a switch operation, an external signal input, or the like, and each specific threshold is stored together with the identification data in a nonvolatile manner. It is stored in the memory. Then, at the time of actual use, the photoelectric sensor 11 is set to the teaching mode,
When identification data indicating a specific threshold to be set is input to the level setting circuit 36 and the set switch 32b is pressed for a predetermined time or more, a specific threshold specified by the identification data among a plurality of specific thresholds is set. Is read from the non-volatile memory and set in the setting circuit 27.
【0058】ここではノーマルモードの場合について複
数の特定しきい値を取り扱う場合を説明したが、ゾーン
モードで複数組の特定しきい値(上限値、下限値)を取
り扱う場合も同様である。Here, a case where a plurality of specific threshold values are handled in the case of the normal mode has been described, but the same applies to a case where a plurality of sets of specific threshold values (upper limit value, lower limit value) are handled in the zone mode.
【0059】つぎに、複数台の光電センサ11におい
て、不揮発性メモリに記憶させられている特定しきい値
以外の値にしきい値を揃える必要が生じた場合の設定方
法を述べる。この光電センサ11は、設定されたしきい
値を出力させるためのしきい値出力部37を有してい
る。そして、このしきい値出力部37、あるいはしきい
値出力部37に接続された表示パネルには、ティーチン
グもしくはしきい値設定スイッチ32により設定された
しきい値をディジタル表示できるようになっている。Next, a description will be given of a setting method in a case where it is necessary to adjust the threshold value of the plurality of photoelectric sensors 11 to a value other than the specific threshold value stored in the nonvolatile memory. The photoelectric sensor 11 has a threshold value output unit 37 for outputting a set threshold value. The threshold output unit 37 or a display panel connected to the threshold output unit 37 can digitally display the threshold set by the teaching or threshold setting switch 32. .
【0060】しかして、複数個の光電センサ11のしき
い値を揃えたい場合には、各光電センサのしきい値をテ
ィーチングにより、もしくはしきい値設定スイッチ32
の操作によって変更し、その都度しきい値出力部37で
設定されたしきい値を確認する。このようにして試行錯
誤的に各光電センサ11のしきい値が同一の値になるよ
うにする。この方法では、手間は増加するが、任意の設
定値に正確に揃えることが可能になる。When it is desired to equalize the threshold values of the plurality of photoelectric sensors 11, the threshold values of the photoelectric sensors 11 are taught or the threshold setting switch 32 is used.
The threshold value set by the threshold value output unit 37 is checked each time. In this way, the threshold value of each photoelectric sensor 11 is set to the same value by trial and error. In this method, the time and effort are increased, but it is possible to accurately set the value to an arbitrary set value.
【0061】(第2の実施形態)つぎに、本発明の第2
の実施形態を説明する。始めに、前記(1)式を詳細に
説明する。図10は光電センサの投受光光学系を示して
いる。41は投光部12の投光レンズ系、21は受光部
13の受光レンズ系、22は位置検出素子、42はセン
サ端面を示しており、投光レンズ系41の光軸に一致さ
せてX軸を定め、位置検出素子22の表面に一致させて
Y軸を定めている。ここで、位置検出素子22の表面と
投光レンズ系41の主面との距離をD、投光レンズ系4
1の主面とセンサ端面42との距離をXd、X軸上にお
けるセンサ端面42から物体18までの距離をxとす
る。また、投光レンズ系41の光軸(X軸)と受光レン
ズ系21の光軸Aとの軸間距離をK、位置検出素子22
の中央Oと受光レンズ系21の光軸Aとの距離をSとす
る。さらに、位置検出素子22の中央Oに結像するX軸
上物点の、センサ端面42からのX軸方向距離をXoと
し、X軸上でセンサ端面42からxの距離にある物体1
8で反射した光が位置検出素子22上に結像する光スポ
ットのY軸方向位置(位置検出素子22の中央Oから計
った距離)をyとする。(Second Embodiment) Next, a second embodiment of the present invention will be described.
An embodiment will be described. First, the equation (1) will be described in detail. FIG. 10 shows a light emitting / receiving optical system of the photoelectric sensor. Reference numeral 41 denotes a light projecting lens system of the light projecting unit 12, 21 denotes a light receiving lens system of the light receiving unit 13, 22 denotes a position detecting element, and 42 denotes a sensor end face. An axis is determined, and the Y axis is determined so as to coincide with the surface of the position detection element 22. Here, the distance between the surface of the position detecting element 22 and the main surface of the light projecting lens system 41 is D,
Let Xd be the distance between the main surface of No. 1 and the sensor end face 42 and x be the distance from the sensor end face 42 to the object 18 on the X axis. The distance between the optical axis (X axis) of the light projecting lens system 41 and the optical axis A of the light receiving lens system 21 is K, and the position detecting element 22
S is the distance between the center O of the light-receiving lens system 21 and the optical axis A of the light-receiving lens system 21. Further, let Xo be the distance in the X-axis direction of the object point on the X-axis formed at the center O of the position detection element 22 from the sensor end face 42, and set the object 1 at the distance x from the sensor end face 42 on the X-axis.
The y-axis position (distance measured from the center O of the position detection element 22) of the light spot where the light reflected by 8 forms an image on the position detection element 22 is defined as y.
【0062】これらの値の間には、図10の幾何学的関
係から明らかなように、つぎの(6)式および(7)式
で表わされるような関係がある。As is apparent from the geometrical relationship shown in FIG. 10, there is a relationship between these values as expressed by the following equations (6) and (7).
【0063】[0063]
【数1】 (Equation 1)
【0064】この(6)式は整理すると、つぎの(8)
式のようになり、(7)式はつぎの(9)式となる。そ
して、(8)式および(9)式からXdを消去すること
によって(10)式が得られる。This equation (6) can be rearranged into the following equation (8).
Equation (7) becomes the following equation (9). Then, the expression (10) is obtained by eliminating Xd from the expressions (8) and (9).
【0065】[0065]
【数2】 (Equation 2)
【0066】図11に示すように、受光面の長さがLの
位置検出素子22の中央Oから距離yの点に光スポット
が結像し、一方の端子に光電流IAが流れ、他方の端子
に光電流IBが流れているとすると、よく知られている
ように、受光位置yは、つぎの(11)式で表わされ
る。[0066] As shown in FIG. 11, the light spot is focused on a point of the distance y the length of the light receiving surface from the center O of the position detecting element 22 of the L, the photocurrent I A flows to one terminal and the other When the photocurrent I B to the terminal flows, as is well known, the light receiving position y is represented by the following equation (11).
【0067】[0067]
【数3】 (Equation 3)
【0068】この(11)式を1/(S−y)に代入し
て整理すると、これはつぎの(12)式のように書くこ
とができる。ただし、(S−L)/(S+L)=β(直
線性補正係数)とした。When this equation (11) is substituted into 1 / (S−y) and rearranged, it can be written as the following equation (12). However, (S−L) / (S + L) = β (linearity correction coefficient).
【0069】[0069]
【数4】 (Equation 4)
【0070】よって、(12)式を前記(10)式に代
入すると、物体までの距離xは、つぎの(13)式のよ
うになる。Therefore, when the equation (12) is substituted into the equation (10), the distance x to the object is as shown in the following equation (13).
【0071】[0071]
【数5】 (Equation 5)
【0072】ここで、オフセット定数Pとスパン定数Q
を次式のように定義すると、前記(1)式が得られる。Here, the offset constant P and the span constant Q
Is defined as the following equation, the above equation (1) is obtained.
【0073】[0073]
【数6】 (Equation 6)
【0074】これで前記(1)式の根拠が明らかになっ
たが、これより先は、前と同様な理由から、物体までの
距離として、等価的に距離 X=Vf/(Vr+βVf) …(16) を考える。また、光電センサ11においても(16)式
を距離情報として用いる。Although the basis of the equation (1) has been clarified, the distance X is equivalent to the distance to the object X = Vf / (Vr + βVf)... 16) Consider In the photoelectric sensor 11, Expression (16) is used as distance information.
【0075】上記(16)式に含まれるパラメータβ
は、光電センサの光学系の配置や寸法により変化するの
で、ばらつきが生じ易い。しかし、(16)式によって
受光信号Vf、Vrから距離Xを演算するのに用いるパ
ラメータβの値としては、光学系の配置や寸法に全く誤
差のない状態を仮定して計算された値βiが用いられて
いる。従って、光電センサの実際のパラメータβと(1
6)式の演算に用いられる理想的な値βiとの間にはば
らつきがあり、そのため一定距離に物体を配置し、(1
6)式により演算した距離Xをしきい値として設定して
も各光電センサのしきい値がばらついていた。The parameter β included in the above equation (16)
Varies depending on the arrangement and dimensions of the optical system of the photoelectric sensor, and therefore, variation tends to occur. However, as the value of the parameter β used for calculating the distance X from the light receiving signals Vf and Vr by the equation (16), a value βi calculated on the assumption that there is no error in the arrangement and dimensions of the optical system is used. Used. Therefore, the actual parameter β of the photoelectric sensor and (1
There is a variation between the ideal value βi used in the calculation of the expression (6) and the object is placed at a fixed distance, and
Even when the distance X calculated by the expression 6) was set as the threshold value, the threshold value of each photoelectric sensor varied.
【0076】ここで説明する実施形態は、このパラメー
タβを実測補正するものである。図12は本発明の別な
実施形態による光電センサ43の電気的構成を示す一部
破断したブロック図である。この光電センサ43は、受
光回路23f、23rからの受光信号Vf、Vrによっ
てパラメータβを補正するパラメータ補正回路44と、
設定しようとするしきい値をディジタル値として入力す
ることができるしきい値入力部45とを備えている。In the embodiment described here, this parameter β is actually measured and corrected. FIG. 12 is a partially broken block diagram showing an electrical configuration of a photoelectric sensor 43 according to another embodiment of the present invention. The photoelectric sensor 43 includes a parameter correction circuit 44 that corrects the parameter β based on the light receiving signals Vf and Vr from the light receiving circuits 23f and 23r,
A threshold input unit 45 for inputting a threshold to be set as a digital value.
【0077】準備として、光電センサ43の前方の規定
の距離に物体18を置き、光学系の配置や寸法等に全く
誤差のない光電センサで計算された理想的なパラメータ
βiを用いたときの距離Xの理想値Xiを求めておく。As a preparation, the object 18 is placed at a specified distance in front of the photoelectric sensor 43, and the distance when the ideal parameter βi calculated by the photoelectric sensor having no error in the arrangement and dimensions of the optical system is used. An ideal value Xi of X is obtained in advance.
【0078】つぎに、光電センサ43の前方の同一距離
に物体18を置き、距離Xを求める。この光電センサ4
3のパラメータβが理想値βiであれば、距離Xの値も
理想値Xiとなる筈である。しかし、実際にはパラメー
タβにばらつきがあるから距離Xも理想値Xiには一致
しない。このパラメータβは、(16)式によれば、つ
ぎの(17)式で表わされる。Next, the object 18 is placed at the same distance in front of the photoelectric sensor 43, and the distance X is obtained. This photoelectric sensor 4
If the third parameter β is the ideal value βi, the value of the distance X should also be the ideal value Xi. However, since the parameter β actually varies, the distance X does not match the ideal value Xi. The parameter β is expressed by the following equation (17) according to the equation (16).
【0079】[0079]
【数7】 (Equation 7)
【0080】しかし、この距離Xが分からないので実際
のパラメータβを求めることができない。そこで、パラ
メータ補正回路44は、規定の位置に物体18を置いた
ときの距離Xの理想値Xiと受光信号Vf、Vrを用い
て実際のパラメータβの値を逆算し、それを記憶する。
すなわち、実際のパラメータβをつぎの(18)式によ
り求めて保存する。However, since the distance X is not known, the actual parameter β cannot be obtained. Therefore, the parameter correction circuit 44 calculates the actual value of the parameter β back using the ideal value Xi of the distance X when the object 18 is placed at the specified position and the light receiving signals Vf and Vr, and stores it.
That is, the actual parameter β is obtained by the following equation (18) and stored.
【0081】[0081]
【数8】 (Equation 8)
【0082】光電センサ43は、こうして工場出荷時に
パラメータβを補正されて出荷され、演算回路24は補
正されたパラメータβを用いて距離Xを演算する。しき
い値の設定にも補正されたパラメータβが用いられる。
よって、光電センサ43は、ばらつきのない状態で出荷
される。よって、しきい値を設定する際には、光電セン
サ43毎のばらつきがなく、共通のしきい値(特定のし
きい値)に設定することができる。The photoelectric sensor 43 is shipped with the parameter β corrected at the time of shipment from the factory, and the arithmetic circuit 24 calculates the distance X using the corrected parameter β. The corrected parameter β is also used for setting the threshold value.
Therefore, the photoelectric sensor 43 is shipped without variation. Therefore, when setting the threshold value, there is no variation among the photoelectric sensors 43, and a common threshold value (specific threshold value) can be set.
【0083】さらにこの光電センサ43では、しきい値
入力時の誤差をなくすため、しきい値入力部45からし
きい値をディジタル値として入力できるようにしてい
る。よって、各光電スイッチ43に共通の等しいしきい
値を入力することにより、各光電スイッチ43を共通の
しきい値に設定して設定状態を同じにすることができ
る。Further, in the photoelectric sensor 43, the threshold value can be inputted as a digital value from the threshold value input section 45 in order to eliminate an error at the time of inputting the threshold value. Therefore, by inputting a common equal threshold value to each photoelectric switch 43, each photoelectric switch 43 can be set to a common threshold value and the setting state can be made the same.
【0084】(第3の実施形態)図13は本発明のさら
に別な実施形態による光電センサ51を示す一部破断し
たブロック図である。52は最小受光量設定部であっ
て、受光部13の全受光量、すなわち受光回路23f、
23rから出力される受光信号Vf、Vrの和(Vf+
Vr)を検出し、全受光量が最低受光量以下でないかど
うかを監視している。(Third Embodiment) FIG. 13 is a partially cut-away block diagram showing a photoelectric sensor 51 according to still another embodiment of the present invention. 52 is a minimum light receiving amount setting unit, which is the total light receiving amount of the light receiving unit 13, that is, the light receiving circuit 23f,
23r, the sum of the light receiving signals Vf and Vr (Vf +
Vr), and monitors whether the total amount of received light is not less than the minimum amount of received light.
【0085】最小受光量設定部52には、工場出荷時
に、つぎのようにして最小受光量VLの値が予め設定さ
れている。すなわち、光電センサ51の定格で規定され
た最大検出距離に、光電センサ51で規定される最も反
射光量の低い(つまり、限界反射率の)検出物体を置
き、その検出物体で反射された光の受光量VL=Vf+
Vrをサンプリングし、この最小受光量(非入光レベ
ル)VLの値を最小受光量設定部52の不揮発性メモリ
に記憶させる。In the minimum light receiving amount setting section 52, the value of the minimum light receiving amount VL is preset at the time of factory shipment as follows. In other words, a detection object having the lowest reflected light amount (that is, having a limit reflectance) specified by the photoelectric sensor 51 is placed at the maximum detection distance specified by the rating of the photoelectric sensor 51, and the light reflected by the detection object is Received light amount VL = Vf +
Vr is sampled, and the value of the minimum light receiving amount (non-light incident level) VL is stored in the nonvolatile memory of the minimum light receiving amount setting section 52.
【0086】こうして最小受光量を設定された最小受光
量設定部52は、常に全受光量Vf+Vrを検出し、全
受光量Vf+Vrが最小受光量VL以下の場合には、距
離演算を行なわない。The minimum light receiving amount setting section 52 having the minimum light receiving amount set in this way always detects the total light receiving amount Vf + Vr, and does not perform the distance calculation when the total light receiving amount Vf + Vr is equal to or less than the minimum light receiving amount VL.
【0087】従って、上記のような最小受光量設定部5
2を有し、上記のようにして最小受光量設定部52に最
小受光量VLを設定された光電センサ51では、正常な
距離演算が可能な受光量範囲が正確に設定される。この
ようにいずれの光電センサ51でも、受光量範囲が正確
に設定され、機種間のばらつきがないので、必要な場合
には、複数台の光電センサを同じ状態に等しく設定され
ることになる。よって、複数台の光電センサ51にしき
い値入力部45からしきい値をディジタル値で入力する
ことにより、各光電センサ51を等しい状態に設定する
ことができる。Therefore, the minimum light receiving amount setting unit 5 as described above
In the photoelectric sensor 51 having the minimum light receiving amount VL in the minimum light receiving amount setting unit 52 as described above, the light receiving amount range in which a normal distance calculation can be performed is accurately set. As described above, in any of the photoelectric sensors 51, the light receiving amount range is set accurately, and there is no variation between models. Therefore, if necessary, a plurality of photoelectric sensors are set to the same state equally. Therefore, by inputting a threshold value to the plurality of photoelectric sensors 51 from the threshold value input unit 45 as a digital value, each photoelectric sensor 51 can be set to the same state.
【0088】(第4の実施形態)図14は本発明のさら
に別な実施形態による光電センサ53を示す一部破断し
たブロック図である。工場出荷時において、距離値範囲
制限回路には、最大検出距離および最小検出距離が記憶
させられる。すなわち、光電センサ53の前方の、セン
サの定格で規定された最大設定距離に物体18をおいて
受光し、その受光量から距離を演算し、それを最大検出
距離(XU)として距離値範囲制限回路に記憶させる。
また、光電センサ53の前方の、センサの定格で規定さ
れた最小設定距離に物体18をおいて受光し、その受光
量から距離を演算し、それを最小検出距離(XL)とし
て距離値範囲制限回路に記憶させる。(Fourth Embodiment) FIG. 14 is a partially broken block diagram showing a photoelectric sensor 53 according to still another embodiment of the present invention. At the time of factory shipment, the maximum detection distance and the minimum detection distance are stored in the distance value range limiting circuit. That is, the object 18 is received in front of the photoelectric sensor 53 at the maximum set distance specified by the sensor rating, the distance is calculated from the amount of received light, and the distance is calculated as the maximum detection distance (X U ). It is stored in the limiting circuit.
Also, the object 18 is received at a minimum set distance defined by the sensor rating in front of the photoelectric sensor 53, the distance is calculated from the amount of received light, and the distance is calculated as the minimum detection distance ( XL ). It is stored in the limiting circuit.
【0089】光電センサ53の通常の検知動作時におい
ては、物体の検知距離を演算した結果、その検知距離が
最大検出距離を上回った場合には、距離演算値として最
大検出距離(XU)を出力し、最小検出距離を下回った
場合には、距離演算値として最小検出距離(XL)を出
力する。In the normal detection operation of the photoelectric sensor 53, if the detection distance of the object is calculated as a result of calculating the detection distance of the object, the maximum detection distance (X U ) is calculated as the distance calculation value. The minimum detection distance ( XL ) is output as a distance calculation value when the output is smaller than the minimum detection distance.
【0090】この光電センサ53では、常に正常な演算
が可能なセンサ規格内でのみ距離設定できる。よって、
例えばボタン押下によりしきい値設定する光電センサ
で、最大距離に設定する場合には、全ての光電センサで
同じ最大距離に設定することができる。最小距離に設定
する場合も同様である。In the photoelectric sensor 53, the distance can be set only within a sensor standard that can always perform a normal operation. Therefore,
For example, in the case of setting the maximum distance with a photoelectric sensor for which a threshold value is set by pressing a button, the same maximum distance can be set for all the photoelectric sensors. The same applies to the case where the minimum distance is set.
【図1】本発明の一実施形態による光電センサの正面図
である。FIG. 1 is a front view of a photoelectric sensor according to an embodiment of the present invention.
【図2】同上の光電センサの電気的構成を示すブロック
図である。FIG. 2 is a block diagram showing an electrical configuration of the photoelectric sensor according to the first embodiment.
【図3】同上の光電センサの表示部におけるノーマルモ
ードでの表示状態を示す図である。FIG. 3 is a diagram showing a display state in a normal mode on a display unit of the photoelectric sensor according to the first embodiment.
【図4】同上の光電センサの表示部におけるノーマルモ
ードでの別な表示状態を示す図である。FIG. 4 is a diagram showing another display state in a normal mode on the display unit of the photoelectric sensor according to the embodiment.
【図5】同上の光電センサの表示部におけるゾーンモー
ドでの表示状態を示す図である。FIG. 5 is a diagram showing a display state in a zone mode on a display unit of the photoelectric sensor according to the first embodiment.
【図6】同上の光電センサの表示部におけるゾーンモー
ドでの別な表示状態を示す図である。FIG. 6 is a diagram showing another display state in the zone mode on the display unit of the photoelectric sensor of the above.
【図7】実空間における検出距離と演算用の距離Xとの
関係を示す図である。FIG. 7 is a diagram illustrating a relationship between a detection distance and a calculation distance X in a real space.
【図8】しきい値を最大距離しきい値に設定した表示部
の表示状態を示す図である。FIG. 8 is a diagram illustrating a display state of a display unit in which a threshold is set to a maximum distance threshold.
【図9】しきい値を最小距離しきい値に設定した表示部
の表示状態を示す図である。FIG. 9 is a diagram illustrating a display state of a display unit in which a threshold is set to a minimum distance threshold.
【図10】物体までの距離を表わす演算式を求めるため
に用いた諸量を示す図である。FIG. 10 is a diagram showing various quantities used for obtaining an arithmetic expression representing a distance to an object.
【図11】位置検出素子の概略図である。FIG. 11 is a schematic diagram of a position detecting element.
【図12】本発明の別な実施形態による光電センサの電
気的構成を示すブロック図である。FIG. 12 is a block diagram showing an electrical configuration of a photoelectric sensor according to another embodiment of the present invention.
【図13】本発明のさらに別な実施形態による光電セン
サの電気的構成を示すブロック図である。FIG. 13 is a block diagram showing an electrical configuration of a photoelectric sensor according to still another embodiment of the present invention.
【図14】本発明のさらに別な実施形態による光電セン
サの電気的構成を示すブロック図である。FIG. 14 is a block diagram showing an electrical configuration of a photoelectric sensor according to still another embodiment of the present invention.
12 投光部 13 受光部 14 信号処理部 24 演算回路 25 比較回路 27 設定回路 28 入力時間計測回路 29 特徴量表示器 30 しきい値表示器 32 しきい値設定スイッチ 32b セットスイッチ 34 設定モード切替スイッチ 36 レベル選択回路 37 しきい値出力部 Reference Signs List 12 light emitting unit 13 light receiving unit 14 signal processing unit 24 arithmetic circuit 25 comparison circuit 27 setting circuit 28 input time measuring circuit 29 feature amount display 30 threshold display 32 threshold setting switch 32b set switch 34 setting mode switch 36 Level selection circuit 37 Threshold output section
───────────────────────────────────────────────────── フロントページの続き (72)発明者 松永 達也 京都府京都市右京区花園土堂町10番地 オ ムロン株式会社内 Fターム(参考) 2F065 AA06 EE10 FF09 GG06 GG07 HH04 JJ03 JJ16 KK02 LL04 PP22 QQ03 QQ06 QQ08 QQ23 QQ25 QQ27 SS12 2F112 AA06 AB03 BA06 CA12 DA05 DA25 DA26 EA03 FA03 FA07 FA21 ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Tatsuya Matsunaga 10F, Omron Co., Ltd. QQ23 QQ25 QQ27 SS12 2F112 AA06 AB03 BA06 CA12 DA05 DA25 DA26 EA03 FA03 FA07 FA21
Claims (7)
き、三角測距の原理により対象物体までの距離もしくは
当該距離と等価な物理量を求め、当該距離もしくはそれ
と等価な物理量としきい値とを比較して距離判別する機
能と、前記しきい値を設定するためのティーチング機能
とを備えた光電センサであって、 所定の操作により特定のしきい値に設定するための入力
手段を備えた光電センサ。1. A distance to a target object or a physical quantity equivalent to the distance is calculated based on the principle of triangulation based on a light receiving position in the position detection element, and the distance or a physical quantity equivalent to the distance is compared with a threshold value. A photoelectric sensor having a function of determining a distance and a teaching function for setting the threshold value, the photoelectric sensor including input means for setting a specific threshold value by a predetermined operation.
もしくは最小距離しきい値であることを特徴とする、請
求項1に記載の光電センサ。2. The photoelectric sensor according to claim 1, wherein the specific threshold is a maximum distance threshold or a minimum distance threshold.
散的なしきい値の中から任意に選択されたものであるこ
とを特徴とする、請求項1に記載の光電センサ。3. The photoelectric sensor according to claim 1, wherein a value that the specific threshold value can take is arbitrarily selected from discrete threshold values.
を備えた、請求項1に記載の光電センサ。4. The photoelectric sensor according to claim 1, further comprising means for outputting a set threshold value.
法であって、 規定の最大距離もしくは最小距離に物体を置き、そのと
きの物体までの距離もしくはそれと等価な物理量の実測
値をしきい値として記憶させたことを特徴とする光電セ
ンサの製造方法。5. The method for manufacturing a photoelectric sensor according to claim 2, wherein an object is placed at a specified maximum distance or minimum distance, and an actual measured value of a distance to the object at that time or a physical quantity equivalent thereto is set. A method for manufacturing a photoelectric sensor, wherein the method is stored as a value.
法であって、 位置検出素子の受光位置と対象物体の距離もしくはそれ
と等価な物理量とを関係付ける関係式に含まれるパラメ
ータを実測補正したことを特徴とする光電センサの製造
方法。6. The method for manufacturing a photoelectric sensor according to claim 1, wherein parameters included in a relational expression relating a light receiving position of the position detecting element and a distance of the target object or a physical quantity equivalent thereto are measured and corrected. A method for manufacturing a photoelectric sensor, comprising:
法であって、 非入光判定レベルを実測調整したことを特徴とする光電
センサの製造方法。7. The method for manufacturing a photoelectric sensor according to claim 1, wherein the non-light-incident determination level is measured and adjusted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10294666A JP2000111315A (en) | 1998-09-30 | 1998-09-30 | Photoelectric sensor and its production method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10294666A JP2000111315A (en) | 1998-09-30 | 1998-09-30 | Photoelectric sensor and its production method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000111315A true JP2000111315A (en) | 2000-04-18 |
Family
ID=17810741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10294666A Pending JP2000111315A (en) | 1998-09-30 | 1998-09-30 | Photoelectric sensor and its production method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000111315A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007024653A (en) * | 2005-07-14 | 2007-02-01 | Keyence Corp | Triangular ranging type photoelectric sensor |
JP2009063467A (en) * | 2007-09-07 | 2009-03-26 | Taiyo Ltd | Threshold setting method for flow monitoring and flow meter |
JP2010527569A (en) * | 2007-05-14 | 2010-08-12 | ボストン サイエンティフィック ニューロモデュレイション コーポレイション | Alignment indicator for smart charger |
JP2013150158A (en) * | 2012-01-19 | 2013-08-01 | Azbil Corp | Photoelectric switch and sensitivity adjustment method |
JP2015509353A (en) * | 2011-12-21 | 2015-03-26 | ボストン サイエンティフィック ニューロモデュレイション コーポレイション | System for an implantable medical device having an external charger that can be coupled to an accessory charging coil |
JP7565231B2 (en) | 2021-02-24 | 2024-10-10 | 三菱電機エンジニアリング株式会社 | Displacement Sensors |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07221623A (en) * | 1994-02-02 | 1995-08-18 | Omron Corp | Detection sensor and threshold value setting method therefor |
JPH0814889A (en) * | 1994-07-01 | 1996-01-19 | Idec Izumi Corp | Photoelectric switch |
JPH09238064A (en) * | 1996-02-29 | 1997-09-09 | Omron Corp | Detection switch |
JPH09282989A (en) * | 1996-04-15 | 1997-10-31 | Idec Izumi Corp | Photoelectric switch |
JPH10122965A (en) * | 1996-10-24 | 1998-05-15 | Omron Corp | Optical sensor device |
JPH10209836A (en) * | 1996-11-21 | 1998-08-07 | Omron Corp | Sensor device and method for displaying the same |
-
1998
- 1998-09-30 JP JP10294666A patent/JP2000111315A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07221623A (en) * | 1994-02-02 | 1995-08-18 | Omron Corp | Detection sensor and threshold value setting method therefor |
JPH0814889A (en) * | 1994-07-01 | 1996-01-19 | Idec Izumi Corp | Photoelectric switch |
JPH09238064A (en) * | 1996-02-29 | 1997-09-09 | Omron Corp | Detection switch |
JPH09282989A (en) * | 1996-04-15 | 1997-10-31 | Idec Izumi Corp | Photoelectric switch |
JPH10122965A (en) * | 1996-10-24 | 1998-05-15 | Omron Corp | Optical sensor device |
JPH10209836A (en) * | 1996-11-21 | 1998-08-07 | Omron Corp | Sensor device and method for displaying the same |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007024653A (en) * | 2005-07-14 | 2007-02-01 | Keyence Corp | Triangular ranging type photoelectric sensor |
JP2010527569A (en) * | 2007-05-14 | 2010-08-12 | ボストン サイエンティフィック ニューロモデュレイション コーポレイション | Alignment indicator for smart charger |
US8598841B2 (en) | 2007-05-14 | 2013-12-03 | Boston Scientific Neuromodulation Corporation | Charger alignment indicator with adjustable threshold |
JP2014027878A (en) * | 2007-05-14 | 2014-02-06 | Boston Scientific Neuromodulation Corp | Smart charger alignment indicator |
JP2009063467A (en) * | 2007-09-07 | 2009-03-26 | Taiyo Ltd | Threshold setting method for flow monitoring and flow meter |
JP2015509353A (en) * | 2011-12-21 | 2015-03-26 | ボストン サイエンティフィック ニューロモデュレイション コーポレイション | System for an implantable medical device having an external charger that can be coupled to an accessory charging coil |
JP2013150158A (en) * | 2012-01-19 | 2013-08-01 | Azbil Corp | Photoelectric switch and sensitivity adjustment method |
JP7565231B2 (en) | 2021-02-24 | 2024-10-10 | 三菱電機エンジニアリング株式会社 | Displacement Sensors |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4909036B2 (en) | Optical displacement sensor | |
US9217666B2 (en) | Photoelectric sensor with adjustable sensitivity | |
EP1528411B1 (en) | Distance measurement sensor | |
US6891625B2 (en) | Optical reflection sensor | |
JP4789482B2 (en) | Position detection type photoelectric sensor and its reference distance setting method | |
CN110736949B (en) | Digital multimeter calibration method and related device | |
JP3341024B2 (en) | Small sensor device | |
JP2010146898A (en) | Multi-optical-axis photoelectronic sensor | |
KR20110101043A (en) | How to support the work of checking photoelectric sensors and thresholds | |
JP3719322B2 (en) | Sensor device and display method thereof | |
JP2000111315A (en) | Photoelectric sensor and its production method | |
US4571047A (en) | TTL Focus detecting device for single-lens reflex camera | |
JP4139936B2 (en) | Optical displacement sensor | |
CN101317071A (en) | level sensor | |
US6433859B1 (en) | Distance measuring apparatus and distance measuring method | |
US9247171B2 (en) | Sensitivity adjustment device | |
JP2796373B2 (en) | Color temperature measuring instrument | |
US20240053472A1 (en) | Proximity sensor | |
JP4266182B2 (en) | Photoelectric switch | |
CN112985525A (en) | Measuring instrument, measuring standard and method for producing a measuring standard | |
JP3881283B2 (en) | Separate amplifier type photoelectric sensor | |
CN110967297A (en) | Optical detection system and calibration method thereof | |
JP2006226853A (en) | Distance setting type photoelectric sensor | |
US20230314609A1 (en) | Proximity sensing | |
JP3817460B2 (en) | Photodetector |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20040226 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040928 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20041129 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20051004 |