JPH02200095A - Signal transmission system - Google Patents

Signal transmission system

Info

Publication number
JPH02200095A
JPH02200095A JP1017683A JP1768389A JPH02200095A JP H02200095 A JPH02200095 A JP H02200095A JP 1017683 A JP1017683 A JP 1017683A JP 1768389 A JP1768389 A JP 1768389A JP H02200095 A JPH02200095 A JP H02200095A
Authority
JP
Japan
Prior art keywords
signal
circuit
processing unit
central processing
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.)
Pending
Application number
JP1017683A
Other languages
Japanese (ja)
Inventor
Toshihiko Sasai
敏彦 笹井
Masayuki Morita
正之 森田
Kyoji Yamazaki
山崎 恭二
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.)
Toshiba Lighting and Technology Corp
Original Assignee
Toshiba Lighting and Technology 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 Toshiba Lighting and Technology Corp filed Critical Toshiba Lighting and Technology Corp
Priority to JP1017683A priority Critical patent/JPH02200095A/en
Publication of JPH02200095A publication Critical patent/JPH02200095A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To prevent malfunction and an abnormal operation from being performed at the time of short-circuitting or releasing a transmission line by providing a bit '0' or '1' which always goes to a prescribed value in transmission data from a terminal equipment. CONSTITUTION:A central processing unit 1 is provided with a rise detection circuit 16, a synchronizing signal generation circuit 18, and a flip-flop circuit 19 other than a signal processing circuit 11, a current detection circuit 12, and a driving circuit 13. At such a case, each terminal equipment is constituted so that a marker bit which always goes to '0' can be attached on return data in a master start-up mode, and the signal processing circuit 11 in the central processing unit 1 detects the marker bit, and performs a prescribed transmission short-circuit processing in the case of detecting no marker bit '0' and all the bits of the return data as '1's by judging it as the short-circuit of the transmission line. In such a way, the malfunction or the abnormal operation due to the erroneous recognition of data can be prevented.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、中央処理装置と複数の端末器とを2線伝送
線で接続してなる信号伝送システムに関し、特に中央処
理装置において端末器に接続された負荷を監視制御する
遠隔制御用として好適な信号伝送システムに関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a signal transmission system in which a central processing unit and a plurality of terminal devices are connected by a two-wire transmission line, and in particular, the present invention relates to a signal transmission system in which a central processing unit and a plurality of terminal devices are connected by a two-wire transmission line. The present invention relates to a signal transmission system suitable for remote control that monitors and controls connected loads.

[発明が解決しようとする課題] ところで、このような信号伝送システムにおいては、中
央処理装置は自身から伝送線へ流出する電流を検出し、
この電流の多寡に基づいて、例えばこの電流が多いとき
を“1”、少ないときを“0”として端末器からの伝送
データを識別している。このため、伝送線短絡時には全
ビット“1“のデータが伝送されたものと誤認し、シス
テムが異常動作を起こす恐れがあった。特に、中央処理
装置と端末器との間に中継器が接続されている場合には
、この中継器がバッファとなるため、中継器より端末器
側での伝送線の短絡を中央処理装置側で検知することは
不可能ないし不可能に近い程困難であった。また、伝送
線開放時には全ビットを“0“と認識し、この場合にも
、誤動作または異常動作を起こす恐れがあった。
[Problem to be solved by the invention] By the way, in such a signal transmission system, the central processing unit detects the current flowing from itself to the transmission line,
Based on the amount of this current, the transmitted data from the terminal device is identified, for example, by setting "1" when the current is large and "0" when it is small. For this reason, when the transmission line is short-circuited, the system may mistakenly assume that data with all bits of "1" has been transmitted, causing abnormal operation of the system. In particular, when a repeater is connected between the central processing unit and the terminal equipment, this repeater acts as a buffer, so short circuits in the transmission line on the terminal equipment side than the repeater can be avoided on the central processing unit side. Detection was impossible or nearly impossible. Further, when the transmission line is opened, all bits are recognized as "0", and in this case as well, there is a risk of malfunction or abnormal operation.

この発明の目的は、上述の従来形における問題点に鑑み
、中央処理装置と複数の端末器とを2線伝送線を介し接
続してなる信号伝送システムにおいて、伝送線短絡また
は開放時における誤動作および異常動作を防止すること
にある。
In view of the above-mentioned problems in the conventional type, an object of the present invention is to provide a signal transmission system in which a central processing unit and a plurality of terminal devices are connected via a two-wire transmission line, and to prevent malfunctions when the transmission line is short-circuited or opened. The purpose is to prevent abnormal operation.

[作 用] 上記の構成によれば、端末器からの送信データはあるビ
ットで必ず“0″または1″になる。
[Operation] According to the above configuration, the data transmitted from the terminal always becomes "0" or "1" at a certain bit.

したがって、中央処理装置は、このビットで“Omが検
出されないことに基づいて伝送線の短絡を検出すること
ができる。または、“1゛が検出されないことに基づい
て伝送線の開放を検出することができる。
Therefore, the central processing unit can detect a short circuit in the transmission line based on not detecting ``Om'' in this bit, or detect an open in the transmission line based on not detecting ``1'' in this bit. Can be done.

[効 果] このようにこの発明によると、伝送線の短絡または開放
を確実に中央処理装置で検出でき、このような伝送線の
短絡または開放による誤動作および異常動作を防止する
ことができる。
[Effects] As described above, according to the present invention, a short circuit or an open circuit in a transmission line can be reliably detected by the central processing unit, and malfunctions and abnormal operations due to such a short circuit or open circuit in the transmission line can be prevented.

[課題を解決するための手段] 上記の目的を達成するため、この発明の信号伝送システ
ムでは、端末器からの送信データ中に常に“0“と“1
″のうちの所定の値となるビットを設けである。
[Means for Solving the Problems] In order to achieve the above object, in the signal transmission system of the present invention, "0" and "1" are always included in the data transmitted from the terminal.
A bit is provided that has a predetermined value.

[実施例] 以下、図面によりこの発明の詳細な説明する。[Example] Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は、この発明の一実施例に係る遠隔制御装置の概
略の構成を示す。同図の装置は、親機としての中央処理
装置1、この中央処理装置1に2線伝送線3 (3a、
3b、3c)等を介して接続された子機としての複数の
端末器5 (5a、5b。
FIG. 1 shows a schematic configuration of a remote control device according to an embodiment of the present invention. The device in the figure includes a central processing unit 1 as a parent unit, and a two-wire transmission line 3 (3a,
A plurality of terminal devices 5 (5a, 5b) as child devices connected via terminals 3b, 3c), etc.

5c)、伝送線3aと3bとの間に接続された中継器8
aならび伝送線3bと30との間に接続された中継器8
b等を備えている゛。各端末器5には、それぞれ図示し
ない負荷、例えば照明器具、壁スィッチ、照度センサ等
が接続されている。
5c), a repeater 8 connected between transmission lines 3a and 3b
a and a repeater 8 connected between the transmission lines 3b and 30
It is equipped with b etc. Each terminal device 5 is connected to a load (not shown), such as a lighting fixture, a wall switch, an illumination sensor, etc., respectively.

このような機器構成は遠隔制御装置としては、例えば特
公昭61−3155号にも示されるように公知であり、
例えば、中央処理装置と複数の端末器とを2線伝送線に
より接続し、中央処理装置より、第3図Ca)に示すよ
うに、端末器ヘアドレス信号用および制御信号用の短パ
ルスADR/CNTと監視信号用の長パルスRTMとを
伝送し、各端末器において適宜限流抵抗とスイッチ要素
との直列回路を伝送線に並列的に接続して監視信号用長
パルスの伝送期間中に監視内容に応じてスイッチ要素を
開閉し、この開閉動作による伝送線の電流変化RPIを
中央処理装置で検出するように構成されている。
Such a device configuration is known as a remote control device, for example, as shown in Japanese Patent Publication No. 61-3155.
For example, a central processing unit and a plurality of terminal devices are connected by a two-wire transmission line, and the central processing unit transmits short pulse ADR/ CNT and a long pulse RTM for a monitoring signal are transmitted, and a series circuit of a current limiting resistor and a switch element is connected in parallel to the transmission line in each terminal device to monitor during the transmission period of the long pulse for a monitoring signal. The switch element is opened and closed according to the contents, and the central processing unit detects the current change RPI in the transmission line due to this opening and closing operation.

ところで、この従来の遠隔制御装置(以下、従来システ
ムという)のように、端末器でシンクする電流を変化さ
せる電流モードで端末器から中央処理装置への信号伝送
を行なう場合、中央処理装置では検出抵抗等により電流
を電圧に変換して検出することができる。しかし、この
信号電流は送出元端末器と中央処理装置との間にしか流
れないため、送出元端末器と中央処理装置との間以外の
位置ではこの監視信号等を検出できない。
By the way, when transmitting signals from the terminal to the central processing unit in a current mode that changes the current sinking at the terminal, as in this conventional remote control device (hereinafter referred to as the conventional system), the central processing unit detects Current can be converted into voltage using a resistor or the like and detected. However, since this signal current flows only between the sending terminal device and the central processing unit, this monitoring signal etc. cannot be detected at a position other than between the sending terminal device and the central processing unit.

したがって、この従来システムにおいては、各端末器が
、より後段の端末器の信号しか検出できず、全ての端末
器が他の全ての端末器の信号を検出できるようにするこ
とはできないため、ランダム伝送で端末器から起動をか
けようとする(子起動の)場合に、その起動端末器は前
段の端末器からの送出信号の有無、すなわち伝送線の占
有や信号の衝突を判別することができず、ランダム伝送
には適さなかった。
Therefore, in this conventional system, each terminal can only detect the signals of the terminals in the later stages, and it is not possible for all terminals to detect the signals of all other terminals, so the random When a terminal device attempts to initiate an activation during transmission (child activation), the initiating terminal device is able to determine whether there is a signal sent from the previous terminal device, that is, whether the transmission line is occupied or signal collision occurs. However, it was not suitable for random transmission.

この実施例は、この従来システムを改良したもので、中
央処理装置1において、端末器から送出された電流モー
ド信号の変化を検出し、該信号の立上りに応じて伝送線
上の電圧モードを反転することにより、端末器からの電
流モード信号を電圧モード信号に変換して全部の端末器
が他の全ての端末器の送出信号を電圧として検出できる
ようにしである。
This embodiment is an improvement on this conventional system, in which the central processing unit 1 detects changes in the current mode signal sent from the terminal, and inverts the voltage mode on the transmission line according to the rising edge of the signal. By doing so, current mode signals from terminals are converted to voltage mode signals so that all terminals can detect the signals sent from all other terminals as voltages.

