JPH07105802B2 - Signal transmission system - Google Patents
Signal transmission systemInfo
- Publication number
- JPH07105802B2 JPH07105802B2 JP63328815A JP32881588A JPH07105802B2 JP H07105802 B2 JPH07105802 B2 JP H07105802B2 JP 63328815 A JP63328815 A JP 63328815A JP 32881588 A JP32881588 A JP 32881588A JP H07105802 B2 JPH07105802 B2 JP H07105802B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- transmission
- processing unit
- return
- central processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Small-Scale Networks (AREA)
- Selective Calling Equipment (AREA)
- Bidirectional Digital Transmission (AREA)
- Dc Digital Transmission (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] この発明は、中央処理装置と複数の端末器とを1対の伝
送線で接続し、中央処理装置から端末器へのアドレス信
号、制御信号等の伝送信号を電圧モードで送出し、端末
器から中央処理装置への監視データ等を電流モードで送
出する信号伝送システムに関し、特に中央処理装置にお
いて端末器に接続された負荷を監視制御する遠隔制御用
として好適な信号伝送システムに関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention connects a central processing unit and a plurality of terminals with a pair of transmission lines, and an address signal and a control signal from the central processing unit to the terminals. The present invention relates to a signal transmission system for transmitting a transmission signal such as a voltage signal in a voltage mode and transmitting monitoring data from a terminal device to a central processing unit in a current mode. The present invention relates to a signal transmission system suitable for control.
[従来の技術] 従来、遠隔制御用の信号伝送システムとして、中央処理
装置と複数の端末器とを1対の伝送線により接続し、中
央処理装置より端末器へアドレス信号用および制御信号
用の短パルスと監視信号用の長パルスとを伝送し、各端
末器において適宜限流抵抗とスイッチ要素との直列回路
を伝送線に並列的に接続して監視信号用長パルスの伝送
期間中に監視内容に応じてスイッチ要素を開閉し、この
開閉動作による伝送線の電流変化を中央処理装置で検出
するものが知られている(特公昭61−3155号)。[Prior Art] Conventionally, as a signal transmission system for remote control, a central processing unit and a plurality of terminals are connected by a pair of transmission lines, and the central processing unit sends the address signals and the control signals to the terminals. Short pulse and long pulse for supervisory signal are transmitted, and a series circuit of current limiting resistor and switch element is connected in parallel to the transmission line in each terminal device as appropriate to monitor during transmission of long pulse for supervisory signal. It is known that a switch element is opened / closed according to the contents and a change in current of a transmission line due to this opening / closing operation is detected by a central processing unit (Japanese Patent Publication No. 61-3155).
[発明が解決しようとする課題] ところで、この従来の信号伝送システムのように、端末
器でシンクする電流を変化させる電流モードで端末器か
ら中央処理装置への信号伝送を行なう場合、中央処理装
置では検出抵抗等により電流を電圧に変換して検出する
ことができる。しかし、この信号電流は発信元端末器と
中央処理装置との間にしか流れないため、発信元端末器
と中央処理装置との間以外の位置ではこの監視信号等を
検出できない。[Problems to be Solved by the Invention] By the way, when signal transmission from a terminal unit to a central processing unit is performed in a current mode in which a current sinked in the terminal unit is changed like this conventional signal transmission system, the central processing unit is used. Then, it is possible to detect the current by converting it into a voltage by a detection resistor or the like. However, since this signal current flows only between the source terminal unit and the central processing unit, the monitoring signal and the like cannot be detected at a position other than between the source terminal unit and the central processing unit.
したがって、この従来の信号伝送システムは、端末器か
ら送出される監視信号等を検出して負荷の状態監視表示
を行なう監視表示盤を接続する際、全部の端末器の監視
信号等を検出するためには、この監視表示盤をどの端末
器より前段(中央処理装置寄り)に接続しなければなら
ず、監視表示盤の設置位置が限定され、実用性に欠ける
という不都合があった。Therefore, this conventional signal transmission system detects the monitoring signals of all the terminals when connecting the monitoring display panel that detects the monitoring signals sent from the terminals and displays the load status monitoring. However, this monitor display panel has to be connected to the preceding stage (closer to the central processing unit) than any terminal device, and the installation position of the monitor display panel is limited, which is not practical.
また、中央処理装置で端末器からの電流モードの監視デ
ータ等を検出し、監視表示盤の表示を制御する信号に変
換して送信することにより、監視表示装置を伝送線上の
任意の位置に接続することを可能にすることもできる。
しかし、この場合、監視表示盤を制御する時間だけ伝送
スピードが遅くなり、かつ中央処理装置の負担が大きく
なるという不都合があった。The central processing unit detects the current mode monitoring data from the terminal, converts it to a signal that controls the display on the monitoring display panel, and sends it to connect the monitoring display unit to any position on the transmission line. It can also be made possible.
However, in this case, there are inconveniences that the transmission speed is reduced by the time for controlling the monitor display panel and the load on the central processing unit is increased.
さらに、この従来の信号伝送システムにおいては、各端
末器が、より後段の端末器の信号しか検出できず、各端
末器が全て他の端末器の信号を検出できるようにするこ
とはできない。このため、この従来の信号伝送システム
は、ランダム伝送で端末器から起動をかけようとする
(子起動の)場合に、その起動端末器はより前段の端末
器からの送出信号の有無、すなわち伝送線の占有や起動
の衝突を判別することができず、ランダム伝送には適さ
ないという不都合があった。Further, in this conventional signal transmission system, each terminal device can detect only the signal of the terminal device in the later stage, and it is not possible for each terminal device to detect the signals of all the other terminal devices. For this reason, in this conventional signal transmission system, when the terminal device tries to activate it by random transmission (child activation), the activation terminal device determines whether or not there is a transmission signal from the terminal device in the preceding stage, that is, transmission. There is an inconvenience that it is not suitable for random transmission because it is not possible to discriminate line occupancy and activation collision.
また、親起動(中央起動)の場合でも、返送した端末器
(子機)が、返送データを中央処理装置(親機)が正し
く受け取ったことを確認するためには中央処理装置から
のアンサー信号を受け取る必要があり、この分、伝送ス
ピードが低下するという不都合があった。Even in the case of parent activation (central activation), in order to confirm that the returned terminal device (slave device) has correctly received the returned data, the central processing unit (parent device) can receive an answer signal from the central processing unit. Therefore, there is a disadvantage that the transmission speed is reduced by this amount.
この発明は、このような従来例における問題点に鑑みて
なされたもので、監視表示盤を伝送線の任意の位置に接
続することができ、好適なランダム伝送を実現すること
ができ、かつ伝送スピードの速い信号伝送システムを提
供することを目的とする。The present invention has been made in view of the above problems in the conventional example, and it is possible to connect the monitor display panel to an arbitrary position of the transmission line, realize suitable random transmission, and perform transmission. It is an object to provide a high-speed signal transmission system.
[課題を解決するための手段] 上述の目的を達成するため、請求項1記載の信号伝送シ
ステムでは、制御情報および制御対象を特定するアドレ
ス情報を含む電圧モードの伝送信号を時分割して伝送線
を介して送出する送信手段と、伝送線を介して入力した
電流モードの伝送信号の変化を検出する電流検出手段、
および電流検出手段が電流モードの伝送信号の変化を検
出したときに送信手段から送出する伝送信号の極性を反
転させる電圧反転手段と設けた中央処理装置と;伝送線
に接続され、電流モードの伝送信号を時分割して中央処
理装置に送出する複数の端末器と;を備えたことを特徴
とする。[Means for Solving the Problems] In order to achieve the above object, in the signal transmission system according to claim 1, a voltage mode transmission signal including control information and address information for specifying a control target is transmitted in a time division manner. Transmitting means for sending out via a wire, and current detecting means for detecting a change in a current mode transmission signal input via a transmission line,
And voltage inverting means for inverting the polarity of the transmission signal sent from the transmitting means when the current detecting means detects a change in the current mode transmission signal, and a central processing unit provided therewith; connected to the transmission line and transmitting in the current mode And a plurality of terminals for time-divisionally transmitting the signal to the central processing unit.
また、請求項2記載の発明では、請求項1記載の信号伝
送システムに付加して、表示盤を備えたことを特徴とす
る。The invention according to claim 2 is characterized in that a display board is provided in addition to the signal transmission system according to claim 1.
請求項3記載の発明では、制御情報、制御対象を特定す
るアドレス情報、制御対象からの返送信号を要求する返
送要求信号および返送信号の送出タイミングを示す同期
信号を含む電圧モードの伝送信号を時分割して伝送線を
介して送出する送信手段と、伝送線を介して入力した電
流モードの返送信号の変化を検出する電流検出手段、お
よび電流検出手段が電流モードの返送信号の変化を検出
したときに送信手段から送出する伝送信号の極性を反応
させる電圧反転手段と設けた中央処理装置と;伝送線に
接続され、返送要求信号に応答した電流モードの返送信
号を時分割して中央処理装置に送出する複数の端末器
と;を備えたことを特徴とする。According to the third aspect of the present invention, the voltage mode transmission signal including the control information, the address information for specifying the control target, the return request signal requesting the return signal from the control target, and the synchronization signal indicating the transmission timing of the return signal is transmitted. Transmitting means for dividing and transmitting through the transmission line, current detecting means for detecting a change in current mode return signal input through the transmission line, and current detecting means detected a change in current mode return signal A central processing unit provided with voltage inverting means for reacting the polarity of a transmission signal sent from the transmitting means; and a central processing unit connected to a transmission line and time-sharing a current mode return signal in response to a return request signal. And a plurality of terminals for sending to the terminal.
請求項4記載の信号伝送システムは、請求項3記載のも
のにおいて、電圧検出手段は、端末器から同期信号に同
期して返送された電流モードの返送信号の変化を検出し
たとき、同期信号から所定時間送らせて伝送信号の極性
を反転させるように構成されていることを特徴とする。According to a fourth aspect of the present invention, in the signal transmission system according to the third aspect, when the voltage detecting means detects a change in the current mode return signal returned from the terminal device in synchronization with the synchronization signal, the voltage detection means detects the change from the synchronization signal. It is characterized in that it is configured such that it is sent for a predetermined time and the polarity of the transmission signal is inverted.
請求項5記載の信号伝送システムは、請求項3記載のも
のにおいて、電圧反転手段は、端末器から同期信号に同
期して返送された電流モードの返送信号の変化を検出し
たとき、電流モードの返送信号の立ち上がりにより伝送
信号の極性を反転させるように構成されていることを特
徴とする。According to a fifth aspect of the present invention, in the signal transmission system according to the third aspect, the voltage inverting means is in the current mode when the change in the current mode return signal returned from the terminal device in synchronization with the synchronization signal is detected. It is characterized in that the polarity of the transmission signal is inverted when the return signal rises.
請求項6記載の発明は、制御情報、制御対象を特定する
アドレス情報、制御対象からの返送信号を要求する返送
要求信号および返送信号の送出タイミングを示す同期信
号を含む電圧モードの伝送信号を時分割して伝送線を介
して送出する送信手段と、伝送線を介して入力した電流
モードの返送信号の有無を検出する電流検出手段、およ
び電流検出手段が電流モードの搬送信号の有りを検出し
たときに、返送信号の終了後送信手段から送出する伝送
信号の極性を反転させる電圧反転手段と設けた中央処理
装置と;伝送線に接続され、返送要求信号に応答した電
流モードの返送信号を時分割して中央処理装置に送出す
る複数の端末器と;を備えたことを特徴とする。According to a sixth aspect of the present invention, there is provided a voltage mode transmission signal including control information, address information for specifying a control target, a return request signal requesting a return signal from the control target, and a synchronization signal indicating a transmission timing of the return signal. The transmission means for dividing and sending out via the transmission line, the current detection means for detecting the presence or absence of the current mode return signal input via the transmission line, and the current detection means detected the presence of the current mode carrier signal. And a central processing unit provided with voltage inverting means for inverting the polarity of the transmission signal sent from the transmitting means after the completion of the return signal; and a current mode return signal connected to the transmission line and responding to the return request signal. A plurality of terminal units for dividing and sending to the central processing unit;
[作 用] 請求項1および2記載の発明において、中央処理装置
は、制御情報および制御対象を特定するアドレス情報を
含む電圧モードの伝送信号を時分割して伝送線を介して
端末器に送出する。また、制御対象の端末器は、電流モ
ードの伝送信号を時分割して中央処理装置に送出する。
そして、この電流モードの伝送信号を入力する中央処理
装置の電圧反転手段は、電流モードの伝送信号の変化を
検出したときに伝送信号の極性を反転させて送出する。
したがって、伝送線に対する端末器の接続位置に拘らず
に他の端末器の信号を検出することができるようにな
る。また、端末器から送出された伝送信号に対応した特
別のアンサー信号の送受信が不要となるため、伝送速度
の低下を誘発することがない。[Operation] In the inventions according to claims 1 and 2, the central processing unit time-divisionally transmits a voltage-mode transmission signal including control information and address information for specifying a control target to the terminal device through the transmission line. To do. In addition, the terminal device to be controlled time-divisionally transmits the current mode transmission signal to the central processing unit.
Then, the voltage inverting means of the central processing unit for inputting the current mode transmission signal inverts the polarity of the transmission signal and sends out when the change of the current mode transmission signal is detected.
Therefore, it becomes possible to detect the signal of another terminal regardless of the connection position of the terminal to the transmission line. In addition, since it is not necessary to send and receive a special answer signal corresponding to the transmission signal sent from the terminal device, a decrease in transmission rate is not induced.
さらに請求項2記載の発明においては、伝送線に接続さ
れた表示盤は、中央処理装置から送出された電圧モード
の伝送信号を受信して伝送内容を表示する。Further, in the invention of claim 2, the display panel connected to the transmission line receives the voltage mode transmission signal sent from the central processing unit and displays the transmission contents.
また、請求項3〜6記載の発明において、中央処理装置
は、制御情報、制御対象を特定するアドレス情報、制御
対象からの返送信号を要求する返送要求信号および返送
信号の送出タイミングを示す同期信号を含む電圧モード
の伝送信号を時分割して伝送線を介して端末器に送出す
る。また、制御対象の端末器は、中央処理装置から送出
された同期信号に応じたタイミングで、返送要求信号に
応答した電流モードの返送信号を時分割して伝送線を介
して中央処理装置に送出する。そして、この電流モード
の返送信号を中央処理装置が入力すると、その電圧反転
手段は、電流モードの返送信号の変化または返送信号の
有検出に応じて伝送信号の極性を反転させて送出する。
したがって、伝送線に対する端末器の接続位置に拘らず
に他の端末器の信号を検出することができるようにな
る。また、端末器から送出された伝送信号に対応した特
別のアンサー信号の送受信が不要となるため、伝送速度
の低下を発することがない。さらに、端末器からの返送
信号の伝送タイミングは同期信号に基づき決定されるた
め、伝送のタイミング合わせが容易になる。Further, in the inventions according to claims 3 to 6, the central processing unit has control information, address information for specifying a control target, a return request signal for requesting a return signal from the control target, and a synchronization signal indicating a transmission timing of the return signal. The voltage-mode transmission signal including the signal is time-divisionally sent to the terminal device via the transmission line. Also, the terminal device to be controlled sends the current mode return signal in response to the return request signal to the central processing unit via the transmission line at a timing corresponding to the synchronization signal sent from the central processing unit. To do. Then, when the central processing unit inputs this current mode return signal, the voltage inverting means inverts the polarity of the transmission signal according to the change of the current mode return signal or the detection of the presence of the return signal, and sends it out.
Therefore, it becomes possible to detect the signal of another terminal regardless of the connection position of the terminal to the transmission line. Further, since it is not necessary to send and receive a special answer signal corresponding to the transmission signal sent from the terminal device, the transmission speed is not lowered. Furthermore, since the transmission timing of the return signal from the terminal device is determined based on the synchronization signal, the transmission timing can be easily adjusted.
[実施例] 以下、図面を用いて、本発明の実施例を詳細に説明す
る。Embodiments Embodiments of the present invention will be described in detail below with reference to the drawings.
[第1の実施例] 第1図は、この発明の第1の実施例に係る信号伝送シス
テムの概略の構成を示す。同図のシステムは、親機とし
ての中央処理装置1、この中央処理装置1に1対の伝送
線3を介して接続された子機としての複数の端末器5
(5−1,5−2,5−3,…)および監視表示盤7等を備えて
いる。各端末器5−1,5−2,5−3,…には、それぞれ図示
しない負荷、例えば照明器具、壁スイッチ、照度センサ
等が接続されている。[First Embodiment] FIG. 1 shows a schematic configuration of a signal transmission system according to a first embodiment of the present invention. The system shown in the figure includes a central processing unit 1 as a master unit and a plurality of terminal units 5 as slave units connected to the central processing unit 1 through a pair of transmission lines 3.
(5-1, 5-2, 5-3, ...) And the monitor display panel 7 and the like. A load (not shown) such as a lighting fixture, a wall switch, an illuminance sensor, etc. is connected to each of the terminals 5-1, 5-2, 5-3 ,.
第2図に、中央処理装置1のブロック構成図を示す。同
図に示すように、中央処理装置1は、信号処理回路11、
端末器からの電流モード信号を検出する手段である電流
検出回路12および伝送線3に伝送信号を送出する送信手
段を構成するドライブ回路13を備えている。さらに、中
央処理装置1は、電流検出回路12の出力電圧が変化する
ごとに微分出力を発生する微分回路と、この微分出力で
反転するフリップフロップ回路19を備えている。なお、
この中央処理装置には、さらに、データ入力用のキーボ
ードおよびスイッチ類またはセンサ類、ならびに各種表
示用の表示装置、例えばCRT等が必要に応じて設けられ
る。FIG. 2 shows a block diagram of the central processing unit 1. As shown in the figure, the central processing unit 1 includes a signal processing circuit 11,
It is provided with a current detection circuit 12 which is a means for detecting a current mode signal from the terminal and a drive circuit 13 which constitutes a transmission means for transmitting a transmission signal to the transmission line 3. Further, the central processing unit 1 includes a differentiating circuit that generates a differential output each time the output voltage of the current detection circuit 12 changes, and a flip-flop circuit 19 that inverts the differential output. In addition,
The central processing unit is further provided with a keyboard and switches for data input or sensors, and a display device for various displays, such as a CRT, if necessary.
信号処理回路11は、所定のシーケンスに従って前記キー
ボードやスイッチ、センサ等からデータを取り込んだ
り、各端末器の監視データを収集し、これらのデータに
基づいて制御信号を作成したり、前記表示装置に表示す
る。また、この制御信号等からなる伝送用電圧信号を作
成する。従来の中央処理装置においては、この電圧信号
がそのままドライブ回路13に入力され、伝送信号として
伝送線3に送出されていたため、この伝送用電圧信号の
フォーマットは、第3図(a)に示す従来システムにお
ける中央処理装置からの伝送信号フォーマットと同じで
ある。The signal processing circuit 11 captures data from the keyboard, switch, sensor, etc. according to a predetermined sequence, collects monitoring data of each terminal device, creates a control signal based on these data, and displays in the display device. indicate. In addition, a transmission voltage signal including the control signal and the like is created. In the conventional central processing unit, this voltage signal is directly input to the drive circuit 13 and sent out to the transmission line 3 as a transmission signal. Therefore, the format of this transmission voltage signal is as shown in FIG. 3 (a). It is the same as the transmission signal format from the central processing unit in the system.
第3図(a)を参照して、この伝送用電圧信号すなわち
従来システムにおける伝送信号は、“1"レベルの長パル
ス信号からなるスタート信号STと、所要ビット数の1/2
の数の“1"レベル短パルス群からなり送信先端末器のア
ドレスADRおよび制御信号CNT等の伝送データを示す送信
信号ADR/CNTと、“1"レベルの長パルス信号からなり送
信先端末器からの監視データ等の返送待機期間を示す返
送期間信号RTM等で構成されている。前記の送信信号ADR
/CNTは、順次連続する各“1"レベル部分と“0"レベル部
分がそれぞれ1ビットのデータを表わしており、“1"ま
たは“0"レベル部分が短かいものはデータ“0"を示し、
長いものは“1"を示している。Referring to FIG. 3 (a), this transmission voltage signal, that is, the transmission signal in the conventional system, includes a start signal ST consisting of a long pulse signal of "1" level and half the required number of bits.
The number of “1” level short pulse groups and the transmission signal ADR / CNT indicating the transmission data such as the address ADR of the destination terminal and the control signal CNT, and the long pulse signal of “1” level It is composed of a return period signal RTM and the like indicating a return waiting period of the monitoring data and the like from. Transmission signal ADR
In / CNT, each successive "1" level part and "0" level part represents 1-bit data, and a short "1" or "0" level part indicates data "0". ,
The long one indicates "1".
第2図に戻って、電流検出回路12は、伝送線3を介して
中央処理装置1と端末器との間に流れる電流(第3図
(a)に斜線で示すような監視データ等の電流モード信
号)を電圧に変換する。Returning to FIG. 2, the current detection circuit 12 causes the current flowing between the central processing unit 1 and the terminal device via the transmission line 3 (current such as monitoring data as indicated by hatching in FIG. 3A). Mode signal) to voltage.
ドライブ回路13は、入力信号に応じた複極信号で伝送線
3を駆動するもので、例えば入力信号が“1"レベルであ
れば伝送線を+24Vにプルアップし、“0"レベルであれ
ば−22Vにプルダウンする。従来の中央処理装置におい
ては信号処理回路11の信号電圧出力をそのままドライブ
回路13へ入力していたのに対し、この実施例では、第3
図(b)に示すようにスタート信号STおよび制御対象を
特定するアドレス情報および制御情報を含む送信信号AD
R/CNTはそのまま送出するが、返送期間に信号処理回路1
1から出力される返送期間信号RTMはフリップフロップ回
路19で加工されて送出される。このフリップフロップ回
路19は前述のドライブ回路13とともに、この実施例の中
央処理装置の送信手段である送信回路20を構成してい
る。The drive circuit 13 drives the transmission line 3 with a bipolar signal corresponding to the input signal. For example, if the input signal is "1" level, the transmission line is pulled up to + 24V, and if it is "0" level. Pull down to -22V. In the conventional central processing unit, the signal voltage output of the signal processing circuit 11 is directly input to the drive circuit 13, but in this embodiment, the third
A transmission signal AD including a start signal ST and address information for specifying a control target and control information as shown in FIG.
R / CNT is sent as it is, but during the return period, signal processing circuit 1
The return period signal RTM output from 1 is processed by the flip-flop circuit 19 and sent out. The flip-flop circuit 19 constitutes the transmission circuit 20 which is the transmission means of the central processing unit of this embodiment together with the drive circuit 13 described above.
また、微分回路15は、電流検出回路12の出力電圧を微分
することにより、端末器から送出される電流モードの伝
送信号の変化を検出するもので、電流検出回路12ととも
に本実施例における電流検出手段を構成している。Further, the differentiating circuit 15 detects a change in the current mode transmission signal sent from the terminal by differentiating the output voltage of the current detecting circuit 12, and the current detecting circuit 12 and the current detecting circuit in the present embodiment. Constitutes a means.
フリップフロップ(F/F)回路19は、本実施例において
電圧反転手段を構成するもので、その電圧出力が信号処
理回路11から出力される電圧信号の立ち上がりで立ち上
がり、立ち下がりで立ち下がるとともに、電流検出手段
を構成する微分回路15の微分出力をトリガとしてステア
リング動作して、その出力を反転させる。すなわち、フ
ロップフロップ回路19は、信号処理回路11の出力変化に
従って変化する電圧をドライブ回路13に送出し、信号処
理回路11の出力が一定の状態では電流検出回路12で検出
される電流モード信号が変化するごとに反転する電圧を
ドライブ回路13に送出する。The flip-flop (F / F) circuit 19 constitutes the voltage inverting means in this embodiment, and its voltage output rises at the rising edge of the voltage signal output from the signal processing circuit 11 and falls at the falling edge, The differential output of the differentiating circuit 15 constituting the current detecting means is used as a trigger to perform a steering operation to invert the output. That is, the flop-flop circuit 19 sends a voltage that changes according to the output change of the signal processing circuit 11 to the drive circuit 13, and when the output of the signal processing circuit 11 is constant, the current mode signal detected by the current detection circuit 12 is A voltage that is inverted each time it changes is sent to the drive circuit 13.
このフリップフロップ回路19の出力電圧に応じてドライ
ブ回路13が伝送線3を駆動することによって、第3図
(a)(b)に示すように、スタート信号STおよび送信
信号ADR/CNTは信号処理装置11からの出力波形と同形の
電圧モード信号で伝送線3に送出されるとともに、前記
返送期間においては、端末器からの電流モード返送信号
RPIに応じた電圧モード信号RPVが伝送線3に送出され
る。The drive circuit 13 drives the transmission line 3 in accordance with the output voltage of the flip-flop circuit 19, so that the start signal ST and the transmission signal ADR / CNT are processed as shown in FIGS. 3 (a) and 3 (b). A voltage mode signal having the same shape as the output waveform from the device 11 is sent to the transmission line 3 and, during the returning period, a current mode returning signal from the terminal device.
The voltage mode signal RPV corresponding to RPI is sent to the transmission line 3.
すなわち、第1図の伝送システムにおいては、前記返送
期間中、端末器5からの電流モード信号が中央処理装置
1で電圧モード信号に変換されて伝送線3に送出され
る。このため、監視表示盤7は、この電圧モード信号に
よって、自身より後段に接続された端末器5−3以降の
端末器については勿論のこと、前段に接続された端末器
5−1,5−2からの電流モード信号についてもその内容
を判別することができる。したがって、このシステムに
おいては、監視表示盤7を伝送線3の任意の場所に接続
することができる。また、いずれの端末器もこの電圧モ
ード信号によって全ての端末器の信号送出状態を判別す
ることができる。つまり、いずれの各端末器も自身で伝
送線3のあき具合や信号衝突の有無を判定できる。した
がって、このシステムによれば、中央処理装置の負担を
重くすることなく、衝突が少なく、ランダム式本来の伝
送スピードが速いという特徴を生かしたランダム伝送方
式を実現することができる。さらに、各端末器は、電流
モード信号を送出したときは、中央処理装置がこの電流
モード信号から変換した電圧モード信号を判別すること
により、この電流モード信号が中央処理装置によって受
け取られたことを確認することができる。したがって、
中央処理装置からのアンサー信号が不要であり、伝送方
式によらず、伝送スピードの高速化を図ることができ
る。That is, in the transmission system of FIG. 1, during the return period, the current mode signal from the terminal 5 is converted into the voltage mode signal by the central processing unit 1 and sent to the transmission line 3. For this reason, the monitor display panel 7 is not limited to the terminals 5-3 and the terminals connected after it by the voltage mode signal, but also the terminals 5-1, 5- The contents of the current mode signal from 2 can also be determined. Therefore, in this system, the monitor display panel 7 can be connected to any place of the transmission line 3. Further, any of the terminals can determine the signal transmission state of all the terminals based on this voltage mode signal. That is, each of the terminals can determine the openness of the transmission line 3 and the presence / absence of a signal collision by itself. Therefore, according to this system, it is possible to realize a random transmission system that makes use of the features that there are few collisions and the original transmission speed of the random system is high without increasing the load on the central processing unit. Furthermore, when each terminal sends out the current mode signal, the central processing unit discriminates the voltage mode signal converted from the current mode signal to thereby confirm that the current mode signal is received by the central processing unit. You can check. Therefore,
The answer signal from the central processing unit is unnecessary, and the transmission speed can be increased regardless of the transmission method.
第4図は、第1図の伝送システムにおける端末器5の機
能ブロック図を示す。この端末器5は、信号処理回路5
1、受信回路52および送信回路53等を具備する。信号処
理回路51には単数または複数の負荷9が接続されてい
る。FIG. 4 shows a functional block diagram of the terminal 5 in the transmission system of FIG. This terminal device 5 includes a signal processing circuit 5
1, a receiving circuit 52, a transmitting circuit 53 and the like. A single or a plurality of loads 9 are connected to the signal processing circuit 51.
受信回路52は、中央処理装置1から伝送線3に送出され
る電圧モード信号を受信する。信号処理回路51は、所定
のシーケンスに従って動作し、受信回路52で受信された
電圧モード信号に含まれた制御信号等を受け取ってこの
制御信号等に基づく負荷駆動信号の負荷9に供給した
り、負荷9が監視負荷であればその監視信号を検出して
監視データを作成し、前記制御信号等に従ってこの監視
データを送信回路53に出力する。送信回路53は、信号処
理回路51から出力される監視データに応じて伝送線の線
間に抵抗を接続し、この端末器5におけるシンク電流値
を変化させる。これにより、前記監視データが電流モー
ド信号として伝送線3に送出される。中央処理装置のド
ライブ回路の出力インピーダンスが低い場合、この電流
モード信号による伝送線3の線間電圧の変化は殆どない
が、第3図(a)の斜線部RPIは、この電流モード信号
を模式的に示している。The receiving circuit 52 receives the voltage mode signal sent from the central processing unit 1 to the transmission line 3. The signal processing circuit 51 operates according to a predetermined sequence, receives a control signal or the like included in the voltage mode signal received by the receiving circuit 52, and supplies the load drive signal based on the control signal or the like to the load 9. 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 transmission circuit 53 according to the control signal and the like. The transmission circuit 53 connects a resistor between the transmission lines according to the monitoring data output from the signal processing circuit 51, and changes the sink current value in the terminal device 5. As a result, the monitoring data is sent to the transmission line 3 as a current mode signal. When the output impedance of the drive circuit of the central processing unit 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) shows this current mode signal as a model. It is shown in the figure.
第5図は、第1図の伝送システムにおける監視表示盤7
の機能ブロック図を示す。この監視表示盤7は、信号処
理回路71、受信回路72および表示部73等を具備する。FIG. 5 shows the monitor display panel 7 in the transmission system shown in FIG.
The functional block diagram of is shown. The monitor display board 7 includes a signal processing circuit 71, a receiving circuit 72, a display unit 73 and the like.
受信回路72は中央処理装置1から伝送線3に送出される
電圧モード信号を受信する。信号処理回路71は、所定の
シーケンスに従って動作し、受信回路72の出力に基づい
て、前記端末器から送出される電流モード信号を中央処
理装置で変換した電圧モード信号より監視データ等を判
別し、表示部73にこの監視データに応じた表示用信号を
送出する。表示部73は、LED、ランプ、LEDアレイ、LCD
またはCRT等の表示素子とこれらの表示素子を駆動する
ための駆動回路とからなり、信号処理回路71から入力さ
れる表示用信号に従って負荷等の状態をこれらの表示素
子を点滅し、あるいはこれらの表示素子に線、図形、文
字等を現わすことによって表示する。The receiving circuit 72 receives the voltage mode signal sent from the central processing unit 1 to the transmission line 3. The signal processing circuit 71 operates according to a predetermined sequence, and based on the output of the receiving circuit 72, determines monitoring data and the like from the voltage mode signal obtained by converting the current mode signal sent from the terminal device by the central processing unit, A display signal corresponding to the monitoring data is sent to the display unit 73. The display unit 73 is an LED, a lamp, an LED array, or an LCD.
Alternatively, a display element such as a CRT and a drive circuit for driving these display elements are provided, and the state of a load or the like blinks these display elements according to a display signal input from the signal processing circuit 71, or these Display is made by showing lines, figures, characters, etc. on the display element.
第6図は、第1図の伝送システムにおける中央処理装置
1の具体的回路例を示す。FIG. 6 shows a concrete circuit example of the central processing unit 1 in the transmission system of FIG.
同図の中央処理装置回路は、マイクロプロセッサ(CP
U)21によってその全体動作を制御するように構成した
もので、第2図の信号処理回路11、微分回路15およびフ
リップフロップ回路19に相当する機能はCPU21の動作プ
ログラムによって実現している。The central processing unit circuit in the figure is a microprocessor (CP
U) 21 controls the entire operation, and the functions corresponding to the signal processing circuit 11, the differentiating circuit 15 and the flip-flop circuit 19 in FIG. 2 are realized by the operation program of the CPU 21.
同図の中央処理装置は、さらに、電流検出回路12のアナ
ログ出力をCPU21が処理可能なディジタルデータに変換
して供給するためのA/Dコンバータ22、交流電源より例
えばドライブ回路13の出力段用の+26Vと−24Vおよびこ
の出力段以外の回路用の+5Vの直流電圧を発生する直流
電源23、交流電源のゼロクロスを検出するゼロクロス検
出回路24、ゼロクロス信号を伝送線3に送出するための
ゼロクロス信号送出回路25、CPU21の駆動クロックを発
生する発振回路26、CPU21を初期状態に設定するための
リセット回路27を具備している。The central processing unit of the same 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 supplying the digital data. + 26V and -24V, and a DC power supply 23 that generates a DC voltage of + 5V for circuits other than this output stage, a zero-cross detection circuit 24 that detects the zero-cross of the AC power supply, a zero-cross signal for sending the zero-cross signal to the transmission line It is provided with a sending circuit 25, an oscillating circuit 26 for generating a drive clock for the CPU 21, and a reset circuit 27 for setting the CPU 21 to an initial state.
中央処理装置から端末器へ伝送信号を送出する場合、CP
U21は、第3図(b)に示す波形と相似の、但し“0"レ
ベルが0Vで、“1"レベルが5Vの電圧信号をドライブ回路
13に供給する。ドライブ回路13は、CPU21からの電圧信
号に従って“0"レベルが−22Vで、“1"レベルが+24V
の、第3図(b)に示すような波形の電圧モード信号を
伝送線3に送出する。When sending the transmission signal from the central processing unit to the terminal, CP
U21 is a drive circuit that is similar to the waveform shown in FIG. 3 (b), except that the "0" level is 0V and the "1" level is 5V.
Supply to 13. The drive circuit 13 has a "0" level of -22V and a "1" level of + 24V according to the voltage signal from the CPU 21.
The voltage mode signal having the waveform as shown in FIG. 3B is sent to the transmission line 3.
ゼロクロス検出回路24は、交流電源のゼロクロスを検出
し、“1"レベルのゼロクロス信号をCPU21に入力する。
この検出回路24においては、例えばAC100Vの交流電源を
絶縁トランスT1を介してダイオードブリッジDB1に供給
し、このダイオードブリッジDB1からの全波整流出力を
トランジスタTr1のベースに印加して超C級増幅するこ
とにより、この全波整流出力が0Vであるとき、すなわち
交流電源のゼロクロスするタイミングでトランジスタTr
1のコレクタに5Vのゼロクロス信号を発生する。The zero-cross detection circuit 24 detects the zero-cross of the AC power source and inputs the “1” level zero-cross signal to the CPU 21.
In the detection circuit 24, for example, an AC 100V AC power source is supplied to the diode bridge DB1 via the insulating transformer T1, and the full-wave rectified output from the diode bridge DB1 is applied to the base of the transistor Tr1 for super-C class amplification. Therefore, when this full-wave rectified output is 0V, that is, at the zero-cross timing of the AC power supply, the transistor Tr
Generates a 5V zero-cross signal on the collector of 1.
CPU21は、このゼロクロス信号を、中央起動時等の必要
時であればそのままゼロクロス信号送信回路25に供給す
る。ゼロクロス信号送信回路25においては、ゼロクロス
信号入力時アナログスイッチAS1がオフすることによっ
てCPU21からドライブ回路13への電圧信号供給を遮断
し、これにより中央処理装置から端末器への信号伝送を
遮断するとともに、CPU21からのゼロクロス信号により
フォトカプラPC1を駆動してダイオードブリッジDB2の交
流端子間を短絡することによって伝送線3の線間を短絡
する。これにより、電圧0のゼロクロス信号が端末器へ
伝送される。The CPU 21 supplies this zero-cross signal to the zero-cross signal transmission circuit 25 as it is, when necessary such as at the time of central activation. In the zero-cross signal transmission circuit 25, when the zero-cross signal is input, the analog switch AS1 is turned 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 zero-cross signal from the CPU 21 drives the photocoupler PC1 to short-circuit the AC terminals of the diode bridge DB2, thereby short-circuiting the transmission lines 3. As a result, the zero-cross signal of voltage 0 is transmitted to the terminal.
このゼロクロス信号は、従来、端末器において作成され
ていたが、このように、中央処理装置で作成して各端末
器に伝送するようにすれば、ゼロクロス検出回路が1個
で足り、端末器ごとに設ける場合に比べ、システム全体
から見て回路構成の簡略化および低廉化を図ることがで
きる。Conventionally, this zero-cross signal was created in the terminal device, but if it is created in the central processing unit and transmitted to each terminal device in this way, one zero-cross detection circuit is sufficient and each terminal device is In comparison with the case of providing the same in the above, the circuit configuration can be simplified and the cost can be reduced as viewed from the whole system.
第7図は、第1図の伝送システムにおける端末器5の具
体的回路例を示す。FIG. 7 shows a specific circuit example of the terminal 5 in the transmission system of FIG.
同図において、61は第4図の信号処理回路51に対応する
マイクロプロセッサ(CPU)であり、52および53はそれ
ぞれ第4図に示したものと共通の受信回路および送信回
路である。In the figure, 61 is a microprocessor (CPU) corresponding to the signal processing circuit 51 of FIG. 4, and 52 and 53 are a receiving circuit and a transmitting circuit common to those shown in FIG. 4, respectively.
また、62はゼロクロス信号受信回路、63は自己アドレス
設定回路、64は交流電源より5Vの直流出力を発生する直
流電源、65はクロック発生回路である。さらに、C51は
この端末器の電源投入時にCPU61をリセットするための
コンデンサ、DB51は複極(交流)系である伝送線3と単
極(直流)系である送信回路52およびゼロクロス信号受
信回路55との整合するためのダイオードブリッジであ
る。Further, 62 is a zero-cross signal receiving circuit, 63 is a self-address setting circuit, 64 is a DC power supply for generating a DC output of 5V from an AC power supply, and 65 is a clock generation circuit. Further, C51 is a capacitor for resetting the CPU 61 when the terminal device is powered on, and DB51 is a transmission line 3 which is a multi-pole (AC) system and a transmission circuit 52 and a zero-cross signal reception circuit 55 which are a single pole (DC) system. It is a diode bridge for matching with.
この端末器には必要に応じて様々な負荷装置が単独また
は様々な組み合わせで接続されるが、ここでは、91とし
てゼロクロス信号を要しない負荷装置を、92としてゼロ
クロス信号を要する負荷装置である調光装置を、さらに
93として監視負荷であるスイッチを例示してある。な
お、負荷装置91および92はそれぞれ負荷駆動部のみが示
されている。Various load devices are connected to this terminal device singly or in various combinations, but here, a load device that does not require a zero-cross signal as 91 and a load device that requires a zero-cross signal as 92 are adjusted. Optical device,
A switch that is a monitoring load is illustrated as 93. It should be noted that only the load driving section is shown for each of the load devices 91 and 92.
受信回路52は、伝送線3の電圧モードが“0"であるか、
“1"であるかに応じてそれぞれ0および5Vの信号を発生
し、CPU61に供給する。送信回路53は、CPU61で作成され
る端末器から中央処理装置への伝送信号を供給され、こ
の伝送信号が“1"のときだけ伝送線3の線間に抵抗R51
を接続する。このとき抵抗R51は電流シンクとなり、抵
抗R51を流れる電流によって第3図(a)に斜線で示す
ように伝送線3を流れる電流RPIが変化し、これが中央
処理装置の電流検出回路12(第2図)で検出されること
によって端末器から中央処理装置への電流モードの信号
伝送が行なわれる。The receiving circuit 52 determines whether the voltage mode of the transmission line 3 is “0”,
Depending on whether it is "1", 0 and 5V signals are generated and supplied to the CPU 61. 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 the resistor R51 is provided between the transmission lines 3 only when the transmission signal is "1".
Connect. At this time, the resistor R51 serves as a current sink, and the current flowing through the resistor R51 changes the current RPI flowing through the transmission line 3 as shown by the shaded area in FIG. 3 (a), which is the current detection circuit 12 (second circuit) of the central processing unit. The current mode signal transmission from the terminal unit to the central processing unit is carried out by the detection in FIG.
前述のように、伝送線3の線間電圧は、中央処理装置か
らのゼロクロス信号送出時のみ0となり、それ以外は+
24Vまたは−22Vとなっている。すなわち、ダイオードブ
リッジDB51の直流端電圧は、ゼロクロス信号送出時のみ
0なり、それ以外では約+24Vまたは+22Vとなる。ゼロ
クロス信号受信回路55は、このダイオードブリッジDB51
の直流端電圧を約1/5に分圧する分圧抵抗回路である。As described above, the line voltage of the transmission line 3 becomes 0 only when the zero-cross signal is transmitted from the central processing unit, and otherwise +.
It is 24V or -22V. That is, the DC end voltage of the diode bridge DB51 becomes 0 only when the zero-cross signal is transmitted, and otherwise becomes about + 24V or + 22V. The zero-cross signal receiving circuit 55 uses this diode bridge DB51.
It is a voltage dividing resistor circuit that divides the DC end voltage of to about 1/5.
CPU61は、ゼロクロス信号受信回路62の出力が約5Vから
0となったときそれをゼロクロス信号として検出する。
そして、交流電源の半サイクルごとにこのゼロクロス信
号と中央処理装置から伝送された制御信号に基づく位相
角で5Vのパルスを作成し、調光装置92に供給する。これ
により、調光装置92ではトライアックTZが前記制御信号
で指定された導通角でオンし、図示しない負荷であるラ
ンプが調光点灯される。When the output of the zero-cross signal receiving circuit 62 changes from about 5V to 0, the CPU 61 detects it as a zero-cross signal.
Then, for each half cycle of the AC power supply, a pulse of 5V is created with a phase angle based on the zero-cross signal and the control signal transmitted from the central processing unit, and the pulse is supplied to the dimmer 92. As a result, in the light control device 92, the triac TZ is turned on at the conduction angle designated by the control signal, and the lamp, which is a load (not shown), is dimmed.
一方、監視負荷93において、スイッチSW93が操作される
と、CPU61がそれを検出し、そのオン/オフを示す監視
データを作成する。この監視データは、前述のように電
流モードで中央処理装置に送出される。On the other hand, in the monitoring load 93, when the switch SW93 is operated, the CPU 61 detects it and creates monitoring data indicating ON / OFF thereof. This monitoring data is sent to the central processing unit in current mode as described above.
第8図は、第1図の伝送システムにおける監視表示盤7
の具体的回路例を示す。FIG. 8 is a monitor display panel 7 in the transmission system of FIG.
The concrete circuit example of is shown.
同図において、71は第5図の信号処理回路71に対応する
マイクロプロセッサ(CPU)、72および73はそれぞれ第
5図に示したものと共通の受信回路および表示部であ
る。In the figure, 71 is a microprocessor (CPU) corresponding to the signal processing circuit 71 of FIG. 5, and 72 and 73 are a receiving circuit and a display unit common to those shown in FIG. 5, respectively.
また、75は交流電源より5Vの直流出力を発生する直流電
源、76はクロック発生回路、C71はこの監視表示装置の
電源投入時にCPU71をリセットするためのコンデンサで
ある。Further, 75 is a DC power supply that generates a 5V DC output from the AC power supply, 76 is a clock generation circuit, and C71 is a capacitor for resetting the CPU 71 when the power supply of this monitor display device is turned on.
受信回路72は、伝送線3の電圧モードが“0"であるか
“1"であるかに応じてそれぞれ0および5Vの受信信号を
発生し、CPU71に供給する。表示部73は、CPU71の出力端
子OUT71〜7nのそれぞれに対応する表示素子(発光ダイ
オード)LED71〜7nとこれを駆動するためのトランジス
タTr71〜7n等により構成されており、CPU71が前記受信
信号に基づいて5Vの駆動信号を発生した出力端子OUT7x
に接続されたトランジスタTr7xがオンすることによって
LED7xが点灯し、表示がなされる。The reception circuit 72 generates reception signals of 0 and 5 V depending on whether the voltage mode of the transmission line 3 is “0” or “1” and supplies the reception signals to the CPU 71. The display unit 73 is composed of display elements (light emitting diodes) LEDs 71 to 7n corresponding to the output terminals OUT71 to 7n of the CPU 71 and transistors Tr71 to 7n for driving the LEDs, etc. Output terminal OUT7x that generated a drive signal of 5V based on
By turning on the transistor Tr7x connected to
LED7x lights up and a display is made.
次に、第9〜11図のフローチャートを参照しながら、第
1図および第6〜8図に示される構成のシステムの動作
を説明する。Next, the operation of the system having the configuration shown in FIGS. 1 and 6 to 8 will be described with reference to the flowcharts of FIGS.
中央処理装置1、端末器5および監視表示盤7は、それ
ぞれ自身の電源が投入されると、それぞれのCPUごとに
内蔵された制御プログラムに従って動作を開始する。ま
ず、CPU内に内蔵された各種メモリおよびレジスタ等を
イニシャライズし、その後、それぞれ第9〜11図のフロ
ーチャートに示す無限ループ処理を実行する。The central processing unit 1, the terminal unit 5 and the monitor display panel 7 start to operate according to the control programs contained in the respective CPUs when their own power supplies are turned on. First, various memories, registers, etc. built in the CPU are initialized, and thereafter, the infinite loop processing shown in the flowcharts of FIGS. 9 to 11 is executed.
A.中央処理装置の動作 第9図を参照して、中央処理装置1は、先ず、ステップ
102にて起動データの有無を判定する。端末器へ送出す
べきデータすなわち起動データが有れば、ステップ104
〜142の中央起動(親起動)処理を実行し、起動データ
が無ければ、ステップ150〜180の通常モード処理を実行
する。A. Operation of central processing unit Referring to FIG.
At 102, the presence or absence of start data is determined. If there is data to be sent to the terminal, that is, activation data, step 104
~ 142 central activation (parent activation) processing is executed, and if there is no activation data, normal mode processing of steps 150 to 180 is executed.
中央起動処理 中央起動処理時は、先ず、ステップ104にて第3図
(b)に示すようなスタート信号ST、送信先端末器アド
レスADRおよび制御信号(起動データ)CNT等からなる伝
送データをドライブ回路13より電圧モードで伝送線3に
送出する。この伝送データ送出は、ステップ104の処理
を1回経由するごとに1ビットずつ行なわれる。次のス
テップ106は、このステップ104の処理が伝送データのビ
ット数に対応する所定の回数だけ繰り返されたか否かを
判定するためのステップで、ステップ104の処理回数が
この所定回数より少なければ処理をステップ104に戻
す。ステップ104の処理が所定回数繰り返され、所定ビ
ット数の電圧モード信号が送出されると、ステップ106
にて送信終了と判定し、処理を次のステップ112に進め
る。Central start-up processing In the central start-up processing, first, in step 104, the transmission data including the start signal ST, the destination terminal address ADR, the control signal (starting data) CNT, etc. as shown in FIG. 3 (b) is driven. The voltage is sent from the circuit 13 to the transmission line 3 in the voltage mode. This transmission of the transmission data is performed one bit each time the processing of step 104 is passed once. The next step 106 is a step for determining whether or not the process of step 104 has been repeated a predetermined number of times corresponding to the number of bits of transmission data. If the number of processes of step 104 is less than the predetermined number of times, the process is performed. To step 104. 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 transmitted, step 106 is performed.
Then, it is determined that the transmission is completed, and the process proceeds to the next step 112.
ステップ112では電流検出回路12の出力を取り込み、ス
テップ114にて端末器からの電流モード信号の有無を判
定する。この実施例では所定時間(例えば600μS)内
に電流モードの信号が検出されない場合はその所定時間
の属する区間に対応する返送データの1ビット(返送信
号)が“0"であることを意味し、検出されればそのビッ
ト(返送信号)は“1"であることを意味している。At step 112, the output of the current detection circuit 12 is fetched, and at step 114, the presence or absence of the current mode signal from the terminal is judged. In this embodiment, when the current mode signal is not detected within a predetermined time (for example, 600 μS), it means that 1 bit (return signal) of the return data corresponding to the section to which the predetermined time belongs is “0”, If detected, it means that the bit (return signal) is "1".
ステップ114にて返送信号有りと判定されれば、ステッ
プ118にてドライブ回路13からの送出電圧を反転し、ス
テップ122にてその返送信号が検出されなくまで待機
し、ステップ124にて送出電圧を再度反転して元の電圧
モードに戻した後、ステップ132に処理を進める。これ
らのステップ118〜124の処理により電流モード返送信号
の“1"が電圧モード返送信号の“0"に変換される。If it is determined in step 114 that the return signal is present, the output voltage from the drive circuit 13 is inverted in step 118, the process waits until the return signal is not detected in step 122, and the output voltage is set in step 124. After reversing and returning to the original voltage mode, the process proceeds to step 132. By the processing of these steps 118 to 124, "1" of the current mode return signal is converted to "0" of the voltage mode return signal.
一方、返送信号が検出されなければ、ステップ118〜124
をスキップしてステップ114から直接ステップ132に処理
を進める。この場合、電流モード信号は“0"であり、電
圧モード信号は“1"のままであるから、やはり、電流モ
ード信号が電圧モード信号に変換されたと同じことにな
る。On the other hand, if no return signal is detected, steps 118-124
And skips step 114 and proceeds directly to step 132. In this case, since the current mode signal is “0” and the voltage mode signal remains “1”, it is the same as the current mode signal being converted into the voltage mode signal.
ステップ132では端末器からの返送が終了したか否かを
判定する。返送データの全部のビットについて前記電流
モード信号から電圧モード信号への変換処理が終了して
いなければ、返送は終了していないのであるからステッ
プ132からステップ112に戻って、ステップ112〜132の処
理を繰り返す。In step 132, it is determined whether the return from the terminal has been completed. If the conversion process from the current mode signal to the voltage mode signal is not completed for all the bits of the return data, the return is not completed, so the process returns from step 132 to step 112, and the processes of steps 112 to 132 are performed. repeat.
一方、返送データのビット数と同じ回数だけ前記ステッ
プ112〜132の処理を実行したときは、ステップ132にて
端末器からの返送が終了したものと判定し、処理をステ
ップ140に進める。ステップ140では返送データが正常な
ものか否かを判定する。この判定は、例えば送信した制
御信号CNTと同じ信号を肯定応答ACKとして返送させ、こ
の肯定応答と自身の送信した制御信号CNTとが一致する
か否かを判定することによって行なうことができる。On the other hand, when the processes in steps 112 to 132 have been executed the same number of times as the number of bits of the return data, it is determined in step 132 that the return from the terminal device is completed, and the process proceeds to step 140. In step 140, it is determined whether the returned data is normal. This determination can be performed, for example, by returning the same signal as the transmitted control signal CNT as an acknowledgment ACK, and determining whether or not this acknowledgment and the control signal CNT transmitted by itself match.
返送データが正常であれば、返送データの伝送が正常に
実施されたのであるからステップ142にて起動データを
クリアする等して起動を解除した後、ステップ102に戻
る。If the return data is normal, it means that the transmission of the return data has been normally performed, so that the start data is cleared in step 142 to cancel the start, and the process returns to step 102.
一方、返送データが異常であれば、ステップ142をスキ
ップしてステップ140から直接ステップ102に戻る。この
場合、起動データはそのまま残っているから、ステップ
102にて起動データ有りと判定され、この中央起動処理
が再度実行される。すなわち、起動データが正常に伝送
されるまでこの中央起動処理が繰り返される。On the other hand, if the return data is abnormal, step 142 is skipped and step 140 directly returns to step 102. In this case, the startup data remains as is, so step
At 102, it is determined that there is start data, and the central start process is executed again. That is, this central activation process is repeated until the activation data is normally transmitted.
通常モード処理 前記ステップ102にて起動データ無しと判定すると、次
にステップ150にて端末起動用のスタート信号を送信
し、ステップ154にて端末器から電流モードの起動信号
が送出された否かを判定する。この端末起動用スタート
信号に対して所定の時間(例えば数mS)どの端末器から
も応答がなければ、端末起動は無かったのであるから、
ステップ102に戻る。Normal Mode Processing If it is determined in step 102 that there is no start data, then in step 150 a start signal for terminal start is transmitted, and in step 154 it is determined whether or not a current mode start signal is sent from the terminal device. judge. If there is no response from this terminal activation start signal for a predetermined time (for example, several mS) from any terminal device, there was no terminal activation.
Return to step 102.
一方、ステップ154にて端末起動信号が検出されると、
端末起動有りと判定して処理をステップ158に進め、ス
テップ158〜180の通常モード処理を実行する。On the other hand, when the terminal activation signal is detected in step 154,
When it is determined that the terminal has been activated, the process proceeds to step 158, and the normal mode process of steps 158 to 180 is executed.
この通常モード処理時は、先ずステップ158にて端末器
から送出される電流モード信号を受信する。During the normal mode processing, first, at step 158, the current mode signal sent from the terminal is received.
この実施例では、前述のように、所定時間(例えば600
μS)内の電流モード信号無しはその所定時間が属する
区間に対応する端末データの1ビットが“0"であること
を意味し、電流モード信号有りはそのビットが“1"であ
ることを意味する。ステップ160では電流検出回路12の
出力を検査する。そして、電流モード信号が検出されれ
ば、端末データの現タイミングに対応するビット(伝送
信号)は“1"であるから、ステップ164にてドライブ回
路13からの送出電圧を反転し、ステップ170にてその電
流モード信号が検出されなくなるまで待機し、ステップ
172にてドライブ回路13からの送出電圧を再度反転して
伝送線の電圧モードを元に戻した後、処理を次のステッ
プ180に進める。In this embodiment, as described above, the predetermined time (for example, 600
No current mode signal in μS) means that one bit of the terminal data corresponding to the section to which the predetermined time belongs is “0”, and that with current mode signal means that bit is “1”. To do. In step 160, the output of the current detection circuit 12 is inspected. Then, if the current mode signal is detected, the bit (transmission signal) corresponding to the current timing of the terminal data is "1", so that the output voltage from the drive circuit 13 is inverted in step 164, and the process proceeds to step 170. Wait until the current mode signal is no longer detected and step
At 172, the output voltage from the drive circuit 13 is inverted again to restore the voltage mode of the transmission line to the original, and then the process proceeds to the next step 180.
一方、ステップ160にて前記所定時間(例えば600μS)
待っても返送信号が受信されなければ、端末データの現
タイミングに対応するビットは“0"であるから、ステッ
プ164〜172の処理をスキップしてスキップ160から直接
ステップ180に処理を進める。この場合、ドライブ回路1
3から伝送線3への送出電圧は反転されない。On the other hand, in step 160, the predetermined time (for example, 600 μS)
If the return signal is not received even after waiting, since the bit corresponding to the current timing of the terminal data is "0", the process of steps 164-172 is skipped and the process proceeds directly from skip 160 to step 180. In this case, drive circuit 1
The output voltage from 3 to the transmission line 3 is not inverted.
すなわち、ステップ158〜180の処理を1回実行するごと
に端末データが1ビットずつ電圧モード信号に変換され
る。That is, every time the processes of steps 158 to 180 are executed, the terminal data is converted into a voltage mode signal bit by bit.
ステップ180は端末データを順次の1ビットごとに上記
電圧モードへ変換するための判定処理である。すなわ
ち、ステップ180では端末器からの端末データの全部の
ビットに対応する電流モード信号の受信が終了したか否
か、すなわち所定ビット数の電流モード信号を全部電圧
モード信号に変換したか否かを判定する。受信を終了し
ていなければ、ステップ158に戻って前記ステップ158〜
180の処理を繰り返す。Step 180 is a determination process for converting the terminal data into the above voltage mode bit by bit. That is, in step 180, it is determined whether or not the reception of the current mode signal corresponding to all the bits of the terminal data from the terminal is completed, that is, whether or not the current mode signal of a predetermined number of bits is converted into the voltage mode signal. judge. If the reception has not been completed, the process returns to step 158 and steps 158 to
The process of 180 is repeated.
ステップ158〜180の処理を端末データのビット数と同じ
だけ繰り返すと、端末データの全ビットについての受信
および電流モード信号から電圧モード信号への変換等、
前記端末データに関し必要な処理が終了する。この場合
には、ステップ180にて受信終了と判定され、処理は最
初のステップ102に戻る。When the processes of steps 158 to 180 are repeated by the same number as the number of bits of the terminal data, reception of all bits of the terminal data and conversion from the current mode signal to the voltage mode signal, etc.
The necessary processing for the terminal data ends. In this case, it is determined in step 180 that the reception has ended, and the process returns to the first step 102.
B.端末器の動作 第10図を参照して、端末器5は、先ずステップ202にて
中央処理装置から電圧モードの中央起動信号が送出され
たか否かを判定する。中央処理装置から中央起動信号が
送出されていれば(第9図のステップ104)ステップ202
〜230の返送処理を実行する。一方、送出されていなけ
れば、ステップ250にて起動データの有無を判定する。
中央処理装置へ送出すべきデータすなわち起動データが
あれば、ステップ260〜280の循環処理からなる端末起動
(子起動)処理を実行する。ステップ202にて中央起動
信号が送出されておらず、かつ自身から中央処理装置に
送出する端末データも無ければ、そのまま最初のステッ
プ202に戻る。B. Operation of Terminal Device Referring to FIG. 10, the terminal device 5 first determines in step 202 whether or not a central activation signal in the voltage mode is transmitted from the central processing unit. If a central activation signal is sent from the central processing unit (step 104 in FIG. 9), step 202
Perform ~ 230 return processing. On the other hand, if it has not been transmitted, it is determined in step 250 whether or not there is activation data.
If there is data to be sent to the central processing unit, that is, activation data, the terminal activation (child activation) processing consisting of the circulation processing of steps 260 to 280 is executed. If the central activation signal is not transmitted in step 202 and there is no terminal data to be transmitted to the central processing unit from itself, the process directly returns to step 202.
返送処理 返送処理時は、ステップ204およびステップ210の循環処
理にて受信回路52の出力に基づき中央処理装置から送出
される(第9図のステップ104〜106)電圧モードの伝送
データをこの循環処理の1回ごとに1ビットずつ受信す
る。そして、所定ビット数の受信を終了すると、ステッ
プ210からステップ224に進み、ステップ224にて返送デ
ータの最初の1ビット(返送信号)を送信回路53から伝
送線3へ電流モードで送出する。この電流モードの返送
信号は中央処理装置によって受信され(第9図ステップ
112)電圧モード信号に変換される(同ステップ118〜12
4)。Return processing During the return processing, the voltage mode transmission data sent from the central processing unit based on the output of the receiving circuit 52 in the circulation processing of steps 204 and 210 (steps 104 to 106 in FIG. 9) is subjected to this circulation processing. One bit is received each time. When the reception of the predetermined number of bits is completed, the process proceeds from step 210 to step 224, and in step 224, the first 1 bit (return signal) of the return data is sent from the transmission circuit 53 to the transmission line 3 in the current mode. This current mode return signal is received by the central processing unit (step 9 in FIG. 9).
112) is converted into a voltage mode signal (steps 118 to 12 in the same step)
Four).
ステップ228では伝送線3より電圧モード信号を受信し
てこの受信信号が自身の送出した返信信号と内容的に一
致するか否かを判定する。In step 228, the voltage mode signal is received from the transmission line 3 and it is determined whether or not the received signal matches the reply signal sent by itself.
一致していれば、ステップ224で送出した返送信号の1
ビットが中央処理装置で受信されて電流モードより電圧
モードに変換されたのであるから、そのビットの伝送は
正常に行なわれたことになる。次のステップ230では返
送信号の全ビットの正常な送出が終了したか否かを判定
する。全部のビットについての返送が終了していなけれ
ばステップ224に戻って、次のビット(返送信号)につ
いて前記ステップ224〜230の処理を繰り返す。一方、全
部のビットについての返送が終了していれば返送処理を
終了してステップ202に戻る。If they match, 1 of the return signal sent in step 224
Since the bit was received by the central processing unit and converted from the current mode to the voltage mode, the transmission of the bit was successful. In the next step 230, it is judged whether or not the normal transmission of all the bits of the return signal is completed. If the transmission of all the bits has not been completed, the process returns to step 224, and the processes of steps 224 to 230 are repeated for the next bit (return signal). On the other hand, if the returning of all the bits is completed, the returning process is ended and the process returns to step 202.
前記ステップ228にて返送信号と受信信号が一致しなけ
れば、返送データのそのビット(返送信号)は中央処理
装置に正しく受信されなかったのであるからそのままス
テップ202に戻る。この場合、中央処理装置においては
所定ビット数の返送データが得られない(第9図ステッ
プ140)ため、起動解除(同ステップ142)処理がスキッ
プされ、再度中央起動処理が実行される。したがって、
端末器はこれに対して再度返送処理を実行することにな
り、結局、正常な返送データ伝送が行なわれるまで、中
央処理装置の中央起動処理とこれに対する端末器の返送
処理が繰り返されることになる。If the return signal and the reception signal do not match in step 228, the bit (return signal) of the return data has not been correctly received by the central processing unit, and therefore the process directly returns to step 202. In this case, the central processing unit cannot obtain the returned data of a predetermined number of bits (step 140 in FIG. 9), so the activation canceling (step 142) processing is skipped and the central activation processing is executed again. Therefore,
The terminal device again executes the return process, and eventually the central processing of the central processing unit and the return process of the terminal device to this are repeated until normal return data transmission is performed. .
端末起動処理 この端末起動処理においては、先ず、ステップ260〜270
の循環処理を1回実行するごとに起動データを1ビット
ずつ電流モードで送出する。この電流モード信号は、中
央処理装置によって受信され(第9図ステップ158)電
圧モード信号に変換される(同ステップ164〜172)。こ
の循環処理の際、ステップ268では伝送線3の電圧モー
ドを判別し、この電圧モード信号と自身の送出した電流
モード信号との内容を比較する。もし、これらの信号の
内容が一致すれば、自身の送出した電流モード信号は、
間違いなく中央処理装置に受信され電圧モードに変換さ
れたものと判定することができる。そして、正しく受信
されたと判定されている限り、前記循環処理はステップ
270で起動データの送信が終了したと判定されるまで続
行する。Terminal Starting Process In this terminal starting process, first, steps 260 to 270 are performed.
Each time the circulating process of 1 is executed once, the start data is sent in 1-bit units in the current mode. This current mode signal is received by the central processing unit (step 158 in FIG. 9) and converted into a voltage mode signal (steps 164-172). At the time of this circulation processing, in step 268, the voltage mode of the transmission line 3 is determined, and the contents of this voltage mode signal and the current mode signal sent by itself are compared. If the contents of these signals match, the current mode signal sent by itself is
There is no doubt that it has been received by the central processing unit and converted into voltage mode. Then, as long as it is determined that the signal is correctly received, the circulation process is stepped.
The process continues until it is determined in 270 that the transmission of the boot data is completed.
起動データのビット数に対応する回数だけ前記循環処理
を実行すると、ステップ270で起動データの送信を終了
したと判定し、処理をステップ280に進める。ステップ2
80では起動データをクリアする等して起動を解除した
後、処理をステップ202に戻す。When the circulating process is executed the number of times corresponding to the number of bits of the activation data, it is determined in step 270 that the transmission of the activation data has been completed, and the process proceeds to step 280. Step two
At 80, after the start data is cleared to cancel the start, the process returns to step 202.
一方、ステップ258にて送信した電流モード信号と受信
した電圧モード信号との内容が異なる場合には、端末器
から送出された電流モード信号が中央処理装置に正しく
受信されなかったと判定し、前記循環処理をステップ25
8で中断してステップ202に戻る。この場合、端末器の起
動データはそのまま残っているから、中央処理装置から
端末起動用スタート信号が送出され(第9図ステップ15
0)、処理がステップ202からステップ250に進められる
と、このステップ250にて起動データ有りと判定され、
この端末起動処理が再度実行される。すなわち、起動デ
ータが中央起動処理へ正常に伝送されるまでこの端末起
動処理が繰り返される。On the other hand, if the contents of the current mode signal transmitted in step 258 and the received voltage mode signal are different, it is determined that the current mode signal transmitted from the terminal device was not correctly received by the central processing unit, and the circulation is performed. Step 25
Stop at 8 and return to step 202. In this case, since the start-up data of the terminal remains, the central processing unit sends a start signal for starting the terminal (step 15 in FIG. 9).
0), when the process proceeds from step 202 to step 250, it is determined in this step 250 that the start data exists,
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.
C.監視表示盤の動作 第11図を参照して、監視表示盤7は、先ず、ステップ30
2にて中央処理装置から中央起動信号が送出されたか否
かを判定する。中央処理装置から中央起動信号が送出さ
れていれば(第9図のステップ104)、処理をステップ3
04に進め、一方、送出されていなければ、ステップ312
に進める。C. Operation of the monitor display board Referring to FIG.
At 2, it is determined whether or not a central activation signal is sent from the central processing unit. If the central activation signal is sent from the central processing unit (step 104 in FIG. 9), the processing is performed in step 3
Go to 04, while if not sent, step 312
Proceed to.
ステップ304では中央処理装置から送出される(第9図
のステップ104〜106)電圧モードの伝送信号(中央起動
データ)を検出する。そして、次のステップ306にてこ
の伝送信号に対する端末器の返送信号(返送データ)を
中央処理装置で変換した電圧モード信号によって検出し
た後、ステップ308にてこれらの信号が内容的に一致す
るか否かを判定する。このステップ308は、中央処理装
置におけるステップ140(第9図)と同様の処理であ
る。ステップ308にて2つの信号が一致していれば中央
処理装置と端末器とのデータ伝送が正常に行なわれたの
であるから、ステップ310にてそのデータ伝送の内容に
基づく表示を行なう。In step 304, the voltage mode transmission signal (central activation data) sent from the central processing unit (steps 104 to 106 in FIG. 9) is detected. Then, in the next step 306, the return signal (return data) of the terminal device with respect to this transmission signal is detected by the voltage mode signal converted by the central processing unit, and in step 308, whether these signals match in content or not. Determine whether or not. This step 308 is similar to step 140 (FIG. 9) in the central processing unit. If the two signals match in step 308, it means that the data transmission between the central processing unit and the terminal has been normally performed. Therefore, in step 310, a display is made based on the contents of the data transmission.
一方、ステップ308にて2つの信号が内容的に不一致で
あれば、中央処理装置と端末器とのデータ伝送に異常が
あったのであるから、ステップ304および306で受信した
データはクリアしてステップ302に戻る。この場合、同
一内容のデータ伝送は正常に実行するまで繰り返される
ため、その正常に実行された際にステップ310の処理を
実行することになるから、その時、ステップ310にてそ
の伝送されたデータの内容に基づく表示を行なう。On the other hand, if the two signals do not match in content in step 308, it means that the data transmission between the central processing unit and the terminal unit is abnormal. Return to 302. In this case, since data transmission of the same content is repeated until it is normally executed, the process of step 310 is executed when the data is normally executed. Display based on content.
ステップ302にて中央起動でなければ、処理をステップ3
12に進め、このステップ312にて端末起動の有無を判定
する。いずれの端末器も起動しなければ、ステップ312
から直接ステップ302に戻る。If it is not the central start in step 302, the process is step 3
Then, in step 312, it is determined whether or not the terminal has been activated. If none of the terminals start up, step 312
Returns directly to step 302.
ステップ312にていずれかの端末器が起動したと判定さ
れれば、ステップ314にて起動端末から送出される端末
データの1ビットずつを、中央処理装置で変換された電
圧モード信号により検出し、ステップ316にて所定ビッ
ト数の信号が検出されたか否か等に基づいて端末信号が
正常に伝送されたか否かを判定する。If it is determined in step 312 that one of the terminals has started up, in step 314 each bit of the terminal data sent from the starting terminal is detected by the voltage mode signal converted by the central processing unit, In step 316, it is determined whether or not the terminal signal is normally transmitted based on whether or not a signal having a predetermined number of bits is detected.
正常に伝送されていればステップ310にてこの端末デー
タに基づく負荷監視表示を行なう。If it is transmitted normally, the load monitoring display based on the terminal data is performed in step 310.
一方、ステップ312にて端末器から中央処理装置へのデ
ータ伝送が正常に行なわれなかったものと判定したとき
は、ステップ316からステップ302へ戻る。この場合も端
末起動のデータ伝送は正常に実施されるまで繰り返され
るから、正常に実施された際にステップ310まで進むこ
とにより監視表示されることになる。On the other hand, when it is determined in step 312 that the data transmission from the terminal device to the central processing unit is not normally performed, the process returns from step 316 to step 302. Also in this case, the terminal-started data transmission is repeated until it is normally carried out, and when it is carried out normally, the process proceeds to step 310 to be monitored and displayed.
上述した第1の実施例においては、中央処理装置が、端
末器からの返送期間に、“1"レベルの返送待機信号RTM
を送出するシステムにこの発明を適用した例について説
明したが、第12図(a)に示すように、返送待機信号RT
Mが“0"レベルの場合にもこの発明は摘要可能である。
但し、電流モード信号より変換された電圧モードの極性
は、同図(b)と第3図(b)とを比較すれば判るよう
に、上述の場合と逆になる。In the above-described first embodiment, the central processing unit causes the return standby signal RTM of "1" level during the return period from the terminal device.
An example in which the present invention is applied to a system for sending a message has been described. However, as shown in FIG.
The present invention can be applied even when M is at the "0" level.
However, the polarity of the voltage mode converted from the current mode signal is opposite to the above case, as can be seen by comparing FIG. 3 (b) and FIG. 3 (b).
[第2の実施例] 第13〜19図は、第2の実施例を示す。[Second Embodiment] FIGS. 13 to 19 show a second embodiment.
上述した従来例や第1の実施例においては、端末器から
中央処理装置へ電流モードの端末データを伝送する端末
伝送期間に、中央処理装置から伝送線に、第15図(a)
に示す返送期間信号RTMのような、正または負の長パル
ス電圧を送出し、端末器側でこの長パルス電圧より電流
をシンクすることによって端末器から中央処理装置への
電流モードの信号伝送を行なっている。In the conventional example and the first embodiment described above, FIG. 15 (a) shows that the central processing unit transmits to the transmission line during the terminal transmission period for transmitting the current mode terminal data from the terminal to the central processing unit.
Sending a positive or negative long pulse voltage such as the return period signal RTM shown in Fig. 2 and sinking a current from this long pulse voltage on the terminal side enables current mode signal transmission from the terminal to the central processing unit. I am doing it.
そして、これらの従来例や第1の実施例の場合、返送信
号等の電流モード端末信号の送出は、前記中央処理装置
により設定された長パルス区間内にて比較的自由なタイ
ミングで行われている。このため、端末器の状態や中継
器による遅れ等により伝送タイミングがずれることがあ
り、中央処理装置にてタイミングを合わせ難いという欠
点があった。In the case of these conventional examples and the first embodiment, the current mode terminal signal such as the return signal is transmitted at a relatively free timing within the long pulse section set by the central processing unit. There is. For this reason, the transmission timing may be shifted due to the state of the terminal device or the delay caused by the repeater, which makes it difficult to adjust the timing in the central processing unit.
この第2の実施例は、第1図に示すような構成の信号伝
送システムにおいて、第15図(b)に示すように、返送
待機期間等の端末伝送期間中に伝送データのビットごと
の伝送タイミングを示す同期信号を中央処理装置1より
伝送線3に電圧モードで送出することにより、端末器3
からの信号伝送のタイミングを中央処理装置1にて管理
するようにしたものである。In the second embodiment, in the signal transmission system configured as shown in FIG. 1, as shown in FIG. 15 (b), transmission of transmission data bit by bit during a terminal transmission period such as a return waiting period. By sending the synchronization signal indicating the timing from the central processing unit 1 to the transmission line 3 in the voltage mode, the terminal device 3
The central processing unit 1 manages the timing of signal transmission from the.
ここでは、第1の信号伝送システムにおいて、中央処理
装置1として第6図に示すハードウエアを用い、端末器
5として第7図に示すハードウエアを用いるとともにCP
U21およびCPU61の制御プログラムを適宜設定することに
よって、上記の機能を実現している。Here, in the first signal transmission system, the hardware shown in FIG. 6 is used as the central processing unit 1, the hardware shown in FIG.
The above functions are realized by appropriately setting the control programs of the U21 and the CPU 61.
第13図および第14図は、それぞれこの第2の実施例に係
る中央処理装置1および端末器3の機能ブロック構成を
示す。13 and 14 show functional block configurations of the central processing unit 1 and the terminal unit 3 according to the second embodiment, respectively.
第13図の中央処理装置1は、第2図のものに対し、端末
器から中央処理装置への信号伝送期間中だけ所定の周期
で同期信号SYNCを発生する同期信号発生回路18を付加
し、フリップフロップ回路19を微分回路15の微分出力の
他、同期信号SYNCによっても反転するように構成したも
のである。これらの微分回路15、同期信号発生回路18お
よびフリップフロップ回路19等の機能は、いずれもCPU2
1の制御プログラムによって実現される。The central processing unit 1 shown in FIG. 13 is different from the one shown in FIG. 2 in that a synchronizing signal generating circuit 18 for generating a synchronizing signal SYNC at a predetermined cycle is added only during a signal transmission period from the terminal to the central processing unit. The flip-flop circuit 19 is configured to be inverted not only by the differential output of the differentiating circuit 15 but also by the synchronizing signal SYNC. The functions of the differentiating circuit 15, the synchronizing signal generating circuit 18, the flip-flop circuit 19, etc. are
It is realized by the control program of 1.
第14図の端末器は、第4図のものに対し、受信回路52の
出力に基づいて中央処理装置1から伝送線3に送出され
る電圧モードの同期信号を検出する同期信号検出回路55
と信号処理回路51の出力をラッチするフリップフロップ
回路57とを付加し、同期信号検出回路55が同期信号を検
出したとき送信回路53よりフリップフロップ回路57のラ
ッチ出力を電流モードで伝送線3に送出するようにした
ものである。これらの同期信号検出回路55およびフリッ
プフロップ回路57の機能もCPU61の制御プログラムによ
り実現される。The terminal device of FIG. 14 is different from that of FIG. 4 in that a sync signal detection circuit 55 for detecting a voltage mode sync signal sent from the central processing unit 1 to the transmission line 3 based on the output of the reception circuit 52.
And a flip-flop circuit 57 for latching the output of the signal processing circuit 51, and when the synchronizing signal detecting circuit 55 detects the synchronizing signal, the latch output of the flip-flop circuit 57 is sent from the transmitting circuit 53 to the transmission line 3 in the current mode. It is designed to be sent out. The functions of the sync signal detection circuit 55 and the flip-flop circuit 57 are also realized by the control program of the CPU 61.
次に、第16〜19図のフローチャートを参照しながら、第
1図、第6図、第7図、第13図および第14図によりその
構成を示されるシステムの動作を説明する。Next, the operation of the system whose configuration is shown in FIGS. 1, 6, 7, 13, and 14 will be described with reference to the flowcharts of FIGS.
中央処理装置1、端末器5および監視表示盤7は、それ
ぞれの電源が投入されると、それぞれのCPUごとに内蔵
された制御プログラムに従って動作を開始する。先ず、
CPUに内蔵された各種メモリ、フラグおよびレジスタ等
をイニシャライズした後、中央処理装置1は第16図およ
び第18図のフローチャートに示す、端末機5は第17図お
よび第19図のフローチャートに示す、そして監視表示盤
7は前に説明した第11図のフローチャートに示す、それ
ぞれの無限ループ処理を実行する。The central processing unit 1, the terminal unit 5 and the monitor display panel 7 start to operate according to a control program stored in each CPU when the respective power supplies are turned on. First,
After initializing various memories, flags, registers, etc. built in the CPU, the central processing unit 1 is shown in the flowcharts of FIGS. 16 and 18, and the terminal 5 is shown in the flowcharts of FIGS. 17 and 19. Then, the monitor display board 7 executes each infinite loop process shown in the flowchart of FIG. 11 described above.
A.中央処理装置の動作 第16図を参照して、中央処理装置1は、先ず、ステップ
102にて今から行なうべきデータ伝送が通常モードであ
るか否かを判定する。中央処理装置1から端末器5へ送
出すべきデータ、すなわち起動データが無ければ通常モ
ードであり、後述するステップ190にて通常モードフラ
グがセットされている。一方、起動データ有りならば、
後述するステップ188にて通常モードフラグがリセット
されている。したがって、ステップ102では通常モード
フラグを検査し、このフラグがセットされていれば処理
をステップ150に進め、ステップ150〜180の通常モード
処理を実行する。一方、通常モードフラグがリセットさ
れていれば処理をステップ104に進め、ステップ104〜14
2(第18図)の中央起動処理を実行する。A. Operation of central processing unit Referring to FIG.
At 102, it is determined whether or not the data transmission to be performed now is the normal mode. If there is no data to be sent from the central processing unit 1 to the terminal device 5, that is, the activation data, the normal mode is set, and the normal mode flag is set in step 190 described later. On the other hand, if there is startup data,
The normal mode flag is reset in step 188 described later. Therefore, in step 102, the normal mode flag is checked, and if this flag is set, the process proceeds to step 150, and the normal mode process of steps 150 to 180 is executed. On the other hand, if the normal mode flag is reset, the process proceeds to step 104 and steps 104 to 14
Perform the central startup process of 2 (Fig. 18).
中央起動処理 第18図を参照して、中央起動処理時は、先ず、ステップ
104にて第15図(b)に示すようなスタート信号ST、送
信先端末器アドレスADRおよび制御信号(起動データ)C
NT等からなる伝送データをドライブ回路13より電圧モー
ドで伝送線3に送出する。続いてステップ108にて制御
変数nを1にセットした後、ステップ110〜132の返送信
号受信処理を実行する。Central start-up process Referring to FIG. 18, during the central start-up process, first, step
At 104, a start signal ST, a destination terminal address ADR, and a control signal (start data) C as shown in FIG. 15 (b)
The transmission data composed of NT or the like is sent from the drive circuit 13 to the transmission line 3 in the voltage mode. Subsequently, in step 108, the control variable n is set to 1, and then the return signal receiving process of steps 110 to 132 is executed.
この返信信号受信処理においては、ステップ110にてド
ライバ回路13より第n番目の同期信号を送出する。ここ
で、同期信号は、レベル“1"の短パルスであり、その後
にレベル“0"を保ち、ステップ114およびステップ126か
らなる循環処理にて電流検出回路12の出力を検査する。In this reply signal receiving process, the n-th synchronizing signal is sent from the driver circuit 13 in step 110. Here, the synchronization signal is a short pulse of level "1", and then maintains the level "0", and the output of the current detection circuit 12 is inspected by the circulation processing including steps 114 and 126.
端末器5から電流モードの返送信号が送出されると電流
検出回路12の出力電圧が変化する。ステップ114にて返
送信号の送出が検出されると、返送信号有りと判定し、
処理をステップ114からステップ118に進め、このステッ
プ118にてドライブ回路13からの送出電圧を反転し、ス
テップ120にて返送データの第nビットは“1"であると
判定し、ステップ122にてその返送信号が検出されなく
まで待機し、ステップ124にてドライブ回路13からの送
出電圧を再度反転して伝送線3を元の電圧モードである
レベル“0"に戻した後、ステップ130にて制御変数nを
歩進して処理をステップ132に進める。これらのステッ
プ118〜124の処理により電流モード返送信号の“1"が電
圧モード信号の“1"に変換される。When the current mode return signal is sent from the terminal device 5, the output voltage of the current detection circuit 12 changes. When the transmission of the return signal is detected in step 114, it is determined that there is a return signal,
The process proceeds from step 114 to step 118. In step 118, the output voltage from the drive circuit 13 is inverted, and in step 120, it is determined that the nth bit of the return data is “1”, and in step 122. After waiting until the return signal is not detected, the output voltage from the drive circuit 13 is inverted again in step 124 to return the transmission line 3 to the original voltage mode level “0”, and then in step 130. The control variable n is incremented and the process proceeds to step 132. By the processing of these steps 118 to 124, "1" of the current mode return signal is converted into "1" of the voltage mode signal.
この実施例において、端末器5は送出すべき返送データ
の1ビット(返送信号)が“1"であるときは電流モード
信号“1"を送出するが、“0"であるときは電流モード信
号を送出しない。そこで、ステップ114およびステップ1
26からなる循環処理にて電流モードの返送信号が検出さ
れることなく所定の時間(例えば600μS)を経過した
ときは、ステップ126にて返送信号無しと判定して処理
をステップ128に進め、ステップ128にて返送データの第
nビットは“0"であると判定し、ステップ130にて制御
変数nを歩進した後、処理をステップ132に進める。こ
の返送信号無しの場合には、ドライバ回路13の送出電圧
は“0"のままであり、結果として伝送線3上で、電流モ
ード返送信号の“0"が電圧モードの“0"で現わされるこ
とになる。すなわち、電流モード返送信号は、レベルが
“0"および“1"のいずれであっても、伝送線3上に電圧
モード信号として変換されることになる。In this embodiment, the terminal 5 sends the current mode signal "1" when 1 bit (return signal) of the return data to be sent is "1", but when it is "0", the current mode signal is sent. Is not sent. So step 114 and step 1
When a predetermined time (for example, 600 μS) has passed without detecting the current mode return signal in the circulation process consisting of 26, it is determined in step 126 that there is no return signal and the process proceeds to step 128. At 128, it is determined that the nth bit of the returned data is "0", and at step 130, the control variable n is incremented, and then the process proceeds to step 132. When there is no return signal, the output voltage of the driver circuit 13 remains “0”, and as a result, “0” of the current mode return signal appears on the transmission line 3 as “0” of the voltage mode. Will be done. That is, the current mode return signal is converted into the voltage mode signal on the transmission line 3 regardless of whether the level is “0” or “1”.
ステップ132では返送データの全部のビットについて端
末器5からの電流モードによる返送信号の、検出、レベ
ル判定および電圧モード信号への変換等の処理が終了し
たか否かを判定する。制御変数nは処理済ビットの数を
示しており、制御変数nが返送データのビット数Nに達
していなければ、未だ受信していない返送信号が残って
いるのであるからステップ132からステップ110に戻っ
て、ステップ110〜132の返送信号受信処理を繰り返す。In step 132, it is determined whether or not the processing such as detection, level determination and conversion into the voltage mode signal of the current mode return signal from the terminal 5 has been completed for all the bits of the return data. The control variable n indicates the number of processed bits. If the control variable n has not reached the number of bits N of the return data, there is still a return signal that has not been received. Then, the return signal receiving process of steps 110 to 132 is repeated.
一方、制御変数nが返送データのビット数Nに達してい
れば、返送データの全ビットを受信したのであるから、
ステップ132にて端末器からの返送が終了したものと判
定し、この返送信号受信処理を解除して処理を第16図の
ステップ182に進める。On the other hand, if the control variable n has reached the number of bits N of the return data, it means that all the bits of the return data have been received.
In step 132, it is determined that the return from the terminal is completed, the return signal receiving process is canceled, and the process proceeds to step 182 in FIG.
ステップ182では同期信号を出力し、続くステップ184で
は端末器5へ送信すべきデータが有るか否かを判定す
る。送信すべきデータが有ればステップ186にて送信デ
ータとして新規データをセットし、さらにステップ188
にて通常モードフラグをリセットした後、一方、端末器
5へ送信すべきデータが無ければステップ190にて通常
モードフラグをセットした後、処理を最初のステップ10
2に戻す。In step 182, a sync signal is output, and in the following step 184, it is determined whether or not there is data to be transmitted to the terminal device 5. If there is data to be transmitted, new data is set as transmission data in step 186, and further step 188
After resetting the normal mode flag at, on the other hand, if there is no data to be transmitted to the terminal device 5, the normal mode flag is set at step 190, and then the process proceeds to the first step 10.
Return to 2.
通常モード処理 第16図を参照して、前述のように、中央処理装置1から
端末器5へ送信すべきデータが無い場合にはステップ19
0にて通常モードフラグがリセットされ、これがステッ
プ102にて判定されて処理がステップ150に進められ、こ
のステップ150〜180の通常モード処理が実行される。Normal Mode Processing Referring to FIG. 16, as described above, when there is no data to be transmitted from the central processing unit 1 to the terminal 5, step 19 is performed.
At 0, the normal mode flag is reset, this is judged at step 102, the process proceeds to step 150, and the normal mode process of steps 150 to 180 is executed.
この通常モード処理においては、先ず、ステップ150に
て通常モード時用のスタート信号を伝送線3に送出す
る。続いて、ステップ152にて制御変数mを1にセット
した後、ステップ156〜180の端末信号受信処理を実行す
る。In this normal mode processing, first, at step 150, a start signal for the normal mode is sent to the transmission line 3. Then, after setting the control variable m to 1 in step 152, the terminal signal receiving process of steps 156-180 is performed.
この端末信号受信処理においては、先ず、ステップ156
ではドライバ回路13より第m番目の同期信号を送出す
る。次にステップ160とステップ174とからなる循環処理
にて電流検出回路12の出力を検査する。ここで、同期信
号はレベル“1"の短パルスであり、この同期信号の後に
端末データの1ビット(端末信号)を検出するためのレ
ベル“0"の端末待機期間が続く。In this terminal signal reception processing, first, step 156
Then, the driver circuit 13 sends the m-th synchronizing signal. Next, the output of the current detection circuit 12 is inspected by a circulation process including steps 160 and 174. Here, the synchronization signal is a short pulse of level "1", and this synchronization signal is followed by a terminal standby period of level "0" for detecting 1 bit (terminal signal) of terminal data.
前述の返送信号受信処理時と同様に、この端末信号受信
処理においても、端末器5から電流モードの端末信号が
送出されると電検出回路12の出力電圧が変化する。ステ
ップ160ではこの電流検出回路12の出力電圧変化すなわ
ち端末信号の送出が検出されると端末信号有りと判定
し、処理をステップ160からステップ164に進め、このス
テップ164にてドライブ回路13からの送出電圧を反転す
る。そして、ステップ168にて端末データの第mビット
が“1"であることを判定し、ステップ170にてその電流
モードの端末信号が再度“0"に変化するまで待機し、ス
テップ172にてドライブ回路13からの送出電圧を再度反
転して伝送線3の電圧モードをレベル“0"に戻した後、
処理をステップ178に進める。これらのステップ164〜17
2の処理によって電流モード端末信号の“1"が電圧モー
ド信号の“1"に変換される。In the terminal signal receiving process, the output voltage of the voltage detecting circuit 12 changes when the current mode terminal signal is sent from the terminal device 5 as in the return signal receiving process. In step 160, when the output voltage change of the current detection circuit 12, that is, the sending of the terminal signal is detected, it is determined that the terminal signal is present, the process proceeds from step 160 to step 164, and the sending from the drive circuit 13 is performed in this step 164. Invert the voltage. Then, in step 168, it is determined that the m-th bit of the terminal data is "1", and in step 170, it waits until the terminal signal in the current mode changes to "0" again. After reversing the output voltage from the circuit 13 and returning the voltage mode of the transmission line 3 to the level "0",
The process proceeds to step 178. These steps 164-17
By the processing of 2, the current mode terminal signal “1” is converted into the voltage mode signal “1”.
前述の返送信号受信処理において説明したように、この
実施例において、端末器5からの中央処理装置1への送
信データの1ビットである端末信号が“1"であるときは
端末器5から送出される電流モード信号は“1"である
が、“0"であるときの電流モード信号は“0"であり、こ
れは無信号状態と同じである。As described in the above-mentioned return signal reception processing, in this embodiment, when the terminal signal which is 1 bit of the transmission data from the terminal 5 to the central processing unit 1 is "1", it is transmitted from the terminal 5. The current mode signal to be output is "1", but the current mode signal when it is "0" is "0", which is the same as the no signal state.
そこで、ステップ160とステップ174とからなる循環処理
にて電流モードの端末信号が検出されることなく所定の
時間(例えば600μS)を経過したときは、ステップ174
から処理をステップ176に進め、このステップ176にて端
末データの第mビットは“0"であると判定した後、処理
をステップ178に進める。この電流モード端末信号が
“0"の場合には、ドライバ回路13の送出電圧は“0"まま
で変化しないが、この場合にも、電流モード端末信号が
電圧モード信号に変換されたとみなして差支えない。す
なわち、電流モード端末信号は、レベルが“0"および
“1"のいずれであっても、ステップ156〜176の処理によ
って、電圧モード信号に変換され、伝送線3上に送出さ
れたことになる。Therefore, when a predetermined time (for example, 600 μS) has elapsed without detecting the current mode terminal signal in the circulation process including steps 160 and 174, step 174
To step 176, and after determining in step 176 that the m-th bit of the terminal data is "0", the process proceeds to step 178. When the current mode terminal signal is “0”, the output voltage of the driver circuit 13 remains “0” and does not change, but in this case as well, it may be considered that the current mode terminal signal is converted to the voltage mode signal. Absent. That is, the current mode terminal signal is converted into the voltage mode signal by the processing of steps 156 to 176 and sent out on the transmission line 3 regardless of whether the level is “0” or “1”. .
ステップ178では、制御変数mを歩進する。次のステッ
プ180では端末データの全ビット受信したか否かを判定
する。制御変数mは処理済ビットの数を示しており、制
御変数mが端末データのビット数Mに達していなけれ
ば、未だ端末データの全ビットは受信されていない。こ
の場合には、処理をステップ180からステップ156に戻し
て、ステップ156〜180の端末信号受信処理を繰り返す。In step 178, the control variable m is incremented. In the next step 180, it is determined whether or not all bits of the terminal data have been received. The control variable m indicates the number of processed bits. If the control variable m does not reach the number M of bits of the terminal data, all the bits of the terminal data have not been received yet. In this case, the process is returned from step 180 to step 156, and the terminal signal receiving process of steps 156 to 180 is repeated.
一方、制御変数mが端末データのビット数Mと等しくな
れば、端末データを全ビット受信したことになる。この
場合には、ステップ180にて端末データの受信を終了し
たものと判定し、処理をステップ180からステップ182に
進め、前述したステップ182〜190の処理およびその他の
必要な処理を終了した後、ステップ102に戻って上述の
処理を繰り返す。On the other hand, if the control variable m is equal to the number of bits M of the terminal data, it means that all the bits of the terminal data have been received. In this case, it is determined that the reception of the terminal data has been completed in step 180, the process proceeds from step 180 to step 182, and after the processes of steps 182 to 190 described above and other necessary processes are completed, Returning to step 102, the above processing is repeated.
B.端末器の動作 第17図を参照して、端末器5は、先ず、ステップ202に
て受信回路52の出力に基づき中央処理装置1から送出さ
れた電圧モードの信号が通常モード時スタート信号であ
るか否かを判定する。中央処理装置1から第16図ステッ
プ150の処理によって送出される通常モード時スタート
信号を受信していれば、ステップ250に進んで負荷の監
視入力が変化したか否かを判定する。監視入力が変化し
たときはその監視入力を中央処理装置1へ監視データ
(端末データ)として伝送すべく、ステップ260〜280の
循環処理からなる端末起動処理を実行する。一方、ステ
ップ250にて監視入力なしであればこの通常モード時ス
タート信号に対応して送出するデータは無いのであるか
ら、図示しないその他処理を実行した後、ステップ202
に戻って次のスタート信号を待機する。B. Operation of Terminal Device Referring to FIG. 17, in the terminal device 5, first, the voltage mode signal sent from the central processing unit 1 based on the output of the receiving circuit 52 in step 202 is a start signal in the normal mode. Or not. If the start signal in the normal mode sent from the central processing unit 1 by the processing of step 150 in FIG. 16 is received, it proceeds to step 250 and it is determined whether the load monitoring input has changed. When the monitoring input is changed, the terminal starting process consisting of the circulation process of steps 260 to 280 is executed in order to transmit the monitoring input to the central processing unit 1 as the monitoring data (terminal data). On the other hand, if there is no monitoring input in step 250, there is no data to be transmitted in response to this start signal in the normal mode, so after executing other processing not shown, step 202
Return to and wait for the next start signal.
ステップ202にて受信されたスタート信号が通常モード
時スタート信号ではなく、中央処理装置1から第18図の
ステップ104の処理によって送出される中央起動時スタ
ート信号であれば、第19図のステップ204に進んで中央
処理装置1から中央起動時スタート信号に続けて送出さ
れる送信先アドレスADRや制御信号CNTなどの伝送データ
を受信する。続くステップ208では送信先アドレスADRが
自己アドレスと一致するか否かを判定する。送信先アド
レスADRが自己アドレスと一致しなければ、続く制御信
号CNTは他の端末器5へ向けて送出されたものであるか
ら、前記その他処理を実行した後、ステップ202に戻っ
て次のスタート信号を待機する。If the start signal received in step 202 is not the normal mode start signal but the central start-up start signal sent from the central processing unit 1 by the process of step 104 of FIG. 18, step 204 of FIG. Then, the process goes to the central processing unit 1 to receive the transmission data such as the destination address ADR and the control signal CNT which are transmitted subsequently to the start signal at the time of central activation. In the following step 208, it is determined whether or not the destination address ADR matches the self address. If the destination address ADR does not match the self-address, the subsequent control signal CNT is sent to the other terminal device 5, so after executing the other processing, the process returns to step 202 and the next start is performed. Wait for the signal.
一方、ステップ208にて送信先アドレスADRと自己アドレ
スとが一致したときは、ステップ214〜230の返送処理を
実行する。On the other hand, when the destination address ADR and the self address match in step 208, the return processing of steps 214 to 230 is executed.
返送処理 返送処理時は、先ず、ステップ214にて制御変数nを1
にセットした後、ステップ216にて同期信号が受信され
るまで待機する。ステップ216にて同期信号が受信され
れば、ステップ218にて所定時間(例えば50μS)待機
した後、ステップ220にて返送データの第nビット(返
送信号)が“1"であるか否かを判定する。“1"であれば
ステップ224にて送信回路53から伝送線3へ“1"の電流
モード返送信号を送出した後、ステップ226に進む。こ
の電流モードの返送信号は中央処理装置1によって受信
され(第18図ステップ114)、電圧モード信号に変換さ
れる(同ステップ118〜124)。一方、ステップ220にて
返送データの第nビットが“0"であれば“0"の電流モー
ド返送信号は無信号と同じであるから、ステップ224の
電流モード信号送出処理はスキップして、ステップ220
から直接ステップ226に進む。Return processing At the time of return processing, first, in step 214, the control variable n is set to 1
, And then waits until a sync signal is received in step 216. If the synchronization signal is received in step 216, after waiting for a predetermined time (eg, 50 μS) in step 218, it is checked in step 220 whether the nth bit (return signal) of the return data is “1”. judge. If it is "1", in step 224, the current mode return signal of "1" is sent from the transmission circuit 53 to the transmission line 3, and then the process proceeds to step 226. The current mode return signal is received by the central processing unit 1 (step 114 in FIG. 18) and converted into a voltage mode signal (steps 118 to 124). On the other hand, if the nth bit of the return data is "0" in step 220, the current mode return signal of "0" is the same as no signal, so the current mode signal transmission process of step 224 is skipped and the step 220
To go directly to step 226.
ステップ226では制御変数nを歩進し、続くステップ230
にて返送データの全ビットの送出が終了したか否かを判
定する。全部のビットについての返送が終了していなけ
ればステップ216に戻って、次のビット(返送信号)に
ついて前記ステップ216〜230の処理を繰り返す。一方、
全部のビットについての返送が終了していれば返送処理
を終了してステップ202に戻る。In step 226, the control variable n is incremented, and the subsequent step 230
At, it is determined whether transmission of all the bits of the return data has been completed. If the transmission of all the bits has not been completed, the process returns to step 216, and the processes of steps 216 to 230 are repeated for the next bit (return signal). on the other hand,
If the transmission of all the bits is completed, the return processing is terminated and the process returns to step 202.
端末起動処理 前述のように、ステップ202にて通常モード時スタート
信号が受信され、ステップ250にて監視入力有りと判定
されると、ステップ250〜270の端末起動処理により監視
データを中央処理装置1に伝送する。Terminal Activation Processing As described above, when the start signal in the normal mode is received in step 202 and it is determined in step 250 that the monitoring input is present, the monitoring data is processed by the central processing unit 1 by the terminal activation processing in steps 250 to 270. To transmit.
この端末起動処理においては、先ず、ステップ252にて
端末データとして自己アドレスおよび監視データをセッ
トする。さらに、制御変数mを1にセットた後、ステッ
プ256〜270の循環処理からなる端末データ送信処理を実
行し、この端末データ送信処理の1サイクルごとに端末
データを1ビットずつ端末信号として電流モードで送出
する。In this terminal starting process, first, in step 252, the self address and the monitoring data are set as the terminal data. Further, after the control variable m is set to 1, the terminal data transmission process consisting of the cyclic process of steps 256 to 270 is executed, and the terminal data is converted into a terminal signal by 1 bit in each current cycle of the terminal data transmission process in the current mode. To send.
すなわち、ステップ256にて同期信号が受信されるまで
待機し、同期信号が受信されれば、ステップ260にて端
末データの第mビット(端末信号)が“1"であるか否か
を判定する。“1"であればステップ262にてさらに所定
時間(例えば50μS)待機し、ステップ264にて送信回
路53から伝送線3へ“1"の電流モード端末信号を送出し
た後、処理をステップ266に進める。この電流モードの
端末信号は中央処理装置1によって受信され(第16図ス
テップ160)、電圧モード信号に変換される(同ステッ
プ164〜172)。一方、ステップ260にて端末データの第
mビットが“0"であれば、“0"の電流モード信号は無信
号と同じであるから、ステップ264の電流モード信号送
出処理はスキップして、処理をステップ260から直接ス
テップ266に進める。That is, it waits until the synchronization signal is received in step 256, and if the synchronization signal is received, it is determined in step 260 whether or not the m-th bit (terminal signal) of the terminal data is "1". . If it is "1", it waits for a further predetermined time (for example, 50 µS) in step 262, sends the current mode terminal signal of "1" from the transmission circuit 53 to the transmission line 3 in step 264, and then the process proceeds to step 266. Proceed. The terminal signal in the current mode is received by the central processing unit 1 (step 160 in FIG. 16) and converted into a voltage mode signal (steps 164-172). On the other hand, if the m-th bit of the terminal data is “0” in step 260, the current mode signal of “0” is the same as no signal, so the current mode signal transmission processing of step 264 is skipped and the processing is performed. From step 260 to step 266 directly.
ステップ266では制御変数mを歩進し、続くステップ270
にて端末データの全ビットの送出が終了したか否かを判
定する。全部のビットについての信号送出が終了してい
なければ、ステップ256に戻って、次のビット(端末信
号)について前記ステップ256〜270の処理を繰り返す。
一方、全部のビットについての信号送出が終了していれ
ば、端末起動処理を終了してステップ202に戻る。In step 266, the control variable m is incremented, and the following step 270
At, it is determined whether transmission of all bits of the terminal data has been completed. If the signal transmission has not been completed for all the bits, the process returns to step 256 and the processes of steps 256 to 270 are repeated for the next bit (terminal signal).
On the other hand, if the signal transmission for all the bits is completed, the terminal start-up process is completed and the process returns to step 202.
なお、上述においては、返送データまたは端末データの
各ビット、すなわち返送信号または端末信号と1:1対応
で同期信号を送出する例について説明したが、複数ビッ
トごとに1個の同期信号を送出するようにしてもよく、
あるいは1つ、例えば最初のビットだけについて1つだ
け同期信号を送出するようにしてもよい。In the above description, an example of sending a synchronization signal in a 1: 1 correspondence with each bit of return data or terminal data, that is, a return signal or a terminal signal has been described, but one synchronization signal is sent for every multiple bits. You may try
Alternatively, only one synchronization signal may be transmitted, for example, only the first bit.
このように、中央処理装置にて、端末器からの信号待機
期間に1つまたは複数の同期信号を送出し、端末器側で
はこの同期信号に応じたタイミングで返送信号または端
末信号の送出を行なうことにより、下記のような効果が
得られる。In this way, the central processing unit sends one or a plurality of synchronization signals during the signal waiting period from the terminal device, and the terminal device side sends a return signal or a terminal signal at a timing according to the synchronization signal. As a result, the following effects can be obtained.
中央処理装置側にて端末器からの信号伝送タイミング
を管理するので、タイミング合わせが容易になる。Since the central processing unit manages the signal transmission timing from the terminal device, the timing adjustment becomes easy.
中央処理装置側にて同期パルスの数を限定することが
できるので、端末伝送待機期間に冗長性を持たせること
ができる。また、端末器からの伝送ビット数にも冗長性
を持たせることができる。Since the number of synchronization pulses can be limited on the side of the central processing unit, redundancy can be provided in the terminal transmission waiting period. In addition, the number of bits transmitted from the terminal can be made redundant.
上述のように、伝送期間および伝送ビット数が従来と
同じ時間およびビット数なら条件が冗長になる結果、そ
の余裕分で伝送スピードの向上を図ることができる。As described above, if the transmission period and the number of transmission bits are the same time and the same number of bits as in the conventional case, the condition becomes redundant, and as a result, the transmission speed can be improved by the margin.
[第3の実施例] 第20〜23図は、第3の実施例を説明するためのものであ
る。[Third Embodiment] FIGS. 20 to 23 are for explaining a third embodiment.
上述した第2の実施例においては、中央処理装置より端
末器へ同期信号を送り、端末器では同期信号に同期して
返送信号または端末信号が“1"であれば電流モード信号
を送っている。しかし、返送信号または端末信号が“0"
のときは電流を流さないようにしているため、これは無
信号と区別がつかず、このため、返送または端末データ
の信号がオール“0"場合と、伝送していない場合やエラ
ー、故障等で伝送が途中で打ち切らきられた場合とを中
央処理装置側で判別できないという問題がある。In the above-described second embodiment, the central processing unit sends a synchronization signal to the terminal device, and the terminal device sends a return signal or a current mode signal if the terminal signal is "1" in synchronization with the synchronization signal. . However, the return signal or terminal signal is "0"
In this case, the current is not applied, so it is indistinguishable from no signal. Therefore, when the signal of the return or terminal data is all "0", when it is not transmitting, error, failure, etc. However, there is a problem in that the central processing unit cannot distinguish from the case where the transmission is cut off midway.
この第3の実施例は、伝送信号の最終部分に、伝送が正
常に終了した場合のみ“1"となるステータスビットを付
加し、中央処理装置では、このステータスビットをチェ
ックすることにより、受信したデータが正規のものか否
かを判別するようにしている。そして、端末器より中央
処理装置への伝送が異常無く終了したのか、エラーや故
障等で伝送が途中で打ち切られたかを中央処理装置で判
断できず、誤制御することを防止している。In the third embodiment, a status bit which becomes "1" only when the transmission is normally completed is added to the final portion of the transmission signal, and the central processing unit receives the status bit by checking the status bit. It is determined whether the data is legitimate. Then, the central processing unit cannot determine whether the transmission from the terminal unit to the central processing unit has been completed without any abnormalities, or whether the transmission has been interrupted midway due to an error or a failure, thereby preventing erroneous control.
次に、第20および21図のフローチャートを参照しなが
ら、この第3の実施例に係る信号伝送システムの動作を
説明する。Next, the operation of the signal transmission system according to the third embodiment will be described with reference to the flowcharts of FIGS.
この第3の実施例では端末起動時の動作は第2の実施例
と全く同じであるから、中央起動時の動作についてのみ
説明する。In this third embodiment, the operation at the time of starting the terminal is exactly the same as that of the second embodiment, so only the operation at the time of central starting will be described.
A.中央処理装置1の動作 中央処理装置1において、末端器5へ送出すべきデー
タ、すなわち起動データが発生すると、第20図の中央起
動処理を実行する。A. Operation of central processing unit 1 In the central processing unit 1, when data to be sent to the terminal device 5, that is, activation data is generated, the central activation process of FIG. 20 is executed.
中央起動処理 第20図を参照して、中央起動処理時は、先ず、ステップ
104にてスタート信号ST、モード信号MOD、送信先端末器
アドレスADRおよび制御信号(起動データ)CNT等からな
る伝送データを電圧モードで伝送線3に送出する。続い
て、ステップ108にて制御変数nを1にセットした後、
ステップ110〜132の返送信号受信処理を実行する。Central start processing Referring to FIG. 20, at the time of central start processing, first,
At 104, transmission data including a start signal ST, a mode signal MOD, a destination terminal address ADR, a control signal (starting data) CNT, etc. is sent to the transmission line 3 in the voltage mode. Then, after setting the control variable n to 1 in step 108,
The return signal reception process of steps 110 to 132 is executed.
この返送信号受信処理では、ステップ110にて第n番目
の同期信号を送出し、ステップ114およびステップ126か
らなる循環処理にて電流検出回路12の出力を検査する。In this return signal receiving process, the n-th synchronizing signal is sent in step 110, and the output of the current detection circuit 12 is inspected by the circulating process consisting of steps 114 and 126.
ステップ114にて端末器5ら第21図ステップ224の処理に
より送出された返送信号が検出されると、処理をステッ
プ114からステップ118に進め、このステップ118にて伝
送線3への電圧モード出力を反転し、ステップ120にて
返送データの第nビットが“1"であることを判定し、ス
テップ122にて受信中の返送信号が検出されなくなるま
で待機し、ステップ124にて伝送線への送出電圧モード
を再度反転して元に戻した後、ステップ130にて制御変
数nを歩進して処理をステップ132に進める。これらの
ステップ118〜124の処理により電流モード返送信号の
“1"が電圧モード信号の“1"に変換される。When the return signal transmitted from the terminal 5 by the processing of step 224 of FIG. 21 is detected at step 114, the processing proceeds from step 114 to step 118, and at step 118, the voltage mode output to the transmission line 3 is performed. Is inverted, it is determined in step 120 that the nth bit of the return data is "1", the process waits in step 122 until the return signal being received is no longer detected, and in step 124 the transmission line After reversing the sending voltage mode and returning it to the original value, the control variable n is incremented in step 130 and the process proceeds to step 132. By the processing of these steps 118 to 124, "1" of the current mode return signal is converted into "1" of the voltage mode signal.
一方、ステップ114とステップ126とからなる循環処理に
て電流モードの返送信号が検出されることなく所定の時
間(例えば600μS)を経過したときは、ステップ126に
て返送信号無しと判定して処理をステップ128に進め、
ステップ128にて返送データの第nビットは“0"である
と判定し、ステップ130にて制御変数nを歩進した後、
処理をステップ132に進める。On the other hand, when a predetermined time (for example, 600 μS) has passed without the current mode return signal being detected in the circulation process including steps 114 and 126, it is determined in step 126 that there is no return signal and the process is performed. To step 128,
In step 128, it is determined that the nth bit of the returned data is “0”, and in step 130, the control variable n is incremented,
The process proceeds to step 132.
ステップ132では返送データの全部のビットについて端
末器5からの電流モードによる返送信号が受信されたか
否か、すなわち全ビットの受信を終了したか否かを判定
する。終了していなければ、ステップ110に戻って、ス
テップ110〜132の返送信号受信処理を繰り返す。一方、
終了していればステップ134にて同期信号を送出した
後、ステップ136〜146の処理を実行した後、処理を第16
図のステップ182に進める。In step 132, it is determined whether or not the return signal in the current mode from the terminal 5 has been received for all the bits of the return data, that is, whether or not the reception of all the bits has been completed. If not completed, the process returns to step 110 and repeats the return signal reception processing of steps 110-132. on the other hand,
If the processing is completed, after sending the synchronization signal in step 134, the processing in steps 136 to 146 is executed, and then the processing is performed in the 16th step.
Proceed to step 182 of the figure.
この第3の実施例においては、前記第2の実施例に対し
て、ステップ136〜146の処理が付加されている。In the third embodiment, steps 136 to 146 are added to the second embodiment.
第20図において、ステップ136では返送データの第nビ
ット目が“1"であったか否かを判定する。この第nビッ
ト目、すなわち最終ビットは中央処理装置1と端末器5
との間の通信が正常に行われたか否かを示す端末器5か
らの送信データである。In FIG. 20, in step 136, it is determined whether or not the nth bit of the returned data is "1". The n-th bit, that is, the last bit, is the central processing unit 1 and the terminal unit 5.
It is the transmission data from the terminal device 5 that indicates whether or not the communication with the device is normally performed.
ステップ136の判定が“0"であれば、中央処理装置1か
ら端末器5、たは端末器5から中央処理装置1へのデー
タ伝送に異常があったのであるからステップ137にて再
送信フラグをセットする。一方、“1"であれば、通信は
正常に行われたのであるから、ステップ138にて再送信
フラグをリセットする。If the determination in step 136 is “0”, there is an error in the data transmission from the central processing unit 1 to the terminal unit 5 or from the terminal unit 5 to the central processing unit 1, so the retransmission flag is set in step 137. Set. On the other hand, if the value is "1", it means that the communication has been normally performed, and thus the retransmission flag is reset in step 138.
続くステップ140では上記再送信フラグを検査する。そ
して、リセットされていれば、ステップ144にて新規デ
ータをセットした後、一方、セットされていれば、ステ
ップ146にて現在の送信データをそのまま残して、ステ
ップ180に進める。In the following step 140, the retransmission flag is checked. Then, if it is reset, new data is set in step 144, while if it is set, the current transmission data is left as it is in step 146, and the process proceeds to step 180.
B.端末器の動作 端末器5は、第17図のステップ202にて、中央処理装置
1から送出された電圧モードのスタート信号が中央処理
装置1の第20図ステップ104の処理によって送出される
中央起動時スタート信号であれば、処理を第21図のステ
ップ204に進め、中央処理装置1から中央起動時スター
ト信号に続けて送出される送信先アドレスADRや制御信
号CNTなどの伝送データを受信する。そして、ステップ2
06にて受信データの異常の有無を判定する。異常があれ
ば処理をステップ232に進め、異常が無ければステップ2
08に進める。B. Operation of Terminal Unit In the terminal unit 5, the start signal of the voltage mode sent from the central processing unit 1 in step 202 of FIG. 17 is sent by the processing of step 104 of FIG. 20 of the central processing unit 1. If it is a start signal at the time of central activation, the process proceeds to step 204 in FIG. 21 to receive transmission data such as destination address ADR and control signal CNT sent from the central processing unit 1 following the start signal at central activation. To do. And step 2
At 06, it is judged whether there is an abnormality in the received data. If there is any abnormality, the process proceeds to step 232. If there is no abnormality, step 2
Proceed to 08.
ステップ208では送信先アドレスADRが自己アドレスと一
致するか否かを判定する。送信先アドレスADRが自己ア
ドレスと一致しなければ、続く制御信号CNTは他の端末
器5へ向けて送出されたものである。この場合はステッ
プ232に進める。In step 208, it is determined whether the destination address ADR matches its own address. If the destination address ADR does not match the self-address, the subsequent control signal CNT is sent to another terminal device 5. In this case, proceed to step 232.
ステップ232では返送データの最終ビットに“0"をセッ
トした後、ステップ202に戻る。このステップ202では次
のスタート信号を待機する。In step 232, "0" is set to the last bit of the returned data, and then the process returns to step 202. In this step 202, the next start signal is awaited.
一方、ステップ208にて送信先アドレスADRと自己アドレ
スとが一致したときは、ステップ212にて前記返送信号
の最終ビットに“1"をセットした後、ステップ214〜230
の返送処理を実行する。On the other hand, when the destination address ADR and the self address match in step 208, "1" is set to the last bit of the return signal in step 212, and then steps 214 to 230
Execute the return processing of.
返送処理 返送処理時は、先ず、ステップ214にて制御変数nを1
にセットし、ステップ216にて同期信号が受信されるま
で待機する。ステップ216にて同期信号が受信されれ
ば、ステップ218にて所定時間(例えば50μS)待機し
た後、ステップ220にて返送データの第nビット(返送
信号)が“1"であるか否かを判定する。“1"であればス
テップ224にて送信回路53から伝送線3へレベル“1"の
電流モード返送信号を送出した後、処理をステップ226
に進める。この電流モードの返送信号は中央処理装置1
によって受信され(第20図ステップ114)、電圧モード
信号に変換される(同ステップ118〜124)。一方、ステ
ップ220にて返送データの第nビットが“0"であれば
“0"の電流モード返送信号は無信号と同じであるから、
ステップ224の電流モード信号送出処理はスキップし
て、処理をステップ220から直接ステップ226に進める。Return processing At the time of return processing, first, in step 214, the control variable n is set to 1
And waits until a sync signal is received in step 216. If the synchronization signal is received in step 216, after waiting for a predetermined time (eg, 50 μS) in step 218, it is checked in step 220 whether the nth bit (return signal) of the return data is “1”. judge. If it is "1", a current mode return signal of level "1" is sent from the transmitting circuit 53 to the transmission line 3 in step 224, and then the process is step 226.
Proceed to. The return signal in this current mode is sent to the central processing unit 1
Is received (step 114 in FIG. 20) and converted into a voltage mode signal (steps 118 to 124). On the other hand, if the nth bit of the return data is “0” in step 220, the current mode return signal of “0” is the same as no signal.
The current mode signal transmission process of step 224 is skipped, and the process proceeds directly from step 220 to step 226.
ステップ226では制御変数nを歩進し、続くステップ230
にて返送データの全ビットの送出が終了したか否かを判
定する。全部のビットについての返送が終了していなけ
ればステップ216に戻って、次のビット(返送信号)に
ついて前記ステップ216〜230の処理を繰り返す。一方、
全部のビットについての返送が終了していれば返送処理
を終了してステップ202に戻る。In step 226, the control variable n is incremented, and the subsequent step 230
At, it is determined whether transmission of all the bits of the return data has been completed. If the transmission of all the bits has not been completed, the process returns to step 216, and the processes of steps 216 to 230 are repeated for the next bit (return signal). on the other hand,
If the transmission of all the bits is completed, the return processing is terminated and the process returns to step 202.
この実施例においては、第22図に示すように、返送デー
タの最後に1ビットを付加しこの最終ビット、すなわち
第nビット目を端末器5の受信および返送のステータス
ビットとして用い、正常通信時は最終ビットを“1"にし
ている。このため、中央処理装置1は、この最終ビット
としてレベル“1"の電流モードを受信することにより、
伝送が正常に行われたことを判定することができる。In this embodiment, as shown in FIG. 22, one bit is added to the end of the return data, and the last bit, that is, the nth bit is used as a status bit for reception and return of the terminal device 5, and during normal communication. Sets the last bit to "1". Therefore, the central processing unit 1 receives the current mode of the level "1" as the last bit,
It can be determined that the transmission was successful.
なお、上述においては、伝送信号の最終部分に付加する
ステータスビットを伝送が正常に終了した場合に“1"に
セットしているが、このステータスビットを伝送エラー
が発生したときに“1"にセットし、中央処理装置では、
このステータスビット“1"によりエラー発生を検知する
ようにしてもよい。In the above description, the status bit added to the final part of the transmission signal is set to "1" when the transmission ends normally, but this status bit is set to "1" when a transmission error occurs. Set and in the central processing unit,
The status bit “1” may be used to detect the occurrence of an error.
このように、この第3の実施例によると、伝送エラーや
故障等により途中で伝送が打ち切られた場合と正規の伝
送が終了した場合とを中央処理装置で判別できるため、
誤制御を防止することができる。As described above, according to the third embodiment, the central processing unit can determine whether the transmission is terminated midway due to a transmission error, a failure, or the like, and when the regular transmission is completed.
Erroneous control can be prevented.
さらに、この実施例のシステムによれば、ランダム伝送
の場合の衝突処理を好適に実施することができる。すな
わち、中央処理装置1は複数の端末起動が衝突したこと
を検知すると、先ず、スタート信号ST、モード信号MO
D、全端末指定のダミーアドレスADRからなる全起動端末
器宛のポーリングをかける。この際、各端末器5は、い
くつかのグループにグループ分けしておき、中央処理装
置1ではこのグループ数に同じビット数の返送信号RPI
が返送されるように同期信号SYNCを電圧モードで送出す
る。中央処理装置1における衝突検知は、例えば、前記
ステータス信号などに基づき、あるいは受信信号の乱れ
を検出して行なうことができる。Furthermore, according to the system of this embodiment, collision processing in the case of random transmission can be suitably implemented. That is, when the central processing unit 1 detects that a plurality of terminal activations collide, first, the start signal ST and the mode signal MO
D, Poll all activation terminals consisting of dummy address ADR specified by all terminals. At this time, each terminal 5 is divided into several groups, and the central processing unit 1 sends back the return signal RPI having the same number of bits as the number of groups.
The sync signal SYNC is sent out in the voltage mode so that is sent back. The collision detection in the central processing unit 1 can be performed based on, for example, the status signal or by detecting the disturbance of the received signal.
第23図(a)は、衝突検知後1回目の中央処理装置1か
らのポーリング信号を示す。同図において、返送信号RP
Iは、中央処理装置1で電圧モードに変換された信号RPV
で現わしてある。ここでは、端末器5を自己アドレスの
上位3ビットの値xに応じて8つに分割してあり、同期
信号SYNCも8ビットの返送信号を返送させるように送出
している。FIG. 23 (a) shows the polling signal from the central processing unit 1 for the first time after the collision detection. In the figure, the return signal RP
I is the signal RPV converted to voltage mode by the central processing unit 1.
Is displayed. Here, the terminal device 5 is divided into eight according to the value x of the upper 3 bits of its own address, and the synchronization signal SYNC is also sent so as to send back an 8-bit return signal.
すなわち、第1回目のポーリングに対して、各起動端末
器5は、自身の属するグループに応じて、例えば第xグ
ループであれば、第xビット目でのみ“1"レベルの電流
モード返送信号RPIを発生する。これにより、中央処理
装置1は、どのグループの端末器5が起動したかを検知
することができる。ここでは、第3番目(上位3ビット
が010)のグループと第4番目(上位3ビットが011)の
グループの端末器が起動した例を示している。That is, in response to the first polling, each activation terminal device 5 responds to the group to which it belongs, for example, if it is the xth group, the current mode return signal RPI of the "1" level only at the xth bit. To occur. As a result, the central processing unit 1 can detect which group of the terminal devices 5 has been activated. Here, an example is shown in which the terminals of the third group (the upper 3 bits are 010) and the fourth group (the upper 3 bits are 011) are activated.
第2回目以降は、検知したグループを指定してポーリン
グを行なう。すなわち、上記の例では、アドレス信号AD
Rの上位アドレスには、先ず、010(または011)をセッ
トし、下位にはダミーアドレスをセットして第2回目の
ポーリングを行なう。これに対して端末器は上位アドレ
スが010(または011)のもののみが今度は自己アドレス
の第4〜6ビット目の値に応じたタイミングで“1"レベ
ルの電流モード返送信号RPIを発生する。この2回のポ
ーリングにより、中央処理装置1は、起動端末器の一方
のアドレスの上位6ビットまで検知することができる。From the second time onward, polling is performed by specifying the detected group. That is, in the above example, the address signal AD
First, 010 (or 011) is set in the upper address of R, a dummy address is set in the lower address, and the second polling is performed. On the other hand, in the terminal device, only the upper address 010 (or 011) generates the "1" level current mode return signal RPI at the timing according to the value of the 4th to 6th bits of the self address. . By performing the polling twice, the central processing unit 1 can detect the upper 6 bits of one address of the activation terminal.
第23図(b)は、衝突検知後第2回目以降の中央処理装
置1からのポーリング信号を示す。同図によると、第2
番目(検出しようとする3ビットの値が001)のグルー
プが返送信号を発生している。したがって、これが2回
目のポーリングであれば、起動端末器の1つ(または複
数)についてアドレスが010001……であることが検知で
きる。以下同様にして、512個(9ビット)のアドレス
のうちの1つを3回のポーリングで検知することができ
る。FIG. 23 (b) shows a polling signal from the central processing unit 1 after the second time after the collision detection. According to the figure, the second
The 3rd group (the value of 3 bits to be detected is 001) is generating the return signal. Therefore, if this is the second polling, it can be detected that the address is 010001 ... For one (or a plurality) of the activation terminals. Similarly, one of 512 (9-bit) addresses can be detected by polling three times.
[第4の実施例] 第24〜29図は、第4の実施例を説明するためのものであ
る。[Fourth Embodiment] FIGS. 24 to 29 are for explaining a fourth embodiment.
この第4の実施例は、第1図の信号伝送システムにおい
て、第1の実施例に係る第2図の中央処理装置1を第24
図に示す中央処理装置1と置き換えてある。In the fourth embodiment, in the signal transmission system of FIG. 1, the central processing unit 1 of FIG.
It is replaced with the central processing unit 1 shown in the figure.
第24図は、この第4の実施例に係る中央処理装置1の機
能ブロック構成を示す。第2図の中央処理装置1は、端
末器から中央処理装置へ電流モード信号が送出されると
1つの信号についてその立上りと立下りの2回のフリッ
プフロップ回路19の出力を反転し、これにより、1つの
電流モード信号を1つの電圧パネルに変換していた。こ
れにに対して、第24図の中央処理装置1は微分回路15の
代わりに立上り検出回路16を用いることにより、立上り
時のみフリップフロップ回路19の出力を反転している。
また、第25図に示すように、端末器からの返送データま
たは端末データの1ビットごとに同期信号を発生し、こ
の同期信号の立下りでフリップフロップ回路19をリセッ
トするようにしている。第25図(a)は、フリップフロ
ップ回路19が無い場合の伝送線3の線間電圧波形図、第
25図(b)は、この第4の実施例における電圧波形図で
ある。前記の立上り検出回路16やフリップフロップ回路
19等の機能は、いずれもCPU21の制御プログラムによっ
て実現される。FIG. 24 shows a functional block configuration of the central processing unit 1 according to the fourth embodiment. When the current mode signal is sent from the terminal to the central processing unit, the central processing unit 1 in FIG. 2 inverts the output of the flip-flop circuit 19 twice for the rising and the falling of one signal. It converted one current mode signal into one voltage panel. On the other hand, the central processing unit 1 of FIG. 24 uses the rising edge detection circuit 16 instead of the differentiating circuit 15 to invert the output of the flip-flop circuit 19 only at the rising edge.
Further, as shown in FIG. 25, a synchronization signal is generated for each bit of the returned data from the terminal or the terminal data, and the flip-flop circuit 19 is reset at the falling edge of this synchronization signal. FIG. 25 (a) is a line voltage waveform diagram of the transmission line 3 when the flip-flop circuit 19 is not provided.
FIG. 25 (b) is a voltage waveform diagram in the fourth embodiment. The rise detection circuit 16 and the flip-flop circuit described above.
The functions such as 19 are all realized by the control program of the CPU 21.
次に、第26図および第27図のフローチャートを参照しな
がら、第1図、第6図、第7図および第24図等によりそ
の構成を示されるシステムの動作を説明する。Next, the operation of the system whose configuration is shown in FIGS. 1, 6, 7, and 24 will be described with reference to the flowcharts in FIGS. 26 and 27.
中央処理装置1、端末器5および監視表示盤7は、それ
ぞれの電源が投入されると、それぞれのCPUごとに内蔵
された制御プログラムに従って動作を開始する。先ず、
CPUに内蔵された各種メモリおよびレジスタ等をイニシ
ャライズした後、中央処理装置1は第26図のフローチャ
ートに示す、端末器5は第27図のフローチャートに示
す、そして監視表示盤7は前に説明した第11図のフロー
チャートに示す、それぞれの無限ループ処理を実行す
る。The central processing unit 1, the terminal unit 5 and the monitor display panel 7 start to operate according to a control program stored in each CPU when the respective power supplies are turned on. First,
After initializing the various memories and registers etc. built in the CPU, the central processing unit 1 is shown in the flowchart of FIG. 26, the terminal device 5 is shown in the flowchart of FIG. 27, and the monitoring display panel 7 is explained previously. Each infinite loop process shown in the flowchart of FIG. 11 is executed.
A.中央処理装置の動作 第26図を参照して、中央処理装置1は、まず、ステップ
102にて起動データの有無を判定する。端末器へ送出す
べきデータすなわち起動データが有れば、ステップ104
〜142の中央起動(親起動)処理を実行し、起動データ
が無ければ、ステップ150〜180の通常モード処理を実行
する。A. Operation of central processing unit Referring to FIG.
At 102, the presence or absence of start data is determined. If there is data to be sent to the terminal, that is, activation data, step 104
~ 142 central activation (parent activation) processing is executed, and if there is no activation data, normal mode processing of steps 150 to 180 is executed.
中央起動処理 中央起動処理時は、先ず、ステップ104にてその起動デ
ータに応じた第28図(2)〜に示すような、スター
ト信号ST、信号先端末器アドレスADRおよび制御信号
(起動データ)CNT等からなる伝送データをドライブ回
路13より電圧モードで伝送線3に送出する。この伝送デ
ータ送出は、ステップ104の処理を1回経由するごとに
1ビットずつ行なわれる。次のステップ106はこのステ
ップ104の処理が伝送データのビット数に対応する所定
の回数だけ繰り返されたか否かを判定するためのステッ
プで、ステップ104の処理回数がこの所定回数より少な
ければ処理をステップ104に戻す。ステップ104の処理が
所定回数繰り返され、所定ビット数の電圧モード信号が
送出されると、ステップ106にて送信終了と判定し、処
理を次のステップ110に進める。Central start-up processing In the central start-up processing, first, in step 104, a start signal ST, a signal destination terminal address ADR, and a control signal (start-up data) as shown in FIG. The transmission data composed of CNT or the like is sent from the drive circuit 13 to the transmission line 3 in the voltage mode. This transmission of the transmission data is performed one bit each time the processing of step 104 is passed once. The next step 106 is a step for determining whether or not the process of step 104 is repeated a predetermined number of times corresponding to the number of bits of transmission data. If the number of processes of step 104 is less than the predetermined number of times, the process is performed. Return to step 104. 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 transmitted, it is determined in step 106 that the transmission has ended, and the process proceeds to the next step 110.
ステップ110ではレベル“1"の電圧パルスからなる同期
信号を発生する。続いて、ステップ112では電流検出回
路12の出力を取り込み、ステップ114にて端末器からの
電流モード信号を有無を判定する。前記の各実施例と同
様に、この実施例においても、端末器5は送出すべきデ
ータの1ビット(返送信号または端末信号)が“1"であ
れば電流モード信号を送出するが、“0"であるときは電
流モード信号を送出しない。したがって、ここでは所定
時間(例えば600μS)内に電流モードの信号が検出さ
れない場合は前記送出すべきデータのその所定時間が属
する区間に対応する1ビット(返送信号)が“0"である
ことを意味し、検出されればそのビット(返送信号)は
“1"であることを意味している。In step 110, a synchronization signal composed of voltage pulses of level "1" is generated. Then, in step 112, the output of the current detection circuit 12 is fetched, and in step 114, the presence or absence of the current mode signal from the terminal is determined. Similar to each of the above-described embodiments, also in this embodiment, the terminal 5 sends a current mode signal if one bit (return signal or terminal signal) of data to be sent is "0", but "0"", The current mode signal is not sent. Therefore, here, when the current mode signal is not detected within a predetermined time (for example, 600 μS), it is confirmed that 1 bit (return signal) corresponding to the section to which the predetermined time of the data to be transmitted belongs is “0”. If it is detected, it means that the bit (return signal) is “1”.
ステップ114にて返送信号有りと判定されれば、ステッ
プ118にてドライブ回路13からの送出電圧を反転した
後、返送信号が検出されなければ、ステップ118をスキ
ップして、すなわちドライブ回路13からの送出電圧を反
転することなく直接ステップ132に処理を進める。If it is determined that there is a return signal in step 114, after the output voltage from the drive circuit 13 is inverted in step 118, if no return signal is detected, step 118 is skipped, that is, The process proceeds directly to step 132 without inverting the output voltage.
ステップ132では端末器からの返送が終了したか否かを
判定する。返送データの全部のビットについて同期信号
発生(ステップ110)や返送信号受信(ステップ112)の
処理が済んでいなければ、返送はまだ終了していないの
であるからステップ132からステップ110に戻って、ステ
ップ110〜132の処理を繰り返す。In step 132, it is determined whether the return from the terminal has been completed. If the process of generating the synchronization signal (step 110) and receiving the return signal (step 112) has not been completed for all the bits of the return data, the return has not yet been completed, so return from step 132 to step 110, The processing of steps 110 to 132 is repeated.
一方、返送データのビット数と同じ回数だけ前記ステッ
プ110〜132の処理を実行したときは、ステップ132にて
端末器からの返送が終了したものと判定し、処理をステ
ップ140に進める。ステップ140では返送データが正常な
ものか否かを判定する。この判定は、例えば送信した制
御信号CNTと同じ信号を肯定応答ACKとして返送させ、こ
の肯定応答ACKと自身の送信した制御信号CNTとが一致す
るか否かを判定することによって行なうことができる。
あるいは第3の実施例において示したように、端末器か
らの返送データの末尾に端末器における送受信の正常/
異常検出結果を示すステータス信号を付加し、このステ
ータス信号を受信したか否かに応じてステップ140の判
定を行なうこともできる。On the other hand, when the processing of steps 110 to 132 has been executed the same number of times as the number of bits of the returned data, it is determined in step 132 that the return from the terminal device has been completed, and the processing proceeds to step 140. In step 140, it is determined whether the returned data is normal. This determination can be performed, 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 and the control signal CNT transmitted by itself match.
Alternatively, as shown in the third embodiment, at the end of the return data from the terminal device, the normal transmission / reception of the terminal device /
It is also possible to add a status signal indicating the abnormality detection result and make the determination in step 140 depending on whether or not the status signal is received.
返送データが正常であれば、ステップ142にて起動デー
タをクリアする等して起動を解除した後、ステップ102
に戻る。If the returned data is normal, the start data is cleared in step 142 to cancel the start, and then step 102
Return to.
一方、返送データが異常であれば、ステップ142をスキ
ップしてステップ140から直接ステップ102に戻る。この
場合、起動データはそのまま残っているから、ステップ
102にて起動データ有りと判定され、この中央起動処理
が再度実行される。すなわち、起動データが正常に伝送
されるまでこの中央起動処理が繰り返される。On the other hand, if the return data is abnormal, step 142 is skipped and step 140 directly returns to step 102. In this case, the startup data remains as is, so step
At 102, it is determined that there is start data, and the central start process is executed again. That is, this central activation process is repeated until the activation data is normally transmitted.
通常モード処理 前記ステップ102にて起動データ無しと判定すると、次
にステップ150にて第28図(1)に示すような端末起動
用のスタート信号との最初の同期信号を送信し、ステッ
プ154にて端末器から電流モードの起動信号が送出され
たか否かを判定する。この最初のスタート信号に続く同
期信号に対して所定の時間(例えば600μS)どの端末
器からも応答がなければ、端末起動は無かったのである
から、ステップ102に戻る。Normal Mode Processing If it is determined in step 102 that there is no startup data, then in step 150, the first synchronization signal with the start signal for starting the terminal as shown in FIG. 28 (1) is transmitted, and then in step 154. Then, it is determined whether or not the current mode activation signal is transmitted from the terminal device. If there is no response from any of the terminals for the predetermined time (for example, 600 μS) to the synchronization signal following the first start signal, it means that the terminal has not been activated, and the process returns to step 102.
一方、ステップ154にて第28図(3)に示すような端末
起動信号が検出されると、端末起動有りと判定して処理
をステップ156に進め、ステップ156〜180の通常モード
処理を実行する。On the other hand, when the terminal activation signal as shown in FIG. 28 (3) is detected in step 154, it is determined that the terminal has been activated, the process proceeds to step 156, and the normal mode process of steps 156 to 180 is executed. .
この通常モード処理時は、先ずステップ156にて最初の
同期信号を送出し、続いてステップ158にて電流検出回
路12の出力を取り込む。In the normal mode processing, first, the first synchronizing signal is sent in step 156, and then the output of the current detection circuit 12 is fetched in step 158.
前述のように、この実施例において、所定時間(例えば
600μS)内の電流モード信号無しはその所定時間が属
する区間に対応する端末データの1ビットが“0"である
ことを意味し、電流モード信号有りはそのビットが“1"
であることを意味する。ステップ160では取り込んだ電
流検出回路12の出力を検査する。そして、電流モード信
号が検出されれば、端末データの現タイミングに対応す
るビット(端末信号)“1"であるから、ステップ164に
てドライブ回路13からの送出電圧を反転した後、処理を
次のステップ180に進める。As described above, in this embodiment, a predetermined time (for example,
No current mode signal within 600 μS means that one bit of the terminal data corresponding to the section to which the predetermined time belongs is “0”, and if there is a current mode signal, that bit is “1”.
Means that. In step 160, the output of the fetched current detection circuit 12 is inspected. If the current mode signal is detected, the bit (terminal signal) corresponding to the current timing of the terminal data is "1". Therefore, the output voltage from the drive circuit 13 is inverted in step 164, and then the process is performed. Proceed to step 180 of.
一方、ステップ160にて前記所定時間を経過しても端末
信号が受信されなければ、端末データの現タイミングに
対応するビットは“0"であるから、ステップ164の処理
をスキップしてステップ160からそのまま、ステップ180
に処理を進める。この場合、ドライブ回路13から伝送線
3への送出電圧は反転されない。On the other hand, if the terminal signal is not received even after the lapse of the predetermined time in step 160, the bit corresponding to the current timing of the terminal data is “0”, and thus the processing of step 164 is skipped and the processing from step 160 is started. As it is, step 180
Proceed to. In this case, the output voltage from the drive circuit 13 to the transmission line 3 is not inverted.
ステップ180では端末データの全部のビットに対する同
期信号送出処理(ステップ156)、受信処理(ステップ1
58)および信号有無判定処理(ステップ160)等の処理
が終了したか否かを判定する。これらの処理を終了して
いかなければ、処理をステップ156に戻して前記ステッ
プ156〜180の処理を繰り返す。In step 180, a synchronization signal transmission process (step 156) and a reception process (step 1) for all bits of the terminal data.
58) and signal presence / absence determination processing (step 160) and the like are determined. If these processes are not completed, the process is returned to step 156 and the processes of steps 156 to 180 are repeated.
ステップ156〜180の処理を端末データのビット数と同じ
だけ繰り返すと、ステップ180にて受信終了と判定し、
処理をステップ102に戻す。When the processes of steps 156 to 180 are repeated by the same number as the number of bits of the terminal data, it is determined that the reception is completed in step 180,
The process is returned to step 102.
B.端末器の動作 第27図を参照して、端末器5は、先ずステップ202にて
中央処理装置から電圧モードの中央起動信号が送出され
たか否かを判定する。中央処理装置から第26図ステップ
104の処理による中央起動信号が送出されていれば、処
理をステップ204に進め、ステップ204〜230の返送処理
を実行する。一方、送出されていなければ、ステップ25
0にて起動データの有無を判定する。中央処理装置へ送
出すべきデータすなわち起動データがあれば、ステップ
256〜280の循環処理からなる端末起動(込起動)処理を
実行する。ステップ202にて中央起動信号が送出されて
おらず、かつ自身から中央処理装置に送出する端末デー
タも無ければ、最初のステップ202に戻る。B. Operation of Terminal Device Referring to FIG. 27, the terminal device 5 first determines in step 202 whether or not a central activation signal in the voltage mode is transmitted from the central processing unit. Figure 26 Step from central processing unit
If the central activation signal by the process of 104 is transmitted, the process proceeds to step 204 and the return process of steps 204 to 230 is executed. On the other hand, if not sent, step 25
At 0, the presence or absence of startup data is determined. If there is data to be sent to the central processing unit, that is, activation data, step
Execute the terminal activation (internal activation) processing consisting of the circulation processing of 256 to 280. If the central activation signal has not been transmitted in step 202 and there is no terminal data to be transmitted from the central processing unit itself, the process returns to the first step 202.
返送処理 返送処理時は、ステップ204およびステップ210の循環処
理にて受信回路52の出力に基づき中央処理装置から送出
される(第26図のステップ104〜106)電圧モードの伝送
データをこの循環処理の1回ごとに1ビットずつ受信す
る。そして、所定ビット数の受信を終了すると、ステッ
プ210からステップ216に進み、ステップ216にて同期信
号を受信するまで待機する。同期信号を受信すると、続
くステップ222にて所定時間(例えば50μS)待機した
後、ステップ224にて返送データの1ビット(返送信
号)を送信回路53から伝送線3への電流モードで送出す
る。この電流モードの返送信号は中央処理装置によって
受信され(第26図ステップ112)、これにより中央処理
装置からの送出電圧モードが反転される(同ステップ11
8)。Return processing At the time of return processing, voltage mode transmission data sent from the central processing unit based on the output of the receiving circuit 52 in the circulation processing of steps 204 and 210 (steps 104 to 106 in FIG. 26) is subjected to this circulation processing. One bit is received each time. When the reception of the predetermined number of bits is completed, the process proceeds from step 210 to step 216 and waits until the synchronization signal is received in step 216. When the synchronization signal is received, after waiting for a predetermined time (for example, 50 μS) in the following step 222, 1 bit (return signal) of the return data is sent from the transmitting circuit 53 to the transmission line 3 in the current mode in step 224. This return signal in the current mode is received by the central processing unit (step 112 in FIG. 26), which reverses the output voltage mode from the central processing unit (step 11 in the same figure).
8).
ステップ228では伝送線3の電圧モード信号を受信して
この受信信号が直前に送出した返送信号と内容的に一致
するか否かを判定する。In step 228, the voltage mode signal of the transmission line 3 is received, and it is determined whether or not the received signal matches the return signal transmitted immediately before.
一致していれば、ステップ224で送出した返送信号が中
央処理装置で受信されて伝送線の電圧モードが反転され
たのであるから、そのビットの伝送は正常に行なわれた
ことになる。次のステップ230では返送信号の全ビット
の正常な送出が終了したか否かを判定する。全部のビッ
トについての返送が終了していなければステップ216に
戻って、次のビット(返送信号)について前記ステップ
216〜230の処理を繰り返す。一方、全部のビットについ
ての返送が終了していれば返送処理を終了してステップ
202に戻る。If they match, it means that the return signal sent in step 224 is received by the central processing unit and the voltage mode of the transmission line is inverted, so that the transmission of the bit is normally performed. In the next step 230, it is judged whether or not the normal transmission of all the bits of the return signal is completed. If all bits have not been returned, the process returns to step 216, and the above steps are performed for the next bit (return signal).
Repeat steps 216-230. On the other hand, if all bits have been returned, the return processing is terminated and the step
Return to 202.
前記ステップ228にて返送信号と受信信号が内容的に一
致しなければ、返送データのそのビット(返送信号)は
中央処理装置に正しく受信されなかったのであるから、
ステップ228から直接ステップ202に戻る。この場合、中
央処理装置においては所定ビット数の返送データが得ら
れない(第26図ステップ140)。このため、起動解除
(同ステップ142)処理がスキップされ、再度中央起動
処理が実行される。したがって、端末器はこれに対して
再度返送処理を実行することになり、結局、返送データ
の正常な伝送が行なわれるまで、中央処理装置の中央起
動処理とこれに対する端末器の返送処理が繰り返される
ことになる。If the return signal and the reception signal do not match in content in step 228, the bit of the return data (return signal) has not been correctly received by the central processing unit.
The process directly returns from step 228 to step 202. In this case, the central processing unit cannot obtain the return data of a predetermined number of bits (step 140 in FIG. 26). For this reason, the activation canceling process (step 142 in the same step) is skipped, and the central activation process is executed again. Therefore, the terminal device again executes the return processing, and the central processing of the central processing unit and the return processing of the terminal device in response thereto are repeated until the return data is normally transmitted. It will be.
端末起動処理 この端末起動処理時は、ステップ256にて中央処理装置
の第26図ステップ150またはステップ156の処理にて送出
される同期信号の受信を待機する。この同期信号を受信
すると、続くステップ258にて所定時間(例えば50μ
S)待機した後、ステップ260にて端末データの1ビッ
ト(端末信号)を送信回路53から伝送線3へ電流モード
で送出する。この電流モードの端末信号は中央処理装置
によって受信され(第26図ステップ160)、中央処理装
置から伝送線への送出電圧モードが反転される(同ステ
ップ164)。Terminal Start-up Processing During this terminal start-up processing, in step 256, the central processing unit waits for reception of the synchronization signal transmitted in step 150 or step 156 in FIG. When this synchronization signal is received, the following step 258 is performed for a predetermined time (for example, 50 μ).
S) After waiting, in step 260, 1 bit (terminal signal) of the terminal data is sent from the transmission circuit 53 to the transmission line 3 in the current mode. This current mode terminal signal is received by the central processing unit (FIG. 26, step 160), and the output voltage mode from the central processing unit to the transmission line is reversed (step 164).
ステップ268では伝送線3の電圧モード信号を受信して
この受信信号が直前に送出した端末信号と内容的に一致
するか否かを判定する。一致していれば、ステップ260
で送出した端末信号が中央処理装置で受信されている伝
送線の電圧モードが反転されたのであるから、端末デー
タのそのビットの伝送は正常に行なわれたことになる。In step 268, the voltage mode signal of the transmission line 3 is received and it is determined whether or not the received signal matches the terminal signal transmitted immediately before. If they match, step 260
Since the voltage mode of the transmission line in which the terminal signal sent in step 2 is received by the central processing unit is inverted, it means that the transmission of that bit of the terminal data has been normally performed.
次のステップ270では端末信号の全ビットの正常な送出
が終了したか否かを判定する。全部のビットについての
端末信号送出が終了していなければステップ256に戻っ
て、端末データの次のビット(端末信号)について前記
ステップ256〜270の処理を繰り返す。一方、全部のビッ
トについての信号送出が終了していればこの端末起動処
理を終了してステップ202に戻る。In the next step 270, it is determined whether or not the normal transmission of all bits of the terminal signal is completed. If the transmission of the terminal signal for all the bits has not been completed, the process returns to step 256, and the processes of steps 256 to 270 are repeated for the next bit (terminal signal) of the terminal data. On the other hand, if the signal transmission for all the bits is completed, this terminal start-up process is completed and the process returns to step 202.
一方、ステップ260にて送信した電流モード信号とステ
ップ268にて検査した電圧モード信号との内容が異なる
場合には、端末器から送出された電流モード信号が中央
処理装置に正しく受信されなかったと判定し、前記循環
処理をステップ268で中断してステップ202に戻る。この
場合、端末器の起動データはそのまま残っているから、
中央処理装置から端末起動用スタート信号が送出され
(第26図ステップ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 checked in step 268 are different, it is determined that the current mode signal transmitted from the terminal device was not correctly received by the central processing unit. Then, the circulation process is interrupted in step 268 and the process returns to step 202. In this case, the activation data of the terminal remains,
When the start signal for starting the terminal is sent from the central processing unit (step 150 in FIG. 26) and the process proceeds from step 202 to step 250, it is determined in this step 250 that there is starting data, and this terminal starting process is executed. Will be executed again. That is, this terminal activation process is repeated until the activation data is normally transmitted to the central activation process.
第29図は、中央処理装置から送出される同期信号SYNC
と、端末器から送出される電流モード信号RPIと、この
電流モード信号RPIを受信したことに応じて中央処理装
置から送出される電圧モード信号PRVとのタイミング関
係の一例を示す。FIG. 29 shows the synchronization signal SYNC sent from the central processing unit.
And an example of the timing relationship between the current mode signal RPI sent from the terminal and the voltage mode signal PRV sent from the central processing unit in response to receiving the current mode signal RPI.
同図の例では、端末器における同期クロックSYNCの立下
りから電流モード信号RPI送出までの時間が最大50μS
であり。中央処理装置において電流モード信号RPIを検
出してから電圧極性を反転(電圧モード信号PRVを送
出)するまでの時間が最大50μSであり、中継器等によ
る信号最大遅延時間は300μSである。In the example of the figure, the time from the fall of the synchronous clock SYNC to the sending of the current mode signal RPI in the terminal device is 50 μS at maximum.
And. The time from the detection of the current mode signal RPI to the reversal of the voltage polarity (transmission of the voltage mode signal PRV) in the central processing unit is 50 μS at maximum, and the maximum signal delay time by the repeater or the like is 300 μS.
[第5の実施例] 第30〜33図は、第5の実施例を説明するためのものであ
る。[Fifth Embodiment] FIGS. 30 to 33 are for explaining a fifth embodiment.
この第5の実施例は、第1図の信号伝送システムにおい
て、第4の実施例に係る第24図に示す構成の中央処理装
置1の第30図に示す構成の中央処理装置1と置き換えて
ある。The fifth embodiment is the same as the signal transmission system of FIG. 1 except that the central processing unit 1 of the configuration shown in FIG. 24 according to the fourth embodiment is replaced with the central processing unit 1 of the configuration shown in FIG. is there.
第30図は、この第5の実施例に係る中央処理装置1の機
能ブロック構成を示す。第24図の中央処理装置1は、中
央処理装置において端末器からへの電流モード信号が検
出されると、この検出信号の立上りで直ちにフリップフ
ロップ回路19の出力を反転していた。これに対して、第
30図の中央処理装置1は、さらにAND回路17を付加し、
立上り検出回路16の出力と信号処理装置11で同期信号か
ら一定時間遅れて発生するパルス信号とによってAND回
路17から出力される論理分出力でフリップフロップ回路
19の出力を反転している。第31図(a)は、フリップフ
ロップ回路19が無い場合の伝送線3の線間電圧波形図、
第31図(b)は、この第5の実施例における電圧波形図
である。立上り検出回路16、AND回路17およびフリップ
フロップ回路19等の機能は、いずれもCPU21の制御プロ
グラムによって実現される。FIG. 30 shows a functional block configuration of the central processing unit 1 according to the fifth embodiment. In the central processing unit 1 of FIG. 24, when the current processing mode signal from the terminal is detected in the central processing unit, the output of the flip-flop circuit 19 is immediately inverted at the rise of this detection signal. On the other hand,
The central processing unit 1 shown in FIG. 30 additionally includes an AND circuit 17,
The flip-flop circuit is a logical component output from the AND circuit 17 according to the output of the rising detection circuit 16 and the pulse signal generated in the signal processing device 11 with a certain time delay from the synchronization signal.
The output of 19 is inverted. FIG. 31 (a) is a line voltage waveform diagram of the transmission line 3 when the flip-flop circuit 19 is not provided,
FIG. 31 (b) is a voltage waveform diagram in the fifth embodiment. The functions of the rising edge detection circuit 16, the AND circuit 17, the flip-flop circuit 19, etc. are all realized by the control program of the CPU 21.
次に、第32図および第33図のフローチャートを参照しな
がら、第1図、第6図、第7図および第30図等によりそ
の構成を示されるシステムの動作を説明する。Next, the operation of the system whose configuration is shown in FIG. 1, FIG. 6, FIG. 7 and FIG. 30 will be described with reference to the flowcharts of FIG. 32 and FIG.
中央処理装置1、端末器5および監視表示盤7は、それ
ぞれの電源が投入されると、それぞれのCPUごとに内蔵
された制御プログラムに従って動作を開始する。先ず、
CPUに内蔵された各種メモリおよびレジスタ等をイニシ
ャライズした後、中央処理装置1は第32図のフローチャ
ートに示す、端末器5は第33図のフローチャートに示
す、そして監視表示盤7は前に説明した第11図のフロー
チャートに示す、それぞれの無限ループ処理を実行す
る。The central processing unit 1, the terminal unit 5 and the monitor display panel 7 start to operate according to a control program stored in each CPU when the respective power supplies are turned on. First,
After initializing the various memories and registers built in the CPU, the central processing unit 1 is shown in the flow chart of FIG. 32, the terminal 5 is shown in the flow chart of FIG. 33, and the monitor display panel 7 is explained previously. Each infinite loop process shown in the flowchart of FIG. 11 is executed.
A.中央処理装置の動作 第33図を参照して、中央処理装置1は、先ず、ステップ
102にて起動データの有無を判定する。端末器へ送出す
べきデータすなわち起動データが有れば、ステップ104
〜142の中央起動(親起動)処理を実行し、起動データ
が無ければ、ステップ150〜180の通常モード処理を実行
する。A. Operation of central processing unit Referring to FIG. 33, the central processing unit 1 starts with step
At 102, the presence or absence of start data is determined. If there is data to be sent to the terminal, that is, activation data, step 104
~ 142 central activation (parent activation) processing is executed, and if there is no activation data, normal mode processing of steps 150 to 180 is executed.
中央起動処理 中央起動処理時は、先ず、ステップ104にてその起動デ
ータに応じた前記第28図(2)〜に示すような、ス
タート信号ST、送信先端末器アドレスADRおよび制御信
号(起動データ)CNT等からなる伝送データをドライブ
回路13より電圧モードで伝送線3に送出する。この伝送
データ送出は、ステップ104の処理を1回経由するごと
に1ビットずつ行なわれる。次のステップ106はこのス
テップ104の処理が伝送データのビット数に対応する所
定の回数だけ繰り返されたか否かを判定するためのステ
ップで、ステップ104の処理回数がこの所定回数より少
なければ処理をステップ104に戻す。ステップ104の処理
が所定回数繰り返され、所定ビット数の電圧モード信号
が送出されると、ステップ106にて送信終了と判定し、
処理を次のステップ110に進める。Central start-up processing In the central start-up processing, first, in step 104, a start signal ST, a destination terminal address ADR and a control signal (start-up data) as shown in FIG. ) The transmission data composed of CNT or the like is sent from the drive circuit 13 to the transmission line 3 in the voltage mode. This transmission of the transmission data is performed one bit each time the processing of step 104 is passed once. The next step 106 is a step for determining whether or not the process of step 104 is repeated a predetermined number of times corresponding to the number of bits of transmission data. If the number of processes of step 104 is less than the predetermined number of times, the process is performed. Return to step 104. 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 transmitted, it is determined that the transmission is completed in step 106,
The process proceeds to the next step 110.
ステップ110ではレベル“1"の電圧パルスからなる同期
信号を発生する。続いて、ステップ112では電流検出回
路12の出力を取り込み、ステップ114にて端末器からの
電流モード信号の有無を判定する。前記の各実施例と同
様に、この実施例においても、端末器5は送出すべきデ
ータの1ビット(返送信号または端末信号)が“1"であ
れば電流モード信号を送出するが、“0"であるときは電
流モード信号を送出しない。したがって、ここでは所定
時間(例えば600μS)内に電流モードの信号が検出さ
れない場合は前記送出すべきデータのその所定時間が属
する区間に対応する1ビット(返送信号)が“0"である
ことを意味し、検出されればそのビット(返送信号)は
“1"であることを意味している。In step 110, a synchronization signal composed of voltage pulses of level "1" is generated. Then, in step 112, the output of the current detection circuit 12 is fetched, and in step 114, the presence or absence of the current mode signal from the terminal is determined. Similar to each of the above-described embodiments, also in this embodiment, the terminal 5 sends a current mode signal if one bit (return signal or terminal signal) of data to be sent is "0", but "0"", The current mode signal is not sent. Therefore, here, when the current mode signal is not detected within a predetermined time (for example, 600 μS), it is confirmed that 1 bit (return signal) corresponding to the section to which the predetermined time of the data to be transmitted belongs is “0”. If it is detected, it means that the bit (return signal) is “1”.
ステップ114にて返送信号有りと判定されれば、ステッ
プ116にて所定時間τ(例えばτ=100μS)待機して
後、ステップ118にてドライブ回路13からの送出電圧を
反転して処理をステップ132に進める。これにより、電
流モード信号が検出されると、電圧モード信号は同期信
号から一定時間τだけ遅れて反転する。一方、ステップ
114にて返送信号が検出されなければ、ステップ118をス
キップして、すなわちドライブ回路13からの送出電圧を
反転することなく直接ステップ132に処理を進める。If it is determined in step 114 that the return signal is present, after waiting for a predetermined time τ (eg, τ = 100 μS) in step 116, the output voltage from the drive circuit 13 is inverted in step 118 to perform the process in step 132. Proceed to. As a result, when the current mode signal is detected, the voltage mode signal is inverted with a delay of a fixed time τ from the synchronization signal. Meanwhile, step
If the return signal is not detected in 114, step 118 is skipped, that is, the process directly proceeds to step 132 without inverting the output voltage from the drive circuit 13.
ステップ132では端末器からの返送が終了したか否かを
判定する。返送データの全部のビットについて同期信号
発生(ステップ110)や返送信号受信(ステップ112)等
の処理が済んでいなければ、ステップ132からステップ1
10に戻って、ステップ110〜132の処理を繰り返す。In step 132, it is determined whether the return from the terminal has been completed. If processing such as synchronization signal generation (step 110) and return signal reception (step 112) has not been completed for all bits of the return data, step 132 to step 1
Returning to 10, the processing of steps 110 to 132 is repeated.
一方、返送データのビット数と同じ回数だけ前記ステッ
プ110〜132の処理を実行したときは、ステップ132にて
端末器からの返送が終了したものと判定し、処理をステ
ップ140に進める。ステップ140では返送データが正常な
ものか否かを判定する。この判定は、例えば送信した制
御信号CNTと同じ信号を肯定応答ACKとして返送させ、こ
の肯定応答ACKと自身の送信した制御信号CNTとが一致す
るか否かを判定することによって行なうことができる。
あるいは第3の実施例において示したように、端末器か
らの返送データの末尾に端末器における送受信の正常/
異常検出結果を示すステータス信号を付加し、このステ
ータス信号を受信したか否かに応じてステップ140の判
定を行なうこともできる。On the other hand, when the processing of steps 110 to 132 has been executed the same number of times as the number of bits of the returned data, it is determined in step 132 that the return from the terminal device has been completed, and the processing proceeds to step 140. In step 140, it is determined whether the returned data is normal. This determination can be performed, 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 and the control signal CNT transmitted by itself match.
Alternatively, as shown in the third embodiment, at the end of the return data from the terminal device, the normal transmission / reception of the terminal device /
It is also possible to add a status signal indicating the abnormality detection result and make the determination in step 140 depending on whether or not the status signal is received.
返送データが正常であれば、ステップ142にて起動デー
タをクリアする等して起動を解除した後、ステップ102
に戻る。If the returned data is normal, the start data is cleared in step 142 to cancel the start, and then step 102
Return to.
一方、返送データが異常であれば、ステップ142をスキ
ップしてステップ140から直接ステップ102に戻る。この
場合、起動データはそのまま残っているから、ステップ
102にて起動データ有りと判定され、この中央起動処理
が再度実行される。すなわち、起動データが正常に伝送
されるまでこの中央起動処理が繰り返される。On the other hand, if the return data is abnormal, step 142 is skipped and step 140 directly returns to step 102. In this case, the startup data remains as is, so step
At 102, it is determined that there is start data, and the central start process is executed again. That is, this central activation process is repeated until the activation data is normally transmitted.
通常モード処理 前記ステップ102にて起動データ無しと判定すると、次
にステップ150にて第28図(1)に示すような端末起動
用のスタート信号と最初の同期信号を送信し、ステップ
154にて端末器から電流モードの起動信号が送出された
か否かを判定する。この最初のスタート信号に続く同期
信号に対して所定の時間(例えば600μS)どの端末器
からも応答がなければ、端末起動は無かったのであるか
ら、ステップ102に戻る。Normal Mode Processing If it is determined in step 102 that there is no startup data, then in step 150, the start signal for starting the terminal and the first synchronization signal as shown in FIG. 28 (1) are transmitted, and step
At 154, it is determined whether or not a current mode activation signal is transmitted from the terminal device. If there is no response from any of the terminals for the predetermined time (for example, 600 μS) to the synchronization signal following the first start signal, it means that the terminal has not been activated, and the process returns to step 102.
一方、ステップ154にて第28図(3)に示すような端末
起動信号が検出されると、端末起動有りと判定して処理
をステップ156に進め、ステップ156〜180の通常モード
処理を実行する。On the other hand, when the terminal activation signal as shown in FIG. 28 (3) is detected in step 154, it is determined that the terminal has been activated, the process proceeds to step 156, and the normal mode process of steps 156 to 180 is executed. .
この通常モード処理時は、先ずステップ156にて最初の
同期信号を送出し、続いてステップ158にて電流検出回
路12の出力を取り込む。In the normal mode processing, first, the first synchronizing signal is sent in step 156, and then the output of the current detection circuit 12 is fetched in step 158.
前述のように、この実施例において、所定時間(例えば
600μS)内の電流モード信号無しはその所定時間が属
する区間に対応する端末データの1ビットが“0"である
ことを意味し、電流モード信号有りはそのビットが“1"
であることを意味する。ステップ160では取り込んだ電
流検出回路12の出力を検査する。そして、電流モード信
号が検出されれば、端末データの現タイミングに対応す
るビット(端末信号)は“1"であるから、ステップ162
にて所定時間τ(例えばτ=100μS)待機して、ステ
ップ164にてドライブ回路13からの送出電圧を反転した
後、処理をステップ180に進める。これらのステップ160
〜164の処理により、電流モード信号が検出されると、
電圧モード信号は同期信号から一定時間τだけ遅れて反
転する。As described above, in this embodiment, a predetermined time (for example,
No current mode signal within 600 μS means that one bit of the terminal data corresponding to the section to which the predetermined time belongs is “0”, and if there is a current mode signal, that bit is “1”.
Means that. In step 160, the output of the fetched current detection circuit 12 is inspected. Then, if the current mode signal is detected, the bit (terminal signal) corresponding to the current timing of the terminal data is "1".
At a predetermined time τ (for example, τ = 100 μS), the output voltage from the drive circuit 13 is inverted at step 164, and then the process proceeds to step 180. These steps 160
By the processing of ~ 164, when the current mode signal is detected,
The voltage mode signal is inverted with a delay of τ from the synchronizing signal.
一方、ステップ160にて前記所定時間を経過しても端末
信号が受信されなければ、端末データの現タイミングに
対応するビットは“0"であるから、ステップ164の処理
をスキップしてステップ160からそのまま、ステップ180
に処理を進める。この場合、ドライブ回路13から伝送線
3への送出電圧は反転されない。On the other hand, if the terminal signal is not received even after the lapse of the predetermined time in step 160, the bit corresponding to the current timing of the terminal data is “0”, and thus the processing of step 164 is skipped and the processing from step 160 is started. As it is, step 180
Proceed to. In this case, the output voltage from the drive circuit 13 to the transmission line 3 is not inverted.
ステップ180では端末データの全部のビットに対する同
期信号送出処理(ステップ156)、受信処理(ステップ1
58)および信号有無判定処理(ステップ160)等の処理
が終了したか否かを判定する。これらの処理を終了して
いなければ、処理をステップ156に戻して前記ステップ1
56〜180の処理を繰り返す。In step 180, a synchronization signal transmission process (step 156) and a reception process (step 1) for all bits of the terminal data.
58) and signal presence / absence determination processing (step 160) and the like are determined. If these processes have not been completed, the process returns to step 156 and the above step 1
Repeat the process from 56 to 180.
ステップ156〜180の処理を端末データのビット数と同じ
だけ繰り返すと、ステップ180にて受信終了と判定し、
処理をステップ102に戻す。When the processes of steps 156 to 180 are repeated by the same number as the number of bits of the terminal data, it is determined that the reception is completed in step 180,
The process is returned to step 102.
B.端末器の動作 第33図を参照して、端末器5は、先ずステップ202にて
中央処理装置から電圧モードの中央起動信号が送出され
たか否かを判定する。中央処理装置から第32図ステップ
104の処理による中央起動信号が送出されていれば、処
理をステップ204に進め、ステップ204〜230の返送処理
を実行する。一方、送出されていなければ、ステップ25
0にて起動データの有無を判定する。中央処理装置へ送
出すべきデータすなわち起動データがあれば、ステップ
256〜280の循環処理からなる端末起動(子起動)処理を
実行する。ステップ202にて中央起動信号が送出されて
おらず、かつ自身から中央処理装置に送出する端末デー
タも無ければ、最初のステップ202に戻る。B. Operation of Terminal Device Referring to FIG. 33, the terminal device 5 first determines in step 202 whether or not the central start signal in the voltage mode is transmitted from the central processing unit. Figure 32 step from central processing unit
If the central activation signal by the process of 104 is transmitted, the process proceeds to step 204 and the return process of steps 204 to 230 is executed. On the other hand, if not sent, step 25
At 0, the presence or absence of startup data is determined. If there is data to be sent to the central processing unit, that is, activation data, step
Execute the terminal start (child start) process consisting of 256 to 280 cyclic processes. If the central activation signal has not been transmitted in step 202 and there is no terminal data to be transmitted from the central processing unit itself, the process returns to the first step 202.
返送処理 返送処理時は、ステップ204およびステップ210の循環処
理にて受信回路52の出力に基づき中央処理装置から第32
図のステップ104の処理により送出される電圧モードの
伝送データをこの循環処理の1回ごとに1ビットずつ受
信する。そして、所定ビット数の受信を終了すると、ス
テップ210からステップ216に進み、ステップ216にて同
期信号を受信するまで待機する。同期信号を受信する
と、続くステップ224にて返送データの1ビット(返送
信号)を送信回路53から伝送線3へ電流モードで送出す
る。この電流モードの返送信号は中央処理装置によって
受信され(第32図ステップ112)、これにより中央処理
装置からの送出電圧モードが反転される(同ステップ11
8)。Return processing At the time of the return processing, the 32nd processing from the central processing unit is performed based on the output of the receiving circuit 52 in the circulation processing of step 204 and step 210.
The voltage mode transmission data sent by the process of step 104 in the figure is received one bit at each time of this cyclic process. When the reception of the predetermined number of bits is completed, the process proceeds from step 210 to step 216 and waits until the synchronization signal is received in step 216. When the synchronization signal is received, 1 bit (return signal) of the return data is sent from the transmitting circuit 53 to the transmission line 3 in the current mode in the following step 224. This return signal in the current mode is received by the central processing unit (step 112 in FIG. 32), which reverses the output voltage mode from the central processing unit (step 11 in the same figure).
8).
ステップ228では伝送線3の電圧モード信号を受信して
この受信信号が直前に送出した返送信号と内容的に一致
するか否かを判定する。In step 228, the voltage mode signal of the transmission line 3 is received, and it is determined whether or not the received signal matches the return signal transmitted immediately before.
一致していれば、ステップ224で送出した返送信号が中
央処理装置で受信されて伝送線の電圧モードが反転され
たのであるから、そのビットの伝送は正常に行なわれた
ことになる。次のステップ230では返送信号の全ビット
の正常な送出が終了したか否かを判定する。全部のビッ
トについての返送が終了していなければステップ216に
戻って、次のビット(返送信号)について前記ステップ
216〜230の処理を繰り返す。一方、全部のビットについ
ての返送が終了していれば返送処理を終了してステップ
202に戻る。If they match, it means that the return signal sent in step 224 is received by the central processing unit and the voltage mode of the transmission line is inverted, so that the transmission of the bit is normally performed. In the next step 230, it is judged whether or not the normal transmission of all the bits of the return signal is completed. If all bits have not been returned, the process returns to step 216, and the above steps are performed for the next bit (return signal).
Repeat steps 216-230. On the other hand, if all bits have been returned, the return processing is terminated and the step
Return to 202.
前記ステップ228にて返送信号と受信信号が内容的に一
致しなければ、返送データのそのビット(返送信号)は
中央処理装置に正しく受信されなかったのであるから、
ステップ228から直接ステップ202に戻る。この場合、中
央処理装置においては所定ビット数の返送データが得ら
れない(第32図ステップ140)。このため、起動解除
(同ステップ142)処理がスキップされ、再度中央起動
処理が実行される。したがって、端末器はこれに対して
再度返送処理を実行することになり、結局、返送データ
の正常な伝送が行なわれるまで、中央処理装置の中央起
動処理とこれに対する端末機の返送処理が繰り返される
ことになる。If the return signal and the reception signal do not match in content in step 228, the bit of the return data (return signal) has not been correctly received by the central processing unit.
The process directly returns 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. 32). For this reason, the activation canceling process (step 142 in the same step) is skipped, and the central activation process is executed again. Therefore, the terminal device again executes the return processing, and the central processing of the central processing unit and the return processing of the terminal corresponding thereto are repeated until the return data is normally transmitted. It will be.
端末起動処理 この端末起動処理時は、ステップ256にて中央処理装置
の第32図ステップ150またはステップ156の処理にて送出
される同期信号の受信を待機する。この同期信号を受信
すると続くステップ260にて端末データの1ビット(端
末信号)を送信回路53から伝送線3へ電流モードで送出
する。この電流モードの端末信号は中央処理装置によっ
て受信され(第32図ステップ160)、中央処理装置から
伝送線への送出電圧モードが反転される(同ステップ16
4)。Terminal Start-up Processing During this terminal start-up processing, in step 256, the central processing unit waits for reception of the synchronization signal sent out in step 150 or step 156 in FIG. When this synchronizing signal is received, in the following step 260, 1 bit (terminal signal) of the terminal data is sent from the transmission circuit 53 to the transmission line 3 in the current mode. This current-mode terminal signal is received by the central processing unit (step 160 in FIG. 32), and the output voltage mode from the central processing unit to the transmission line is reversed (step 16 in the same step 16).
Four).
ステップ268では伝送線3の電圧モード信号を受信して
この受信信号が直前に送出した端末信号と内容的に一致
するか否かを判定する。一致していれば、ステップ260
で送出した端末信号が中央処理装置で受信されて伝送線
の電圧モードが反転されたのであるから、端末データの
そのビットの伝送は正常に行なわれたことになる。次の
ステップ270では端末信号の全ビットの正常な送出が終
了したか否かを判定する。全部のビットについての端末
信号送出が終了していなければステップ256に戻り、端
末データの次のビット(端末信号)について前記ステッ
プ256〜270の処理を繰り返す。一方、全部のビットにつ
いての正常な信号送出が終了していればステップ280に
てこの端末起動処理を解除してステップ202に戻る。In step 268, the voltage mode signal of the transmission line 3 is received and it is determined whether or not the received signal matches the terminal signal transmitted immediately before. If they match, step 260
Since the central processing unit received the terminal signal sent in step 1 and the voltage mode of the transmission line was inverted, it means that the transmission of that bit of the terminal data was performed normally. In the next step 270, it is determined whether or not the normal transmission of all bits of the terminal signal is completed. If the transmission of the terminal signal has not been completed for all bits, the process returns to step 256, and the processes of steps 256 to 270 are repeated for the next bit (terminal signal) of the terminal data. On the other hand, if the normal signal transmission for all the bits is completed, the terminal starting process is canceled in step 280 and the process returns to step 202.
一方、ステップ260にて送信した電流モード信号とステ
ップ268にて検査した電圧モード信号との内容が異なる
場合には、端末器から送出された電流モード信号が中央
処理装置に正しく受信されなかったと判定し、前記循環
処理をステップ268で中断してステップ202に戻る。この
場合、端末器の起動データはそのまま残っているから、
中央処理装置から端末起動用スタート信号が送出され
(第26図ステップ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 checked in step 268 are different, it is determined that the current mode signal transmitted from the terminal device was not correctly received by the central processing unit. Then, the circulation process is interrupted in step 268 and the process returns to step 202. In this case, the activation data of the terminal remains,
When the start signal for starting the terminal is sent from the central processing unit (step 150 in FIG. 26) and the process proceeds from step 202 to step 250, it is determined in this step 250 that there is starting data, and this terminal starting process is executed. Will be executed again. That is, this terminal activation process is repeated until the activation data is normally transmitted to the central activation process.
[第6の実施例] 第34〜36図は、第6図の実施例を説明するためのもので
ある。[Sixth Embodiment] FIGS. 34 to 36 are for explaining the embodiment of FIG.
この第6の実施例は、第1図の信号伝送システムにおい
て、第2の実施例に係る第13図に示す構成の中央処理装
置1を第34図に示す構成の中央処理装置1と置き換えて
ある。The sixth embodiment is the same as the signal transmission system of FIG. 1, except that the central processing unit 1 of the configuration shown in FIG. 13 according to the second embodiment is replaced with the central processing unit 1 of the configuration shown in FIG. is there.
第34図は、この第6の実施例に係る中央処理装置1の機
能ブロックを示す。第34図の中央処理装置1は、第13図
の中央処理装置における微分回路15に代えて立下がり検
出回路16′を設けたものである。この構成により、中央
処理装置1から同期信号SYNCが送出され、この同期信号
SYNCに応じて端末器5から電流モードの返送信号(また
は端末信号)RPIが送出されると、中央処理装置1で
は、電流検出回路12がこの電流RPIに応じてHレベルの
電圧を出力する。さらに、端末器5からの返送信号RPI
が終了すると、電流検出回路12の出力はLレベルとな
る。立下がり検出回路16′は、この電流検出回路12の出
力がHレベルからLレベルへ変化する際の立下がりを検
出する。フリップフロップ回路19は、この立下がり検出
信号によりトリガされて出力を反転する。FIG. 34 shows the functional blocks of the central processing unit 1 according to the sixth embodiment. The central processing unit 1 shown in FIG. 34 is provided with a fall detection circuit 16 'instead of the differentiating circuit 15 in the central processing unit shown in FIG. With this configuration, the central processing unit 1 sends the synchronization signal SYNC, and the synchronization signal SYNC
When a current mode return signal (or terminal signal) RPI is sent from the terminal 5 in response to SYNC, in the central processing unit 1, the current detection circuit 12 outputs an H level voltage in accordance with the current RPI. Furthermore, the return signal RPI from the terminal device 5
When is finished, the output of the current detection circuit 12 becomes L level. The fall detection circuit 16 'detects a fall when the output of the current detection circuit 12 changes from H level to L level. The flip-flop circuit 19 is triggered by this falling detection signal to invert the output.
第35図(b)は、この第6の実施例における伝送線3の
線間電圧波形を示す。なお、同図(a)は、第15図
(a)に示したと同様の従来例における伝送線の線間電
圧波形を示す。また、第35図(c)は、この第6の実施
例における端末器5からの返送信号の電流波形を示す。FIG. 35 (b) shows the line voltage waveform of the transmission line 3 in the sixth embodiment. It should be noted that FIG. 15A shows a line voltage waveform of the transmission line in the conventional example similar to that shown in FIG. Further, FIG. 35 (c) shows the current waveform of the return signal from the terminal 5 in the sixth embodiment.
この第6の実施例においては、端末器5から電流モード
信号RPIが出力されたときはこの電流モード信号RPIが終
了してはじめて伝送線3の電圧モードを切り換えてい
る。これに対し、前記第2の実施例においては、端末器
5から出力される電流モード号RPIの変化を検出する都
度、伝送線3の電圧モードを切り換えており、この場
合、電流モード信号RPIが歪むおそれがある。In the sixth embodiment, when the current mode signal RPI is output from the terminal device 5, the voltage mode of the transmission line 3 is switched only when the current mode signal RPI ends. On the other hand, in the second embodiment, the voltage mode of the transmission line 3 is switched every time a change in the current mode signal RPI output from the terminal 5 is detected. In this case, the current mode signal RPI is changed. May be distorted.
第34図に戻って、フリップフロップ回路19は、同期信号
発生回路18から出力される同期信号の立下がりによって
出力をリセットされ、かつ信号処理回路11によっても必
要に応じて所定の出力状態にセットまたはリセットされ
る。Returning to FIG. 34, the flip-flop circuit 19 has its output reset by the fall of the synchronizing signal output from the synchronizing signal generating circuit 18, and is also set to a predetermined output state by the signal processing circuit 11 if necessary. Or it is reset.
第34図のフリップフロップ回路19および立下り検出回路
16′等の機能は、いずれもCPU21の制御プログラムによ
って実現される。第36図は、上記機能を実現するための
制御プログラムを示すフローチャートである。このフロ
ーチャートは、第18図のものに対し、ステップ118の処
理を除去したものである。したがって、この第6の実施
例において、中央処理装置1および端末器5は、中央処
理装置1がステップ118の出力電圧反転動作を行なわな
いことを除き、第16〜19図を参照して前述したと全く同
様に動作する。Flip-flop circuit 19 and fall detection circuit of FIG. 34
The functions such as 16 'are all realized by the control program of the CPU 21. FIG. 36 is a flowchart showing a control program for realizing the above functions. This flowchart is obtained by removing the processing in step 118 from that of FIG. Therefore, in the sixth embodiment, the central processing unit 1 and the terminal 5 have been described above with reference to FIGS. 16 to 19 except that the central processing unit 1 does not perform the output voltage inverting operation of step 118. Works exactly the same as.
このように、中央処理装置1にて端末器5からの信号待
機期間に1つまたは複数の同期信号を送出し、端末器5
側ではこの同期信号に応じたタイミングで電流モードの
返送信号または端末信号の送出を行なうとともに、中央
処理装置にてこの返送信号または端末信号の立下がりを
検出して伝送線の電圧モードを反転することによって、 中央処理装置側から同期パルスを送出するためタイミ
ングがとり易い。In this way, the central processing unit 1 sends one or a plurality of synchronization signals during the signal waiting period from the terminal device 5,
On the side, the current mode return signal or the terminal signal is sent at the timing according to the synchronizing signal, and the central processing unit detects the fall of the return signal or the terminal signal to invert the voltage mode of the transmission line. As a result, the synchronization pulse is sent from the central processing unit side, so the timing is easy to take.
中央処理装置側で電流モード信号検出後伝送線の電圧
モードを反転するため、所定の端末器でデータが正しく
受けとられたかを伝送線のどの位置においても、すなわ
ちどの端末機および監視表示盤においても確認すること
ができる。Since the central processing unit inverts the voltage mode of the transmission line after detecting the current mode signal, it can be confirmed at any position of the transmission line whether the data was correctly received by the predetermined terminal device, that is, which terminal device and monitoring display panel. You can also check.
という前記第2の実施例と同様の長所に加え、 極性反転タイミングと電流モード信号の重複が無いた
め、電流モード信号の歪が発生しない。In addition to the same advantages as those of the second embodiment, since the polarity reversal timing and the current mode signal do not overlap, distortion of the current mode signal does not occur.
という効果が得られる。The effect is obtained.
[発明の効果] 請求項1および2記載の発明によれば、中央処理装置
は、電流モードの伝送信号の変化を検出したときに伝送
信号の極性を反転させて送出するため、伝送線に対する
端末器の接続位置に拘らずに他の端末器の信号を検出す
ることができるようになる。また、端末器から送出され
た伝送信号に対応した特別のアンサー信号の送受信が不
要となるため、伝送速度の低下を誘発することがない。[Advantages of the Invention] According to the inventions of claims 1 and 2, the central processing unit inverts the polarity of the transmission signal when detecting a change in the transmission signal in the current mode and sends it out. It becomes possible to detect the signal of another terminal regardless of the connection position of the terminal. In addition, since it is not necessary to send and receive a special answer signal corresponding to the transmission signal sent from the terminal device, a decrease in transmission rate is not induced.
さらに請求項2記載の発明によれば、上述の効果に加え
て、表示盤を伝送線の任意の位置に接続することができ
るという効果があるため、好適なランダム伝送が可能に
なる。Further, according to the invention described in claim 2, in addition to the above-mentioned effect, there is an effect that the display board can be connected to an arbitrary position of the transmission line, so that suitable random transmission can be performed.
また、請求項3〜6記載の発明によれば、中央処理装置
は、電流モードの返送信号の変化または返送信号の有検
出に応じて伝送信号の極性を反転させて送出する。した
がって、伝送線に対する端末器の接続位置に拘らずに他
の端末器の信号を検出することができるようになる。ま
た、端末器から送出された伝送信号に対応した特別のア
ンサー信号の送受信が不要となるため、伝送速度の低下
を誘発することがない。さらに、端末器からの返送信号
の伝送タイミングは同期信号に基づき決定されるため、
伝送のタイミング合わせが容易になるという効果があ
る。Further, according to the invention described in claims 3 to 6, the central processing unit inverts the polarity of the transmission signal in accordance with the change of the return signal in the current mode or the detection of the presence of the return signal, and transmits the signal. Therefore, it becomes possible to detect the signal of another terminal regardless of the connection position of the terminal to the transmission line. In addition, since it is not necessary to send and receive a special answer signal corresponding to the transmission signal sent from the terminal device, a decrease in transmission rate is not induced. Furthermore, since the transmission timing of the return signal from the terminal is determined based on the synchronization signal,
This has the effect of facilitating transmission timing adjustment.
第1図は、この発明の第1の実施例に係る信号伝送シス
テムの全体構成を示すブロック図、 第2図は、第1図のシステムにおける中央処理装置の機
能ブロック図、 第3図は、第1図のシステムの伝送信号フォーマット説
明図、 第4図は、第1図のシステムにおける端末器の機能ブロ
ック図、 第5図は、第1図のシステムにおける監視表示盤の機能
ブロック図、 第6図は、第2図の中央処理装置の具体例を示す回路
図、 第7図は、第4図の端末器の具体例を示す回路図、 第8図は、第5図の監視表示盤の具体例を示す回路図、 第9図は、第6図の中央処理装置の動作を示すフローチ
ャート、 第10図は、第7図の端末器の動作を示すフローチャー
ト、 第11図は、第8図の監視表示盤の動作を示すフローチャ
ート、 第12図は、第1の実施例の変形例を示す伝送信号フォー
マット図、 第13図は、この発明の第2の実施例に係る中央処理装置
の機能ブロック図、 第14図は、この発明の第2の実施例に係る端末器の機能
ブロック図、 第15図は、この発明の第2の実施例に係る伝送信号フォ
ーマット説明図、 第16および第18図は、第13図の中央処理装置の動作を示
すフローチャート、 第17および第19図は、第14図の端末器の動作を示すフロ
ーチャート、 第20図は、この発明の第3の実施例に係る中央処理装置
の動作説明のためのフローチャート、 第21図は、この発明の第3の実施例に係る端末器の動作
説明のためのフローチャート、 第22および23図は、この発明の第3の実施例における衝
突時起動端末検出動作説明のための伝送信号フォーマッ
ト説明図、 第24図は、この発明の第4の実施例に係る中央処理装置
の機能ブロック図、 第25図は、この発明の第4の実施例に係る伝送信号フォ
ーマット説明図、 第26図は、この発明の第4の実施例に係る中央処理装置
の動作説明のためのフローチャート、 第27図は、この発明の第4の実施例に係る端末器の動作
説明のためのフローチャート、 第28図は、この発明の第4の実施例に係る伝送信号の動
作モード別詳細フォーマット 第29図は、この発明の第4の実施例における信号伝送遅
れを説明するためのタイミング図、 第30図は、この発明の第5の実施例に係る中央処理装置
の機能ブロック図、 第31図は、この発明の第5の実施例に係る伝送信号フォ
ーマット説明図、 第32図は、この発明の第5の実施例に係る中央処理装置
の動作を示すフローチャート、 第33図は、この発明の第5の実施例の係る端末器の動作
を示すフローチャート、 第34図は、この発明の第6の実施例に係る中央処理装置
の機能ブロック図、 第35図は、この発明の第6の実施例に係る伝送信号フォ
ーマット説明図、そして 第36図は、この発明の第6の実施例に係る中央処理装置
の動作を示すフローチャートである。 1:中央処理装置 3:伝送線 5(5−1,5−2,5−3,…):端末器 7:監視表示盤 9:負荷装置 11,51:信号処理回路 12:電流検出回路 15:微分回路 16:立上がり検出回路 16′:立下がり検出回路 18,55:同期信号発生回路 19,57:フリップフロップ回路 20,53:送信回路 21,61,71:CPU 55:同期信号検出回路 RPI:電流モード信号 RPV:電圧モード信号 SYNC:同期信号FIG. 1 is a block diagram showing an overall configuration of a signal transmission system according to a first 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 an explanatory view of a transmission signal format of the system of FIG. 1, FIG. 4 is a functional block diagram of a terminal in the system of FIG. 1, and FIG. 5 is a functional block diagram of a monitor display panel in the system of FIG. 6 is a circuit diagram showing a concrete example of the central processing unit of FIG. 2, FIG. 7 is a circuit diagram showing a concrete example of the terminal unit of FIG. 4, and FIG. 8 is a monitoring display panel of FIG. FIG. 9 is a flow chart showing the operation of the central processing unit of FIG. 6, FIG. 10 is a flow chart showing the operation of the terminal unit of FIG. 7, and FIG. FIG. 12 is a flow chart showing the operation of the monitor display panel shown in FIG. FIG. 13 is a functional block diagram of a central processing unit according to a second embodiment of the present invention, and FIG. 14 is a terminal device according to the second embodiment of the present invention. 15 is a functional block diagram, FIG. 15 is an explanatory diagram of a transmission signal format according to the second embodiment of the present invention, FIGS. 16 and 18 are flowcharts showing the operation of the central processing unit of FIG. 13, 17 and FIG. 19 is a flowchart showing the operation of the terminal device of FIG. 14, FIG. 20 is a flowchart for explaining the operation of the central processing unit according to the third embodiment of the present invention, and FIG. 21 is of the present invention. 22 is a flow chart for explaining the operation of the terminal according to the third embodiment, FIGS. 22 and 23 are explanatory diagrams of a transmission signal format for explaining the operation of detecting a terminal activated at the time of collision in the third embodiment of the present invention, FIG. 24 shows a fourth embodiment of the present invention. FIG. 25 is a functional block diagram of the central processing unit, FIG. 25 is an explanatory view of a transmission signal format according to the fourth embodiment of the present invention, and FIG. 26 is an operation explanation of the central processing unit according to the fourth embodiment of the present invention. 27 is a flowchart for explaining the operation of the terminal according to the fourth embodiment of the present invention, and FIG. 28 is an operation mode of the transmission signal according to the fourth embodiment of the present invention. Another detailed format FIG. 29 is a timing chart for explaining a signal transmission delay in the fourth embodiment of the invention, and FIG. 30 is a functional block diagram of a central processing unit according to the fifth embodiment of the invention. , FIG. 31 is an explanatory diagram of a transmission signal format according to the fifth embodiment of the present invention, FIG. 32 is a flowchart showing the operation of the central processing unit according to the fifth embodiment of the present invention, and FIG. According to the fifth embodiment of the present invention FIG. 34 is a functional block diagram of a central processing unit according to the sixth embodiment of the present invention, and FIG. 35 is a description of a transmission signal format according to the sixth embodiment of the present invention. FIG. 36 and FIG. 36 are flowcharts showing the operation of the central processing unit according to the sixth embodiment of the present invention. 1: Central processing unit 3: Transmission line 5 (5-1, 5-2, 5-3, ...): Terminal device 7: Monitor display panel 9: Load device 11,51: Signal processing circuit 12: Current detection circuit 15 : Differentiation circuit 16: Rise detection circuit 16 ': Fall detection circuit 18,55: Synchronous signal generation circuit 19,57: Flip-flop circuit 20,53: Transmission circuit 21,61,71: CPU 55: Synchronous signal detection circuit RPI : Current mode signal RPV: Voltage mode signal SYNC: Synchronization signal
Claims (6)
ス情報を含む電圧モードの伝送信号を時分割して伝送線
を介して送出する送信手段と、伝送線を介して入力した
電流モードの伝送信号の変化を検出する電流検出手段、
および電流検出手段が電流モードの伝送信号の変化を検
出したときに送信手段から送出する伝送信号の極性を反
転させる電圧反転手段と設けた中央処理装置と; 伝送線に接続され、電流モードの伝送信号を時分割して
中央処理装置に送出する複数の端末器と; を備えたことを特徴とする信号伝送システム。1. Transmission means for time-divisionally transmitting a voltage mode transmission signal containing control information and address information for specifying a control target through a transmission line, and a current mode transmission signal input via the transmission line. Current detection means for detecting a change in
And a central processing unit provided with voltage inverting means for inverting the polarity of the transmission signal sent from the transmitting means when the current detection means detects a change in the current mode transmission signal; and a current mode transmission connected to the transmission line. A signal transmission system comprising: a plurality of terminals for time-divisionally transmitting signals to a central processing unit;
ス情報を含む電圧モードの伝送信号を時分割して伝送線
を介して送出する送信手段と、伝送線を介して入力した
電流モードの伝送信号の変化を検出する電流検出手段、
および電流検出手段が電流モードの伝送信号の変化を検
出したときに送信手段から送出する伝送信号の極性を反
転させる電圧反転手段と設けた中央処理装置と; 伝送線に接続され、電流モードの伝送信号を時分割して
中央処理装置に送出する複数の端末器と; 伝送線に接続され、中央処理装置から送出された電圧モ
ードの伝送信号を受信して伝送内容を表示する表示盤
と; を備えたことを特徴とする信号伝送システム。2. Transmitting means for time-divisionally transmitting a voltage mode transmission signal including control information and address information for specifying a control target through a transmission line, and a current mode transmission signal input through the transmission line. Current detection means for detecting a change in
And a central processing unit provided with voltage inverting means for inverting the polarity of the transmission signal sent from the transmitting means when the current detection means detects a change in the current mode transmission signal; and a current mode transmission connected to the transmission line. A plurality of terminals for time-divisionally transmitting signals to the central processing unit; a display panel connected to the transmission line for receiving voltage mode transmission signals transmitted from the central processing unit and displaying the transmission contents; A signal transmission system characterized by being provided.
報、制御対象からの返送信号を要求する返送要求信号お
よび返送信号の送出タイミングを示す同期信号を含む電
圧モードの伝送信号を時分割して伝送線を介して送出す
る送信手段と、伝送線を介して入力した電流モードの返
送信号の変化を検出する電流検出手段、および電流検出
手段が電流モードの返送信号の変化を検出したときに送
信手段から送出する伝送信号の極性を反転させる電圧反
転手段と設けた中央処理装置と; 同期信号を検出する同期信号検出手段と、同期信号検出
手段が同期信号を検出したときに、返送要求信号に応答
した電流モードの返送信号を時分割して伝送線を介して
中央処理装置に送出する送信手段とを設けた複数の端末
器と; を備えたことを特徴とする信号伝送システム。3. A voltage mode transmission signal including control information, address information for specifying a control target, a return request signal for requesting a return signal from the control target, and a synchronization signal indicating the timing of sending back the return signal in a time division manner. Transmitting means for transmitting via the transmission line, current detecting means for detecting a change in the current mode return signal input via the transmission line, and transmitting when the current detecting means detects a change in the current mode return signal A central processing unit provided with voltage inverting means for inverting the polarity of the transmission signal sent from the means; a synchronization signal detecting means for detecting the synchronization signal, and a return request signal when the synchronization signal detecting means detects the synchronization signal A plurality of terminal devices provided with transmitting means for time-divisionally transmitting the responded current mode return signal to the central processing unit via a transmission line; Transmission system.
期して返送された電流モードの返送信号の変化を検出し
たとき、同期信号から所定時間遅らせて伝送信号の極性
を反転させるように構成されていることを特徴とする請
求項3記載の信号伝送システム。4. The voltage detecting means, when detecting a change in the return signal in the current mode returned from the terminal in synchronization with the synchronization signal, delays the synchronization signal by a predetermined time and inverts the polarity of the transmission signal. The signal transmission system according to claim 3, wherein the signal transmission system is configured.
期して返送された電流モードの返送信号の変化を検出し
たとき、電流モードの返送信号の立ち上がりにより伝送
信号の極性を反転させるように構成されていることを特
徴とする請求項3記載の信号伝送システム。5. The voltage reversing means reverses the polarity of the transmission signal at the rising edge of the current mode return signal when detecting a change in the current mode return signal returned from the terminal device in synchronization with the synchronization signal. The signal transmission system according to claim 3, wherein the signal transmission system is configured as follows.
報、制御対象からの返送信号を要求する返送要求信号お
よび返送信号の送出タイミングを示す同期信号を含む電
圧モードの伝送信号を時分割して伝送線を介して送出す
る送信手段と、伝送線を介して入力した電流モードの返
送信号の有無を検出する電流検出手段、および電流検出
手段が電流モードの返送信号の有りを検出したときに、
返信信号の終了後送信手段から送出する伝送信号の極性
を反転させる電圧反転手段と設けた中央処理装置と; 同期信号を検出する同期信号検出手段と、同期信号検出
手段が同期信号を検出したときに、返送要求信号に応答
した電流モードの返送信号を時分割して伝送線を介して
中央処理装置に送出する送信手段とを設けた複数の端末
器と; を備えたことを特徴とする信号伝送システム。6. A voltage mode transmission signal including control information, address information for specifying a control target, a return request signal for requesting a return signal from the control target, and a synchronization signal indicating the timing of sending back the return signal in a time division manner. Transmitting means for sending out via the transmission line, current detecting means for detecting the presence or absence of the current mode return signal input via the transmission line, and when the current detecting means detects the presence of the current mode return signal,
A central processing unit provided with voltage inverting means for inverting the polarity of the transmission signal sent from the transmitting means after the completion of the reply signal; a synchronizing signal detecting means for detecting the synchronizing signal, and a synchronizing signal detecting means for detecting the synchronizing signal And a plurality of terminals provided with a transmission means for time-sharing the current mode return signal in response to the return request signal and transmitting the current mode return signal to the central processing unit via the transmission line; Transmission system.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63328815A JPH07105802B2 (en) | 1988-08-31 | 1988-12-28 | Signal transmission system |
| EP19890116011 EP0357038A3 (en) | 1988-08-31 | 1989-08-30 | Signal transmission system and method, in which operation response time can be shortened |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP21803188 | 1988-08-31 | ||
| JP63-218031 | 1988-08-31 | ||
| JP63328815A JPH07105802B2 (en) | 1988-08-31 | 1988-12-28 | Signal transmission system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02161845A JPH02161845A (en) | 1990-06-21 |
| JPH07105802B2 true JPH07105802B2 (en) | 1995-11-13 |
Family
ID=26522353
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63328815A Expired - Fee Related JPH07105802B2 (en) | 1988-08-31 | 1988-12-28 | Signal transmission system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07105802B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1697339B (en) | 2004-05-11 | 2011-01-19 | 瑞昱半导体股份有限公司 | Mixed-mode transmission unit and network device with mixed-mode transmission unit |
| WO2011013716A1 (en) * | 2009-07-28 | 2011-02-03 | パナソニック電工株式会社 | Communication system and communication terminal |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5432009A (en) * | 1977-08-15 | 1979-03-09 | Matsushita Electric Works Ltd | Multiple transmission device of 2-core exclusive wire |
| JPS5489411A (en) * | 1977-12-27 | 1979-07-16 | Komatsu Mfg Co Ltd | Data transmission system using both voltage and current signals |
| JPS58101591A (en) * | 1981-12-14 | 1983-06-16 | Tamura Electric Works Ltd | Signal transmission system |
| JPS58101590A (en) * | 1981-12-14 | 1983-06-16 | Tamura Electric Works Ltd | Signal transmission and reception system |
-
1988
- 1988-12-28 JP JP63328815A patent/JPH07105802B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02161845A (en) | 1990-06-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2119322B1 (en) | Communication protocol for a lighting control system | |
| US7787485B2 (en) | Method of transmitting a high-priority message in a lighting control system | |
| US4796025A (en) | Monitor/control communication net with intelligent peripherals | |
| US6507158B1 (en) | Protocol enhancement for lighting control networks and communications interface for same | |
| JPH07105802B2 (en) | Signal transmission system | |
| JPH08265308A (en) | Two-way simultaneous communication method, its communication device, and programmable controller using the communication method | |
| KR920009049B1 (en) | Signal transmission system | |
| JPH0265547A (en) | Signal transmission system | |
| DE10034087B4 (en) | Fieldbus system with minimized hardware architecture | |
| JPH02260844A (en) | Signal transmission system | |
| JPH02210935A (en) | Signal transmission system | |
| JP2995882B2 (en) | Multiplex transmission method | |
| JPS6219062Y2 (en) | ||
| JPH02200095A (en) | Signal transmission system | |
| US20240289291A1 (en) | Master/slave system conforming to i2c communication protocol | |
| JPH03117244A (en) | Transmission system | |
| JPH0659054B2 (en) | Data transmission device | |
| CN113672540B (en) | Two-bus system | |
| JPH03203434A (en) | Signal transmission equipment | |
| JP3070832B2 (en) | Air conditioner data communication device | |
| JPH03285428A (en) | Signal transmission system | |
| JP3019103B2 (en) | Remote monitoring and control system | |
| JPH05176379A (en) | Remote control device | |
| JPH03285429A (en) | Signal transmission system | |
| JPH03203435A (en) | Signal transmission equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |