JPH0662466A - Data transmitting/receiving method and its system - Google Patents

Data transmitting/receiving method and its system

Info

Publication number
JPH0662466A
JPH0662466A JP20824092A JP20824092A JPH0662466A JP H0662466 A JPH0662466 A JP H0662466A JP 20824092 A JP20824092 A JP 20824092A JP 20824092 A JP20824092 A JP 20824092A JP H0662466 A JPH0662466 A JP H0662466A
Authority
JP
Japan
Prior art keywords
pulse
instruction code
slave station
data
voltage
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.)
Granted
Application number
JP20824092A
Other languages
Japanese (ja)
Other versions
JP3277390B2 (en
Inventor
Soichi Takano
惣一 高野
Nobuyuki Shimizu
信之 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Koyo Electronics Industries Co Ltd
Original Assignee
Koyo Electronics Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Koyo Electronics Industries Co Ltd filed Critical Koyo Electronics Industries Co Ltd
Priority to JP20824092A priority Critical patent/JP3277390B2/en
Publication of JPH0662466A publication Critical patent/JPH0662466A/en
Application granted granted Critical
Publication of JP3277390B2 publication Critical patent/JP3277390B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Selective Calling Equipment (AREA)

Abstract

PURPOSE:To attain a self-diagnostic operation at the side of a slave station by producing the data at the side of the slave station in response to the instruction codes and sending these data to a master station together with the normal or abnormal state of transmission, the connection state of the slave station, and the number of connected slave stations. CONSTITUTION:An output unit 11 of a master station 10 sends the data on the 1st pulse to a host device via the shift registers 16 and 17. An output unit 12 outputs the data on the 2nd pulse to the host device via the shift registers 18 and 19. An input unit 13 inputs the data on the 1st pulse and then outputs the data to a transmission line 28 via a shift register 20. An input unit 14 inputs an instruction pulse and outputs it to the line 28 and at the same time controls the operation of a controller 22. An input unit 15 inputs the total number of slave stations through the host device in response to an instruction code and controls the value of a counter 23 via a coincidence circuit 24. Then a controller 22 decides whether the slave stations are identical with the output or input units.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はON/OFF信号からな
るデータの送受信方法及びそのシステム、特にその診断
機能等に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of transmitting and receiving data consisting of ON / OFF signals and its system, and more particularly to its diagnostic function.

【0002】[0002]

【従来の技術および発明が解決しようとする課題】デー
タを送受信する方法には各種の方法があるが、例えば非
常にローラルな通信方法としてセンサ又は出力ユニット
のON/OFF信号を伝達する方法も各種提案されてい
る。その場合のシステムは、上位機種と接続される親局
と入力ユニット(センサ)又は出力ユニットからなる子
局とから構成されている。この親局と子局との通信方法
には、例えばディジィチェイン方式、シフトレジスタ方
式、子局アドレス方式等がある。これらの方式の通信速
度には次のような相対関係がある。 (ディジィチェイン方式)=(シフトレジスタ方式)<
<(子局アドレス方式) ところで、このような通信システムにおいて途中に子局
を追加する場合には、「ディジィチェイン方式」及び
「シフトレジスタ方式」は、追加した子局に後続する全
ての子局について番地を付与し直す必要があり、また、
上位機種のプログラムも変更する必要も発生する。勿
論、「子局アドレス方式」の子局の追加は新しい番地を
付して配線すればよいので、その処理は容易である。
2. Description of the Related Art There are various methods for transmitting and receiving data, and for example, various methods for transmitting an ON / OFF signal of a sensor or an output unit are used as a very rolling communication method. Proposed. In that case, the system is composed of a master station connected to the host model and a slave station including an input unit (sensor) or an output unit. The communication method between the master station and the slave station includes, for example, a daisy chain method, a shift register method, and a slave station address method. The communication speeds of these methods have the following relative relationships. (Dizzy chain method) = (Shift register method) <
<(Slave station address system) By the way, when a slave station is added midway in such a communication system, the "daisy chain system" and the "shift register system" are all slave stations subsequent to the added slave station. It is necessary to reassign the address for
It is also necessary to change the program of the higher model. Of course, the addition of a slave station of the "slave station address method" may be done by wiring with a new address, so that the processing is easy.

【0003】また、いずれの方式も子局を含め子局に接
続されたセンサ、出力素子等の電源とデータ通信を同一
線路に重畳して伝送することはできなかった。つまり、
「子局アドレス方式」は基本的には電源とデータ通信路
とを別線路により構成している。「ディジィチェイン方
式」及び「シフトレジスタ方式」においては、電源とデ
ータ通信とを一線路に重畳して伝送することが可能であ
るが、タイミング線が必要であった。更に、「子局アド
レス方式」においてはデータ信号をFM変調して電源と
重畳伝送したとしても回路が複雑になり、また、FM変
調の基本波が最高線路パルス幅となり、データの通信速
度が益々遅くなる。
Further, in any of the systems, it has been impossible to superimpose and transmit power supply and data communication such as sensors and output elements connected to the slave station including the slave station on the same line. That is,
In the "slave station address system", the power supply and the data communication path are basically constructed by separate lines. In the "daisy chain method" and the "shift register method", it is possible to superimpose and transmit a power supply and data communication on one line, but a timing line is required. Further, in the "slave station addressing method", even if the data signal is FM-modulated and superposed and transmitted with the power supply, the circuit becomes complicated, and the fundamental wave of FM-modulation has the maximum line pulse width, so that the data communication speed becomes more and more. Become slow.

【0004】このような状況に鑑みて、出願人はPCT
/JP91/01120において、ディジィチェイン方
式及びシフトレジスタ方式の通信速度の高速性と、子局
アドレス方式の追加設定の容易さを有し、更に親局から
の伝送は子局と子局に接続されたセンサ、出力素子等の
電源とデータ通信とを2本の伝送ライン(同一線路)で
行うことができるようにしたデータの送受信方法及びそ
のシステムを提案した。しかしがら、この提案によるシ
ステムにおいては、送受信の確認、子局の出力及び入力
の設定の確認、子局の接続の確認、子局のエラーメッセ
ージ等の診断機能については考慮されていなかった。
[0004] In view of such a situation, the applicant has a PCT
/ JP91 / 01120, it has high communication speed of daisy chain method and shift register method and easy additional setting of slave station address method. Furthermore, transmission from the master station is connected to the slave station and slave station. In addition, a data transmission / reception method and a system thereof were proposed in which power supply for sensors, output elements and the like and data communication can be performed by two transmission lines (same line). However, in the system according to this proposal, the functions of checking transmission / reception, checking the output and input settings of the slave station, checking the connection of the slave station, and error functions of the slave station are not considered.

【0005】本発明は、このような状況に鑑みてなされ
たものであり、PCT/JP91/01120に提案さ
れたシステムに診断機能等を付加したデータの送受信方
法及びそのシステムを提供することを目的とする。
The present invention has been made in view of the above circumstances, and an object thereof is to provide a data transmission / reception method in which a diagnostic function and the like are added to the system proposed in PCT / JP91 / 01120, and the system. And

【0006】[0006]

【課題を解決するための手段及び作用】本発明の一つの
態様に係るデータの送受信方法及びそのシステムにおい
ては、親局は、所定幅のスタートパルス、それに続く命
令コード、及びこの命令コードの後方に続き、第1の電
圧レベルのパルスとそれに続く少なくとも1以上の第1
の電圧レベルのパルスとを各子局に対応させて1組みと
するクロック電圧を2本の伝送ラインを介して送出し、
前記第1の電圧レベルのパルスを送出するときには第1
の定電流回路を介して送出する。子局は、伝送ラインの
クロック電圧信号を計数し、その計数値が自局のアドレ
スに該当するとき、その子局のもつデータに応じて伝送
ラインに並列接続された第2定電流回路(但し、第1の
定電流回路の定電流値<第2の定電流回路の定電流値)
を駆動し、その後に、その命令コードに対応したデータ
に基いて第2定電流回路を駆動する。この子局の動作に
より、親局側では伝送ラインの端子電圧の内、該当する
アドレスの最初のクロック電圧を入力データとして取り
込み、次のクロック電圧以降を子局側からの命令コード
に対応したデータとして取り込む。例えば、入力データ
が“1”のときには第2定電流回路が駆動されるが、こ
のとき第1の定電流回路の定電流値<第2の定電流回路
の定電流値という設定があるので、伝送ラインの両端の
電圧は第1の電圧レベル→0Vとなり、親局側では子局
側からのデータを把握することができる。また、入力デ
ータが“0”のときには第2定電流回路が駆動されず、
伝送ラインの両端の電圧は変化しないので、このことを
もって親局側では子局側からのデータを把握することが
できる。
In a data transmitting / receiving method and system according to one aspect of the present invention, a master station has a start pulse of a predetermined width, an instruction code following the instruction pulse, and a rear portion of the instruction code. Followed by a pulse of a first voltage level followed by at least one or more first
The voltage level pulse and the clock voltage that makes one set corresponding to each slave station are sent out through the two transmission lines,
When transmitting the pulse of the first voltage level, the first
It sends out through the constant current circuit of. The slave station counts the clock voltage signal of the transmission line, and when the count value corresponds to the address of its own station, the second constant current circuit (however, connected in parallel to the transmission line according to the data of the slave station (however, Constant current value of first constant current circuit <constant current value of second constant current circuit)
Is driven, and then the second constant current circuit is driven based on the data corresponding to the instruction code. By the operation of this slave station, the master station side takes in the first clock voltage of the corresponding address among the terminal voltages of the transmission line as input data, and the data after the next clock voltage corresponds to the instruction code from the slave station side. Take in as. For example, when the input data is "1", the second constant current circuit is driven. At this time, the constant current value of the first constant current circuit <the constant current value of the second constant current circuit is set. The voltage across the transmission line becomes the first voltage level → 0 V, and the master station side can recognize the data from the slave station side. When the input data is “0”, the second constant current circuit is not driven,
Since the voltage across the transmission line does not change, the master station side can grasp the data from the slave station side.

【0007】また、本発明の他の態様に係るデータの送
受信方法及びそのシステムにおいては、親局は、所定幅
のスタートパルス、それに続く命令コード、及びこの命
令コードの後方に続き、出力データに応じて第1の電圧
レベルのパルス又は0Vのパルスとそれに続く少なくと
も1以上の第1の電圧レベルのパルスとを各子局に対応
させて1組みとするクロック電圧とを2本の伝送ライン
を介して送出し、前記第1の電圧レベルのパルスを送出
するときには第1の定電流回路を介して送出する。子局
は、伝送ラインのクロック電圧信号を計数し、その計数
値が自局のアドレスに該当するとき、該当するアドレス
の最初のクロック電圧に基づいてオン又はオフ出力を
し、その後に、命令コードに対応したデータに基いて伝
送ラインに並列接続された第2定電流回路(但し、第1
の定電流回路の定電流値<第2の定電流回路の定電流
値)を駆動する。従って、そのデータに応じて伝送ライ
ンの両端電圧が第1の電圧レベル→0Vとなったり、そ
のままの大きさであったりする。この子局側の動作によ
り、親局側では伝送ラインの端子電圧の内、該当するア
ドレスの2番目以降のクロック電圧を子局側のからの命
令コードに対応したデータとして取り込む。
In the data transmission / reception method and system according to another aspect of the present invention, the master station outputs a start pulse of a predetermined width, an instruction code following the instruction pulse, and an output data following the instruction code. Depending on the slave station, a clock voltage having a first voltage level pulse or 0V pulse and at least one or more subsequent first voltage level pulses as one set corresponding to each slave station is provided over two transmission lines. When the pulse of the first voltage level is transmitted, it is transmitted through the first constant current circuit. The slave station counts the clock voltage signal of the transmission line, and when the count value corresponds to its own address, it outputs ON or OFF based on the first clock voltage of the corresponding address, and then the instruction code A second constant current circuit connected in parallel to the transmission line based on the data corresponding to
The constant current value of the constant current circuit of <the constant current value of the second constant current circuit) is driven. Therefore, depending on the data, the voltage across the transmission line may change from the first voltage level to 0 V, or may remain unchanged. By the operation on the slave station side, the master station side takes in the second and subsequent clock voltages of the corresponding address among the terminal voltages of the transmission line as data corresponding to the instruction code from the slave station side.

【0008】図15はスタートパルス、命令コード及び
それ以降のクロック電圧の一般的な関係を示したタイミ
ングチャートである。図16は命令コードが「0,0」
の通常の動作の場合を示すタイミングチャートである。
図示の例では命令パルスが続いた後に、1番地の子局出
力ユニットにON信号(0V)を送っており、2番地の
子局入力ユニットからOFF信号(12V)を受けてい
ることを示している。この命令コードではクロック電圧
が各番地の子局と1パルスで対応している。また、この
命令コード以外ではクロック電圧が各番地の子局と2パ
ルスで対応する。
FIG. 15 is a timing chart showing the general relationship between the start pulse, the instruction code and the clock voltage after that. In FIG. 16, the instruction code is “0,0”
3 is a timing chart showing a case of normal operation of FIG.
In the example shown in the figure, after the command pulse continues, the ON signal (0V) is sent to the slave station output unit at address 1 and the OFF signal (12V) is received from the slave station input unit at address 2. There is. In this instruction code, the clock voltage corresponds to the slave station at each address by one pulse. Besides this command code, the clock voltage corresponds to the slave station of each address by 2 pulses.

【0009】図17は命令コードが「0,1」の安全伝
送の確認を行った場合を示すタイミングチャートであ
る。図示の例では、1番地の子局出力ユニットにON信
号(0V)を送った場合にはその反転信号であるOFF
信号を親局側に返送している。2番地の子局入力ユニッ
トからOFF信号を入力している場合、つまり子局入力
ユニットがOFF信号を入力している場合にはその反転
信号であるON信号を親局に返送する。これらの動作に
より、親局と子局との間の接続が適切になされ、かつ子
局が正常に機能している。図18は命令コードが「1,
0」の子局の接続確認を行った場合を示すタイミングチ
ャートである。図示の例では、1番地の第1のパルスに
より子局が接続されていることが確認され、2番地の第
1のパルスにより子局が接続されていることが確認され
る。更に、1番地の第1のパルス(H)及び第2のパル
ス(L)によりその子局が入力ユニットであることが把
握され、2番地の第1のパルス(H)及び第2のパルス
(H)によりその子局が出力ユニットであることが把握
される。このような動作により、予め子局の設置個数が
把握されていない場合には接続されている子局の個数が
把握される。また、接続されている子局が入力ユニット
又は出力ユニットのいずれであるかも把握することがで
きる。更に、子局の最大番地を把握することができる。
従って、その最大番地まで走査すればよいので、子局数
が少ない場合は親局に電気的に設定されている最大子局
数まで走査しなくてすみ、走査時間が短くなる。図19
は命令コード「1,1」の子局側から例えば不具合を示
すメーセージを親局側に送出する場合のタイミングチャ
ートである。子局側に不具合が発生した場合には、不具
合メッセージを2パルス1局対応として子局から不具合
メッセージを親局側に送信する。親局がこのメッセージ
を上位機種へ親局が送出することにより上位機種側で適
切な制御が可能となる。
FIG. 17 is a timing chart showing a case where the safe transmission of the instruction code "0, 1" is confirmed. In the illustrated example, when the ON signal (0V) is sent to the slave station output unit at the address 1, it is the inverted signal OFF.
The signal is being sent back to the master station. When the OFF signal is input from the slave station input unit at address 2, that is, when the slave station input unit is inputting the OFF signal, the ON signal which is the inverted signal thereof is returned to the master station. By these operations, the connection between the master station and the slave station is properly made, and the slave station is functioning normally. In FIG. 18, the instruction code is "1,
It is a timing chart which shows the case where the connection confirmation of the slave station of "0" is performed. In the illustrated example, the first pulse at address 1 confirms that the slave station is connected, and the first pulse at address 2 confirms that the slave station is connected. Further, the first pulse (H) and the second pulse (L) at the address 1 indicate that the slave station is the input unit, and the first pulse (H) and the second pulse (H) at the address 2 are recognized. ) Confirms that the slave station is an output unit. By such an operation, when the number of installed slave stations is not known in advance, the number of connected slave stations is known. It is also possible to recognize whether the connected slave station is an input unit or an output unit. Further, the maximum address of the slave station can be grasped.
Therefore, since it is sufficient to scan up to the maximum address, when the number of slave stations is small, it is not necessary to scan up to the maximum number of slave stations electrically set in the master station, and the scanning time is shortened. FIG. 19
Is a timing chart when the slave station side of the instruction code "1, 1" sends a message indicating a defect to the master station side, for example. When a defect occurs on the slave station side, the defect message is transmitted from the slave station to the master station side as a 2-pulse 1-station correspondence. When the master station sends this message to the host model, the master model can perform appropriate control.