第2図は、中央処理装置1の機能ブロック構成を示す。FIG. 2 shows a functional block configuration of the central processing unit 1. As shown in FIG.

この中央処理装置1は、信号処理回路11、電流検出回
路12およびドライブ回路13からなる従来システムの
中央処理装置に対し、立上り検出回路16、同期信号発
生回路18およびフリップフロップ回路19を付加した
ものである。
This central processing unit 1 has a rise detection circuit 16, a synchronization signal generation circuit 18, and a flip-flop circuit 19 added to the central processing unit of a conventional system consisting of a signal processing circuit 11, a current detection circuit 12, and a drive circuit 13. It is.

なお、この中央処理装置1には、さらに、データ入力用
のキーボードおよびスイッチ類またはセンサ類、ならび
に各種表示用の表示装置、例えばCRT等が必要に応じ
て設けられる。
The central processing unit 1 is further provided with a keyboard and switches or sensors for data input, and a display device for various displays, such as a CRT, as required.

信号処理回路11は、所定のシーケンスに従って前記キ
ーボードやスイッチ、センサ等からデータを取り込んだ
り、各端末器の監視データを収集し、これらのデータに
基づいて制御信号を作成したり、前記表示装置に表示す
る。また、この制御信号等からなる伝送用電圧信号を作
成する。前記従来システムの中央処理装置においては、
この電圧信号がそのままドライブ回路13に入力され、
伝送信号として伝送線3に送出されていたため、この伝
送用電圧信号のフォーマットは、従来システムにおける
中央処理装置からの伝送信号フォーマットである第3図
(a)に示すものと同じである。
The signal processing circuit 11 takes in data from the keyboard, switches, sensors, etc. according to a predetermined sequence, collects monitoring data from each terminal, creates control signals based on this data, and sends data to the display device. indicate. Also, a transmission voltage signal consisting of this control signal and the like is created. In the central processing unit of the conventional system,
This voltage signal is input as is to the drive circuit 13,
Since it was sent to the transmission line 3 as a transmission signal, the format of this transmission voltage signal is the same as that shown in FIG. 3(a), which is the transmission signal format from the central processing unit in the conventional system.

第3図(a)を参照して、この伝送用電圧信号すなわち
従来システムにおける伝送信号は、#1ルベルの長パル
ス信号からなるスタート信号STと、所要ビット数の1
/2の数の“1”レベル短パルス群からなり送信先端末
器のアドレスADRおよび制御信号CNT等の伝送デー
タを示す送信信号ADR/CNTと、′1”レベルの長
パルス信号からなり、送信先端末器からの監視データ等
の返送待機期間(または端末伝送区間〕を示す返送期間
信号RTM等で構成されている。前記の送信信号ADH
/CNTは、順次連続する各“1°レベル部分と“0″
ルベル分がそれぞれ1ビツトのデータを表わしており、
“1“または“0”レベル部分が短かいものはデータ″
0″を示し、長いものは1#を示している。第3図(a
)の例では、信号ADR/CNTとして「001・・・
」を示している。
Referring to FIG. 3(a), this transmission voltage signal, that is, the transmission signal in the conventional system, consists of a start signal ST consisting of a long pulse signal of #1 level, and 1 bit of the required number of bits.
The transmission signal ADR/CNT consists of a group of "1" level short pulses of /2 number and indicates transmission data such as the address ADR of the destination terminal and the control signal CNT, and a "1" level long pulse signal. It is composed of a return period signal RTM, etc. indicating a return waiting period (or terminal transmission section) for monitoring data etc. from the previous terminal device.The above-mentioned transmission signal ADH
/CNT is sequentially connected to each successive “1° level portion” and “0”
Each rubel represents 1 bit of data,
If the “1” or “0” level part is short, it is data.”
0'' and the longer one is 1#. Figure 3 (a
), the signal ADR/CNT is "001...
” is shown.

第2図に戻って、電流検出回路12は、伝送線3を介し
て中央処理装置1と端末器との間に流れる電流(第3図
(a)に斜線で示すような監視データ等の電流モード信
号)を電圧に変換する。
Returning to FIG. 2, the current detection circuit 12 detects the current flowing between the central processing unit 1 and the terminal device via the transmission line 3 (current such as monitoring data as shown by diagonal lines in FIG. 3(a)). mode signal) into voltage.

ドライブ回路13は、入力信号に応じた複極信号で伝送
線3を駆動するもので、例えば入力信号が“1”レベル
であれば伝送線3を+24Vにプルアップし、“0°レ
ベルであれば一24Vにプルダウンする。従来システム
の中央処理装置1においては信号処理回路11の信号電
圧出力をそのままドライブ回路13へ入力していたのに
対し、この実施例では、第3図(b)に示すように、ス
タート信号STおよび送信信号ADH/CNTはそのま
ま送出するが、前記返送期間に信号処理回路11から出
力される返送期間信号RTMはフリップフロップ回路1
9で適宜加工してから送出するようにしている。このフ
リップフロップ回路19はドライブ回路13とともに、
この実施例の中央処理装置1の送信回路20を構成して
いる。
The drive circuit 13 drives the transmission line 3 with a bipolar signal according to the input signal. For example, if the input signal is at the "1" level, it pulls up the transmission line 3 to +24V; In the central processing unit 1 of the conventional system, the signal voltage output of the signal processing circuit 11 is inputted to the drive circuit 13 as it is, but in this embodiment, the signal voltage output as shown in FIG. As shown, the start signal ST and the transmission signal ADH/CNT are sent out as they are, but the return period signal RTM output from the signal processing circuit 11 during the return period is transmitted to the flip-flop circuit 1.
9, the image is processed as appropriate before being sent out. This flip-flop circuit 19, together with the drive circuit 13,
It constitutes the transmitting circuit 20 of the central processing unit 1 of this embodiment.

立上り検出回路16は、電流検出回路12の出力電圧を
微分することにより、端末器から送出される電流モード
信号の立上りを検出する。
The rise detection circuit 16 detects the rise of the current mode signal sent from the terminal by differentiating the output voltage of the current detection circuit 12.

同期信号発生回路18は、端末器から中央処理装置への
返送待機期間(端末伝送区間)RTM中だけ所定の周期
で同期信号5YNCを発生する。
The synchronization signal generation circuit 18 generates the synchronization signal 5YNC at a predetermined period only during the return waiting period (terminal transmission period) RTM from the terminal to the central processing unit.

フリップフロップ(F/F)回路19は、その電圧出力
が信号処理回路11から出力される電圧信号および同期
信号発生回路18から出力される同期信号5YNCの立
上りで立ち上がり、立下りで立ち下がるとともに、立上
り検出回路16の検出出力をトリガとして出力を反転す
る。すなわち、フリップフロップ回路19は、アドレス
信号および制御信号の送出期間中は、信号処理回路11
の出力変化にしたがって変化する電圧をドライブ回路1
3に送出し、端末器からの返送待機期間中の信号処理回
路11の出力が一定の状態では、電流検出回路12で検
出される電流モード信号または同期信号発生回路18か
らの同期信号出力が“0”から“1”に立ち上がると“
1”になり、同期信号出力が′1”から“0#に立ち下
がると′0“になる電圧をドライブ回路13に送出する
The flip-flop (F/F) circuit 19 has a voltage output that rises at the rising edge of the voltage signal outputted from the signal processing circuit 11 and the synchronization signal 5YNC outputted from the synchronization signal generation circuit 18, and falls at the falling edge thereof. The output is inverted using the detection output of the rising edge detection circuit 16 as a trigger. That is, the flip-flop circuit 19 is connected to the signal processing circuit 11 during the sending period of the address signal and the control signal.
Drive circuit 1 that changes the voltage according to the output change of
3, and the output of the signal processing circuit 11 is constant during the waiting period for return from the terminal, the current mode signal detected by the current detection circuit 12 or the synchronization signal output from the synchronization signal generation circuit 18 is " When it rises from “0” to “1”, “
When the synchronizing signal output falls from '1' to '0#', a voltage which becomes '0' is sent to the drive circuit 13.

このフリップフロップ回路19の出力電圧に応じてドラ
イブ回路13が伝送!I3を駆動することによって、第
3図(a)および第3図(b)に示すように、スタート
信号STおよび送信信号ADR/CNTは信号処理装置
11からの出力波形と同形の電圧モード信号で伝送線3
に送出されるとともに、前記端末伝送区間RTMにおい
ては、中央処理装置から同期信号5YNCが送出され、
この同期信号5YNCに対応して端末器から電流モード
信号RPIが送出されるとこの信号RPIに応じた電圧
モード信号RPVが伝送線3に送出される。
The drive circuit 13 transmits data according to the output voltage of this flip-flop circuit 19! By driving I3, the start signal ST and the transmission signal ADR/CNT are voltage mode signals having the same shape as the output waveform from the signal processing device 11, as shown in FIGS. 3(a) and 3(b). transmission line 3
At the same time, in the terminal transmission section RTM, a synchronization signal 5YNC is sent from the central processing unit,
When a current mode signal RPI is sent from the terminal in response to this synchronization signal 5YNC, a voltage mode signal RPV corresponding to this signal RPI is sent to the transmission line 3.

すなわち、第1図の伝送システムにおいては、前記端末
伝送期間RTM中、端末器5からの電流モード信号が中
央処理装置1で電圧モード信号に変換されて伝送線3に
送出される。このため、すべての端末器が、この電圧モ
ード信号によって、自身より後段に接続された端末器に
ついては勿論のこと、前段に接続された端末器からの電
流モード信号についてもその内容を判別することができ
る。したがって、いずれの端末器もこの電圧モード信号
によって全ての端末器の信号送出状態を判別することが
できるため、自身で伝送線3のあき具合や信号衝突の有
無を判定できる。このため、このシステムによれば、中
央処理装置の負担を重くすることなく、衝突が少なく、
ランダム式本来の伝送スピードが速いという特徴を生か
したランダム伝送方式を実現することができる。さらに
、各端末器は、電流モード信号を送出したときは、中央
処理装置がこの電流モード信号から変換した電圧モード
信号を判別することにより、この電流モード信号が中央
処理装置によって正しく受は取られたか否かを確認する
ことができる。したがって、中央処理装置からのアンサ
−信号が不要であり、伝送方式によらず、伝送スピード
の高速化を図ることができる。
That is, in the transmission system of FIG. 1, during the terminal transmission period RTM, a current mode signal from the terminal device 5 is converted into a voltage mode signal by the central processing unit 1 and sent to the transmission line 3. Therefore, all terminals use this voltage mode signal to determine the content of not only terminals connected later than themselves, but also current mode signals from terminals connected earlier. Can be done. Therefore, since each terminal device can determine the signal transmission state of all terminal devices based on this voltage mode signal, it can determine by itself the degree of clearance of the transmission line 3 and the presence or absence of signal collision. Therefore, according to this system, there are fewer collisions without increasing the burden on the central processing unit.
It is possible to realize a random transmission method that takes advantage of the inherent high transmission speed of the random method. Furthermore, when each terminal transmits a current mode signal, the central processing unit determines the voltage mode signal converted from the current mode signal, thereby ensuring that the current mode signal is correctly received by the central processing unit. You can check whether the Therefore, an answer signal from the central processing unit is not required, and the transmission speed can be increased regardless of the transmission method.

