JPH0418256Y2 - - Google Patents

Info

Publication number
JPH0418256Y2
JPH0418256Y2 JP18742585U JP18742585U JPH0418256Y2 JP H0418256 Y2 JPH0418256 Y2 JP H0418256Y2 JP 18742585 U JP18742585 U JP 18742585U JP 18742585 U JP18742585 U JP 18742585U JP H0418256 Y2 JPH0418256 Y2 JP H0418256Y2
Authority
JP
Japan
Prior art keywords
circuit
output
power supply
detection
input terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP18742585U
Other languages
Japanese (ja)
Other versions
JPS6295340U (en
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 filed Critical
Priority to JP18742585U priority Critical patent/JPH0418256Y2/ja
Publication of JPS6295340U publication Critical patent/JPS6295340U/ja
Application granted granted Critical
Publication of JPH0418256Y2 publication Critical patent/JPH0418256Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 〔考案の分野〕 本考案は光電スイツチや近接スイツチ等の検出
スイツチに関し、特にその出力モードを容易に切
換え得るようにした検出スイツチに関するもので
ある。
[Detailed Description of the Invention] [Field of the Invention] The present invention relates to a detection switch such as a photoelectric switch or a proximity switch, and particularly to a detection switch whose output mode can be easily switched.

〔考案の概要〕[Summary of the idea]

本考案による検出スイツチは、選択的に接続さ
れる2つの電源端子に直列抵抗回路を接続し該抵
抗を介して検出回路の電源端子に電源を与えると
共に、その接続方向を比較器によつて検地してい
る。そして比較器と検出回路の出力を排他的論理
和回路に与えその排他的論理和出力によつて出力
回路を動作させ、検出スイツチの出力タイプをノ
ーマルクローズ型とノーマルオープン型に切換え
るようにしたものである。
The detection switch according to the present invention connects a series resistor circuit to two selectively connected power supply terminals, supplies power to the power supply terminal of the detection circuit through the resistor, and detects the connection direction using a comparator. are doing. The outputs of the comparator and detection circuit are then fed to an exclusive OR circuit, and the output circuit is operated by the output of the exclusive OR circuit, thereby switching the output type of the detection switch between normally closed type and normally open type. It is.

〔従来技術とその問題点〕[Prior art and its problems]

直流電源の切換えによつて出力モードを切換え
る検出スイツチとしては、例えば特開昭58−
12430号等が知られている。この検出スイツチは
第3図に示すように直流電源1の正極端が接続さ
れる電源入力端子2,3間にダイオードD1が接
続され、入力端子と負極の電源入力端子4との間
に抵抗R1が接続される。他方の入力端子5には
負荷6が接続される。そして一方の電源入力端子
2より検出回路7及び出力回路8に電源が接続さ
れている。検出回路7は発光ダイオード9及びフ
オトトランジスタ10を有し反射光の有無によつ
て物体を検出するもので、その出力端と他方の電
源入力端子3がエツクスクルーシブノア回路11
に与えられる。エツクスクルーシブノア回路11
の出力は出力回路8に与えられ、出力回路8を介
して負荷6が駆動される。
As a detection switch that switches the output mode by switching the DC power supply, for example,
12430 etc. are known. As shown in FIG. 3, this detection switch has a diode D1 connected between power input terminals 2 and 3 to which the positive end of the DC power supply 1 is connected, and a resistor R1 between the input terminal and the negative power input terminal 4. is connected. A load 6 is connected to the other input terminal 5. A power source is connected to the detection circuit 7 and the output circuit 8 from one power input terminal 2. The detection circuit 7 has a light emitting diode 9 and a phototransistor 10, and detects an object based on the presence or absence of reflected light, and its output terminal and the other power input terminal 3 are connected to an exclusive NOR circuit 11.
given to. Exclusive Noah circuit 11
The output of is given to the output circuit 8, and the load 6 is driven via the output circuit 8.

こうすれば直流電源の正極端を電源入力端子2
に接続すればエツクスクルーシブノア回路11の
一方の入力端は抵抗R1によつてプルダウンされ
て“L”レベルとなるため、検出回路7の出力が
反転されて出力回路8に加わり、出力回路8より
負荷6が開閉されるためノーマルクローズ型の検
出スイツチとすることができる。又直流電源を電
源入力端子3に接続するとダイオードD1を介し
てエツクスクルーシブノア回路11に“H”レベ
ルの入力が伝わるため、検出回路7の出力がその
まま出力回路8に与えられることとなつてノーマ
ルクローズ型の検出スイツチとすることができ
る。
In this way, the positive end of the DC power supply can be connected to the power input terminal 2.
When connected to , one input terminal of the exclusive NOR circuit 11 is pulled down by the resistor R1 and becomes the "L" level, so the output of the detection circuit 7 is inverted and applied to the output circuit 8, Since the load 6 is opened and closed, it can be used as a normally closed type detection switch. Furthermore, when a DC power source is connected to the power supply input terminal 3, an "H" level input is transmitted to the exclusive NOR circuit 11 via the diode D1, so that the output of the detection circuit 7 is directly applied to the output circuit 8. It can be a normally closed type detection switch.

しかるにこのような従来の検出スイツチによれ
ば、出力モードの切換えにより電源ラインにダイ
オードD1が挿入されることとなり、ダイオード
の順方向降下電圧分だけ検出回路7又は出力回路
8に加えられる電圧が降下する。従つてその電圧
降下を補償するため電源電圧を電源降下分だけ上
げなければならないという問題点があつた。
However, according to such a conventional detection switch, the diode D1 is inserted into the power supply line by switching the output mode, and the voltage applied to the detection circuit 7 or the output circuit 8 drops by the forward voltage drop of the diode. do. Therefore, there was a problem in that the power supply voltage had to be increased by the amount of the power supply drop in order to compensate for the voltage drop.

〔考案の目的〕[Purpose of invention]

本考案はこのような従来の検出スイツチの問題
点に鑑みてなされたものであつて、電源端子にダ
イオードを接続することがなく出力モードを容易
に切換えることができる検出スイツチを提供する
ことを目的とする。
The present invention was devised in view of the problems of conventional detection switches, and the purpose of the present invention is to provide a detection switch that can easily switch output modes without connecting a diode to the power supply terminal. shall be.

〔考案の構成と効果〕[Structure and effect of the idea]

本考案は検出回路と、電源端子の一方が選択的
に接続される第1、第2の電源入力端に直列に接
続された一対の抵抗体と、一対の抵抗体の中点よ
り電源が与えられる検出回路と、第1、第2の電
源入力端に夫々入力端が接続された比較器と、比
較器の比較出力と検出回路の検出出力が与えられ
出力回路を駆動する排他的論理和回路と、を具備
し、電源端子を第1、第2のいずれかの電源入力
端に接続することにより排他的論理和回路に与え
る入力を異ならせ出力モードを切換えるよう構成
したことを特徴とするものである。
The present invention includes a detection circuit, a pair of resistors connected in series to first and second power input terminals to which one of the power supply terminals is selectively connected, and a power supply applied from the midpoint of the pair of resistors. a comparator whose input terminals are connected to the first and second power supply input terminals, respectively, and an exclusive OR circuit which is supplied with the comparison output of the comparator and the detection output of the detection circuit and drives the output circuit. and, characterized in that, by connecting the power supply terminal to either the first or second power supply input terminal, the input given to the exclusive OR circuit can be varied and the output mode can be switched. It is.

このような特徴を有する本考案によれば、電源
入力端子の接続を切換えることによつて比較器を
動作させて出力モードを切換えている。従つて電
源電圧をほとんど降下させることがなく検出回路
に供給することができ、電源電圧が低い場合にも
安定して使用することができる。又出力モードを
切換えても電圧降下分は変化しないため、常に一
定の電圧を検出回路に供給することができる。
According to the present invention having such characteristics, the comparator is operated and the output mode is switched by switching the connection of the power input terminal. Therefore, the power supply voltage can be supplied to the detection circuit with almost no drop, and it can be stably used even when the power supply voltage is low. Furthermore, since the voltage drop does not change even when the output mode is switched, a constant voltage can always be supplied to the detection circuit.

〔実施例の説明〕[Explanation of Examples]

第1図は本考案による検出スイツチの一実施例
を示す回路図である。本図において前述した従来
例と同一部分は同一符号を付している。本実施例
では端子21,22を正の電源入力端子とし、そ
の両端を抵抗R2,R3の直列接続体に接続す
る。ここで抵抗R2,R3は同一の抵抗値の抵抗
を用いるものとする。そしてその中点を検出回路
7の電源入力端子に接続している。そして電源入
力端子21,22は夫々抵抗R4,R5を介して
比較器23の反転入力端及び非反転入力端子に接
続される。比較器23はこれらの入力電圧を弁別
してその出力をエツクスクルーシブオア回路24
に与えるものである。エツクスクルーシブオア回
路24の他方の入力は前述した従来例と同様に検
出回路7の出力端に接続されており、その排他的
論理和出力が出力回路8に与えられる。出力回路
8の出力端子は端子25を介して負荷6に接続さ
れ、端子26には電源の負極端が接続されてい
る。
FIG. 1 is a circuit diagram showing an embodiment of a detection switch according to the present invention. In this figure, the same parts as in the conventional example described above are given the same reference numerals. In this embodiment, terminals 21 and 22 are used as positive power input terminals, and both ends thereof are connected to a series connection of resistors R2 and R3. Here, it is assumed that resistors R2 and R3 have the same resistance value. The midpoint thereof is connected to the power input terminal of the detection circuit 7. The power input terminals 21 and 22 are connected to an inverting input terminal and a non-inverting input terminal of a comparator 23 via resistors R4 and R5, respectively. A comparator 23 discriminates these input voltages and sends its output to an exclusive OR circuit 24.
It is given to The other input of the exclusive OR circuit 24 is connected to the output terminal of the detection circuit 7 as in the prior art described above, and its exclusive OR output is applied to the output circuit 8. The output terminal of the output circuit 8 is connected to the load 6 via the terminal 25, and the negative end of the power supply is connected to the terminal 26.

次に第2図の波形図を参照しつつ本実施例の動
作について説明する。今電源の正極端が端子21
に接続されているものとすると、検出回路7、出
力回路8には抵抗R2を介して電源電圧が供給さ
れ、比較器23は抵抗R5を介して電源電圧が印
加される。又比較器23の他方の反転入力端子は
抵抗R2,R3及びR4を介して電源が与えられ
るため、比較器23より第2図cに示すように
“H”レベルの出力がエツクスクルーシブオア回
路24に与えられる。さて第2図aに示すように
物体27が近接し発光ダイオード9から照射され
た光が反射してフオトトランジスタ10に伝えら
れたものとすると、検出回路7は物体の近接を検
出して第2図bに示すように出力をエツクスクル
ーシブオア回路24に与える。従つてエツクスク
ルーシブオア回路24は第2図dに示すように物
体の近接に伴つて“L”レベルとなる出力を発生
し、出力回路8を介して負荷6の駆動が停止され
る。従つて直流電源1の正極端を電源入力端子2
1に接続することにより第2図eに示すように物
体が近接しないときに負荷6を駆動し、物体が離
れるとその駆動を停止するノーマルクローズ型出
力の検出スイツチとすることができる。
Next, the operation of this embodiment will be explained with reference to the waveform diagram in FIG. Now the positive end of the power supply is terminal 21
, the power supply voltage is supplied to the detection circuit 7 and the output circuit 8 through the resistor R2, and the power supply voltage is applied to the comparator 23 through the resistor R5. Also, since the other inverting input terminal of the comparator 23 is supplied with power through the resistors R2, R3, and R4, the "H" level output from the comparator 23 is sent to the exclusive OR circuit as shown in FIG. 2c. 24. Now, suppose that the object 27 approaches and the light emitted from the light emitting diode 9 is reflected and transmitted to the phototransistor 10 as shown in FIG. The output is provided to an exclusive OR circuit 24 as shown in FIG. b. Therefore, the exclusive OR circuit 24 generates an output that goes to the "L" level as the object approaches, as shown in FIG. 2d, and the drive of the load 6 is stopped via the output circuit 8. Therefore, the positive end of DC power supply 1 is connected to power supply input terminal 2.
1, it can be used as a normally closed type output detection switch that drives the load 6 when an object is not close to it and stops driving when the object moves away, as shown in FIG. 2e.

次に直流電源1の正極端を電源入力端子22に
接続した場合には、検出回路7に抵抗R3を介し
て電源電圧が供給され、比較器23の反転入力端
に抵抗R4を介して入力電圧が与えられる。又比
較器23の非反転入力端には抵抗R3、抵抗R2
及び抵抗R5を介して電源電圧が与えられること
となり、反転入力端に与えられる電圧が高くなる
ので比較器入力23は第2図fに示すように
“L”レベルの出力をエツクスクルーシブオア回
路24に与える。ここで物体27が近接すれば前
述の場合と同じく第2図a,bに示すようにそれ
に対応した出力が検出回路7よりエツクスクルー
シブオア回路24に与えられるが、エツクスクル
ーシブオア回路24は第2図gに示すように物体
の近接時にのみ“H”レベルとなり、その出力が
出力回路8に与えられて負荷6を駆動する。従つ
て直流電源1の正極端を入力端子22に接続する
と、第2図hに示すように物体の近接時にのみ負
荷6が駆動されるノーマルオープン型の検出スイ
ツチとすることができる。
Next, when the positive end of the DC power supply 1 is connected to the power supply input terminal 22, the power supply voltage is supplied to the detection circuit 7 via the resistor R3, and the input voltage is supplied to the inverting input terminal of the comparator 23 via the resistor R4. is given. Also, the non-inverting input terminal of the comparator 23 has a resistor R3 and a resistor R2.
Since the power supply voltage is applied through the resistor R5 and the voltage applied to the inverting input terminal becomes high, the comparator input 23 outputs the "L" level to the exclusive OR circuit as shown in FIG. Give to 24. Here, if the object 27 approaches, a corresponding output is given from the detection circuit 7 to the exclusive OR circuit 24 as shown in FIGS. 2a and 2b, as in the case described above. As shown in FIG. 2g, it becomes "H" level only when an object approaches, and its output is given to the output circuit 8 to drive the load 6. Therefore, by connecting the positive end of the DC power source 1 to the input terminal 22, it is possible to create a normally open type detection switch in which the load 6 is driven only when an object approaches, as shown in FIG. 2h.

このように本考案によれば電源入力端をいずれ
の端子に接続した場合にも抵抗を介して検出回路
に電源が供給されるため、常に同一の電圧を与え
ることができる。
As described above, according to the present invention, power is supplied to the detection circuit via the resistor no matter which terminal the power input terminal is connected to, so that the same voltage can always be applied.

尚本実施例は比較器の出力と検出回路の出力の
排他的論理和を取るためエツクスクルーシブオア
回路を用いているが、前述した従来例と同様にエ
ツクスクルーシブノア回路を用いてもよく、この
場合には電源の接続に応じて切換わる出力モード
を逆にすることができる。
Although this embodiment uses an exclusive OR circuit to take the exclusive OR of the output of the comparator and the output of the detection circuit, an exclusive OR circuit may also be used as in the conventional example described above. In this case, the output mode that is switched depending on the power supply connection can be reversed.

尚本実施例は発光ダイオードからの反射光によ
つて物体を検出する反射型光電スイツチについて
説明しているが、本考案は他の形式の光電スイツ
チや近接スイツチ、超音波スイツチ等の種々の検
出スイツチに適用することができることはいうま
でもない。
Although this embodiment describes a reflective photoelectric switch that detects an object using reflected light from a light emitting diode, the present invention is applicable to various types of detection such as other types of photoelectric switches, proximity switches, and ultrasonic switches. Needless to say, it can be applied to a switch.

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

第1図は本考案による検出スイツチの一実施例
を示す回路図、第2図は本実施例の動作を示す各
部のタイムチヤート、第3図は従来の検出スイツ
チの一例を示す回路図である。 1……直流電源、2,3,4,21,22,2
6……電源入力端子、6……負荷、7……検出回
路、8……出力回路、23……比較器、24……
エツクスクルーシブオア回路。
Fig. 1 is a circuit diagram showing an embodiment of a detection switch according to the present invention, Fig. 2 is a time chart of various parts showing the operation of this embodiment, and Fig. 3 is a circuit diagram showing an example of a conventional detection switch. . 1...DC power supply, 2, 3, 4, 21, 22, 2
6...Power input terminal, 6...Load, 7...Detection circuit, 8...Output circuit, 23...Comparator, 24...
Exclusive OR circuit.

Claims (1)

【実用新案登録請求の範囲】 (1) 検出回路と、 電源端子の一方が選択的に接続される第1、
第2の電源入力端に直列に接続された一対の抵
抗体と、 前記一対の抵抗体の中点より電源が与えられ
る検出回路と、 前記第1、第2の電源入力端に夫々入力端が
接続された比較器と、 前記比較器の比較出力と前記検出回路の検出
出力が与えられ出力回路を駆動する排他的論理
和回路と、を具備し、電源端子を前記第1、第
2のいずれかの電源入力端に接続することによ
り前記排他的論理和回路に与える入力を異なら
せ出力モードを切換えるよう構成したことを特
徴とする検出スイツチ。 (2) 前記電源入力端に接続される一対の抵抗体
は、同一の抵抗値を有するものであることを特
徴とする実用新案登録請求の範囲第1項記載の
検出スイツチ。
[Claims for Utility Model Registration] (1) A first circuit to which the detection circuit and one of the power supply terminals are selectively connected;
a pair of resistors connected in series to the second power input terminal; a detection circuit to which power is supplied from the midpoint of the pair of resistors; and input terminals connected to the first and second power input terminals, respectively. a connected comparator; and an exclusive OR circuit that is supplied with a comparison output of the comparator and a detection output of the detection circuit and drives an output circuit, and the power supply terminal is connected to either the first or second one. 1. A detection switch characterized in that the detection switch is configured to vary the input given to the exclusive OR circuit and switch the output mode by being connected to the power supply input terminal. (2) The detection switch according to claim 1, wherein the pair of resistors connected to the power input terminal have the same resistance value.
JP18742585U 1985-12-04 1985-12-04 Expired JPH0418256Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18742585U JPH0418256Y2 (en) 1985-12-04 1985-12-04

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18742585U JPH0418256Y2 (en) 1985-12-04 1985-12-04

Publications (2)

Publication Number Publication Date
JPS6295340U JPS6295340U (en) 1987-06-18
JPH0418256Y2 true JPH0418256Y2 (en) 1992-04-23

Family

ID=31137890

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18742585U Expired JPH0418256Y2 (en) 1985-12-04 1985-12-04

Country Status (1)

Country Link
JP (1) JPH0418256Y2 (en)

Also Published As

Publication number Publication date
JPS6295340U (en) 1987-06-18

Similar Documents

Publication Publication Date Title
CA2103842A1 (en) Current Limit Circuit in Current Mode Power Supplies
US5995252A (en) Low power digital signal isolator
JPH0418256Y2 (en)
US4716513A (en) Base drive circuit in a transistor inverter
ATE249110T1 (en) CONTROL CIRCUIT FOR A SEMICONDUCTOR COMPONENT
JPH0526829Y2 (en)
JPH0115173B2 (en)
JP2738140B2 (en) Light emitting circuit of photoelectric switch
JPS6024020Y2 (en) DC 2-wire proximity switch
US4602323A (en) Single-ended transformer drive circuit
KR890002555Y1 (en) Operation circuit of power transister
JP3634230B2 (en) Constant voltage, constant current status signal output device
JPH046269Y2 (en)
JPS5833793B2 (en) Transistor drive device for transistor inverter
JPS6024019Y2 (en) DC 2-wire proximity switch
JPS5918861Y2 (en) Complementary FET chopper drive circuit
JPH0321074Y2 (en)
JPH011420A (en) Overcurrent protection circuit
JPH0610412Y2 (en) DC constant voltage circuit
KR900008269Y1 (en) The driving circuitry using switching transistor
KR200296292Y1 (en) Power control device
JPS62284Y2 (en)
JP2959485B2 (en) Light emitting element drive circuit
JPS5936039Y2 (en) switching circuit
KR20010083414A (en) Power save function circuit in a monitor