【0010】また、本発明に係る他の態様に係るデータ
の送受信システムにおいて、親局は、出力バッファ、入
力バッファ、第1の記憶手段及び第2の記憶手段を有す
る。出力バッファは、所定幅のスタートパルス、それに
続く命令コード、及びこの命令コードの後方に続き、第
1の電圧レベルのパルスとそれに続く少なくとも1以上
の第1の電圧レベルのパルスとを各子局に対応させて1
組みとするクロック電圧を2本の伝送ラインを介して送
出し、第1の電圧レベルのクロック電圧を送出する場合
には第1の定電流回路を介して送出する。入力バッファ
は、伝送ラインの端子電圧を入力データとして取り込
む。第1の記憶手段は、命令コードに応じて入力バッフ
ァからのクロック電圧の内、該当するアドレスの最初の
クロック電圧が入力データ又は命令コードに対応したデ
ータとして格納される。第2の記憶手段は、入力バッフ
ァからのクロック電圧の内、該当するアドレスの2番目
以降のクロック電圧が命令コードに対応したデータとし
て格納される。
Further, in the data transmitting / receiving system according to another aspect of the present invention, the master station has an output buffer, an input buffer, a first storage means and a second storage means. The output buffer has a start pulse of a predetermined width, an instruction code that follows the instruction pulse, and a pulse of a first voltage level followed by a pulse of at least one or more first voltage levels that follows the instruction code. Corresponding to 1
The clock voltage to be set is sent out through two transmission lines, and when sending the clock voltage of the first voltage level, it is sent out through the first constant current circuit. The input buffer takes in the terminal voltage of the transmission line as input data. The first storage means stores the first clock voltage of the corresponding address among the clock voltages from the input buffer according to the instruction code as input data or data corresponding to the instruction code. In the second storage means, among the clock voltages from the input buffer, the second and subsequent clock voltages of the corresponding address are stored as data corresponding to the instruction code.

【0011】また、本発明に係る他の態様に係るデータ
の送受信システムにおいて、子局は、平滑回路、カウン
タ、自局アドレス信号検出回路、第2の定電流回路、ス
イッチ素子、記憶手段及び制御手段を有する。平滑回路
は、所定幅のスタートパルス、それに続く命令コード、
及びこの命令コードの後方に続き、第1の電圧レベルの
パルスとそれに続く少なくとも1以上の第1の電圧レベ
ルのパルスとを各子局に対応させて1組みとするクロッ
ク電圧を2本の伝送ラインを介して親局から送出され、
これらの電圧を方向性素子を介して整流し、子局の電源
とする。カウンタは、2本の伝送ラインの電圧信号を計
数する。自局アドレス信号検出回路は、カウンタの計数
値が予め設定されている自局のアドレスと一致するかど
うかを検出し、一致しているとき一致信号を出力する。
第2の定電流回路は、伝送ラインを介して親局から送ら
れてくる自局のアドレスにおける第1の電圧レベルのク
ロック電圧の電流容量より大きい電流容量を有し、伝送
ラインに並列に接続される。スイッチ素子は第2の定電
流回路に直列に接続される。記憶手段は命令コードを記
憶する。制御手段は、自局アドレス信号、センサ出力及
び命令コードを入力し、命令コードに基いてデータを生
成し、命令コードの態様に従って、そのセンサ出力及び
前記データ、又は前記データに基いて前記スイッチ素子
を駆動する。
In the data transmission / reception system according to another aspect of the present invention, the slave station includes a smoothing circuit, a counter, a local station address signal detection circuit, a second constant current circuit, a switch element, a storage means and a control unit. Have means. The smoothing circuit consists of a start pulse of a specified width, the instruction code following it,
And, following the instruction code, transmitting two clock voltages, each of which is a pair of a first voltage level pulse and at least one or more subsequent first voltage level pulses corresponding to each slave station. Sent from the master station via the line,
These voltages are rectified via the directional element and used as the power source for the slave station. The counter counts the voltage signals of the two transmission lines. The local station address signal detection circuit detects whether or not the count value of the counter matches the preset address of the local station, and outputs a coincidence signal when they match.
The second constant current circuit has a current capacity larger than the current capacity of the clock voltage of the first voltage level at the address of the own station sent from the master station via the transmission line, and is connected in parallel to the transmission line. To be done. The switch element is connected in series with the second constant current circuit. The storage means stores the instruction code. The control means inputs a local address signal, a sensor output and an instruction code, generates data based on the instruction code, and outputs the sensor output and the data, or the switch element based on the data according to a mode of the instruction code. To drive.

【0012】また、本発明に係る更に他の態様に係るデ
ータの送受信システムにおいて、子局は、平滑回路、カ
ウンタ、自局アドレス信号検出回路、第2の定電流回
路、スイッチ素子、記憶手段及び制御手段を有する。制
御手段は、伝送ラインのクロック電圧、前記一致信号及
び命令コードを入力し、命令コードに基いてデータを生
成し、命令コードの態様に従って、一致信号が入力して
いるときの最初のクロック電圧を記憶手段を介して負荷
に出力した後に前記データに基いて前記スイッチ素子を
駆動し、又は負荷に出力することなしに、前記データに
基いてスイッチ素子を駆動する。
In a data transmission / reception system according to still another aspect of the present invention, the slave station includes a smoothing circuit, a counter, a local station address signal detection circuit, a second constant current circuit, a switch element, a storage means and It has a control means. The control means inputs the clock voltage of the transmission line, the coincidence signal and the instruction code, generates data based on the instruction code, and sets the initial clock voltage when the coincidence signal is input according to the mode of the instruction code. The switch element is driven based on the data after being output to the load via the storage means, or the switch element is driven based on the data without being output to the load.

【0013】以上のようにして、子局側のスイッチ素子
を前記データに基いて駆動することにより伝送ラインを
介して親局側に前記データが伝えられる。
As described above, the data is transmitted to the master station side through the transmission line by driving the switch element on the slave station side based on the data.

【0014】[0014]

【実施例】図1は本発明の一実施例に係るシステムの親
局の構成を示すブロック図、図2は子局入力ユニットの
構成を示すブロック図であり、図3は子局出力ユニット
の構成を示すブロック図である。図1、図2及び図3に
示されるシステムにおいて、親局10は2本の伝送ライ
ン28を介して子局入力ユニット30,子局出力ニット
50と接続されており、これらの子局30,50は親局
10に対して並列に接続されている。本実施例の詳細を
説明する前に親局10及び子局30,50の概要をそれ
ぞれ説明する。
1 is a block diagram showing a configuration of a master station of a system according to an embodiment of the present invention, FIG. 2 is a block diagram showing a configuration of a slave station input unit, and FIG. 3 is a block diagram of a slave station output unit. It is a block diagram which shows a structure. In the system shown in FIGS. 1, 2 and 3, the master station 10 is connected to the slave station input unit 30 and the slave station output unit 50 via two transmission lines 28, and these slave stations 30, 50 is connected in parallel to the master station 10. Before describing the details of the present embodiment, an outline of the master station 10 and the slave stations 30 and 50 will be described.

【0015】親局は10は基本的に次の処理をする。 1)電源とデータとをクロック電圧に重畳し2本の伝送
ラインを駆動して子局に送る。 2)データはクロック電圧に重畳させる。 3)例えば、クロックとデータ「0」とを送る場合は電
源電圧の50%の電圧を送る。クロックとデータ「1」
とを送る場合は電源の0Vの電圧を送る。 4)子局のアドレス管理用のカウンタをリセットするた
めに電源電圧100%の電圧(スタートパルス)を数ク
ロック分送る。 5)この電源電圧の数クロック分送った後に、2クロッ
クからなる命令コードを出力する。この命令コードには
例えば「通常の動作」、「安全伝送の確認」、「子局の
接続確認」、「不具合のメッセージ」等がある。そし
て、この命令コードに対応した信号が子局から送信され
てくると、その信号を処理して上位機種に送信する。 6)命令コードの送信後のクロックを計数し子局のアド
レスと対応させる。
The master station 10 basically performs the following processing. 1) A power source and data are superimposed on a clock voltage to drive two transmission lines and send them to a slave station. 2) The data is superimposed on the clock voltage. 3) For example, when sending a clock and data "0", a voltage of 50% of the power supply voltage is sent. Clock and data "1"
When sending and, send the voltage of 0V of the power supply. 4) Send a voltage (start pulse) of 100% power supply voltage for several clocks to reset the address management counter of the slave station. 5) After sending several clocks of this power supply voltage, an instruction code consisting of two clocks is output. The instruction code includes, for example, "normal operation", "confirmation of safe transmission", "confirmation of connection of slave station", "message of trouble", and the like. Then, when a signal corresponding to this command code is transmitted from the slave station, the signal is processed and transmitted to the host model. 6) Count the clock after the transmission of the instruction code and make it correspond to the address of the slave station.

【0016】また、子局は30,50は基本的に次の処
理をする。 1)リセット信号の電源電圧100%の電圧を数クロッ
ク分受信すると、内部の自局アドレス管理用のカウンタ
をリセットしその後クロックの計数を開始する。次に命
令コードを受信しそれを解析する。 2)自局のアドレス管理用のカウンタの計数値が自局の
アドレスカウント値に達した時、自己のアドレスと判断
する。 3)子局が入力ユニットの場合には、該当アドレスのと
きデータはクロック電圧又は「0」を送る。電源電圧の
50%の電圧が入力されるのでその期間に例えば入力ユ
ニットの入力がアクティブであれば0Vを送り、ノンア
クティブであればそのまま(電源電圧の50%の電圧)
とする。親局は、クロックの期間中の子局の返信信号を
判断し、入力がアクティブかノンアクティブかを判断す
る。 4)子局が出力ユニットの場合には、親局は出力をアク
ティブにする場合にはクロックの期間中電源の0Vの電
圧を親局は送り、出力ユニットの出力はアクティブとな
る。ノンアクティブにする場合にはクロックの期間中電
源電圧の50%の電圧を親局は送り、出力ユニットの出
力はノンアクティブになる。 5)子局が入力ユニット及び出力ユニットのいずれであ
っても、命令コードに応じた処理を行って親局に送信す
る。
The slave stations 30 and 50 basically perform the following processing. 1) When a voltage of 100% of the power supply voltage of the reset signal is received for several clocks, the internal counter for managing the own station address is reset and then counting of clocks is started. Next, it receives the instruction code and analyzes it. 2) When the count value of the address management counter of the own station reaches the address count value of the own station, it is determined as the own address. 3) When the slave station is the input unit, the clock voltage or "0" is sent as the data at the corresponding address. Since 50% of the power supply voltage is input, for example, 0 V is sent if the input of the input unit is active during that period, and it remains unchanged (50% of the power supply voltage) if it is inactive.
And The master station determines the reply signal of the slave station during the clock period, and determines whether the input is active or inactive. 4) When the slave station is an output unit, when the master station activates the output, the master station sends the voltage of 0V of the power supply during the clock period, and the output of the output unit becomes active. When making it inactive, the master station sends a voltage of 50% of the power supply voltage during the clock period, and the output of the output unit becomes inactive. 5) Regardless of whether the slave station is an input unit or an output unit, it performs processing according to the instruction code and transmits it to the master station.

【0017】次に、図1の親局10の構成を説明する。
親局10は上位機種とデータのやり取りをする出力ユニ
ット11,12及び入力ユニット13〜15を備えてい
る。出力ユニット11は、伝送パルスの番地に相当する
1パルス目のデータをシフトレジスタ16,17を介し
て上位機種に送出する。出力ユニット12は、伝送パル
スの番地に相当する2パルス目のデータをシフトレジス
タ18,19を介して上位機種へ出力する。入力ユニッ
ト13は、番地に相当する1パルス目のデータを上位機
種を介して入力し、シフトレジスタ20を介して伝送ラ
インへ出力する。入力ユニット14は、上位機種から命
令パエルスを入力し,それを伝送ラインへ出力するとと
もにコントローラ22の動作を制御する。入力ユニット
15は命令コードに対応して上位機種から子局の全点数
を入力し、カウンタ23のカウンタ値を一致回路24を
介して制御する。コントローラ22は適当な手段により
子局が出力ユニット又は入力ユニットのいずれであるか
を設定できているものとする。今、子局を最大32点ま
で接続できるとすると、シフトレジスタ17〜20は3
2点分記憶できる容量を持つ。
Next, the configuration of the master station 10 shown in FIG. 1 will be described.
The master station 10 is provided with output units 11 and 12 and input units 13 to 15 for exchanging data with a higher model. The output unit 11 sends the data of the first pulse corresponding to the address of the transmission pulse to the host model via the shift registers 16 and 17. The output unit 12 outputs the data of the second pulse corresponding to the address of the transmission pulse to the host model via the shift registers 18 and 19. The input unit 13 inputs the data of the first pulse corresponding to the address via the host model and outputs it to the transmission line via the shift register 20. The input unit 14 inputs a command Paelus from a host model, outputs it to a transmission line, and controls the operation of the controller 22. The input unit 15 inputs the total number of points of the slave station from the upper model corresponding to the instruction code, and controls the counter value of the counter 23 via the coincidence circuit 24. It is assumed that the controller 22 can set whether the slave station is an output unit or an input unit by an appropriate means. Now, assuming that up to 32 slave stations can be connected, the shift registers 17-20 have 3
It has the capacity to store two points.

【0018】出力ユニット11からの出力データはシフ
トレジスタ17の内容に対応しており、各々ビットは子
局のデータに対応している。シフトレジスタ17は、シ
フトレジスタ16の内容をコントローラ22からの信号
eが入力したタイミングで記憶する。シフトレジスタ1
6は入力バッファ25からのON/OFF信号gをコン
トローラ22からの信号kが入力したタイミングで順次
記憶する。出力ユニット12からの出力データも同様で
あり、シフトレジスタ19の内容に対応しており、各々
ビットは子局の命令コードによるデータに対応してい
る。シフトレジスタ19は、シフトレジスタ18の内容
をコントローラ22からの信号eが入力したタイミング
で記憶する。シフトレジスタ18は入力バッファ25か
らのON/OFF信号gをコントローラ22からの信号
kaが入力したタイミングで順次記憶する。
The output data from the output unit 11 corresponds to the contents of the shift register 17, and each bit corresponds to the data of the slave station. The shift register 17 stores the contents of the shift register 16 at the timing when the signal e from the controller 22 is input. Shift register 1
6 sequentially stores the ON / OFF signal g from the input buffer 25 at the timing when the signal k from the controller 22 is input. Similarly, the output data from the output unit 12 corresponds to the contents of the shift register 19, and each bit corresponds to the data according to the instruction code of the slave station. The shift register 19 stores the contents of the shift register 18 at the timing when the signal e from the controller 22 is input. The shift register 18 sequentially stores the ON / OFF signal g from the input buffer 25 at the timing when the signal ka from the controller 22 is input.

【0019】入力ユニット13,14に入力したデータ
は、コントローラ22からの信号fがシフトレジスタ2
0,21に入力したタイミングで記憶され、また、信号
fのタイミングでシフトレジスタ21の命令パルスがコ
ントローラ22に順次送り出されると共に、シフトレジ
スタ20のデータiがシフトレジスタ21を介してコン
トローラ22に順次送り出される。また、入力ユニット
14に入力したデータ(命令パルス)のみは制御信号と
してコントローラ22に直接供給される。コントローラ
22は子局1局分のタイミングを送信すると同期信号q
をカウンタ23に出力し、カウンタ23はこの同期信号
を計数する。カウンタ23の計数値が入力ユニット15
に入力してきた所定の設定値に達すると、一致回路24
は同期信号qをコントローラ22に送出する。コントロ
ーラ22は、同期信号qを受けとると子局のリセット信
号を送るとともに、カウンタ23をリセットする。コン
トローラ22からの各信号m,n,oは出力バッファ2
6を駆動する信号である。
In the data input to the input units 13 and 14, the signal f from the controller 22 is the shift register 2
0 and 21 are stored at the timing of input, and the command pulse of the shift register 21 is sequentially sent to the controller 22 at the timing of the signal f, and the data i of the shift register 20 is sequentially sent to the controller 22 via the shift register 21. Sent out. Further, only the data (command pulse) input to the input unit 14 is directly supplied to the controller 22 as a control signal. When the controller 22 transmits the timing for one slave station, the synchronization signal q
To the counter 23, and the counter 23 counts this synchronization signal. The count value of the counter 23 is the input unit 15
When the predetermined set value input to is reached, the matching circuit 24
Sends a synchronization signal q to the controller 22. Upon receiving the synchronization signal q, the controller 22 sends a reset signal for the slave station and resets the counter 23. The signals m, n, and o from the controller 22 are output to the output buffer 2
6 is a signal for driving 6.

【0020】出力バッファ26は、図4に示されるよう
に、定電流回路27と半導体で構成されたスイッチSW
1,SW2,SW3とゼナーダイオードZD(例えばゼ
ナー電圧12V)により等価的に構成されている。出力
バッファ26が伝送ライン28に信号を送る時の電位
と、m,n,o信号及びSW1,SW2,SW3との関
係は次のとおりである。 m … SW1 n … SW2 o … SW3 24V送信 ON ON OFF OFF OFF OFF 12V送信 OFF OFF OFF OFF ON ON 0V送信 OFF OFF ON ON OFF OFF
The output buffer 26 is, as shown in FIG. 4, a switch SW composed of a constant current circuit 27 and a semiconductor.
1, SW2, SW3 and Zener diode ZD (for example, Zener voltage 12V) are equivalently configured. The relationship between the potential when the output buffer 26 sends a signal to the transmission line 28 and the m, n, o signals and SW1, SW2, SW3 is as follows. m ... SW1 n ... SW2 o ... SW3 24V transmission ON ON OFF OFF OFF OFF OFF OFF 12V transmission OFF OFF OFF OFF OFF ON ON 0V transmission OFF OFF OFF ON ON OFF OFF OFF