また、第1図の装置においては、各端末器の監視データ
を収集するモードとして、中央処理装置1から送信先ア
ドレスおよび制御信号を含む送信要求信号を伝送線3に
送出し、これに対して、送信先の端末器から返送される
該端末器の監視データを受信する中央起動モードと、監
視データが変化する等、発信要求を生じた端末器からラ
ンダムに送出される自己アドレスおよび監視データを含
む伝送データを受信する子起動モードとが設定されてい
る。ここで、各端末器は、親起動モードにおける返送デ
ータ中に常に“0“となるマーカービットを付加するよ
うに構成されている。
In addition, in the apparatus shown in FIG. 1, as a mode for collecting monitoring data of each terminal, the central processing unit 1 sends a transmission request signal including a destination address and a control signal to the transmission line 3, and in response , a central activation mode that receives the monitoring data of the terminal device returned from the destination terminal device, and a self-address and monitoring data that are randomly sent from the terminal device that generated the call request, such as when the monitoring data changes. A child activation mode is set in which transmission data including transmission data is received. Here, each terminal device is configured to add a marker bit that is always "0" to the returned data in the parent activation mode.

中央処理装置1内の信号処理回路11では、このマーカ
ービットを検出することにより、伝送線の状態を判定す
る。そして、このマーカービット“0”が検出されず返
送データの全ビットが“1”として検出された場合には
伝送線短絡と判定して所定の伝送線短絡処理を行なう。
The signal processing circuit 11 in the central processing unit 1 determines the state of the transmission line by detecting this marker bit. If this marker bit "0" is not detected and all bits of the return data are detected as "1", it is determined that a transmission line short circuit has occurred and a predetermined transmission line short circuit process is performed.

これにより、全ビットが“1”の返送データと伝送線短
絡とを分別することができ、データ:A認による誤動作
または異常動作を防止することができる。これに対し、
従来システムでは、端末器からの返送データ中に上述の
ようなマーカービットを含んでいなかったため、全ビッ
トが“1“の返送データと伝送線短絡とを分別できず、
これが誤動作または異常動作の原因となっていた。
This makes it possible to distinguish between return data in which all bits are "1" and transmission line short circuits, and to prevent malfunctions or abnormal operations due to data:A recognition. In contrast,
In the conventional system, the return data from the terminal device did not include the above-mentioned marker bits, so it was not possible to distinguish between the return data in which all bits were "1" and the transmission line short circuit.
This caused malfunction or abnormal operation.

なお、常時“1“となるマーカービットを付加すれば伝
送線の開放、例えば断線をも検出することができる。
Note that by adding a marker bit that is always "1", it is possible to detect an open transmission line, for example, a disconnection.

第4図は、第1図の伝送システムにおける端末器5の機
能ブロック図を示す。この端末器5は、信号処理回路5
1、受信回路52、送信回路53および自己アドレス設
定回路63等からなる従来システムの端末器に対し、同
期信号検出回路55およびフリップフロップ回路57を
付加したものである。さらに、信号処理回路51には単
数または複数の負荷9が接続されている。さらに、前記
中央処理装置1から送出される±24Vの複極パルスを
整流して該端末器の動作用電源とする整流回路(図示せ
ず)を備えている。
FIG. 4 shows a functional block diagram of the terminal device 5 in the transmission system of FIG. 1. This terminal device 5 includes a signal processing circuit 5
1. A synchronizing signal detecting circuit 55 and a flip-flop circuit 57 are added to the conventional system terminal device consisting of a receiving circuit 52, a transmitting circuit 53, a self-address setting circuit 63, etc. Further, one or more loads 9 are connected to the signal processing circuit 51 . Furthermore, a rectifier circuit (not shown) is provided which rectifies the ±24V bipolar pulse sent from the central processing unit 1 and uses it as a power source for operating the terminal.

受信回路52は、中央処理装置1から伝送線3に送出さ
れる電圧モード信号を受信し、同期信号検出回路55は
、受信回路52の出力に基づいて中央処理装置1から伝
送線3に送出される電圧モードの同期信号を検出する。
The receiving circuit 52 receives the voltage mode signal sent from the central processing unit 1 to the transmission line 3, and the synchronization signal detection circuit 55 receives the voltage mode signal sent from the central processing unit 1 to the transmission line 3 based on the output of the receiving circuit 52. Detects voltage mode synchronization signal.

信号処理回路51は、所定のシーケンスに従って動作し
、受信回路52で受信された電圧モード信号に含まれた
制御信号等を受は取ってこの制御信号等に基づく負荷駆
動信号を負荷9に供給したり、負荷9が監視負荷であれ
ばその監視信号を検出して監視データを作成し、前記制
御信号等に従ってこの監視データを送信回路53に出力
する。
The signal processing circuit 51 operates according to a predetermined sequence, receives and receives a control signal, etc. included in the voltage mode signal received by the receiving circuit 52, and supplies a load drive signal to the load 9 based on this control signal, etc. Alternatively, if the load 9 is a monitoring load, the monitoring signal is detected to create monitoring data, and this monitoring data is output to the transmitting circuit 53 in accordance with the control signal and the like.

また、監視データに続いて常に“1″のマーカービット
信号を送信回路53に出力する。これらの監視データお
よびマーカービット信号からなる返送データは前記同期
信号検出回路55で1つの同期信号が検出されるごとに
1ビツトずつが送信回路53に送出される。送信回路5
3は信号処理回路51から1ビツトずつ出力される監視
データおよびマーカービット信号の“1″レベルに応じ
て伝送線の線間に抵抗を接続し、この端末器5における
シンク電流値を変化させる。これにより、前記監視デー
タおよびマーカービット信号が電流モード信号として伝
送線3に送出される。中央処理装置のドライブ回路13
の出力インピーダンスが低い場合、この電流モード信号
による伝送線3の線間電圧の変化は殆どないが、第3図
(a)の斜線部RPIは、この電流モード信号を模式的
に示している。
Further, following the monitoring data, a marker bit signal of "1" is always output to the transmitting circuit 53. Return data consisting of these monitoring data and marker bit signals is sent one bit at a time to the transmitting circuit 53 each time one synchronizing signal is detected by the synchronizing signal detecting circuit 55. Transmission circuit 5
3 connects a resistor between the transmission lines in accordance with the monitoring data output bit by bit from the signal processing circuit 51 and the "1" level of the marker bit signal, and changes the sink current value in the terminal 5. Thereby, the monitoring data and the marker bit signal are sent to the transmission line 3 as a current mode signal. Central processing unit drive circuit 13
When the output impedance of is low, there is almost no change in the line voltage of the transmission line 3 due to this current mode signal, but the shaded area RPI in FIG. 3(a) schematically shows this current mode signal.

フリップフロップ回路57は信号処理回路51の出力を
ラッチするためのものである。
The flip-flop circuit 57 is for latching the output of the signal processing circuit 51.

第5図は、第1図の伝送システムにおける中継器8(8
a、8b)の機能ブロック図を示す。このような中継器
8は、伝送線が長くなった場合の信号増幅および波形歪
みの補正のため、ならびに伝送線が長くなったり、端末
器が多くなって中央処理装置からの給電では端末器の電
源を充分に賄いきれなくなった場合に端末器に電源を供
給するため、伝送線3の途中に挿入されるもので、電圧
波形受信回路81、結合回路82.83、増幅器84.
85、電圧信号用ドライバ86、タイミング発生回路8
7、電流検出回路88、電流信号用ドライバ89、およ
び電源回路90等を具備する。
FIG. 5 shows repeater 8 (8) in the transmission system of FIG.
Fig. 8a, 8b) shows a functional block diagram. Such a repeater 8 is used for signal amplification and correction of waveform distortion when the transmission line becomes long, and when the transmission line becomes long or the number of terminal devices increases, the power supply from the central processing unit increases the number of terminal devices. It is inserted in the middle of the transmission line 3 in order to supply power to the terminal device when the power supply is insufficient, and includes a voltage waveform receiving circuit 81, a coupling circuit 82, 83, an amplifier 84 .
85, voltage signal driver 86, timing generation circuit 8
7, a current detection circuit 88, a current signal driver 89, a power supply circuit 90, and the like.

電圧波形受信回路81および電流信号用ドライバ89は
、それぞれ端末器5の受信回路52および送信回路53
と同様に構成され、電圧信号用ドライバ86および電流
検出回路88は、それぞれ中央処理装置1の電流検出回
路12およびドライブ回路13と同様に構成されている
。また、結合回路82.83は、入出力間を直流的に絶
縁するためのものであり、増幅器84.85は、信号増
幅および波形成形のためのものである。さらに、電源回
路90は、中継器8の中央処理装置1とは反対側に接続
されている端末器5に電源を供給するためのものである
The voltage waveform receiving circuit 81 and the current signal driver 89 are the receiving circuit 52 and the transmitting circuit 53 of the terminal device 5, respectively.
The voltage signal driver 86 and current detection circuit 88 are configured similarly to the current detection circuit 12 and drive circuit 13 of the central processing unit 1, respectively. Further, the coupling circuits 82 and 83 are for direct current isolation between input and output, and the amplifiers 84 and 85 are for signal amplification and waveform shaping. Further, the power supply circuit 90 is for supplying power to the terminal device 5 connected to the side of the repeater 8 opposite to the central processing unit 1.

この中継器8、例えば8aにおいては、中央処理装置1
から送られてくる端末器5bへの伝送信号および同期パ
ルス等の電圧信号を端末器5と同様の電圧波形受信回路
81で受信し、増幅器84により、増幅および波形成形
を行ない、中央処理装置1と同様の電圧信号用ドライバ
86を駆動し、端末器5b側へ送信する。また、端末器
5bからの返送信号等の電流信号は、中央処理装置1と
同様の電流検出回路88で受信し、増幅器85により増
幅および波形成形を行ない、端末器5と同様の同様の電
流信号用ドライバ89を駆動し、中央処理装置1側へ送
る。したがって、この中継器8は、中央処理装置1側か
らみれば端末器にみえ、端末器側からみれば中央処理装
置にみえる。
In this repeater 8, for example 8a, the central processing unit 1
A voltage waveform receiving circuit 81 similar to that of the terminal 5 receives transmission signals sent from the terminal 5b to the terminal 5b and voltage signals such as synchronization pulses, and the amplifier 84 performs amplification and waveform shaping. The voltage signal driver 86 similar to the above is driven and transmitted to the terminal device 5b side. Further, a current signal such as a return signal from the terminal device 5b is received by a current detection circuit 88 similar to that of the central processing unit 1, and is amplified and waveform-shaped by an amplifier 85. drive the driver 89 and send it to the central processing unit 1 side. Therefore, this repeater 8 appears to be a terminal device when viewed from the central processing unit 1 side, and appears to be a central processing unit when viewed from the terminal device side.

中継器8の中央処理装置側と端末器側はホトカブラまた
は絶縁トランス等の結合回路82.83によって直流的
に絶縁されており、端末器側へは、中継器電源90より
給電される。
The central processing unit side and the terminal side of the repeater 8 are DC-insulated by a coupling circuit 82, 83 such as a photocoupler or an isolation transformer, and power is supplied to the terminal side from a repeater power supply 90.

また、波形成形を行なう理由は次のとおりである。すな
わち、中継器8から端末器5への電圧信号は、第6図(
a)に示すような±24Vの複極パルス信号で送られ、
端末器側ではこの信号を整流することにより、電源とし
ている。このため、同期信号S Y−N C等の電圧信
号が+24Vから一24Vまたは一24Vから+24V
へ切り換わるとき、伝送線および端末器5の整流回路の
容量分に第6図(b)示すような電流が流れ込む。この
電流は電流検出回路88によって検出され、電流用ドラ
イバ89を駆動してしまう。多段に中継器が接続された
とき、この電流信号の幅が広がり、これが中央処理装置
1側で本来の端末器からの信号と誤って検出され、誤動
作または伝送不能となることがある。そこで、前記切換
時を含む一定区間はタイミング発生回路87より第6図
(c)に示すような電流返送禁止信号DISを発生し、
極性反転時の電流信号が中央処理装置1側へ伝わらない
ようにしている。同図(d)は、中継器8から中央処理
装置1側へ送出される電流信号波形を示す。
Moreover, the reason for performing waveform shaping is as follows. That is, the voltage signal from the repeater 8 to the terminal device 5 is as shown in FIG.
It is sent as a ±24V bipolar pulse signal as shown in a),
On the terminal side, this signal is rectified and used as a power source. Therefore, the voltage signal such as the synchronization signal S
When switching to , a current as shown in FIG. 6(b) flows into the transmission line and the capacity of the rectifier circuit of the terminal device 5. This current is detected by the current detection circuit 88 and drives the current driver 89. When repeaters are connected in multiple stages, the width of this current signal increases, and this may be mistakenly detected as a signal from the original terminal by the central processing unit 1, resulting in malfunction or transmission failure. Therefore, during a certain period including the switching time, the timing generation circuit 87 generates a current return inhibition signal DIS as shown in FIG. 6(c).
The current signal at the time of polarity reversal is prevented from being transmitted to the central processing unit 1 side. FIG. 2D shows a current signal waveform sent from the repeater 8 to the central processing unit 1 side.

第7図は、中I!器8における電流信号中継動作を示す
フローチャートである。
Figure 7 shows Middle I! 8 is a flowchart showing the current signal relay operation in the device 8. FIG.

すなわち、ステップ801では電流信号用ドライバ89
の出力を′0゛にする。続いてステップ802にて電圧
波形受信回路81の出力が立ち下がるまで待機する。そ
してこの出力が立ち下がると、ステップ803にてタイ
マTをリセットした後、ステップ804にてタイマTを
スタートさせる。続くステップ805ではタイマTが所
定時間T、を経時するまで待機し、時間T1が経過する
とステップ806に進む。ステップ806では電流検出
回路88の出力に基づき端末器からの電流信号を受信し
たか否かを判定する。受信していればステップ807に
て電流信号用ドライバ89の出力を“1“にセットし、
一方、受信していなければステップ807にて電流信号
用ドライバ8つの出力を“0”にセットした後、ステッ
プ809に進む。ステップ809ではタイマTの計時値
を再度検査する。時間T2になっていなければ、上記ス
テップ806に戻って上記ステップ806〜809の処
理を繰り返す。一方、時間T2に達していれば、上記ス
テップ801に戻って上記ステップ801〜809の処
理を繰り返す。これによって、端末器から中央処理装置
1への電流信号の中継が時間T1〜T2の区間でのみ可
能化(ENB)され、それ以外の区間では禁止(DIS
)される。
That is, in step 801, the current signal driver 89
Set the output to '0'. Subsequently, in step 802, the process waits until the output of the voltage waveform receiving circuit 81 falls. When this output falls, timer T is reset in step 803 and then started in step 804. In the following step 805, the timer T waits until a predetermined time T has elapsed, and when the time T1 has elapsed, the process advances to step 806. In step 806, it is determined based on the output of the current detection circuit 88 whether or not a current signal from the terminal device has been received. If received, the output of the current signal driver 89 is set to "1" in step 807,
On the other hand, if the signal has not been received, the outputs of the eight current signal drivers are set to "0" in step 807, and then the process proceeds to step 809. In step 809, the time value of timer T is checked again. If time T2 has not yet come, the process returns to step 806 and repeats steps 806 to 809. On the other hand, if time T2 has been reached, the process returns to step 801 and repeats steps 801 to 809. As a result, the relay of the current signal from the terminal device to the central processing unit 1 is enabled (ENB) only in the interval from time T1 to T2, and is prohibited in other intervals (DIS).
) to be done.

第8図は、第1図の遠隔制御装置における中央処理装置
1の具体的回路例を示す。
FIG. 8 shows a specific circuit example of the central processing unit 1 in the remote control device shown in FIG.

同図の中央処理装置は、マイクロプロセッサ(CPU)
21によってその全体動作を制御するように構成したも
ので、第2図の信号処理回路11、立上り検出回路16
、同期信号発生回路18およびフリップフロップ回路1
9に相当する機能はCPU21の動作プログラムによっ
て実現している。
The central processing unit in the figure is a microprocessor (CPU)
The signal processing circuit 11 and the rising edge detection circuit 16 shown in FIG.
, synchronous signal generation circuit 18 and flip-flop circuit 1
The functions corresponding to 9 are realized by the operation program of the CPU 21.

同図の中央処理装置は、さらに、電流検出回路12のア
ナログ出力をCPU21が処理可能なディジタルデータ
に変換して供給するためのA/Dコンバータ22、交流
電源より例えばドライブ回路13の出力段用の+26V
と一26Vおよびこの出力段以外の回路用の+5vの直
流電圧を発生する直流電源23、交流電源のゼロクロス
を検出するゼロクロス検出回路24、ゼロクロス信号を
伝送線3に送出するためのゼロクロス信号送出回路25
、CPU21の駆動クロックを発生する発振回路26、
CPU21を初期状態に設定するためのリセット回路2
7を具備している。
The central processing unit in the figure further includes an A/D converter 22 for converting the analog output of the current detection circuit 12 into digital data that can be processed by the CPU 21, and an A/D converter 22 for converting the analog output of the current detection circuit 12 into digital data that can be processed by the CPU 21. +26V of
A DC power supply 23 that generates a DC voltage of -26V and +5V for circuits other than this output stage, a zero-cross detection circuit 24 that detects zero-crossing of the AC power supply, and a zero-crossing signal sending circuit for sending a zero-crossing signal to the transmission line 3. 25
, an oscillation circuit 26 that generates a drive clock for the CPU 21,
Reset circuit 2 for setting the CPU 21 to the initial state
It is equipped with 7.

中央処理装置から端末器へ伝送信号を送出する場合、C
PU21は、第3図(b)に示す波形と相似の、但し0
”レベルがOVで、“1”レベルが5vの電圧信号をド
ライブ回路13に供給する。ドライブ回路13は、CP
U21からの電圧信号に従って“0゛レベルが一24V
で、1゜レベルが+24Vの、第3図(b)に示すよう
な波形の電圧モード信号を伝送線3に送出する。
When sending a transmission signal from the central processing unit to the terminal device, C
PU21 has a waveform similar to that shown in FIG. 3(b), but 0
A voltage signal whose level is OV and whose level is 5V is supplied to the drive circuit 13.
According to the voltage signal from U21, the “0” level is 124V
Then, a voltage mode signal having a 1° level of +24V and a waveform as shown in FIG. 3(b) is sent to the transmission line 3.

ゼロクロス検出回路24は、交流電源のゼロクロスを検
出し、′1#レベルのゼロクロス信号をCPU21に入
力する。この検出回路24においては、例えばAClo
oVの交流電源を絶縁トランスT1を介してダイオード
ブリッジDBIに供給し、こ、のダイオードブリッジD
BIからの全波整流出力をトランジスタTrlのベース
に印加して超C級増幅することにより、この全波整流出
力がOvであるとき、すなわち交流電源がゼロクロスす
るタイミングでトランジスタTrlのコレクタに5■の
ゼロクロス信号を発生する。
The zero-crossing detection circuit 24 detects the zero-crossing of the AC power supply and inputs a zero-crossing signal at the '1# level to the CPU 21. In this detection circuit 24, for example, AClo
oV AC power is supplied to the diode bridge DBI via the isolation transformer T1, and this diode bridge D
By applying the full-wave rectified output from the BI to the base of the transistor Trl and super-class-C amplifying it, when this full-wave rectified output is Ov, that is, at the timing when the AC power supply zero-crosses, the collector of the transistor Trl receives 5. generates a zero-cross signal.

CPU21は、このゼロクロス信号を、中央起動時等の
必要時であればそのままゼロクロス信号送信回路25に
供給する。ゼロクロス信号送信回路25においては、ゼ
ロクロス信号入力時アナログスイッチASIがオフする
ことによってCPU21からドライブ回路13への電圧
信号供給を遮断し、これにより中央処理装置から端末器
への信号伝送を遮断するとともに、CPU21からのゼ
ロクロス信号によりフォトカブラPCIを駆動してダイ
オードブリッジDB2の交流端子間を短絡することによ
って伝送線3の線間を短絡する。これにより、第12図
に示すような、電圧0のゼロクロス信号が端末器へ伝送
される。
The CPU 21 supplies this zero-crossing signal as it is to the zero-crossing signal transmitting circuit 25 when necessary, such as during central activation. In the zero-crossing signal transmission circuit 25, when the zero-crossing signal is input, the analog switch ASI turns off to cut off the voltage signal supply from the CPU 21 to the drive circuit 13, thereby cutting off the signal transmission from the central processing unit to the terminal device. , the photocoupler PCI is driven by a zero-cross signal from the CPU 21 to short-circuit the AC terminals of the diode bridge DB2, thereby short-circuiting the transmission lines 3. As a result, a zero-cross signal of voltage 0 as shown in FIG. 12 is transmitted to the terminal device.

このゼロクロス信号は、従来、端末器において作成され
ていたが、このように、中央処理装置で作成して各端末
器に伝送するようにすれば、ゼロクロス検出回路が1個
で足り、端末器ごとに設ける場合に比べ、システム全体
から見て回路構成の簡略化および低廉化を図ることがで
きる。
Conventionally, this zero-crossing signal was created in the terminal device, but if it were created in the central processing unit and transmitted to each terminal device, one zero-crossing detection circuit would be sufficient, and each terminal device would have a zero-crossing detection circuit. The circuit configuration can be simplified and the cost can be reduced from the viewpoint of the entire system, compared to the case where the circuit is provided in the circuit.

第9図は、第1図の伝送システムにおける端末器5の具
体的回路例を示す。
FIG. 9 shows a specific circuit example of the terminal device 5 in the transmission system of FIG. 1.

同図の端末器は、マイクロプロセッサ(CPU)61に
よってその全体動作を制御するように構成したもので、
第4図の信号処理回路51、同期信号検出回路55およ
びフリップフロ・ノブ回路57に相当する機能はCPU
61の動作プログラムによって実現している。52およ
び53はそれぞれ第4図に示したものと共通の受信回路
および送信回路である。
The terminal shown in the figure is configured so that its entire operation is controlled by a microprocessor (CPU) 61.
The functions corresponding to the signal processing circuit 51, synchronous signal detection circuit 55, and flip-flow knob circuit 57 in FIG.
This is realized using 61 operating programs. 52 and 53 are a receiving circuit and a transmitting circuit, respectively, which are common to those shown in FIG.

また、62はゼロクロス信号受信回路、63は自己アド
レス設定回路、64は中央処理装置または中継器8より
伝送線3へ送出される+24Vの複極パルスを全波整流
して5vの直流出力を発生する直流電源、65はクロッ
ク発生回路である。
Further, 62 is a zero-cross signal receiving circuit, 63 is a self-address setting circuit, and 64 is a full-wave rectifier of the +24V bipolar pulse sent to the transmission line 3 from the central processing unit or repeater 8 to generate a 5V DC output. 65 is a clock generation circuit.

さらに、C51はこの端末器の電源投入時にCPU61
をリセットするためのコンデンサ、DB51は複極(交
流)系である伝送線3と単極(直流)系である送信回路
52およびゼロクロス信号受信回路55とを整合するた
めのダイオードブリッジである。
Furthermore, when the power of this terminal device is turned on, the C51 uses the CPU61
A capacitor DB51 for resetting is a diode bridge for matching the transmission line 3, which is a bipolar (AC) system, with the transmitting circuit 52 and zero-cross signal receiving circuit 55, which are unipolar (DC) systems.

この端末器には必要に応じて様々な負荷装置が単独また
は様々な組ろ合わせで接続されるが、ここでは、91と
してゼロクロス信号を要する負荷装置である調光装置を
、さらに92として監視負荷であるスイッチを例示しで
ある。なお、負荷装置91および92はそれぞれ負荷駆
動部のみが示されている。
Various load devices are connected to this terminal unit as needed, either singly or in various combinations. The following is an example of a switch. Note that in each of the load devices 91 and 92, only the load drive section is shown.

受信回路52は、伝送線3の電圧モードが“0”である
か、“1”であるかに応じてそれぞれ0および5vの信
号を発生し、CPU61に供給する。
The receiving circuit 52 generates signals of 0 and 5 V depending on whether the voltage mode of the transmission line 3 is "0" or "1", respectively, and supplies them to the CPU 61.

送信回路53は、CPU61で作成される端末器から中
央処理装置への伝送信号を供給され、この伝送信号が1
″のときだけ伝送線3の線間に抵抗R51を接続する。
The transmission circuit 53 is supplied with a transmission signal from the terminal device created by the CPU 61 to the central processing unit, and this transmission signal is
'', a resistor R51 is connected between the transmission lines 3.

このとき抵抗R51は電流シンクとなり、抵抗R51を
流れる電流によって第3図(a)に斜線で示すように伝
送線3を流れる電流RPIが変化し、これが中央処理装
置の電流検出回路12(第2図)で検出されることによ
って端末器から中央処理装置への電流モードの信号伝送
が行なわれる。
At this time, the resistor R51 becomes a current sink, and the current flowing through the resistor R51 changes the current RPI flowing through the transmission line 3 as shown by diagonal lines in FIG. Current mode signal transmission from the terminal device to the central processing unit is performed by the detection in FIG.

第12図に示すように、伝送線3の線間電圧は、中央処
理装置からのゼロクロス信号送出時のみ0となり、それ
以外は+24Vまたは一24Vとなっている。すなわち
、ダイオードブリッジD B 51の直流端電圧は、ゼ
ロクロス信号送出時のみ0となり、それ以外では約+2
4Vとなる。ゼロクロス信号受信回路62は、このダイ
オードブリッジDB51の直流端電圧を約175に分圧
する分圧抵抗回路である。
As shown in FIG. 12, the line voltage of the transmission line 3 is 0 only when a zero-cross signal is sent from the central processing unit, and is otherwise +24V or -24V. In other words, the DC terminal voltage of the diode bridge D B 51 becomes 0 only when the zero cross signal is sent, and is approximately +2 at other times.
It becomes 4V. The zero-cross signal receiving circuit 62 is a voltage dividing resistor circuit that divides the DC terminal voltage of this diode bridge DB51 into approximately 175 volts.

CPU61は、ゼロクロス信号受信回路62の出力が約
5vから0となったときそれをゼロクロス信号として検
出する。そして、交流電源の半サイクルごとにこのゼロ
クロス信号と中央処理装置から伝送された制御信号に基
づく位相角で5vのパルスを作成し、調光装置91に供
給する。これにより、調光装置91ではトライアックT
Zが前記制御信号で指定された導通角でオンし、図示し
ない負荷であるランプが調光点灯される。
When the output of the zero-cross signal receiving circuit 62 changes from approximately 5V to 0, the CPU 61 detects it as a zero-cross signal. Then, every half cycle of the AC power supply, a 5V pulse is created with a phase angle based on this zero-cross signal and the control signal transmitted from the central processing unit, and is supplied to the dimming device 91. As a result, in the light control device 91, the triac T
Z is turned on at a conduction angle specified by the control signal, and a lamp, which is a load (not shown), is dimmed and lit.

一方、監視負荷92において、スイッチ5W91〜94
は個別スイッチ、スイッチ5W95は設定スイッチ、ス
イッチ5W9Bは特定スイッチであり、これらのスイッ
チのいずれかが操作されると、CPU61がそれを検出
し、そのオン/オフを示す監視データを作成する。この
監視データは、前述のように電流モードで中央処理装置
に送出される。
On the other hand, in the monitoring load 92, the switches 5W91 to 94
is an individual switch, switch 5W95 is a setting switch, and switch 5W9B is a specific switch. When any of these switches is operated, the CPU 61 detects it and creates monitoring data indicating its on/off status. This monitoring data is sent to the central processing unit in current mode as described above.

個別スイッチ5W91〜94はそれぞれに割付けられた
複数の調光装置91の点灯状態を変更するためのもので
あり、設定スイッチ5W95は個別スイッチ5W91〜
94により変更された点灯パターンを現点灯パターンを
として再設定するためのものである。特定スイッチ5W
96は、端末器から中央処理装置への伝送データの所定
ビットの信号を反転するためのものである。例えば自己
アドレス「0001」の端末器においてこの特定スイッ
チ5W9Bを押下することによって自己アドレスの最上
位ビットを反転させた場合、この端末器から送出される
自己アドレスは、rl 001Jとなる。したがって、
この自己アドレスr0001Jの端末器から自己アドレ
スr1001Jの端末器の設定信号等を送出することか
できる。これにより、センサのような個別スイッチを持
たない端末器のパターン(グループ)割付を中央処理装
置のモードを変えることなく行なうことができる。した
がって処理も簡単である。
The individual switches 5W91 to 5W94 are for changing the lighting state of the plurality of light control devices 91 assigned to each one, and the setting switch 5W95 is for changing the lighting state of the plurality of light control devices 91 assigned to each one, and the setting switch 5W95 is for changing the lighting state of the plurality of light control devices 91 assigned to each one.
This is for resetting the lighting pattern changed by 94 as the current lighting pattern. Specific switch 5W
Reference numeral 96 is for inverting the signal of a predetermined bit of transmission data from the terminal device to the central processing unit. For example, if the most significant bit of the terminal device with its own address "0001" is inverted by pressing this specific switch 5W9B, the terminal device's own address will be rl 001J. therefore,
It is possible to send setting signals and the like to the terminal device having its own address r1001J from the terminal device having its own address r0001J. This makes it possible to assign patterns (groups) to terminal devices that do not have individual switches, such as sensors, without changing the mode of the central processing unit. Therefore, processing is also simple.

次に、第10〜11図のフローチャートを参照しながら
、第1〜9図に示した中央処理装置lおよび端末器5の
動作を説明する。
Next, the operations of the central processing unit 1 and the terminal device 5 shown in FIGS. 1-9 will be explained with reference to the flowcharts shown in FIGS. 10-11.

中央処理装置1および端末器5は、それぞれの電源が投
入されると、それぞれのCPUごとに内蔵された制御プ
ログラムに従って動作を開始する。
When the central processing unit 1 and the terminal device 5 are powered on, they start operating according to a control program built into each CPU.

先ず、CPUに内蔵された各種メモリ、フラグおよびレ
ジスタ等をイニシャライズした後、中央処理装置1は第
10図のフローチャートに示す、そして端末器5は第1
1図のフローチャートに示す、それぞれの無限ループ処
理を実行する。
First, after initializing various memories, flags, registers, etc. built into the CPU, the central processing unit 1 is operated as shown in the flowchart of FIG.
Each infinite loop process shown in the flowchart of FIG. 1 is executed.

A、中央処理装置の動作 第10図を参照して、中央処理装置1は、先ず、ステッ
プ102にて起動データの有無を判定する。
A. Operation of the Central Processing Unit Referring to FIG. 10, the central processing unit 1 first determines the presence or absence of activation data in step 102.

端末器へ送出すべきデータすなわち起動データが有れば
、ステップ104〜142の中央起動(親起動)処理を
実行し、起動データが無ければ、ステップ150〜18
0の通常モード処理を実行する。
If there is data to be sent to the terminal, that is, activation data, the central activation (parent activation) processing of steps 104 to 142 is executed, and if there is no activation data, steps 150 to 18 are executed.
0 normal mode processing is executed.

中央起動処理 中央起動処理時は、先ず、ステップ104にてその起動
データに応じた第12図(2)■〜■に示すような、ス
タート信号ST、送信先端末器アドレスADRおよび制
御信号(起動データ)CNT等からなる伝送データをド
ライブ回路13より電圧モードで伝送線3に送出する。
Central start-up process During the central start-up process, first, in step 104, a start signal ST, a destination terminal address ADR, and a control signal (start-up signal) as shown in FIG. Data) Transmission data consisting of CNTs, etc. is sent from the drive circuit 13 to the transmission line 3 in voltage mode.

この伝送データ送出は、ステップ104の処理を1回経
由するごとに1ビツトずつ行なわれる。次のステップ1
06はこのステップ104の処理が伝送データのビット
数に対応する所定の回数だけ繰り返されたか否かを判定
するためのステップで、ステップ104の処理回数がこ
の所定回数より少なければ処理をステップ104に戻す
。ステップ104の処理が所定回数繰り返され、所定ビ
ット数の電圧モード信号が送出されると、ステップ10
6にて送信終了と判定し、処理を次の、ステップ110
に進める。
This transmission data is sent out one bit each time the process of step 104 is passed through. Next step 1
06 is a step for determining whether the process of step 104 has been repeated a predetermined number of times corresponding to the number of bits of the transmission data. If the number of times of process of step 104 is less than the predetermined number of times, the process returns to step 104. return. When the process of step 104 is repeated a predetermined number of times and a voltage mode signal of a predetermined number of bits is sent out, step 10
In step 6, it is determined that the transmission is completed, and the process proceeds to the next step, step 110.
Proceed to.

ステップ110ではレベル′1”の電圧パルスからなる
同期信号を発生する。続いて、ステップ112では電流
検出回路12の出力を取り込み、ステップ114にて端
末器からの電流モード信号の有無を判定する。前記の各
実施例と同様に、この実施例においても、端末器5は送
出すべきデータの1ビツト(返送信号または端末信号)
が“1゜であれば電流モード信号を送出するが、“0”
であるときは電流モード信号を送出しない。したがって
、ここでは所定時間(例えば600μs)内に電流モー
ドの信号が検出されない場合は前記送出すべきデータの
その所定時間が属する区間に対応する1ビツト(返送信
号)が0°であることを意味し、検出されればそのビッ
ト(返送信号)は“1″であることを意味している。
In step 110, a synchronizing signal consisting of a voltage pulse of level '1'' is generated.Subsequently, in step 112, the output of the current detection circuit 12 is taken in, and in step 114, it is determined whether or not there is a current mode signal from the terminal. Similarly to each of the above embodiments, in this embodiment as well, the terminal device 5 receives one bit (return signal or terminal signal) of the data to be sent.
If it is “1°,” the current mode signal will be sent, but if it is “0”
When , the current mode signal is not sent out. Therefore, here, if a current mode signal is not detected within a predetermined time (for example, 600 μs), it means that one bit (return signal) corresponding to the section of the data to be sent to which the predetermined time belongs is 0°. However, if detected, it means that the bit (return signal) is "1".

ステップ114にて返送信号有りと判定されれば、ステ
ップ118にてドライブ回路13からの送出電圧を反転
した後、返送信号が検出されなければ、ステップ118
をスキップして、すなわちドライブ回路13からの送出
電圧を反転することなく直接ステップ132に処理を進
める。
If it is determined in step 114 that a return signal is present, the sending voltage from the drive circuit 13 is inverted in step 118. If no return signal is detected, step 118
In other words, the process directly proceeds to step 132 without inverting the output voltage from the drive circuit 13.

ステップ132では端末器からの返送が終了したか否か
を判定する。返送データの全部のビットについて同期信
号発生(ステップ110)や返送信号受信(ステップ1
12)の処理が済んでいなければ、返送はまだ終了して
いないのであるからステップ132からステップ110
に戻って、ステップ110〜132の処理を繰り返す。
In step 132, it is determined whether the return from the terminal device has been completed. Synchronization signal generation (step 110) and return signal reception (step 1) for all bits of returned data
If step 12) has not been completed, the return process has not yet been completed, so steps 132 to 110 are completed.
The process returns to step 110 and repeats steps 110 to 132.

一方、返送データのビット数と同じ回数だけ前記ステッ
プ110〜132の処理を実行したときは、ステップ1
32にて端末器からの返送が終了したものと判定し、処
理をステップ136に進める。ステップ136では受信
した返送データの全ビットがa12であったか否かを判
定する。端末器5からの返送信号には少なくとも1個の
“0”レベル信号がマーカービット信号として含まれて
いるから、通常は全ビットが“1“となることはありえ
ない。したがって、全ビットが“1”であったの場合に
は伝送線短絡等の異常があるものと判定し、ステップ1
38にて警報を発する等のエラー処理を実行する。一方
、ステップ136の判定にて少なくとも1個の“0”レ
ベレル信号が受信されていれば、正常動作中と判定し、
処理をステップ136からステップ140に進める。ス
テップ140では返送データが正常なものか否かを判定
する。この判定は、例えば送信した制御信号CNTと同
じ信号を肯定応答ACKとして返送させ、この肯定応答
ACKと自身の送信した制御信号CNTとが一致するか
否かを判定することによって行なうことができる。ある
いは端末器からの返送データの末尾に端末器における送
受信の正常/異常検出結果を示すステータス信号を付加
し、このステータス信号を受信したか否かに応じてステ
ップ140の判定を行なうこともできる。
On the other hand, when the processes of steps 110 to 132 are executed the same number of times as the number of bits of the returned data, step 1
At step 32, it is determined that the return from the terminal device has been completed, and the process proceeds to step 136. In step 136, it is determined whether all bits of the received return data are a12. Since the return signal from the terminal device 5 includes at least one "0" level signal as a marker bit signal, normally it is impossible for all bits to become "1". Therefore, if all bits are "1", it is determined that there is an abnormality such as a short circuit in the transmission line, and step 1
At step 38, error processing such as issuing a warning is executed. On the other hand, if at least one "0" level signal is received in the determination at step 136, it is determined that normal operation is in progress;
Processing proceeds from step 136 to step 140. In step 140, it is determined whether the returned data is normal. This determination can be made, for example, by returning the same signal as the transmitted control signal CNT as an acknowledgment ACK, and determining whether or not this acknowledgment ACK matches the control signal CNT itself transmitted. Alternatively, a status signal indicating the normality/abnormality detection result of transmission/reception in the terminal device may be added to the end of the return data from the terminal device, and the determination in step 140 may be made depending on whether or not this status signal is received.

返送データが正常であれば、ステップ142にて起動デ
ータをクリアする等して起動を解除した後、ステップ1
02に戻る。
If the returned data is normal, the startup is canceled by clearing the startup data in step 142, and then step 1
Return to 02.

一方、返送データが異常であれば、ステップ142をス
キップしてステップ140から直接ステップ102に戻
る。この場合、起動データはそのまま残っているから、
ステップ102にて起動データ有りと判定され、この中
央起動処理が再度実行される。すなわち、起動データが
正常に伝送されるまでこの中央起動処理が繰り返される
On the other hand, if the returned data is abnormal, step 142 is skipped and the process returns directly from step 140 to step 102. In this case, the startup data remains as is, so
It is determined in step 102 that activation data is present, and this central activation process is executed again. That is, this central activation process is repeated until the activation data is successfully transmitted.

通常モード処理 前記ステップ102にて起動データ無しと判定すると、
次にステップ150にて第12図(1)に示すような端
末起動用のスタート信号と最初の同期信号を送信し、ス
テップ154にて端末器から電流モードの起動信号が送
出されたか否かを判定する。この最初のスタート信号に
続く同期信号に対して所定の時間(例えば600μs)
どの端末器からも応答がなければ、端末起動は無かった
のであるから、ステップ102に戻る。
Normal mode processing If it is determined in step 102 that there is no startup data,
Next, in step 150, a start signal and an initial synchronization signal for starting the terminal as shown in FIG. judge. A predetermined time (for example, 600 μs) for the synchronization signal following this first start signal.
If there is no response from any terminal device, there is no terminal activation, and the process returns to step 102.

一方、ステップ154にて第12図(3)に示すような
端末起動信号が検出されると、端末起動有りと判定して
処理をステップ156に進め、ステップ156〜180
の通常モード処理を実行する。
On the other hand, when a terminal activation signal as shown in FIG. 12 (3) is detected in step 154, it is determined that the terminal has been activated, and the process proceeds to step 156, and steps 156 to 180
Executes normal mode processing.

この通常モード処理時は、先ずステップ156にて最初
の同期信号を送出し、続いてステップ158にて電流検
出回路12の出力を取り込む。
During this normal mode processing, first, in step 156, the first synchronization signal is sent out, and then in step 158, the output of the current detection circuit 12 is taken in.

前述のように、この実施例において、所定時間(例えば
600μs)内の電流モード信号無しはその所定時間が
属する区間に対応する端末データの1ビツトが“0”で
あることを意味し、電流モード信号有りはそのビットが
1″であることを意味する。ステップ160では取り込
んだ電流検出回路12の出力を検査する。そして、電流
モード信号が検出されれば、端末データの現タイミング
に対応するビット(端末信号)は“1°であるから、ス
テップ164にてドライブ回路13からの送出電圧を反
転した後、処理を次のステップ180に進める。
As mentioned above, in this embodiment, if there is no current mode signal within a predetermined time (for example, 600 μs), it means that one bit of the terminal data corresponding to the section to which the predetermined time belongs is “0”; The presence of a signal means that the bit is 1''. In step 160, the output of the current detection circuit 12 that has been taken in is inspected. If the current mode signal is detected, the bit corresponding to the current timing of the terminal data is checked. (terminal signal) is "1°," after inverting the output voltage from the drive circuit 13 in step 164, the process proceeds to the next step 180.

一方、ステップ160にて前記所定時間を経過しても端
末信号が受信されなければ、端末データの現タイミング
に対応するビットは“0”であるから、ステップ164
の処理をスキップしてステップ160からそのまま、ス
テップ180に処理を進める。この場合、ドライブ回路
13から伝送線3への送出電圧は反転されない。
On the other hand, if the terminal signal is not received even after the predetermined time has elapsed in step 160, the bit corresponding to the current timing of the terminal data is "0", so step 164
The process skips step 160 and proceeds directly to step 180. In this case, the voltage sent from the drive circuit 13 to the transmission line 3 is not inverted.

ステップ180では端末データの全部のビットに対する
同期信号送出処理(ステップ156)、受信処理(ステ
ップ158)および信号有無判定処理(ステップ160
)等の処理が終了したか否かを判定する。これらの処理
を終了していなければ、処理をステップ156に戻して
前記ステップ156〜180の処理を繰り返す。
Step 180 includes synchronization signal transmission processing (step 156), reception processing (step 158), and signal presence/absence determination processing (step 160) for all bits of terminal data.
) etc. is completed. If these processes have not been completed, the process returns to step 156 and the processes of steps 156 to 180 are repeated.

ステップ156〜180の処理を端末データのビット数
と同じたけ繰り返すと、ステップ180にて受信終了と
判定し、処理をステップ190に進める。ステップ19
0では受信した返送データの全ビットが1″であったか
否かを判定する。
When the processes in steps 156 to 180 are repeated as many times as the number of bits of the terminal data, it is determined in step 180 that reception has ended, and the process proceeds to step 190. Step 19
If it is 0, it is determined whether all bits of the received return data are 1''.

全ビットが“1″であれば伝送線短絡等の異常があるも
のと判定し、ステップ138にて警報を発する等のエラ
ー処理を実行する。一方、ステップ190の判定にて少
なくとも1個の“O“レベレル信号が受信されていれば
、正常動作中と判定し、処理をステップ190からステ
ップ102に戻す。
If all bits are "1", it is determined that there is an abnormality such as a short circuit in the transmission line, and error processing such as issuing a warning is executed in step 138. On the other hand, if it is determined in step 190 that at least one "O" level signal has been received, it is determined that normal operation is in progress, and the process returns from step 190 to step 102.

