JP2515903Y2 - Detection switch device - Google Patents

Detection switch device

Info

Publication number
JP2515903Y2
JP2515903Y2 JP1992060850U JP6085092U JP2515903Y2 JP 2515903 Y2 JP2515903 Y2 JP 2515903Y2 JP 1992060850 U JP1992060850 U JP 1992060850U JP 6085092 U JP6085092 U JP 6085092U JP 2515903 Y2 JP2515903 Y2 JP 2515903Y2
Authority
JP
Japan
Prior art keywords
detection
level
detected
setting
microcomputer
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 - Lifetime
Application number
JP1992060850U
Other languages
Japanese (ja)
Other versions
JPH0626321U (en
Inventor
公男 近藤
伸一 橋本
Original Assignee
サンクス株式会社
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 サンクス株式会社 filed Critical サンクス株式会社
Priority to JP1992060850U priority Critical patent/JP2515903Y2/en
Publication of JPH0626321U publication Critical patent/JPH0626321U/en
Application granted granted Critical
Publication of JP2515903Y2 publication Critical patent/JP2515903Y2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Description

【考案の詳細な説明】[Detailed description of the device]

【0001】[0001]

【産業上の利用分野】本考案は、検出部から出力される
検出信号のレベルと判定レベルとを比較することにより
被検出物の有無を判定して物体検出信号を出力する検出
スイッチ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a detection switch device which judges the presence or absence of an object to be detected by comparing the level of a detection signal output from a detection section with a judgment level and outputs an object detection signal.

【0002】[0002]

【従来の技術】この種の検出スイッチ装置の一例である
光電スイッチにおいては、検出エリアに光を照射する投
光素子と、検出エリアからの反射光を受ける受光素子と
を設け、その受光素子の受光量に応じた検出信号のレベ
ルが、あらかじめ設定されている判定レベルを超えてい
るか否かを判断して物体の有無を検出するようになって
いる。
2. Description of the Related Art In a photoelectric switch, which is an example of a detection switch device of this type, a light projecting element for irradiating light to a detection area and a light receiving element for receiving reflected light from the detection area are provided. The presence or absence of an object is detected by determining whether the level of the detection signal corresponding to the amount of received light exceeds a preset determination level.

【0003】この場合に、物体の有無を検出するための
判定レベルは、一般に検出条件に応じて変更することが
可能となっており、最近では、物体の有無に応じて受光
素子から出力される2つの検出信号のレベルに基づいて
所定の関係で演算を行なって自動的に設定するものが考
えられている。
In this case, the determination level for detecting the presence / absence of an object can generally be changed according to the detection condition, and recently, it is output from a light receiving element according to the presence / absence of an object. It is considered that the calculation is performed in a predetermined relationship based on the levels of two detection signals and the setting is automatically performed.

【0004】例えば、検出すべき物体が存在するときの
検出信号と、検出すべき物体が存在しないときの外部か
ら入射する光による検出信号とを入力し、それぞれの検
出信号のレベルの中間のレベルを判定レベルとして設定
することにより、ある程度の外乱光やノイズなどがある
場合でも、検出すべき物体の有無を確実に検出できるよ
うにしたものである。
For example, a detection signal when an object to be detected exists and a detection signal by light incident from the outside when an object to be detected does not exist are input, and the level of each detection signal is an intermediate level. Is set as the determination level so that the presence / absence of an object to be detected can be surely detected even when there is ambient light or noise to some extent.

【0005】このように判定レベルをその環境に応じた
レベルに自動的に設定することができ、使用者は、いち
いち感度設定用のボリューム等を操作して検出条件を設
定するといった煩わしい作業をする必要がなく、実際に
検出したい物体を用いて検出時設定スイッチおよび非検
出時設定スイッチを操作するのみで簡単に設定すること
ができるものである。
In this way, the determination level can be automatically set to a level according to the environment, and the user performs a troublesome work such as operating the sensitivity setting volume and the like to set the detection condition. There is no need, and the object can be easily set only by operating the detection-time setting switch and the non-detection-time setting switch using an object to be detected.

【0006】[0006]

【考案が解決しようとする課題】ところで、このような
従来構成のものでは、被検出物が存在する状態での検出
レベルと存在しない状態での検出レベルとの差が小さい
場合、例えば、被検出物からの反射光のレベルと背景か
らの入射光のレベルが近接している場合には、設定され
る判定レベルは検出信号の僅かなレベル差に応じて決ま
ることになる。
By the way, in such a conventional configuration, when the difference between the detection level in the presence of the object to be detected and the detection level in the absence of the object to be detected is small, for example, When the level of the reflected light from the object and the level of the incident light from the background are close to each other, the determination level to be set depends on the slight level difference between the detection signals.

【0007】しかしながら、このような微小なレベル差
の状態で判定レベルが設定されると、被検出物が存在し
ない状態でも外乱光やノイズ等の悪影響によって検出信
号が誤出力されてしまったり、或は、比較器のヒステリ
シス特性によって、一度検出状態を判定すると被検出物
が存在しない状態となっても検出状態がリセットされな
いままとなる等の不具合が生ずる虞がある。
However, if the determination level is set in the state of such a minute level difference, the detection signal may be erroneously output due to the adverse effects of ambient light, noise, etc. even in the absence of the object to be detected. However, due to the hysteresis characteristic of the comparator, there is a possibility that once the detection state is determined, even if the detected object does not exist, the detection state remains unreset.

【0008】従って、例えば、ラインを流れる製品を光
電スイッチの被検出物としているような場合に、前述の
ようにして設定された判定レベルにより被検出物の存在
する状態でのみ確実に検出出力が得られるかどうかを試
験してみる必要がある。そして、試験を行なった結果で
確実な検出動作が行われない場合には、再び設定作業を
行う必要があり、使用者にとっては煩わしい作業が残っ
て使い勝手が悪くなる不具合がある。
Therefore, for example, in the case where the product flowing through the line is the detected object of the photoelectric switch, the detection output can be surely obtained only when the detected object is present due to the determination level set as described above. It is necessary to test whether it can be obtained. Then, if a reliable detection operation is not performed as a result of the test, it is necessary to perform the setting work again, and there is a problem that the user has troublesome work and the usability is deteriorated.

【0009】また、そのとき判定レベルを再設定して検
出動作が行われるようになっても、外乱光やノイズに対
しては十分な余裕があるかどうかはわからないため、ど
の程度の外乱光やノイズに対する信頼性があるかを見極
めることができない状況であり、使用環境によっては誤
検出が発生する虞が依然としてある。
Further, at this time, even if the detection operation is performed by resetting the determination level, it is not known whether there is a sufficient margin for the ambient light or noise. It is a situation where it is not possible to determine whether or not there is reliability with respect to noise, and there is still a possibility that erroneous detection may occur depending on the usage environment.

【0010】本考案は、上記事情に鑑みてなされたもの
で、その目的は、簡単な操作で物体の有無の判定レベル
を設定することができると共に、その判定レベルの設定
を行ったときに、どの程度の余裕をもって外乱光やノイ
ズ等に起因する誤検出を防止できるか否かも同時に確認
することができるようにした検出スイッチ装置を提供す
るにある。
The present invention has been made in view of the above circumstances, and an object thereof is to set a determination level of the presence or absence of an object by a simple operation, and when the determination level is set, It is an object of the present invention to provide a detection switch device capable of simultaneously confirming how much margin can be used to prevent erroneous detection due to ambient light or noise.

【0011】[0011]

【課題を解決するための手段】本考案は、検出部から出
力される検出信号のレベルと判定レベルとを比較するこ
とにより被検出物の有無を判定して物体検出信号を出力
する検出スイッチ装置を対象とするものであり、検出エ
リア内に前記被検出物が存在する状態で操作される第1
の設定スイッチと、検出エリア内に前記被検出物が存在
しない状態で操作される第2の設定スイッチと、前記第
1の設定スイッチが操作されたときに前記検出部から与
えられる検出信号のレベルを第1の検出レベルとし前記
第2の設定スイッチが操作されたときに前記検出部から
与えられる検出信号のレベルを第2の検出レベルとして
記憶すると共にこれら第1および第2の検出レベル値
略中間レベルに前記判定レベルを設定する判定レベル設
定手段と、検出余裕度数を表し前記第1および第2の検
出レベル値の差に応じた点灯回数を演算する演算手段
と、この演算手段による点灯回数により表示する表示手
段とを設けて構成したところに特徴を有する。
SUMMARY OF THE INVENTION The present invention is a detection switch device for determining the presence or absence of an object to be detected by comparing the level of a detection signal output from a detection section with a determination level and outputting an object detection signal. It is intended to target, detection error
First operated in a state where the object to be detected is present in the rear
Setting switch, a second setting switch operated in a state where the object to be detected does not exist in the detection area, and a level of a detection signal given from the detection unit when the first setting switch is operated. Is set as a first detection level and the level of the detection signal given from the detection section when the second setting switch is operated is stored as a second detection level, and the first and second detection level values are stored .
And evaluation level setting means for setting the decision level in a substantially middle level, and calculating means for calculating the number of lighting times corresponding to the difference between the detection margin frequency a represents the first and second detection level value, this arithmetic means characterized in was constructed by providing a display means for displaying the point light number Ru good.

【0012】[0012]

【作用】本考案の検出スイッチ装置によれば、被検出物
が存在する状態で第1の設定スイッチを操作し、被検出
物が存在しない状態で第2の設定スイッチを操作する
と、判定レベル設定手段は、それぞれの状態で得られる
第1および第2の検出信号のレベルを記憶すると共にそ
れらのレベルに基づいて判定レベルを設定する。そし
て、演算手段は、記憶された第1の検出レベルおよび第
2の検出レベルの差に応じた検出余裕度数を表す点灯回
数を演算し、表示手段は、この演算手段により演算され
た点灯回数により表示するようになる。したがって、使
用者は、表示手段の点灯回数を視認することにより、検
出余裕度数が確認でき、その検出余裕度数の大小によ
り、設定された判定レベルが、十分な余裕度を有してい
るか、つまり被検出物の有無に応じた検出レベルの差が
十分あるか否かを確認することができる。これにより、
例えば、使用環境の状態に応じて、すなわち設置場所に
おける外乱光やノイズ等の程度の入射状態に応じて、必
要となる検出余裕度数の目安を決めておくなどして、
示された検出余裕度数がその目安よりも小さかった場合
に、使用者が検出条件や設置環境などを変更して再度判
定レベルの設定を行うことによって、検出余裕度数が所
望する前記目安以上となるようにすることができ、以
て、確実な検出動作を行なわせるように設定することが
できるようになる。
According to the detection switch device of the present invention, when the first setting switch is operated in the presence of the object to be detected and the second setting switch is operated in the absence of the object to be detected, the judgment level setting is made. The means stores the levels of the first and second detection signals obtained in each state and sets the determination level based on those levels. Then, the calculation means is a lighting circuit that indicates the detection margin frequency according to the stored difference between the first detection level and the second detection level.
The number is calculated and the display means is calculated by this calculating means.
I would like to display the number of times lights point was. Therefore, the user can confirm the detection margin frequency by visually observing the number of times the display means is lit, and whether the set determination level has a sufficient margin, that is, whether the detection margin frequency is large or small. It is possible to confirm whether or not there is a sufficient difference in the detection level depending on the presence or absence of the detected object. This allows
For example, depending on the state of the environment of use, i.e. in accordance with the incident state of degree such as disturbance light and noise at the installation location, or the like is determined in advance an indication of the detection margin frequency required, the table
When the indicated detection margin frequency is less than the standard
In addition, the user may change the detection conditions and installation environment and judge again.
By setting the constant level, the detection margin frequency
It is possible to make it more than the above-mentioned desired standard, and
Then, it becomes possible to set so as to perform a reliable detection operation.

【0013】[0013]

【実施例】以下、本考案を反射形の光電スイッチに適用
した場合の一実施例について、図面を参照して説明す
る。全体の電気的構成を示す図1において、マイクロコ
ンピュータ1は、CPU,ROM,RAM,A/D変換
回路等が内蔵された所謂ワンチップマイクロコンピュー
タと呼ばれるもので、判定レベル設定手段および演算手
段としての機能を兼ね備えており、図示しない物体検出
プログラムおよび後述する設定プログラムがあらかじめ
記憶されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a reflection type photoelectric switch will be described below with reference to the drawings. In FIG. 1 showing the entire electrical configuration, a microcomputer 1 is a so-called one-chip microcomputer in which a CPU, a ROM, a RAM, an A / D conversion circuit and the like are built in, and serves as a judgment level setting means and a calculation means. The object detection program and the setting program, which will be described later, are stored in advance.

【0014】このマイクロコンピュータ1の電源入力端
子VDは直流電源ライン2に接続され、図示しない直流
電源から電源端子Vおよび定電圧回路3を介して所定電
圧が与えられるようになっている。また、マイクロコン
ピュータ1のアース端子はアース端子Eに接続されてい
る。
The power supply input terminal VD of the microcomputer 1 is connected to the DC power supply line 2, and a predetermined voltage is applied from a DC power supply (not shown) via the power supply terminal V and the constant voltage circuit 3. The ground terminal of the microcomputer 1 is connected to the ground terminal E.

【0015】発光ダイオード等の投光素子4のアノード
は駆動回路5を介して直流電源ライン2に接続され、カ
ソードはアース端子Eに接続されている。駆動回路5
は、マイクロコンピュータ1の出力端子aに接続され、
投光パルス信号が与えられるようになっており、その投
光パルス信号に応じて投光素子4に投光動作を行わせる
ようになっている。
The anode of the light projecting element 4 such as a light emitting diode is connected to the DC power supply line 2 through the drive circuit 5, and the cathode is connected to the ground terminal E. Drive circuit 5
Is connected to the output terminal a of the microcomputer 1,
A light projecting pulse signal is applied, and the light projecting element 4 is caused to perform a light projecting operation in accordance with the light projecting pulse signal.

【0016】フォトダイオード等の受光素子6のカソー
ドは直流電源ライン2に接続され、アノードはバイアス
回路7を介してアース端子Eに接続されると共に受光ア
ンプ8の入力端子に接続されている。受光アンプ8の出
力端子はメインアンプ9を介してマイクロコンピュータ
1の入力端子bに接続されている。なお、マイクロコン
ピュータ1は、メインアンプ9により増幅された後入力
端子bに与えられるアナログの検出信号を、A/D変換
機能によりデジタル信号に変換するようになっている。
The cathode of the light receiving element 6 such as a photodiode is connected to the DC power supply line 2, and the anode is connected to the ground terminal E via the bias circuit 7 and the input terminal of the light receiving amplifier 8. The output terminal of the light receiving amplifier 8 is connected to the input terminal b of the microcomputer 1 via the main amplifier 9. The microcomputer 1 is adapted to convert an analog detection signal, which is amplified by the main amplifier 9 and then applied to the input terminal b, into a digital signal by an A / D conversion function.

【0017】第1の設定スイッチとしての検出時設定ス
イッチ10および第2の設定スイッチたる非検出時設定
スイッチ11は、それぞれマイクロコンピュータ1の入
力端子cおよびdに接続され、モード切換スイッチ12
はマイクロコンピュータ1の入力端子eに接続されてい
る。発光ダイオード等の動作表示灯13および安定動作
表示灯14のアノードはそれぞれ直流電源ライン2に接
続され、カソードはそれぞれマイクロコンピュータ1の
出力端子fおよびgに接続されている。なお、安定動作
表示灯14は、後述のように、表示手段としての機能を
兼ね備えており、点滅動作を行って検出余裕度数をその
点灯回数により表示する。
The detection-time setting switch 10 as the first setting switch and the non-detection-time setting switch 11 as the second setting switch are connected to the input terminals c and d of the microcomputer 1, respectively, and the mode changeover switch 12 is connected.
Is connected to the input terminal e of the microcomputer 1. The anodes of the operation indicator lamp 13 and the stable operation indicator lamp 14 such as light emitting diodes are respectively connected to the DC power supply line 2, and the cathodes thereof are respectively connected to the output terminals f and g of the microcomputer 1. As will be described later, the stable operation indicator lamp 14 also has a function as a display means, and performs a blinking operation to display the detection margin frequency by the number of times of lighting.

【0018】EEPROM(書換え可能な不揮発性メモ
リ)15のデータ入出力端子はマイクロコンピュータ1
の入出力端子hに接続されている。マイクロコンピュー
タ1はこのEEPROM15から、後述するように随時
必要なデータを読み出したりあるいは書き込んだりする
ようになっている。物体検出の外部出力端子Pは出力回
路16を介してマイクロコンピュータ1の出力端子iに
接続されている。
The data input / output terminal of the EEPROM (rewritable non-volatile memory) 15 is the microcomputer 1.
Is connected to the input / output terminal h. The microcomputer 1 is adapted to read or write necessary data from the EEPROM 15 at any time as described later. The external output terminal P for object detection is connected to the output terminal i of the microcomputer 1 via the output circuit 16.

【0019】次に、本実施例の作用について図2をも参
照して説明する。なお、ここでは、(1)検出動作につ
いて簡単に説明した後に、(2)判定レベル設定動作に
ついて図2に示す設定プログラムのフローチャートを参
照して説明する。
Next, the operation of this embodiment will be described with reference to FIG. Here, after briefly explaining (1) the detection operation, (2) the determination level setting operation will be described with reference to the flowchart of the setting program shown in FIG.

【0020】(1)検出動作 電源が投入された状態で、モード切換スイッチ12が検
出モードに設定されているときには、マイクロコンピュ
ータ1は、図示しない検出プログラムにしたがって、次
のようにして検出動作を行う。すなわち、マイクロコン
ピュータ1は、駆動回路5に投光パルス信号を出力して
投光素子4を所定周波数でパルス点灯させる。検出エリ
ア内に被検出物が存在する場合には、この投光素子4か
らのパルス光が被検出物により反射されて受光素子6に
入射されるようになる。
(1) Detection Operation When the mode selector switch 12 is set to the detection mode with the power turned on, the microcomputer 1 executes the detection operation as follows according to a detection program (not shown). To do. That is, the microcomputer 1 outputs a light projecting pulse signal to the drive circuit 5 to cause the light projecting element 4 to pulse-light at a predetermined frequency. Detection
When an object to be detected is present in ( a), the pulsed light from the light projecting element 4 is reflected by the object to be detected and enters the light receiving element 6.

【0021】これにより、受光素子6から受光量に応じ
た受光信号が出力されると、受光アンプ8およびメイン
アンプ9を介して増幅された受光信号がマイクロコンピ
ュータ1の入力端子bに与えられるようになる。マイク
ロコンピュータ1は、入力端子bに与えられたアナログ
の受光信号をA/D変換機能によりデジタルの検出信号
に変換して入力し、その検出信号のレベルを後述のよう
に設定されている判定レベルKと比較する。
As a result, when a light receiving signal corresponding to the amount of light received is output from the light receiving element 6, the light receiving signal amplified via the light receiving amplifier 8 and the main amplifier 9 is applied to the input terminal b of the microcomputer 1. become. The microcomputer 1 converts the analog light receiving signal given to the input terminal b into a digital detection signal by the A / D conversion function and inputs the signal, and the level of the detection signal is set to a determination level set as described later. Compare with K.

【0022】そして、マイクロコンピュータ1は、検出
信号のレベルが判定レベルKよりも大きいと判断したと
きには入光有りとしてカウントし、そのカウント数が所
定回数に達すると、出力端子iから出力回路16を介し
て外部出力端子Pに物体検出信号を出力すると共に、出
力端子fに表示信号を出力して動作表示灯13を点灯さ
せるようになる。これにより、例えば、外部出力端子P
に負荷の駆動回路等が接続されていれば、物体検出信号
により駆動され、使用者に対しては動作表示灯13の点
灯により報知されるようになる。
When the microcomputer 1 judges that the level of the detection signal is higher than the judgment level K, it counts as the presence of light, and when the count reaches a predetermined number, it outputs the output circuit 16 from the output terminal i. Through this, an object detection signal is output to the external output terminal P and a display signal is output to the output terminal f to turn on the operation indicator lamp 13. Thereby, for example, the external output terminal P
If a load drive circuit or the like is connected to the device, it is driven by the object detection signal, and the user is notified by lighting the operation indicator lamp 13.

【0023】また、マイクロコンピュータ1は、上述の
検出動作を行う場合に、入力された検出信号を上述の判
定レベルKよりも高いレベルのあらかじめ設定された安
定検出レベルと比較し、その検出信号のレベルが安定検
出レベルよりも大きいと判断したときには、安定入光状
態であると判断し、出力端子gから表示信号を出力して
安定動作表示灯14を点灯させるようになる。これによ
り、この検出状態が安定な状態であることが表示されて
いるのである。
When the above-described detection operation is performed, the microcomputer 1 compares the input detection signal with a preset stable detection level which is higher than the above-mentioned determination level K, and detects the detection signal. When it is determined that the level is higher than the stable detection level, it is determined that the stable light input state is reached, and the display signal is output from the output terminal g to turn on the stable operation indicator lamp 14. As a result, it is displayed that the detected state is stable.

【0024】(2)判定レベル設定動作 上述のように検出動作を行っている状態で、判定レベル
Kの設定を行うべく、使用者によりモード切換スイッチ
12が「SET」に切換えられると、マイクロコンピュ
ータ1は、図2に示すフローチャートにしたがって設定
プログラムを実行するようになる。
(2) Judgment Level Setting Operation When the user switches the mode changeover switch 12 to "SET" in order to set the judgment level K in the detection operation as described above, the microcomputer 1 executes the setting program according to the flowchart shown in FIG.

【0025】すなわち、マイクロコンピュータ1は、ス
テップS1およびS2にて、検出時設定スイッチ10あ
るいは非検出時設定スイッチ11の何れがオンされたか
を判断し、いずれのスイッチ10,11もオンされない
ときには共に「NO」と判断してステップS3に移行
し、モード切換スイッチ12が「SET」状態である場
合には「YES」と判断してステップS1に戻る。
That is, the microcomputer 1 determines in step S1 and S2 which of the detection setting switch 10 and the non-detection setting switch 11 is turned on, and when neither of the switches 10 and 11 is turned on, the microcomputer 1 determines If "NO" is determined, the process proceeds to step S3. If the mode switch 12 is in the "SET" state, "YES" is determined and the process returns to step S1.

【0026】この後、マイクロコンピュータ1は、ステ
ップS1,S2およびS3を繰り返し、使用者により
出エリア内に被検出物が存在する状態での検出レベルを
設定すべく、検出時設定スイッチ10がオンされたとき
には、ステップS1で「YES」と判断してステップS
4に移行するようになる。
After that, the microcomputer 1 repeats steps S1, S2 and S3 so that the user can detect it.
When the detection setting switch 10 is turned on in order to set the detection level when the detected object is present in the exit area, it is determined to be "YES" in step S1 and step S1 is performed.
It will move to 4.

【0027】このステップS4において、マイクロコン
ピュータ1は、投光素子4に前述同様に投光動作を行わ
せ、被検出物からの反射光により受光素子6から受光ア
ンプ8およびメインアンプ9を介して入力される受光信
号をA/D変換して得られたデジタルの検出信号を検出
時レベルV1として読込み、さらにEEPROM15に
書込んで記憶するようになる。
In step S4, the microcomputer 1 causes the light projecting element 4 to perform the light projecting operation in the same manner as described above, and the reflected light from the object to be detected causes the light receiving element 6 to pass through the light receiving amplifier 8 and the main amplifier 9. A digital detection signal obtained by A / D converting the received light receiving signal is read as the detection level V1, and further written in the EEPROM 15 to be stored.

【0028】次に、マイクロコンピュータ1は、いま記
憶した検出時レベルV1とあらかじめ設定されている非
検出時レベルV2とにより、判定レベルKを設定する。
この場合、非検出レベルV2は仮に設定されているもの
で、後述するように、非検出時設定スイッチ11がオン
されたときに設置されている使用環境に対応した非検出
レベルV2が設定されるようになっている。さて、マイ
クロコンピュータ1は、検出時レベルV1および非検出
時レベルV2からそれらの平均値(略中間レベル)を演
算して判定レベルK(=(V1+V2)/2)として記
憶設定するようになる。
Next, the microcomputer 1 sets the judgment level K based on the currently detected detection level V1 and the preset non-detection level V2.
In this case, the non-detection level V2 is provisionally set, and as will be described later, the non-detection level V2 corresponding to the use environment installed when the non-detection time setting switch 11 is turned on is set. It is like this. Now, the microcomputer 1 calculates an average value (substantially intermediate level) of the detected level V1 and the non-detected level V2 and stores it as the determination level K (= (V1 + V2) / 2).

【0029】続いて、マイクロコンピュータ1は、ステ
ップS6に移行すると、検出余裕度数Sを表す安定動作
表示灯14の点灯回数を演算する。すなわち、マイクロ
コンピュータ1は、まず、検出時レベルV1と非検出時
レベルV2との差ΔS(=V1−V2)を演算すると共
に、判定レベルKの値の20%の値を余裕度指数N(=
0.2×K)として演算する。次に、マイクロコンピュ
ータ1は、この余裕度指数Nに対する検出レベル差ΔS
の割合を検出余裕度数Sとして点灯回数を演算する。す
なわち、検出余裕度数Sは、 検出余裕度数S=ΔS/N として求めることができるのである。
Subsequently, when the microcomputer 1 proceeds to step S6, it performs a stable operation indicating the detection margin frequency S.
The number of times the indicator lamp 14 is turned on is calculated. That is, the microcomputer 1 first calculates the difference ΔS (= V1−V2) between the detected level V1 and the non-detected level V2, and at the same time, sets the value of 20% of the value of the determination level K to the margin index N ( =
0.2 × K). Next, the microcomputer 1 determines the detection level difference ΔS with respect to the margin index N.
The number of times of lighting is calculated by setting the ratio of S to the detection margin frequency S. That is, the detection margin frequency S can be obtained as the detection margin frequency S = ΔS / N.

【0030】これにより、検出時設定スイッチ10のオ
ンによる処理が終了し、マイクロコンピュータ1は、ス
テップS3を経てステップS1に戻り、ステップS1,
S2およびS3を繰返す。そして、非検出時スイッチ1
1がオンされると、マイクロコンピュータ1は、ステッ
プS2で「YES」と判断してステップS7に移行す
る。
As a result, the processing by turning on the detection time setting switch 10 is completed, and the microcomputer 1 returns to step S1 via step S3, and returns to step S1.
Repeat S2 and S3. And switch 1 when not detected
When 1 is turned on, the microcomputer 1 determines "YES" in step S2 and proceeds to step S7.

【0031】マイクロコンピュータ1は、ステップS7
で、上述と同様にして検出エリア内に被検出物が存在し
ない状態における検出信号を入力し、そのレベルを非検
出時レベルV2として読込み、EEPROM15に書込
んで使用環境に対応した非検出レベルV2を記憶する。
The microcomputer 1 operates in step S7.
Then, in the same manner as described above, the detection signal in the state where the object to be detected does not exist in the detection area is input, the level is read as the non-detection level V2, and written in the EEPROM 15 to detect the non-detection level V2 corresponding to the use environment. Memorize

【0032】このようにして、検出時および非検出時レ
ベルV1およびV2が求められると、マイクロコンピュ
ータ1は、再びステップS5およびS6で判定レベルK
を演算すると共に、点灯回数を演算して記憶するように
なる。この後、マイクロコンピュータ1は、ステップS
3でモード切換スイッチ12が「SET」状態から解除
されるのを判断しながらステップS1,S2を繰返す。
In this way, when the detection and non-detection levels V1 and V2 are obtained, the microcomputer 1 again determines the determination level K in steps S5 and S6.
And the number of times of lighting is calculated and stored. After this, the microcomputer 1 proceeds to step S
In step 3, the steps S1 and S2 are repeated while determining that the mode changeover switch 12 is released from the "SET" state.

【0033】そして、検出時レベルV1および非検出時
レベルV2の設定が終了して、使用者によりモード切換
スイッチ12が「SET」状態から解除されると、マイ
クロコンピュータ1はステップS3で「NO」と判断し
てステップS8に移行する。ステップS8で、マイクロ
コンピュータ1は、記憶された検出余裕度数Sに対応す
る点灯回数の表示信号を出力端子gから出力して安定動
作表示灯14を点滅動作させて検出プログラムにリター
ンする。この場合、安定動作表示灯14の点灯回数は、
例えば、0回から最大5回までに設定されている。
When the setting of the detection level V1 and the non-detection level V2 is completed and the mode switch 12 is released from the "SET" state by the user, the microcomputer 1 returns "NO" in step S3. Then, the process proceeds to step S8. In step S8, the microcomputer 1 outputs a display signal of the number of times of lighting corresponding to the stored detection margin frequency S from the output terminal g, blinks the stable operation indicator lamp 14, and returns to the detection program. In this case, the number of times the stable operation indicator lamp 14 is turned on is
For example, it is set from 0 times to a maximum of 5 times.

【0034】これにより、使用者は、いま設定した検出
時レベルV1および非検出時レベルV2による検出動作
が余裕がある状態か否かを認識することができる。すな
わち、例えば、安定動作表示灯14の点灯回数が多い場
合には、検出時レベルV1と非検出時レベルV2との差
が大きく、検出動作を行う場合の余裕も大きいことを示
している。
As a result, the user can recognize whether or not the detection operation based on the currently set detection level V1 and non-detection level V2 has a margin. That is, for example, when the number of lighting of the stable operation indicator lamp 14 is large, the difference between the detection time level V1 and the non-detection time level V2 is large, and the margin for performing the detection operation is also large.

【0035】この場合、検出余裕度数Sの値は、前述の
ように、検出時レベルV1と非検出時レベルV2との差
ΔSが判定レベルKの20%に相当する余裕度指数Nに
対して何倍あるかを示す値として演算しているので、そ
の検出余裕度数Sが「1」に満たない場合には、使用環
境に外乱光やノイズがない状態でも確実な検出動作が保
証できない状態であり、「1」以上であれば値が大きく
なる程確実に検出できる度合いが高くなり、且つ、使用
環境に外乱光やノイズなどが多い場合でも正確な検出動
作を行うことができるようになることを示している。
In this case, as described above, the value of the detection margin frequency S is with respect to the margin index N in which the difference ΔS between the detection level V1 and the non-detection level V2 corresponds to 20% of the determination level K. Since the calculation is performed as a value indicating how many times there is, if the detection margin frequency S is less than "1", a reliable detection operation cannot be guaranteed even when there is no ambient light or noise in the usage environment. Yes, if "1" or more, the higher the value, the higher the degree of reliable detection becomes, and the more accurate detection operation can be performed even when there is a lot of ambient light or noise in the usage environment. Is shown.

【0036】そこで、検出余裕度数Sの目安として、光
電スイッチが配設された場所が、外乱光やノイズが全く
ない使用環境の場合には、検出余裕度数Sの値が「1」
であれば良く、外乱光やノイズが非常に多い使用環境の
場合には、検出余裕度数Sの値が「3」必要であるとす
ると、判定レベル設定動作を行った後に点滅動作される
安定動作表示灯14の点灯回数を見ることにより、その
ときの光電スイッチの使用環境に応じて、検出動作が正
確に実施できるか否かを認識することができるようにな
る。
Therefore, as a guideline for the detection margin frequency S, when the location where the photoelectric switch is disposed is a use environment where there is no ambient light or noise, the value of the detection margin frequency S is "1".
If the value of the detection margin frequency S needs to be “3” in a usage environment in which there is an extremely large amount of ambient light or noise, a stable operation in which the blinking operation is performed after the determination level setting operation is performed. By observing the number of times the indicator lamp 14 has been turned on, it becomes possible to recognize whether or not the detection operation can be accurately performed, depending on the usage environment of the photoelectric switch at that time.

【0037】このような本実施例によれば、判定レベル
設定動作においては、マイクロコンピュータ1により、
判定レベルKの設定を行うと共に、検出余裕度数Sを
す点灯回数を演算して安定動作表示灯14の点灯回数に
より表示するようにしたので、使用者は、検出時設定ス
イッチ10および非検出時設定スイッチ11を操作する
のみで、簡単に判定レベルKを設定することができると
共に、その判定レベルKの設定過程において、外乱光や
ノイズ等により誤検出しない検出余裕度数Sがどの程度
であるかを点灯回数により認識することができ、その使
用環境に適応した検出余裕度数Sがあるか否かを迅速に
判断できる。
According to this embodiment as described above, in the decision level setting operation, the microcomputer 1
The judgment level K is set and the detection margin frequency S is displayed.
Since the number of lightings is calculated and displayed by the number of lightings of the stable operation indicator lamp 14, the user simply operates the detection time setting switch 10 and the non-detection time setting switch 11 to easily determine the determination level K. Can be set, and in the process of setting the determination level K, it is possible to recognize how much the detection margin frequency S is not erroneously detected due to ambient light, noise, etc., by the number of lightings, and the usage environment It is possible to quickly determine whether or not there is the adapted detection margin frequency S.

【0038】また、本実施例によれば、安定動作表示灯
14により検出余裕度数Sに対応する点灯回数で表示す
るようにしたので、表示手段を別途に設けることなく安
価に構成することができる。
Further, according to the present embodiment, since the stable operation indicator lamp 14 displays the number of times of lighting corresponding to the detection margin frequency S, it can be constructed at low cost without separately providing a display means. .

【0039】尚、上記実施例においては、検出余裕度数
Sの表示を安定動作表示灯14を利用して行うようにし
たが、これに限らず、例えば、動作表示灯13を利用し
ても良いし、あるいは専用の表示灯を別途に設けるよう
にしても良い。
In the above embodiment, the detection margin frequency S is displayed by using the stable operation indicator lamp 14. However, the present invention is not limited to this, and, for example, the operation indicator lamp 13 may be used. Alternatively, a dedicated indicator light may be separately provided.

【0040】また、上記実施例においては、判定レベル
を、検出時レベルV1および非検出時レベルV2の平均
値として演算される判定レベルKに設定する場合につい
て説明したが、これ、例えば、あらかじめ一定の比較
基準レベルを設定しておき、受光アンプの増幅度を変化
させることにより実質的な判定レベルとして設定するよ
うにし、あるいは、投光素子による投光量を変化させる
ことにより実質的な判定レベルとして設定することも含
むものである。
Further, in the above embodiment, the determination level, the case has been described where to set determination level K, which is calculated as the average value of the detection time of the level V1 and the non-detection time level V2, which, for example, in advance Set a constant comparison reference level and change the amplification level of the light receiving amplifier to set it as the actual judgment level , or change the light projection amount by the light projecting element to make the actual judgment. Including setting as a level
It is a waste.

【0041】さらに、上記実施例においては、第1およ
び第2の設定スイッチを、個々に対応して検出時設定ス
イッチ10と非検出時設定スイッチ11とを設ける構成
としたが、これに限らず、1つの設定スイッチで第1お
よび第2の設定スイッチの機能を有する構成としても良
い。すなわち、例えば設定プログラムにより、最初に設
定スイッチが操作されたときには検出時設定スイッチと
して機能し、次に設定スイッチが操作されたときには非
検出時設定スイッチとして機能するように構成しても良
い。
Furthermore, in the above embodiment, the first and second setting switches are provided with the detection time setting switch 10 and the non-detection time setting switch 11 respectively, but the present invention is not limited to this. A single setting switch may have the functions of the first and second setting switches. That is, for example, the setting program may function as a detection-time setting switch when the setting switch is first operated, and may function as a non-detection-time setting switch when the setting switch is operated next.

【0042】そして、上記実施例においては、モード切
換スイッチ12を設け、このモード切換スイッチ12を
操作することにより判定レベル設定動作を実行する構成
としたが、これに限らず、例えば、モード切換スイッチ
を用いない構成とし、検出時設定スイッチ10あるいは
非検出時設定スイッチ11が操作されると判定レベル設
定動作を実行するようにしても良い。
In the above embodiment, the mode changeover switch 12 is provided and the judgment level setting operation is executed by operating the mode changeover switch 12. However, the present invention is not limited to this. Alternatively, the determination level setting operation may be performed when the detection setting switch 10 or the non-detection setting switch 11 is operated.

【0043】また、上記実施例においては、本考案を光
電スイッチに適用した場合について説明したが、これに
限らず、他の検出スイッチに適用しても良いことは勿論
である。
Further, in the above-mentioned embodiment, the case where the present invention is applied to the photoelectric switch has been described, but the present invention is not limited to this and may be applied to other detection switches.

【0044】[0044]

【考案の効果】以上説明したように、本考案の検出スイ
ッチ装置によれば、第1および第2の設定スイッチの操
作により判定レベルを第1及び第2の検出レベル値の略
中間レベルに自動的に設定すると共に、演算手段および
表示手段により、第1および第2の検出レベルの差に応
じた検出余裕度数を表す点灯回数を演算して表示手段に
の点灯回数により表示するようにしたので、簡単な操
作で判定レベルの設定を行えると共に、設定した判定レ
ベルがどの程度の検出余裕度数をもっているかを迅速に
認識できるので、例えばその使用環境に必要な検出余裕
度数があるか否かを認識することにより、外乱光やノイ
ズなどによる悪影響があっても正確な検出動作を実施で
きるかどうかを判断できるという優れた効果を奏する。
As described above, according to the detection switch device of the present invention, the judgment level can be set to the abbreviation of the first and second detection level values by operating the first and second setting switches.
Automatically and sets an intermediate level, the computing means and display means, the <br/> As a display means calculates the number of lighting times representing the detected margin frequency corresponding to the difference between the first and second detection level because be displayed by lit number, together with enabling the determination level setting by a simple operation, since it quickly recognize whether it has detected margin frequency of how much is determined level set, for example, required for the use environment By recognizing whether or not there is the detection margin frequency, it is possible to judge whether or not the accurate detection operation can be performed even if there is an adverse effect due to ambient light or noise.

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

【図1】本考案の一実施例を示す概略的な電気的構成図FIG. 1 is a schematic electrical configuration diagram showing an embodiment of the present invention.

【図2】設定プログラムのフローチャート[Fig. 2] Flow chart of setting program

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

1はマイクロコンピュータ(判定レベル設定手段、演算
手段)、2は直流電源ライン、4は投光素子、6は受光
素子、8は受光アンプ、9はメインアンプ、10は検出
時設定スイッチ(第1の設定スイッチ)、11は非検出
時設定スイッチ(第2の設定スイッチ)、12はモード
切換スイッチ、13は動作表示灯、14は安定動作表示
灯(表示手段)、15はEEPROMである。
1 is a microcomputer (judgment level setting means, computing means), 2 is a DC power supply line, 4 is a light projecting element, 6 is a light receiving element, 8 is a light receiving amplifier, 9 is a main amplifier, 10 is a detection time setting switch (first Setting switch), 11 is a non-detection setting switch (second setting switch), 12 is a mode change switch, 13 is an operation indicator lamp, 14 is a stable operation indicator lamp (display means), and 15 is an EEPROM.

Claims (1)

(57)【実用新案登録請求の範囲】(57) [Scope of utility model registration request] 【請求項1】 検出部から出力される検出信号のレベル
と判定レベルとを比較することにより被検出物の有無を
判定して物体検出信号を出力する検出スイッチ装置にお
いて、検出エリア内に 前記被検出物が存在する状態で操作され
る第1の設定スイッチと、検出エリア内に 前記被検出物が存在しない状態で操作さ
れる第2の設定スイッチと、 前記第1の設定スイッチが操作されたときに前記検出部
から与えられる検出信号のレベルを第1の検出レベルと
し前記第2の設定スイッチが操作されたときに前記検出
部から与えられる検出信号のレベルを第2の検出レベル
として記憶すると共にこれら第1及び第2の検出レベル
の略中間レベルに前記判定レベルを設定する判定レベ
ル設定手段と、検出余裕度数を表し 前記第1および第2の検出レベル値
の差に応じた点灯回数を演算する演算手段と、 この演算手段による点灯回数により表示する表示手段と
を具備したことを特徴とする検出スイッチ装置。
1. A detection switch device for determining the presence or absence of an object to be detected by comparing the level of a detection signal output from a detection section with a determination level, and outputting an object detection signal, wherein the object is detected within a detection area. A first setting switch operated in the presence of the detected object, a second setting switch operated in the state where the detected object does not exist in the detection area, and the first setting switch operated The level of the detection signal given from the detection section is sometimes stored as a first detection level, and the level of the detection signal given from the detection section when the second setting switch is operated is stored as a second detection level. with these and evaluation level setting means for setting the decision level at substantially middle level of the first and second detection level value represents the detection margin power the first and second detection level Calculating means for calculating the number of lighting times corresponding to the difference value, the detection switch device being characterized in that comprising a display means for displaying the point light number Ru good in the calculation means.
JP1992060850U 1992-08-31 1992-08-31 Detection switch device Expired - Lifetime JP2515903Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1992060850U JP2515903Y2 (en) 1992-08-31 1992-08-31 Detection switch device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1992060850U JP2515903Y2 (en) 1992-08-31 1992-08-31 Detection switch device

Publications (2)

Publication Number Publication Date
JPH0626321U JPH0626321U (en) 1994-04-08
JP2515903Y2 true JP2515903Y2 (en) 1996-11-06

Family

ID=13154270

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1992060850U Expired - Lifetime JP2515903Y2 (en) 1992-08-31 1992-08-31 Detection switch device

Country Status (1)

Country Link
JP (1) JP2515903Y2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10727761B2 (en) 2017-01-11 2020-07-28 Toshiba Mitsubishi-Electric Industrial Systems Corporation Power conversion apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5494261B2 (en) * 2010-06-11 2014-05-14 セイコーエプソン株式会社 Processing device, optical detection device, display device, and electronic apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5513289B2 (en) * 1974-04-14 1980-04-08
JPS59151529A (en) * 1983-01-29 1984-08-30 Toshiba Corp Self-control type detector
JPS60177281A (en) * 1984-02-23 1985-09-11 Matsushita Electric Works Ltd Photoelectric switch
JP2906426B2 (en) * 1989-03-13 1999-06-21 オムロン株式会社 Photoelectric switch
JPH03261218A (en) * 1990-03-09 1991-11-21 Omron Corp Photoelectric switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10727761B2 (en) 2017-01-11 2020-07-28 Toshiba Mitsubishi-Electric Industrial Systems Corporation Power conversion apparatus

Also Published As

Publication number Publication date
JPH0626321U (en) 1994-04-08

Similar Documents

Publication Publication Date Title
CN109708751B (en) Photosensitive sensor detection correction method and device and air conditioner
JP3243115B2 (en) Photoelectric detector and fire detection system
US5448224A (en) Heat detector including device for detecting abnormality of external temperature sensor
JP2515903Y2 (en) Detection switch device
JPH08139583A (en) Touch key
CN101763707A (en) Digital smoke-sensing alarm and alarm method thereof
JPH10334360A (en) Digital heat sensor and digital heat sensor for house
US6259514B1 (en) Rangefinder apparatus
JPS6123910A (en) Optical range measuring device
KR102361512B1 (en) An address type fire detection device that generates AC current with multiple frequency components AND a fire detection system including the same
JP2513359Y2 (en) Detection switch device
KR20210136757A (en) An address type fire detection device using the amplitude spectrum of the alternating current AND a fire detection system including the same
JP3694018B2 (en) Ranging device
JP2000111315A (en) Photoelectric sensor and its production method
JPH09284116A (en) Detection switch
JPH09284115A (en) Sensor switch
KR100374862B1 (en) Circuit for controlling failure of MICOM
EP1148346B1 (en) Method for calibrating a photoelectric cell
JPH0983333A (en) Photoelectric sensor
JPH08136487A (en) Odor monitor
JP2000155063A (en) Pressure monitoring device and method for electrical insulating gas
JP2764731B2 (en) Control device
JP3401816B2 (en) Photoelectric switch
JP2007139495A (en) Photoelectric sensor
CN114910823A (en) Sensor disconnection detection and display circuit

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term