JPH0626321U - Detection switch device - Google Patents
Detection switch deviceInfo
- Publication number
- JPH0626321U JPH0626321U JP6085092U JP6085092U JPH0626321U JP H0626321 U JPH0626321 U JP H0626321U JP 6085092 U JP6085092 U JP 6085092U JP 6085092 U JP6085092 U JP 6085092U JP H0626321 U JPH0626321 U JP H0626321U
- Authority
- JP
- Japan
- Prior art keywords
- detection
- level
- setting
- microcomputer
- detected
- 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
- 238000001514 detection method Methods 0.000 title claims abstract description 155
- 230000004397 blinking Effects 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 6
- 238000000034 method Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000002411 adverse Effects 0.000 description 2
- 230000003321 amplification Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 238000003199 nucleic acid amplification method Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
Landscapes
- Electronic Switches (AREA)
Abstract
(57)【要約】
【目的】 自動的に判定レベルを設定すると共に、その
検出余裕度数を表示して使用環境に対応する検出動作が
実行できるか否かを認識可能とする。
【構成】 マイクロコンピュータ1は、モード切換スイ
ッチ12、設定スイッチ10、11の操作に応じて、設
定プログラムを実行し、被検出物の有無に応じた検出信
号のレベルを記憶すると共に、それらの検出レベルに応
じて判定レベルを設定する。また、マイクロコンピュー
タ1は、それらの検出レベルから検出余裕度数を演算し
てその値に応じた点灯回数で安定動作表示灯14に点滅
動作を行なわせる。これにより使用環境に適応した検出
余裕度数があるか否かを迅速に認識できる。
(57) [Summary] [Purpose] The determination level is automatically set, and the detection margin frequency is displayed so that it is possible to recognize whether or not the detection operation corresponding to the usage environment can be executed. [Structure] The microcomputer 1 executes a setting program in response to the operation of the mode changeover switch 12 and the setting switches 10 and 11, stores the level of a detection signal depending on the presence or absence of an object to be detected, and detects them. Set the judgment level according to the level. Further, the microcomputer 1 calculates the detection margin frequency from those detection levels and causes the stable operation indicator lamp 14 to perform a blinking operation with the number of times of lighting according to the value. This makes it possible to quickly recognize whether or not there is a detection margin frequency adapted to the usage environment.
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 element for irradiating the detection area with light and a light receiving element for receiving reflected light from the detection area, and the light receiving element according to the light receiving amount of the light receiving element. The presence or absence of an object is detected by determining whether or not the level of the detection signal 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, it is output from the light receiving element according to the presence / absence of the object. It is considered that the calculation is automatically performed by performing a calculation in a predetermined relationship based on the levels of the two detection signals.
【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 detection signal between the levels of the respective detection signals is input. By setting the level as the determination level, it is possible to reliably detect the presence or absence of an object to be detected even when there is some ambient light or noise.
【0005】 このように判定レベルをその環境に応じたレベルに自動的に設定することがで き、使用者は、いちいち感度設定用のボリューム等を操作して検出条件を設定す るといった煩わしい作業をする必要がなく、実際に検出したい物体を用いて検出 時設定スイッチおよび非検出時設定スイッチを操作するのみで簡単に設定するこ とができるものである。As described above, the determination level can be automatically set to a level according to the environment, and the user has to perform a troublesome work such as operating a sensitivity setting volume or the like to set detection conditions. It is not necessary to do this, and the object can be set simply by operating the detection setting switch and non-detection setting switch using the 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 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.
【0007】 しかしながら、このような微小なレベル差の状態で判定レベルが設定されると 、被検出物が存在しない状態でも外乱光やノイズ等の悪影響によって検出信号が 誤出力されてしまったり、或は、比較器のヒステリシス特性によって、一度検出 状態を判定すると被検出物が存在しない状態となっても検出状態がリセットされ ないままとなる等の不具合が生ずる虞がある。However, when 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, 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.
【0008】 従って、例えば、ラインを流れる製品を光電スイッチの被検出物としているよ うな場合に、前述のようにして設定された判定レベルにより被検出物の存在する 状態でのみ確実に検出出力が得られるかどうかを試験してみる必要がある。そし て、試験を行なった結果で確実な検出動作が行われない場合には、再び設定作業 を行う必要があり、使用者にとっては煩わしい作業が残って使い勝手が悪くなる 不具合がある。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 performed only in the presence of the detected object according to the determination level set as described above. It is necessary to test whether it can be obtained. If the test result shows that the detection operation cannot be performed reliably, it is necessary to perform the setting work again, which is a troublesome work for the user, and there is a problem that the usability is deteriorated.
【0009】 また、そのとき判定レベルを再設定して検出動作が行われるようになっても、 外乱光やノイズに対しては十分な余裕があるかどうかはわからないため、どの程 度の外乱光やノイズに対する信頼性があるかを見極めることができない状況であ り、使用環境によっては誤検出が発生する虞が依然としてある。Further, at that time, even if the detection level is reset and the detection operation is performed, 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 it is reliable with respect to noise and noise, and there is still a risk of false detection 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 with a simple operation, and to set the determination level when the determination level is set. Another object of the present invention is to provide a detection switch device capable of confirming at the same time how much margin can prevent erroneous detection due to ambient light or noise.
【0011】[0011]
本考案は、検出部から出力される検出信号のレベルと判定レベルとを比較する ことにより被検出物の有無を判定して物体検出信号を出力する検出スイッチ装置 を対象とするものであり、前記被検出物が存在する状態で操作される第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 detection margin frequency according to the difference between the first and second detection level values That a calculating means, characterized in was constructed by providing the display means to further display the detected margin frequency by the calculating means to the number of lighting times.
【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 determination level setting means is , 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 calculates the detection margin frequency according to the stored difference between the first detection level and the second detection level, and the display means lights the detection margin frequency calculated by this calculation means. It will be displayed depending on the number of times. 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 judgment level has a sufficient margin based on the magnitude of the detection margin frequency. That is, it is possible to confirm whether there is a sufficient difference in the detection level depending on the presence or absence of the detected object. This makes it possible, for example, to determine the required detection margin frequency according to the conditions of the operating environment, that is, the incident conditions such as ambient light and noise at the installation location. It can be set so that it can perform various detection operations.
【0013】[0013]
以下、本考案を反射形の光電スイッチに適用した場合の一実施例について、図 面を参照して説明する。全体の電気的構成を示す図1において、マイクロコンピ ュータ1は、CPU,ROM,RAM,A/D変換回路等が内蔵された所謂ワン チップマイクロコンピュータと呼ばれるもので、判定レベル設定手段および演算 手段としての機能を兼ね備えており、図示しない物体検出プログラムおよび後述 する設定プログラムがあらかじめ記憶されている。 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 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 and a computing means. The object detection program (not shown) and a setting program to be described later are stored in advance.
【0014】 このマイクロコンピュータ1の電源入力端子VDは直流電源ライン2に接続さ れ、図示しない直流電源から電源端子Vおよび定電圧回路3を介して所定電圧が 与えられるようになっている。また、マイクロコンピュータ1のアース端子はア ース端子Eに接続されている。A power supply input terminal VD of the microcomputer 1 is connected to a 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 via the drive circuit 5, and the cathode is connected to the ground terminal E. The drive circuit 5 is connected to the output terminal a of the microcomputer 1 and is adapted to receive a light emitting pulse signal. The light emitting element 4 is caused to perform a light emitting operation in accordance with the light emitting pulse signal. It has become.
【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 converts the analog detection signal, which is amplified by the main amplifier 9 and then applied to the input terminal b, into a digital signal by the 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 used. 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 connected to the DC power supply line 2, and the cathodes thereof are connected to the output terminals f and g of the microcomputer 1, respectively. 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 connected to the input / output terminal h of the microcomputer 1. 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, (1) the detection operation will be briefly described, and then (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 performs the following operation according to a detection program (not shown). Perform detection operation. That is, the microcomputer 1 outputs a light emitting pulse signal to the drive circuit 5 to cause the light emitting element 4 to pulse-light at a predetermined frequency. When the object to be detected is present, 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 input to the input terminal b of the microcomputer 1. Will be given. The microcomputer 1 converts an analog light receiving signal given to the input terminal b into a digital detection signal by an A / D conversion function and inputs it, and the level of the detection signal is set as described later. Compare with judgment level K.
【0022】 そして、マイクロコンピュータ1は、検出信号のレベルが判定レベルKよりも 大きいと判断したときには入光有りとしてカウントし、そのカウント数が所定回 数に達すると、出力端子iから出力回路16を介して外部出力端子Pに物体検出 信号を出力すると共に、出力端子fに表示信号を出力して動作表示灯13を点灯 させるようになる。これにより、例えば、外部出力端子Pに負荷の駆動回路等が 接続されていれば、物体検出信号により駆動され、使用者に対しては動作表示灯 13の点灯により報知されるようになる。When the microcomputer 1 determines that the level of the detection signal is higher than the determination level K, it counts as the presence of light, and when the count reaches a predetermined number, it outputs from the output terminal i to the output circuit 16 The object detection signal is output to the external output terminal P via the output terminal and the display signal is output to the output terminal f to turn on the operation indicator lamp 13. Thus, for example, if a load drive circuit or the like is connected to the external output terminal P, the load is driven by the object detection signal, and the user is notified by turning on the operation indicator lamp 13.
【0023】 また、マイクロコンピュータ1は、上述の検出動作を行う場合に、入力された 検出信号を上述の判定レベルKよりも高いレベルのあらかじめ設定された安定検 出レベルと比較し、その検出信号のレベルが安定検出レベルよりも大きいと判断 したときには、安定入光状態であると判断し、出力端子gから表示信号を出力し て安定動作表示灯14を点灯させるようになる。これにより、この検出状態が安 定な状態であることが表示されているのである。Further, when the above-described detection operation is performed, the microcomputer 1 compares the input detection signal with a preset stable detection level that is higher than the above-described 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 this detection state is stable.
【0024】 (2)判定レベル設定動作 上述のように検出動作を行っている状態で、判定レベルKの設定を行うべく、 使用者によりモード切換スイッチ12が「SET」に切換えられると、マイクロ コンピュータ1は、図2に示すフローチャートにしたがって設定プログラムを実 行するようになる。(2) Judgment Level Setting Operation When the user switches the mode selector 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. Both are determined to be "NO" and the process proceeds to step S3. If the mode changeover switch 12 is in the "SET" state, it is determined to be "YES" and the process returns to step S1.
【0026】 この後、マイクロコンピュータ1は、ステップS1,S2およびS3を繰り返 し、使用者により被検出物が存在する状態での検出レベルを設定すべく、検出時 設定スイッチ10がオンされたときには、ステップS1で「YES」と判断して ステップS4に移行するようになる。After that, the microcomputer 1 repeats Steps S1, S2 and S3, and the detection time setting switch 10 is turned on by the user to set the detection level in the state where the object to be detected exists. In some cases, it is determined "YES" in step S1 and the process proceeds to step S4.
【0027】 このステップS4において、マイクロコンピュータ1は、投光素子4に前述同 様に投光動作を行わせ、被検出物からの反射光により受光素子6から受光アンプ 8およびメインアンプ9を介して入力される受光信号をA/D変換して得られた デジタルの検出信号を検出時レベルV1として読込み、さらにEEPROM15 に書込んで記憶するようになる。In step S 4, the microcomputer 1 causes the light projecting element 4 to perform the light projecting operation in the same manner as described above, and the light receiving element 6 causes the light receiving element 8 to pass through the light receiving amplifier 8 and the main amplifier 9 by the reflected light from the object to be detected. The digital detection signal obtained by A / D converting the received light input signal is read as the detection level V1 and is further written and stored in the EEPROM 15.
【0028】 次に、マイクロコンピュータ1は、いま記憶した検出時レベルV1とあらかじ め設定されている非検出時レベルV2とにより、判定レベルKを設定する。この 場合、非検出レベルV2は仮に設定されているもので、後述するように、非検出 時設定スイッチ11がオンされたときに設置されている使用環境に対応した非検 出レベルV2が設定されるようになっている。さて、マイクロコンピュータ1は 、検出時レベルV1および非検出時レベルV2からそれらの平均値を演算して判 定レベルK(=(V1+V2)/2)として記憶設定するようになる。Next, the microcomputer 1 sets the determination level K based on the currently detected detection level V1 and the previously set 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 operating environment installed when the non-detection time setting switch 11 is turned on is set. It has become so. Now, the microcomputer 1 calculates the average value of the detected level V1 and the non-detected level V2 and stores it as the determined level K (= (V1 + V2) / 2).
【0029】 続いて、マイクロコンピュータ1は、ステップS6に移行すると、検出余裕度 数Sを演算する。すなわち、マイクロコンピュータ1は、まず、検出時レベルV 1と非検出時レベル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 calculates the detection margin frequency S. That is, the microcomputer 1 first calculates the difference ΔS (= V1−V2) between the detected level V 1 and the non-detected level V2, and sets the value of 20% of the determination level K to the margin index. It is calculated as N (= 0.2 × K). Next, the microcomputer 1 calculates the ratio of the detection level difference ΔS to the margin index N as the detection margin number 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を繰返す。そして、非検出時スイッチ11がオンされると、マイクロ コンピュータ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 through step S3, and repeats steps S1, S2 and S3. When the non-detection switch 11 is turned on, the microcomputer 1 determines "YES" in step S2 and proceeds to step S7.
【0031】 マイクロコンピュータ1は、ステップS7で、上述と同様にして被検出物が存 在しない状態における検出信号を入力し、そのレベルを非検出時レベルV2とし て読込み、EEPROM15に書込んで使用環境に対応した非検出レベルV2を 記憶する。In step S7, the microcomputer 1 inputs the detection signal in the state in which the detected object does not exist in the same manner as described above, reads the level as the non-detection level V2, writes it in the EEPROM 15, and uses it. The non-detection level V2 corresponding to the environment is stored.
【0032】 このようにして、検出時および非検出時レベルV1およびV2が求められると 、マイクロコンピュータ1は、再びステップS5およびS6で判定レベルKを演 算すると共に、検出余裕度数Sを演算して記憶するようになる。この後、マイク ロコンピュータ1は、ステップS3でモード切換スイッチ12が「SET」状態 から解除されるのを判断しながらステップS1,S2を繰返す。In this way, when the detection and non-detection levels V1 and V2 are obtained, the microcomputer 1 again calculates the determination level K in steps S5 and S6, and also calculates the detection margin frequency S. Will be remembered. Thereafter, the micro computer 1 repeats steps S1 and S2 while judging in step S3 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-time level V1 and the non-detection level V2 is completed and the user releases the mode selector switch 12 from the “SET” state, 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, causes the stable operation indicator lamp 14 to blink, and returns to the detection program. In this case, the number of times the stable operation indicator lamp 14 is turned on is set to, for example, 0 times up to 5 times.
【0034】 これにより、使用者は、いま設定した検出時レベルV1および非検出時レベル V2による検出動作が余裕がある状態か否かを認識することができる。すなわち 、例えば、安定動作表示灯14の点灯回数が多い場合には、検出時レベルV1と 非検出時レベルV2との差が大きく、検出動作を行う場合の余裕も大きいことを 示している。As a result, the user can recognize whether or not the detection operation based on the detection-time level V1 and the non-detection-time level V2 that has just been set has a margin. That is, for example, when the number of times the stable operation indicator lamp 14 is turned on 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, the value of the detection margin frequency S is set to the margin index N in which the difference ΔS between the detection time level V1 and the non-detection time level V2 corresponds to 20% of the determination level K, as described above. Since it is calculated as a value that indicates how many times it 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 operating environment. Yes, if the value is 1 or more, the higher the value, the more reliably the detection becomes possible, and the accurate detection operation can be performed even when there is much ambient light or noise in the usage environment. It is shown that.
【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 usage environment where there is no ambient light or noise, the value of the detection margin frequency S is “1”. In a usage environment where there is a lot of ambient light or noise, if the value of detection margin frequency S is "3", a stable operation display that blinks after performing the judgment level setting operation is displayed. By observing the number of times the lamp 14 is 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 the present embodiment as described above, in the determination level setting operation, the determination level K is set by the microcomputer 1, and the detection margin frequency S is calculated to turn on the stable operation indicator lamp 14. Since the display is made according to the number of times, the user can easily set the determination level K by operating the detection setting switch 10 and the non-detection setting switch 11, and the determination level K can be set. In the setting process, it is possible to recognize the detection margin frequency S that is not erroneously detected by ambient light, noise, etc. by the number of times of lighting, and whether there is the detection margin frequency S adapted to the usage environment. Can be quickly determined.
【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 is possible to configure at low cost without separately providing a display means. it can.
【0039】 尚、上記実施例においては、検出余裕度数Sの表示を安定動作表示灯14を利 用して行うようにしたが、これに限らず、例えば、動作表示灯13を利用しても 良いし、あるいは専用の表示灯を別途に設けるようにしても良い。Although the detection margin frequency S is displayed by using the stable operation indicator lamp 14 in the above embodiment, the present invention is not limited to this, and the operation indicator lamp 13 may be used, for example. Alternatively, a dedicated indicator light may be separately provided.
【0040】 また、上記実施例においては、判定レベルを、検出時レベルV1および非検出 時レベルV2の平均値として演算される判定レベルKに設定する場合について説 明したが、これに限らず、例えば、あらかじめ一定の比較基準レベルを設定して おき、受光アンプの増幅度を変化させることにより実質的な判定レベルとして設 定するようにしても良いし、あるいは、投光素子による投光量を変化させること により実質的な判定レベルとして設定するようにしても良い。Further, in the above embodiment, the case where the determination level is set to the determination level K calculated as the average value of the detection-time level V1 and the non-detection-time level V2 has been described, but the invention is not limited to this. For example, a certain comparison reference level may be set in advance, and the amplification level of the light receiving amplifier may be changed to set the actual determination level, or the amount of light emitted by the light emitting element may be changed. By doing so, it may be set as a substantial determination level.
【0041】 さらに、上記実施例においては、第1および第2の設定スイッチを、個々に対 応して検出時設定スイッチ10と非検出時設定スイッチ11とを設ける構成とし たが、これに限らず、1つの設定スイッチで第1および第2の設定スイッチの機 能を有する構成としても良い。すなわち、例えば設定プログラムにより、最初に 設定スイッチが操作されたときには検出時設定スイッチとして機能し、次に設定 スイッチが操作されたときには非検出時設定スイッチとして機能するように構成 しても良い。Further, 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. Instead, one 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, and the mode changeover switch is used, for example. Alternatively, the determination level setting operation may be executed when the detection setting switch 10 or the non-detection setting switch 11 is operated.
【0043】 また、上記実施例においては、本考案を光電スイッチに適用した場合について 説明したが、これに限らず、他の検出スイッチに適用しても良いことは勿論であ る。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.
【0044】[0044]
以上説明したように、本考案の検出スイッチ装置によれば、第1および第2の 設定スイッチの操作により判定レベルを自動的に設定すると共に、演算手段およ び表示手段により、第1および第2の検出レベルの差に応じた検出余裕度数を演 算して表示手段にその検出余裕度数を点灯回数により表示するようにしたので、 簡単な操作で判定レベルの設定を行えると共に、設定した判定レベルがどの程度 の検出余裕度数をもっているかを迅速に認識できるので、例えばその使用環境に 必要な検出余裕度数があるか否かを認識することにより、外乱光やノイズなどに よる悪影響があっても正確な検出動作を実施できるかどうかを判断できるという 優れた効果を奏する。 As described above, according to the detection switch device of the present invention, the determination level is automatically set by the operation of the first and second setting switches, and the calculation means and the display means enable the first and second determination switches to be set. Since the detection margin frequency according to the difference between the two detection levels is calculated and the detection margin frequency is displayed on the display means by the number of times of lighting, the judgment level can be set by a simple operation and the set judgment can be performed. Since it is possible to quickly recognize how much the detection margin frequency of the level is, even if there is an adverse effect due to ambient light or noise, for example, by recognizing whether or not the detection margin frequency required for the usage environment is present. It has an excellent effect of being able to judge whether or not the accurate detection operation can be performed.
【図1】本考案の一実施例を示す概略的な電気的構成図FIG. 1 is a schematic electrical configuration diagram showing an embodiment of the present invention.
【図2】設定プログラムのフローチャート[Fig. 2] Flow chart of setting program
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)
と判定レベルとを比較することにより被検出物の有無を
判定して物体検出信号を出力する検出スイッチ装置にお
いて、 前記被検出物が存在する状態で操作される第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 that is operated in the state of being turned on, a second setting switch that is operated in a state in which the object to be detected does not exist, and is given from the detection unit when the first setting switch is operated. The level of the detection signal is set to 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. Determination level setting means for setting the determination level based on the detection level value; and calculation means for calculating the detection margin frequency according to the difference between the first and second detection level values. Detecting switch device being characterized in that comprising a display means for displaying the number of lighting times of the detection margin frequency by the arithmetic means.
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 true JPH0626321U (en) | 1994-04-08 |
| JP2515903Y2 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)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011258096A (en) * | 2010-06-11 | 2011-12-22 | Seiko Epson Corp | Processing device, optical detection device, display device and electronic apparatus |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6678774B2 (en) | 2017-01-11 | 2020-04-08 | 東芝三菱電機産業システム株式会社 | Power converter |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50136083A (en) * | 1974-04-14 | 1975-10-28 | ||
| 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 |
| JPH02239720A (en) * | 1989-03-13 | 1990-09-21 | Omron Tateisi Electron Co | Photoelectric switch |
| JPH03261218A (en) * | 1990-03-09 | 1991-11-21 | Omron Corp | Photoelectric switch |
-
1992
- 1992-08-31 JP JP1992060850U patent/JP2515903Y2/en not_active Expired - Lifetime
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS50136083A (en) * | 1974-04-14 | 1975-10-28 | ||
| 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 |
| JPH02239720A (en) * | 1989-03-13 | 1990-09-21 | Omron Tateisi Electron Co | Photoelectric switch |
| JPH03261218A (en) * | 1990-03-09 | 1991-11-21 | Omron Corp | Photoelectric switch |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2011258096A (en) * | 2010-06-11 | 2011-12-22 | Seiko Epson Corp | Processing device, optical detection device, display device and electronic apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2515903Y2 (en) | 1996-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8786436B2 (en) | Multiple optical axis photoelectric sensor | |
| JP3243115B2 (en) | Photoelectric detector and fire detection system | |
| US20130147368A1 (en) | Light level and light level rate of change sensor | |
| JPH0626321U (en) | Detection switch device | |
| JP4139936B2 (en) | Optical displacement sensor | |
| ES2325691T3 (en) | APPARATUS AND METHOD FOR INTERCONNECTION VERIFICATION. | |
| CN112798180A (en) | Fault detection method of force sensor and computer-readable storage medium | |
| JP2019152590A (en) | Switch disconnection detector | |
| CN218271106U (en) | System capable of identifying and intelligently switching positive and negative ends of thermocouple | |
| JP5046266B2 (en) | Detection device | |
| JP2513359Y2 (en) | Detection switch device | |
| KR0155686B1 (en) | Dew condition automatic warning circuit and method using temperature and humidity sensor | |
| CN119826966B (en) | Multistage judgment method and judgment system for illumination intensity | |
| JP3491138B2 (en) | Microcomputer heat detector | |
| JP4868779B2 (en) | Photoelectric sensor | |
| JPH08136487A (en) | Odor monitor | |
| JP3401816B2 (en) | Photoelectric switch | |
| KR100542311B1 (en) | Aging monitoring system using photoelectric switch | |
| JPH0750677Y2 (en) | Solar radiation detector | |
| JP2764731B2 (en) | Control device | |
| JPH07262465A (en) | Fire sensor and fire receiver | |
| KR20240029660A (en) | Apparatus and method for diagnosing vehicle | |
| JPS63260318A (en) | Photoelectric switch | |
| JP2503954Y2 (en) | Two-wire sensor switch | |
| KR200434296Y1 (en) | Entry and exit automatic sorting counter |
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 |