【0021】次に、図2の子局入力ユニット30の構成
を説明する。伝送ライン28を介して供給される電圧は
後述するように複雑な波形となるので、直流の回路電圧
を確保するためにダイオードDとコンデンサC1とによ
り平滑して安定した直流電圧にする。従って、この平滑
化された直流電圧は、センサ31の駆動電源と子局入力
ユニット30の回路電源となる。伝送ライン28には定
電流回路32とトランジスタQ1とからなる直列回路が
並列に接続されている。この定電流回路32の定電流値
は、定電流回路27(図4参照)<定電流回路32とな
るように設定されている。定電流回路32は図5及び図
6に示すようなトランジスタQ1を含んだ定電流回路に
より構成しても良い。コンパレータ33は伝送ライン2
8の電圧信号からクロック信号Zaを生成する回路であ
り、そのしきい値を12Vと24Vの中間付近に設定す
る。コンパレータ34は伝送ライン28の電圧信号から
クロック信号Zbを生成する回路であり、そのしきい値
を0Vと12Vの中間付近に設定する。
Next, the configuration of the slave station input unit 30 shown in FIG. 2 will be described. Since the voltage supplied via the transmission line 28 has a complicated waveform as described later, it is smoothed by the diode D and the capacitor C1 to obtain a stable DC voltage in order to secure a DC circuit voltage. Therefore, the smoothed DC voltage serves as the drive power source for the sensor 31 and the circuit power source for the slave station input unit 30. A series circuit including a constant current circuit 32 and a transistor Q1 is connected in parallel to the transmission line 28. The constant current value of the constant current circuit 32 is set so that the constant current circuit 27 (see FIG. 4) <the constant current circuit 32. The constant current circuit 32 may be composed of a constant current circuit including the transistor Q1 as shown in FIGS. The comparator 33 is the transmission line 2
It is a circuit for generating a clock signal Za from a voltage signal of 8, and its threshold value is set near the middle of 12V and 24V. The comparator 34 is a circuit that generates the clock signal Zb from the voltage signal of the transmission line 28, and sets the threshold value near the middle of 0V and 12V.

【0022】リセット回路35はパルス幅を計測し、そ
れが所定の幅を越えたらリセット信号wを出力する。つ
まり、リセット回路35はスタートパルスを検出してリ
セット信号wを出力する。カウンタ36はリセット信号
wによりリセットされ、スタートパルス直後の命令パル
スの2パルス分を計数し、シフトレジスタ37にコンパ
レータ34からの信号即ち命令パルスの2パルス分のデ
ータを記憶させる。シフトレジスタ37は、命令パルス
の2パルス分のデータを記憶すると、その記憶値によっ
て制御信号uu,ccをそれぞれ送出する。制御信号u
uは、1,1/2切替回路38へ送出される。制御信号
ccは制御回路A42へ送出される。1,1/2切替回
路38はシフトレジスタ37からの制御信号ccにより
コンパレータ33からのクロック信号za又はその1/
2のパルスをカウンタ39へ送出する。
The reset circuit 35 measures the pulse width and outputs a reset signal w when it exceeds a predetermined width. That is, the reset circuit 35 detects the start pulse and outputs the reset signal w. The counter 36 is reset by the reset signal w, counts two command pulses immediately after the start pulse, and stores the signal from the comparator 34, that is, two command pulse data in the shift register 37. When the shift register 37 stores data for two command pulses, it outputs control signals uu and cc according to the stored values. Control signal u
u is sent to the 1/1/2 switching circuit 38. The control signal cc is sent to the control circuit A42. The 1/1/2 switching circuit 38 uses the control signal cc from the shift register 37 to output the clock signal za from the comparator 33 or 1 /
2 pulses are sent to the counter 39.

【0023】カウンタ39は、1,1/2切替回路38
を介して入力されるクロック信号Zaを計数する。その
計数値vは一致回路40へ送出する。アドレス回路41
には子局入力ユニット30のアドレスが設定されてお
り、例えばデップスイッチ、ROM、RAM等により構
成される。その設定値uは一致回路40へ送出される。
一致回路40はuの値とvの値を比較し一致したときに
一致信号t,t´をクロック信号1aに同期して制御回
路A42へ順次送出する。センサ31の出力は負荷45
を介してメモリ46に格納され、メモリ46の信号は制
御回路A42に入力する。このメモリ46はリセット信
号wによりリセットされ、その後のセンサ31の信号を
取り込むようにしてある。制御回路A42は図7に示さ
れる回路から構成されており、その詳細は後述する。
The counter 39 has a 1/1/2 switching circuit 38.
The clock signal Za input via is counted. The count value v is sent to the matching circuit 40. Address circuit 41
Is set to the address of the slave station input unit 30, and is constituted by, for example, a DIP switch, a ROM, a RAM and the like. The set value u is sent to the matching circuit 40.
The coincidence circuit 40 compares the value of u with the value of v, and when they coincide with each other, sequentially outputs coincidence signals t and t'to the control circuit A42 in synchronization with the clock signal 1a. The output of the sensor 31 is the load 45
Is stored in the memory 46 via the, and the signal of the memory 46 is input to the control circuit A42. The memory 46 is reset by the reset signal w and fetches the signal of the sensor 31 thereafter. The control circuit A42 is composed of the circuit shown in FIG. 7, and its details will be described later.

【0024】次に、図3の子局出力ユニット50の構成
を説明する。子局出力ユニット50は基本的には子局入
力ユニット30と同様な構成からなっており、相違点を
中心の以下説明する。コンデンサC1には負荷51とト
ランジスタ52とからなる直列回路が並列接続されてい
る。補助電源53は、伝送ライン28の電流容量では負
荷51を駆動できない場合にはその補助電源として接続
する。制御回路B54はトランジスタ52,Q1を駆動
するものである。制御回路B54は図8に示される回路
から構成されており、その詳細は後述する。
Next, the configuration of the slave station output unit 50 shown in FIG. 3 will be described. The slave station output unit 50 basically has the same configuration as the slave station input unit 30, and the differences will be mainly described below. A series circuit including a load 51 and a transistor 52 is connected in parallel to the capacitor C1. The auxiliary power supply 53 is connected as the auxiliary power supply when the load 51 cannot be driven by the current capacity of the transmission line 28. The control circuit B54 drives the transistors 52 and Q1. The control circuit B54 is composed of the circuit shown in FIG. 8, and its details will be described later.

【0025】次に、命令コードが「0,0」のときのこ
のシステムの動作を説明する。図9は親局10の動作を
示すタイミングチャート、図10は子局入力ユニット3
0の動作を示すタイミングチャートであり、図11は子
局出力ユニット50の動作を示すタイミングチャートで
ある。
Next, the operation of this system when the instruction code is "0,0" will be described. 9 is a timing chart showing the operation of the master station 10, and FIG. 10 is a slave station input unit 3
11 is a timing chart showing the operation of 0, and FIG. 11 is a timing chart showing the operation of the slave station output unit 50.

【0026】親局10のコントロ−ラ22からは、順次
パルスが発生し、図示のように、24Vの電位からなり
他のパルス幅より幅広のスタートパルスの区間T1、命
令コードの2パルス(0,0)の区間T2、子局入力ユ
ニットからデータを取り込む区間T3,T5及び子局出
力ユニットにデータを送出する区間T4においてそれぞ
れ図示のような伝送電圧Zが出力バッファ26により伝
送ライン28に印加される。子局入力ユニット30から
データを取り込む区間T3,T5においては12Vの電
圧を送信し、子局出力ユニットにデータを送出する区間
T4においては、ON出力をするときには0V、OFF
出力をするときには12Vを送信する。図示の例におい
ては、区間T4はON出力をする。なお、この命令コー
ドのもとではクロック電圧は1パルス/局となってい
る。
Pulses are sequentially generated from the controller 22 of the master station 10, and as shown in the figure, a start pulse section T1 having a potential of 24 V and wider than other pulse widths, and two pulses (0 pulse) of the instruction code. , 0) in a section T2, sections T3 and T5 for receiving data from the slave station input unit, and a section T4 for transmitting data to the slave station output unit, the transmission voltage Z as shown in the figure is applied to the transmission line 28 by the output buffer 26. To be done. In the sections T3 and T5 for fetching data from the slave station input unit 30, a voltage of 12V is transmitted, and in the section T4 for transmitting data to the slave station output unit, 0V and OFF are used for ON output.
When outputting, 12V is transmitted. In the illustrated example, the section T4 outputs ON. Under this instruction code, the clock voltage is 1 pulse / station.

【0027】親局10においては、入力ユニット14が
命令コードを上位機種から入力し、ここでは「0,0」
を入力する。入力ユニット13も同様にして上位機種か
ら子局出力ユニットに送出するON/OFFデータを入
力する。また、入力ユニット15は送出するパルスの最
大数を決定するデータを上位機種から入力する。また、
出力ユニット11は子局ユニットからのON/OFFデ
ータを上位機種へ出力する。出力ユニット12は子局ユ
ニットからの2パルス目のON/OFFデータを上位機
種へ出力する。
In the master station 10, the input unit 14 inputs an instruction code from a host model, and here, "0,0".
Enter. Similarly, the input unit 13 inputs the ON / OFF data to be sent from the host model to the slave station output unit. In addition, the input unit 15 inputs data for determining the maximum number of pulses to be transmitted from the host model. Also,
The output unit 11 outputs ON / OFF data from the slave station unit to the host model. The output unit 12 outputs the ON / OFF data of the second pulse from the slave station unit to the upper model.

【0028】入力ユニット14の設定値h´信号(命令
コード)がコントローラ22へ送出され、コントローラ
22は命令コード「0,0」に相当する動作を行う。つ
まり、コントローラ22とカウンタ23とにより必要な
パルスを順次発生し、また、入力ユニット15に設定さ
れたパルス数が出力バファ26から送出されると、スタ
ートパルスから再び繰り返される。
The set value h'signal (instruction code) of the input unit 14 is sent to the controller 22, and the controller 22 performs the operation corresponding to the instruction code "0,0". That is, the controller 22 and the counter 23 sequentially generate necessary pulses, and when the number of pulses set in the input unit 15 is sent from the output buffer 26, the pulse is repeated again from the start pulse.

【0029】スタートパルスの区間T1の時間中にパル
スeがコントローラ22から発生し、そのタイミングで
シフトレジスタ16,18のデータは、各々シフトレジ
スタ17,19へラッチされる。このデータはスタート
パルス発生の直前までにシフトレジスタ16,18に記
憶されたデータである。また、パルスeのタイミングで
入力ユニット13,14に入力したデータがシフトレジ
スタ20,21にラッチされる。このデータは子局出力
ユニットへの送出データとなる。また、コントローラ2
2は出力バッファ26のSW1,SW3をON/OFF
する信号m,nを出力し、図示の区間T1,T2の伝送
電圧Zを発生させる。また、信号nと同じタイミングで
信号f,kが出力する。
A pulse e is generated from the controller 22 during the period T1 of the start pulse, and at that timing, the data in the shift registers 16 and 18 are latched in the shift registers 17 and 19, respectively. This data is the data stored in the shift registers 16 and 18 immediately before the generation of the start pulse. Further, the data input to the input units 13 and 14 at the timing of the pulse e is latched in the shift registers 20 and 21. This data is the data to be sent to the slave station output unit. Also, the controller 2
2 turns on / off SW1 and SW3 of the output buffer 26
Output signals m and n to generate the transmission voltage Z in the illustrated sections T1 and T2. The signals f and k are output at the same timing as the signal n.

【0030】カウンタ23の計数値が入力ユニット15
の設定値と同一値になると、一致回路24によりカウン
タ23がリセットされ、そして、コントローラ22へ同
期信号pを送出する。コントローラ22はこの同期信号
pの入力によりスタートパルスを発生させる(信号mを
出力する)。コントローラ22から出力される信号fは
シフトレジスタ20,21をシフトするタイミング信号
であり、信号kはシフトレジスタ2をシフトするタイミ
ング信号である。この命令コードが「0,0」の場合に
は信号k´は発生しないのでシフトレジスタ18は動作
しない。
The count value of the counter 23 is the input unit 15
When it becomes the same value as the set value of, the coincidence circuit 24 resets the counter 23, and then sends the synchronization signal p to the controller 22. The controller 22 generates a start pulse (outputs a signal m) by inputting this synchronizing signal p. The signal f output from the controller 22 is a timing signal for shifting the shift registers 20 and 21, and the signal k is a timing signal for shifting the shift register 2. When the instruction code is "0,0", the signal k'is not generated, and the shift register 18 does not operate.

