JPH02309835A - 2-wire type bi-directional interface circuit - Google Patents

2-wire type bi-directional interface circuit

Info

Publication number
JPH02309835A
JPH02309835A JP13188789A JP13188789A JPH02309835A JP H02309835 A JPH02309835 A JP H02309835A JP 13188789 A JP13188789 A JP 13188789A JP 13188789 A JP13188789 A JP 13188789A JP H02309835 A JPH02309835 A JP H02309835A
Authority
JP
Japan
Prior art keywords
transmission
photocoupler
reception
loop
current
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
JP13188789A
Other languages
Japanese (ja)
Inventor
Koichi Minegishi
峯岸 広一
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
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP13188789A priority Critical patent/JPH02309835A/en
Publication of JPH02309835A publication Critical patent/JPH02309835A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bidirectional Digital Transmission (AREA)

Abstract

PURPOSE:To eliminate the need for a transistor(TR) and a relay and to simplify the circuit constitution by using a logic element to switch transmission and reception. CONSTITUTION:When a loop direction switching signal SEL is brought into a logical L, an output of a NAND gate iC1 goes to H and an output of a buffer iC2 goes to L to form a current loop in the reception direction, a device A enters the reception state and the signal is sent from a transmission photocoupler PC 4 of a device B to a reception photocoupler PC 2. When a loop direction switching signal SEL goes to H, an output of the buffer iC2 goes to H, the device A enters the transmission state and an output of the NAND gate iC1 goes to L or H depending whether the transmission data input Data goes to H or L, the current loop in the transmission direction is intermitted via the NAND gate iC1 and the signal is delivered to the reception photocoupler PC 3 of the device B. Thus, the circuit constitution is simplified by using the NAND gate iC1 and the buffer iC2 being logic elements so as to apply switching.

Description

【発明の詳細な説明】[Detailed description of the invention]

【産業上の利用分野】[Industrial application field]

本発明は2線のデータ伝送路を往復してできる電流ルー
プの電流方向を切換えて双方向の通信を行う2線式双方
向伝送路に対する通信装置のインタフェース回路に関す
るもので、 特に回路構成を簡潔にしながら送受信の切換や伝送路の
断線検出を行い得るようにした2線式双方向インタフェ
ース回路に関する。 なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to an interface circuit of a communication device for a two-wire bidirectional transmission line that performs two-way communication by switching the current direction of a current loop formed by reciprocating a two-wire data transmission line. The present invention relates to a two-wire bidirectional interface circuit that is capable of switching between transmission and reception and detecting disconnection of a transmission line. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.

【従来の技術】[Conventional technology]

従来の電流ループ形式の2線式双方向インタフェース回
路は、伝送路の電流ループ形成及び電流方向の切換をリ
レーまたはトランジスタで行い、電流ループの方向が送
信、受信の状態を決定し、このループ電流の有無が通信
データの論理状態に対応する形となっている。この時の
送信回路と受信回路は独立したものとなっている。 即ち第4図は、この種の従来の電流ループ形式の2線式
インタフェース回路の概念図である。同図においてA、
Bは2本の回線(伝送路)を介して交信する装置、El
は装置A内に設けられた送信用電源、E2は同じく受信
用電源、Sはループ方向切換信号SELによって、電流
ループの方向、従って装置A、Bの送信、受信の状態を
決定するループ方向切換スイッチである。Triは同じ
く装置A内に設けられた送信用トランジスタで、送信デ
ータ入力Dataによって断続される。PO2は同じく
装置Aの受信用フォトカプラ、Rは回線のループ電流制
限用の抵抗である。またPO3,PO2はそれぞれ装置
B内に設けられた受信用フォトカプラ、送信用フォトカ
プラであり、DI、D2は各フォトカプラP C3,P
 C4を逆方向にバイパスするダイオードである。 この系ではループ電流の有無がデータの論理状態に対応
