JPH0540896U - Detection switch device - Google Patents
Detection switch deviceInfo
- Publication number
- JPH0540896U JPH0540896U JP9850091U JP9850091U JPH0540896U JP H0540896 U JPH0540896 U JP H0540896U JP 9850091 U JP9850091 U JP 9850091U JP 9850091 U JP9850091 U JP 9850091U JP H0540896 U JPH0540896 U JP H0540896U
- Authority
- JP
- Japan
- Prior art keywords
- detection
- level
- gain
- value
- 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.)
- Granted
Links
Landscapes
- Switches Operated By Changes In Physical Conditions (AREA)
- Electronic Switches (AREA)
Abstract
(57)【要約】
【目的】 自動的に判定レベルを設定すると共に、確実
に検出できるか否かを報知する。
【構成】 マイクロコンピュータ1は第1および第2の
設定スイッチ9および10が操作されると、検出プログ
ラム(メインプログラム)およびゲイン設定プログラム
を実行して、被検出物の有無に応じた受光信号のレベル
を記憶すると共に、それらのレベルに応じて受光ゲイン
可変回路8の受光ゲインを設定する。また、マイクロコ
ンピュータ1は、記憶した受光信号のレベル差が設定さ
れている余裕値よりも小さいときには警報出力トランジ
スタ20に警報信号を出力すると共に警報表示LED1
3を点灯する。一方、余裕値よりも大きいときには、そ
の設定状態で外乱光やノイズに対する余裕値を超えてい
ることにより確実に検出可能となるので、実際に被検出
物を用いて試験を行なう必要がない。
(57) [Summary] [Purpose] Automatically sets the judgment level and notifies whether or not detection can be performed reliably. [Structure] When the first and second setting switches 9 and 10 are operated, the microcomputer 1 executes a detection program (main program) and a gain setting program to generate a light reception signal depending on the presence or absence of an object to be detected. The levels are stored and the light receiving gain of the light receiving gain variable circuit 8 is set according to the levels. Further, the microcomputer 1 outputs an alarm signal to the alarm output transistor 20 and outputs the alarm display LED 1 when the level difference between the stored light receiving signals is smaller than the set margin value.
Turn on 3. On the other hand, when it is larger than the margin value, the margin value for the ambient light or noise is exceeded in the setting state, so that the detection can be reliably performed, so that it is not necessary to actually perform the test using the object to be detected.
Description
【0001】[0001]
本考案は、検出部から出力される検出信号のレベルと判定レベルとを比較する ことにより被検出物の有無を判定して物体検出信号を出力する検出スイッチ装置 に関する。 The present invention relates to a detection switch device that determines the presence or absence of an object to be detected by comparing the level of a detection signal output from a detection unit with a determination level and outputs an object detection signal.
【0002】[0002]
この種の検出スイッチ装置の一例である光電スイッチにおいては、被検出エリ アに光を照射する投光部と、被検出エリアからの反射光を受ける受光部とを設け 、その受光部の受光量に応じた検出信号のレベルが予め設定されている判定レベ ルを超えているか否かを判断して物体の有無を検出するようになっている。 A photoelectric switch, which is an example of this type of detection switch device, is provided with a light projecting unit that irradiates the detected area with light and a light receiving unit that receives the reflected light from the detected area. The presence / absence of an object is detected by determining whether or not the level of the detection signal corresponding to the above exceeds a preset determination level.
【0003】 この場合に、物体の有無を検出するための判定レベルは、一般に検出条件に応 じて変更することが可能となっており、最近では、物体の有無に応じて受光部か ら出力される2つの検出信号のレベルに基づいて所定の関係で演算を行なって自 動的に設定するものが考えられている。In this case, the determination level for detecting the presence / absence of an object can be generally changed according to the detection condition, and recently, the output level from the light receiving unit is changed according to the presence / absence of the object. It is considered that the calculation is performed in a predetermined relationship based on the levels of the two detected signals to be automatically set.
【0004】 これにより、使用者は、いちいち感度設定用のボリューム等を操作して検出条 件を設定するといった煩わしい作業をする必要がなく、実際に検出したい物体を 用いて検出時設定スイッチおよび非検出時設定スイッチを操作するのみで簡単に 設定することができるものである。With this, the user does not need to perform a troublesome work such as operating the sensitivity setting volume and the like to set the detection condition, and the detection setting switch and the non-detection setting switch can be used by actually using the object to be detected. It can be set easily by operating the detection setting switch.
【0005】[0005]
ところで、このような従来構成のものでは、被検出物が存在する状態での検出 レベルと存在しない状態での検出レベルとの差が小さい場合、例えば、被検出物 からの反射光のレベルと背景からの入射光のレベルが近接している場合には、設 定される判定レベルは検出信号の僅かなレベル差に応じて決まることになる。 By the way, in such a conventional configuration, when the difference between the detection level in the presence of the detected object and the detection level in the non-existent state is small, for example, the level of the reflected light from the detected object and the background When the levels of the incident light from are close to each other, the determination level to be set depends on the slight level difference of the detection signals.
【0006】 しかしながら、このような微小なレベル差の状態で判定レベルが設定されると 、被検出物が存在しない状態でも外乱光やノイズ等の悪影響によって検出信号が 誤出力されてしまったり、或は、比較器のヒステリシス特性によって、一度検出 状態を判定すると被検出物が存在しない状態となっても検出状態がリセットされ ないままとなる等の不具合が生ずる虞がある。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, or the like even in the absence of the object to be detected, or However, due to the hysteresis characteristic of the comparator, there is a possibility that once the detection state is determined, the detection state remains unreset even if the detected object does not exist.
【0007】 従って、例えば、ラインを流れる製品を光電スイッチの被検出物としているよ うな場合に、前述のようにして設定された判定レベルにより被検出物の存在する 状態でのみ確実に検出出力が得られるかどうかを試験してみる必要がある。そし て、試験を行なった結果で確実な検出動作が行われない場合には、再び設定作業 を行う必要があり、使用者にとっては煩わしい作業が残って使い勝手が悪いと共 に、再設定して検出動作が行われるようになっても、外乱光やノイズに対しては 十分な余裕があるかどうかはわからないため、誤検出の発生を完全になくすには 至らないものである。Therefore, for example, when the product flowing through the line is used as the detected object of the photoelectric switch, the detection output can be reliably 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. If the test results show that the detection operation cannot be performed reliably, it is necessary to perform the setting work again. Even if the detection operation is started, it is impossible to completely eliminate the occurrence of erroneous detection because it is not known whether there is a sufficient margin for ambient light or noise.
【0008】 本考案は、上記事情に鑑みてなされたもので、その目的は、簡単な操作で物体 の有無の判定レベルを設定することができると共に、その判定レベルの設定に際 して外乱光やノイズ或は比較器のヒステリシス特性に起因する誤検出を防止でき るか否かを確認することができる検出スイッチ装置を提供するにある。The present invention has been made in view of the above circumstances, and an object thereof is to be able to set a determination level of the presence or absence of an object by a simple operation, and to set the determination level by disturbance light. Another object of the present invention is to provide a detection switch device capable of confirming whether or not erroneous detection due to noise or hysteresis characteristics of a comparator can be prevented.
【0009】[0009]
本考案は、検出部から出力される検出信号のレベルと判定レベルとを比較する ことにより被検出物の有無を判定して物体検出信号を出力する検出スイッチ装置 を対象としたものであり、前記被検出物が存在する状態で操作される第1の設定 スイッチと、前記被検出物が存在しない状態で操作される第2の設定スイッチと 、前記第1の設定スイッチが操作されたときに前記検出部から与えられる検出信 号のレベルを第1の検出レベルとし前記第2の設定スイッチが操作されたときに 前記検出部から与えられる検出信号のレベルを第2の検出レベルとして記憶する と共にこれら第1および第2の検出レベル値に基づいて前記判定レベルを設定す る判定レベル設定手段と、前記第1および第2の検出レベル値の差が予め設定記 憶された判定余裕値よりも小さいときに警報信号を出力する警報出力手段とを設 けて構成したところに特徴を有する。 The present invention is directed to a detection switch device that determines the presence or absence of an object to be detected by comparing the level of a detection signal output from a detection unit with a determination level and outputs an object detection signal. A first setting switch operated in the presence of the detected object; a second setting switch operated in the absence of the detected object; and a second setting switch operated when the first setting switch is operated. The level of the detection signal supplied from the detection unit is set as the first detection level, and the level of the detection signal supplied from the detection unit when the second setting switch is operated is stored as the second detection level. Judgment level setting means for setting the judgment level based on the first and second detection level values, and a judgment margin in which the difference between the first and second detection level values is stored in advance. Having features and alarm output means for outputting an alarm signal when less than the value at which is constructed set only.
【0010】[0010]
本考案の検出スイッチによれば、被検出物が存在する状態で第1の設定スイッ チを操作し、被検出物が存在しない状態で第2の設定スイッチを操作すると、判 定レベル設定手段は、それぞれの状態で得られる検出信号のレベルを記憶すると 共にそれらのレベルに基づいて判定レベルを設定する。そして、警報出力手段は 、記憶された第1の検出レベルおよび第2の検出レベルの差が予め設定記憶され ている判定余裕値よりも小さいか否かを判断し、小さい場合には、物体の検出動 作が確実に実施できないとして警報信号を出力し、また、警報信号が出力されな い状態であれば、設定された判定レベルにより確実に被検出物を検出できるので 、実際に被検出物を用いて検出動作の確認をする必要がなくなる。 According to the detection switch of the present invention, when the first setting switch is operated in the presence of the detected object and the second setting switch is operated in the absence of the detected object, the judgment level setting means is , The level of the detection signal obtained in each state is stored, and the determination level is set based on those levels. Then, the alarm output means determines whether or not the difference between the stored first detection level and the stored second detection level is smaller than a preset determination margin value. An alarm signal is output indicating that the detection operation cannot be performed reliably, and if the alarm signal is not output, the detected object can be reliably detected by the set judgment level. It becomes unnecessary to confirm the detection operation by using.
【0011】[0011]
以下、本考案を反射形の光電スイッチに適用した場合の第1の実施例について 図1ないし図4を参照しながら説明する。 Hereinafter, a first embodiment in which the present invention is applied to a reflective photoelectric switch will be described with reference to FIGS. 1 to 4.
【0012】 全体の電気的構成を示す図1において、マイクロコンピュータ1は、CPU, ROM,RAM,A/D変換回路等が内蔵された所謂ワンチップマイクロコンピ ュータと呼ばれるもので、判定レベル設定手段および警報出力手段としての機能 を兼ね備えており、後述する物体検出及び検出感度設定プログラムが予め記憶さ れている。In FIG. 1 showing the overall 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 a decision level setting means. It also has a function as an alarm output means, and an object detection and detection sensitivity setting program described later is stored in advance.
【0013】 発光ダイオード2のアノードは抵抗3を介して直流電源端子4に接続され、カ ソードはトランジスタ5を介してアースされている。トランジスタ5のベースは マイクロコンピュータ1の出力端子Aに接続されている。フォトダイオード6の カソードは直流電源端子4に接続され、アノードは増幅器7および受光ゲイン可 変回路8の入出力端子P,Sを介してマイクロコンピュータ1のアナログ入力端 子Bに接続されている。受光ゲイン可変回路8の選択入力端子はマイクロコンピ ュータ1の出力端子Cに接続されている。The anode of the light emitting diode 2 is connected to the DC power supply terminal 4 via the resistor 3, and the cathode is grounded via the transistor 5. The base of the transistor 5 is connected to the output terminal A of the microcomputer 1. The cathode of the photodiode 6 is connected to the DC power supply terminal 4, and the anode is connected to the analog input terminal B of the microcomputer 1 through the amplifier 7 and the input / output terminals P and S of the light receiving gain variable circuit 8. The selection input terminal of the light receiving gain variable circuit 8 is connected to the output terminal C of the microcomputer 1.
【0014】 第1の設定スイッチたる検出時設定スイッチ9および第2の設定スイッチたる 非検出時設定スイッチ10は、それぞれマイクロコンピュータ1の入力端子Dお よびEとアースとの間に接続されている。出力表示用の発光ダイオード(以下L EDと称する)11のアノードはマイクロコンピュータ1の出力端子Fに接続さ れ、カソードは抵抗12を介してアースされている。警報表示用のLED13の アノードはマイクロコンピュータ1の出力端子Gに接続され、カソードは抵抗1 4を介してアースされている。The detection setting switch 9 as the first setting switch and the non-detection setting switch 10 as the second setting switch are respectively connected between the input terminals D and E of the microcomputer 1 and the ground. .. The anode of the output display light emitting diode (hereinafter referred to as LED) 11 is connected to the output terminal F of the microcomputer 1, and the cathode is grounded via the resistor 12. The anode of the LED 13 for alarm display is connected to the output terminal G of the microcomputer 1, and the cathode is grounded via the resistor 14.
【0015】 EEPROM(書換え可能な不揮発性メモリ)15のデータ入出力端子はマイ クロコンピュータ1のデータ入出力端子Hに接続されている。マイクロコンピュ ータ1はこのEEPROM15から随時後述する必要なデータを読み出したり或 は書き込んだりするようになっている。The data input / output terminal of the EEPROM (rewritable nonvolatile memory) 15 is connected to the data input / output terminal H of the microcomputer 1. The microcomputer 1 is adapted to read or write necessary data, which will be described later, from the EEPROM 15 at any time.
【0016】 物体検出出力用のnpn形トランジスタ16のベースは抵抗17を介してマイ クロコンピュータ1の出力端子Iに接続され、コレクタは出力ターミナル18に 接続され、エミッタはアースされると共にGNDターミナル19に接続されてい る。異常警報出力用のnpn形トランジスタ20のベースは抵抗21を介してマ イクロコンピュータ1の出力端子Jに接続され、コレクタは警報出力ターミナル 22に接続され、エミッタはGNDターミナル19に接続されている。The base of the npn-type transistor 16 for object detection output is connected to the output terminal I of the microcomputer 1 via the resistor 17, the collector is connected to the output terminal 18, the emitter is grounded and the GND terminal 19 is connected. It is connected to the. The base of the npn transistor 20 for abnormal alarm output is connected to the output terminal J of the microcomputer 1 via the resistor 21, the collector is connected to the alarm output terminal 22 and the emitter is connected to the GND terminal 19.
【0017】 次に、上述した受光ゲイン可変回路8は、図2に示すように、1段目のマルチ プレクサ23を介して増幅器24に接続され、その出力端子は2段目のマルチプ レクサ25を介して増幅器26に接続され、その増幅器26の出力端子がマイク ロコンピュータ1の入力端子Bに接続されている。Next, as shown in FIG. 2, the above-described light-receiving gain variable circuit 8 is connected to the amplifier 24 via the first-stage multiplexer 23, and its output terminal is connected to the second-stage multiplexer 25. The output terminal of the amplifier 26 is connected to the input terminal B of the microcomputer 1.
【0018】 各マルチプレクサ23,25は、例えばn個の入力端子を備え、それぞれ隣接 する入力端子間は所定の分圧用抵抗rで接続されており、1段目のマルチプレク サ23の入力端子Xnは入力ターミナルPに接続され、出力端子Xは増幅器24 の非反転入力端子に接続されている。2段目のマルチプレクサ25の入力端子X nは増幅器24の出力端子に接続され、出力端子Xは出力ターミナルSに接続さ れている。Each of the multiplexers 23 and 25 has, for example, n input terminals, and adjacent input terminals are connected by a predetermined voltage dividing resistor r, and the input terminal Xn of the first-stage multiplexer 23 is connected. Is connected to the input terminal P and the output terminal X is connected to the non-inverting input terminal of the amplifier 24. The input terminal X n of the second stage multiplexer 25 is connected to the output terminal of the amplifier 24, and the output terminal X is connected to the output terminal S.
【0019】 マルチプレクサ23,25は、その選択入力端子にマイクロコンピュータ1の 出力端子Cから選択信号が与えられるようになっており、その選択信号に応じて 入力端子XnないしX1のうちのひとつを出力端子Xと導通状態にするもので、 これにより、マルチプレクサ23は、抵抗rを0個ないしn−1個介した状態に して入力ターミナルPから入力された検出信号を増幅器24に与え、マルチプレ クサ25も同様に抵抗rを0個ないしn−1個介した状態にして増幅器24の出 力信号を出力ターミナルSに与える。従って、1段目および2段目のマルチプレ クサ23,25により、入力ターミナルPからの検出信号を、n×n段階の調整 を行って出力ターミナルSに出力することが可能となる。The multiplexers 23 and 25 are adapted to be supplied with a selection signal from the output terminal C of the microcomputer 1 at their selection input terminals, and output one of the input terminals Xn to X1 according to the selection signal. The multiplexer 23 is brought into conduction with the terminal X, whereby the multiplexer 23 supplies the detection signal input from the input terminal P to the amplifier 24 with 0 to n−1 resistances r, and the multiplexer 24. Similarly, 25 also puts the output signal of the amplifier 24 at the output terminal S by setting the resistance r through 0 to n-1. Therefore, the first-stage and second-stage multiplexers 23 and 25 can output the detection signal from the input terminal P to the output terminal S after adjusting n × n stages.
【0020】 次に、本実施例の作用について図3および図4をも参照しながら説明する。尚 、本実施例においては、マルチプレクサ23,25の選択段階数がそれぞれ32 段階(n=32)である場合について述べる。そして、マイクロコンピュータ1 の動作として、図3にフローチャートで示す検出プログラムに従って行なう(1 )検出動作について簡単に説明し、続いて検出時設定スイッチ9或は非検出時設 定スイッチ10が操作されたときの(2)感度調整動作について詳述する。Next, the operation of this embodiment will be described with reference to FIGS. 3 and 4. In the present embodiment, the case where the number of selection stages of the multiplexers 23 and 25 is 32 (n = 32) will be described. As the operation of the microcomputer 1, the detection operation (1) performed according to the detection program shown in the flowchart of FIG. 3 will be briefly described, and subsequently, the detection setting switch 9 or the non-detection setting switch 10 is operated. The (2) sensitivity adjustment operation at this time will be described in detail.
【0021】 (1)検出動作 まず、電源が投入されると、マイクロコンピュータ1は、検出プログラムをス タートさせ、ステップS1で初期化動作を実施すると、続くステップS2および S3で検出時設定スイッチ9或は非検出時設定スイッチ10がオンされたかどう かを判断する。いま、どちらのスイッチ9,10も操作されていない状態を考え ているので、マイクロコンピュータ1は続くステップS4に移行する。(1) Detection Operation First, when the power is turned on, the microcomputer 1 starts the detection program, and when the initialization operation is executed in step S1, the detection time setting switch 9 is executed in the following steps S2 and S3. Alternatively, it is determined whether or not the non-detection setting switch 10 is turned on. Now, since it is considered that neither of the switches 9 and 10 has been operated, the microcomputer 1 proceeds to the subsequent step S4.
【0022】 このとき、マイクロコンピュータ1は、図示しない別のプログラムにより割り 込み動作によりLED2を点灯動作させるべく出力端子Aから投光信号を出力し ている。従って、被検出物から反射光があるときには、フォトダイオード6によ り受光信号が検出される。このフォトダイオード6による受光信号は増幅器7お よび受光ゲイン可変回路8を介してアナログ信号としてマイクロコンピュータ1 の入力端子Bに与えられる。At this time, the microcomputer 1 outputs a light emission signal from the output terminal A so as to turn on the LED 2 by an interrupt operation by another program not shown. Therefore, when there is reflected light from the object to be detected, the photodiode 6 detects the light reception signal. The light receiving signal from the photodiode 6 is given to the input terminal B of the microcomputer 1 as an analog signal via the amplifier 7 and the light receiving gain variable circuit 8.
【0023】 マイクロコンピュータ1は、入力端子Bに与えられたアナログ信号をデジタル の検出信号Lに変換し(A/D変換)、ステップS4においてその検出信号Lの 値が予め設定されている比較レベルRよりも大きいか否かを判定する。そして、 ここで検出信号Lの大きさが比較基準レベルRよりも大きいときには、マイクロ コンピュータ1は「YES」と判断してステップS5に進み、出力端子Iから「 H」レベルの信号を出力して物体検出出力用のトランジスタ16をオンさせ、さ らに、ステップS6で出力端子Fから「H」レベルの信号を出力して物体検出表 示用のLED11を通電点灯させる。The microcomputer 1 converts the analog signal supplied to the input terminal B into a digital detection signal L (A / D conversion), and in step S4, the value of the detection signal L is set to a preset comparison level. It is determined whether it is larger than R. Then, when the magnitude of the detection signal L is larger than the comparison reference level R, the microcomputer 1 determines "YES" and proceeds to step S5 to output the "H" level signal from the output terminal I. The object detection output transistor 16 is turned on, and in step S6, an "H" level signal is output from the output terminal F to energize and light the object detection display LED 11.
【0024】 一方、マイクロコンピュータ1は、ステップS4で「NO」と判断した場合に は、トランジスタ16およびLED11の何れに対してもオフ状態のままとする (ステップS7,S8)。そして、ステップS6或はS8が終了すると、マイク ロコンピュータ1は再びステップS2に戻って上述の検出動作を繰り返す。On the other hand, when the microcomputer 1 determines “NO” in step S 4, it leaves both the transistor 16 and the LED 11 in the off state (steps S 7, S 8). Then, when step S6 or S8 is completed, the microcomputer 1 returns to step S2 again and repeats the above detection operation.
【0025】 (2)−(a)感度調整動作(メインプログラム) 次に、検出時設定スイッチ9或は非検出時設定スイッチ10の何れかがオンさ れた場合の感度調整動作について説明する。即ち、検出時設定スイッチ9がオン されたときには、マイクロコンピュータ1は、ステップS2において「YES」 と判断してステップS9に移行し、ゲイン設定プログラムを実施する。(2)-(a) Sensitivity Adjustment Operation (Main Program) Next, the sensitivity adjustment operation when either the detection setting switch 9 or the non-detection setting switch 10 is turned on will be described. That is, when the detection setting switch 9 is turned on, the microcomputer 1 determines "YES" in step S2, moves to step S9, and executes the gain setting program.
【0026】 このゲイン設定プログラムについては後で詳しく述べるが、要するに、フォト ダイオード6から与えられる受光信号に対して、マイクロコンピュータ1内でA /D変換して得られる検出信号Lが比較基準レベルRを超えてトランジスタ16 がオンするときの受光ゲイン可変回路8における受光ゲインWを求めるプログラ ムである。This gain setting program will be described in detail later, but in short, the detection signal L obtained by A / D conversion in the microcomputer 1 with respect to the light reception signal given from the photodiode 6 is the comparison reference level R. This is a program for obtaining the light-receiving gain W in the light-receiving gain variable circuit 8 when the transistor 16 is turned on beyond the range.
【0027】 従って、この場合には、マイクロコンピュータ1は、被検出物が存在する状態 での受光ゲインV1が得られるので、ステップS10において、ゲイン設定プロ グラムで得られたゲイン値Wを検出時の受光ゲインV1として記憶する。Therefore, in this case, since the microcomputer 1 can obtain the light receiving gain V1 in the state where the object to be detected is present, in step S10, when the gain value W obtained by the gain setting program is detected. It is stored as the light receiving gain V1.
【0028】 一方、非検出時設定スイッチ10がオンされたときには、マイクロコンピュー タ1は、ステップS3で「YES」と判断してステップS11に移行し、上述と 全く同様にしてゲイン設定プログラムを実施する。この場合には、被検出物が存 在しない状態で非検出時設定スイッチ10がオンされているので、マイクロコン ピュータ1は、続くステップS12で得られた受光ゲインWを非検出時の受光ゲ インV2として記憶する。On the other hand, when the non-detection time setting switch 10 is turned on, the microcomputer 1 determines “YES” in step S3, moves to step S11, and executes the gain setting program in exactly the same manner as described above. carry out. In this case, since the non-detection setting switch 10 is turned on in the absence of the object to be detected, the microcomputer 1 sets the light receiving gain W obtained in the subsequent step S12 to the light receiving gain at the time of non-detection. It is stored as IN V2.
【0029】 このようにして、検出時および非検出時の受光ゲインV1およびV2が求めら れると、マイクロコンピュータ1は、続くステップS13で、これらの受光ゲイ ンV1およびV2の値の平均値を設定ゲインVS(=(V1+V2)/2)とし て求める。次に、マイクロコンピュータ1は、ステップS14で、いま求められ たゲインVSの値に対するヒステリシス値Hを設定する。In this way, when the light receiving gains V1 and V2 at the time of detection and at the time of non-detection are obtained, the microcomputer 1 determines the average value of the values of these light receiving gains V1 and V2 in the following step S13. The gain is set as VS (= (V1 + V2) / 2). Next, in step S14, the microcomputer 1 sets the hysteresis value H for the value of the gain VS thus obtained.
【0030】 このヒステリシス値Hは、マイクロコンピュータ1内で検出信号Lと比較基準 レベルRとを比較する際にチャタリングを防止するために設定する値で、設定ゲ インVSに応じて異なるヒステリシス値H(VS)のデータが予めメモリ内に記 憶されており、不必要に大きくすることなく、最適なヒステリシス値Hが設定さ れるようになっている。The hysteresis value H is a value set to prevent chattering when the detection signal L and the comparison reference level R are compared in the microcomputer 1, and the hysteresis value H differs depending on the set gain VS. The (VS) data is pre-stored in the memory so that the optimum hysteresis value H can be set without making it unnecessarily large.
【0031】 さて、続くステップS15で、マイクロコンピュータ1は、受光ゲインV1お よびV2のゲイン差ΔVS(=V1−V2)が所定の余裕値Mよりも大きい値と なっているかを判断する。この場合、余裕値Mは、外乱光やノイズなどにより被 検出物を誤検出しないような値として受光ゲインV1の大きさに応じて予めメモ リ内に記憶されている。尚、受光信号のレベルが低いために設定ゲインVSが大 きく設定されるときには、外乱光やノイズの悪影響も大きくなる可能性があるの で、余裕値Mの値も大きく設定するようになっている。Now, in a succeeding step S15, the microcomputer 1 determines whether or not the gain difference ΔVS (= V1−V2) between the light receiving gains V1 and V2 is larger than the predetermined margin value M. In this case, the margin value M is stored in advance in the memory in accordance with the magnitude of the light receiving gain V1 as a value that does not cause false detection of the detected object due to ambient light or noise. When the setting gain VS is set to a large value because the level of the received light signal is low, the adverse effect of ambient light or noise may be large, so the value of the margin value M is also set to a large value. There is.
【0032】 マイクロコンピュータ1は、このステップS15で、ゲイン差ΔVSが余裕値 Mよりも小さく「NO」と判断したときには、ステップS16に移行して警報出 力用のトランジスタ20をオンさせるべく出力端子Jから「H」レベルの信号を 出力し、続いてステップS17で出力端子Gから「H」レベルの信号を出力して 警報表示用LED13を通電点灯する。When it is determined in step S15 that the gain difference ΔVS is smaller than the margin value M and “NO”, the microcomputer 1 proceeds to step S16 to turn on the transistor 20 for alarm output. The signal of "H" level is output from J, and subsequently, the signal of "H" level is output from the output terminal G in step S17 to turn on the alarm display LED 13 by energizing.
【0033】 このような状態においては、求められた設定ゲインVSでは余裕度が小さいた め、確実な検出動作が保証できず、誤検出が避けられないため、被検出物の有無 の状態での検出条件を変更する等して再設定をする必要があることがわかる。In such a state, since the margin is small with the obtained set gain VS, a reliable detection operation cannot be guaranteed, and erroneous detection cannot be avoided. It can be seen that it is necessary to reset by changing the detection conditions.
【0034】 一方、ゲイン差ΔVSの値が余裕値Mよりも大きいときには、マイクロコンピ ュータ1は、ステップS15で「YES」と判断してステップS18,S19に 移行して警報出力用のトランジスタ20および警報表示用LED13をオフ状態 に保持する。On the other hand, when the value of the gain difference ΔVS is larger than the margin value M, the microcomputer 1 determines “YES” in step S15, moves to steps S18 and S19, and outputs the alarm output transistor 20 and The alarm display LED 13 is held in the off state.
【0035】 つまり、ステップS13で得られた設定ゲインVSは余裕度が十分あるため、 確実に物体の検出ができる状態であることを示している。従って、設定後に被検 出物を用いて試験をする必要がなく、そのまま、実際の検出動作に移行すること ができる。In other words, this indicates that the set gain VS obtained in step S13 has a sufficient margin, so that the object can be reliably detected. Therefore, it is not necessary to perform a test using the test object after setting, and the actual detection operation can be directly performed.
【0036】 (2)−(b)感度調整動作(ゲイン設定プログラム) さて、次に、ゲイン設定プログラムの詳細について図4のフローチャートを参 照して説明する。尚、ここでは、検出時設定スイッチ9がオンされた場合で、受 光信号によりマイクロコンピュータ1が物体の検出状態を呈するときのゲイン値 が21である場合を例にとって説明する。(2)-(b) Sensitivity Adjustment Operation (Gain Setting Program) Next, details of the gain setting program will be described with reference to the flowchart of FIG. Here, a case where the detection time setting switch 9 is turned on and the gain value when the microcomputer 1 exhibits the detection state of the object by the received light signal is 21 will be described as an example.
【0037】 マイクロコンピュータ1は、プログラムをスタートすると、まずステップP1 で、変数としての受光ゲインWの値に仮の値W0を代入し、続いてステップP2 で、繰り返しカウンタBに最大繰り返し数B0(例えば5)を代入する。マイク ロコンピュータ1は、続いてステップP3で、ゲイン変数Vにボリューム最大変 化幅Vm(=32)の1/2である値16を代入し、ステップP4で、ゲイン変 化量変数DVにゲイン変数V(=16)の値の1/2である値8を代入し、さら にステップP5で、カウンタCに調整回数C0(この場合には、マルチプレクサ 23,25が32段階に調整可能であるので、調整回数C0は6回となる)を代 入する。When the program is started, the microcomputer 1 first substitutes a temporary value W0 for the value of the light reception gain W as a variable in step P1, and subsequently, in step P2, the maximum number of repetitions B0 ( For example, 5) is substituted. Subsequently, in step P3, the micro computer 1 substitutes the value 16 which is ½ of the maximum volume change width Vm (= 32) into the gain variable V, and in step P4 the gain change amount variable DV is gained. The value 8 which is 1/2 of the value of the variable V (= 16) is substituted, and in step P5, the counter C is adjusted the number of adjustments C0 (in this case, the multiplexers 23 and 25 can be adjusted in 32 steps). Therefore, the number of adjustments C0 is 6).
【0038】 次に、マイクロコンピュータ1は、ステップPに移行して投光動作を一時的に 禁止し、この状態で、ステップP7にてゲイン設定値VSに上述のゲイン変数V (=16)の値を設定すると共に、ステップP8にてゲイン設定値VSに対応す るヒステリシス値Hをメモリ内のヒステリシス関数H(V)から読み出して設定 する。そして、この後、マイクロコンピュータ1は、ステップP9にて投光動作 を許可して開始する。これは、受光検出の動作を検出出力が常にオフ側からオン 側に移行するときの受光ゲインVを得るようにするためである。Next, the microcomputer 1 proceeds to Step P to temporarily prohibit the light projecting operation, and in this state, the gain setting value VS is set to the gain variable V (= 16) described above in Step P7. Along with setting the value, the hysteresis value H corresponding to the gain setting value VS is read from the hysteresis function H (V) in the memory and set in step P8. After that, the microcomputer 1 permits and starts the light projecting operation in step P9. This is for obtaining the light reception gain V when the detection output always shifts from the off side to the on side in the light reception detection operation.
【0039】 さて、この状態で、マイクロコンピュータ1は、フォトダイオード6からの受 光信号を受け、いま設定された受光ゲインVSによりゲイン調整された出力が入 力される。マイクロコンピュータ1は、ステップP10において、内部でA/D 変換して得た検出信号Lと比較基準レベルRとを比べ、検出信号Lが大きい場合 には「NO」と判断してステップP11に移行し、そうでない場合にはステップ P12に移行する。Now, in this state, the microcomputer 1 receives the light receiving signal from the photodiode 6, and the gain-adjusted output by the light receiving gain VS that has been set is input. In step P10, the microcomputer 1 compares the detection signal L internally obtained by A / D conversion with the comparison reference level R, and if the detection signal L is large, determines "NO" and proceeds to step P11. If not, the process proceeds to step P12.
【0040】 マイクロコンピュータ1は、ステップP11において、現在のゲイン変数Vの 値16からゲイン変化量変数DVの値8を差し引いた値をゲイン変数V(=8) として再設定する。しかし、この場合には、最終的に求められるゲイン値が21 であると仮定しているので、マイクロコンピュータ1はステップP10で「YE S」と判断するため、ステップP12に移行することになる。In step P11, the microcomputer 1 resets a value obtained by subtracting the value 8 of the gain change amount variable DV from the current value 16 of the gain variable V as the gain variable V (= 8). However, in this case, since it is assumed that the finally obtained gain value is 21, the microcomputer 1 determines to be "YES" in step P10, and therefore proceeds to step P12.
【0041】 そして、マイクロコンピュータ1は、ステップP12において、ゲイン変化量 加算変数AVにゲイン変化量変数DVの値8を代入し、続くステップP13でい ま代入した変数AVの値が0であるかどうかを判断し、この場合には「NO」と 判断してステップP14に移行する。マイクロコンピュータ1は、ステップP1 4でゲイン変数V(=16)に変数AVの値8を加算(V=V+AV)してゲイ ン変数Vの値を24とする。尚、ステップP13で変数AVの値が0であったと きには、マイクロコンピュータ1は、変数AVの値に1を代入してステップP1 4に移行する。Then, in step P12, the microcomputer 1 substitutes the value 8 of the gain change amount variable DV into the gain change amount addition variable AV, and in the subsequent step P13, is the value of the substituted variable AV 0? It is determined whether or not it is determined to be "NO" in this case, and the process proceeds to step P14. In step P14, the microcomputer 1 adds the value 8 of the variable AV to the gain variable V (= 16) (V = V + AV) to set the value of the gain variable V to 24. When the value of the variable AV is 0 in step P13, the microcomputer 1 substitutes 1 for the value of the variable AV and proceeds to step P14.
【0042】 次に、マイクロコンピュータ1は、ステップP16で、ゲイン変化量変数DV の値8を2で割って再び変数DVに代入し、カウンタCの値を1減じて5とし( C←C−1)、続くステップP18でそのカウンタCの値が0になっているかど うかを判定する。マイクロコンピュータ1は、このステップP18では「NO」 と判断して、ステップP6に戻る。Next, in step P16, the microcomputer 1 divides the value 8 of the gain change amount variable DV by 2 and substitutes it into the variable DV, and subtracts 1 from the value of the counter C to 5 (C ← C- 1) In the following step P18, it is determined whether or not the value of the counter C is 0. The microcomputer 1 determines "NO" in step P18 and returns to step P6.
【0043】 以下、マイクロコンピュータ1は、カウンタCの値が0となるまでステップP 6ないしP17を繰り返す。この繰り返しに際しては、ゲイン変化量変数DVの 値は8から順次4,2,1,0というように変化してゆくので、5回の繰り返し が終了すると最終的に求めるべきゲイン値21に近づいてゆき、1レベル単位で の設定がされる。尚、ゲイン値32を検出するために、5回の繰り返しでステッ プP13およびP15にて変数DVが0となった後も6回目の繰り返し時に加算 数AVが1となるように設定している。Hereinafter, the microcomputer 1 repeats steps P 6 to P 17 until the value of the counter C becomes 0. At the time of this repetition, the value of the gain variation variable DV gradually changes from 8 to 4, 2, 1, 0, so that the gain value 21 to be finally obtained approaches after the end of 5 repetitions. Yuki is set in units of 1 level. In order to detect the gain value 32, the number of additions AV is set to 1 at the time of the sixth iteration even after the variable DV becomes 0 at the steps P13 and P15 after the fifth iteration. ..
【0044】 この場合には、ゲイン値が21であると仮定しているので、繰り返しの2回目 ではゲイン変数Vの値が24に設定された状態でステップP10で受光信号Lを 比較し、このときにはゲイン変数Vの値が大きいので、3回目ではゲイン変化量 変数DVである4が差し引かれゲイン変数Vが20となり、4回目ではゲイン変 数Vが22となる。続いて5回目ではゲイン変数Vが21となって求めるゲイン 値21と一致する。In this case, since it is assumed that the gain value is 21, the light receiving signal L is compared in step P10 with the value of the gain variable V set to 24 in the second iteration, Since the value of the gain variable V is sometimes large, the gain change amount variable DV of 4 is subtracted at the third time, and the gain variable V becomes 20, and the gain variable V becomes 22 at the fourth time. Subsequently, at the fifth time, the gain variable V becomes 21 and matches the desired gain value 21.
【0045】 さて、このようにして6回の繰り返しが終了すると、カウンタCの値が0とな っているので、マイクロコンピュータ1は、ステップP18で「YES」と判断 してステップP19に移行し、ここで受光ゲインW(=W0)の値がゲイン変数 V(=21)の値と等しいかどうかを判断し、この場合には「NO」と判断する 。そして、マイクロコンピュータ1は、ステップP20で、受光ゲインWにゲイ ン変数Vの値21を代入し、続いてステップP21で繰り返しカウンタBの値を 1減じて4とし、次のステップP22で「NO」と判断して再びステップP3に 戻る。When the six repetitions have been completed in this way, the value of the counter C is 0, so the microcomputer 1 determines “YES” in step P18, and proceeds to step P19. Here, it is determined whether the value of the light receiving gain W (= W0) is equal to the value of the gain variable V (= 21), and in this case, it is determined to be "NO". Then, in step P20, the microcomputer 1 substitutes the value 21 of the gain variable V into the light receiving gain W, then in step P21, the value of the repeat counter B is decremented by 1 to 4, and in step P22, "NO" , "And returns to step P3 again.
【0046】 以下、マイクロコンピュータ1は、ステップP3ないしP18までを繰り返し て再びゲイン変数Vの値を設定し、このとき、ゲイン変数Vの値が前回とまった く同じ値21となった場合には、ステップP19で「YES」と判断してこのプ ログラムを終了する。つまり、2回ゲイン値を検出して全く同じ値が得られた場 合には、その値が信頼性の高いゲイン値であるとするのである。Hereinafter, the microcomputer 1 repeats steps P3 to P18 to set the value of the gain variable V again. At this time, when the value of the gain variable V becomes the same value 21 as the previous value, Then, in step P19, it is determined to be "YES" and this program is terminated. In other words, when the gain value is detected twice and exactly the same value is obtained, that value is regarded as a highly reliable gain value.
【0047】 一方、ステップP19で「NO」と判断された場合、即ち、受光信号のレベル が不安定で2回目のゲイン値が1回目の値と一致していないときには、その2回 目のゲイン変数Vに設定された値を受光ゲインWに代入(ステップP20)した 後、再び繰り返しカウンタBを1減じ(ステップP21)、ステップP3に戻っ て上述の過程を繰り返す。そして、この繰り返しは最大5回まで繰り返されるが 、途中で前回の受光ゲインWとゲイン変数Vの値とが一致した場合には、そこで プログラムを終了し、5回とも一致しなかった場合には、そのまま5回目のゲイ ン変数Vの値を受光ゲインWとしてプログラムを終了する。On the other hand, when it is determined to be “NO” in Step P19, that is, when the level of the received light signal is unstable and the gain value of the second time does not match the value of the first time, the gain of the second time is obtained. After substituting the value set in the variable V into the light receiving gain W (step P20), the repeat counter B is decremented by 1 again (step P21), and the process returns to step P3 to repeat the above process. This repetition is repeated up to 5 times, but if the previous light receiving gain W and the value of the gain variable V match midway, the program ends there, and if it does not match 5 times, Then, the program is terminated with the value of the gain variable V for the fifth time as it is as the light receiving gain W.
【0048】 以上のようにして、被検出物が存在する状態での受光ゲインWが得られ、メイ ンプログラムにおいて検出時の受光ゲインV1が設定されるのである。尚、非検 出時設定スイッチ10がオンされたときにも上述のゲイン設定プログラムは全く 同様にして実施され、物体が存在しない状態での受光ゲインWが得られ、メイン プログラムにおいて非検出時の受光ゲインV2が設定される。As described above, the light receiving gain W in the presence of the object to be detected is obtained, and the light receiving gain V1 at the time of detection is set in the main program. When the non-detection setting switch 10 is turned on, the above-described gain setting program is executed in exactly the same manner, and the light receiving gain W in the absence of an object is obtained. The light receiving gain V2 is set.
【0049】 そして、このゲイン設定プログラムにより、32段階の受光ゲインを6回の検 出動作により検索できると共に、その検索された受光ゲイン値を最大5回同じ検 出動作を繰り返すことにより、より正確な値を検出することができる。With this gain setting program, it is possible to retrieve the light receiving gain of 32 stages by the detection operation of 6 times, and by repeating the same detecting operation of the retrieved light receiving gain value up to 5 times, more accurate Value can be detected.
【0050】 このような本実施例によれば、使用者にとっては、検出時設定スイッチ9およ び非検出時設定スイッチ10を操作するのみで、簡単に受光ゲインを設定するこ とができると共に、その受光ゲイン設定過程において、ヒステリシス幅や外乱光 やノイズ等により誤検出しないゲイン差つまり余裕度があるときにはそのまま設 定状態とし、余裕度がないときには警報出力を出してトランジスタ20をオンさ せると共に警報出力表示用LED13を点灯して使用者に報知することができる ので、使用者にとっては、被検出物を用いた検出動作の試験等を実施する必要が なく、確実に検出動作が行なえる状態を得ることができる。According to the present embodiment as described above, the user can easily set the light receiving gain by only operating the detection setting switch 9 and the non-detection setting switch 10. In the process of setting the light-receiving gain, when there is a gain difference, that is, a margin that is not erroneously detected due to hysteresis width, ambient light, noise, etc., it is set as it is, and when there is no margin, an alarm output is output and the transistor 20 is turned on. At the same time, since the alarm output display LED 13 can be turned on to notify the user, the user need not carry out a test of the detection operation using the object to be detected, and the detection operation can be performed reliably. You can get the status.
【0051】 図5および図6は本考案の第2の実施例を示すもので、第1の実施例と異なる ところは、検出時設定スイッチ9および非検出時設定スイッチ10を本体部27 から離して設ける構成としたところである。FIGS. 5 and 6 show a second embodiment of the present invention. The difference from the first embodiment is that the detection time setting switch 9 and the non-detection setting switch 10 are separated from the main body 27. It has just been configured.
【0052】 即ち、マイクロコンピュータ1の入力端子DおよびEをそれぞれ入力ターミナ ル28および29に接続した構成とし、5つのターミナル18,19,22,2 8および29にそれぞれに対応する信号線18a,19a,22a,28aおよ び29aを接続すると共に、直流電源端子4に電源線4aを接続し、これらによ り本体部27に対する入出力ケーブル30を構成する。That is, the input terminals D and E of the microcomputer 1 are connected to the input terminals 28 and 29, respectively, and the signal lines 18a, 5b corresponding to the five terminals 18, 19, 22, 28 and 29, respectively. 19a, 22a, 28a, and 29a are connected, and a power supply line 4a is connected to the DC power supply terminal 4 to form an input / output cable 30 for the main body 27.
【0053】 このような構成とすることにより、検出時設定スイッチ9および非検出時設定 スイッチ10を入出力ケーブル30の信号線28aおよび29aに接続して使用 することができ、例えば、本体部27を設置した場所が使用者にとって検出時設 定スイッチ9および非検出時設定スイッチ10が操作しにくい場合でも、離れた 位置から簡単に操作することができ、より操作性に優れたものを得ることができ る。With this configuration, the detection-time setting switch 9 and the non-detection-time setting switch 10 can be used by connecting them to the signal lines 28a and 29a of the input / output cable 30, for example, the main body 27. Even if it is difficult for the user to operate the setting switch 9 for detection and the setting switch 10 for non-detection at the place where the is installed, it is possible to easily operate from a distant position, and to obtain a better operability. You can
【0054】 尚、上記各実施例においては、判定レベルの設定を受光ゲイン可変回路8を用 いて受光ゲインVを設定することにより受光信号のレベルを変化させて行なうよ うにしたが、これに限らず、例えば、投光量を変化させることにより実質的に判 定レベルを変化させて設定するようにしても良いし、またマイクロコンピュータ 1内で比較基準レベルそのものを変化させて判定レベルを設定するようにしても 良い。In each of the above embodiments, the determination level is set by changing the level of the light receiving signal by setting the light receiving gain V by using the light receiving gain variable circuit 8. However, the setting is not limited to this. Instead, for example, the judgment level may be changed and set substantially by changing the projection amount, or the comparison reference level itself may be changed in the microcomputer 1 to set the judgment level. But it's good.
【0055】 また、上記実施例においては、本考案を光電スイッチに適用した場合について 説明したが、これに限らず、他の検出スイッチに適用しても良いことは勿論であ る。Further, in the above 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.
【0056】 さらに、上記実施例においては、検出時設定スイッチ9と非検出時設定スイッ チ10とを別々に設ける構成としたが、これに限らず、1つのスイッチで同様の 機能を有する構成としても良い。即ち、例えばマイクロコンピュータに記憶され る検出プログラムを、最初にスイッチが操作されたときには検出時設定スイッチ として機能し、次にスイッチが操作されたときには非検出時設定スイッチとして 機能するように構成しても良い。Furthermore, in the above-described embodiment, the detection-time setting switch 9 and the non-detection-time setting switch 10 are provided separately, but the present invention is not limited to this, and a configuration having a similar function with one switch is also possible. Is also good. That is, for example, the detection program stored in the microcomputer is configured to function as a detection time setting switch when the switch is first operated and as a non-detection time setting switch when the switch is operated next. Is also good.
【0057】[0057]
【考案の効果】 以上説明したように、本考案の検出スイッチ装置によれば、警報出力手段を設 けて第1および第2の検出レベルの差が予め記憶設定された判定余裕値よりも小 さいときに警報信号を出力するようにしたので、設定された判定レベルで確実に 被検出物の有無を検出できるかどうかを、実際に被検出物を用いて試験をするこ となく判別できるようになり、煩わしい設定作業をする必要がなくなり、作業者 にとって使い勝手が良くなるという優れた効果を奏する。As described above, according to the detection switch device of the present invention, by providing the alarm output means, the difference between the first and second detection levels is smaller than the preset judgment margin value. Since the alarm signal is output at the time of opening, whether or not the presence or absence of the detected object can be reliably detected at the set determination level can be determined without actually using the detected object. This eliminates the need for troublesome setting work and improves the usability for the operator.
【図面の簡単な説明】[Brief description of drawings]
【図1】本考案の第1の実施例を示す電気的構成図FIG. 1 is an electrical configuration diagram showing a first embodiment of the present invention.
【図2】受光ゲイン可変回路の部分を示す電気的構成図FIG. 2 is an electrical configuration diagram showing a portion of a light receiving gain variable circuit.
【図3】検出プログラムのフローチャートFIG. 3 is a flowchart of a detection program.
【図4】ゲイン設定プログラムのフローチャートFIG. 4 is a flowchart of a gain setting program.
【図5】本考案の第2の実施例を示す図1相当図FIG. 5 is a view corresponding to FIG. 1 showing a second embodiment of the present invention.
【図6】入出力ケーブル部分を示す側面図FIG. 6 is a side view showing an input / output cable portion.
1はマイクロコンピュータ(判定レベル設定手段、警報
出力手段)、2は発光ダイオード、4は直流電源端子、
6はフォトダイオード、8は受光ゲイン可変回路、9は
検出時設定スイッチ(第1の設定スイッチ)、10は非
検出時設定スイッチ(第2の設定スイッチ)、11は出
力表示用LED、13は警報出力表示用LED、15は
EEPROM、16は検出出力用トランジスタ、20は
警報出力用トランジスタ、23,25はマルチプレク
サ、27は本体部、30は入出力ケーブルである。1 is a microcomputer (determination level setting means, alarm output means), 2 is a light emitting diode, 4 is a DC power supply terminal,
6 is a photodiode, 8 is a light receiving gain variable circuit, 9 is a detection setting switch (first setting switch), 10 is a non-detection setting switch (second setting switch), 11 is an output display LED, and 13 is An alarm output display LED, 15 is an EEPROM, 16 is a detection output transistor, 20 is an alarm output transistor, 23 and 25 are multiplexers, 27 is a main body, and 30 is an input / output cable.
Claims (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 to be detected is present. A first setting switch operated in a state of being operated, a second setting switch operated in a state in which the object to be detected does not exist, and provided from the detection unit when the first setting switch is operated. The level of the detection signal is set as a first detection level, and the level of the detection signal given from the detection unit when the second setting switch is operated is stored as a second detection level and the first and second detection levels are stored. The judgment level setting means for setting the judgment level based on the detection level value, and the difference between the first and second detection level values being smaller than a preset judgment margin value. And a warning output means for outputting a warning signal when the detection switch device is used.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1991098500U JP2513359Y2 (en) | 1991-11-01 | 1991-11-01 | Detection switch device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1991098500U JP2513359Y2 (en) | 1991-11-01 | 1991-11-01 | Detection switch device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0540896U true JPH0540896U (en) | 1993-06-01 |
| JP2513359Y2 JP2513359Y2 (en) | 1996-10-02 |
Family
ID=14221364
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1991098500U Expired - Lifetime JP2513359Y2 (en) | 1991-11-01 | 1991-11-01 | Detection switch device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2513359Y2 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62146011A (en) * | 1985-12-20 | 1987-06-30 | Omron Tateisi Electronics Co | Detecting switch |
| JPS62179494A (en) * | 1986-01-31 | 1987-08-06 | ジューキ株式会社 | Automatic sensitivity setting machine of cloth end detector of sewing machine |
| JPH0321889A (en) * | 1989-06-19 | 1991-01-30 | Calsonic Corp | Automatic tuning mechanism for sensor |
| JPH0327076A (en) * | 1989-06-26 | 1991-02-05 | Canon Inc | Fixing device |
| JPH03179816A (en) * | 1989-09-14 | 1991-08-05 | Omron Corp | Electronic switch |
-
1991
- 1991-11-01 JP JP1991098500U patent/JP2513359Y2/en not_active Expired - Lifetime
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62146011A (en) * | 1985-12-20 | 1987-06-30 | Omron Tateisi Electronics Co | Detecting switch |
| JPS62179494A (en) * | 1986-01-31 | 1987-08-06 | ジューキ株式会社 | Automatic sensitivity setting machine of cloth end detector of sewing machine |
| JPH0321889A (en) * | 1989-06-19 | 1991-01-30 | Calsonic Corp | Automatic tuning mechanism for sensor |
| JPH0327076A (en) * | 1989-06-26 | 1991-02-05 | Canon Inc | Fixing device |
| JPH03179816A (en) * | 1989-09-14 | 1991-08-05 | Omron Corp | Electronic switch |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2513359Y2 (en) | 1996-10-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3709514A1 (en) | Capacitance detection device | |
| JPH0540896U (en) | Detection switch device | |
| JP3632103B2 (en) | Photoelectric switch | |
| JPH08278110A (en) | Optical sensor | |
| JPH11136114A (en) | Photoelectric switch | |
| JPH10103910A (en) | Displacement detection circuit by potentiometer | |
| EP1164695B1 (en) | Circuit for detecting distortion in an amplifier, in particular an audio amplifier | |
| JP3401800B2 (en) | Photoelectric switch | |
| JP2515903Y2 (en) | Detection switch device | |
| KR0184500B1 (en) | Optical coupler data detecting method | |
| JPH03179816A (en) | Electronic switch | |
| JP2599503Y2 (en) | Sensor device | |
| JPS62146011A (en) | Detecting switch | |
| JP3358088B2 (en) | Detection switch | |
| JPH09167951A (en) | Photoelectric switch | |
| JP2526474B2 (en) | Automatic gain control circuit | |
| JP3328954B2 (en) | Photoelectric switch and method for setting sensitivity of photoelectric switch | |
| JPH0260101B2 (en) | ||
| JPS62146010A (en) | Detecting switch | |
| JPH09232934A (en) | Photoelectric switch | |
| JP3166806B2 (en) | Current detection circuit | |
| KR0120585B1 (en) | Sp/lp mode detection circuit | |
| JPH0626860A (en) | Semiconductor position detecting element for detecting distance | |
| JPH0634325U (en) | Amplifier for sensor | |
| JPS61199124A (en) | Program selection circuit |