JPS6022540B2 - Transmission control method - Google Patents

Transmission control method

Info

Publication number
JPS6022540B2
JPS6022540B2 JP3605880A JP3605880A JPS6022540B2 JP S6022540 B2 JPS6022540 B2 JP S6022540B2 JP 3605880 A JP3605880 A JP 3605880A JP 3605880 A JP3605880 A JP 3605880A JP S6022540 B2 JPS6022540 B2 JP S6022540B2
Authority
JP
Japan
Prior art keywords
data
transmission
received data
data block
address
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
Application number
JP3605880A
Other languages
Japanese (ja)
Other versions
JPS56132840A (en
Inventor
信之 藤倉
欣司 森
廣一 井原
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP3605880A priority Critical patent/JPS6022540B2/en
Publication of JPS56132840A publication Critical patent/JPS56132840A/en
Publication of JPS6022540B2 publication Critical patent/JPS6022540B2/en
Expired legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/427Loop networks with decentralised control
    • H04L12/433Loop networks with decentralised control with asynchronous transmission, e.g. token ring, register insertion

Description

【発明の詳細な説明】 本発明は、一方向性伝送システムにおける情報の伝送制
御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information transmission control method in a unidirectional transmission system.

ここでは説明を具体的にするため、ループ伝送システム
を例にとり説明する。ループ伝送システムの基本的構成
は、第1図に示すように、1本の伝送路Lをループ状に
構成しただけの簡単なものである。
Here, in order to make the explanation more concrete, a loop transmission system will be used as an example. The basic configuration of the loop transmission system is simple, as shown in FIG. 1, in which one transmission line L is configured in a loop shape.

計算後、端末等からなる各機器P,,P2・・・・・・
、Pmは、この1本のループ伝送路Lを時分割的に共同
利用することによって、データを送受信する。通信制御
装置からなるステーションC,,C2…・・・、Cnを
、ループ伝送路Lの任意の位置に設置しておき、各機器
P,,P2・・・・・・、Pmを最寄りのステーション
に接続する。各ステーションC,,C2……、Cnには
、必ずしも機器が接続されなくても良い。たとえば、第
1図のステーションC5,C8のようにである。ち,C
8のように機器が接続されていないステーションは、等
価的に単なる伝送路Lと同じ働きをする。ループ伝送路
Lには、ヒット’シリアルな形のデータDが矢印で示す
一方向に巡回している。各ステ−ションは、ループ伝送
路L上に回るデータの内、自ステーションあてのデータ
だけを自ステーションに接続されている機器に転送する
制御機能と、自ステーションに接続されている機器から
の送信データを、ループ伝送路Lに乗せる制御機能を有
する。従来のステーションでは、送信データをループ伝
送路に伝送するとき、ループ伝送路を回っているデータ
と重ならないように、送信データをループ伝送路に伝送
するいくつかの方法が採用されている。
After calculation, each device P,, P2, consisting of terminals, etc.
, Pm transmit and receive data by jointly using this single loop transmission path L in a time-division manner. Stations C, C2..., Cn consisting of communication control devices are installed at arbitrary positions on the loop transmission path L, and each device P,, P2..., Pm is connected to the nearest station. Connect to. Each station C, C2, . . . , Cn does not necessarily have to be connected to a device. For example, stations C5 and C8 in FIG. C, C
A station to which no equipment is connected, such as 8, functions equivalently to a simple transmission line L. On the loop transmission line L, hit'serial data D circulates in one direction as indicated by the arrow. Each station has a control function that transfers only the data addressed to its own station among the data circulating on the loop transmission path L to the equipment connected to its own station, and a control function that transfers only the data addressed to its own station to the equipment connected to its own station. It has a control function to transfer data onto the loop transmission line L. In conventional stations, when transmitting data to a loop transmission path, several methods are employed to transmit the transmission data to the loop transmission path so as not to overlap with data circulating around the loop transmission path.

このいくつかの方法のうち、ループ伝送路の混み具合し
、にかかわらず、送信データをほとんど待たずに伝送で
きる方法として、シフト。レジスタ,インサート法と呼
ばれる方法がある。この方法では、どんな過負荷時にお
いても、ステーションでの待ち時間が、データの1ブロ
ック分の時間以下である。ステーションのハードウェア
の構成は、第2図に示すように、受信シフトレジスタR
SR、送信シフトレジスタTRS、およびスイッチSW
からなる。通常スイッチは端子「100」に接続され、
バイパス状態にある。
Among these methods, shift is the method that allows transmission of data with almost no waiting time, regardless of how busy the loop transmission path is. There is a method called the register or insert method. With this method, the waiting time at the station is less than the time of one block of data during any overload. The hardware configuration of the station is as shown in FIG.
SR, transmission shift register TRS, and switch SW
Consisting of Usually the switch is connected to terminal "100",
On bypass.

ループ伝送路上のデータブロックは絶えず受信シフトレ
ジスタRSRで監視されている。いま、ステーションの
入力に、第3図aに示すような、データブロックAおよ
びブロックAに連続したデータブロックBが入力される
ものとする。ステーションのスイッチSWのところを「
ブ。
Data blocks on the loop transmission path are constantly monitored by the receive shift register RSR. Now, it is assumed that a data block A and a data block B consecutive to block A, as shown in FIG. 3a, are input to the input of the station. At the station switch SW,
Bu.

ックAが通過中のとき、ブロック○の送信要求が発生し
、それを送信シフトレジスタTSRにセットしたところ
とする。ブロックAの最後のビットが通過した時に、ス
イッチSWを端思102に切り換える。この状態でルー
プ伝送路上に送信データブロックDが送り込まれてゆく
。これと並行して、受信シフトレジスタRSRには、デ
ータブロックBのビットが順次入力されてゆく。データ
ブロックDの送信が終了した時点で、スイッチSWは端
子101に切り換えられ、受信シフトレジスタRSRに
一旦入力されたデータブロックBが、つづいて、ループ
伝送路に送出される。したがって、ステーションの出力
は、第3図bに示すように、送信データブロックDが、
データブロックAとBとの間に挿入されて、ブロックA
?○,B順の出力となる。受信シフトレジスタRSRが
空となったとき、あるいは自分が送出したデータが戻っ
てきたとき、スイッチSWを端子100‘こ切り換え、
初期状態に戻す。この方法では、受信中のブロックの最
終ビットを送信してからでないと、送信ブロックDが送
信できないため「受信中のデータブロック長が長いもの
であると、送信ブロックDが送信できるまでの待ち時間
も長くなる欠点がある。
Assume that when block A is passing through, a transmission request for block ○ is generated, and it is set in the transmission shift register TSR. When the last bit of block A has passed, the switch SW is switched to the terminal 102. In this state, the transmission data block D is sent onto the loop transmission path. In parallel with this, the bits of data block B are sequentially input to the reception shift register RSR. When the transmission of the data block D is completed, the switch SW is switched to the terminal 101, and the data block B, which has been once input to the reception shift register RSR, is subsequently sent out to the loop transmission path. Therefore, the output of the station is such that the transmitted data block D is
Block A is inserted between data blocks A and B.
? The output is in the order of ○ and B. When the receive shift register RSR becomes empty or when the data sent by itself is returned, switch SW to terminal 100'.
Return to initial state. In this method, the last bit of the block being received must be sent before the sending block D can be sent. It has the disadvantage of being long.

本発明は、上記従釆技術の欠点を解消するためになされ
たものであり、受信中のブ。
The present invention has been made in order to eliminate the drawbacks of the above-mentioned follow-up technology.

ックの最終ビットの送信を待たずに、送信データブロッ
クDを伝送路に送信できる簡便な情報の伝送制御方式を
提供するものである。本発明の特徴は、受信データブロ
ックAの途中のビットを送信中に、送信ブロックDの送
信要求が発生した場合は、その後受信される受信ブロッ
クAの残りのビットの送信を中断し、送信ブロックDを
まず送信し、しかる後に、送信を中断した受信ブロック
Aを先頭ビットから最終ビットまで送信するようにした
ことにある。
This invention provides a simple information transmission control system that can transmit a transmission data block D to a transmission path without waiting for the transmission of the final bit of a block. A feature of the present invention is that if a request for transmission of transmission block D occurs while transmitting bits in the middle of reception data block A, transmission of the remaining bits of reception block A that will be received thereafter is interrupted, and the transmission block The reason is that block D is first transmitted, and then received block A, whose transmission was interrupted, is transmitted from the first bit to the last bit.

まず、本発明の原理について、第4図a,bおよびcに
もとづいて説明する。
First, the principle of the present invention will be explained based on FIGS. 4a, b, and c.

今、ステーションは、同図aに示す受信データブロック
X,A,B,Yを順次受信するものとする。受信データ
ブロックXはそのまま、同図cに示すように送信される
。ブロック長の長い受信ブロックAを受信中に、同図b
のTに示すタイミングで送信データブロックDの送信要
求が発生したとする。すでに受信した受信データブロッ
クAの部分、すなわちブロックAの先頭部分A′は「同
図cに示すように、すでに送信済であるが、ループ伝送
路から受信されるデータブロックAの残りの部分をつづ
けて送信することを中断し、送信データブロックDを同
図cに示すように送信する。しかる後に、受信ブロック
データAの、先頭ビットから最終ビットまでの全ビット
を送信する。そして、受信データブロックAにつづく受
信ブロックB,Yを同図cに示すように送信する。なお
、第4図における不完全なデータブロックA′をステー
ションで受信したときは、これを除く方法は公知である
ので、ここでは説明を省略する。
It is now assumed that the station sequentially receives received data blocks X, A, B, and Y shown in FIG. The received data block X is transmitted as is as shown in FIG. While receiving block A with a long block length,
Assume that a request to transmit a transmission data block D occurs at a timing indicated by T in FIG. The part of the received data block A that has already been received, that is, the leading part A' of the block A, is "as shown in c in the same figure, but the remaining part of the data block A that is received from the loop transmission path is The subsequent transmission is interrupted and the transmission data block D is transmitted as shown in c of the figure.After that, all bits of the reception block data A from the first bit to the last bit are transmitted.Then, the reception data block D is transmitted as shown in c. The received blocks B and Y following block A are transmitted as shown in c of the same figure.In addition, when the incomplete data block A' in Fig. 4 is received at the station, there is a known method for removing it. , the explanation is omitted here.

以下、本発明を実施例により詳細に説明する。Hereinafter, the present invention will be explained in detail with reference to Examples.

第5図は、本発明の実施例の説明図であり、ステーショ
ンCiの構成を示すものである。ステーションCiの内
のデータの流れにもとづいて、ステーションC,を5個
の糸に分けると次のようになる。■バイパスライン系 左側のループ伝送路L、受信器10、パラレル信号線1
1、セレクタ20、送信器30、右側のループ伝送路L
からなる系であって、ステーションCiが受信したデー
タをそのまま送信するための糸。
FIG. 5 is an explanatory diagram of an embodiment of the present invention, showing the configuration of station Ci. Based on the data flow within station Ci, station C is divided into five threads as follows. ■Bypass line system Loop transmission line L on the left side, receiver 10, parallel signal line 1
1, selector 20, transmitter 30, right loop transmission line L
A string for transmitting the data received by station Ci as is.

■ 受信データ時記憶系 パラレル信号線11から受信データを受信データ記憶装
置44に書き込むための系で、記憶装置44に受信デー
タを書き込むための処理装置40、記憶装置44のアド
レスを記憶するためのアドレスレジスタ41,42、受
信データ記憶装置44からなる系。
■ Storage system for received data A system for writing received data from the parallel signal line 11 to the received data storage device 44, a processing device 40 for writing the received data to the storage device 44, and a system for storing the address of the storage device 44. A system consisting of address registers 41 and 42 and a received data storage device 44.

■ 受信データ取り込み系 受信データ記憶装置44に記憶された受信データのうち
、機器P;に送るべきデータを読み出して、機器Piに
送信するために系であって、複数のアドレスレジスタ5
0、記憶装置44の読み出しアドレスを記憶するための
アドレスレジスタ71、および処理装置80からなる系
■ Received data import system A system for reading out data to be sent to device P from among the received data stored in the received data storage device 44 and transmitting it to device Pi.
0, an address register 71 for storing the read address of the storage device 44, and a processing device 80.

■ 送信データ一時記憶系 機器Piからの送信データを送信データ記憶装置82に
セットするための系であって、記憶装置82に送信デー
タを書き込むための処理装置80、記憶装置82のアド
レスを記憶するためのアドレスレジスタ81,84から
なる系。
■ Transmission data temporary storage system A system for setting transmission data from the device Pi into the transmission data storage device 82, which stores the address of the processing device 80 and storage device 82 for writing the transmission data in the storage device 82. A system consisting of address registers 81 and 84 for

■ 送信データおよび受信データの送信制御系送信デー
タを受信データに優先して送信制御するための、本発明
の主要部に対応する系であって、送信制御するための処
理装置60、受信データ記憶装置44から受信データを
読み出すためのアドレスを記憶するアドレスレジスタ7
0、送信データ記憶装置82から送信データを読み出す
ためのアドレスを記憶するアドレスレジスタ62、複数
のアドレスレジスタ83からなる系。
■ Transmission control system for transmission data and reception data A system corresponding to the main part of the present invention for controlling the transmission of transmission data with priority over reception data, which includes a processing device 60 for controlling transmission, and reception data storage. Address register 7 for storing an address for reading received data from device 44
0. A system consisting of an address register 62 that stores an address for reading out transmission data from a transmission data storage device 82, and a plurality of address registers 83.

○}まず、バイパスライン系の動作を説明する。○} First, the operation of the bypass line system will be explained.

第5図の左側のループ伝送路Lから時系的に送られてく
る受信データを、受信器10は受信し、この時系列の受
信データを8ビット単位のパラレルの受信データに変換
し、8本の線からなる信号線11に出力する。パラレル
変換された受信データは信号線11に結合されたセレク
タ20に印加される。セレク夕201こは、詳しくは後
述する処理袋直60からのパラレルの情報を印加するた
めの8本の緩からなる信号線64も接続されている。セ
レクタ20は、信号線65のフラク信号(詳しくは後述
)にもとづいて、信号線11のデータか信号線64のデ
ータか、いずれかのデータを送信器3川こ選択出力する
。フラグ信号が0のとき、信号線11のデータが選択さ
れ、1のとき信号線64のデータが選択される。送信器
30は、セレクタ20を介して送られてきたパラレルの
データをシリアルのデータに変換し、同図右側のループ
伝送路Lに送信する。したがって、信号線65のフラグ
信号が0のとき、ステーションCiの受信データは、信
号線11、セレクタ20の順にバイパスされ、フラグ信
号が1のとき、受信データはバイパスがセレクタ20‘
こより阻止される。第4図のa,bおよびcに対応して
、バイパスライン系の動作を説明すれば、同図aに示す
受信データ×が受信されたとき、フラグ信号は0であり
、セレクタ20を介して受信データのバイパスが行なわ
れ、受信データ×の受信タイミングとほぼ同じタイミン
グで、同図cに示すように、データXが送信される。と
ころが、受信データAを受信中に、同図bのTに示すタ
イミングで、送信データDの送信要求が発生すると、フ
ラグ信号は0から1に変化し、受信データのバイパスが
阻止される。この状態は、受信データブロックBの送信
を完了するまでつつく。受信データBの送信を完了する
と、フラグ信号は再び0に戻り、受信データのバイパス
が可能となり、受信データYのバイパスが行なわれる。
‘2} 次に受信データ一時記憶系についての動作を第
5図〜第8図a,b,c,(を用いて説明する。
The receiver 10 receives the received data sent in a time series from the loop transmission line L on the left side of FIG. 5, converts this time series received data into parallel received data in units of 8 bits, The signal is output to a signal line 11 consisting of a main line. The parallel-converted received data is applied to a selector 20 coupled to a signal line 11. The selector 201 is also connected to eight loose signal lines 64 for applying parallel information from a processing bag direct 60, which will be described in detail later. The selector 20 selectively outputs either the data on the signal line 11 or the data on the signal line 64 to the three transmitters based on the signal on the signal line 65 (details will be described later). When the flag signal is 0, data on the signal line 11 is selected, and when the flag signal is 1, data on the signal line 64 is selected. The transmitter 30 converts the parallel data sent via the selector 20 into serial data and sends it to the loop transmission line L on the right side of the figure. Therefore, when the flag signal of the signal line 65 is 0, the received data of the station Ci is bypassed in the order of the signal line 11 and the selector 20, and when the flag signal is 1, the received data is bypassed to the selector 20'.
This will prevent it. To explain the operation of the bypass line system corresponding to a, b, and c of FIG. 4, when the received data x shown in a of FIG. Bypassing of the received data is performed, and data X is transmitted at substantially the same timing as the reception timing of received data X, as shown in FIG. However, when a request to transmit the transmission data D occurs at the timing indicated by T in FIG. 5B while the reception data A is being received, the flag signal changes from 0 to 1, and the bypass of the reception data is prevented. This state persists until the transmission of received data block B is completed. When the transmission of received data B is completed, the flag signal returns to 0 again, allowing bypassing of the received data, and bypassing of received data Y is performed.
'2} Next, the operation of the received data temporary storage system will be explained using FIGS. 5 to 8 a, b, c, and ().

処理装置4川ま、第8図a,b,c,dの流れ図に従っ
た処理をして、受信データを受信データ記憶装置44に
書き込む。処理装置40には、図示を省略してあるが、
内部に(処理袋贋40のみが使用する)記憶装置を設け
てある。また、受信データ記憶装置44は、伝送路Lを
流れるデータ量によりオーバーフローしないだけ充分な
記憶容量(最小アドレスをRARmim、最大アドレス
をRARmaxとする。
The processing unit 4 performs processing according to the flow chart shown in FIG. The processing device 40 includes, although not shown,
A storage device (used only by the processed bag counterfeit 40) is provided inside. The received data storage device 44 has a storage capacity sufficient to prevent overflow due to the amount of data flowing through the transmission path L (the minimum address is RARmim and the maximum address is RARmax).

)を有している。処理装置4川ま、第8図aに示すよう
に、スタート401でステーションCiの電源が投入さ
れると、初期値設定のための処理402〜404を実行
し、レジスタ42,41、GAR50に初期値設定を行
なう。アドレスレジスタ42,41には、処理装置40
内部に記憶されている受信データ記憶装置44の最小ア
ドレス値RARminが設定される。一方、複数のアド
レスレジスタよりなるアドレスレジスタ群OAR50は
0クリアされる。この時、0クリアされたGAR50の
値は、RARmin〜RMRmaxの範囲外のものであ
り、OAR50にセットされる可能性のあるRARmi
n〜RARmaxの範囲の値と明確に区別できる。アド
レスレジスタ42の値RAR,は、現在データを受信中
のときは、受信中のデータブロック、現在受信中でない
ときは、これから受信するデータブロック、これが送信
済になったかどうかを示すフラグ(以下、送信フラグ信
号と称す)の、受信データ記憶エリアのアドレスを示す
。アドレスレジスタ41の値RAR2は、パラレル線1
1を介して受信器10から現在送出されている8ビット
データを記憶装置44に書き込むときの記憶エリアを指
定するためのアドレスである。次に処理405を実行し
、レジスタ亀1の値RAR2をレジスタ42の値RAR
に1を加えるものにする。電源投入直後は、必ずRAR
2<RARmaxであるが「繰り返しデータを受信して
ゆくと、受信データ記憶装置44の最終アドレスRAR
maxまで使用するので、その判別を処理406を実行
して行なう。
)have. As shown in FIG. 8a, when the power of station Ci is turned on at start 401, processing device 4 executes processes 402 to 404 for setting initial values, and initializes registers 42, 41, and GAR 50. Perform value settings. The address registers 42 and 41 include the processing device 40
The minimum address value RARmin of the internally stored received data storage device 44 is set. On the other hand, address register group OAR50 consisting of a plurality of address registers is cleared to 0. At this time, the value of GAR50 cleared to 0 is outside the range of RARmin to RMRmax, and the value of GAR50 that is cleared to 0 is outside the range of RARmin to RMRmax.
It can be clearly distinguished from values in the range n to RARmax. The value RAR of the address register 42 is the data block that is currently being received when data is currently being received, the data block that is to be received when it is not currently being received, and a flag (hereinafter referred to as Indicates the address of the received data storage area (referred to as the transmission flag signal). The value RAR2 of the address register 41 is the parallel line 1
This is an address for specifying a storage area when writing the 8-bit data currently being sent from the receiver 10 via 1 to the storage device 44. Next, process 405 is executed, and the value RAR2 of register turtle 1 is converted to the value RAR of register 42.
Add 1 to . Immediately after turning on the power, be sure to use RAR.
2<RARmax, but as data is repeatedly received, the final address RAR of the received data storage device 44
Since up to max is used, the determination is made by executing process 406.

結果として、RAR2>RARmaxの場合、処理装置
40内部の記憶エリアのオーバーフローフラグをONに
し、RAR,4 1=RARminにする処理407,
408を実行する。さらにRAR241の内容を1だけ
更新する処理409を実行し、処理406〜408と同
様の処理410〜412を実行する。このようにして、
各データブロックごとに、値RAR,,RAR,十1の
アドレス番地に、それぞれ送信フラグ、データブロック
のデータ長を記憶するための記憶エリアを確保する。続
いて、信号線11にデータが印加されているか否かを処
理413を実行することにより判定する。受信データが
無い場合は、処理装置601こ対する信号45(以下、
これをピジ−信号と呼ぶ)を、処理414により、リセ
ットする。一方、受信データがある場合は、第8図bに
示す処理415により、ピジー信号45を1にセットす
る。受信デー外ま第7図に示すように、その1バイト目
が発信元アドレスを示す。発信元アドレスは、送信元ス
テーションが自ステーションのアドレスを付加したもの
である。第8図Mこ戻って説明を続ける。処理416に
より、受信データの1バイト目が目ステーションアドレ
スか否かを判定する。先づ、自発信データの場合につい
て説明する。自発債データの場合、処理427〜430
を実行する。すなわち、処理428,429を実行する
際、処理装置60に対する信号46(以下「 セレクタ
切換要請信号と呼ぶ)に1にセットしておく。セレクタ
切換要請信号が1ならば処理装置60‘ま強制的にフラ
グ信号65を1とする。処理428,429によって、
受信データをデータブロック完了するまで空読み(入力
はするが、記憶装置には書込まない)する。この処理4
27〜429を別の観点から説明すると、次の意味があ
る。本伝送システムはループ上であるため、送信された
デ−夕は、ループ上のどこかで消去されねばならない。
そこで本方法では、データがループ上を一巡し、発信元
ステーションに戻った時、データを消去する。しかし、
処理427を実行する時には、すでにアドレス部(第7
図の例で示す1バイト目)は、もし、セレクタ20がフ
ラグ信号65により、信号11を選択していたなら、再
びル−ブ上に送信される。次に、処理416において、
受信データ自発債データでない場合、処理417以降を
実行する。
As a result, if RAR2>RARmax, processing 407 turns on the overflow flag of the storage area inside the processing device 40 and sets RAR,41=RARmin.
Execute 408. Furthermore, a process 409 is executed to update the contents of the RAR 241 by 1, and processes 410 to 412 similar to processes 406 to 408 are executed. In this way,
For each data block, storage areas for storing the transmission flag and the data length of the data block are secured at address addresses RAR, , RAR, 11, respectively. Subsequently, it is determined whether data is being applied to the signal line 11 by executing process 413. If there is no received data, a signal 45 (hereinafter referred to as
This is called a pidgey signal) is reset by process 414. On the other hand, if there is received data, the pidsy signal 45 is set to 1 by the process 415 shown in FIG. 8b. As shown in FIG. 7 outside the received data, the first byte indicates the source address. The source address is the one to which the source station adds its own address. Return to Figure 8 and continue the explanation. In process 416, it is determined whether the first byte of the received data is the th station address. First, the case of self-transmitted data will be explained. In the case of self-issued bond data, processes 427 to 430
Execute. That is, when executing processes 428 and 429, the signal 46 (hereinafter referred to as "selector switching request signal") to the processing device 60 is set to 1. If the selector switching request signal is 1, the processing device 60' is forced to The flag signal 65 is set to 1. Through processes 428 and 429,
The received data is read (inputted but not written to the storage device) until the data block is completed. This process 4
27 to 429 have the following meanings when explained from another perspective. Since the transmission system is on a loop, the transmitted data must be erased somewhere on the loop.
Therefore, in this method, the data is erased when it goes around the loop and returns to the source station. but,
When executing process 427, the address field (7th
If the selector 20 has selected the signal 11 by the flag signal 65, the first byte shown in the example shown in the figure is transmitted to the loop again. Next, in process 416,
If the received data is not self-issued bond data, processing 417 and subsequent steps are executed.

まず処理417により、アドレスレジスタ41の値RA
R2が示す、受信データ記憶装置44のアドレス番地に
8ビットの受信データを書込む。次にアドレスレジスタ
41の値RAR2を1だけ増加ししその値が受信データ
記憶装置44の最終アドレスRARmaxこえたならば
、処理420,421を実行し、オーバーフラグON、
アドレスレジスタ41の値RAR2に初期値RARmi
nを設定する。こえなければ、処理422に移る。次に
、1バイト目を受信した時点で、データブロック受信完
了か否かを処理422により判定する。まず、1バイト
のみの受信データの場合、処理423〜426を実行し
、アドレジスタ41値RAR2を1だけ減少する。また
、処理420,421を実行している場合は、処理42
5,426を実行し、データ受信直前の状態にもどし、
処理413に戻り、次の受信データが来るまで待つ。本
処理は、前述の処理427〜428を実行する場合、再
びループ上に送信されたアドレス部のみの受信データを
除去するためのものである。次に、通常の受信データの
場合について説明する。
First, in process 417, the value RA of the address register 41
The 8-bit received data is written to the address of the received data storage device 44 indicated by R2. Next, the value RAR2 of the address register 41 is increased by 1, and if the value exceeds the final address RARmax of the received data storage device 44, processes 420 and 421 are executed, and the over flag is turned ON.
The initial value RARmi is set to the value RAR2 of the address register 41.
Set n. If not, the process moves to step 422. Next, when the first byte is received, it is determined in process 422 whether data block reception is complete. First, in the case of receiving data of only 1 byte, processes 423 to 426 are executed, and the address register 41 value RAR2 is decreased by 1. Also, if processes 420 and 421 are being executed, process 42
Execute 5,426 to return to the state immediately before data reception,
Returning to process 413, the process waits until the next received data arrives. This process is for removing the received data of only the address part that is transmitted on the loop again when the above-mentioned processes 427 to 428 are executed. Next, the case of normal received data will be explained.

処理422の判定の結果、データブロック受信完了でな
い場合、第8図cに示す処理431へつづく。処理43
1〜437を実行することにより、受信データを受信デ
ータ記憶装置44に次々に書込む。アドレスレジスタの
更新等は、すでに説明した方法と同様であるので省略す
る。データブロックの受信を完了したなら、次に処理装
置60の出力であるフラグ信号65が有無を、処理43
8により判定し、フラグ信号65が1の場合1を、0の
場合0(以下、送信フラグと呼ぶ)を、アドレスレジス
タ42の値RAR,が示す受信データ記憶装置44の該
当アドレスにセットする処理439あるいは440を実
行する。次に、受信データ長を、処理441を実行しオ
ーバーフoーフラグのON、OFFにより、処理442
,443を実行することにより求める。続いて、処理4
44により、アドレスレジスタRAR,42の内容を複
数のアドレスレジスタからなるアドレスレジスタ群GA
R50の空きレジス夕(リセット状態にあるレジスタ)
にセットする。続いて、処理445〜447を実行し、
アドレスレジスタ42の値RAR,を1だけ増加し、こ
の増加した値RAR,が示す受信データ記憶装置44の
該当アドレスに、先ほど求めたデータ長を書込む。最後
に処理449,450を実行し、アドレスレジスタRA
R,42、オーバーフローフラグを初期化し、処理40
5へ戻り、次の受信データブロックの受信処理に入る。
このような一連の処理により、たとえば第7図に示す受
信データA(A,〜ん)を受信し、最初レジスタ42の
値RAR,が1であったとすると、受信データ記憶装置
44には第6図に示すように、1番地に送信フラグ、2
番地にデータ長(この場合のデータ長は、7)、3〜9
番地にデータA,〜A7が書込まれる。なおデータ長は
鋤itを1単位とする。‘3’ 次に受信データ取込み
系の動作説明を第9図にもとづいて行なう。
If the result of determination in process 422 is that reception of the data block is not complete, the process continues to process 431 shown in FIG. 8c. Processing 43
By executing steps 1 to 437, the received data is written into the received data storage device 44 one after another. The updating of the address register, etc. is the same as the method already described, and will therefore be omitted. When the reception of the data block is completed, the presence or absence of the flag signal 65, which is the output of the processing device 60, is checked in step 43.
8, and if the flag signal 65 is 1, 1 is set, and if it is 0, 0 (hereinafter referred to as the transmission flag) is set to the corresponding address of the received data storage device 44 indicated by the value RAR of the address register 42. Execute 439 or 440. Next, the received data length is determined by executing process 441 and turning on and off the overflow flag in process 442.
, 443. Next, process 4
44, the contents of the address register RAR, 42 are converted into an address register group GA consisting of a plurality of address registers.
R50 free register (register in reset state)
Set to . Subsequently, processes 445 to 447 are executed,
The value RAR of the address register 42 is increased by 1, and the data length obtained earlier is written to the corresponding address of the received data storage device 44 indicated by the increased value RAR. Finally, processes 449 and 450 are executed, and the address register RA
R, 42, initialize the overflow flag, process 40
The process returns to step 5 and begins receiving processing for the next received data block.
Through such a series of processes, for example, if the received data A (A, ~) shown in FIG. As shown in the figure, the transmission flag is at address 1, and the transmission flag is at address 2.
Data length in address (data length in this case is 7), 3 to 9
Data A, ~A7 are written to the address. Note that the data length is defined as one plow it. '3' Next, the operation of the received data acquisition system will be explained based on FIG.

第9図の示す処理は第5図に示す処理装置8川こよって
実行され、受信データ記憶装置44に書込まれている受
信データを機器Piへ送出する処理である。ステーショ
ンCiに電源投入されると、処理装置80はスタート8
01となり、レジスタの初期設定処理802〜805を
実行する。処理802〜804は、後述する送信処理の
ための初期化であって、処理802,803は、アドレ
スレジス夕84,81に送信データ記憶装置82の最小
アドレスTARminを設定する。処理804は、複数
のアドレスレジスタ群OAT83の0クリアを実行する
。処理805は、受信データ記憶装置44の内容を読出
するためのアドレスレジスタ71を初期化する。次に処
理806を実行し、アドレスレジスタ群GAR50内に
、アドレスレジスタ71の値MARと同一値が記憶され
ているか否かを判定する。アドレスレジスタ71の値M
ARと同一値があれば、処理807により、レジスタ7
1の値MARを処理装置80内の記憶エリアTopに書
込む。また、値MARが示す受信データ記憶装置44の
アドレス番地には送信フラグが記憶されており、その送
信フラグを、処理装置内記億エリアFLGに書き込む処
理808を実行する。次に処理809〜8 1 1によ
り値MARを更新する。この時、受信データ記憶装置4
4の最大アドレスRARmaxを値MARが越えたなら
、処理装置60により設定される1ビットレジスタFF
1、90の内容により、処理813あるいは814を実
行する。処理812〜814により実行される1ビット
レジスタFF1、90、FF2、91の動作は次のよう
になる。処理装置80,60のいずれが受信データ記憶
装置44の最後アドレスRARmaxまで先に続出した
かを示すものであり、処理装置80が先に議出したなら
、FFI:0、FF2=1、処理装置60が先に議出し
たなら、FFI=1、FF2=0となる。また、後から
読み出した処理装置により、FFI=0、FF2=0と
される。次に処理815を実行し、受信データのデータ
ブoツクのバイト長を処理装置80内記億エリアCNT
へ書込む。次に、処理816〜821を実行し、アドレ
スレジスタ7 1値MARの更新、FF1、90、FF
2、91のセット、リセツト操作をしながら処理822
,823を実行し、受信データ記憶装置44よりデータ
を読み出し、機器P,へ送出する。この一連の処理を、
処理824,825を実行し、CNT=0となるまで繰
返し、受信データブロックの読み出しを完了する。デー
タブロックの読み出しが完了したなら「処理826〜8
31を実行し、アドレスレジスタ7 1の値MARの更
新、FF1,90,FF2,91のセット、リセット操
作をした後、FLGを処理832により判定する。FL
Gは受信データブロックの送信フラグを示しており、F
LGioの時は、該当データの消去、1の時は該当デー
タの消去禁止を示す。したがって、FLG=0の時「処
理834を実行し、処理装置80内記億エリアTopの
内容を同一内容のアドレスレジスタ群GAR50内のレ
ジスタをクリアする。以上で、一連のデータブロックの
読み出しが完了する。続いて、次の受信データブロック
読み出しのために処理806に戻る。{4} 次に送信
データ一時記憶系の動作を第10図aおよびbにもとづ
いて説明する。
The process shown in FIG. 9 is executed by the processing device 8 shown in FIG. 5, and is a process for sending the received data written in the received data storage device 44 to the device Pi. When the station Ci is powered on, the processing device 80 starts 8.
01, and register initialization processing 802 to 805 is executed. Processes 802 to 804 are initialization for transmission processing to be described later, and processes 802 and 803 set the minimum address TARmin of the transmission data storage device 82 in the address registers 84 and 81. Processing 804 executes 0 clearing of a plurality of address register groups OAT83. Process 805 initializes the address register 71 for reading the contents of the received data storage device 44. Next, processing 806 is executed to determine whether the same value as the value MAR of the address register 71 is stored in the address register group GAR50. Value M of address register 71
If there is the same value as AR, processing 807 causes register 7 to be set.
A value MAR of 1 is written to the storage area Top in the processing device 80. Further, a transmission flag is stored at the address of the received data storage device 44 indicated by the value MAR, and a process 808 is executed to write the transmission flag into the processing device storage area FLG. Next, the value MAR is updated by processes 809 to 811. At this time, the received data storage device 4
If the value MAR exceeds the maximum address RARmax of 4, the 1-bit register FF set by the processing unit 60
Depending on the contents of steps 1 and 90, processing 813 or 814 is executed. The operations of the 1-bit registers FF1, 90, FF2, and 91 executed by processes 812 to 814 are as follows. This indicates which of the processing devices 80 and 60 first continued up to the last address RARmax of the received data storage device 44, and if the processing device 80 made the request first, FFI: 0, FF2=1, processing device If 60 made the decision first, FFI=1 and FF2=0. Furthermore, the processing device that reads the data later sets FFI=0 and FF2=0. Next, processing 815 is executed to calculate the byte length of the data book of the received data in the storage area CNT in the processing device 80.
Write to. Next, execute processes 816 to 821 to update address register 7 1-value MAR, FF1, 90, FF
2. Process 822 while performing the set and reset operations of 91.
, 823, and reads the data from the received data storage device 44 and sends it to the device P. This series of processing
Processes 824 and 825 are executed and repeated until CNT=0, and reading of the received data block is completed. When the reading of the data block is completed, “Processing 826 to 8
31 is executed, the value MAR of the address register 71 is updated, and FF1, 90, FF2, 91 are set and reset, and then FLG is determined in process 832. FL
G indicates the transmission flag of the received data block, and F
When it is LGio, it indicates erasure of the corresponding data, and when it is 1, it indicates that erasure of the corresponding data is prohibited. Therefore, when FLG=0, "process 834 is executed to clear the contents of the storage area Top in the processing device 80 and the registers in the address register group GAR50 that have the same contents. With the above, the reading of a series of data blocks is completed. Then, the process returns to step 806 to read the next received data block. {4} Next, the operation of the transmission data temporary storage system will be explained based on FIGS. 10a and 10b.

第10図aおよびbに示す処理は、処理装置80におい
て実行される。前述した受信データ取込み系の実行中、
機器Piからの送信要求信号75の割込により、処理8
50のスタートに入る。先ず、予め初期設定されている
アドレスレジス夕81,84の値、TAR2,TAR,
により、処理851を実行する。次に受信データ記憶系
のアドレスレジスタ処理と同様に、処理852〜854
,855〜858を実行し、アドレスレジスタTAR2
81の更新を2回繰り返す。この時、送信データ記憶装
置82の最終アドレスTARmaxをアドレスレジスタ
81の値TAR2が越えた時、処理装置80内記億エリ
アのオーバーフローフラグをONする。続いて、処理8
59を実行し、送信データが信号線76に印放されてい
るか杏かを判定する。送信データが無い場合、送信デー
タが準備されるまで処理859を繰り返す。処理859
において、送信データが有の場合、処理860を実行し
、送信データを、アドレスレジスタ81の値nAR2が
示す送信データ記憶装置82のアドレス番地に書き込む
。続いて、アドレスレジスタ81の値げAR2の更新を
処理861〜864により実行し、処理865の実行に
よるデータブロック完了まで、処理859より繰返し実
行する。次に、処理866を実行し、オーバーフローフ
ラグのON,OFFにより、処理867あるいは868
を実行し、データ長を計算する。処理869を実行し〜
アドレスレジスタ84の値TAR,を複数のアドレス
レジスタ群GAT83の空きレジスタにセットする。次
に、アドレスレジスタ84の値忙AR,の更新を「処理
870〜872の実行によって行ない、先ほど求めたデ
ータ長をアドレスレジスタ84の値TAR,が示す送信
データ記憶装置82のアドレス番地に書き込む。最後に
、処理874〜875を実行し、値TAR2をレジスタ
84の値TAR,にセットし、また、オーバーフローフ
ラグを○FFして、一蓬の動作を終了する。
The processing shown in FIGS. 10a and 10b is executed in the processing device 80. While executing the received data import system mentioned above,
Due to the interruption of the transmission request signal 75 from the device Pi, processing 8
Entering the start of 50. First, the values of the address registers 81 and 84 that are initialized in advance, TAR2, TAR,
Accordingly, processing 851 is executed. Next, similar to the address register processing of the received data storage system, processes 852 to 854 are performed.
, 855 to 858, and address register TAR2
81 update twice. At this time, when the value TAR2 of the address register 81 exceeds the final address TARmax of the transmission data storage device 82, the overflow flag of the storage area in the processing device 80 is turned ON. Next, process 8
59 is executed to determine whether the transmission data is released to the signal line 76 or not. If there is no transmission data, processing 859 is repeated until transmission data is prepared. Processing 859
If the transmission data is present, processing 860 is executed and the transmission data is written to the address address of the transmission data storage device 82 indicated by the value nAR2 of the address register 81. Subsequently, the update of AR2 of the address register 81 is executed by processes 861 to 864, and the process is repeated from process 859 until the data block is completed by executing process 865. Next, process 866 is executed, and depending on whether the overflow flag is turned ON or OFF, process 867 or 868 is executed.
Execute and calculate the data length. Execute process 869~
The value TAR of the address register 84 is set in an empty register of the plural address register group GAT83. Next, the value AR of the address register 84 is updated by executing processes 870 to 872, and the data length obtained earlier is written to the address address of the transmission data storage device 82 indicated by the value TAR of the address register 84. Finally, processes 874 to 875 are executed, the value TAR2 is set to the value TAR of the register 84, and the overflow flag is set to FF, thereby ending the operation of Ichigo.

処理装置80の動作は、処理876を実行することによ
り、送信要求信号75の割込が発生した時の受信データ
取込み系の処理に戻り続行する。{51 最後に、送信
データおよび受信デ−夕の送信制御系を動作を第11図
a〜h‘こもとづいて説明する。
By executing the process 876, the operation of the processing device 80 returns to the received data acquisition type process at the time when the interruption of the transmission request signal 75 occurs and continues. {51 Finally, the operation of the transmission control system for transmitting data and receiving data will be explained with reference to FIGS. 11a to 11h'.

第11図a〜hの一連の処理は処理装置6川こよって実
行する。処理601において、ステーションCiの電源
が投入されると、受信データ記憶装置44議出し用アド
レスレジスタ70の値QTR、送信データ記憶装置82
講出し用アドレスレジスタ62の値PTRを、それぞれ
の最小アドレス値RARmin、TARminによる初
期設定の処理602,603により実行する。次に処理
604を実行し、レジスタ62の値PTRと同一の値が
アドレスレジスタ群83に有るか否かを判定する。本処
理604は、送信データ記憶装置82に送信データが書
き込まれているか否かの判定処理である。送信データが
無い場合は、第11図cに示す処理622の実行に移る
。一方、送信データが有る場合、アドレスレジスタ62
の値PTRを処理装置60内の記憶エリアTopAに書
き込む。続いて、アドレスレジスタ62の値PTRの更
新のために、処理606〜608を実行する。次に、送
信データのデータ長を送信デ−タ記憶装置82より議出
し、処理装置60内記億装置のエリアCNTAへ書込む
。ここでセレク夕20および処理装置4川こ対し、フラ
グ信号65として1を出力する。次に、処理611〜6
13の実行によるアドレスレジス夕62の値PTRの更
新、送信データ記憶装置82より、送信データを読み出
し、セレクタ20へ送出するために、信号線64に読み
出した送信データを出力する処理614,615を、処
理616の実行によるCNTAの更新後、処理617の
実行によりCNTA=川こなるまで繰返す。以上で送信
データブロックを送信できる。次にアドレスレジスタ6
2の値PTRを、処理618〜620により更新し、最
後に、送信完了したデータに対応するTOPAの値と一
致するアドレスレジスタ群GAT83内のレジスタの値
を0リセツトする。続いて、処理604に戻り、次の送
信データの処理を実行する。次に、処理604を実行後
、送信データが無い場合の処理について説明する。
The series of processes shown in FIG. 11 a to h are executed by six processing devices. In process 601, when the power of station Ci is turned on, the value QTR of the reception data storage device 44 and the address register 70 for sending is stored in the transmission data storage device 82.
The value PTR of the offer address register 62 is executed by initial setting processes 602 and 603 using the respective minimum address values RARmin and TARmin. Next, processing 604 is executed to determine whether the address register group 83 has the same value as the value PTR of the register 62. This process 604 is a process for determining whether transmission data is written in the transmission data storage device 82. If there is no transmission data, the process moves to execution of process 622 shown in FIG. 11c. On the other hand, if there is transmission data, the address register 62
The value PTR is written in the storage area TopA in the processing device 60. Subsequently, processes 606 to 608 are executed to update the value PTR of the address register 62. Next, the data length of the transmission data is retrieved from the transmission data storage device 82 and written into the area CNTA of the storage device within the processing device 60. Here, the selector 20 and the processor 4 output 1 as the flag signal 65. Next, processing 611-6
Steps 614 and 615 of updating the value PTR of the address register 62 by executing step 13, reading the transmission data from the transmission data storage device 82, and outputting the read transmission data to the signal line 64 in order to send it to the selector 20. , after updating CNTA by executing process 616, repeating until CNTA=river by executing process 617. Now you can send the send data block. Next, address register 6
The value PTR of 2 is updated through processes 618 to 620, and finally, the value of the register in the address register group GAT83 that matches the value of TOPA corresponding to the data that has been transmitted is reset to 0. Subsequently, the process returns to step 604 and processes the next transmission data. Next, a description will be given of a process when there is no data to be transmitted after executing process 604.

まず、第11図cに示す処理622を実行し、複数のア
ドレスレジスタ群GAR50がすべてリセット状態にあ
るか杏かを判定、すなわち受信データブ。ツクの内、再
び送信すべきデータブロックがあるか否かを判定する。
受信データの再送信が必要な場合は、第11図dに示す
処理626に移る。再送信すべき受信データが無い場合
は、処理623〜625を実行し、処理604に戻る。
処理623の実行により、処理装置40が、自発信デー
タブロックを受信号に出力するセレクタ切換要請信号4
6が1にセットされているか否かを判定し、セレクタ切
換要請信号46が1の場合、フラグ信号のリセット処理
625を実行しない。同様に、処理624を実行し、処
理装置40が受信処理中である時世力するビジー信号4
5のセット状態を判定する。もし、ビジー信号が1にセ
ットされているなら、フラグ信号65のリセット処理6
25を実行しない。上記の条件、すなわちセレクタ切換
要請信号46、ビジー信号45が共に0の場合、フラグ
信号をリセットする。これにより、セレクタ2川ま、信
号線11を送信器30に接続するように切換を行なう。
次に、複数のアドレスレジス夕群OAR50に、受信デ
ータが書き込まれている受信データ記憶装置44のアド
レスがセットされている場合について、その動作を説明
する。
First, the process 622 shown in FIG. 11c is executed to determine whether the plurality of address register groups GAR50 are all in the reset state, that is, the received data block. It is determined whether there are any data blocks to be transmitted again.
If the received data needs to be retransmitted, the process moves to step 626 shown in FIG. 11d. If there is no received data to be retransmitted, processes 623 to 625 are executed, and the process returns to process 604.
By executing the process 623, the processing device 40 outputs the selector switching request signal 4 that outputs the self-transmitted data block to the received signal.
6 is set to 1, and if the selector switching request signal 46 is 1, the flag signal reset process 625 is not executed. Similarly, processing 624 is executed to generate a busy signal 4 which the processing device 40 is receiving.
5 is determined. If the busy signal is set to 1, reset processing 6 of the flag signal 65
Do not execute 25. Under the above condition, that is, when the selector switching request signal 46 and the busy signal 45 are both 0, the flag signal is reset. As a result, the selector 2 switches to connect the signal line 11 to the transmitter 30.
Next, the operation will be described in the case where the address of the received data storage device 44 in which received data is written is set in a plurality of address register group OARs 50.

先づ、第11図dに示す処理626を実行し、アドレス
レジスタ70の値QTRを処理装置60内記億エリアS
TAへ書き込む。次に、複数のアドレスレジスタ群GA
R50のレジスタの内、アドレスレジスタ70の値QT
Rと同一値を有するレジスタの有無を判定する。有の場
合、第11図eに示す処理635に移る。無の場合、処
理634の実行により、アドレスレジスタ70の値QT
RがSTAの内容と一致する(QTRは、RARmin
からRARmaxまで、一巡する)か、処理627の実
行により、アドレスレジスタ70の値QTRと同一値を
有するレジスタが複数のアドレスレジスタ群GAR50
に有ると判定するまで、処理628〜633を実行する
。処理628〜630はアドレスレジスタ70の値QT
Rの更新処理である。また、アドレスレジスタ70の値
QTRが受信データ記憶装置44の最終アドレスRAR
mAxを越えた時、処理631〜633を実行する。処
理631を実行し、FF2,91に1がセットされてい
る場合は、処理装置80の動作により、アドレスレジス
タ71の値MARが、アドレスレジスタ70の値QTR
より先にRARmaxを越えたことを示しており、既述
の規約に従い、FF2、を0にリセットする。一方、F
F2=0の場合はFFI:1にセットする。ここで、処
理634において、アドレスレジスタ70の値QTRが
STAと一致したなら、処理604に戻る。次に、受信
データ記憶装置44に書き込まれている受信データの先
頭アドレスを見つけた場合について、説明する。
First, the process 626 shown in FIG.
Write to TA. Next, a plurality of address register groups GA
Among the registers of R50, the value QT of address register 70
It is determined whether there is a register having the same value as R. If yes, the process moves to process 635 shown in FIG. 11e. If there is no value, the value QT of the address register 70 is changed by executing the process 634.
R matches the contents of STA (QTR is RARmin
to RARmax), or by executing process 627, a register having the same value as the value QTR of the address register 70 is added to the address register group GAR50.
Processes 628 to 633 are executed until it is determined that the condition exists. Processes 628 to 630 process the value QT of the address register 70.
This is R update processing. Further, the value QTR of the address register 70 is the final address RAR of the received data storage device 44.
When mAx is exceeded, processes 631 to 633 are executed. When processing 631 is executed and FF2 and FF91 are set to 1, the value MAR of the address register 71 is changed to the value QTR of the address register 70 by the operation of the processing device 80.
This indicates that the RARmax has been exceeded earlier, and FF2 is reset to 0 according to the previously described rules. On the other hand, F
If F2=0, set FFI:1. Here, in process 634, if the value QTR of the address register 70 matches STA, the process returns to process 604. Next, a case will be described in which the start address of the received data written in the received data storage device 44 is found.

アドレスレジスタ70の値QTRがそのアドレスを示す
受信データ記憶装置44のデータを読み出す処理635
を実行し、処理636を実行し、フラグ付データか否か
を判定する。フラグ付きデータとは、処理装置40が受
信データと受信データ記憶装置44に書込み中、フラグ
信号65がセットされたこと示すもので、再送肩が必要
なデータである。再送債が必要なデータ(フラグ付デー
タ)は処理635実行後、その値が1になっている。こ
の時、処理636を実行後「処理643に移る。一方「
フラグ付データでない場合、処理637〜642を実
行し、アドレスレジスタ70の値QTRの更新、1ビッ
トシジスタFF1,FF2のセットあるいはリセット処
理を行ない、処理604に戻る。次にフラグ付データ(
再送信すべきデータ)が有る場合の動作について説明す
る。
Process 635 for reading data in the received data storage device 44 whose address is indicated by the value QTR in the address register 70
is executed, processing 636 is executed, and it is determined whether the data is flagged data or not. Flagged data indicates that the flag signal 65 was set while the processing device 40 was writing received data to the received data storage device 44, and is data that requires retransmission. Data that requires resending (data with a flag) has a value of 1 after execution of process 635. At this time, after executing process 636, the process moves to ``process 643.'' Meanwhile, ``
If the data is not flagged data, processes 637 to 642 are executed, the value QTR of the address register 70 is updated, the 1-bit registers FF1 and FF2 are set or reset, and the process returns to process 604. Next, the flagged data (
The operation when there is data to be retransmitted will be explained.

先ず、処理643を実行し、アドレスレジスタ70の値
QTRを処理装置68内記億装置のエリアTOPBに書
込む。
First, process 643 is executed to write the value QTR of the address register 70 to the area TOPB of the storage device in the processing device 68.

次の既述の方法と同様にして、処理644〜649を実
行し、アドレスレジス夕70の値QTR更新、1ビット
レジスタFF1,FF2の操作を行なう。続いて、デー
タ長を、アドレスレジスタ70の値QTRがアドレスを
示す受信データ記憶装臓44より議出し、処理装置60
内記億エリアCNTBに書込む。次に、処理651〜6
56を実行し「アドレスレジスタ70の値QTR更新、
1ビットレジス夕FF1,FF2の操作、さらに、処理
657,658を実行しアドレスレジスタT8の値QT
Rがアドレスを示す受信データ記憶装置44よりデータ
を議出し「そのデータをセレクタ20を通じて、送信器
3川こより送信することを、処理659,660の実行
により〜CNTB:0となるまで繰返す。一連のデータ
を送信完了したならば、処理661〜666を実行し、
アドレスレジスタTOの値QTRの更新および1ビット
レジスタFF1,FF2の操作を行なう。続いて、処理
667〜66隻を実行することにより、処理678,6
7亀のいずれかの処理を選択する。処理670さよ、複
数のアドレスレジスタ群50内のTOPBと同一内容の
レジスタをクリアする処理、処理671は、TOPBが
そのアドレスを示す受信データ記憶装置44内のデータ
(フラグ)をクリアする処理である。換言すると、処理
67川ま再送信完了した受信データのクリアに等価であ
り、処理671は、受信データの再送信は完了したが、
処理装置80が取込みを完了していないデータであり、
フラグのみを消去し、処理装贋80が取込み完了後、受
信データをクリアできるようにする処理である。まず処
理670を実行するためには「処理667〜669の実
行を通じて、FF2=1の場合、FFI:FF2=0か
つQTRSMARの場合である。第1の場合は、処理装
瞳80の動作に伴なうアドレスレジスタ71の値MAR
処理装置60の動作に伴なうアドレスレジスタ70の値
QTRよりも先に受信データ記憶装置亀4の最終番地に
到達したことを示し、受信データの再送信よりも機器P
Iへの取込みが先に行なわれたことを現わす。また第2
の場合も、第1の場合と同様であるが、この場合は、ア
ドレスレジスタ70の値QTR、アドレスレジスタ7
1の値MARの両方共に、受信データ記憶装置44の最
終アドレスに到達していない場合である。一方「処理6
71の実行するためには、FFI=1の場合「FFI=
FF2=0かつQTR>MARの場合である。これは、
処理670を実行する時の状態と背反しているだけであ
る。以上の処理の実行により、受信データの再受信がデ
ータブロックにつき完了し、処理604の実行に戻る。
最後に「処理装置60におけるセレクタ功換要請信号4
6に関する動作について、第12図にもとずし、て説明
する。
In the same manner as the method described above, processes 644 to 649 are executed to update the value QTR of the address register 70 and operate the 1-bit registers FF1 and FF2. Subsequently, the data length is retrieved from the reception data storage device 44 whose address is indicated by the value QTR of the address register 70, and the data length is inputted to the processing device 60.
Write to internal storage area CNTB. Next, processing 651-6
56 and ``Update value QTR of address register 70,''
Manipulate 1-bit registers FF1 and FF2, and execute processes 657 and 658 to obtain the value QT of address register T8.
Data is retrieved from the received data storage device 44, where R indicates an address, and the data is transmitted from the transmitter 3 via the selector 20, and this process is repeated until ~CNTB:0 is reached by executing processes 659 and 660. When the data transmission is completed, processes 661 to 666 are executed,
The value QTR of the address register TO is updated and the 1-bit registers FF1 and FF2 are operated. Subsequently, by executing processes 667 to 66, processes 678 and 6
Select one of the 7 turtle treatments. Step 670: Step 670. Step 671 clears the register with the same content as TOPB in the address register group 50. Step 671 clears the data (flag) in the received data storage device 44 to which TOPB indicates the address. . In other words, processing 67 is equivalent to clearing the received data that has been retransmitted, and processing 671 is equivalent to clearing the received data that has been retransmitted, but
The data has not been completely captured by the processing device 80,
This is a process that erases only the flag and allows the processing device 80 to clear the received data after completing the capture. First, in order to execute process 670, "Through execution of processes 667 to 669, if FF2=1, FFI:FF2=0 and QTRSMAR. In the first case, the operation of the processing pupil 80 Now address register 71 value MAR
This indicates that the final address of the received data storage device 4 has been reached before the value QTR of the address register 70 accompanying the operation of the processing device 60, and the device P
This indicates that the import into I was performed first. Also the second
The case is also the same as the first case, but in this case, the value QTR of the address register 70, the value QTR of the address register 7
This is a case where both values MAR of 1 have not reached the final address of the received data storage device 44. On the other hand, “Processing 6
In order to execute 71, if FFI=1, "FFI=
This is the case when FF2=0 and QTR>MAR. this is,
This is simply contrary to the state when processing 670 is executed. By executing the above process, the re-reception of the received data is completed for each data block, and the process returns to the process 604.
Finally, “Selector activation request signal 4 in processing device 60
The operation related to 6 will be explained based on FIG.

処理装置60が、前述の第11図a〜h‘こ示す処理を
実行中、処理装置40が自発信データを検出し、セレク
タ切換要請信号46を出力したなら、その信号立上りで
処理装置601こ割込が発生し、第12図の処理690
のみを実行して、フラグ信号65をセットし、割込発生
時の第11図a〜h中の処理の実行にもどる。処理69
0の実行によるフラグ信号65のセットは、仮にフラグ
信号65はすでにセット中であるなら、何も状態変化を
発生しない。一方、リセット状態なら、フラグ信号65
は1にセットされる。また、フラグ信号65のリセット
は第11図cの処理626を実行した時のみ実現される
。以上で、ステーションCiに関するすべての動作説明
を終えるが、本説明で引用した各処理装置40,60,
80内記億装鷹の図示は省略してある。
If the processing device 60 detects self-transmitted data and outputs the selector switching request signal 46 while the processing device 60 is executing the processing shown in FIGS. An interrupt occurs and processing 690 in FIG.
The flag signal 65 is set, and the process returns to the execution of the processes shown in FIGS. 11a to 11h when the interrupt occurs. Processing 69
Setting the flag signal 65 by executing 0 will not cause any state change if the flag signal 65 is already being set. On the other hand, if it is in the reset state, the flag signal 65
is set to 1. Further, the flag signal 65 is reset only when the process 626 of FIG. 11c is executed. This completes the explanation of all operations related to station Ci, but each processing device 40, 60,
The illustration of the 80-inch memory card is omitted.

これらの処理装置内記億装置は、電源OFF時にも内容
が消去されない不揮発性メモリとし書き換え可能なメモ
リの2種により構成される。前者は、各アドレスレジス
タの初期設定などに用いる受信データ記憶装置44、送
信データ記憶装置82の最小アドレス値、最終アドレス
値などを記臆している。後者は、各処理過程で用いるデ
ータ長などを記憶している。以上説明したように、本発
明によれば、受信中のデータブロックの最終ビットが送
信されるまで送信を待たずに、送信データのブロックを
送信でき、しかも、その際、受信中であった受信データ
ブロックも確実にループ伝送路に送信でき「複雑な処理
をしなくてもその受信データブロックを容易に受信でき
る。
These storage devices in processing devices are composed of two types: nonvolatile memory whose contents are not erased even when the power is turned off, and rewritable memory. The former records the minimum address value, final address value, etc. of the received data storage device 44 and the transmitted data storage device 82 used for initial setting of each address register. The latter stores the data length used in each processing process. As explained above, according to the present invention, it is possible to transmit a block of transmission data without waiting until the last bit of the data block being received is transmitted, and at the same time Data blocks can also be reliably transmitted to the loop transmission path, and the received data blocks can be easily received without complex processing.

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

第1図はループ伝送システムの図、第2図は従釆のステ
ーションの構成図、第3図は従来の伝送方法の説明図、
第4図は本発明の伝送方式の原理説明図、第5図は本発
明の方式の実施するためのステーションの構成図、第6
図は受信データ記憶層に受信データが記聡されるようす
を1例として示すための図、第7図は伝送路Lを流れる
データの1例を示す図、第8図a? b,c,dは受信
データ記憶装置に受信データを書き込むための処理のフ
ロー図、第9図a,bは、受信データ記憶装置から受信
データを読み出し「機器へ送る処理のフロー図、第10
図a, bは送信データ記憶装置に、機器から送られて
くる送信データを書き込む処理のフロー図、第11図a
〜hは、送信データ記憶装置および受信データ記億装置
よりデータをセレクタ、送信器を介して送信する処理の
フロー図、第12図は、ステーションC,発信のデータ
がループを一巡してきた時の信号切換処理のフロー図を
示す。 10:受信器、20:セレクタ、30:送信器、40:
処理装置、44:受信データ記憶装置、60:処理装置
、80:処理装置、82:送信データ記憶装置。 第1図 第2図 第3図 第4図 第6図 第7図 第8図a 図 船 第8図b 第8図c 第8図d 第9図a 第9図b 第10図a 第10図b 第11図e 第11図a 第11図b 第11図c 第11図d 第11図f 第11図g 第11図h 第12図
Figure 1 is a diagram of a loop transmission system, Figure 2 is a configuration diagram of a subordinate station, Figure 3 is an explanatory diagram of a conventional transmission method,
FIG. 4 is a diagram explaining the principle of the transmission method of the present invention, FIG. 5 is a configuration diagram of a station for implementing the method of the present invention, and FIG.
The figure is a diagram showing an example of how received data is stored in the received data storage layer, FIG. 7 is a diagram showing an example of data flowing through the transmission path L, and FIG. 8 a? b, c, and d are flow diagrams of processing for writing received data into a received data storage device;
Figures a and b are flowcharts of the process of writing the transmission data sent from the device into the transmission data storage device, and Figure 11a
~h is a flow diagram of the process of transmitting data from the transmission data storage device and the reception data storage device via the selector and the transmitter, and FIG. A flow diagram of signal switching processing is shown. 10: receiver, 20: selector, 30: transmitter, 40:
Processing device, 44: Reception data storage device, 60: Processing device, 80: Processing device, 82: Transmission data storage device. Figure 1 Figure 2 Figure 3 Figure 4 Figure 6 Figure 7 Figure 8 a Figure Ship Figure 8 b Figure 8 c Figure 8 d Figure 9 a Figure 9 b Figure 10 a Figure 10 Figure b Figure 11e Figure 11a Figure 11b Figure 11c Figure 11d Figure 11f Figure 11g Figure 11h Figure 12

Claims (1)

【特許請求の範囲】 1 伝送路に接続された複数の機器間で、データブロツ
クを伝送する方式において、該機器の各々において各受
信するデータブロツク全ビツトを他の機器に転送すると
ともに記憶する手段と該受信データブロツクの転送途中
で自己の送信データブロツクを送信する要求が発生した
とき上記受信データブロツクの転送を中断して該送信デ
ータブロツクを送信する手段と、該送信の完了後に転送
が中断された上記受信データブロツクを先頭ビツトから
最終ビツトまで全ビツト再転送する手段を有することを
特徴とする伝送制御方式。 2 1方向性伝送路に接続された複数の機器間で、デー
タブロツクを伝送する方式において、上記機器の各々に
おいて、上流側の機器からの受信データブロツクを下流
側に転送するとともに、記憶する手段と、該受信データ
ブロツク転送途中で、該機器から送信データブロツクの
送信要求が発生したとき、上記受信データブロツクの転
送を中断して上記送信データブロツクを送信する手段と
、該送信データブロツクの送信完了後に、上記一時記憶
され、送信が中断された受信データブロツクの全ビツト
を再度送信する手段を有することを特徴とする伝送制御
方式。 3 各機器間の割込優先度が平等な第1項または第2項
記載の伝送制御方式。 4 データブロツクの先頭および最終を示す識別符号を
同一とした第1項ないし第3項から選ばれる1つの項記
載の伝送制御方式。
[Scope of Claims] 1. In a method of transmitting data blocks between a plurality of devices connected to a transmission path, means for transmitting and storing all bits of each received data block in each device to another device. and means for interrupting the transfer of the received data block and transmitting the transmitted data block when a request to transmit its own transmitting data block occurs during the transfer of the received data block, and interrupting the transfer after the transmission is completed. 1. A transmission control system comprising means for retransferring all bits of the received data block from the first bit to the last bit. 2. In a method of transmitting data blocks between a plurality of devices connected to a unidirectional transmission path, each of the devices has means for transferring and storing the received data block from the upstream device to the downstream side. and means for interrupting the transfer of the reception data block and transmitting the transmission data block when a transmission request for the transmission data block is generated from the device during the transfer of the reception data block; A transmission control system characterized by comprising means for retransmitting all bits of the temporarily stored received data block whose transmission was interrupted after completion of the transmission. 3. The transmission control method according to item 1 or 2, in which interrupt priorities are equal between each device. 4. The transmission control method according to one item selected from the first to third items, in which the identification codes indicating the beginning and end of the data block are the same.
JP3605880A 1980-03-24 1980-03-24 Transmission control method Expired JPS6022540B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3605880A JPS6022540B2 (en) 1980-03-24 1980-03-24 Transmission control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3605880A JPS6022540B2 (en) 1980-03-24 1980-03-24 Transmission control method

Publications (2)

Publication Number Publication Date
JPS56132840A JPS56132840A (en) 1981-10-17
JPS6022540B2 true JPS6022540B2 (en) 1985-06-03

Family

ID=12459111

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3605880A Expired JPS6022540B2 (en) 1980-03-24 1980-03-24 Transmission control method

Country Status (1)

Country Link
JP (1) JPS6022540B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61114631A (en) * 1984-11-07 1986-06-02 インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション Communication adapter
JP6471021B2 (en) 2015-03-30 2019-02-13 本田技研工業株式会社 Communications system

Also Published As

Publication number Publication date
JPS56132840A (en) 1981-10-17

Similar Documents

Publication Publication Date Title
US6044059A (en) Method and apparatus for minimizing contention losses in networks
US4257099A (en) Communication bus coupler
KR920007096B1 (en) Fast circuit switching system
JPS5947905B2 (en) Information transmission method using a common transmission path
EP0694237B1 (en) Data transfer system
KR850700199A (en) Time division switching network
CA2084516A1 (en) Repeaters for digital data networks
EP0129581A1 (en) Method and apparatus for graceful preemption on a digital communications link.
US4570215A (en) Input/output device for programmable controller
JPS6022540B2 (en) Transmission control method
US5619653A (en) Buffer device with resender
JPS6228905B2 (en)
WO1999026156A1 (en) Byte alignment method and apparatus
JPS6335139B2 (en)
EP0613091A2 (en) Parallel data transfer circuit
JPS5818836B2 (en) Storage program controlled telecommunication equipment
JPH0351143B2 (en)
JP2917678B2 (en) Three-stage switch path setting method
JPS6240562A (en) File transferring device
JP2584205B2 (en) Data output circuit
SU1509970A1 (en) Information transmitting device
SU1059685A1 (en) Method of automatic choice of subscriber signal packet
SU471583A1 (en) Device for transmitting information from a digital computer to a communication line
JPS5952464B2 (en) Data buffer control method
SU1083395A2 (en) Digital signal receiver