JPH03129919A - Self-diagnostic circuit for photoelectric switch - Google Patents

Self-diagnostic circuit for photoelectric switch

Info

Publication number
JPH03129919A
JPH03129919A JP26787389A JP26787389A JPH03129919A JP H03129919 A JPH03129919 A JP H03129919A JP 26787389 A JP26787389 A JP 26787389A JP 26787389 A JP26787389 A JP 26787389A JP H03129919 A JPH03129919 A JP H03129919A
Authority
JP
Japan
Prior art keywords
signal
level
circuit
output
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP26787389A
Other languages
Japanese (ja)
Inventor
Shinya Tamino
民野 真也
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP26787389A priority Critical patent/JPH03129919A/en
Publication of JPH03129919A publication Critical patent/JPH03129919A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PURPOSE:To prevent a malfunction caused by noise by providing a counting means for counting a pulse in a first circuit in which a photodetecting signal is outputted in a first level or above, resetting it in a second circuit for outputting it in a second level or above, and outputting a self-diagnostic signal by a prescribed counting value. CONSTITUTION:When a photodetecting signal is in the first level or above, a signal B is outputted from a comparator 23, and the signal B is counted by a counter 28. Subsequently, when the photodetecting signal exceeds a stable photodetecting level, both the comparators 23, 24 output outputs B, C, and a counting pulse is inputted to the counter 28, but it is reset by a signal C each time. When the photodetecting signal is below a stable light incident level, the counter 28 is brought to counting and stepping again. By counting a prescribed pulse, the comparator 28 counts up, and outputs a self-diagnostic signal (alarm signal) D.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 この発明は光電スイッチの自己診断回路に関する。[Detailed description of the invention] (b) Industrial application field The present invention relates to a self-diagnosis circuit for a photoelectric switch.

(ロ)従来の技術 一般に光電スイッチは、第6図に示すように、受光素子
1で受光し、光を電気信号に変換して増幅器2で増幅し
、その出力がシュミット回路3に入力され、入力された
信号が所定の入光レベルを越えると、このシュミット回
路3が出力増幅器4を経てスイッチング信号を出力する
。この種の光電スイッチでは入力信号が入光レベルを越
えているが、所定の安定レベルを越えない場合に動作不
安定や誤動作を防ぐために、入力が所定の範囲内にある
場合にのみ出力を出すコンパレータ(比較器)5と、そ
の出力をゲート6を介して所定の遅延時間をおいて出力
するタイマ7を備えた自己診断回路を備えている。この
自己診断回路では検出物体がゆっくり移動している場合
に、遮光状態→入光状態、または入光状態→遮光状態へ
移行する時間が長く、しばらく不安定状態となる。この
間に誤って自己診断出力が出るのを防ぐ目的で時定数の
大きな積分回路でタイマ7を構成している。
(B) Conventional technology Generally, as shown in FIG. 6, a photoelectric switch receives light with a light receiving element 1, converts the light into an electrical signal, and amplifies it with an amplifier 2. The output is input into a Schmitt circuit 3. When the input signal exceeds a predetermined incident light level, the Schmitt circuit 3 outputs a switching signal via the output amplifier 4. This type of photoelectric switch outputs only when the input signal exceeds the incident light level but is within a predetermined range in order to prevent unstable operation or malfunction if the input signal does not exceed a predetermined stable level. The self-diagnosis circuit includes a comparator 5 and a timer 7 that outputs its output via a gate 6 after a predetermined delay time. In this self-diagnosis circuit, when the detection object is moving slowly, it takes a long time to transition from the light blocking state to the light receiving state or from the light receiving state to the light blocking state, resulting in an unstable state for a while. In order to prevent a self-diagnosis output from being erroneously output during this time, the timer 7 is constituted by an integrating circuit with a large time constant.

従来の他の自己診断回路を第7図に示している。Another conventional self-diagnosis circuit is shown in FIG.

この自己診断回路では、増幅器12の出力を物体検出用
の比較回路13とレベルダウン検出用の比較回路14に
加え、比較回路13の出力は微分回路15で微分されて
R3−FF17のセット入力端Sに加えられ、比較回路
14の出力は微分回路16で微分されてR3−FF l
 7のリセット入力端Rに加えられる。R3−FF17
のQ出力は、D−FF18の入力端りへ加えられ、比較
回路13の出力がインパーク20で反転されてD−FF
18の入力端CPに加えられる。この自己診断回路では
、入力信号が入光レベルを越えると比較回路13の出力
がハイとなり、応じて微分回路15がインパルスを出力
し、R3−FF 17をセットする。入力が正常な場合
は、入力信月はその後すぐに安定レベルをも越える。こ
れにより比較回路】4の出力がハイとなり、微分回路1
6がインパルスを出力し、R3−FF17をリセットす
る。
In this self-diagnosis circuit, the output of the amplifier 12 is applied to a comparison circuit 13 for object detection and a comparison circuit 14 for level-down detection, and the output of the comparison circuit 13 is differentiated by a differentiation circuit 15 to the set input terminal of R3-FF17. The output of the comparison circuit 14 is differentiated by the differentiation circuit 16 and becomes R3-FF l
It is applied to the reset input terminal R of 7. R3-FF17
The Q output of is applied to the input end of the D-FF 18, and the output of the comparator circuit 13 is inverted by the impark 20 and input to the D-FF.
18 input terminals CP. In this self-diagnosis circuit, when the input signal exceeds the incident light level, the output of the comparator circuit 13 becomes high, and the differentiator circuit 15 outputs an impulse accordingly, setting R3-FF 17. If the input is normal, the input signal will soon exceed the stable level. As a result, the output of comparator circuit]4 goes high, and the output of comparator circuit]4 goes high, and
6 outputs an impulse and resets R3-FF17.

そのため、やがて入力信号が入光レベルより低くなり、
比較回路13の出力がローとなり、インバータ20の出
力がハイに立ち上がってD−FF18にR3−FF17
のQ出力が読み込まれる時点ではR3−FF 17のQ
出力がローであり、従ってD−FF18は自己診断信号
(警報信号)を出力しない。しかし、入力信号がレベル
ダウンしており、入力信号が入光レベルを越えた後、安
定レベルを越えないまま、やがて入光レベルよりも低く
なると、R3−FF 17は微分回路15の出力でセッ
トされたままリセットされないで、Q出力はハイのまま
である。そのため、入力信号が入光レベルより低くなり
、比較回路13の出力がハイからローに落ちるとその時
点でD−FF18はR3・FFL7のQ出力のハイを読
み込み、警報回路19にハイの警報信号を出力する。
Therefore, the input signal eventually becomes lower than the incident light level,
The output of the comparator circuit 13 becomes low, the output of the inverter 20 rises to high, and the R3-FF17 is transferred to the D-FF18.
When the Q output of R3-FF 17 is read, the Q of R3-FF 17 is read.
The output is low, so the D-FF 18 does not output a self-diagnosis signal (alarm signal). However, when the level of the input signal is down and the input signal exceeds the incident light level, it eventually becomes lower than the incident light level without exceeding the stable level, R3-FF 17 is set by the output of the differentiating circuit 15. The Q output remains high without being reset. Therefore, when the input signal becomes lower than the incident light level and the output of the comparator circuit 13 drops from high to low, at that point the D-FF 18 reads the high Q output of R3/FFL7, and sends a high alarm signal to the alarm circuit 19. Output.

(ハ)発明が解決しようとする課題 上記した従来の自己診断回路のうち、前者の回路は、検
出物体がゆっくり移動する場合に誤った自己診断出力が
出るのを防止するためにタイマの時定数を大きくしてい
る。しかし、反射型光電スイッチであって、高速で移動
する小さな検出物体を検知している場合には、逆に不安
定状態(レベルダウン)であっても、自己診断出力が出
ないという問題がある。
(c) Problems to be Solved by the Invention Among the conventional self-diagnosis circuits mentioned above, the former circuit uses a timer time constant to prevent an erroneous self-diagnosis output from being output when the detected object moves slowly. is increasing. However, when using a reflective photoelectric switch and detecting a small object moving at high speed, there is a problem in that self-diagnosis output is not output even in an unstable state (level down). .