する形になっており、トランジスタTriあるいはフォ
トカプラPC4で電流ループが断続され交信が行われる
。例えば装置Aが装置Bヘデータ送信を行う場合には、
スイッチSは送信用電aE1の側に切換えられ、送信用
トランジスタTr1の開閉によって、送信用型BE1−
トランジスタTri→ダイオードD2→フォトカプラP
C3→抵抗R−スインチS−送信用電源E1の経路で断
続するループ電流としての送信電流が流れ、装置Bはこ
の送信データを受信用フォトカプラPC3を介して受信
する。 他方、装置Aが装置Bからデータを受信する場合には、
スイッチSは受信用電源E2側に切換えられ、装置B内
の送信用フォトカプラPC4の開閉によって、受信用電
源E2−スイッチS−抵抗R−ダイオードD1→送信用
フォトカプラPC4=受信用フォトカプラPC2−受信
用電源E2の経路で断続するループ電流としての受信電
流が流れ、装置Aはこの受信データを受信用フォトカプ
ラPC2を介して受信する。 次に第5図は第4図におけるループ方向切換スイッチS
に相当する部分をリレー接点SL、S2で構成し、かつ
送信用電源E1と受信用電源E2とを共通電源Eで置換
えた従来の回路である。 また第6図は第5図のリレー接点31.S2をトランジ
スタTr2〜Tr4で置換えた従来の回路である。 次に第7図は第4図の装置Aの回路に断線検出フォトカ
プラPC5とダイオード3との逆並列回路を付加し、通
信回路の断線チェック及び送信回路の自己診断を可能に
した従来の回路である。 即ち装置Aの送信可能な状態にスイッチSを切換えたと
き、トランジスタTriをオンすることによる装置Aの
送信方向のループ電流はフォトカプラPCBを流れるの
で、装置Aはこのループ電流の有無をフォトカプラPC
5を介し検出することにより回線の断線チェックを行う
ことができる。
Conventional current loop type two-wire bidirectional interface circuits use relays or transistors to form a current loop in the transmission line and switch the current direction, and the direction of the current loop determines the transmission or reception status, and this loop current The presence or absence of this corresponds to the logical state of the communication data. The transmitting circuit and receiving circuit at this time are independent. That is, FIG. 4 is a conceptual diagram of this type of conventional current loop type two-wire interface circuit. In the same figure, A,
B is a device that communicates via two lines (transmission lines), El
is a power source for transmission provided in device A, E2 is a power source for reception as well, and S is a loop direction switch that determines the direction of the current loop, and therefore the transmission and reception status of devices A and B, by the loop direction switching signal SEL. It's a switch. Tri is a transmission transistor also provided in the device A, and is turned on and off by the transmission data input Data. PO2 is a photocoupler for receiving equipment A, and R is a resistor for limiting the loop current of the line. Also, PO3 and PO2 are a receiving photocoupler and a transmitting photocoupler provided in device B, respectively, and DI and D2 are photocouplers P C3 and P.
This is a diode that bypasses C4 in the reverse direction. In this system, the presence or absence of a loop current corresponds to the logical state of data, and the current loop is interrupted and communicated by the transistor Tri or the photocoupler PC4. For example, when device A sends data to device B,
The switch S is switched to the side of the transmitter aE1, and by opening and closing the transmitter transistor Tr1, the transmitter type BE1-
Transistor Tri → diode D2 → photocoupler P
A transmission current as an intermittent loop current flows in the path C3→resistance R−sinch S−transmission power source E1, and device B receives this transmission data via the reception photocoupler PC3. On the other hand, when device A receives data from device B,
The switch S is switched to the receiving power source E2 side, and by opening and closing the transmitting photocoupler PC4 in the device B, the receiving power source E2 - switch S - resistor R - diode D1 → transmitting photocoupler PC4 = receiving photocoupler PC2 - A reception current as an intermittent loop current flows in the path of the reception power source E2, and the device A receives this reception data via the reception photocoupler PC2. Next, Figure 5 shows the loop direction changeover switch S in Figure 4.
This is a conventional circuit in which the portion corresponding to the above is configured with relay contacts SL and S2, and the transmitting power source E1 and the receiving power source E2 are replaced with a common power source E. FIG. 6 also shows the relay contact 31 of FIG. This is a conventional circuit in which S2 is replaced with transistors Tr2 to Tr4. Next, FIG. 7 shows a conventional circuit in which an anti-parallel circuit of a disconnection detection photocoupler PC5 and a diode 3 is added to the circuit of device A in FIG. It is. That is, when the switch S is switched to the transmittable state of the device A, the loop current in the transmission direction of the device A due to turning on the transistor Tri flows through the photocoupler PCB. PC
5, it is possible to check for disconnection of the line.

【発明が解決しようとする課題】[Problem to be solved by the invention]

しかしながら第4図ないし第6図のような従来の回路に
おいては、回路を構成しているスイッチ。 リレーやトランジスタの集積度が低いため、インタフェ
ース回路が煩雑となり、装置が大型化するという欠点が
あった。 また従来の電流ループ形式の2線式双方向インタフェー
ス回路は、通信回線の断線チェック及び送信回路の自己
診断を行うには、第7図のように別個に回路を付は加え
なくてはならなす、装置が大型化すると共にコスト高に
なるという欠点があった。 そこで本発明は電流ループの方向切換を論理素子で行わ
せたり、あるいは受信用のフォトカプラをAC入力のフ
ォトカプラにして、送信時(断線検出、自己診断)と受
信時と共用にした2線式双方向インタフェース回路を提
供することにより前記の問題を解消することを課題とす
る。
However, in conventional circuits such as those shown in FIGS. 4 to 6, the switches constituting the circuit. Since the degree of integration of relays and transistors is low, the interface circuit becomes complicated and the device becomes large. In addition, with the conventional current loop type two-wire bidirectional interface circuit, it is necessary to add a separate circuit as shown in Figure 7 in order to check for disconnection of the communication line and self-diagnose the transmitting circuit. However, there were disadvantages in that the device became larger and the cost increased. Therefore, the present invention switches the direction of the current loop using a logic element, or uses an AC input photocoupler as the receiving photocoupler, and uses two wires for both transmission (disconnection detection, self-diagnosis) and reception. An object of the present invention is to solve the above-mentioned problems by providing a two-way interface circuit.

【課題を解決するための手段】[Means to solve the problem]

前記の課題を解決するために本発明のインタフェース回
路は、「2線式の伝送路を往復する電流ループの電流方
向の切換で送信と受信とを切換える2線式双方向インタ
フェース回路において、前記の切換を論理素子(NAN
Dゲート+CI。 バッファiC2など)を介して行うように」するか、ま
たはI’AC入力のフォトカプラ(送受信用フォトカプ
ラPCIOなど)を介して、前記伝送路からの受信信号
の検出と、前記伝送路への送信方向の電流の検出による
回線診断とを行うようにJするものとする。
In order to solve the above problems, the interface circuit of the present invention is a two-wire bidirectional interface circuit that switches between transmission and reception by switching the current direction of a current loop that reciprocates on a two-wire transmission line. Switching is performed using a logic element (NAN
D gate + CI. Detection of the received signal from the transmission path and detection of the received signal from the transmission path via a photocoupler (transmission/reception photocoupler PCIO, etc.) of the I'AC input. It is assumed that line diagnosis is performed by detecting current in the transmission direction.

【作 用】[For use]

共通の入力で出力が互いに相反する2つの論理素子(例
、NANDゲート及びバッファ)のそれぞれの出力を回
線の両端に接続することにより、入力の論理状態で、回
線の両端の極性を変えることができ、引いては、回線の
電流ループの方向を切換えることができる。 またAC入力のフォトカプラからは、受信信号はもちろ
ん、送信時においては、電流ループの状態を検出するこ
とができる。
By connecting the outputs of two logic elements (e.g., NAND gates and buffers) with a common input and opposing outputs to both ends of the line, it is possible to change the polarity of both ends of the line depending on the logic state of the inputs. It can be used to switch the direction of the current loop in the line. Furthermore, from the AC input photocoupler, it is possible to detect not only the received signal but also the state of the current loop during transmission.

【実施例】【Example】

以下第1図ないし第3図に基づいて本発明の詳細な説明
する。第1図は本発明の第1の実施例としての構成を示
す回路図で、第4図ないし第6図におけるスイッチS、
リレー接点5LS2、またはトランジスタTri〜Tr
4を2つの論理素子としてのNANDゲートic1.お
よびバッファiC2に置換えたものである。なおりOは
受信用フォトカプラPC2を逆並列にバイパスするダイ
オードである。 第1図において、ループ方向切換信号SELを論理状態
II L ++にすると、NANDゲートiC1の出力
は”H″、バッファiC2の出力はL”となり同図に示
す受信方向の電流ループが形成されて装置Aは受信状態
に入り、信号の伝達は装置Bの送信用フォトカプラPC
4から装置への受信用フォトカプラPC2へと行われる
。次にループ方向切換信号SELを”H++にするとバ
ッファiC2の出力は”H“で、装置Aは送信状態に入
り、送信データ入力DataのH”またはHL ++に
よって、NANDゲートic1の出力はL″または”H
″になり、同図に示す送信方向の電流ループがNAND
ゲー1−iclを介して断続され、信号が装置Bの受信
用フォトカプラPC3に伝達される。 第2図は本発明の第2の実施例としての構成を示す回路
図で第7図に対応するものである。また第3図は第2図
の概念図である。 第2図、第3図においては第7図の受信用フォトカプラ
PC2および断線検出フォトカプラPC5が送受信用(
AC入力)のフォトカプラPCIOに置換わっており、
また第2図においてはさらに第7図のスイッチS、)ラ
ンジスタTri等が第1図と同様にNANDゲートic
1およびバッファiC2に置換わっている。 第2図において第1図で述べたと同様にループ方向切換
信号SELおよび送信データ人力Dataを”H“°に
するか、第3図においてスイッチSを送信側にし、トラ
ンジスタTriを導通状態にすることにより、送信方向
のループ電流を流し、この電流を送受信用フォトカプラ
PCIOで検出することにより、通信回線の断線チェッ
ク及び送信回線の自己診断を行うことができる。
The present invention will be described in detail below with reference to FIGS. 1 to 3. FIG. 1 is a circuit diagram showing the configuration of a first embodiment of the present invention, in which switches S in FIGS. 4 to 6,
Relay contact 5LS2 or transistor Tri~Tr
NAND gate ic1.4 as two logic elements. and buffer iC2. Naori O is a diode that bypasses the receiving photocoupler PC2 in antiparallel. In FIG. 1, when the loop direction switching signal SEL is set to the logic state II L ++, the output of the NAND gate iC1 is "H" and the output of the buffer iC2 is "L", forming a current loop in the receiving direction as shown in the figure. Device A enters the receiving state, and the signal is transmitted to the transmitting photocoupler PC of device B.
4 to the receiving photocoupler PC2. Next, when the loop direction switching signal SEL is set to "H++", the output of the buffer iC2 becomes "H", and the device A enters the transmission state, and the output of the NAND gate ic1 becomes "L" due to the transmission data input Data being "H" or HL++. or “H”
'', and the current loop in the transmission direction shown in the figure is NAND
The signal is transmitted to the receiving photocoupler PC3 of the device B through the gate 1-icl. FIG. 2 is a circuit diagram showing a configuration as a second embodiment of the present invention, and corresponds to FIG. 7. Further, FIG. 3 is a conceptual diagram of FIG. 2. In FIGS. 2 and 3, the reception photocoupler PC2 and disconnection detection photocoupler PC5 in FIG. 7 are used for transmission and reception (
AC input) has been replaced with a photocoupler PCIO,
In addition, in FIG. 2, the switch S, transistor Tri, etc. in FIG.
1 and buffer iC2. In FIG. 2, set the loop direction switching signal SEL and the transmission data manually to "H" degrees as described in FIG. 1, or in FIG. 3, set the switch S to the transmitting side and make the transistor Tri conductive. By causing a loop current in the transmitting direction to flow and detecting this current with the transmitting/receiving photocoupler PCIO, it is possible to check for disconnection of the communication line and perform self-diagnosis of the transmitting line.

【発明の効果】【Effect of the invention】

本発明によれば2線式の伝送路を往復する電流ループの
電流方向の切換で送信と受信とを切換える2線式双方向
インタフェース回路において、前記の切換を論理素子と
してのN A N Dゲートic1.バッファiC2を
介して行うようにしだので、 トランジスタやリレーを削除でき、回路構成が簡単にな
り、低コスト化、省スペース化が図られる。また、従来
と比べて低消費電力化が期待できる。 またAC入力のフォトカプラとしての送受信用フォトカ
プラPCIOを介して、前記伝送路からの受信信号の検
出と、前記伝送路への送信方向の電流の検出による回線
診断とを行うようにしたので、受信用フォトカプラを送
受信用フォトカプラに置換える簡単な回路変更のみで通
信回線の断線検出、送信回路の自己診断が可能になり、
2線式双方向インタフェース回路の信頬性を低コストで
向上させることができる。
According to the present invention, in a two-wire bidirectional interface circuit that switches between transmission and reception by switching the current direction of a current loop that reciprocates in a two-wire transmission path, the switching is performed using a NAND gate as a logic element. ic1. Since this is done via the buffer iC2, transistors and relays can be eliminated, the circuit configuration becomes simpler, and costs and space can be reduced. In addition, lower power consumption can be expected compared to conventional methods. In addition, the circuit diagnosis is performed by detecting the received signal from the transmission line and detecting the current in the transmission direction to the transmission line via the transmitting/receiving photocoupler PCIO as an AC input photocoupler. By simply changing the circuit by replacing the receiving photocoupler with the transmitting/receiving photocoupler, it becomes possible to detect communication line disconnections and self-diagnose the transmitting circuit.
The reliability of a two-wire bidirectional interface circuit can be improved at low cost.

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

第1図は本発明の第1の実施例としての構成を示す回路
図、 第2図は本発明の第2の実施例としての構成を示す回路
図、 第3図は第2図の概念図、 第4図ないし第6図は第1図に対応する従来の回路図、 第7図は第2図に対応する従来の回路図である。 A、B:装置、PC2,PC3:受信用フォトカプラ、
PC4:送信用フォトカプラ、pcto:送受信用フォ
トカプラ、i C1: NANDゲート、iC2:バッ
ファ、DO〜D2 :ダイオード、Data  :送信
データ入力、SEL:ループ方向項第1図 ミー→IA−−−回紘巳麗IB−− オ 3図 第4図 第5図 オ6図
Fig. 1 is a circuit diagram showing a configuration as a first embodiment of the present invention, Fig. 2 is a circuit diagram showing a configuration as a second embodiment of the invention, and Fig. 3 is a conceptual diagram of Fig. 2. , FIGS. 4 to 6 are conventional circuit diagrams corresponding to FIG. 1, and FIG. 7 is a conventional circuit diagram corresponding to FIG. 2. A, B: Device, PC2, PC3: Receiving photocoupler,
PC4: Photocoupler for transmission, pcto: Photocoupler for transmission and reception, i C1: NAND gate, iC2: Buffer, DO~D2: Diode, Data: Transmission data input, SEL: Loop direction term Fig. 1 Me→IA--- Reiko Hiromi IB-- Figure 3, Figure 4, Figure 5, Figure 6

Claims (1)

【特許請求の範囲】 1)2線式の伝送路を往復する電流ループの電流方向の
切換で送信と受信とを切換える2線式双方向インタフェ
ース回路において、 前記の切換を論理素子を介して行うようにしたことを特
徴とする2線式双方向インタフェース回路。 2)2線式の伝送路を往復する電流ループの電流方向の
切換で送信と受信とを切換える2線式双方向インタフェ
ース回路において、 AC入力フォトカプラを介して、前記伝送路からの受信
信号の検出と、前記伝送路への送信方向の電流の検出に
よる回線診断とを行うようにしたことを特徴とする2線
式双方向インタフェース回路。
[Claims] 1) In a two-wire bidirectional interface circuit that switches between transmission and reception by switching the current direction of a current loop that reciprocates in a two-wire transmission line, the switching is performed via a logic element. A two-wire bidirectional interface circuit characterized by: 2) In a two-wire bidirectional interface circuit that switches between transmission and reception by switching the current direction of a current loop that reciprocates on a two-wire transmission line, the reception signal from the transmission line is input via an AC input photocoupler. A two-wire bidirectional interface circuit characterized in that it performs detection and line diagnosis by detecting a current in a transmission direction to the transmission path.
JP13188789A 1989-05-25 1989-05-25 2-wire type bi-directional interface circuit Pending JPH02309835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13188789A JPH02309835A (en) 1989-05-25 1989-05-25 2-wire type bi-directional interface circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13188789A JPH02309835A (en) 1989-05-25 1989-05-25 2-wire type bi-directional interface circuit

Publications (1)

Publication Number Publication Date
JPH02309835A true JPH02309835A (en) 1990-12-25

Family

ID=15068470

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13188789A Pending JPH02309835A (en) 1989-05-25 1989-05-25 2-wire type bi-directional interface circuit

Country Status (1)

Country Link
JP (1) JPH02309835A (en)

Similar Documents

Publication Publication Date Title
CN107193697A (en) A kind of method for realizing the nonpolarity connections of RS485
EP0199338B1 (en) Repeater circuit
CA1241084A (en) Bidirectional bus arrangement for a digital communication system
US6690196B1 (en) Simultaneous bi-directional I/O system
JPH02309835A (en) 2-wire type bi-directional interface circuit
US7095751B2 (en) Active switching star node and network of stations interconnected by such a star node
JPS60500233A (en) telecommunications terminal
SU906018A1 (en) Device for interfacing telegraph sender with communication line
JP3232353B2 (en) Trunk line device
JPS63236438A (en) Modem
JPS57132455A (en) Communication controlling system
JPH067658Y2 (en) Remote control device
JPS62196928A (en) Load controller
JPH09147274A (en) Monitoring device
JPS63234653A (en) Polarity inversion detecting circuit
JPS6350295A (en) Circuit for detecting collision of incoming and outgoing calls
JPS59114937A (en) Mutual connection circuit
JPH01318345A (en) On/off signal signaling circuit
JPH04305749A (en) Rs232c interface circuit
JPS6247218A (en) Transmission line switching system
JPH09233132A (en) Current loop communication system
JPS63240134A (en) Transmission line changeover switch with loopback function
JPS63300662A (en) Called party reply and lockout detection system
JPH03117056A (en) Modem with data signal speed selecting and switching function
JPH03283753A (en) Block signal system for exchange line