【0031】シフトレジスタ20のデータがシフトさ
れ、子局出力ユニットへデータを伝送するタイミングで
信号i´が発生し、その信号が発生するとそれに同期し
た信号oが発生する。信号oは出力バッフア26のSW
2をONさせる。これにより、出力バッファ26の電圧
は0Vになる。この時、伝送ライン28の電圧が0Vに
なり、入力バッファ25の出力は“1”になる。この出
力は信号kのタイミングでシフトレジスタ16へ記憶さ
れる。同様にして信号oが発生しておらず、かつ子局入
力ユニットがON信号が発生した場合には伝送ライン2
8の電圧が0Vになり(この点は後述する)、入力バッ
ファ25の出力は“1”になる。この出力も信号kのタ
イミングでシフトレジスタ16へ記憶される。
The data in the shift register 20 is shifted and a signal i'is generated at the timing of transmitting the data to the slave station output unit. When the signal is generated, a signal o synchronized with it is generated. The signal o is the SW of the output buffer 26
Turn on 2. As a result, the voltage of the output buffer 26 becomes 0V. At this time, the voltage of the transmission line 28 becomes 0V, and the output of the input buffer 25 becomes "1". This output is stored in the shift register 16 at the timing of the signal k. Similarly, when the signal o is not generated and the slave station input unit generates an ON signal, the transmission line 2
The voltage of 8 becomes 0V (this point will be described later), and the output of the input buffer 25 becomes "1". This output is also stored in the shift register 16 at the timing of the signal k.

【0032】このため、出力ユニット11の出力信号に
は、入力ユニット13のデータと子局入力ユニットから
のデータとが混在するが、アドレスと子局入力ユニット
又は子局出力ユニットとの関係が予め定まっているの
で、子局入力ユニットのON/OFFが読める。また、
アドレスと子局入力ユニットとの関係が予め定まってい
ることを利用して子局入力ユニットのみのデータを抽出
するのフィルタを設けておけば、子局入力ユニットのO
N/OFFを自動的に読むことができる。
For this reason, the output signal of the output unit 11 contains the data of the input unit 13 and the data from the slave station input unit, but the relationship between the address and the slave station input unit or the slave station output unit is preset. Since it is fixed, you can read ON / OFF of the slave station input unit. Also,
If a filter for extracting data of only the slave station input unit is provided by utilizing the fact that the relationship between the address and the slave station input unit is predetermined, the O of the slave station input unit can be set.
N / OFF can be read automatically.

【0033】次にこの時の子局入力ユニットの動作を説
明する。図10のタイミングチャートに示すように、親
局10の出力バッファ26の出力電圧Zが伝送ライン2
8を介して子局入力ユニットにも印加されており、コン
パレータ33,34はそれぞれのしきい値に基いて、伝
送電圧を波形成型してクロック信号Za,Zbを生成す
る。リセット回路35がクロック信号Zaを入力してス
タートパルスを検出してリセット信号wを発生し、カウ
ンタ36及びシフトレジスタ37をリセットし、メモリ
46の内容をその時のセンサ31のON/OFFに基い
て書き替えて信号Sを発生させる。カウンタ36がリセ
ットされるとカウンタ39へリセット信号W´を送出
し、カウンタ39がリセットされる。スタ−トパルスの
区間T1が終了して区間T2に入ると、カウンタ36が
命令コードのパルスをカウントし、その間の命令コード
をシフトレジスタ37に記憶させる。シフトレジスタ3
7はこのときの命令コードの値に対応した制御信号cc
を送出する。
Next, the operation of the slave station input unit at this time will be described. As shown in the timing chart of FIG. 10, the output voltage Z of the output buffer 26 of the master station 10 is the transmission line 2
It is also applied to the slave station input unit via 8, and the comparators 33 and 34 waveform-shape the transmission voltage based on the respective threshold values to generate the clock signals Za and Zb. The reset circuit 35 inputs the clock signal Za, detects a start pulse, generates a reset signal w, resets the counter 36 and the shift register 37, and sets the contents of the memory 46 based on ON / OFF of the sensor 31 at that time. The signal S is generated by rewriting. When the counter 36 is reset, the reset signal W ′ is sent to the counter 39, and the counter 39 is reset. When the section T1 of the start pulse ends and enters the section T2, the counter 36 counts the pulses of the instruction code and stores the instruction code in the period in the shift register 37. Shift register 3
7 is a control signal cc corresponding to the value of the instruction code at this time
Is sent.

【0034】図7は回路A42の詳細を示した回路であ
り、シフトレジスタ37からの制御信号ccは変換テー
ブル100より変換される。この時の入力と出力との関
係は次のとおりである。 ( 入力 ) ( 出 力 ) A B Y0 Y1 Y2 Y3 a) 0 0 0 1 1 1 b) 1 0 1 0 1 1 c) 0 1 1 1 0 1 d) 1 1 1 1 1 0 このときの制御信号ccは「0,0」であり、変換テー
ブル100の出力は「0,1,1,1」となる。この出
力はインバータ114〜117を介してそれぞれアンド
ゲート102,107,109,113にゲ−ト制御信
号として入力し、ここではアンドゲート102だけが開
く。また、一致回路40からの信号tがアンドゲート1
01にゲート制御信号として入力し、この信号tが入力
している間信号Sはアンドゲート101,102及びオ
アゲート103を介して送り出される。信号t のタイミ
ングでセンサ31がONしていれば、信号Sが“1”で
トランジスタQ1がONし、センサ31がOFFしてい
れば、信号Sが“0”でトランジスタQ1がOFFとな
る。
FIG. 7 is a circuit showing the details of the circuit A42. The control signal cc from the shift register 37 is converted by the conversion table 100. The relationship between the input and output at this time is as follows. (Input) (Output) A B Y0 Y1 Y2 Y3 a) 0 0 0 1 1 1 1 b) 1 0 1 0 1 1 1 c) 0 1 1 1 0 1 1 d) 1 1 1 1 1 0 Control signal at this time cc is "0,0", and the output of the conversion table 100 is "0,1,1,1". This output is input to the AND gates 102, 107, 109 and 113 as a gate control signal via the inverters 114 to 117, and only the AND gate 102 is opened here. Further, the signal t from the coincidence circuit 40 is the AND gate 1
01 as a gate control signal, and while this signal t is being input, the signal S is sent out via the AND gates 101 and 102 and the OR gate 103. If the sensor 31 is ON at the timing of the signal t, the signal S is "1" and the transistor Q1 is ON. If the sensor 31 is OFF, the signal S is "0" and the transistor Q1 is OFF.

【0035】ここで、図2に戻ると、1,1/2切替え
回路38はシフトレジスタ37から命令コードに対応し
た切替え信号を入力し、そのまま通過させるか或いは1
/2分周するかが指示される。ここでは命令コードが
「0,0」であり、入力信号をそのまま通過させること
になる。アドレスカウンタ39はv信号に同期しカウン
トアップしていき、アドレス回路41のアドレスとカウ
ンタ値とが一致すると、一致回路40はクロック信号に
同期して一致信号t をが発生し、次のタイミングでt'を
発生する。この一致信号t,t´は制御回路A42に入
力し、上述のように、信号Sが“1”であればトランジ
スタQ1がオンする。これにより次のような動作がなさ
れる。
Now, returning to FIG. 2, the 1/1/2 switching circuit 38 inputs the switching signal corresponding to the instruction code from the shift register 37 and passes it as it is or 1
It is instructed whether to divide the frequency by two. Here, the instruction code is "0, 0", and the input signal is passed as it is. The address counter 39 counts up in synchronization with the v signal, and when the address of the address circuit 41 and the counter value match, the match circuit 40 generates the match signal t in synchronization with the clock signal, and at the next timing. generate t '. The coincidence signals t and t'are input to the control circuit A42, and as described above, when the signal S is "1", the transistor Q1 is turned on. As a result, the following operation is performed.

【0036】トランジスタQ1がONすると、伝送ライ
ン28の電流を定電流回路32の設定値まで流そうとす
る。前述したように定電流回路27の定電流値<定電流
回路38の定電流値としているために、トランジスタQ
1がONとなっていて、親局10が12Vを送信してい
る間は、定電流回路32が定電流回路27の電流値以上
の電流を流そうとするので、結果的に伝送ライン28の
電圧Zは0V(0Vに近い値)になる。例えば子局入力
ユニット30が3番地のアドレスのものであれば、T5
の区間の12Vが破線に示すように0Vになる。
When the transistor Q1 is turned on, the current of the transmission line 28 tends to flow up to the set value of the constant current circuit 32. Since the constant current value of the constant current circuit 27 <the constant current value of the constant current circuit 38 as described above, the transistor Q
While 1 is ON and the master station 10 is transmitting 12V, the constant current circuit 32 tries to flow a current equal to or larger than the current value of the constant current circuit 27, and as a result, the transmission line 28 The voltage Z becomes 0V (a value close to 0V). For example, if the slave station input unit 30 has an address of 3, then T5
12V in the section is 0V as shown by the broken line.

【0037】親局10においては、伝送ライン28の両
端電圧Zは0Vになるので子局入力ユニット30から0
V即ちデータ“1”が送信されたものとして入力バッフ
ァ25に入力する。このときの波形は実線のところが破
線の状態として観測される。このとき、コントローラ2
2は信号kをシフトレジスタ16へ送出し入力バッファ
25からの信号gを記憶する。
In the master station 10, since the voltage Z across the transmission line 28 becomes 0V, the slave station input unit 30 outputs 0.
It is input to the input buffer 25 as V, that is, data "1" is transmitted. The waveform at this time is observed as a broken line at the solid line. At this time, the controller 2
2 sends the signal k to the shift register 16 and stores the signal g from the input buffer 25.

【0038】一方、子局入力ユニット30においては、
親局10がその後24Vを送信し始めると、出力バッフ
ァ26の定電流回路27はスイッチSW1により短絡さ
れて機能しないので電流制限はなく、24Vの電流容量
>定電流回路32の定電流値となるので、伝送ライン2
8の両端電圧は24Vのままとなっている。以上のよう
に、子局入力ユニット30は、センサ31のON/OF
Fを自局のアドレスに相当したパルス数が計数されたと
きに親局10からのクロック電圧に重畳させて送信する
ことができる。
On the other hand, in the slave station input unit 30,
When the master station 10 subsequently starts transmitting 24V, the constant current circuit 27 of the output buffer 26 is short-circuited by the switch SW1 and does not function, so there is no current limitation, and the current capacity of 24V> the constant current value of the constant current circuit 32 is satisfied. So transmission line 2
The voltage across 8 remains 24V. As described above, the slave station input unit 30 has the sensor 31 ON / OF.
When the number of pulses corresponding to the address of the own station is counted, F can be superimposed on the clock voltage from the master station 10 and transmitted.

【0039】次に、子局出力ユニット50の動作を説明
する。図 はこのときの動作を示すフローチャートであ
る。子局出力ユニット50の動作は基本的には子局入力
ユニットの場合と同等であるが、命令コードをシフトレ
ジスタ37が記憶した後に制御信号ccを制御回路B5
4へ送出する。
Next, the operation of the slave station output unit 50 will be described. The figure is a flow chart showing the operation at this time. The operation of the slave station output unit 50 is basically the same as that of the slave station input unit, but after the instruction code is stored in the shift register 37, the control signal cc is sent to the control circuit B5.
It sends to 4.

【0040】図8は制御回路B54の詳細を示した回路
であり、シフトレジスタ37からの制御信号ccは変換
テーブル120より変換される。この時の入力と出力と
の関係は変換テーブル100のと同じである。この場合
は命令コードは「0,0」であり、その出力は「0,
1,1,1」となる。この出力「1,1,1」はインバ
ータ138〜140を介してそれぞれアンドゲート12
3,131,135にゲ−ト制御信号として入力し、全
てのアンドゲートが閉じる。そして、変換テーブル12
0の出力Y0がインバータ137及びオア回路136を
介してアンドゲート125にゲート制御信号として入力
し、このアンドゲートは開く。一致信号tはこのアンド
ゲート125を介してアンドゲート126にゲート制御
信号として入力し、このアンドゲート126を開く。こ
れにより、コンパレータ34からの信号Zbはメモリ1
27に書き込まれる。この書き込まれた信号yはトラン
ジスタ52のベースに供給される。従って、信号yがO
N信号のときはトランジスタが52がONし、負荷51
が駆動される。また、信号yがOFF信号のときはトラ
ンジスタが52がOFFし、負荷51は駆動されない。
FIG. 8 is a circuit showing the details of the control circuit B54. The control signal cc from the shift register 37 is converted by the conversion table 120. The relationship between the input and the output at this time is the same as that of the conversion table 100. In this case, the instruction code is "0, 0" and its output is "0,
It becomes 1,1,1 ". This output “1,1,1” is supplied to the AND gate 12 via inverters 138 to 140, respectively.
Input as a gate control signal to 3,131,135 to close all the AND gates. Then, the conversion table 12
The output Y0 of 0 is input as a gate control signal to the AND gate 125 via the inverter 137 and the OR circuit 136, and this AND gate is opened. The coincidence signal t is input to the AND gate 126 via the AND gate 125 as a gate control signal to open the AND gate 126. As a result, the signal Zb from the comparator 34 is transferred to the memory 1
27 is written. The written signal y is supplied to the base of the transistor 52. Therefore, the signal y is O
When the signal is N, the transistor 52 turns on and the load 51
Is driven. Further, when the signal y is the OFF signal, the transistor 52 is turned off and the load 51 is not driven.

【0041】次に、命令コードが「0,1」のときのこ
のシステムの動作を説明する。図12はこのときの親局
の動作を示すタイミングチャート、図13は子局入力ユ
ニット30の動作を示すタイミングチャート、図14は
子局出力ユニットの動作を示すタイミングチャートであ
る。これらの親局10、子局入力ユニット30及び子局
出力ユニット50の基本的な動作は命令コード「0,
0」と同じなので相違点を中心に説明する。
Next, the operation of this system when the instruction code is "0, 1" will be described. 12 is a timing chart showing the operation of the master station at this time, FIG. 13 is a timing chart showing the operation of the slave station input unit 30, and FIG. 14 is a timing chart showing the operation of the slave station output unit. The basic operation of the master station 10, slave station input unit 30 and slave station output unit 50 is the instruction code "0,
Since it is the same as "0", the difference will be mainly described.

【0042】親局10のコントローラ22からは順次パ
ルスが発生し、図示のように、スタートパルスの区間T
1、命令コードの2パルス(0,1)の区間T2、子局
入力ユニットからデータを取り込む区間T3及び子局出
力ユニットにデータを送出する区間T4においてそれぞ
れ図示のような伝送電圧が出力バッファ26により伝送
ライン28に印加される。なお、区間T3,T4の2パ
ルス目は子局側からの返送電圧である。
Pulses are sequentially generated from the controller 22 of the master station 10, and as shown in the figure, a start pulse section T
1, a transmission voltage as shown in the figure is output buffer 26 in a section T2 of two pulses (0, 1) of the instruction code, a section T3 for fetching data from the slave station input unit and a section T4 for sending data to the slave station output unit. Is applied to the transmission line 28. The second pulse in the sections T3 and T4 is the return voltage from the slave station side.

【0043】入力ユニット14には上位機種から命令コ
ード「0,1」を入力し、それは上述の場合と同様に、
コントロールユニット22に設定される。コントロール
ユニット22はこの命令コード「0,1」に相当する動
作をする。出力ユニット11、入力ユニット13及び入
力ユニット15並びにそれに付随したシフトレジスタ1
6,17,20の動作は上述の命令コード「0,0」の
場合と同一である。出力ユニット12は子局からの2パ
ルス目のON/OFFデータを出力する(後述する)。
コントローラ22から発生する信号fは、シフトレジス
タ20,21をシフトするタイミングであり、スタート
パルス発生直後の命令コードを送出するシフトレジスタ
21のデータを送出する連続した2パルスと、子局デー
タのシフトレジスタ20のデータとを送出させるが、こ
こでは子局番地に相当する2パルスの最初のパルスに当
たるタイミングで発生する。信号kはシフトレジスタ2
へ子局番地に相当する2パルスの最初のパルスに当たる
タイミングで発生し、最初のパルスに同期した子局から
のON/OFF信号gを記憶させる。信号k´は、シフ
トレジスタ18へ子局番地に相当する2パルスの2パル
ス目に当たるタイミングで発生し、2パルス目に同期し
た子局からのON/OFF信号gを記憶させる。
The instruction code "0, 1" is input to the input unit 14 from the higher model, which is similar to the above case.
It is set in the control unit 22. The control unit 22 operates corresponding to this instruction code "0, 1". The output unit 11, the input unit 13, the input unit 15, and the shift register 1 attached to the output unit 11.
The operations of 6, 17, and 20 are the same as in the case of the instruction code “0, 0” described above. The output unit 12 outputs ON / OFF data of the second pulse from the slave station (described later).
The signal f generated from the controller 22 is the timing for shifting the shift registers 20 and 21, and two consecutive pulses for transmitting the data of the shift register 21 for transmitting the instruction code immediately after the generation of the start pulse and the shift of the slave station data. The data of the register 20 is sent out, but here it is generated at the timing corresponding to the first pulse of the two pulses corresponding to the slave station address. Signal k is shift register 2
The ON / OFF signal g from the slave station, which is generated at the timing corresponding to the first pulse of the two pulses corresponding to the slave station address and is synchronized with the first pulse, is stored. The signal k'is generated in the shift register 18 at the timing corresponding to the second pulse of the two pulses corresponding to the slave station address, and stores the ON / OFF signal g from the slave station synchronized with the second pulse.

【0044】従って、出力ユニット11からは入力バッ
ファ25の最初のパルスが出力され、出力ユニット12
からは2パルス目が出力されるので、両者の関係をみる
ことにより子局の伝送不具合等を確認することができ
る。例えば正常状態では同一番地の信号は出力ユニット
11と出力ユニット12とでは逆になるが、異常が発生
しているとその関係が崩れる。
Therefore, the first pulse of the input buffer 25 is output from the output unit 11, and the output unit 12 outputs the first pulse.
Since the second pulse is output from, the transmission failure of the slave station can be confirmed by checking the relationship between the two. For example, in the normal state, the signals of the same address are opposite between the output unit 11 and the output unit 12, but if an abnormality occurs, the relationship is broken.

【0045】また、命令コード「1,0」の場合には、
子局入力ユニット30では制御回路A42のアンドゲー
ト109が変換テーブル100の出力により開く。ま
た、一致信号tのタイミングでアンドゲート108が開
く。従って、H信号がアンドゲート108,109を介
してオアゲート103に至りトランジスタQ1をオンに
し、伝送ライン28の電圧Zを0Vにする。親局10側
ではこの電圧を検出して該当する番地には入力ユニット
が接続されていることが把握される。
Further, in the case of the instruction code "1,0",
In the slave station input unit 30, the AND gate 109 of the control circuit A42 is opened by the output of the conversion table 100. Further, the AND gate 108 opens at the timing of the coincidence signal t. Therefore, the H signal reaches the OR gate 103 via the AND gates 108 and 109 to turn on the transistor Q1 and set the voltage Z of the transmission line 28 to 0V. The master station 10 detects this voltage and recognizes that the input unit is connected to the corresponding address.

【0046】子局の出力ユニット50では回路B54の
一致信号tのタイミングでアンドゲート128が開き、
またアンドゲート131が変換テーブル120の出力に
より開く。従って、H信号がアンドゲート128及びオ
アゲート130を介してオアゲート124に至りトラン
ジスタQ1をオンにし、伝送ライン28の電圧を0Vに
する。更に、一致信号t´のタイミングでアンドゲート
129が開き、従って、H信号がアンドゲート129及
びオアゲート130を介してオアゲート124に至りト
ランジスタQ1をオンにし、伝送ライン28の電圧Zを
0Vにする。親局10側ではこの電圧を検出して、該当
する番地には出力ユニットが接続されていることを確認
する。従って、この命令コード「1,0」はシステムの
立ち上げ時に主として使用される。
In the output unit 50 of the slave station, the AND gate 128 opens at the timing of the coincidence signal t of the circuit B54,
Further, the AND gate 131 is opened by the output of the conversion table 120. Therefore, the H signal reaches the OR gate 124 via the AND gate 128 and the OR gate 130 to turn on the transistor Q1 and set the voltage of the transmission line 28 to 0V. Further, the AND gate 129 opens at the timing of the coincidence signal t ′, and therefore the H signal reaches the OR gate 124 via the AND gate 129 and the OR gate 130 to turn on the transistor Q1 and set the voltage Z of the transmission line 28 to 0V. The master station 10 detects this voltage and confirms that the output unit is connected to the corresponding address. Therefore, this instruction code "1,0" is mainly used when the system is started up.

【0047】更に、命令コード「1,1」の場合には、
子局入力ユニット30では回路A42のアンドゲート1
13が変換テーブル100の出力により開き、一致信号
tのタイミングでアンドゲート110が開き、従って、
H信号がアンドゲート110、オアゲート112及びア
ンドゲート113を介してオアゲート103に至りトラ
ンジスタQ1を駆動し、メッセージ1を伝送ライン28
に伝える。このメッセージ1としては例えば負荷45の
状態を検出回路(図示せず)により検出し負荷が駆動さ
れているとすると、メッセージ1として“1”情報を親
局10側に伝送する。また、同様にして、一致信号t´
のタイミングでアンドゲート111が開き、従って、H
信号がアンドゲート111、オアゲート112及びアン
ドゲート113を介してオアゲート103に至りトラン
ジスタQ1を駆動し、メッセージ2が伝送ライン28に
伝えられる。このようにして、該当する子局入力ユニッ
ト30からのメッセージ1,2が親局10側に伝えられ
る。
Further, in the case of the instruction code "1,1",
In the slave station input unit 30, the AND gate 1 of the circuit A42
13 is opened by the output of the conversion table 100, and the AND gate 110 is opened at the timing of the coincidence signal t.
The H signal reaches the OR gate 103 via the AND gate 110, the OR gate 112, and the AND gate 113 to drive the transistor Q1, and transmits the message 1 to the transmission line 28.
Tell. As the message 1, for example, if the state of the load 45 is detected by a detection circuit (not shown) and the load is driven, "1" information is transmitted as the message 1 to the master station 10 side. Similarly, the coincidence signal t ′
AND gate 111 opens at the timing of
The signal reaches the OR gate 103 through the AND gate 111, the OR gate 112, and the AND gate 113 to drive the transistor Q1, and the message 2 is transmitted to the transmission line 28. In this way, the messages 1 and 2 from the corresponding slave station input unit 30 are transmitted to the master station 10 side.

【0048】また、この命令コード「1,1」の場合に
は、子局出力ユニット50では回路B54のアンドゲー
ト135が変換テーブル120の出力により開き、一致
信号tのタイミングでアンドゲート132が開き、従っ
て、H信号がアンドゲート132、オアゲート134及
びアンドゲート135を介してオアゲート124に至り
トランジスタQ1を駆動し、メッセージ1を伝送ライン
28に伝える。また、同様にして、一致信号t´のタイ
ミングでアンドゲート133が開き、従って、H信号が
アンドゲート132、オアゲート134及びアンドゲー
ト135を介してオアゲート124に至りトランジスタ
Q1を駆動し、メッセージ2が伝送ライン28に伝えら
れる。このようにして、該当する子局出力ユニット50
からのメッセージ1,2が親局10側に伝えられる。
In the case of this instruction code "1,1", in the slave station output unit 50, the AND gate 135 of the circuit B54 is opened by the output of the conversion table 120, and the AND gate 132 is opened at the timing of the coincidence signal t. Therefore, the H signal reaches the OR gate 124 via the AND gate 132, the OR gate 134, and the AND gate 135 to drive the transistor Q1, and transmits the message 1 to the transmission line 28. Similarly, the AND gate 133 is opened at the timing of the coincidence signal t ′, so that the H signal reaches the OR gate 124 via the AND gate 132, the OR gate 134, and the AND gate 135 to drive the transistor Q1, and the message 2 is transmitted. It is transmitted to the transmission line 28. In this way, the corresponding slave station output unit 50
Messages 1 and 2 are transmitted to the master station 10 side.