一方、後者の回路は、上記の問題は解決されているが、
第8図に示すようにノイズが重畳した受光信号が、安定
入光レベルから遮光レベルに移行する際に、信号aで示
すように一度人光レベルを下回った後に再度ノイズbに
よって入光レベルを越えると、このノイズbによってR
3−FF 17はセントされ、その後リセットされない
ので、D・FF1Bより誤った警報信号が出力されると
いう問題がある。
On the other hand, the latter circuit solves the above problem, but
As shown in Figure 8, when the light reception signal on which noise is superimposed transitions from the stable light incident level to the light blocking level, once it falls below the human light level as shown by signal a, the light incident level is changed again by noise b. If it exceeds R, this noise b causes R
Since 3-FF 17 is sent and then not reset, there is a problem in that a false alarm signal is output from D-FF 1B.

この発明は、上記問題点に着目してなされたものであっ
て、外来ノイズの影響を受けにくく、また高速で移動す
る微小物体を反射型で検知している場合にも動作する光
電スイッチの自己診断回路を提供することを目的として
いる。
The present invention has been made in view of the above-mentioned problems, and is a self-contained photoelectric switch that is less susceptible to external noise and operates even when detecting minute objects moving at high speed using a reflective type. The purpose is to provide a diagnostic circuit.

(ニ)課題を解決するための手段及び作用この発明の光
電スイッチの自己診断回路は、受光素子の受光信号が所
定の第1レベルを越えると信号を出力する第1回路と、
前記受光素子の受光信号が前記第1レベルより大きい所
定の第2レベルを越えると信号を出力する第2回路と、
前記第1回路の出力で駆動されてパルスを計数し、前記
第2回路の出力でリセットされ、計数値が所定値に達す
ると、自己診断信号を出力する計数手段とから構成され
ている。
(d) Means and operation for solving the problems The self-diagnosis circuit for a photoelectric switch of the present invention includes a first circuit that outputs a signal when a light reception signal of a light receiving element exceeds a predetermined first level;
a second circuit that outputs a signal when the light reception signal of the light receiving element exceeds a predetermined second level that is higher than the first level;
The counting means is driven by the output of the first circuit to count pulses, is reset by the output of the second circuit, and outputs a self-diagnosis signal when the counted value reaches a predetermined value.

この自己診断回路では、受光信号が第1レベル(入光レ
ベル)を越えていると、第1回路より、出力され、この
出力に応答して計数手段がパルスを計数する。受光信号
のレベルが十分にあり、第2レベル(安定入光レベル)
を越えていると、第1回路のみならず、第2回路も出力
を出し、この出力によって計数手段がリセットされる。
In this self-diagnosis circuit, if the light reception signal exceeds the first level (light incident level), the first circuit outputs an output, and the counting means counts pulses in response to this output. The level of the received light signal is sufficient, and the second level (stable light incident level)
If it exceeds , not only the first circuit but also the second circuit outputs an output, and this output resets the counting means.

そのため計数手段はカウントアツプまでにいたらず、自
己診断信号を出力しない。
Therefore, the counting means does not count up and does not output a self-diagnosis signal.

もし、受光信号がレベルダウンすると、第1レベルを越
え、計数手段はパルス計数を行う。しかしレベルダウン
のため、第2のレベルを越えないので、計数手段はリセ
ットされず、そのままパルスの計数を続ける。そして所
定の計数値に達すると、つまりカウントアツプすると自
己診断信号を出力する。
If the level of the light reception signal decreases, it exceeds the first level and the counting means performs pulse counting. However, since the level does not exceed the second level due to the level down, the counting means is not reset and continues counting pulses. When a predetermined count value is reached, that is, when the count is up, a self-diagnosis signal is output.

(ホ)実施例 以下、実施例により、この発明をさらに詳細に説明する
(E) Examples The present invention will be explained in more detail with reference to Examples below.

〈実施例1〉 第1図は、この発明の一実施例を示す光電スイッチの自
己診断回路の回路図である。同図において、電源■。と
GND間に抵抗25.26.27の直列回路が接続され
ている。抵抗26と抵抗27の接続点が比較器23の入
力の一端に接続され、基準電圧(入光レベル)■1が加
えられている。抵抗25と抵抗26の接続点が比較器2
4の入力の一端に接続され、基準電圧(安定入光レベル
) Vl  (Vl >Vl )が加えられている。
<Embodiment 1> FIG. 1 is a circuit diagram of a self-diagnosis circuit for a photoelectric switch showing an embodiment of the present invention. In the same figure, power supply ■. A series circuit of resistors 25, 26, and 27 is connected between the terminal and GND. The connection point between the resistor 26 and the resistor 27 is connected to one end of the input of the comparator 23, and a reference voltage (light incident level) 1 is applied thereto. The connection point between resistor 25 and resistor 26 is comparator 2.
4, and a reference voltage (stable incident light level) Vl (Vl > Vl) is applied thereto.

受光素子21は入力されたパルス光信号を受光電流に変
換し、さらに電流/電圧変換器22で電圧信号に変換し
て、受光信号(電圧)を比較器23.24の入力の他端
に加えている。比較器23は受光信号と基準電圧■1を
比較し、受光信号の方が大なる場合に“ハイ”信号を出
力する。このハイ°゛信号は計数器28に入力され計数
される。
The light-receiving element 21 converts the input pulsed optical signal into a light-receiving current, further converts it into a voltage signal with a current/voltage converter 22, and applies the light-receiving signal (voltage) to the other input end of the comparator 23.24. ing. The comparator 23 compares the light reception signal with the reference voltage (1), and outputs a "high" signal when the light reception signal is larger. This high degree signal is input to the counter 28 and counted.

また比較器23の“ハイ“信号は制御出力信号として導
出される。比較器24は受光信号と基準電圧■2を比較
し、受光信号の方が大なる場合にハイ゛信号を出力する
。この゛°ハイ゛信号を計測器28のりセント端子に人
力され、計数器28の計数値をリセットする。計数器2
8は計数値が8となると、カウントアツプし、自己診断
信号(警報信号)を出力する。
Also, the "high" signal of the comparator 23 is derived as a control output signal. The comparator 24 compares the light reception signal and the reference voltage (2), and outputs a high signal when the light reception signal is larger. This "high" signal is input manually to the input terminal of the measuring device 28, and the count value of the counter 28 is reset. Counter 2
8 counts up when the count reaches 8 and outputs a self-diagnosis signal (alarm signal).

次に、第2図に示す波形図を参照して上記実施例自己診
断回路の動作について説明する。なお第2図において、
Aは電流/電圧変換器22の出力すなわち受光信号の、
Bは比較器23の出力の、Cは比較器24の出力の、D
は計数器28の出力の波形をそれぞれ示している。
Next, the operation of the self-diagnosis circuit of the above embodiment will be explained with reference to the waveform diagram shown in FIG. In addition, in Figure 2,
A is the output of the current/voltage converter 22, that is, the received light signal;
B is the output of the comparator 23, C is the output of the comparator 24, and D
shows the waveform of the output of the counter 28, respectively.

先ず、受光信号が十分なレベルである場合について説明
する。受光信号Aが入光レベル■1を越えない場合は、
比較器23.24の信号B、Cとも出力されない。やが
て、受光信号Aが入光レベルvIを越えると応じて比較
器23も、信号Bを出力し、この信号Bが計数器28で
計数される。
First, a case where the received light signal is at a sufficient level will be described. If the received light signal A does not exceed the incident light level ■1,
Neither signals B nor C of the comparators 23 and 24 are output. Eventually, when the received light signal A exceeds the incident light level vI, the comparator 23 also outputs a signal B, and this signal B is counted by the counter 28.

第2図のA1の波形例では入光レベル■1を越えた受光
借間パルスが2個なので、計数器28の計数値が2とな
る。次に受光信号が安定受光レベルV2を越えると、比
較器23.24とも出力B、Cを出力し、計数器28に
計数パルスが人力されるが、その都度、信号Cによって
リセットされるので計数器2日は歩進されない。やがて
受光信号が安定入光レベル■2より低くなると、再度比
較器23からのパルスが計数器28に加えられるのみな
ので、計数器28は計数歩進する。しかし、受光信号が
すぐに入光レベル■1よりも下回ると比較器23の出力
も出なくなり、計数器28の計数値は8以上とならず、
自己診断信号りが出力されない。
In the waveform example A1 in FIG. 2, there are two light reception pulses that exceed the light incident level ■1, so the count value of the counter 28 becomes two. Next, when the light reception signal exceeds the stable light reception level V2, both the comparators 23 and 24 output outputs B and C, and a counting pulse is manually inputted to the counter 28, but each time it is reset by the signal C, it is counted. No progress will be made on the 2nd day. When the received light signal eventually becomes lower than the stable light incident level (2), the pulse from the comparator 23 is only applied to the counter 28 again, so that the counter 28 increments. However, if the received light signal immediately falls below the incident light level ■1, the output of the comparator 23 will no longer be output, and the count value of the counter 28 will not exceed 8.
Self-diagnosis signal is not output.

なお、第2図のA、に示すように受光信号が安定入力レ
ベル■2からパルスaで示すように、大光レベル以下と
なり、さらにパルスbに示すようにノイズで入光レベル
■1を越えても、わずかIの計数が計数器28になされ
るのみなので、直ちに自己診断信号りが出力されること
はない。
In addition, as shown in A in Figure 2, the received light signal goes from a stable input level ■2 to below the large light level as shown by pulse a, and then exceeds the light input level ■1 due to noise as shown in pulse b. However, since the counter 28 only counts I, no self-diagnosis signal is immediately output.

次に、受光信号がレベルダウンした場合について説明す
る。第2図のAz 、A3に示す受光信号が入力される
場合を想定すると、受光信号が安定受光レベル■2を越
えた状態から、レベル■2よりも小さく、入光レベル■
、を越えたパルスCになると、計数器28は1を計数し
、リセ、ンi・がかからず、さらに次のパルスdで2を
計数し、なおリセットされない。さらに次のA3の受光
借間でパルスeから計数器28が計数し、6発目の7<
)レスfで8を計数する。この間受光信号は安定受光レ
ベルを越えないので、比較器24は出力Cを出さず、し
たがって計数器28はリセ・ノ)・されない。
Next, a case where the level of the received light signal is lowered will be explained. Assuming that the light reception signals shown in Az and A3 in Fig. 2 are input, the light reception signal changes from a state in which it exceeds the stable light reception level ■2, to a state where the light reception signal exceeds the stable light reception level ■2, and becomes smaller than the level ■2, and the light reception level ■
When the pulse C exceeds , the counter 28 counts 1, the reset time is not applied, and the counter 28 counts 2 at the next pulse d, and is still not reset. Furthermore, the counter 28 counts from the pulse e in the next light receiving period of A3, and the sixth pulse 7<
) Count 8 in response f. During this period, the light reception signal does not exceed the stable light reception level, so the comparator 24 does not output an output C, and therefore the counter 28 is not reset.

8発のパルス計数で計数器28はカウントア・ンプし、
自己診断信号(警報信号)Dを出力する。
Counter 28 counts up by counting eight pulses,
Outputs self-diagnosis signal (alarm signal) D.

例えば反射型光電スイッチで検出物体が小さく、しかも
高速で通過し、入光時間が短い場合でも、計数器28が
リセットされない限り、次の大光時間に合算して計数が
進行するのでカウントア・ンプが終了すると警報信号が
出力される。例えば第3図に示すようにA、からレベル
ダウンすると、Atでの1発、A3での4発、A4での
3発で計数器28がカウントアツプし、警報信号りが出
力される。
For example, with a reflective photoelectric switch, even if the object to be detected is small and passes through at high speed, and the light incident time is short, unless the counter 28 is reset, the count will continue by adding up to the next bright light time, so the count will continue. When the pump ends, an alarm signal is output. For example, as shown in FIG. 3, when the level drops from A, the counter 28 counts up with one shot at At, four shots at A3, and three shots at A4, and an alarm signal is output.

