JP3341025B2 - Photoelectric switch - Google Patents

Photoelectric switch

Info

Publication number
JP3341025B2
JP3341025B2 JP13991592A JP13991592A JP3341025B2 JP 3341025 B2 JP3341025 B2 JP 3341025B2 JP 13991592 A JP13991592 A JP 13991592A JP 13991592 A JP13991592 A JP 13991592A JP 3341025 B2 JP3341025 B2 JP 3341025B2
Authority
JP
Japan
Prior art keywords
light
light emitting
pattern
receiving
projection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP13991592A
Other languages
Japanese (ja)
Other versions
JPH05308270A (en
Inventor
哲也 赤木
清司 今井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp filed Critical Omron Corp
Priority to JP13991592A priority Critical patent/JP3341025B2/en
Publication of JPH05308270A publication Critical patent/JPH05308270A/en
Application granted granted Critical
Publication of JP3341025B2 publication Critical patent/JP3341025B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は光電スイッチに関し、特
に相互干渉を防止する機能に特徴を有する光電スイッチ
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a photoelectric switch, and more particularly to a photoelectric switch having a feature of preventing mutual interference.

【0002】[0002]

【従来の技術】従来光電スイッチは投光素子をパルス駆
動し、その点灯に対応させて受光信号の有無によって物
体を検知している。しかるに投光タイミングに同期して
他の光電スイッチから光が入光したときには相互干渉を
起こして誤動作してしまうという欠点があった。
2. Description of the Related Art Conventionally, a photoelectric switch drives a light emitting element in a pulsed manner, and detects an object by the presence or absence of a light receiving signal in accordance with the lighting thereof. However, there is a disadvantage that when light enters from another photoelectric switch in synchronization with the light projection timing, mutual interference occurs and a malfunction occurs.

【0003】このような問題を解決するためには従来よ
り相互干渉防止機能を有する光電スイッチが提案されて
いる。このような防止機能は、例えば相互干渉状態とな
ったときに発振を停止するようにしたり、相互干渉が検
知されたときに発振周波数を変化させるようにして構成
している。例えば特開昭57-14718号では投光素子をパル
ス点灯すると共に、パルスが生じていない間に受光信号
が得られたときにパルス発振器の発振周波数を変化させ
るようにしている。又パルスの発生しない総ての時間で
なく、投光パルスを発生させる直前や直後に光が受光さ
れるかどうかを判別して発振周波数を変化させて相互干
渉を防止するようにした光電スイッチが提案されてい
る。
In order to solve such a problem, a photoelectric switch having a mutual interference preventing function has been conventionally proposed. Such a prevention function is configured, for example, to stop oscillation when mutual interference occurs, or to change the oscillation frequency when mutual interference is detected. For example, in Japanese Patent Application Laid-Open No. 577-14718, the light emitting element is turned on with a pulse, and the oscillation frequency of the pulse oscillator is changed when a light receiving signal is obtained while no pulse is generated. A photoelectric switch that determines whether or not light is received immediately before or immediately after a light emitting pulse is generated, and changes the oscillation frequency to prevent mutual interference, instead of the entire time when no pulse is generated, Proposed.

【0004】[0004]

【発明が解決しようとする課題】しかしながらこのよう
な従来の相互干渉防止回路は、発振周波数を変化させる
ため部品点数が多くなり、IC化しない場合には実現が
困難となる。このような処理をマイクロプロセッサを用
いて行う場合は応答速度を速くする必要があり、実現が
難しいという欠点があった。
However, such a conventional mutual interference preventing circuit requires a large number of components because the oscillation frequency is changed, and it is difficult to realize the circuit without using an IC. When such processing is performed using a microprocessor, it is necessary to increase the response speed, and there is a drawback that realization is difficult.

【0005】本発明はこのような従来の問題点に鑑みて
なされたものであって、部品点数を増加させることなく
相互干渉を容易に防止できるようにすることを技術的課
題とする。
The present invention has been made in view of such a conventional problem, and has as its technical object to prevent mutual interference easily without increasing the number of parts.

【0006】[0006]

【課題を解決するための手段】本願の請求項1の発明
は、投光素子を有する投光部と、受光素子を有し、投光
素子からの光を受光する受光部と、受光部に得られる受
光レベルに基づいて物体の有無を判別するレベル弁別手
段と、投光素子をパルス駆動する複数の投光パターンを
記憶する投光パターン記憶手段と、投光パターンの選択
を入力する入力部と、投光パターン記憶手段より記憶さ
れたいずれかの投光パターンを選択し、投光素子に与え
る投光パターン選択手段と、を具備することを特徴とす
るものである。
According to a first aspect of the present invention, there is provided a light emitting section having a light emitting element, a light receiving section having a light receiving element, receiving light from the light emitting element, and a light receiving section. Level discriminating means for judging the presence or absence of an object based on the obtained light receiving level, light emitting pattern storing means for storing a plurality of light emitting patterns for pulse driving the light emitting element, and an input unit for inputting selection of a light emitting pattern And a light-projection-pattern selecting means for selecting one of the light-projection patterns stored by the light-projection-pattern storage means and giving the selected light to the light-projecting element.

【0007】本願の請求項2の発明は、投光素子を有す
る投光部と、受光素子を有し、投光素子からの光を受光
する受光部と、受光部に得られる受光レベルに基づいて
物体の有無を判別するレベル弁別手段と、投光素子をパ
ルス駆動する複数の投光パターンを記憶する投光パター
ン記憶手段と、電源投入時に投光パターンをランダムに
選択する投光パターン選択手段と、を具備することを特
徴とするものである。
According to a second aspect of the present invention, there is provided a light emitting section having a light emitting element, a light receiving section having a light receiving element and receiving light from the light emitting element, and a light receiving level obtained by the light receiving section. Level discriminating means for judging the presence or absence of an object, light emitting pattern storing means for storing a plurality of light emitting patterns for pulse driving the light emitting element, and light emitting pattern selecting means for randomly selecting the light emitting pattern when power is turned on And characterized in that:

【0008】[0008]

【0009】[0009]

【作用】このような特徴を有する本願の請求項1の発明
によれば、相互干渉が生じた場合には入力部から投光パ
ターンを任意に選択している。そして選択された投光パ
ターンによって投光素子を駆動することにより相互干渉
を防止できるようにしている。又本願の請求項2の発明
では、電源の投入時に投光パターンをランダムに設定し
て投光素子に与えて投光パルスとしている
According to the first aspect of the present invention having such features, when mutual interference occurs, a light projection pattern is arbitrarily selected from the input unit. By driving the light projecting element with the selected light projecting pattern, mutual interference can be prevented. In the present invention of claim 2 also has a light projection pulse given to the light emitting element by setting the projected pattern at random when the power is turned on.

【0010】[0010]

【実施例】図1は本発明の第1実施例による光電スイッ
チの全体構成を示す図である。本図において投光素子駆
動回路1はマイクロコンピュータ2から与えられる投光
パターンによって投光素子3を断続的に駆動するもので
ある。投光素子3は投光パルスによって駆動され光ビー
ムを物体検知領域に照射する。そしてその光又は反射光
は受光素子4によって受光される。受光素子4の出力は
増幅器5を介してサンプルホールド回路(S/H回路)
6に与えられる。サンプルホールド回路6はマイクロコ
ンピュータ2からのホールド信号によって受光レベルを
一時保持するものである。
FIG. 1 is a diagram showing the overall configuration of a photoelectric switch according to a first embodiment of the present invention. In this figure, a light emitting element driving circuit 1 intermittently drives a light emitting element 3 according to a light emitting pattern provided from a microcomputer 2. The light projecting element 3 is driven by a light projecting pulse and emits a light beam to an object detection area. The light or the reflected light is received by the light receiving element 4. The output of the light receiving element 4 is sampled and held by an amplifier 5 (S / H circuit).
6 given. The sample hold circuit 6 temporarily holds the light receiving level in response to a hold signal from the microcomputer 2.

【0011】さてマイクロコンピュータ2内には、図示
のようにサンプルホールド回路のホールドレベルをデジ
タル信号に変換するA/D変換部7が設けられる。そし
てA/D変換部7により変換されたデジタル信号によっ
てマイクロプロセッサ内で処理される。マイクロコンピ
ュータ2はマイクロプロセッサとメモリ、及び入出力イ
ンターフェースを有しており、後述する演算処理を実行
すると共に、所定の閾値でデジタル信号を弁別し、この
信号が連続して得られるときに物体検知信号を出力回路
8に与えるレベル弁別手段2aの機能を達成している。
又マイクロコンピュータ2内のメモリには、投光パター
ン記憶手段2bとして複数の投光パターンを記憶する領
域を有している。表示部9はこの光電スイッチの動作状
態を表示するものであって、例えば図2に示すように一
対の表示灯によって構成される。又入力部10は図2に
示すように、スライドスイッチ10aと投光パターンを
切換えるときに用いられる押ボタンスイッチ10bとを
有している。スライドスイッチ10aは投光パターンを
変更する場合に設定される「SET1」,感度を調整す
る際に設定される「SET2」,及び通常の動作モード
「RUN」選択するものである。
An A / D converter 7 for converting the hold level of the sample and hold circuit into a digital signal is provided in the microcomputer 2 as shown in FIG. Then, the digital signal converted by the A / D converter 7 is processed in the microprocessor. The microcomputer 2 has a microprocessor, a memory, and an input / output interface, executes arithmetic processing described later, discriminates a digital signal with a predetermined threshold, and detects an object when the signal is continuously obtained. The function of the level discriminating means 2a for providing a signal to the output circuit 8 is achieved.
The memory in the microcomputer 2 has an area for storing a plurality of light emitting patterns as light emitting pattern storage means 2b. The display unit 9 displays the operation state of the photoelectric switch, and is composed of, for example, a pair of indicator lights as shown in FIG. As shown in FIG. 2, the input unit 10 has a slide switch 10a and a push button switch 10b used to switch the light projection pattern. The slide switch 10a selects "SET1" which is set when changing the light projection pattern, "SET2" which is set when adjusting the sensitivity, and the normal operation mode "RUN".

【0012】ここで投光パターンとは、例えば一定の投
光パルス幅を有するものとし、一定周期でもよく、又多
数の異なった周期を組合せて投光パターンを構成しても
よい。例えば周期が10μS、20μS、30μSの一
定の周期でもよく、これらを適宜組合せて投光パターン
としてもよい。又メモリの数バイトのいずれかのビット
に1を立て、他を0とし、このデータを連続して読出し
てシリアル信号に変換することによって投光パターンと
してもよい。これらの投光パターンを多数記憶しておく
ことによって切換えて用いるものとする。
Here, the light projecting pattern has, for example, a constant light projecting pulse width and may have a constant period, or may constitute a light projecting pattern by combining a number of different periods. For example, the period may be a fixed period of 10 μS, 20 μS, or 30 μS, or these may be appropriately combined to form a light projection pattern. Alternatively, a light emitting pattern may be obtained by setting one of the bits of several bytes of the memory to 1 and setting the other bits to 0, and continuously reading out this data and converting it into a serial signal. It is assumed that these projection patterns are switched by storing a large number of these projection patterns.

【0013】次に本実施例の動作について説明する。図
3は本実施例の動作を示すフローチャートである。本図
において動作を開始すると、まずメインプログラムの処
理ルーチン21を実行する。このルーチン21では「R
UN」設定時の物体検知の動作や、「SET2」での感
度調整動作が含まれる。そしてこれらの処理を終えると
ステップ22に進んで、スライドスイッチ10aが「S
ET1」に設定されているかどうかをチェックする。こ
の設定でなければルーチン21に戻って同様の処理を繰
り返す。
Next, the operation of this embodiment will be described. FIG. 3 is a flowchart showing the operation of this embodiment. When the operation is started in the figure, first, the processing routine 21 of the main program is executed. In this routine 21, "R
This includes an object detection operation when “UN” is set and a sensitivity adjustment operation in “SET2”. When these processes are completed, the process proceeds to step 22, where the slide switch 10a is set to “S
Check if it is set to "ET1". If not, the process returns to the routine 21 to repeat the same processing.

【0014】さて「SET1」に設定されている場合に
は、ステップ23に進んで押ボタン10bが入力されて
いるかどうかをチェックする。この押ボタン10bから
の入力がなければステップ22に戻り、押下されている
場合にはステップ24に進んで投光パターンの切換えを
行う。この投光パターン記憶手段2bであるメモリ内の
投光パターンの1つをランダムに選択することによって
行う。そして選択した投光パターンを表示灯の点滅回数
等によって表示する。そしてステップ22に戻って同様
の処理を繰り返す。これ以後は選択された投光パターン
のデータを読出して投光素子駆動回路1に信号を与え
る。こうすれば選択されたパターンによって投光素子3
が駆動されることとなる。ここでマイクロコンピュータ
2はステップ23〜25において、入力部10からの入
力に応じて投光パターン記憶手段2bに記憶されている
投光パターンを任意に選択して切換える投光パターン選
択手段2cの機能を達成している。
If "SET1" has been set, the flow advances to step 23 to check whether the push button 10b has been input. If there is no input from the push button 10b, the process returns to step 22, and if it has been pressed, the process goes to step 24 to switch the light projection pattern. This is performed by randomly selecting one of the projection patterns in the memory which is the projection pattern storage means 2b. Then, the selected light emitting pattern is displayed based on the number of times the indicator lamp blinks. Then, the process returns to step 22 to repeat the same processing. Thereafter, the data of the selected light emitting pattern is read out and a signal is supplied to the light emitting element driving circuit 1. In this case, the light emitting element 3 is selected according to the selected pattern.
Is driven. Here, in steps 23 to 25, the microcomputer 2 arbitrarily selects and switches the light emission pattern stored in the light emission pattern storage means 2b in accordance with the input from the input unit 10, and the function of the light emission pattern selection means 2c. Have achieved.

【0015】従って複数の光電スイッチを近接して配置
し相互干渉があると認められる場合には、スライドスイ
ッチ10aを「SET1」とし、押ボタン10bを適宜
押圧することによって自動的に投光パターンが切換えら
れることとなり、相互干渉を防止することができる。
Accordingly, when a plurality of photoelectric switches are arranged close to each other and mutual interference is recognized, the slide switch 10a is set to "SET1" and the light emission pattern is automatically changed by appropriately pressing the push button 10b. Switching can be performed, and mutual interference can be prevented.

【0016】次に本発明の第2実施例について説明す
る。図4は本発明の第2実施例による光電スイッチの構
成を示すブロック図、図5はその動作を示すフローチャ
ートである。図5において第1実施例と同一部分は同一
符号を付して詳細な説明を省略する。本実施例では入力
部10からの操作によって投光パターンを切換えること
なく、電源投入時に自動的に投光パターンを選択するよ
うにしたものである。従って入力部10を有しておら
ず、マイクロコンピュータ32内にはA/D変換部31
に加えてCPUとメモリが設けられる。その他の構成は
第1実施例と同一である。
Next, a second embodiment of the present invention will be described. FIG. 4 is a block diagram showing the configuration of a photoelectric switch according to a second embodiment of the present invention, and FIG. 5 is a flowchart showing the operation thereof. In FIG. 5, the same parts as those in the first embodiment are denoted by the same reference numerals, and detailed description is omitted. In this embodiment, the light emission pattern is automatically selected when the power is turned on, without switching the light emission pattern by the operation from the input unit 10. Therefore, the microcomputer 32 does not have the input unit 10 and the A / D converter 31
In addition, a CPU and a memory are provided. Other configurations are the same as those of the first embodiment.

【0017】さて本実施例では図5のフローチャートに
おいて、電源投入時に動作を開始すると、まずステップ
41においてCPUの初期設定を行う。そしてステップ
42に進んで乱数を発生させる。そしてステップ43に
おいて発生した乱数に基づいてあらかじめメモリの投光
パターン記憶手段32bに記憶されている投光パターン
の1つを選択して設定する。そしてルーチン44のメイ
ンプログラム処理を行う。ここで第2実施例のマイクロ
コンピュータ31はステップ42,43において、電源
投入時に投光パターンの選択を行う投光パターン選択手
段32cの機能を達成している。こうすれば電源投入毎
に異なった投光パターンが選択されることとなって、複
数の光電スイッチを近接して配置しても相互干渉を生じ
る確率が極めて少なくなる。又通常の動作ではA/D変
換部31の出力を所定の閾値で弁別して物体検知信号を
得るレベル弁別手段32aの機能を達成している。
In this embodiment, in the flowchart of FIG. 5, when the operation is started when the power is turned on, first, in step 41, the CPU is initialized. Then, the process proceeds to step 42, where a random number is generated. Then, based on the random number generated in step 43, one of the light emission patterns stored in advance in the light emission pattern storage means 32b of the memory is selected and set. Then, the main program processing of the routine 44 is performed. Here, the microcomputer 31 of the second embodiment at Steps 42 and 43 achieves the function of the light emitting pattern selecting means 32c for selecting the light emitting pattern when the power is turned on. In this case, a different light projection pattern is selected each time the power is turned on, and even if a plurality of photoelectric switches are arranged close to each other, the probability of mutual interference being extremely reduced. In a normal operation, the function of the level discriminating means 32a for obtaining the object detection signal by discriminating the output of the A / D converter 31 with a predetermined threshold value is achieved.

【0018】次に本発明の第3実施例について説明す
る。図6は本発明の第3実施例による光電スイッチの構
成を示すブロック図であり、前述した第1実施例と同一
部分は同一符号を付して詳細な説明を省略する。本実施
例は第1実施例とほぼ同一の構成を有しており、マイク
ロコンピュータ52内の処理のみが異なっている。この
マイクロコンピュータ52にはA/D変換部51及びそ
の出力に応じてレベルを弁別するレベル弁別手段52a
に加えて投光パルス発生手段52b,入光モニタ手段5
2c及び投光パルス変更手段52dを構成している。
Next, a third embodiment of the present invention will be described. FIG. 6 is a block diagram showing the configuration of a photoelectric switch according to the third embodiment of the present invention. The same parts as those in the above-described first embodiment are denoted by the same reference numerals, and detailed description thereof will be omitted. This embodiment has substantially the same configuration as that of the first embodiment, and differs only in the processing in the microcomputer 52. The microcomputer 52 includes an A / D converter 51 and a level discriminating means 52a for discriminating a level according to the output thereof.
Light emitting pulse generating means 52b, light incident monitoring means 5
2c and the light projection pulse changing means 52d.

【0019】図7は本実施例の動作を示すフローチャー
ト、図8はその動作を示す波形図である。図8(a)は
この光電スイッチの投光クロック、図8(c)はこの投
光クロックに対応して得られる受光信号を示している。
さて図8(b)に示すように投光クロックに同期して他
の光電スイッチの投光クロックがあり、この信号が受光
素子に入光して相互干渉を起こしている場合について考
える。
FIG. 7 is a flowchart showing the operation of the present embodiment, and FIG. 8 is a waveform chart showing the operation. FIG. 8A shows a light emitting clock of the photoelectric switch, and FIG. 8C shows a light receiving signal obtained corresponding to the light emitting clock.
Now, consider a case where there is a light emission clock of another photoelectric switch in synchronization with the light emission clock as shown in FIG. 8B, and this signal enters the light receiving element and causes mutual interference.

【0020】さて図7に示すように動作を開始すると、
ステップ61においてタイムアップを待受け、タイムア
ップ毎に投光パルスを発生する(ステップ62)。そし
てステップ63においてそのパルス数を計数し、計数値
が所定値、例えば7となったかどうかをチェックする
(ステップ64)。7以下であればステップ61に戻っ
て同様の処理を繰り返し、図8(a)に示すように周期
的に投光パルスを出力する。
When the operation is started as shown in FIG.
In step 61, a time-up is awaited, and a light emission pulse is generated every time-up (step 62). Then, in step 63, the number of pulses is counted, and it is checked whether the counted value has reached a predetermined value, for example, 7 (step 64). If it is 7 or less, the process returns to step 61 to repeat the same processing, and periodically outputs a light emitting pulse as shown in FIG.

【0021】さてステップ64において計数値が7とな
ればステップ65に進んで投光を停止する。即ちステッ
プ65においてタイムアップを待受け、タイムアップす
れば投光パルスを発生させることなくステップ66に進
んで入光をモニタする。図8(a)の時刻t1は投光を停
止した状態を示している。この場合にも他の光電スイッ
チは同一の周期で投光を繰り返すため、相互干渉があれ
ば図8(c)に破線で示すように他のセンサからの投光
信号によって受光される。そして受光信号はA/D変換
部51を介してデジタル信号に変換される。従ってマイ
クロコンピュータ52ではこの状態で所定レベルの入光
があったかどうかをチェックする(ステップ67)。そ
して入光がなければステップ69に進みKをリセットし
て同一の周期で投光を再開する。入光レベルが所定値を
越えていればステップ68に進んで投光時間を変更す
る。これは例えば図8(a)に示すように時刻t2の時間
から矢印で示す時刻t3に投光パルスを遅らせるようにす
る。ここでマイクロコンピュータ52はステップ61〜
64において投光パルスを発生する投光パルス発生手段
52bの機能を達成しており、ステップ65〜67にお
いて投光を停止したタイミングで入光の有無を判別する
入光モニタ手段52cの機能を達成している。又マイク
ロコンピュータ52はルーチン68,ステップ69にお
いて入力信号が得られたときに投光タイミングを変更す
る投光タイミング変更手段52dを構成している。
When the count value becomes 7 in step 64, the flow advances to step 65 to stop the light projection. That is, in step 65, the time is awaited. If the time is up, the process proceeds to step 66 without generating a light emission pulse, and the light input is monitored. 8 time t 1 of the (a) shows a state of stopping the light projection. In this case as well, the other photoelectric switches repeatedly emit light in the same cycle. Therefore, if there is mutual interference, light is received by a light emission signal from another sensor as shown by a broken line in FIG. 8C. The light receiving signal is converted into a digital signal via the A / D converter 51. Therefore, the microcomputer 52 checks in this state whether or not a predetermined level of light is received (step 67). If there is no incoming light, the process proceeds to step 69, K is reset, and light emission is restarted at the same cycle. If the light input level exceeds the predetermined value, the routine proceeds to step 68, where the light projection time is changed. This to slow the projected pulse at time t 3 when indicated by the arrow from the time the time t 2 as shown in FIG. 8, for example (a). Here, the microcomputer 52 performs steps 61 to
At 64, the function of the light emitting pulse generating means 52b for generating a light emitting pulse is achieved, and at the steps 65 to 67, the function of the light incoming monitoring means 52c for judging the presence or absence of light at the timing when the light emission is stopped is achieved. are doing. The microcomputer 52 constitutes a light emission timing changing means 52d for changing the light emission timing when an input signal is obtained in the routine 68 and step 69.

【0022】このように本実施例では周期的に投光パル
スを停止して相互干渉の有無を判別している。そうすれ
ば図8(c)に破線で示すように例え他の光電スイッチ
からの相互干渉によって受光部に光が受光されても、投
光クロックをゲート信号として信号処理を行っているた
め、この影響を除くことができる。又投光時間の変更は
投光周期自体を変更してもよく、周期を同一とし元の時
間から遅らせたり早めたりして投光パルスの位置をずら
せるようにしてもよい。又本実施例では周期的に投光パ
ルスの発生を停止させているが、ランダムに停止させる
ようにしてもよいことはいうまでもない。
As described above, in this embodiment, the presence or absence of mutual interference is determined by periodically stopping the light emission pulse. Then, as shown by a broken line in FIG. 8C, even if light is received by the light receiving unit due to mutual interference from another photoelectric switch, signal processing is performed using the light emission clock as a gate signal. The effect can be eliminated. When changing the light projection time, the light projection period itself may be changed, or the period may be the same, and the position of the light emission pulse may be shifted by delaying or advancing from the original time. In this embodiment, the generation of the light emission pulse is periodically stopped, but it is needless to say that the light emission pulse may be stopped at random.

【0023】[0023]

【発明の効果】以上詳細に説明したように本願の請求項
1の発明によれば、複数の投光パターンを記憶してお
り、そのパターンを任意に選択することによって投光パ
ターンを変えている。従って特別なハードウェアを追加
することなく、又高速のマイクロプロセッサを用いるこ
となく容易に相互干渉を防止することができる。
As described above in detail, according to the first aspect of the present invention, a plurality of light emitting patterns are stored, and the light emitting pattern is changed by arbitrarily selecting the pattern. . Therefore, mutual interference can be easily prevented without adding special hardware or using a high-speed microprocessor.

【0024】本願の請求項2の発明では、電源投入時に
乱数によって投光パターンを選択しているので、逐一投
光パターンを変更する処理を行うことなく相互干渉の可
能性を極めて少なくすることができる。
According to the second aspect of the present invention, since the light emitting pattern is selected by a random number when the power is turned on, the possibility of mutual interference can be extremely reduced without performing a process of changing the light emitting pattern every time. it can.

【0025】[0025]

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

【図1】本発明の第1実施例による光電スイッチの構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a photoelectric switch according to a first embodiment of the present invention.

【図2】第1実施例の光電スイッチの正面図である。FIG. 2 is a front view of the photoelectric switch according to the first embodiment.

【図3】第1実施例の動作を示すフローチャートであ
る。
FIG. 3 is a flowchart showing the operation of the first embodiment.

【図4】本発明の第2実施例による光電スイッチの構成
を示すブロック図である。
FIG. 4 is a block diagram illustrating a configuration of a photoelectric switch according to a second embodiment of the present invention.

【図5】第2実施例の動作を示すフローチャートであ
る。
FIG. 5 is a flowchart showing the operation of the second embodiment.

【図6】本発明の第3実施例による光電スイッチの構成
を示すブロック図である。
FIG. 6 is a block diagram illustrating a configuration of a photoelectric switch according to a third embodiment of the present invention.

【図7】第3実施例の動作を示すフローチャートであ
る。
FIG. 7 is a flowchart showing the operation of the third embodiment.

【図8】第3実施例の動作を示すタイムチャートであ
る。
FIG. 8 is a time chart showing the operation of the third embodiment.

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

1 投光素子駆動回路 2,42,52 マイクロコンピュータ 2a,42a,52a レベル弁別手段 2b,42b 投光パターン記憶手段 2c,42c 投光パターン選択手段 3 投光素子 4 受光素子 6 サンプルホールド回路 7,41,51 A/D変換部 9 表示部 10 入力部 52b 投光パルス発生手段 52c 入光モニタ手段 52d 投光パルス変更手段 DESCRIPTION OF SYMBOLS 1 Projection element drive circuit 2, 42, 52 Microcomputer 2a, 42a, 52a Level discrimination means 2b, 42b Projection pattern storage means 2c, 42c Projection pattern selection means 3 Projection element 4 Light receiving element 6 Sample hold circuit 7, 41, 51 A / D conversion section 9 Display section 10 Input section 52b Light emitting pulse generating means 52c Light incoming monitoring means 52d Light emitting pulse changing means

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H03K 17/78 ──────────────────────────────────────────────────続 き Continued on front page (58) Field surveyed (Int.Cl. 7 , DB name) H03K 17/78

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 投光素子を有する投光部と、 受光素子を有し、前記投光素子からの光を受光する受光
部と、 前記受光部に得られる受光レベルに基づいて物体の有無
を判別するレベル弁別手段と、 前記投光素子をパルス駆動する複数の投光パターンを記
憶する投光パターン記憶手段と、 投光パターンの選択を入力する入力部と、 前記投光パターン記憶手段より記憶されたいずれかの投
光パターンを選択し、前記投光素子に与える投光パター
ン選択手段と、を具備することを特徴とする光電スイッ
チ。
A light-emitting unit having a light-emitting element, a light-receiving unit having a light-receiving element, receiving light from the light-emitting element, and determining the presence or absence of an object based on a light-receiving level obtained by the light-receiving element. Level discriminating means for discriminating; light emitting pattern storing means for storing a plurality of light emitting patterns for pulse driving the light emitting element; an input unit for inputting selection of a light emitting pattern; and storing from the light emitting pattern storing means. A light-projection pattern selecting means for selecting any one of the light-projection patterns and giving the selected light-projection pattern to the light-projection element.
【請求項2】 投光素子を有する投光部と、 受光素子を有し、前記投光素子からの光を受光する受光
部と、 前記受光部に得られる受光レベルに基づいて物体の有無
を判別するレベル弁別手段と、 前記投光素子をパルス駆動する複数の投光パターンを記
憶する投光パターン記憶手段と、 電源投入時に投光パターンをランダムに選択する投光パ
ターン選択手段と、を具備することを特徴とする光電ス
イッチ。
2. A light projecting section having a light projecting element, a light receiving section having a light receiving element, receiving light from the light projecting element, and detecting the presence or absence of an object based on a light receiving level obtained by the light receiving section. Level discriminating means for discriminating; light emitting pattern storing means for storing a plurality of light emitting patterns for pulse-driving the light emitting element; and light emitting pattern selecting means for randomly selecting a light emitting pattern when power is turned on. A photoelectric switch.
JP13991592A 1992-05-01 1992-05-01 Photoelectric switch Expired - Fee Related JP3341025B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13991592A JP3341025B2 (en) 1992-05-01 1992-05-01 Photoelectric switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13991592A JP3341025B2 (en) 1992-05-01 1992-05-01 Photoelectric switch

Publications (2)

Publication Number Publication Date
JPH05308270A JPH05308270A (en) 1993-11-19
JP3341025B2 true JP3341025B2 (en) 2002-11-05

Family

ID=15256614

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13991592A Expired - Fee Related JP3341025B2 (en) 1992-05-01 1992-05-01 Photoelectric switch

Country Status (1)

Country Link
JP (1) JP3341025B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6021633B2 (en) * 2012-12-20 2016-11-09 アズビル株式会社 Reflected wave detector
JP6731251B2 (en) * 2015-12-25 2020-07-29 パナソニック デバイスSunx株式会社 Photoelectric sensor

Also Published As

Publication number Publication date
JPH05308270A (en) 1993-11-19

Similar Documents

Publication Publication Date Title
US6759644B2 (en) Sensor using radiation pulses
JP3341025B2 (en) Photoelectric switch
JP2006145483A (en) Pulse modulation type photodetection system, electronic equipment, and pulse modulation type photodetection method
JP3958200B2 (en) Photodetector
US6717129B1 (en) Photoelectric sensor using radiation pulses
JP2761702B2 (en) Photodetector
JP2515136B2 (en) Reflective photoelectric detector
JPH0433397B2 (en)
US4198627A (en) Photoelectric synchronous smoke sensor
JPH10187331A (en) Optical digitizer and system for driving the same
JP3062265B2 (en) Photoelectric switch
JP4777538B2 (en) Photoelectric sensor
JP3351816B2 (en) Photoelectric switch
JPS61269522A (en) Photoelectric switch
JP2593980B2 (en) Photoelectric smoke detector
JP2723927B2 (en) Automatic faucet device
JP2543615B2 (en) Photoelectric switch circuit
SU1718125A1 (en) Electric power take-off remote meter
JPH0964713A (en) Touch key
JP2002204151A (en) Many optic axes photoelectric sensor
JPH0453396B2 (en)
JP3440386B2 (en) Detection sensor
JP3067851B2 (en) Reflective infrared sensor and sensor system using the same
JPS61218978A (en) Distance-limited type optical sensor
JPH05142360A (en) Pulse counting circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees