JPH0537328A - Input circuit using photocoupler - Google Patents

Input circuit using photocoupler

Info

Publication number
JPH0537328A
JPH0537328A JP18986691A JP18986691A JPH0537328A JP H0537328 A JPH0537328 A JP H0537328A JP 18986691 A JP18986691 A JP 18986691A JP 18986691 A JP18986691 A JP 18986691A JP H0537328 A JPH0537328 A JP H0537328A
Authority
JP
Japan
Prior art keywords
input
voltage
power supply
photocoupler
circuit
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
JP18986691A
Other languages
Japanese (ja)
Inventor
Hirakazu Tsukamoto
平和 塚本
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP18986691A priority Critical patent/JPH0537328A/en
Publication of JPH0537328A publication Critical patent/JPH0537328A/en
Pending legal-status Critical Current

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

PURPOSE:To make a product small in size and light in weight, and to reduce its cost by curtailing the number of constitution parts while keeping reliability. CONSTITUTION:Between an output terminal P1 (OUT) of a photocoupler PC1 and a power source terminal Vcc, an LED circuit is connected, and between the Vcc and a power source voltage terminal Vcc' of a control part, a diode D1 is connected in the forward direction, and the Vcc set by a power source circuit PW is set to a voltage obtained by adding a voltage being at least 1V higher than a threshold voltage of the control part to a drop voltage of the LED circuit caused by a leak current at the time when the photocoupler PC1 is turned off.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、プログラマブルコント
ローラの入力回路等、入力部にホトカプラを使用した入
力回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input circuit, such as an input circuit of a programmable controller, which uses a photo coupler as an input section.

【0002】[0002]

【従来の技術】プログラマブルコントローラ等では、外
部信号が入力する入力端子と、内部の入力信号処理部と
の間がホトカプラで電気的に絶縁される場合がある。そ
して、各入力端子にはLEDが接続され、入力端子に信
号が入るとそのLEDが点灯するようになっている。L
EDは、通常、ホトカプラの出力トランジスタのコレク
タ端子(出力端子)と電源端子間に接続され、LED回
路を通してホトカプラの出力トランジスタに電流を供給
するようにしている。
2. Description of the Related Art In a programmable controller or the like, an input terminal for inputting an external signal may be electrically insulated from an internal input signal processing section by a photo coupler. An LED is connected to each input terminal, and the LED is turned on when a signal is input to the input terminal. L
The ED is usually connected between the collector terminal (output terminal) of the output transistor of the photocoupler and the power supply terminal and supplies a current to the output transistor of the photocoupler through the LED circuit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、ホトカ
プラは、一般に、出力トランジスタのオフ時のリーク電
流が通常のトランジスタに比べてかなり大きく(高温条
件下では数10μA程度になる)、そのリーク電流i
(OFF)によりLEDの電圧降下が無視できなくなる
程度に大きくなる。たとえば、リーク電流i(OFF)
が数10μAの時には、約1Vの電圧降下V(LED)
が発生する。この時、次段CPUの入力ポート(入力信
号処理部)の入力には、内部の電源電圧のVccからV
(LED)分を引いた電圧が印加される。したがって、
Vcc=5Vの場合、入力ポートの入力電圧は4Vにな
る。入力ポートにCMOSを使用していた場合には、通
常、CMOSレベルの入力スレッショルド電圧Vth
(H)は最大3、5Vであり、″H″レベルにおいては
ノイズマージンが4−3.5V=0、5Vしか取れな
い。
However, in the photocoupler, the leakage current when the output transistor is off is generally much larger than that of a normal transistor (several tens of μA under high temperature conditions), and the leakage current i
(OFF) makes the voltage drop of the LED so large that it cannot be ignored. For example, leak current i (OFF)
When the voltage is several 10 μA, the voltage drop V (LED) is about 1V.
Occurs. At this time, Vcc to V of the internal power supply voltage is applied to the input of the input port (input signal processing unit) of the next-stage CPU.
The voltage minus the (LED) component is applied. Therefore,
When Vcc = 5V, the input voltage of the input port is 4V. When a CMOS is used for the input port, it is usually a CMOS level input threshold voltage Vth.
(H) is a maximum of 3,5V, and at the "H" level, the noise margin is only 4-3.5V = 0,5V.

【0004】すなわち、非常に不安定なインターフェイ
スとなる。そこで、上記の問題を解決するために、ホト
カプラの次段にLED駆動用のバッファICを設けたも
のが実用化されている。
That is, the interface becomes very unstable. Therefore, in order to solve the above-mentioned problems, the one in which a buffer IC for driving an LED is provided in the next stage of the photocoupler has been put into practical use.

【0005】図2は、上記バッファICを設けた入力回
路の回路図を示している。図に示す例では、2入力回路
を示し、それぞれの入力端子にホトカプラPC1,PC
2が接続されている。そして、各ホトカプラPC1,P
C2の次段にLED駆動用のバッフアICが設けられ、
このバッフアICの出力側を入力信号を処理するCPU
の入力ポートに接続するとともに、そのバッフアICの
出力端子と内部電源の電源電圧端子間にLED1,LE
D2を含むLED回路を接続する。この構成によると、
ホトトランジスタPC1,PC2にリーク電流が流れて
もバッフアICの出力側にはその影響があらわれないた
めにノイズマージンが小さくなるという上記の不都合を
解消することができる。
FIG. 2 shows a circuit diagram of an input circuit provided with the buffer IC. In the example shown in the figure, a 2-input circuit is shown, and photo couplers PC1 and PC are connected to the respective input terminals.
2 is connected. Then, each photocoupler PC1, P
A buffer IC for driving the LED is provided in the next stage of C2,
The CPU that processes the input signal on the output side of this buffer IC
LED1 and LE between the output terminal of the buffer IC and the power supply voltage terminal of the internal power supply.
Connect the LED circuit including D2. According to this configuration,
Even if a leak current flows through the phototransistors PC1 and PC2, the influence does not appear on the output side of the buffer IC, so that the above-mentioned inconvenience that the noise margin becomes small can be solved.

【0006】しかし、図2に示す回路ではバッフアIC
を別に用意しなければならないために部品点数が増え、
製品の小型化,軽量化を阻害し、さらにコストアップと
なる不都合があった。
However, in the circuit shown in FIG.
Since the number of parts has to be increased separately,
There was the inconvenience of hindering the miniaturization and weight reduction of the product and further increasing the cost.

【0007】本発明の目的は、上記バッフアICを省略
し、簡単な回路構成で安定なインターフェイスを実現で
きる入力回路を提供することを目的とする。
It is an object of the present invention to provide an input circuit which can omit the buffer IC and realize a stable interface with a simple circuit configuration.

【0008】[0008]

【課題を解決するための手段】本発明は、入力信号を受
け出力端子が入力信号処理部の入力ポートに接続される
ホトカプラと、前記ホトカプラの出力端子と電源端子間
に接続されるLED回路と、前記電源端子の電圧を、前
記ホトカプラがオフ時のときのリーク電流による前記L
ED回路の降下電圧に、前記信号処理部のスレッショル
ド電圧よりも少なくとも1V高い電圧を加えた電圧に設
定する電源回路と、前記電源端子と前記入力信号処理部
の電源端子間に順方向に接続されるダイオードと、を備
えてなることを特徴とする。
According to the present invention, a photocoupler whose input terminal receives an input signal is connected to an input port of an input signal processing section, and an LED circuit connected between the output terminal of the photocoupler and a power supply terminal. , The voltage at the power supply terminal is set to the L value due to the leak current when the photocoupler is off.
A power supply circuit that sets a voltage that is at least 1 V higher than the threshold voltage of the signal processing unit to the voltage drop of the ED circuit, and is connected in the forward direction between the power supply terminal and the power supply terminal of the input signal processing unit. And a diode that is provided.

【0009】[0009]

【作用】電源端子の電圧が、ホトカプラがオフ時のとき
のリーク電流によるLED回路の降下電圧に信号処理部
のスレッショルド電圧よりも少なくとも1V高い電圧を
加えた電圧に設定される。たとえば、信号処理部のスレ
ッショルド電圧が3.5Vとし、リーク電流によるLE
D回路の降下電圧が1Vとすると、電源端子の電圧は、
3.5+1+1=5.5V以上に設定される。一方、電
源端子と入力信号処理部の電源端子間には順方向にダイ
オードが接続されるために、電源端子の電圧が5.5V
の場合、入力信号処理部に加わる電源電圧は5.5−
0.6=4.9Vとなる。ダイオードの数は、入力信号
処理部に十分な電源電圧が加わるような数に設定され
る。この例では、ダイオードが一つでよいが、電源端子
電圧がさらに高い電圧に設定されれば、それに応じてダ
イオードの数も増える。
The voltage of the power supply terminal is set to a voltage obtained by adding a voltage at least 1 V higher than the threshold voltage of the signal processing unit to the voltage drop of the LED circuit due to the leak current when the photocoupler is off. For example, if the threshold voltage of the signal processing unit is 3.5 V and LE due to leakage current is
If the drop voltage of D circuit is 1V, the voltage of the power supply terminal is
3.5 + 1 + 1 = 5.5V or higher. On the other hand, since the diode is connected in the forward direction between the power supply terminal and the power supply terminal of the input signal processing unit, the voltage of the power supply terminal is 5.5V.
In the case of, the power supply voltage applied to the input signal processing unit is 5.5-
0.6 = 4.9V. The number of diodes is set so that a sufficient power supply voltage is applied to the input signal processing section. In this example, one diode is sufficient, but if the power supply terminal voltage is set to a higher voltage, the number of diodes will increase accordingly.

【0010】[0010]

【実施例】図1は本発明の実施例の入力回路の回路図を
示す。
1 is a circuit diagram of an input circuit according to an embodiment of the present invention.

【0011】本実施例では入力端子が二つの入力回路を
示している。入力信号は、外部回路を構成する直流電源
Eとリミットスイッチ,センサ等の出力スイッチからな
るSW1,SW2で形成される。SW1がオンした時に
第1の入力端子に入力信号が入る。SW2がオンした時
には第2の入力端子に入力信号が入る。入力端子aは共
通端子、bは第1の入力端子、cは第2の入力端子をそ
れぞれ示す。
In this embodiment, an input circuit having two input terminals is shown. The input signal is formed by the DC power source E that constitutes an external circuit and SW1 and SW2 that are output switches such as a limit switch and a sensor. An input signal is input to the first input terminal when SW1 is turned on. When SW2 is turned on, an input signal is input to the second input terminal. Input terminal a is a common terminal, b is a first input terminal, and c is a second input terminal.

【0012】第1の入力端子bと共通端子a間には第1
のホトカプラPC1の入力側が抵抗R1,R2を介して
接続される。スイッチSW1がオンすると、上記第1の
ホトカプラPC1の入力側のダイオードに電流が流れ、
同ホトカプラがオンする。第1のホトカプラPC1の出
力側トランジスタのコレクタ端子(出力端子)P1(O
UT)は、CPUの入力ポートINに接続される。さら
に、この出力端子P1(OUT)と電源端子Vcc間に
は、抵抗R3とLED1との直列回路からなるLED回
路が順方向に接続されている。また、電源端子Vccと
CPUの入力ポートを含む制御部の電源端子Vcc′と
の間には順方向にダイオードD1が接続されている。
There is a first portion between the first input terminal b and the common terminal a.
The input side of the photocoupler PC1 is connected via resistors R1 and R2. When the switch SW1 is turned on, current flows in the diode on the input side of the first photocoupler PC1,
The photo coupler turns on. The collector terminal (output terminal) P1 (O) of the output side transistor of the first photocoupler PC1
UT) is connected to the input port IN of the CPU. Further, between the output terminal P1 (OUT) and the power supply terminal Vcc, an LED circuit composed of a series circuit of a resistor R3 and LED1 is connected in the forward direction. A diode D1 is connected in the forward direction between the power supply terminal Vcc and the power supply terminal Vcc 'of the control unit including the input port of the CPU.

【0013】第2の入力部も上記第1の入力部と同じ構
成にあり、第2のホトカプラPC2と第2のLEDであ
るLED2とを備えている。
The second input section also has the same structure as the first input section, and includes a second photocoupler PC2 and a second LED LED2.

【0014】以上の構成において、第1の入力部のスイ
ッチSW1がオンすると入力信号が第1のホトカプラP
C1に入力し、その出力トランジスタがオンしてオンレ
ベル(“L”)が入力ポートINに入力するとともに、
LED1が点灯する。同様に、スイッチSW2がオンし
た時には、入力レベルが入力ポートINに入力するとと
もに、LED2が点灯する。
In the above structure, when the switch SW1 of the first input section is turned on, the input signal is the first photo coupler P.
Input to C1, its output transistor is turned on and an on level (“L”) is input to the input port IN,
LED1 lights up. Similarly, when the switch SW2 is turned on, the input level is input to the input port IN and the LED 2 is turned on.

【0015】ここで、電源回路PWの設定する電源端子
Vccの電圧が6Vに設定されている。ダイオードD1
の順方向降下電圧を0.6Vとすると、CPUを含む制
御部の電源端子電圧Vcc′は、6−0.6=5.4V
となる。
Here, the voltage of the power supply terminal Vcc set by the power supply circuit PW is set to 6V. Diode D1
When the forward voltage drop of the above is 0.6V, the power supply terminal voltage Vcc 'of the control unit including the CPU is 6-0.6 = 5.4V.
Becomes

【0016】また、LED1,2の点灯電流は、通常数
mAであるから、LED回路の抵抗R3,R4は約3k
Ω程度に設定されている。ホトカプラPC1,PC2の
リーク電流を10μAとすると、この電流によるLED
1,LED2の降下電圧は一般のLED特性からほぼ1
Vとなる。なお、この場合の抵抗R3,R4の降下電圧
はほとんど無視できる。
Further, since the lighting current of the LEDs 1 and 2 is usually several mA, the resistors R3 and R4 of the LED circuit are about 3 k.
It is set to about Ω. If the leak current of the photocouplers PC1 and PC2 is 10 μA, the LED due to this current
1 、 LED2 drop voltage is almost 1 from general LED characteristics
It becomes V. The voltage drop across the resistors R3 and R4 in this case can be almost ignored.

【0017】したがって、PC1,PC2がオフしてい
る時の電圧P1(OUT),P2(OUT)は、6−1
=5Vとなり、CPU入力ポートINの“H”レベルの
スレッショルド電圧Vth(H)が3.5Vとすれば、
5−3.5=1.5Vの十分なノイズマージンを確保す
ることができる。
Therefore, the voltages P1 (OUT) and P2 (OUT) when PC1 and PC2 are off are 6-1.
= 5V, and if the "H" level threshold voltage Vth (H) of the CPU input port IN is 3.5V,
It is possible to secure a sufficient noise margin of 5-3.5 = 1.5V.

【0018】すなわち、電源回路PWによって設定され
る電源端子電圧Vccを6Vに設定することによって信
頼性の高いインターフェイスを実現できる。
That is, a highly reliable interface can be realized by setting the power supply terminal voltage Vcc set by the power supply circuit PW to 6V.

【0019】[0019]

【発明の効果】図2に示すようなバッフアICを設けな
くても、十分なノイズマージンのあるインターフェイス
部を構成できるために、信頼性を維持したまま製品の小
型化,軽量化,コストダウンを実現できる。特に、本発
明を入力点数の非常に多いプログラマブルコントローラ
に適用した場合には、上記の効果は極めて顕著なものと
なる。
EFFECTS OF THE INVENTION Since the interface section having a sufficient noise margin can be constructed without providing the buffer IC as shown in FIG. 2, the product can be miniaturized, the weight can be reduced and the cost can be reduced while maintaining the reliability. realizable. In particular, when the present invention is applied to a programmable controller having a large number of input points, the above effect becomes extremely remarkable.

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

【図1】本発明の実施例の回路図を示す。FIG. 1 shows a circuit diagram of an embodiment of the present invention.

【図2】従来の入力回路の回路図を示す。FIG. 2 shows a circuit diagram of a conventional input circuit.

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