〈実施例2〉 第4図は、この発明の他の実施例を示す光電スイッチの
自己診断回路の回路図である。この実施例回路において
第1図の回路と同一番号を付したものは同一のものを示
している。第1図の実施例回路と相違するのは比較器2
3の出力と計数器28の入力間に信号引き延ばし回路2
9を設けたことである。信号引き延ばし回路29として
具体的には例えばシフトレジスタや、積分器+比較器が
使用される。この実施例自己診断回路は、第1図の回路
では、検出物体の移動が極めて遅いか、不安定入光(受
光信号が■1と■2の間)の位置で停止している場合に
誤って警ta信号を出力するおそれがあるのを解消する
ために、信号引き延ばし回路29を設けたものである。
<Embodiment 2> FIG. 4 is a circuit diagram of a self-diagnosis circuit for a photoelectric switch showing another embodiment of the present invention. In this embodiment circuit, the same numbers as in the circuit of FIG. 1 indicate the same components. The difference from the embodiment circuit in FIG. 1 is the comparator 2.
A signal stretching circuit 2 is connected between the output of 3 and the input of the counter 28.
9 was established. Specifically, for example, a shift register or an integrator+comparator is used as the signal extension circuit 29. The self-diagnosis circuit of this embodiment is capable of detecting errors when the detection object moves extremely slowly or stops at a position where the light reception signal is unstable (the light reception signal is between ■1 and ■2). A signal extension circuit 29 is provided in order to eliminate the possibility that an alarm ta signal may be output.

この信号引き延ばし回路29は比較器23から出力され
るパルスに応答し、遮光→入光→遮光という一連の動作
1回につきl個のパルスを出力するように波形整形して
、その出力により計数器28を駆動するようになってい
る。
This signal extension circuit 29 responds to the pulses output from the comparator 23, shapes the waveform so that it outputs l pulses for each series of operations of light shielding → light entrance → light shielding, and uses the output to output l pulses. 28.

次に、第5図に示す波形図を参照して、この実施例自己
診断回路の動作について説明する。なお第5図において
、Eは電流/電圧変換器22の出力、すなわち受光信号
の、Fは比較器23の出力の、Gは信号引き延ばし回路
29の出力の、■]は比較器24の出力の、1は計数器
28の出力の波形をそれぞれ示している。
Next, the operation of the self-diagnosis circuit of this embodiment will be explained with reference to the waveform diagram shown in FIG. In FIG. 5, E is the output of the current/voltage converter 22, that is, the received light signal, F is the output of the comparator 23, G is the output of the signal extension circuit 29, and ■] is the output of the comparator 24. , 1 indicate the waveforms of the outputs of the counter 28, respectively.

第5図のIE+に示すように、受光(Ll ”’j’ 
Eが安定受光レベルV2を越える場合は、第1図の回路
と同様に受光信号が人力される毎に比較器23に出力F
が出力され、また比較器24に出力I(が出され、これ
により計数器28はりセットされ、したがって計数器2
8より警報信号Iが出力されない。
As shown in IE+ in FIG.
If E exceeds the stable light receiving level V2, the output F is sent to the comparator 23 every time the light receiving signal is manually input, similarly to the circuit shown in Fig. 1.
is output, and an output I( is also output to the comparator 24, which sets the counter 28, so that the counter 2
8, the alarm signal I is not output.

なお信号引き延ばし回路29は例えば4ピントのシフト
レジスタであるとすると、比較器23の4連続パルス(
4ビツト)の出力で、出力Gを゛ハイ゛にし、4ビツト
がすべて°“0゛で出力Gをローにする。つまり、遮光
−入光−遮光の各E5、Ez 、E3 、・・・毎に1
個のパルスGを出力する。
If the signal extension circuit 29 is, for example, a 4-pin shift register, then the 4 consecutive pulses of the comparator 23 (
4 bits) makes the output G high, and when all 4 bits are 0, the output G becomes low. In other words, each of the light blocking, light entering, and light blocking E5, Ez, E3, . . . 1 every
outputs pulses G.

計数器28は、ElにおけるパルスGの立ち上がりで1
を計数するが、また比較器24の出力Hでリセットされ
る。しかし、受光信号がレベルダウンする巳2以降を想
定すると、計数器28は比較器24の出力+(でリセッ
トされないので、E2に対応するパルスGで1を計数し
、以後E2、E4、E、に対応してパルスGを計数し、
計数器28は、計数値4(この実施例では計数器28を
計数値4でカウントアツプするように設定しである。)
でカウントアンプし、警報信号【を出力する。
Counter 28 is set to 1 at the rising edge of pulse G at El.
is counted, but it is also reset by the output H of the comparator 24. However, assuming that the level of the received light signal decreases after Snake 2, the counter 28 is not reset by the output +( of the comparator 24, so it counts 1 with the pulse G corresponding to E2, and thereafter E2, E4, E Count the pulse G corresponding to
The counter 28 has a count value of 4 (in this embodiment, the counter 28 is set to count up by a count value of 4).
Amplifies the count and outputs an alarm signal.

この自己診断回路では、検出物体の移動速度が遅く、た
とえ遮光−人光一遮光の1サイクルの中で、安定入光レ
ベルV、を越えた後に不安定入光(v2と■、の間の入
光)が連続しても計数器28は、何ら歩進しないので、
警報信号■を出力しない。また、不安定入光状態で検出
物体が止まっても、同様に計数器28は何ら計数されな
いので、やはり警報信号Iを出力するおそれがない。
In this self-diagnosis circuit, the moving speed of the detection object is slow, and even if the stable light incident level V is exceeded within one cycle of light shielding, human light, and light shielding, unstable light incidence (input between v2 and Even if the light) continues, the counter 28 does not advance at all, so
Do not output alarm signal■. Further, even if the object to be detected stops in an unstable light receiving state, the counter 28 does not perform any counting, so there is no risk of outputting the alarm signal I.

(へ)発明の効果 この発明によれば、受光素子の受光信号が所定の第1レ
ベルを越えると信号を出力する第1回路と、前記受光素
子の受光信号が前記第1レベルより大きい所定の第2レ
ベルを越えると信号を出力する第2回路と、前記第1回
路の出力で駆動されてパルスを計数し、前記第2回路の
出力でリセットされ、計数値が所定値に達すると、自己
診断信号を出力する計数手段とを備え、受光信号レベル
が第1レベルと第2レベルの間にある期間、計数手段で
所定値が計数されると自己診断信号を出力するものであ
るから、反射型光電スイッチでも確実に受光レベルの低
下を検出でき、またノイズによって誤って自己診断信号
が出力されるのを防止できる。
(f) Effects of the Invention According to the present invention, the first circuit outputs a signal when the light reception signal of the light receiving element exceeds the first predetermined level; A second circuit outputs a signal when the second level is exceeded, and is driven by the output of the first circuit to count pulses, is reset by the output of the second circuit, and when the counted value reaches a predetermined value, the pulse is counted. and a counting means for outputting a diagnostic signal, and outputs a self-diagnosis signal when a predetermined value is counted by the counting means during a period when the received light signal level is between the first level and the second level. A type photoelectric switch can also reliably detect a drop in the received light level, and can also prevent self-diagnosis signals from being erroneously output due to noise.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は、この発明の一実施例を示す光電スイッチの自
己診断回路の回路図、第2図は、同自己診断回路の動作
を説明するための各部波形図、第3図は、同自己診断回
路において高速で移動する検出物を検知する場合の動作
を説明するための各部波形図、第4図は、この発明の他
の実施例を示す光電スイッチの自己診断回路の回路図、
第5図は、同自己診断回路の動作を説明するための各部
波形図、第6図、第7図は、従来の光電スイッチの自己
診断回路を示す回路図、第8図は、第7図の自己診断回
路の問題点を説明するための波形圓である。 21:受光素子、  23・24:比較器、2日:計数
器、 29:信号引き延ばし回路。
FIG. 1 is a circuit diagram of a self-diagnosis circuit for a photoelectric switch showing an embodiment of the present invention, FIG. 2 is a waveform diagram of each part to explain the operation of the self-diagnosis circuit, and FIG. FIG. 4 is a circuit diagram of a self-diagnosis circuit for a photoelectric switch showing another embodiment of the present invention;
FIG. 5 is a waveform diagram of each part to explain the operation of the self-diagnosis circuit, FIGS. 6 and 7 are circuit diagrams showing the self-diagnosis circuit of a conventional photoelectric switch, and FIG. This is a waveform circle to explain the problems of the self-diagnosis circuit. 21: Light receiving element, 23/24: Comparator, 2nd: Counter, 29: Signal extension circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)受光素子の受光信号が所定の第1レベルを越える
と信号を出力する第1回路と、前記受光素子の受光信号
が前記第1レベルより大きい所定の第2レベルを越える
と信号を出力する第2回路と、前記第1回路の出力で駆
動されてパルスを計数し、前記第2回路の出力でリセッ
トされ、計数値が所定値に達すると、自己診断信号を出
力する計数手段とからなることを特徴とする光電スイッ
チの自己診断回路。
(1) A first circuit that outputs a signal when the light-receiving signal of the light-receiving element exceeds a predetermined first level; and a first circuit that outputs a signal when the light-receiving signal of the light-receiving element exceeds a predetermined second level that is higher than the first level. and a counting means that is driven by the output of the first circuit to count pulses, is reset by the output of the second circuit, and outputs a self-diagnosis signal when the counted value reaches a predetermined value. A self-diagnosis circuit for a photoelectric switch characterized by:
JP26787389A 1989-10-14 1989-10-14 Self-diagnostic circuit for photoelectric switch Pending JPH03129919A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26787389A JPH03129919A (en) 1989-10-14 1989-10-14 Self-diagnostic circuit for photoelectric switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26787389A JPH03129919A (en) 1989-10-14 1989-10-14 Self-diagnostic circuit for photoelectric switch

Publications (1)

Publication Number Publication Date
JPH03129919A true JPH03129919A (en) 1991-06-03

Family

ID=17450814

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26787389A Pending JPH03129919A (en) 1989-10-14 1989-10-14 Self-diagnostic circuit for photoelectric switch

Country Status (1)

Country Link
JP (1) JPH03129919A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0567958A (en) * 1992-01-31 1993-03-19 Takenaka Denshi Kogyo Kk Photoelectric switch
JPH06296127A (en) * 1992-01-31 1994-10-21 Takenaka Denshi Kogyo Kk Optoelectronic switch

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0567958A (en) * 1992-01-31 1993-03-19 Takenaka Denshi Kogyo Kk Photoelectric switch
JPH06296127A (en) * 1992-01-31 1994-10-21 Takenaka Denshi Kogyo Kk Optoelectronic switch

Similar Documents

Publication Publication Date Title
JP2851036B2 (en) Method and apparatus for removing noise in acoustic transducer
US4301360A (en) Time interval meter
JPH01278120A (en) Photodetecting signal circuit for photoelectric switch
JPH03129919A (en) Self-diagnostic circuit for photoelectric switch
EP0092807B1 (en) A digital supervisory circuit for a telephone system
US6538865B1 (en) Fault-detecting device for communication system
KR100209726B1 (en) Pulse edge detection and duty ratio measurement circuit
JPH04337565A (en) Peak detector
JP2001021654A (en) Radiation measurement system
JP2568407B2 (en) Photoelectric switch
JP2783543B2 (en) Phase difference judgment circuit
GB2229594A (en) Current-to-frequency converter
SU1619195A1 (en) Device for measuring ratio of resistances
JPS6042530Y2 (en) Analog to digital converter
JP2903736B2 (en) Disconnection detection circuit of pulse generator
SU1751694A1 (en) Two-level signal pulse discriminator
SU1130745A1 (en) Photo pickup
US4286224A (en) FM data demodulator including circuit for eliminating step distortion
SU1629976A1 (en) Device for comparison of analog signals
SU1548844A1 (en) Device for selection of pulses
SU1698826A1 (en) Resistance deviation-to-digit converter
JP2530588B2 (en) Photoelectric switch
SU1092564A1 (en) Reading amplifier for bubble storage
SU1718271A1 (en) Bubble-domain sensor
SU949512A1 (en) Device for measuring resistance