【0049】以上のようにして命令コードを適宜組み合
わせることにより、親局10は子局側の状態を把握する
ことができる。具体的な例を以下に説明する。 a)動作の最初又は適当な時に、親局側から命令コード
「1,0」により子局の接続確認を行い、子局が接続さ
れている最大番地の把握を行い、そして、通常の子局へ
のON/OFF動作を接続が確認されている最大番地ま
でのスキャンを行うことにより見掛け上のスキャン時間
を短くすることができる。例えば50番地までのアドレ
スがあるシステムにおいて、実際に接続されている子局
の最大アドレスが30番地の場合には、30番地まで走
査をすればよいから、50番地まで走査をする場合に比
べて時間が短縮される。 b)同様にして子局が出力ユニット又は入力ユニットの
どちらに設定されているか把握することができるので、
入力ユニットに対しては出力を送出したり、出力ユニッ
トから入力したりすることを防止したり、或いは警告を
発することができる。 c)1局対応のパルスを1パルス/1局、2パルス/1
局とすることにより処理速度(走査)を高速にできる。 d)命令コードのパルスを2パルスから数パルスに増す
ことに子局へのサービスを増すことができる。 e)また、子局対応を1局当たり数パルスにし、命令コ
ードにより対応パルスを増減することにより高速処理か
ら、木目細い処理まで対応できる。
By properly combining the instruction codes as described above, the master station 10 can grasp the state of the slave station. A specific example will be described below. a) At the beginning of operation or at an appropriate time, the master station side confirms the connection of the slave station with the instruction code "1,0", grasps the maximum address to which the slave station is connected, and then the normal slave station. The apparent scan time can be shortened by performing the ON / OFF operation to the maximum address for which the connection is confirmed. For example, in a system having addresses up to 50, if the maximum address of the slave station actually connected is 30, it is sufficient to scan up to 30, so compared to the case of scanning up to 50. Time is reduced. b) Similarly, it is possible to know whether the slave station is set as the output unit or the input unit.
An output can be sent to the input unit, input from the output unit can be prevented, or a warning can be issued. c) 1 station / 1 station, 2 pulses / 1
By using a station, the processing speed (scanning) can be increased. d) The service to the slave station can be increased by increasing the pulse number of the instruction code from 2 pulses to several pulses. e) In addition, the number of pulses per slave station is set to several, and the number of corresponding pulses is increased or decreased according to the instruction code, so that high-speed processing to fine-grained processing can be performed.

【0050】[0050]

【発明の効果】以上のように本発明によれば、2本の伝
送ラインを介して親局と子局との間でON/OFFデー
タを授受するだけではなく、子局側にて命令コードに応
じたデータを生成し、それを親局に送出するようにした
ので、伝送ラインの正常又は異常、子局の接続状態、接
続されている子局の点数、子局が入力ユニット又は出力
ユニットのいずれであるか、子局の不具合のメーセージ
等各種の情報を親局に伝送することができる。このた
め、子局側の自己診断機能を果たすことができるのは勿
論、そのデータにより各種の木目細い処理ができる。
As described above, according to the present invention, not only the ON / OFF data is exchanged between the master station and the slave station via the two transmission lines, but also the command code is transmitted on the slave station side. Since it generates data according to, and sends it to the master station, the transmission line is normal or abnormal, the connection status of the slave station, the number of connected slave stations, the slave station is an input unit or an output unit. It is possible to transmit various kinds of information such as a failure message of the slave station to the master station. Therefore, the self-diagnosis function on the side of the slave station can be fulfilled, and of course, various fine processing can be performed by the data.

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

【図1】本発明の一実施例に係るシステムの親局の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a master station of a system according to an embodiment of the present invention.

【図2】前記システムの子局入力ユニットの構成を示す
ブロック図である。
FIG. 2 is a block diagram showing a configuration of a slave station input unit of the system.

【図3】前記システムの子局出力ユニットの構成を示す
ブロック図である。
FIG. 3 is a block diagram showing a configuration of a slave station output unit of the system.

【図4】前記親局の出力バッファの構成を示す回路図で
ある。
FIG. 4 is a circuit diagram showing a configuration of an output buffer of the master station.

【図5】前記子局入力ユニットの定電流回路の王政を示
す回路図である。
FIG. 5 is a circuit diagram showing a royal government of a constant current circuit of the slave station input unit.

【図6】前記定電流回路の他の構成例を示す回路図であ
る。
FIG. 6 is a circuit diagram showing another configuration example of the constant current circuit.

【図7】前記子局入力ユニットの制御回路Aの構成を示
す回路図である。
FIG. 7 is a circuit diagram showing a configuration of a control circuit A of the slave station input unit.

【図8】前記子局出力ユニットの制御回路Bの構成を示
す回路図である。
FIG. 8 is a circuit diagram showing a configuration of a control circuit B of the slave station output unit.

【図9】命令コード「0,0」のときの親局の動作を示
すタイミングチャートである。
FIG. 9 is a timing chart showing the operation of the master station when the instruction code is “0,0”.

【図10】命令コード「0,0」のときの子局入力ユニ
ットの動作を示すタイミングチャートである。
FIG. 10 is a timing chart showing the operation of the slave station input unit when the instruction code is “0,0”.

【図11】命令コード「0,0」のときの子局出力ユニ
ットの動作を示すタイミングチャートである。
FIG. 11 is a timing chart showing the operation of the slave station output unit when the instruction code is “0,0”.

【図12】命令コード「0,1」のときの親局の動作を
示すタイミングチャートである。
FIG. 12 is a timing chart showing the operation of the master station when the instruction code is “0, 1”.

【図13】命令コード「0,1」のときの子局入力ユニ
ットの動作を示すタイミングチャートである。
FIG. 13 is a timing chart showing the operation of the slave station input unit when the instruction code is “0, 1”.

【図14】命令コード「0,1」のときの子局出力ユニ
ットの動作を示すタイミングチャートである。
FIG. 14 is a timing chart showing the operation of the slave station output unit when the instruction code is “0, 1”.

【図15】本発明のスタートパルス、命令コード及びそ
れに続くクロック電圧の一般的な関係を示したタイミン
グチャートである。
FIG. 15 is a timing chart showing a general relationship between a start pulse, an instruction code, and a clock voltage following the start pulse of the present invention.

【図16】命令コード「0,0」の通常の動作を示すタ
イミングチャートである。
FIG. 16 is a timing chart showing a normal operation of the instruction code “0,0”.

【図17】命令コード「0,1」の安全伝送の確認を行
った場合を示すタイミングチャートである。
FIG. 17 is a timing chart showing a case where the safe transmission of the instruction code “0, 1” is confirmed.

【図18】命令コード「1,0」の子局の接続確認を行
った場合を示すタイミングチャートである。
FIG. 18 is a timing chart showing a case where connection of a slave station with an instruction code “1,0” is confirmed.