PW−電源回路 Vcc−電源回路の電源端子 D1−ダイオード PC1,PC2−ホトカプラ PW-Power supply circuit Vcc-Power supply terminal of power supply circuit D1-Diode PC1, PC2-Photo coupler

Claims (1)

【特許請求の範囲】 【請求項1】入力信号を受け出力端子が入力信号処理部
の入力ポートに接続されるホトカプラと、 前記ホトカプラの出力端子と電源端子間に接続されるL
ED回路と、 前記電源端子の電圧を、前記ホトカプラがオフ時のとき
のリーク電流による前記LED回路の降下電圧に、前記
信号処理部のスレッショルド電圧よりも少なくとも1V
高い電圧を加えた電圧に設定する電源回路と、 前記電源端子と前記入力信号処理部の電源端子間に順方
向に接続されるダイオードと、 を備えてなるホトカプラを使用した入力回路。
Claim: What is claimed is: 1. A photocoupler having an output terminal for receiving an input signal connected to an input port of an input signal processing unit, and an L connected between the output terminal of the photocoupler and a power supply terminal.
The voltage of the ED circuit and the power supply terminal is set to a voltage drop of the LED circuit due to a leak current when the photocoupler is off, and the voltage is at least 1 V higher than the threshold voltage of the signal processing unit.
An input circuit using a photocoupler, comprising: a power supply circuit for setting a high voltage applied thereto; and a diode connected in a forward direction between the power supply terminal and a power supply terminal of the input signal processing section.
JP18986691A 1991-07-30 1991-07-30 Input circuit using photocoupler Pending JPH0537328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18986691A JPH0537328A (en) 1991-07-30 1991-07-30 Input circuit using photocoupler

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18986691A JPH0537328A (en) 1991-07-30 1991-07-30 Input circuit using photocoupler

Publications (1)

Publication Number Publication Date
JPH0537328A true JPH0537328A (en) 1993-02-12

Family

ID=16248487

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18986691A Pending JPH0537328A (en) 1991-07-30 1991-07-30 Input circuit using photocoupler

Country Status (1)

Country Link
JP (1) JPH0537328A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101492664B1 (en) * 2010-12-16 2015-02-12 엘에스산전 주식회사 Apparatus for setting operation authority of a digital device in power distribution system
US10898858B2 (en) 2014-07-10 2021-01-26 Asahi Kasei Kabushiki Kaisha Membrane distillation apparatus and hydrophobic porous membrane

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101492664B1 (en) * 2010-12-16 2015-02-12 엘에스산전 주식회사 Apparatus for setting operation authority of a digital device in power distribution system
US10898858B2 (en) 2014-07-10 2021-01-26 Asahi Kasei Kabushiki Kaisha Membrane distillation apparatus and hydrophobic porous membrane

Similar Documents

Publication Publication Date Title
KR20110058730A (en) Digital output circuit
US4403157A (en) Control circuit for light emitting diode
JPH0546571B2 (en)
JPH0537328A (en) Input circuit using photocoupler
US4158144A (en) Circuit arrangement for the transmission of electrical supply power
US5073728A (en) Active load for ECL type outputs
JPS6038925A (en) Signal converter
JPH06347337A (en) Temperature detecting circuit
JP2615890B2 (en) Input device for control equipment
CN207977899U (en) The dynamic power supplies system of working power can be changed with input signal
JPS584505B2 (en) Logical signal transmission device
US6433610B1 (en) Current clamp circuit
JP2007151343A (en) Overvoltage protective circuit
JPH0342733B2 (en)
US5313115A (en) Comparator
JP3635489B2 (en) Power output terminal discharge circuit
JPH0542483Y2 (en)
JPS6353557B2 (en)
SU1418674A1 (en) D.c. voltage stabilizer
JPH0349168B2 (en)
JPS61224446A (en) Semiconductor integrated circuit
KR200269381Y1 (en) Apparatus for Multi Power Supply
JPS63101770A (en) Non-load detection circuit of semiconductive power circuit
CN110198122A (en) The dynamic power supplies system of working power can be changed with input signal
JPS61217906A (en) Writing circuit of magnetic storage device