JPH10233668A - Digital signal input device for electronic device - Google Patents

Digital signal input device for electronic device

Info

Publication number
JPH10233668A
JPH10233668A JP9036067A JP3606797A JPH10233668A JP H10233668 A JPH10233668 A JP H10233668A JP 9036067 A JP9036067 A JP 9036067A JP 3606797 A JP3606797 A JP 3606797A JP H10233668 A JPH10233668 A JP H10233668A
Authority
JP
Japan
Prior art keywords
digital signal
signal input
switch
terminal
input device
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
JP9036067A
Other languages
Japanese (ja)
Inventor
Yasushi Ishii
靖 石井
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP9036067A priority Critical patent/JPH10233668A/en
Publication of JPH10233668A publication Critical patent/JPH10233668A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow the same digital signal input device to have provision for an npn output circuit and a pnp output circuit. SOLUTION: In this input device, a changeover switch 34 consisting of a series connection of a 1st switch 341 and a 2nd switch 342 of an opposite make/ open relation to that of the 1st switch 341 that is closed/open by a relay 35 is connected between terminals P and N among terminals 31 to which a DC power supply is supplied, and a 2-way light emitting element 331A of a 2-way photocoupler 33A is connected between the connecting point of the switches and a terminal L via a resistor 32. In the case that an npn output circuit 1 is connected to the terminals L, N, when the 1st switch is closed, a current flows to the 2-way light emitting element 331A to allow the lower element of the 2-way light emitting element 331A to be lighted. In the case that a pnp output circuit is connected to the terminals P, L, when the 2nd switch is closed, the upper element of the 2-way light emitting element 331A is lighted and in both the cases, a light receiving element 332A outputs a current.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、プログラマブル
コントローラやパソコンなどの電子装置に設けられるデ
ィジタル信号入力装置に関する。
The present invention relates to a digital signal input device provided in an electronic device such as a programmable controller or a personal computer.

【0002】[0002]

【従来の技術】図6は従来の電子装置のディジタル信号
入力装置とこれにnpn出力回路が接続された回路図で
ある。この図において、npn出力回路1はnpnトラ
ンジスタ11のベースに印加される信号によってオン・
オフするスイッチング作用によってディジタル信号が出
力されてディジタル信号入力装置3に入力される。信号
の伝達は、npnトランジスタ11がオンすることによ
って直流電源2から矢印のように電流が流れることによ
って行われる。
2. Description of the Related Art FIG. 6 is a circuit diagram in which a digital signal input device of a conventional electronic device and an npn output circuit are connected thereto. In this figure, an npn output circuit 1 is turned on by a signal applied to the base of an npn transistor 11.
A digital signal is output by the switching action of turning off and input to the digital signal input device 3. Signal transmission is performed when a current flows from the DC power supply 2 as indicated by an arrow when the npn transistor 11 is turned on.

【0003】ディジタル信号入力装置3は入力されたデ
ィジタル信号としての電流が流れるホトカプラ33とこ
れを保護するなどのための抵抗32からなっていて、こ
のホトカプラ33の発光ダイオード331に電流が流れ
て発光し、この光を受光してホトトランジスタ332に
流れた電流が電子装置に導かれる。ホトカプラ33は出
力回路1から電子装置内部を絶縁するために設けられた
ものである。ホトカプラ33の発光ダイオード331側
の回路には並列と直列に接続された抵抗32が挿入され
ていて発光ダイオード331に流れる電流の制限と保護
をしている。
The digital signal input device 3 comprises a photocoupler 33 through which a current as an input digital signal flows and a resistor 32 for protecting the photocoupler. A current flows through a light emitting diode 331 of the photocoupler 33 to emit light. Then, upon receiving this light, the current flowing through the phototransistor 332 is guided to the electronic device. The photocoupler 33 is provided to insulate the inside of the electronic device from the output circuit 1. A resistor 32 connected in parallel and series is inserted in the circuit on the light emitting diode 331 side of the photocoupler 33 to limit and protect the current flowing through the light emitting diode 331.

【0004】ディジタル信号入力装置3には三つの入力
端子P,L,Nが設けられていて、直流電源2はP,N
端子に、npnトランジスタ11のコレクタがL端子
に、エミッタがN端子にそれぞれ接続され、ホトカプラ
33はP,L端子に接続されている。図7は電子装置の
ディジタル信号入力装置にpnp出力回路が接続された
場合の回路図である。この図の図6と異なる点は出力回
路10に使用されるトランジスタ12がpnpトランジ
スタである点であり、これに伴ってこのpnpトランジ
スタ12はディジタル信号入力装置3のP端子にエミッ
タが、L端子にコレクタがそれぞれ接続されていて、デ
ィジタル信号入力装置30内ではホトカプラ33がLと
Nの端子に接続されている。このような回路構成にする
ことによって、pnpトランジスタ12がオンのときに
図の矢印のように電流が流れてホトカプラ33の発光ダ
イオード331を発光させる。
The digital signal input device 3 is provided with three input terminals P, L, and N.
The terminal, the collector of the npn transistor 11 is connected to the L terminal, the emitter is connected to the N terminal, and the photocoupler 33 is connected to the P and L terminals. FIG. 7 is a circuit diagram when a pnp output circuit is connected to a digital signal input device of an electronic device. 6 is different from FIG. 6 in that the transistor 12 used in the output circuit 10 is a pnp transistor. Accordingly, the pnp transistor 12 has an emitter at the P terminal of the digital signal input device 3 and an L terminal. Are connected to the L and N terminals, respectively, in the digital signal input device 30. With such a circuit configuration, when the pnp transistor 12 is on, a current flows as indicated by an arrow in the figure, and the light emitting diode 331 of the photocoupler 33 emits light.