【図19】命令コード「1,1」の子局側から不具合を
示すメッセージを親局側に送出する場合のタイミングチ
ャートである。
FIG. 19 is a timing chart when the slave station side of the instruction code “1,1” sends a message indicating a defect to the master station side.

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 親局は、所定幅のスタートパルス、それ
に続く命令コード及びこの命令コードの後方に続き、第
1の電圧レベルのパルスとそれに続く少なくとも1以上
の第1の電圧レベルのパルスとを各子局に対応させて1
組みとするクロック電圧を2本の伝送ラインを介して送
出し、前記第1の電圧レベルのパルスを送出するときに
は第1の定電流回路を介して送出し、 子局は、伝送ラインの電圧信号を計数し、その計数値が
自局のアドレスに該当するとき、その子局のもつデータ
に基づいて伝送ラインに並列接続された第2定電流回路
(但し、第1の定電流回路の定電流値<第2の定電流回
路の定電流値)を駆動し、その後に、前記命令コードに
対応したデータに基いて第2定電流回路を駆動し、 親局側では伝送ラインの端子電圧の内、該当するアドレ
スの最初のクロック電圧を入力データとして取り込み、
次のクロック電圧以降を子局側からの命令コードに対応
したデータとして取り込むことを特徴とするデータの送
受信方法。
1. The master station includes a start pulse having a predetermined width, a command code following the command pulse, and a pulse having a first voltage level, followed by a pulse having a first voltage level and a pulse having at least one or more first voltage levels following the command pulse. 1 for each slave station
The clock voltage to be set is sent out through two transmission lines, and when the pulse of the first voltage level is sent out, it is sent out through the first constant current circuit. And when the count value corresponds to the address of the local station, the second constant current circuit connected in parallel to the transmission line based on the data of the slave station (however, the constant current value of the first constant current circuit is <Constant current value of second constant current circuit) is driven, and then the second constant current circuit is driven based on the data corresponding to the instruction code. Capture the first clock voltage of the corresponding address as input data,
A data transmission / reception method characterized in that the next clock voltage and subsequent voltages are fetched as data corresponding to the instruction code from the slave station.
【請求項2】 親局は、所定幅のスタートパルス、それ
に続く命令コード及びこの命令コードの後方に続き、出
力データに応じて第1の電圧レベルのパルス又は0Vの
パルスとそれに続く少なくとも1以上の第1の電圧レベ
ルのパルスとを各子局に対応させて1組みとするクロッ
ク電圧を2本の伝送ラインを介して送出し、前記第1の
電圧レベルのパルスを送出するときには第1の定電流回
路を介して送出し、 子局は、伝送ラインの電圧信号を計数し、その計数値が
自局のアドレスに該当するとき、該当するアドレスの最
初のクロック電圧に基づいてオン又はオフ出力をし、そ
の後に、前記命令コードに対応したデータに基いて伝送
ラインに並列接続された第2定電流回路(但し、第1の
定電流回路の定電流値<第2の定電流回路の定電流値)
を駆動し、 親局側では伝送ラインの端子電圧の内、該当するアドレ
スの2番目以降のクロック電圧を子局側のからの命令コ
ードに対応したデータとして取り込むことを特徴とする
データの送受信方法。
2. The master station follows a start pulse of a predetermined width, a subsequent instruction code, and a trailing edge of the instruction code, and a pulse of a first voltage level or a pulse of 0V and at least one or more subsequent pulses according to output data. Of the first voltage level of the pulse and the slave station are transmitted as a set of clock voltages via two transmission lines, and when the pulse of the first voltage level is transmitted, Transmitted via the constant current circuit, the slave station counts the voltage signal of the transmission line, and when the count value corresponds to the address of its own station, it outputs on or off based on the first clock voltage of the corresponding address. Then, based on the data corresponding to the instruction code, a second constant current circuit connected in parallel to the transmission line (where the constant current value of the first constant current circuit <the constant current value of the second constant current circuit Current value
The method of transmitting and receiving data is characterized in that the master station side takes in the second and subsequent clock voltages of the corresponding address among the terminal voltages of the transmission line as data corresponding to the instruction code from the slave station side. .
【請求項3】 命令コードが安全伝送を確認するもので
あるときには、子局側からは該当するアドレスの最初の
クロック電圧とは異なった信号レベルの電圧信号を親局
側に返送する請求項1又は2記載のデータの送受信方
法。
3. The slave station side returns a voltage signal having a signal level different from the first clock voltage of the corresponding address to the master station side when the instruction code is for confirming safe transmission. Alternatively, the data transmission / reception method described in 2.
【請求項4】 親局は、所定幅のスタートパルス、それ
に続く命令コード及びこの命令コードの後方に続き、第
1の電圧レベルのパルスとそれに続く少なくとも1以上
の第1の電圧レベルのパルスとを各子局に対応させて1
組みとするクロック電圧を2本の伝送ラインを介して送
出し、前記第1の電圧レベルのパルスを送出するときに
は第1の定電流回路を介して送出し、 子局は、伝送ラインの電圧信号を計数し、その計数値が
自局のアドレスに該当するとき、その命令コードに対応
したデータに基いて伝送ラインに並列接続された第2定
電流回路(但し、第1の定電流回路の定電流値<第2の
定電流回路の定電流値)を駆動し、 親局側では伝送ラインの端子電圧の内、該当するアドレ
スのクロック電圧を子局側からの命令コードに対応した
データとして取り込むことを特徴とするデータの送受信
方法。
4. The master station has a start pulse of a predetermined width, a command code following the command pulse, and a pulse of a first voltage level following the command code, followed by a pulse of at least one or more first voltage levels. 1 for each slave station
The clock voltage to be set is sent out through two transmission lines, and when the pulse of the first voltage level is sent out, it is sent out through the first constant current circuit. And when the count value corresponds to the address of the own station, the second constant current circuit connected in parallel to the transmission line based on the data corresponding to the command code (however, the constant current circuit of the first constant current circuit Current value <constant current value of second constant current circuit) is driven, and the master station takes in the clock voltage of the corresponding address among the terminal voltages of the transmission line as the data corresponding to the instruction code from the slave station. A method of transmitting and receiving data, which is characterized by the following.
【請求項5】 命令コードが子局の接続状態を確認する
ものであるとき、子局入力ユニットと子局出力ユニット
とでは、命令コードに対応したデータを異ならせたこと
を特徴とする請求項4記載のデータの送受信方法。
5. The data corresponding to the instruction code is made different between the child station input unit and the child station output unit when the instruction code is for confirming the connection state of the child station. The method of transmitting and receiving data described in 4.
【請求項6】 命令コードが所定の命令のとき、子局側
からそれぞれ該当する子局の特定のメーセージを親局側
に送出することを特徴とする請求項5記載のデータの送
受信方法。
6. The data transmitting / receiving method according to claim 5, wherein when the instruction code is a predetermined instruction, a specific message of the corresponding slave station is transmitted from the slave station side to the master station side.
【請求項7】 所定幅のスタートパルス、それに続く命
令コード、この命令コードの後方に続き、第1の電圧レ
ベルのパルスとそれに続く少なくとも1以上の第1の電
圧レベルのパルスとを各子局に対応させて1組みとする
クロック電圧を2本の伝送ラインを介して送出し、第1
の電圧レベルのクロック電圧を送出するときには第1の
定電流回路を介して送出する出力バッファと、 伝送ラインの端子電圧を入力データとして取り込む入力
バッファと、 前記入力バッファからのクロック電圧の内、該当するア
ドレスの最初のクロック電圧が入力データとして格納さ
れる第1の記憶手段と、 前記入力バッファからのクロック電圧の内、該当するア
ドレスの2番目以降ののクロック電圧が命令コードに対
応したデータとして格納される第2の記憶手段とを有す
ることを特徴とする親局。
7. A slave station having a start pulse of a predetermined width, an instruction code following the instruction code, a pulse of a first voltage level following the instruction code, and a pulse of at least one or more first voltage levels following it. The clock voltage to be set as one set is sent out through two transmission lines to
An output buffer for sending out the clock voltage of the voltage level of 1 through the first constant current circuit, an input buffer for taking in the terminal voltage of the transmission line as input data, and a clock voltage from the input buffer. First storage means for storing the first clock voltage of an address to be input as input data, and second and subsequent clock voltages of the corresponding address among the clock voltages from the input buffer as data corresponding to the instruction code. And a second storage means for storing the master station.
【請求項8】 所定幅のスタートパルス、それに続く命
令コード、及びこの命令コードの後方に続き、第1の電
圧レベルのパルスとそれに続く少なくとも1以上の第1
の電圧レベルのパルスとを各子局に対応させて1組みと
するクロック電圧が2本の伝送ラインを介して親局から
送出され、これらの電圧を方向性素子を介して整流し、
子局の電源とする平滑回路と、 前記2本の伝送ラインの電圧信号を計数するカウンタ
と、 該カウンタの計数値が予め設定されている自局のアドレ
スと一致するかどうかを検出し、一致しているとき一致
信号を出力する自局アドレス信号検出回路と、 伝送ラインを介して親局から送られてくる自局のアドレ
スにおける第1の電圧レベルのクロック電圧の電流容量
より大きい電流容量を有し、伝送ラインに並列に接続さ
れた第2の定電流回路と、 前記第2の定電流回路に直列に接続されたスイッチ素子
と前記命令コードを記憶する記憶手段と、 前記一致信号、センサ出力及び命令コードを入力し、命
令コードに基いてデータを生成し、命令コードの態様に
従って、そのセンサ出力及び前記データ、又は前記デー
タに基いて前記スイッチ素子を駆動する制御手段とを有
することを特徴とする子局入力ユニット。
8. A start pulse having a predetermined width, an instruction code following the instruction pulse, and a pulse having a first voltage level following the instruction code and at least one or more first pulses following the pulse.
A clock voltage that corresponds to each slave station with a pulse of the voltage level of is transmitted from the master station via two transmission lines, rectifies these voltages via a directional element,
A smoothing circuit used as the power source of the slave station, a counter for counting the voltage signals of the two transmission lines, and detection of whether the count value of the counter matches a preset address of the own station, The local address signal detection circuit that outputs a coincidence signal and the current capacity larger than the current capacity of the clock voltage of the first voltage level at the address of the local station sent from the master station via the transmission line. A second constant current circuit having a parallel connection to the transmission line, a switch element connected in series to the second constant current circuit, and a storage unit for storing the instruction code, the coincidence signal, the sensor An output and an instruction code are input, data is generated based on the instruction code, and the sensor output and the data, or the switch element based on the data, according to the aspect of the instruction code. The slave station input unit, characterized in that it comprises a dynamic control unit.
【請求項9】 2本の伝送ラインの電圧信号が所定の幅
を越えていると、それをスタートパルスであると判断
し、前記カウンタ及び記憶手段にリセット信号を送出す
るリセット回路を有することを特徴とする請求項7記載
の子局入力ユニット。
9. A reset circuit is provided which, when the voltage signals of the two transmission lines exceed a predetermined width, judges that it is a start pulse and sends a reset signal to the counter and the storage means. The slave station input unit according to claim 7, which is characterized in that.
【請求項10】 所定幅のスタートパルス、それに続く
命令コード及びこの命令コードの後方に続き、第1の電
圧レベルのパルスとそれに続く少なくとも1以上の第1
の電圧レベルのパルスとを各子局に対応させて1組みと
するクロック電圧が2本の伝送ラインを介して親局から
送出され、これらの電圧を方向性素子を介して整流し、
子局の電源とする平滑回路と、 前記2本の伝送ラインの電圧信号を計数するカウンタ
と、 該カウンタの計数値が予め設定されている自局のアドレ
スと一致するかどうかを検出し、一致しているとき一致
信号を出力する自局アドレス信号検出回路と、 伝送ラインを介して親局から送られてくる自局のアドレ
スにおける第1の電圧レベルのクロック電圧の電流容量
より大きい電流容量を有し、伝送ラインに並列に接続さ
れた第2の定電流回路と、 前記第2の定電流回路に直列に接続されたスイッチ素子
と前記命令コードを記憶する記憶手段と伝送ラインのク
ロック電圧、前記一致信号及び前記命令コードを入力
し、前記命令コードに基いてデータを生成し、前記命令
コードの態様に従って、一致信号が入力しているときの
最初のクロック電圧を記憶手段を介して負荷に出力した
後に前記データに基いて前記スイッチ素子を駆動し、又
は前記データに基いて命令コードに基いて前記スイッチ
素子を駆動する制御手段とを有することを特徴とする子
局出力ユニット。
10. A start pulse having a predetermined width, an instruction code following the instruction pulse, and a pulse of a first voltage level following the instruction code and a pulse of a first voltage level followed by at least one or more first pulses.
A clock voltage that corresponds to each slave station with a pulse of the voltage level of is transmitted from the master station via two transmission lines, rectifies these voltages via a directional element,
A smoothing circuit used as a power source for the slave station, a counter for counting the voltage signals of the two transmission lines, and detection of whether or not the count value of the counter matches a preset address of the own station, The local address signal detection circuit that outputs a coincidence signal and the current capacity larger than the current capacity of the clock voltage of the first voltage level at the address of the local station sent from the master station via the transmission line. A second constant current circuit having a parallel connection to the transmission line, a switch element connected in series to the second constant current circuit, a storage unit for storing the instruction code, and a clock voltage of the transmission line; The match signal and the instruction code are input, data is generated based on the instruction code, and the first clock voltage when the match signal is input is set according to the aspect of the instruction code. And a control means for driving the switch element based on the data after being output to the load via the storage means, or for driving the switch element based on an instruction code based on the data. Station output unit.
【請求項11】 2本の伝送ラインの電圧信号が所定の
幅を越えていると、それをスタートパルスであると判断
し、前記カウンタにリセット信号を送出するリセット回
路を有することを特徴とする請求項9記載の子局出力ユ
ニット。
11. A reset circuit is provided which, when the voltage signals of the two transmission lines exceed a predetermined width, determines that it is a start pulse and sends a reset signal to the counter. The slave station output unit according to claim 9.
JP20824092A 1992-08-04 1992-08-04 Data transmission / reception method and system Expired - Lifetime JP3277390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20824092A JP3277390B2 (en) 1992-08-04 1992-08-04 Data transmission / reception method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20824092A JP3277390B2 (en) 1992-08-04 1992-08-04 Data transmission / reception method and system

Publications (2)

Publication Number Publication Date
JPH0662466A true JPH0662466A (en) 1994-03-04
JP3277390B2 JP3277390B2 (en) 2002-04-22

Family

ID=16552981

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20824092A Expired - Lifetime JP3277390B2 (en) 1992-08-04 1992-08-04 Data transmission / reception method and system

Country Status (1)

Country Link
JP (1) JP3277390B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107941829A (en) * 2017-12-27 2018-04-20 云南航天工程物探检测股份有限公司 Concrete pouring quality CT detectors system and detection method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107941829A (en) * 2017-12-27 2018-04-20 云南航天工程物探检测股份有限公司 Concrete pouring quality CT detectors system and detection method

Also Published As

Publication number Publication date
JP3277390B2 (en) 2002-04-22

Similar Documents

Publication Publication Date Title
US6567476B2 (en) Data synchronisation process, and transmission and reception interfaces
US4630042A (en) Wired commodity vending system
US5162623A (en) Elevator monitor and control system with multiple power sources
JPH08265308A (en) Method and device for fully bidirectional communication and programmable controller using the same
JPH0662466A (en) Data transmitting/receiving method and its system
JPH07283765A (en) Method and device for two-wire power transmission/ reception communication
JPH036997A (en) Control monitor signal transmission system
US20040032341A1 (en) Sensor head, control module and multiple sensor
JP2917060B2 (en) Data transmission / reception method and apparatus
KR940000588B1 (en) Device for controlling remote detection of a lamp in a lighting system
JPH06351082A (en) Method for transmitting data
JPS6244733B2 (en)
JPH05103382A (en) Bus type information transmitting device
WO2022269809A1 (en) Serial communication system
JPS5825654Y2 (en) Time division remote control device
JPH0431649Y2 (en)
JPH0129893Y2 (en)
JPH0139029Y2 (en)
JP2532405Y2 (en) Data transmission circuit
JPS6238637A (en) Control system for transmission in multi-drop
JPH03285429A (en) Signal transmission system
JPS6219062Y2 (en)
JP3270131B2 (en) Electric take-up device system
JP3296835B2 (en) Function setting method for multiplex transmission equipment
JPS60254929A (en) Wired remote control system

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090215

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20100215

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110215

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120215

Year of fee payment: 10

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 11

Free format text: PAYMENT UNTIL: 20130215

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130215

Year of fee payment: 11