なお、ステップ136または190の判定がrYEsJ
の場合には、さらに1回または複数回起動を掛けて伝送
状態を検査し、これらステップ136または190の判
定が連続して複数回[YESJとなったときに始めてス
テップ138のエラー処理を行なうようにしてもよい。
Note that the determination in step 136 or 190 is rYEsJ.
In this case, the transmission state is inspected by further activation one or more times, and the error processing at step 138 is performed only when the determination at step 136 or 190 becomes YESJ multiple times in succession. You can also do this.

B、端末器の動作 第11図を参照して、端末器5は、先ずステップ202
にて中央処理装置から電圧モードの中央起動信号が送出
されたか否かを判定する。中央処理装置から第10図ス
テップ104の処理による中央起動信号が送出されてい
れば、処理をステップ204に進め、ステップ204〜
230の返送処理を実行する。一方、送出されていなけ
れば、ステップ250にて起動データの有無を判定する
B. Operation of the terminal device Referring to FIG. 11, the terminal device 5 first performs step 202.
It is determined whether or not a voltage mode central activation signal has been sent from the central processing unit. If the central processing unit has sent out the central activation signal by the process of step 104 in FIG. 10, the process advances to step 204, and steps 204 to
230 is executed. On the other hand, if the data has not been sent, it is determined in step 250 whether or not there is activation data.

中央処理装置へ送出すべきデータすなわち起動データが
あれば、ステップ256〜280の循環処理からなる端
末起動(子起動)処理を実行する。
If there is data to be sent to the central processing unit, that is, activation data, terminal activation (child activation) processing consisting of cyclic processing of steps 256 to 280 is executed.

ステップ202にて中央起動信号が送出されておらず、
かつ自身から中央処理装置に送出する端末データも無け
れば、最初のステップ202に戻る。
In step 202, the central activation signal is not sent;
If there is no terminal data to be sent from itself to the central processing unit, the process returns to the first step 202.

返送処理 返送処理時は、ステップ204およびステップ206の
循環処理にて受信回路52の出力に基づき中央処理装置
から送出される(第10図のステップ104〜106)
電圧モードの伝送データをこの循環処理の1回ごとに1
ビツトずつ受信する。
Return processing During return processing, data is sent from the central processing unit based on the output of the receiving circuit 52 in the circular processing of steps 204 and 206 (steps 104 to 106 in FIG. 10).
The transmission data in voltage mode is
Receive bit by bit.

そして、所定ビット数の受信を終了すると、ステップ2
06からステップ210に進み、ステップ210にてこ
の受信された伝送データ中のアドレスデータが自己アド
レスと一致するか否かを判定する。なお、伝送方式がチ
エツクサム方式でない場合、この判定はステップ202
の段階でアドレスデータを受信して行なってもよい。上
記ステップ210の判定にてアドレスが一致すればこの
ステップ210からステップ216に進み、不一致であ
ればステップ202に戻る。
Then, when the reception of a predetermined number of bits is completed, step 2
The process proceeds from step 06 to step 210, and in step 210 it is determined whether the address data in the received transmission data matches the own address. Note that if the transmission method is not the checksum method, this determination is made in step 202.
This may be done by receiving the address data at the step. If the addresses match as determined in step 210, the process proceeds from step 210 to step 216, and if they do not match, the process returns to step 202.

ステップ216では同期信号が受信されるまで待機する
。同期信号を受信すると、続くステップ222にて所定
時間(例えば50μs)待機した後、ステップ224に
て返送データの1ビツト(返送信号)を送信回路53か
ら伝送線3へ電流モードで送出する。この電流モードの
返送信号は中央処理装置によって受信され(第10図ス
テップ112)、これにより中央処理装置からの送出電
圧モードが反転される(同ステップ118)。
Step 216 waits until a synchronization signal is received. When the synchronization signal is received, the process waits for a predetermined time (for example, 50 μs) in the subsequent step 222, and then, in step 224, one bit of return data (return signal) is sent from the transmission circuit 53 to the transmission line 3 in current mode. This current mode return signal is received by the central processing unit (step 112 in FIG. 10), which inverts the output voltage mode from the central processing unit (step 118 in FIG. 10).

次に、ステップ226にて返送信号が“1″であったか
否かを判定する。“1”であれば処理をステップ228
に進め、“0”であれば処理をステップ230に進める
Next, in step 226, it is determined whether the return signal is "1". If “1”, process step 228
If it is "0", the process advances to step 230.

ステップ228では伝送線3の電圧モード信号を受信し
てこの受信信号が直前に送出した返送信号と内容的に一
致するか否かを判定する。一致していれば、ステップ2
24で送出した返送信号が中央処理装置で受信されて伝
送線の電圧モードが反転されたのであるから、そのビッ
トの伝送は正常に行なわれたことになる。このように各
端末器において、監視データについては“1”レベルの
返送信号のみ伝送チエツクを行ない、“0″レベルの返
送信号は伝送チエツクを行なわないようにすることによ
って、複数個の端末器を同一アドレスに設定することが
できる。このようにすることにより、例えばスイッチの
オン/オフ情報は、1ビット信号で足りるから、異なる
端末器に接続された複数のスイッチを同一アドレスのビ
ット対応で割付けすることができ、1つの端末器で1つ
のアドレスが占有される場合のような負荷割付けされな
いビットが生じるという無駄を無くすることができる。
In step 228, the voltage mode signal of the transmission line 3 is received, and it is determined whether or not this received signal matches the return signal sent immediately before. If they match, step 2
Since the return signal sent out at step 24 was received by the central processing unit and the voltage mode of the transmission line was inverted, the transmission of that bit was performed normally. In this way, each terminal device checks the transmission of only the "1" level return signal for monitoring data, and does not check the transmission of the "0" level return signal, thereby making it possible to transmit multiple terminals. Can be set to the same address. By doing this, for example, a 1-bit signal is sufficient for switch on/off information, so multiple switches connected to different terminals can be assigned corresponding to the bits of the same address, and one terminal This eliminates the waste of bits that are not assigned a load, such as when one address is occupied.

また、同数の負荷に対する端末器の数を減すことができ
、ランダム伝送における衝突の頻度が減少する等、応答
速度の向上を図ることができる。
Furthermore, the number of terminals for the same number of loads can be reduced, and the frequency of collisions in random transmission can be reduced, thereby improving response speed.

ステップ230では返送信号の全ビットの正常な送出が
終了したか否かを判定する。自己アドレス、監視データ
およびマーカービット信号を含む返送データの全部のビ
ットについての返送が終了していなければステップ21
6に戻って、次のビット(返送信号)について前記ステ
ップ216〜230の処理を繰り返す。一方、全部のビ
ットについての返送が終了していれば返送処理を終了し
てステップ202に戻る。
In step 230, it is determined whether all bits of the return signal have been successfully transmitted. If all bits of the return data including the self address, monitoring data and marker bit signal have not been returned yet, step 21
Returning to step 6, the processes of steps 216 to 230 are repeated for the next bit (return signal). On the other hand, if all bits have been returned, the return processing is completed and the process returns to step 202.

前記ステップ228にて返送信号と受信信号が内容的に
一致しなければ、返送データのそのビット(返送信号)
は中央処理装置に正しく受信されなかったのであるから
、ステップ228から直接ステップ202に戻る。この
場合、中央処理装置においては所定ビット数の返送デー
タが得られない(第10図ステップ140)。このため
、起動解除(同ステップ142)処理がスキップされ、
再度中央起動処理が実行される。したがって、端末器は
これに対して再度返送処理を実行することになり、結局
、返送データの正常な伝送が行なわれるまで、中央処理
装置の中央起動処理とこれに対する端末器の返送処理が
繰り返されることになる。
If the returned signal and the received signal do not match in content in step 228, that bit of the returned data (returned signal)
was not correctly received by the central processing unit, the process returns directly from step 228 to step 202. In this case, the central processing unit cannot obtain return data of a predetermined number of bits (step 140 in FIG. 10). Therefore, the startup cancellation process (step 142) is skipped.
Central startup processing is executed again. Therefore, the terminal device has to perform the return process again in response to this, and the central activation process of the central processing unit and the corresponding return process of the terminal device are repeated until the return data is transmitted normally. It turns out.

端末起動処理 この端末起動処理時は、ステップ256にて中央処理装
置の第10図ステップ150またはステップ156の処
理にて送出される同期信号の受信を待機する。この同期
信号を受信すると、続くステップ258にて所定時間(
例えば50μs)待機した後、ステップ260にて端末
データの1ビツト(端末信号)を送信回路53から伝送
線3へ電流モードで送出する。この電流モードの端末信
号は中央処理装置によって受信され(第10図ステップ
160)、中央処理装置から伝送線への送出電圧モード
が反転される(同ステップ164)。
Terminal Start-up Process During the terminal start-up process, in step 256, the CPU waits for reception of a synchronization signal sent out in the process of step 150 or step 156 in FIG. 10 of the central processing unit. When this synchronization signal is received, the process proceeds to step 258 for a predetermined period of time (
After waiting for 50 μs, for example, in step 260, one bit of terminal data (terminal signal) is sent from the transmitting circuit 53 to the transmission line 3 in current mode. This current mode terminal signal is received by the central processing unit (step 160 in FIG. 10), and the voltage mode sent from the central processing unit to the transmission line is inverted (step 164).

次に、ステップ262にて端末信号が自己アドレス中の
1ビツトであったか否かを判定する。自己アドレスであ
れば処理をステップ262に進め、自己アドレスでなけ
れば処理をステップ264に進める。ステップ264で
は端末信号が“1′であったか否かを判定する。“1°
であれば処理をステップ268に進め、“0″であれば
処理をステップ270に進める。
Next, in step 262, it is determined whether the terminal signal is 1 bit in the self address. If it is the self address, the process proceeds to step 262, and if it is not the self address, the process proceeds to step 264. In step 264, it is determined whether the terminal signal is "1".
If so, the process proceeds to step 268, and if it is "0", the process proceeds to step 270.

ステップ268では伝送線3の電圧モード信号を受信し
てこの受信信号が直前に送出した端末信号と内容的に一
致するか否かを判定する。一致していれば、ステップ2
60で送出した端末信号が中央処理装置で受信されて伝
送線の電圧モードが反転されたのであるから、端末デー
タのそのビットの伝送は正常に行なわれたことになる。
In step 268, the voltage mode signal of the transmission line 3 is received, and it is determined whether this received signal matches the terminal signal sent immediately before. If they match, step 2
Since the terminal signal sent out at 60 was received by the central processing unit and the voltage mode of the transmission line was inverted, it means that the transmission of that bit of the terminal data was carried out normally.

次のステップ270では自己アドレス、監視データおよ
びマーカービット信号を含む端末信号の全ビットの正常
な送出が終了したか否かを判定する。全部のビットにつ
いての端末信号送出が終了していなければステップ25
6に戻って、端末データの次のビット(端末信号)につ
いて前記ステップ256〜270の処理を繰り返す。一
方、全部のビットについての信号送出が終了していれば
この端末起動処理を終了してステップ202に戻る。
In the next step 270, it is determined whether normal transmission of all bits of the terminal signal including the self address, monitoring data, and marker bit signal has been completed. If terminal signal transmission for all bits has not been completed, step 25
Returning to step 6, the processes of steps 256 to 270 are repeated for the next bit of terminal data (terminal signal). On the other hand, if signal transmission for all bits has been completed, this terminal activation process is completed and the process returns to step 202.

一方、ステップ260にて送信した電流モード信号とス
テップ268にて検査した電圧モード信号との内容が異
なる場合には、端末器から送出された電流モード信号が
中央処理装置に正しく受信されなかったと判定し、前記
循環処理をステップ268で中断してステップ202に
戻る。この場合、端末器の起動データはそのまま残って
いるから、中央処理装置から端末起動用スタート信号が
送出され(第10図ステップ150)、処理がステップ
202からステップ250に進められたとき、このステ
ップ250にて起動データ有りと判定され、この端末起
動処理が再度実行される。すなわち、起動データが中央
起動処理へ正常に伝送されるまでこの端末起動処理が繰
り返される。
On the other hand, if the contents of the current mode signal transmitted in step 260 and the voltage mode signal inspected in step 268 are different, it is determined that the current mode signal sent from the terminal was not correctly received by the central processing unit. Then, the cyclic processing is interrupted in step 268 and the process returns to step 202. In this case, the startup data for the terminal device remains as is, so when the central processing unit sends a start signal for terminal startup (step 150 in FIG. 10) and the process advances from step 202 to step 250, this step At step 250, it is determined that activation data is present, and this terminal activation process is executed again. That is, this terminal activation process is repeated until the activation data is normally transmitted to the central activation process.

[発明の適用例] なお、上述においては、中央処理装置側からは電圧モー
ド信号で、端末器側からは電流モード信号で信号伝送す
る信号伝送システムにこの発明を適用した例について説
明したが、この発明の方式は、相互に電圧モードで信号
伝送する場合にも適用可能である。但し、この場合には
端末器からレベル“1“のマーカービット信号を送出し
、中央処理装置においては、この“1″が検出されない
ことに基づいて伝送線の短絡を検出することができる。
[Application Example of the Invention] In the above description, an example has been described in which the present invention is applied to a signal transmission system in which a voltage mode signal is transmitted from the central processing unit side and a current mode signal is transmitted from the terminal device side. The method of the present invention is also applicable to mutual signal transmission in voltage mode. However, in this case, a marker bit signal of level "1" is sent from the terminal, and the central processing unit can detect a short circuit in the transmission line based on the fact that this "1" is not detected.

また、この発明は、前記特公昭61−3155号に開示
されたような端末器からの電流モード信号を電圧信号に
変換しないシステムにも適用可能である。
The present invention is also applicable to a system that does not convert a current mode signal from a terminal into a voltage signal, such as that disclosed in Japanese Patent Publication No. 61-3155.

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

第1図は、この発明の一実施例に係る遠隔制御システム
の全体構成を示すブロック図、第2図は、第1図のシス
テムにおける中央処理装置の機能ブロック図、 第3図は、第1図のシステムの伝送信号フォーマット説
明図、 第4図は、第1図のシステムにおける端末器の機能ブロ
ック図、 第5図は、第1図のシステムにおける中継器の機能ブロ
ック図、 第6図は、第1図のシステムにおける中継器の動作説明
のためのタイミングチャート、第7図は、第1図のシス
テムにおける中継器の動作説明のためのフローチャート
、 第8図は、第2図の中央処理装置の具体例を示す回路図
、 第9図は、第4図の端末器の具体例を示す回路図、 第10図は、第8図の中央処理装置の動作を示すフロー
チャート、 第11図は、第9図の端末器の動作を示すフローチャー
ト、そして 第12図は、第1図の装置における伝送信号の動作モー
ド別詳細フォーマットである。 1:中央処理装置 3:伝送線 5−1. 5−2. 5−3.・・・:端末器8:中継
器 9:負荷装置 11.51:信号処理回路 12:電流検出回路 15:微分回路 16:立ち上がり検出回路 18゜ 19゜ 20゜ 21゜ PI PV 55:同期回路 57:フリップフロツブ回路 53:送信回路 61.71:CPU :電流モード信号 :電圧モード信号
FIG. 1 is a block diagram showing the overall configuration of a remote control system according to an embodiment of the present invention, FIG. 2 is a functional block diagram of a central processing unit in the system of FIG. 1, and FIG. FIG. 4 is a functional block diagram of the terminal device in the system of FIG. 1. FIG. 5 is a functional block diagram of the repeater in the system of FIG. 1. , a timing chart for explaining the operation of the repeater in the system of FIG. 1, FIG. 7 is a flowchart for explaining the operation of the repeater in the system of FIG. 1, and FIG. 8 is a timing chart for explaining the operation of the repeater in the system of FIG. 9 is a circuit diagram showing a specific example of the terminal device in FIG. 4; FIG. 10 is a flowchart showing the operation of the central processing unit in FIG. 8; FIG. 11 is a circuit diagram showing a specific example of the terminal device in FIG. , FIG. 9 is a flowchart showing the operation of the terminal device, and FIG. 12 is a detailed format for each operation mode of the transmission signal in the device of FIG. 1. 1: Central processing unit 3: Transmission line 5-1. 5-2. 5-3. ...: Terminal 8: Repeater 9: Load device 11.51: Signal processing circuit 12: Current detection circuit 15: Differential circuit 16: Rise detection circuit 18゜19゜20゜21゜PI PV 55: Synchronous circuit 57 :Flip-flop circuit 53:Transmission circuit 61.71:CPU:Current mode signal:Voltage mode signal

Claims (1)

【特許請求の範囲】 中央処理装置と複数の端末器とを2線伝送線を介して接
続してなる信号伝送システムにおいて、 前記端末器は、該端末器からの送信データ中に常に“0
”または“1”のうち所定の値となるビットを含ませる
信号処理手段を備えたことを特徴とする信号伝送システ
ム。
[Claims] In a signal transmission system in which a central processing unit and a plurality of terminal devices are connected via a two-wire transmission line, the terminal device always transmits “0” in data transmitted from the terminal device.
1. A signal transmission system comprising: a signal processing means that includes a bit having a predetermined value among "1" and "1".
JP1017683A 1989-01-30 1989-01-30 Signal transmission system Pending JPH02200095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1017683A JPH02200095A (en) 1989-01-30 1989-01-30 Signal transmission system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1017683A JPH02200095A (en) 1989-01-30 1989-01-30 Signal transmission system

Publications (1)

Publication Number Publication Date
JPH02200095A true JPH02200095A (en) 1990-08-08

Family

ID=11950635

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1017683A Pending JPH02200095A (en) 1989-01-30 1989-01-30 Signal transmission system

Country Status (1)

Country Link
JP (1) JPH02200095A (en)

Similar Documents

Publication Publication Date Title
EP1062845A1 (en) Apparatus for and method of transmitting and receiving data over a low voltage power distribution system
JP2002016621A (en) Control/supervisory signal transmitting system
EP0390035A2 (en) Illumination control apparatus
JP2000501275A (en) Energy monitoring and control method for performing reverse transmission on AC line
JP4567153B2 (en) Two-wire remote control system and two-wire display device
US7116962B2 (en) Two-wire power transmitting/receiving device and its method
JP2753915B2 (en) Communication control device
JPH08265308A (en) Method and device for fully bidirectional communication and programmable controller using the same
JPH02200095A (en) Signal transmission system
JPH02200096A (en) Signal transmission system
JPH02200097A (en) Remote control system
JPH07105802B2 (en) Signal transmission system
JPH04216297A (en) Power line communication system
JPH02210935A (en) Signal transmission system
JPH03117244A (en) Transmission system
JPH05292565A (en) Information transmitter
KR0142220B1 (en) Power line transmission system of remote group and dimming control signal for electronics ballast
JPH0265547A (en) Signal transmission system
JPH02260844A (en) Signal transmission system
JPH03203433A (en) Signal transmission equipment
JPH03285428A (en) Signal transmission system
JPH0659054B2 (en) Data transmission device
JPH03203435A (en) Signal transmission equipment
JPH0450781B2 (en)
CN113672540A (en) Two-bus system