【0005】図6のディジタル信号入力装置3と図7の
ディジタル信号入力装置30との違いは単にホトカプラ
33を接続する端子が異なるだけであるが、ディジタル
信号入力装置としては別個のものとして製作しておく必
要がある。そして、npn出力回路1が接続される場合
には図6のディジタル信号入力装置3を、pnp出力回
路30が接続される場合にはディジタル信号入力装置3
0を充当する。npn出力回路1とpnp出力回路10
との違いは前述のように使用されるトランジスタが異な
るのであるが、npnかpnpかどちらのトランジスタ
を使用するかは別の要因で決定されるので、ディジタル
信号入力装置の側で選択することはできないのが実情で
ある。
The difference between the digital signal input device 3 of FIG. 6 and the digital signal input device 30 of FIG. 7 is only the terminal for connecting the photocoupler 33. However, the digital signal input device is manufactured as a separate digital signal input device. Need to be kept. When the npn output circuit 1 is connected, the digital signal input device 3 shown in FIG. 6 is used. When the pnp output circuit 30 is connected, the digital signal input device 3 is used.
Apply 0. npn output circuit 1 and pnp output circuit 10
The difference from the above is that the transistors used are different as described above, but whether to use npn or pnp transistors is determined by another factor, so it is not possible to select on the digital signal input device side The reality is that you can't.

【0006】[0006]

【発明が解決しようとする課題】前述のように、出力回
路の回路構成に応じて異なるディジタル信号入力装置を
用意しておく必要があることから、部品の種類が多くな
り、更ににこれに伴うコストアップの要因になるという
問題がある。この発明の目的はこのような問題を解決
し、出力回路がnpnかpnpかの違いがあっても同じ
構成のディジタル信号入力装置で対応することのできる
電子装置のディジタル信号入力装置を提供することにあ
る。
As described above, since it is necessary to prepare different digital signal input devices according to the circuit configuration of the output circuit, the number of types of components increases, and the number of components increases. There is a problem that the cost increases. SUMMARY OF THE INVENTION An object of the present invention is to solve such a problem and to provide a digital signal input device of an electronic device that can be handled by a digital signal input device having the same configuration even if the output circuit has a difference of npn or pnp. It is in.

【0007】[0007]

【課題を解決するための手段】上記課題を解決するため
にこの発明によれば、直流電源の正端子が接続されるP
端子、負端子が接続されるN端子及び出力回路の一つの
端子が接続されるL端子を備え、pnp出力回路が接続
されるときにはその二つの出力端子がP端子とL端子
に、npn出力回路が接続されるときにはその二つの出
力端子がL端子とN端子に接続され、これらどちらかの
出力回路から出力されて入力される入力信号が、ホトカ
プラを介して電子装置の内部回路に入力される電子装置
のディジタル信号入力装置において、P端子とN端子と
の間に直列接続された第1と第2の二つのスイッチから
なる切換スイッチが接続され、この切換スイッチの第1
と第2のスイッチの接続点とL端子との間に双方向ホト
カプラの双方向発光素子と抵抗との直列回路が接続され
てなり、第1のスイッチがオンのとき第2のスイッチは
オフ、第2のスイッチがオンのときには第1のスイッチ
はオフにそれぞれ設定されることによって、npn出力
回路を接続したときとpnp出力回路を接続したときと
でホトカプラに流れ込む電流の方向が変わるが、双方向
ホトカプラの双方向発光素子の一方が必ず発光して、ホ
トカプラの受光素子はこの光を受けて結果的に出力回路
に流れる電流の有無に応じた電流を出力する。その際、
npn出力回路が接続された場合には、切換スイッチの
第1のスイッチをオン、第2のスイッチをオフにしてお
けば、P端子に接続されている直流電源からホトカプラ
に電流が供給され、pnp出力回路が接続された場合に
は、切換スイッチの第1のスイッチをオフ、第2のスイ
ッチをオンにしておけば、ホトカプラに流れた電流はN
端子を通って直流電源に戻る回路が形成される。
According to the present invention, in order to solve the above-mentioned problems, a P terminal to which a positive terminal of a DC power supply is connected is connected.
A terminal, an N terminal to which a negative terminal is connected, and an L terminal to which one terminal of the output circuit is connected. When a pnp output circuit is connected, the two output terminals are connected to a P terminal and an L terminal, and an npn output circuit. Are connected, the two output terminals are connected to the L terminal and the N terminal, and the input signal output and input from either of these output circuits is input to the internal circuit of the electronic device via the photocoupler. In a digital signal input device of an electronic device, a changeover switch including first and second two switches connected in series between a P terminal and an N terminal is connected.
A series circuit of a bidirectional light-emitting element of a bidirectional photocoupler and a resistor is connected between a connection point of the second switch and the L terminal, and when the first switch is on, the second switch is off, When the second switch is on, the first switch is set to off, so that the direction of the current flowing into the photocoupler changes when the npn output circuit is connected and when the pnp output circuit is connected. One of the bidirectional light emitting elements of the directional photocoupler always emits light, and the light receiving element of the photocoupler receives this light and outputs a current corresponding to the presence or absence of a current flowing to the output circuit as a result. that time,
When the npn output circuit is connected, if the first switch of the changeover switch is turned on and the second switch is turned off, current is supplied from the DC power supply connected to the P terminal to the photocoupler, and pnp When the output circuit is connected, if the first switch of the changeover switch is turned off and the second switch is turned on, the current flowing through the photocoupler becomes N
A circuit is formed that returns to the DC power supply through the terminals.

【0008】前述の切換スイッチの第1と第2のスイッ
チは、リレーのa端子、b端子とで構成してもよく、ま
た、互いにオン・オフが逆になる二つの半導体スイッチ
で構成してもよい。前述の電子装置のディジタル信号入
力装置の双方向ホトカプラの代わりに、ダイオードブリ
ッジと従来のディジタル信号入力装置と同じ単方向のホ
トカプラとの直列回路を採用してよく、この場合にはダ
イオードブリッジが異なる方向の電流を一方方向に変換
するので、この変換された電流の方向に対して発光する
ようにホトカプラの一つの発光素子を接続しておけば、
ダイオードブリッジに流れ込む電流の方向の如何に係わ
らずホトカプラは出力回路の電流の有無に応じた電流を
出力する。
The first and second switches of the above-mentioned changeover switch may be constituted by a terminal a and a terminal b of the relay, or constituted by two semiconductor switches whose on / off are reversed to each other. Is also good. Instead of the bidirectional photocoupler of the digital signal input device of the aforementioned electronic device, a series circuit of a diode bridge and the same unidirectional photocoupler as the conventional digital signal input device may be adopted, in which case the diode bridge is different. Since the current in the direction is converted to one direction, if one light emitting element of the photocoupler is connected so as to emit light in the direction of the converted current,
Regardless of the direction of the current flowing into the diode bridge, the photocoupler outputs a current according to the presence or absence of the current in the output circuit.

【0009】これら前述のディジタル信号入力装置が複
数設けられ、それぞれのディジタル信号入力装置に対応
したpnp又はnpnのどちらかの同じ出力回路が接続
されるべくしてなり、それぞれのディジタル信号入力装
置に共通に一つの切換スイッチと一つの直流電源が接続
される二つの端子を設けることによって、前述のように
ディジタル信号入力装置の一つひとつに切換スイッチと
P,Nの二つの端子を設けるのに対して回路素子の数が
少なくなる。
A plurality of these digital signal input devices are provided, and the same output circuit of either pnp or npn corresponding to each digital signal input device is connected to each digital signal input device. By providing two terminals to which one switch and one DC power supply are connected in common, it is possible to provide a switch and two terminals P and N for each digital signal input device as described above. The number of circuit elements is reduced.

【0010】[0010]

【発明の実施の形態】以下この発明を実施例に基づいて
説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below based on embodiments.

【0011】[0011]

【実施例1】図1はこの発明の第1の実施例を示す電子
装置のディジタル信号入力装置の、npn出力回路が接
続されている場合の、図2はpnp出力回路が接続され
ている場合のそれぞれの回路図であり、これらの図にお
ける出力回路1,10は図6,図7のそれらと同じであ
り、図1、図2のディジタル信号入力装置3Aは同じ構
成のものである。このディジタル信号入力装置3Aが図
6又は図7のディジタル信号入力装置3,30と異なる
点の一つは、ホトカプラ33Aの発光ダイオード331
Aが2つ逆並列に接続されて構成されていて、電流の方
向によってどちらかの発光ダイオードが発光する構成、
いわゆる双方向ホトカプラが採用されている点であり、
もう一つは切換スイッチ34が設けられている点であ
る。
FIG. 1 shows a digital signal input device of an electronic apparatus according to a first embodiment of the present invention, in which an npn output circuit is connected, and FIG. 2 shows a case in which a pnp output circuit is connected. The output circuits 1 and 10 in these figures are the same as those in FIGS. 6 and 7, and the digital signal input device 3A in FIGS. 1 and 2 has the same configuration. One of the differences between the digital signal input device 3A and the digital signal input devices 3 and 30 of FIG. 6 or 7 is that the light emitting diode 331 of the photocoupler 33A is used.
A in which two light emitting diodes are connected in anti-parallel, and one of the light emitting diodes emits light depending on the direction of the current;
What is called a bidirectional photocoupler is adopted,
The other is that a changeover switch 34 is provided.

【0012】図1を基にしてディジタル信号入力装置3
Aの構成及びnpn出力回路1が接続された場合の動作
について以下に説明する。ディジタル信号入力装置3A
は双方向ホトカプラ33Aと切換スイッチ34からなっ
ていて、切換スイッチ34は第1と第2の二つのスイッ
チ341,342が直列接続されるようになっており、
スイッチ341のスイッチ342に接続されない側がP
端子に、スイッチ342のスイッチ341に接続されな
い側がN端子にそれぞれ接続されている。二つのスイッ
チの接続点とL端子の間に双方向ホトカプラ33Aの双
方向発光ダイオード331Aが接続されており、この双
方向発光ダイオード331Aに直列と並列に抵抗32が
接続されている点は前述のホトカプラ33と同様であ
る。
A digital signal input device 3 based on FIG.
The configuration of A and the operation when the npn output circuit 1 is connected will be described below. Digital signal input device 3A
Is composed of a bidirectional photocoupler 33A and a changeover switch 34. The changeover switch 34 is configured such that first and second two switches 341 and 342 are connected in series.
The side of switch 341 not connected to switch 342 is P
The terminal of the switch 342 that is not connected to the switch 341 is connected to the N terminal. The bidirectional light emitting diode 331A of the bidirectional photocoupler 33A is connected between the connection point of the two switches and the L terminal, and the resistor 32 is connected in series and parallel to the bidirectional light emitting diode 331A as described above. This is the same as the photocoupler 33.

【0013】切換スイッチ34の二つのスイッチ34
1,342は実際にはリレー35のa接点とb接点であ
り、一方の接点がオンのときには他方はオフの関係にあ
る。図ではスイッチ341がオン、342がオフとなっ
ている。今、npnトランジスタ11がオンの状態であ
るとすると、直流電源2から供給される電流は次の経路
で流れる。すなわち、直流電源2の正端子からディジタ
ル信号入力装置3AのP端子、第1のスイッチ341、
双方向発光ダイオード331A、抵抗32、L端子、n
pnトランジスタ11、直流電源2の負端子という経路
である。双方向発光ダイオード331Aには図の右から
左の方向に電流が流れるので図の下の発光ダイオードが
発光し、ホトトランジスタ332Aはこの光を受光して
電流を出力する。
Two switches 34 of the changeover switch 34
Reference numerals 1 and 342 denote an a contact and a b contact of the relay 35, and when one contact is on, the other is off. In the figure, the switch 341 is on and the switch 342 is off. Now, assuming that the npn transistor 11 is on, the current supplied from the DC power supply 2 flows through the following path. That is, from the positive terminal of the DC power supply 2 to the P terminal of the digital signal input device 3A, the first switch 341,
Bidirectional light emitting diode 331A, resistor 32, L terminal, n
The path is a pn transistor 11 and a negative terminal of the DC power supply 2. Since current flows in the bidirectional light emitting diode 331A from right to left in the figure, the light emitting diode at the bottom of the figure emits light, and the phototransistor 332A receives this light and outputs a current.

【0014】図2はpnp出力回路10がディジタル信
号入力装置3Aに接続された場合であり、この図のディ
ジタル信号入力装置3Aの図1のディジタル信号入力装
置3Aとの違いは切換スイッチ34の二つのスイッチ3
41,342のオン・オフが反対になっている点だけで
ある。この二つのスイッチ341,342のオン・オフ
はリレー35の電磁石を励磁するか否かで決まるものな
ので、図1と図2の違いはリレー35が励磁されている
か否かの違いだけであって構成上の違いはない。リレー
35を励磁するためと励磁と非励磁とを切り換えるため
の回路は従来技術で容易に実現できるものなのでここで
はその詳細は省略する。
FIG. 2 shows a case where the pnp output circuit 10 is connected to the digital signal input device 3A. The difference between the digital signal input device 3A of this figure and the digital signal input device 3A of FIG. Three switches
The only difference is that the on / off states of 41 and 342 are reversed. Since the on / off of these two switches 341 and 342 is determined by whether or not the electromagnet of the relay 35 is excited, the only difference between FIGS. 1 and 2 is whether or not the relay 35 is excited. There is no difference in configuration. The circuit for exciting the relay 35 and for switching between the excitation and the non-excitation can be easily realized by the conventional technology, and therefore, the details thereof are omitted here.

【0015】pnp出力回路10のpnpトランジスタ
12がオンのときの電流が流れる経路は次の通りであ
る。すなわち、直流電源2の正端子、pnpトランジス
タ12、L端子、双方向発光ダイオード331A、第2
のスイッチ342、N端子、直流電源2の負端子、の経
路である。そして、この経路に沿って流れる電流は双方
向発光ダイオード331Aを図の左から右の方向に流れ
るので図の上の発光ダイオードが発光してホトトランジ
スタ332Aに光を送る。
The path through which the current flows when the pnp transistor 12 of the pnp output circuit 10 is on is as follows. That is, the positive terminal of the DC power supply 2, the pnp transistor 12, the L terminal, the bidirectional light emitting diode 331A, the second
Of the switch 342, the N terminal, and the negative terminal of the DC power supply 2. The current flowing along this path flows through the bidirectional light emitting diode 331A from left to right in the figure, so that the light emitting diode in the figure emits light and sends light to the phototransistor 332A.

【0016】[0016]

【実施例2】図3はこの発明の第2の実施例を示す電子
装置のディジタル信号入力装置の、npn出力回路が接
続されている場合の、図4はpnp出力回路が接続され
ている場合のそれぞれの回路図であり、図1、図2との
違いの一つは、ディジタル信号入力装置3Bの切換スイ
ッチはリレーの接点ではなくて二つの半導体スイッチか
らなる切換スイッチ36を用いたこと、もう一つの違い
は、ホトカプラは従来のと同じ一つの発光ダイオードか
らなる単方向のホトカプラ33を使用し、代わりにホト
カプラ33の前段に全波整流のためのダイオードブリッ
ジ37を設けたことである。
FIG. 3 shows a digital signal input device of an electronic apparatus according to a second embodiment of the present invention, in which an npn output circuit is connected, and FIG. 4 shows a case in which a pnp output circuit is connected. One of the differences from FIGS. 1 and 2 is that the changeover switch of the digital signal input device 3B uses a changeover switch 36 composed of two semiconductor switches instead of a contact point of a relay. Another difference is that the photocoupler uses a unidirectional photocoupler 33 made of the same light emitting diode as the conventional one, and a diode bridge 37 for full-wave rectification is provided in front of the photocoupler 33 instead.

【0017】切換スイッチ36の半導体スイッチ361
はpnpトランジスタ、半導体スイッチ362はnpn
トランジスタを採用しベースは共通にしているので、ベ
ース−エミッタ間の電圧を+にすると、半導体スイッチ
361はオフ、半導体スイッチ362はオンになり、逆
にベース−エミッタ間の電圧を−にすると、半導体スイ
ッチ361がオン、362がオフとなる。
The semiconductor switch 361 of the changeover switch 36
Is a pnp transistor, and the semiconductor switch 362 is npn
Since a transistor is used and the base is common, when the voltage between the base and the emitter is set to +, the semiconductor switch 361 is turned off and the semiconductor switch 362 is turned on. Conversely, when the voltage between the base and the emitter is set to-, The semiconductor switch 361 turns on and the switch 362 turns off.

【0018】pnp出力回路1を接続した図3の場合に
は、半導体スイッチ361がオン、半導体スイッチ36
2がオンであり、ダイオードブリッジ36に流れる電流
は図示のように右から左へ、図4のnpn出力回路10
を接続した場合には二つの半導体スイッチ361,36
2のオン・オフは図3とは逆になって、ダイオードブリ
ッジ36に流れる電流は図示のように左から右へと図3
とは逆になる。しかし、ダイオードブリッジ37を通る
ことによってホトカプラ33の発光ダイオード331に
流れる電流は常に図の上から下の方向になるので、np
nトランジスタ11又はpnpトランジスタ12のオン
・オフに応じて発光ダイオード331が発光、非発光に
変化してホトカプラ33のホトダイオード332から出
力回路1,10からの電流に応じた信号が出力される。
In the case of FIG. 3 in which the pnp output circuit 1 is connected, the semiconductor switch 361 is turned on and the semiconductor switch 36 is turned on.
2 is on, and the current flowing through the diode bridge 36 changes from right to left as shown in FIG.
Are connected, two semiconductor switches 361 and 36
2 is turned on / off in a manner opposite to that of FIG. 3, and the current flowing through the diode bridge 36 is changed from left to right as shown in FIG.
The opposite is true. However, since the current flowing through the light emitting diode 331 of the photocoupler 33 by passing through the diode bridge 37 always goes from the top to the bottom of the figure, np
The light emitting diode 331 changes between light emission and non-light emission in accordance with ON / OFF of the n transistor 11 or the pnp transistor 12, and a signal corresponding to the current from the output circuits 1 and 10 is output from the photodiode 332 of the photocoupler 33.

【0019】半導体スイッチ361,362からなる切
換スイッチ36の採用とダイオードブリッジ37の採用
とは必ずしも一緒に実施すべきものではない。すなわ
ち、図1、図2の第1の実施例の切換スイッチ34の代
わりに切換スイッチ36を使用し、双方向発光ダイオー
ド331Aはそのまま使用した構成でもよい。また、図
3,図4の第2の実施例で切換スイッチ36の代わりに
図1、図2の切換スイッチ34を設ける構成、すなわ
ち、切換スイッチ34、ダイオードブリッジ37及びホ
トカプラ33の組み合わせの構成を採用してもよい。
The adoption of the changeover switch 36 composed of the semiconductor switches 361 and 362 and the adoption of the diode bridge 37 are not necessarily performed together. That is, a configuration in which the changeover switch 36 is used instead of the changeover switch 34 of the first embodiment of FIGS. 1 and 2 and the bidirectional light emitting diode 331A is used as it is may be used. Also, in the second embodiment shown in FIGS. 3 and 4, the configuration in which the changeover switch 34 shown in FIGS. 1 and 2 is provided instead of the changeover switch 36, that is, the configuration of the combination of the changeover switch 34, the diode bridge 37 and the photocoupler 33 is adopted. May be adopted.

【0020】[0020]

【実施例3】図5はこの発明の第3の実施例を示す複数
のディジタル信号入力装置とそれぞれに接続された出力
回路との回路図であり、複数のディジタル信号入力装置
3a〜3cは第1の実施例のもの、すなわち、双方向ホ
トカプラ33Aとリレー35で制御される切換スイッチ
34を採用した構成を代表として採用してあるが、この
ような構成にこだわるものではなく前述の種々の組み合
わせの構成のディジタル信号入力装置を採用して差し支
えない。
Embodiment 3 FIG. 5 is a circuit diagram of a plurality of digital signal input devices and output circuits connected to the respective digital signal input devices according to a third embodiment of the present invention. Although the configuration of the first embodiment, that is, the configuration employing the changeover switch 34 controlled by the bidirectional photocoupler 33A and the relay 35 is employed as a representative, the present invention is not limited to such a configuration and is not limited to the various combinations described above. The digital signal input device having the above configuration may be adopted.

【0021】前述の2つの実施例とこの第3の実施例と
の異なる点は、前述のように複数のディジタル信号入力
装置3a〜3cとこれに接続されるnpn出力回路1a
〜1cとで構成されている点である。そして、発明の主
眼はこれらに共通の一つのリレー35と切換スイッチ3
4との組み合わせ及びこの図では省略してあるが1対の
P端子とN端子との間に接続される一つの直流電源が複
数のディジタル信号入力装置に共通に設けられている点
である。このような構成を採用できるのは、出力回路が
第1の実施例と同じnpn出力回路に統一されているか
らである。もちろん、npn出力回路に統一されている
場合には図のスイッチ341がオフ、スイッチ342が
オンになるようにすればよい。
The difference between the above two embodiments and the third embodiment is that, as described above, a plurality of digital signal input devices 3a to 3c and an npn output circuit 1a connected thereto.
To 1c. The main point of the invention is one relay 35 and changeover switch 3 common to these.
4 and one DC power supply connected between a pair of P and N terminals, which is omitted in this figure, is provided in common for a plurality of digital signal input devices. Such a configuration can be adopted because the output circuit is unified to the same npn output circuit as in the first embodiment. Of course, in the case of unifying the npn output circuit, the switch 341 in the figure may be turned off and the switch 342 may be turned on.

【0022】一般に、プログラマブルコントローラなど
の電子装置において、入力端子は複数のものが列を作っ
て配置されているのが普通である。したがって、それぞ
れの入力端子に接続する出力回路をpnp又はnpnに
統一すればこの実施例のように直流電源と切換スイッチ
とを共通にして部品点数の少ない構成を採用することが
できる。
Generally, in an electronic device such as a programmable controller, a plurality of input terminals are usually arranged in a row. Therefore, if the output circuits connected to the respective input terminals are unified to pnp or npn, a configuration in which the DC power supply and the changeover switch are common and the number of parts is small as in this embodiment can be adopted.

【0023】[0023]

【発明の効果】この発明は前述のように、二つのスイッ
チからなる切換スイッチと、双方向ホトカプラを使用す
ることによって、npn出力回路とpnp出力回路との
いずれを接続した場合でも、切換スイッチの二つのスイ
ッチのオン・オフを切り換えるだけでどちらの出力回路
にも対応することができるので、出力回路の違いによる
ディジタル信号入力装置の構成上の違いのない共通のも
のを使用することができることから、ディジタル信号入
力装置を出力回路の違いに応じて2種類を用意しておく
必要がなくなって部品点数の低減とこれによる装置のコ
ストダウンの効果が得られる。
As described above, the present invention uses a changeover switch composed of two switches and a bidirectional photocoupler, so that the changeover switch can be used regardless of whether the npn output circuit or the pnp output circuit is connected. Both output circuits can be handled simply by turning on and off the two switches, so that a common digital signal input device that has no difference in the configuration of the digital signal input device due to the difference in output circuits can be used. In addition, there is no need to prepare two types of digital signal input devices in accordance with the difference in the output circuit, so that the number of parts can be reduced and the cost of the device can be reduced.

【0024】前述の切換スイッチの第1と第2のスイッ
チは、リレーのa端子、b端子で構成してもよく、ま
た、互いにオン・オフが逆になる二つの半導体スイッチ
で構成してもよく、いずれの場合にもオン・オフを制御
する電圧又は電流を変えるだけでpnp出力回路又はn
pn出力回路のどちらにも対応することができる。前述
の電子装置のディジタル信号入力装置の双方向ホトカプ
ラの代わりに、ダイオードブリッジと従来のディジタル
信号入力装置と同じ単方向のホトカプラとの直列回路を
採用しても前述と同じ効果を得ることができる。
The first and second switches of the above-mentioned changeover switch may be constituted by the terminals a and b of the relay, or may be constituted by two semiconductor switches whose on / off are opposite to each other. In any case, simply changing the voltage or current for controlling on / off in any case requires only a pnp output circuit or n
Both pn output circuits can be supported. The same effect as described above can be obtained by employing a series circuit of a diode bridge and a unidirectional photocoupler as in the conventional digital signal input device instead of the bidirectional photocoupler of the digital signal input device of the electronic device described above. .

【0025】これら前述のディジタル信号入力装置を複
数設けてそれぞれのディジタル信号入力装置に対応した
pnp又はnpnのどちらかの同じ出力回路が接続され
る場合には、それぞれのディジタル信号入力装置に共通
に切換スイッチ及び直流電源が接続される二つの端子を
設けることによって、前述のようにディジタル信号入力
装置の一つひとつに切換スイッチとP,Nの二つの端子
を設けるのに対して回路素子の数が少なくなるので、部
品点数の低減、これに伴うコストダウンという前述の効
果に加算された効果を得ることができる。
When a plurality of these digital signal input devices are provided and the same output circuit of either pnp or npn corresponding to each digital signal input device is connected, each digital signal input device is commonly used. By providing the changeover switch and the two terminals to which the DC power supply is connected, the number of circuit elements is reduced as compared with the case where the changeover switch and the two terminals P and N are provided in each of the digital signal input devices as described above. Therefore, it is possible to obtain an effect that is added to the above-described effect of reducing the number of parts and reducing the cost associated therewith.

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

【図1】この発明の第1の実施例を示す電子装置のディ
ジタル信号入力装置の、npn出力回路に対応した回路
FIG. 1 is a circuit diagram corresponding to an npn output circuit of a digital signal input device of an electronic device according to a first embodiment of the present invention.

【図2】図1のディジタル信号入力装置の、pnp出力
回路に対応した回路図
2 is a circuit diagram corresponding to a pnp output circuit of the digital signal input device of FIG.

【図3】この発明の第2の実施例を示す電子装置のディ
ジタル信号入力装置の、npn出力回路に対応した回路
FIG. 3 is a circuit diagram corresponding to an npn output circuit of a digital signal input device of an electronic device according to a second embodiment of the present invention.

【図4】図3のディジタル信号入力装置の、pnp出力
回路に対応した回路図
FIG. 4 is a circuit diagram corresponding to a pnp output circuit of the digital signal input device of FIG.

【図5】この発明の第3の実施例を示す電子装置の複数
のディジタル信号入力装置とこれにそれぞれ接続された
npn出力回路の回路図
FIG. 5 is a circuit diagram of a plurality of digital signal input devices of an electronic device and an npn output circuit connected to each of the digital signal input devices according to a third embodiment of the present invention;

【図6】npn出力回路とこれに対応する従来の電子装
置のディジタル信号入力装置の回路図
FIG. 6 is a circuit diagram of an npn output circuit and a corresponding digital signal input device of a conventional electronic device.

【図7】pnp出力回路とこれに対応する従来の電子装
置のディジタル信号入力装置の回路図
FIG. 7 is a circuit diagram of a pnp output circuit and a corresponding digital signal input device of a conventional electronic device.

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

1,1a,1b,1c…npn出力回路、11…npn
トランジスタ、2…直流電源、3,30,3A,3B,
3a,3b,3c…ディジタル信号入力装置、31…端
子、32…抵抗、33,33A,…ホトカプラ、10…
pnp出力回路、12…pnpトランジスタ、33A…
双方向ホトカプラ、331A…双方向発光ダイオード、
332A…ホトトランジスタ、34…切換スイッチ、3
5…リレー、36…切換スイッチ、361,362…半
導体スイッチ、37…ダイオードブリッジ
1, 1a, 1b, 1c ... npn output circuit, 11 ... npn
Transistor, 2 ... DC power supply, 3, 30, 3A, 3B,
3a, 3b, 3c: digital signal input device, 31: terminal, 32: resistor, 33, 33A, photocoupler, 10 ...
pnp output circuit, 12 ... pnp transistor, 33A ...
Bidirectional photocoupler, 331A ... bidirectional light emitting diode,
332A: Phototransistor, 34: Changeover switch, 3
5 relay, 36 changeover switch, 361, 362 semiconductor switch, 37 diode bridge

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】直流電源の正端子が接続されるP端子、負
端子が接続されるN端子及び出力回路の一つの端子が接
続されるL端子を備え、pnp出力回路が接続されると
きにはその二つの出力端子がP端子とL端子に、npn
出力回路が接続されるときにはその二つの出力端子がL
端子とN端子に接続され、これらどちらかの出力回路か
ら出力されて入力される入力信号が、ホトカプラを介し
て電子装置の内部回路に入力される電子装置のディジタ
ル信号入力装置において、P端子とN端子との間に直列
接続された第1と第2の二つのスイッチからなる切換ス
イッチが接続され、この切換スイッチの第1と第2のス
イッチの接続点とL端子との間に双方向ホトカプラの双
方向発光素子と抵抗との直列回路が接続されてなり、第
1のスイッチがオンのとき第2のスイッチはオフ、第2
のスイッチがオンのときには第1のスイッチはオフにそ
れぞれ設定されることを特徴とする電子装置のディジタ
ル信号入力装置。
1. A power supply system comprising: a P terminal to which a positive terminal of a DC power supply is connected; an N terminal to which a negative terminal is connected; and an L terminal to which one terminal of an output circuit is connected. Two output terminals are P terminal and L terminal, npn
When an output circuit is connected, its two output terminals are L
A digital signal input device of an electronic device connected to a terminal and an N terminal, and an input signal output and input from one of these output circuits is input to an internal circuit of the electronic device via a photocoupler. A changeover switch including first and second two switches connected in series between the N terminal is connected, and a bidirectional switch is provided between a connection point of the first and second switches of the changeover switch and the L terminal. A series circuit of a bidirectional light emitting element of a photocoupler and a resistor is connected, and when the first switch is on, the second switch is off, and the second switch is off.
Wherein the first switch is set to off when the switch is turned on.
【請求項2】切換スイッチの二つのスイッチがリレーの
a端子とb端子とからなることを特徴とする請求項1記
載の電子装置のディジタル信号入力装置。
2. A digital signal input device for an electronic device according to claim 1, wherein said two switches of said changeover switch comprise terminals a and b of a relay.
【請求項3】切換スイッチの二つのスイッチがそれぞれ
半導体スイッチからなることを特徴とする請求項1記載
の電子装置のディジタル信号入力装置。
3. The digital signal input device of an electronic device according to claim 1, wherein each of the two switches of the changeover switch comprises a semiconductor switch.
【請求項4】請求項1乃至3記載の電子装置のディジタ
ル信号入力装置の双方向ホトカプラの代わりに、ダイオ
ードブリッジと単方向のホトカプラとの直列回路が設け
られてなることを特徴とする電子装置のディジタル信号
入力装置。
4. An electronic device according to claim 1, wherein a series circuit of a diode bridge and a unidirectional photocoupler is provided instead of the bidirectional photocoupler of the digital signal input device of the electronic device according to claim 1. Digital signal input device.
【請求項5】請求項1乃至4記載のディジタル信号入力
装置の複数が、pnp又はnpnのどちらかの同じ出力
回路が接続されるべくしてなり、それぞれのディジタル
信号入力装置に共通に、一つの切換スイッチと一つの直
流電源が接続される二つの端子が設けられてなることを
特徴とする電子装置のディジタル信号入力装置。
5. A digital signal input device according to claim 1, wherein the same output circuit of either pnp or npn is connected to each of the digital signal input devices. A digital signal input device for an electronic device, comprising: two changeover switches and two terminals connected to one DC power supply.
JP9036067A 1997-02-20 1997-02-20 Digital signal input device for electronic device Pending JPH10233668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9036067A JPH10233668A (en) 1997-02-20 1997-02-20 Digital signal input device for electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9036067A JPH10233668A (en) 1997-02-20 1997-02-20 Digital signal input device for electronic device

Publications (1)

Publication Number Publication Date
JPH10233668A true JPH10233668A (en) 1998-09-02

Family

ID=12459390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9036067A Pending JPH10233668A (en) 1997-02-20 1997-02-20 Digital signal input device for electronic device

Country Status (1)

Country Link
JP (1) JPH10233668A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102588797A (en) * 2012-03-06 2012-07-18 卢子清 Bidirectional LED
WO2012117472A1 (en) * 2011-03-03 2012-09-07 株式会社パトライト Input circuit and integrated circuit having the input circuit integrated therein
WO2019152348A1 (en) * 2018-01-30 2019-08-08 Parker-Hannifin Corporation Method and apparatus for configuring i/o modules connected to a fieldbus controller
JP2020010295A (en) * 2018-07-12 2020-01-16 パナソニックIpマネジメント株式会社 Input-output device

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012117472A1 (en) * 2011-03-03 2012-09-07 株式会社パトライト Input circuit and integrated circuit having the input circuit integrated therein
JP5455100B2 (en) * 2011-03-03 2014-03-26 株式会社パトライト Input circuit and integrated circuit of the input circuit
JPWO2012117472A1 (en) * 2011-03-03 2014-07-07 株式会社パトライト Input circuit and integrated circuit of the input circuit
CN102588797A (en) * 2012-03-06 2012-07-18 卢子清 Bidirectional LED
WO2019152348A1 (en) * 2018-01-30 2019-08-08 Parker-Hannifin Corporation Method and apparatus for configuring i/o modules connected to a fieldbus controller
CN111758078A (en) * 2018-01-30 2020-10-09 帕克-汉尼芬公司 Configuration method and device for I/O modules connected to a field bus controller
US11392519B2 (en) 2018-01-30 2022-07-19 Parker-Hannifin Corporation Method and apparatus for configuring I/O modules connected to a fieldbus controller
JP2020010295A (en) * 2018-07-12 2020-01-16 パナソニックIpマネジメント株式会社 Input-output device

Similar Documents

Publication Publication Date Title
KR910005362B1 (en) Display driver
KR101186701B1 (en) Digital output circuit
JPH10233668A (en) Digital signal input device for electronic device
JPH0725404U (en) Constant current source for field contact input
JP2005143002A (en) Input circuit
JPH10154006A (en) Programmable controller
JP2615890B2 (en) Input device for control equipment
JPS6019395Y2 (en) Opening/closing circuit
JP2000236143A (en) Programmable controller and printed wiring board
US6593564B2 (en) Photo switching device having a control circuit with a gate controlled device
US20220094355A1 (en) Bidirectional switch for power control in a daisy chain
JPS6241341Y2 (en)
JP2012205001A (en) Signal output device and robot controller
JP2592990B2 (en) Voltage control circuit
JP2596957B2 (en) Optical coupling device
JPS5952580B2 (en) electronic switch
JP2006332304A (en) Semiconductor relay device
JPH04167616A (en) Flooding circuit for photoelectric switch
JPH0530641A (en) Polarity switching circuit for power supply voltage
JPH07101841B2 (en) Input drive circuit
JPS5810271Y2 (en) photoelectric switch circuit
JPS637515B2 (en)
JPH07264029A (en) Drive circuit for bidirectional connecting transistor
JPS636895Y2 (en)
JPH0326681Y2 (en)