JPH0218623B2 - - Google Patents

Info

Publication number
JPH0218623B2
JPH0218623B2 JP56163531A JP16353181A JPH0218623B2 JP H0218623 B2 JPH0218623 B2 JP H0218623B2 JP 56163531 A JP56163531 A JP 56163531A JP 16353181 A JP16353181 A JP 16353181A JP H0218623 B2 JPH0218623 B2 JP H0218623B2
Authority
JP
Japan
Prior art keywords
data
transmission
control device
transmission control
station
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 - Lifetime
Application number
JP56163531A
Other languages
Japanese (ja)
Other versions
JPS5864846A (en
Inventor
Nobuhisa Kobayashi
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 JP16353181A priority Critical patent/JPS5864846A/en
Publication of JPS5864846A publication Critical patent/JPS5864846A/en
Publication of JPH0218623B2 publication Critical patent/JPH0218623B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)
  • Small-Scale Networks (AREA)
  • Multi Processors (AREA)

Description

【発明の詳細な説明】 本発明は、複数のデータ伝送制御装置を伝送路
で結んだデータ伝送システムに用いられるデータ
伝送制御装置に係り、特に、識別コードを付した
データを扱うデータ伝送制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transmission control device used in a data transmission system in which a plurality of data transmission control devices are connected by a transmission path, and particularly relates to a data transmission control device that handles data with an identification code attached. Regarding.

複数のステーシヨン間でデータのやりとりを行
うデータ伝送システムでは、各ステーシヨン間を
データ伝送路で結び、各ステーシヨン毎又は主要
ステーシヨン毎にデータ伝送制御装置を設けて、
伝送路を流れるデータの制御を行つている。伝送
路の形態は種々あるが、ここでは主としてループ
状伝送路を例によつて説明する。
In a data transmission system that exchanges data between multiple stations, each station is connected by a data transmission path, and a data transmission control device is provided for each station or each main station.
It controls the data flowing through the transmission path. Although there are various forms of transmission paths, here, a loop-shaped transmission path will be mainly explained as an example.

従来のループ伝送路を用いる伝送システムにお
いては、ループ伝送路に接続された複数の伝送制
御装置の各々におけるデータの送受信のタイミン
グの決定及びループ伝送システムの部分的故障対
策のために、伝送制御装置の1つをマスタ伝送制
御装置とし、他の伝送制御装置をスレープ伝送制
御装置とし、前者によりループ全体の伝送状況の
把握を行い、これにより上述の送受信タイミング
の決定並びにループ伝送システムの故障対策を行
つていた。このため、マスタ伝送制御装置が大型
の装置になるとともに、マスタ伝送制御装置が故
障した場合には、伝送が全く不可能になるという
問題を有する。
In a transmission system using a conventional loop transmission path, a transmission control device is used to determine the timing of data transmission and reception in each of a plurality of transmission control devices connected to the loop transmission path, and to take measures against partial failures of the loop transmission system. One of the transmission control devices is used as a master transmission control device, and the other transmission control device is used as a slave transmission control device, and the former grasps the transmission status of the entire loop, thereby determining the above-mentioned transmission and reception timing and taking measures against failures of the loop transmission system. I was gone. Therefore, there is a problem that the master transmission control device becomes a large-sized device, and if the master transmission control device breaks down, transmission becomes completely impossible.

このような問題を改良すべく提案されたのが、
第1図に示す二重ループ伝送システムである(特
開昭56−40344)。
In order to improve this problem, it was proposed that
This is a double loop transmission system shown in Fig. 1 (Japanese Patent Application Laid-Open No. 56-40344).

第1図において、1A,2A,3A,4Aはそ
れぞれ伝送制御装置、5Aはこれらの伝送制御装
置を結ぶループ伝送路、同様に1B,2B,3
B,4Bはそれぞれ伝送制御装置、5Bはこれら
の伝送制御装置を結ぶループ伝送路、6,7,
8,9はそれぞれ伝送制御装置1Aと1B,2A
と2B,3Aと3B,4Aと4Bを結ぶ迂回用伝
送路である。ループ伝送路5Aと5Bの伝送方向
は矢印で示すように互いに反対方向になつてい
る。また、各伝送制御装置1A〜4A,1B〜4
Bはすべて同一構成で、それぞれ送受信機能を有
している。
In Fig. 1, 1A, 2A, 3A, 4A are transmission control devices, 5A is a loop transmission line connecting these transmission control devices, and 1B, 2B, 3
B, 4B are transmission control devices, 5B is a loop transmission line connecting these transmission control devices, 6, 7,
8 and 9 are transmission control devices 1A, 1B, and 2A, respectively.
This is a detour transmission line connecting 2B and 2B, 3A and 3B, and 4A and 4B. The transmission directions of the loop transmission lines 5A and 5B are opposite to each other as shown by the arrows. In addition, each transmission control device 1A to 4A, 1B to 4
All of B have the same configuration, and each has a transmitting and receiving function.

さらに、10,11,12,13は上述のよう
なデータ伝送システムを利用して実際にデータ処
理を行う各ステーシヨンのホスト計算機、14
A,14Bはホスト計算機10と伝送制御装置1
A,1Bを結ぶ端末伝送路、同様に、15A,1
5Bは11と2A,2Bを、16A,16Bは1
2と3A,3Bを、17A,17Bは13と4
A,4Bをそれぞれ結ぶ端末伝送路である。
Furthermore, 10, 11, 12, and 13 are host computers of each station that actually perform data processing using the data transmission system as described above;
A and 14B are the host computer 10 and the transmission control device 1
Similarly, the terminal transmission line connecting A and 1B is 15A and 1
5B is 11, 2A, 2B, 16A, 16B is 1
2, 3A, 3B, 17A, 17B are 13 and 4
These are terminal transmission lines connecting A and 4B respectively.

この伝送システムでは、すべての伝送制御装置
が正常であるときは、一方のループ伝送路例えば
5Aとそれに結ばれた伝送制御装置1A〜4Aに
よつてデータ伝送が行われる。そして、そのうち
のいずれかの伝送制御装置が故障したときは、そ
の故障装置を除くようにもう一方のループ伝送路
5Bで迂回路を形成してデータ伝送が行えるよう
になつている(後述)。また、この伝送システム
では各伝送制御装置はすべて平等な関係にあり、
ある伝送制御装置がデータを送信しようとすると
きには受信側の伝送制御装置の状態を確認するこ
となくループ伝送路上にデータを送出し、受信側
伝送制御装置では、そのデータに付された識別コ
ードにより、そのデータが自ステーシヨンに必要
か否かを判断し、必要なものであれば取込むよう
になつている。
In this transmission system, when all the transmission control devices are normal, data transmission is performed through one loop transmission path, for example 5A, and the transmission control devices 1A to 4A connected thereto. When one of the transmission control devices fails, a detour is formed using the other loop transmission path 5B to remove the failed device, and data transmission can be performed (described later). In addition, in this transmission system, all transmission control devices are in an equal relationship,
When a transmission control device attempts to transmit data, it sends the data onto the loop transmission path without checking the status of the transmission control device on the receiving side, and the transmission control device on the receiving side uses the identification code attached to the data. , the station determines whether the data is necessary for its own station, and if it is necessary, it is imported.

識別コードを付したデータの伝送フオーマツト
は例えば第2図のようになつている。即ち、18
はデータの開始部であることを示す開始フラグ領
域、19は送信するデータの内容を示す機能コー
ド領域である。機能コード領域は1バイトであ
り、256種類のコードが許される。20はデータ
の送信元を示す送信元アドレス領域で、これも1
バイトであり、256個の伝送制御装置を識別でき
る。21はデータ伝送用の制御情報領域であり、
これも1バイトである。これは、データの二重受
信を防止するための通番及びデータの伝送に迂回
が生じたとき(後述)の迂回制御用のカウンタか
ら成つている。22は実際に送信すべきデータの
領域であり、最大256バイトまでの可変長である。
23は伝送中のエラー検出のためのFCSコード領
域であり、2バイトである。24はデータの終了
を示す終了フラグ領域である。開始フラグ18か
ら終了フラグ24に囲まれたものが1つの伝送単
位となる。
The transmission format of data with an identification code is, for example, as shown in FIG. That is, 18
19 is a start flag area indicating the start of data, and 19 is a function code area indicating the content of the data to be transmitted. The function code area is 1 byte, and 256 types of codes are allowed. 20 is a source address field indicating the source of the data, which is also 1.
byte, and can identify 256 transmission control devices. 21 is a control information area for data transmission;
This is also 1 byte. This consists of a serial number to prevent double reception of data and a counter for detour control when a detour occurs in data transmission (described later). 22 is an area for data to be actually transmitted, and has a variable length of up to 256 bytes.
23 is a 2-byte FCS code area for error detection during transmission. 24 is an end flag area indicating the end of data. The data surrounded by the start flag 18 to the end flag 24 constitutes one transmission unit.

送信すべきデータは上記のようなフオーマツト
でループ伝送路上に送出されるから、各伝送制御
装置は、その機能コード19によりそのデータ2
2が自ステーシヨンに必要なものか否かを判断
し、必要なもののみを取込むことがきる。また、
各伝送制御装置は、そのデータの送信元アドレス
20が自ステーシヨンのものであると判断したと
きは、そのデータはループ伝送路を一巡して戻つ
てきたものとして、そのデータを消去することに
なる。
Since the data to be transmitted is sent out onto the loop transmission path in the above format, each transmission control device uses its function code 19 to
It is possible to determine whether or not 2 is necessary for one's own station, and to import only what is necessary. Also,
When each transmission control device determines that the source address 20 of the data belongs to its own station, it assumes that the data has gone around the loop transmission path and returned, and erases the data. .

伝送制御装置は、自ステーシヨンからデータを
送信中か否かによつて2つのモードをとる。ま
ず、自ステーシヨンからデータを送信していない
ときは、ループ伝送路から入つてくるデータをス
トアすることなく次々にループ伝送路上へ送り出
す。これをスルー通信モードという。一方、自ス
テーシヨンからデータを送信しているときは、ル
ープ伝送路から入つてくるデータは自伝送制御装
置内に一旦ストアし、自ステーシヨンからの送信
が終了した時点で、そのデータをループ伝送路に
送り出す。これをストアアンドフオワード通信モ
ードという。いずれの場合も、そのデータが自ス
テーシヨンに必要なものであるときは、それを取
込む。このような2つのモードの採用により、デ
ータの伝送効率を高めている。
The transmission control device has two modes depending on whether or not it is transmitting data from its own station. First, when data is not being transmitted from its own station, the data coming in from the loop transmission path is sent out one after another onto the loop transmission path without being stored. This is called through communication mode. On the other hand, when data is being transmitted from the own station, the data coming in from the loop transmission path is temporarily stored in the own transmission control device, and when the transmission from the own station is completed, the data is transferred to the loop transmission path. send to. This is called store-and-forward communication mode. In either case, if the data is necessary for the own station, it is imported. By employing these two modes, data transmission efficiency is increased.

次に第1図の二重ループ伝送システムの具体的
な動作について説明する。
Next, the specific operation of the double loop transmission system shown in FIG. 1 will be explained.

いま、伝送制御装置1Aからデータが送信され
たとすると、このデータはループ伝送路5Aを一
巡して伝送制御装置1Aに戻つてくる。この間に
他の伝送制御装置2A,3A,4Aはそのデータ
に付された機能コードによりそのデータの必要性
を判断し、必要と判断すればそれを取込む。その
際、例えば2第目、3番目の伝送制御装置2A,
3Aは自ステーシヨンからデータの送信をしてい
ないとすると、それらはスルー通信モードで動作
し、また、4番目の伝送制御装置が自ステーシヨ
ンからデータの送信をしていたとすると、それは
ストアアンドフオワード通信モードで動作する。
送信元の伝送制御装置1Aに戻つてきたデータは
その送信元アドレスが自ステーシヨンのものであ
ることから、そこで消去される。
Now, if data is transmitted from the transmission control device 1A, this data goes around the loop transmission path 5A and returns to the transmission control device 1A. During this time, the other transmission control devices 2A, 3A, and 4A determine whether the data is necessary based on the function code attached to the data, and if determined to be necessary, take it in. At that time, for example, the second and third transmission control devices 2A,
Assuming that 3A is not transmitting data from its own station, they operate in through communication mode, and if the fourth transmission control device is transmitting data from its own station, it is a store and forward mode. Operates in communication mode.
The data returned to the transmission control device 1A, which is the source, is erased there because its source address is that of its own station.

また、伝送制御装置1Aからデータを送信した
ところ、3番目の伝送制御装置3Aが故障してい
たとする。すると、送信したデータが戻つてこな
いから送信元の伝送制御装置1Aはどこかに故障
が発生していることを知る。そこで伝送制御装置
1Aはチエツク信号を出して故障箇所をつきと
め、もの一つのループ伝送路5Bを使つてその故
障箇所を避けた迂回路を形成する。即ち、3番目
の伝送制御装置3Aが故障しているときは、伝送
制御装置1Aから送信されたデータは、2番目の
伝送制御装置2Aから迂回用伝送路7に入り、伝
送制御装置2Bから第2のループ伝送路5Bを逆
回りに迂回して伝送制御装置4Bに達し、そこか
ら迂回用伝送路9を通つて伝送制御装置4Aに入
り、再び第1のループ伝送路5Aを通つて送信元
の伝送制御装置1Aに戻る。このような経路をと
ることにより、故障箇所だけを除いてデータ伝送
の機能を確保することができる。
Further, assume that when data is transmitted from the transmission control device 1A, the third transmission control device 3A is out of order. Then, since the transmitted data is not returned, the transmission control device 1A, which is the transmission source, knows that a failure has occurred somewhere. Therefore, the transmission control device 1A issues a check signal to locate the faulty location, and forms a detour that avoids the faulty location using only one loop transmission line 5B. That is, when the third transmission control device 3A is out of order, the data transmitted from the transmission control device 1A enters the bypass transmission path 7 from the second transmission control device 2A, and is transmitted from the transmission control device 2B to the third transmission control device 2A. The second loop transmission path 5B is detoured in the opposite direction to reach the transmission control device 4B, from there it passes through the detour transmission path 9, enters the transmission control device 4A, and again passes through the first loop transmission path 5A to reach the transmission source. Return to the transmission control device 1A. By taking such a route, it is possible to ensure the data transmission function except for only the failure location.

ところで、このような識別コードを付したデー
タを扱うデータ伝送システムにおいては、それぞ
れの伝送制御装置は、伝送路からデータが入つて
くると、その識別コードによりそのデータが必要
か否か、消去すべきか否か等を判断しているの
で、データの伝送速度は、この伝送制御装置での
識別コードの判定処理時間に左右されることにな
る。伝送制御装置は一般にデータ伝送制御のため
の制御用コンピユータを備えており、従来は上記
識別コードの判定をこの制御用コンピユータ内で
行つているため、判定処理に時間がかかる。した
がつて従来の伝送制御装置を用いるとループ伝送
路をデータが一巡するのに時間がかかり、伝送速
度を上げられないという問題がある。
By the way, in a data transmission system that handles data with such identification codes, each transmission control device uses the identification code to determine whether the data is necessary or not and when data comes in from the transmission path. Since the data transmission speed is determined by the identification code determination processing time in this transmission control device, the data transmission speed is determined by the identification code determination processing time in the transmission control device. A transmission control device generally includes a control computer for data transmission control, and conventionally, the identification code is determined within this control computer, so that the determination process takes time. Therefore, when a conventional transmission control device is used, it takes time for data to go around the loop transmission line, and there is a problem that the transmission speed cannot be increased.

また、従来の伝送制御装置では一巡してきたデ
ータを消去する場合、データに付された送信元ア
ドレスからデータ消去の判定を下した時点では、
すでにそれ以前の開始フラグや機能コードが伝送
路上へ送出されてしまうため、伝送フオーマツト
の壊れたデータがループ伝送路上を流れるという
好ましくない事態も発生する。
In addition, in conventional transmission control devices, when erasing data that has gone through one cycle, when a decision is made to erase the data based on the source address attached to the data,
Since the previous start flag and function code have already been sent onto the transmission path, an undesirable situation may occur in which data with a corrupted transmission format flows on the loop transmission path.

同様の問題、特に伝送速度が遅いという問題
は、上記のような二重ループ伝送システムに限ら
ず、例えば、一重ループ伝送システムにおいて
も、あるいは第3図に示すような有端状の伝送シ
ステムにおいても、あるいはまた伝送制御装置が
すべて一様な構成ではなく送受信機能を持つもの
と受信機能のみを持つものとが混在する伝送シス
テムにおいても、伝送路からデータを取込み、そ
の識別コードを判断してからそれを送出するタイ
プの伝送制御装置を有する伝送システムでは共通
する問題である。なお、第3図において、25〜
28は伝送制御装置、29は有端状の伝送路、3
0〜33はホスト計算機である。
Similar problems, especially the problem of slow transmission speed, are not limited to the double loop transmission system as described above, but also in single loop transmission systems, or in end-shaped transmission systems as shown in Figure 3. Alternatively, even in a transmission system in which the transmission control devices do not all have the same configuration, and some have a transmitting/receiving function and others only have a receiving function, it is possible to import data from the transmission path and determine its identification code. This is a common problem in transmission systems having a type of transmission control device that transmits data from In addition, in FIG. 3, 25~
28 is a transmission control device, 29 is an end-shaped transmission line, 3
0 to 33 are host computers.

本発明の目的は、上記した従来技術の問題点を
なくし、データに付された識別コードの判定を迅
速に行え、データ伝送システムの伝送速度を向上
させることのできるデータ伝送制御装置を堤供す
るにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data transmission control device capable of eliminating the above-mentioned problems of the prior art, quickly determining an identification code attached to data, and improving the transmission speed of a data transmission system. be.

この目的を達成するため、本発明は、伝送路を
通して送られてくるデータの識別コードによりそ
のデータが自ステーシヨンに必要か否かを判断
し、必要なデータのみを取込むようにしたデータ
伝送制御装置において、データ伝送制御のための
制御用コンピユータの外に、前記識別コードによ
りそのデータが自ステーシヨンに必要か否かを判
定する判定手段を設け、この判定手段が必要と判
定したデータのみを前記制御用コンピユータに取
込んで処理するようにしたことを特徴とする。
In order to achieve this objective, the present invention provides data transmission control that determines whether or not data sent through a transmission path is necessary for its own station based on its identification code, and captures only the necessary data. In addition to the control computer for data transmission control, the apparatus is provided with a determining means for determining whether or not the data is necessary for the own station based on the identification code, and only the data that the determining means determines as necessary is transmitted to the station. It is characterized in that it is imported into a control computer and processed.

以下、本発明の一実施例を第4図を参照して詳
細に説明する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to FIG.

第4図において、1Aは本実施例の伝送制御装
置、5Aはループ伝送路、14Aは端末伝送路、
10はホスト計算機である。つまりここでは伝送
制御装置1Aは第1図における1つの伝送制御装
置1Aに相当するものとして示してある。以下、
伝送制御装置1Aの構成を詳述する。
In FIG. 4, 1A is the transmission control device of this embodiment, 5A is a loop transmission line, 14A is a terminal transmission line,
10 is a host computer. That is, the transmission control device 1A is shown here as being equivalent to one transmission control device 1A in FIG. below,
The configuration of the transmission control device 1A will be explained in detail.

34はループ伝送路5Aから入つてくるデータ
を一時登録するためのシフトレジスタで、4バイ
トである。35は自ステーシヨンにとつて必要な
データの機能コードを格納しておくコードレジス
タで、最大256までの機能コードを登録できる。
36はシフトレジスタ34内の内容とコードレジ
スタ35内に登録されている機能コードとを比較
し、またシフトレジスタ34内の内容に自ステー
シヨンの送信元アドレスがあるか否か等を判定
し、そのデータを受信すべきか否か、あるいは消
去すべきか否か等を判定する判定回路である。こ
れらシフトレジスタ34、コードレジスタ35及
び判定回路36は判定手段37を構成している。
判定手段37は、データ伝送制御のための制御用
コンピユータ38の外に設けられ、制御用コンピ
ユータ38の制御を受けずに動作するようになつ
ている。
34 is a shift register for temporarily registering data coming in from the loop transmission path 5A, and is 4 bytes long. 35 is a code register that stores function codes of data necessary for its own station, and up to 256 function codes can be registered.
36 compares the contents in the shift register 34 with the function code registered in the code register 35, and also determines whether or not the contents in the shift register 34 include the source address of its own station. This is a determination circuit that determines whether or not data should be received, or whether data should be erased. These shift register 34, code register 35, and determination circuit 36 constitute determination means 37.
The determining means 37 is provided outside the control computer 38 for data transmission control, and operates without being controlled by the control computer 38.

39はデータの送受信回路であり、ここでは、
ループ伝送路5A上をシリアルに送られるデータ
を並列、8ビツトに変換すると共に、伝送時のエ
ラー検出のためのチエツク例えばFCSチエツク、
CRCチエツクを行う。また、ここではデータの
伝送フオーマツトの作成も行う。40はクロツク
信号発生用の発振回路で、ループ伝送路5Aより
データが入つているときに、受信データと同期し
た伝送クロツクを再生する。この伝送クロツク
は、スルー通信モードでは受信、送信クロツクと
して使われ、ストアアンドフオワード通信モード
では受信クロツクのみとして用いられる。送信ク
ロツクは受信クロツクと同期していないクロツク
が使用される。
39 is a data transmission/reception circuit; here,
The data sent serially on the loop transmission line 5A is converted into parallel 8-bit data, and a check is performed to detect errors during transmission, such as an FCS check, etc.
Perform CRC check. Also, the data transmission format is created here. Reference numeral 40 denotes an oscillation circuit for generating a clock signal, which regenerates a transmission clock synchronized with received data when data is input from the loop transmission line 5A. This transmission clock is used as a reception and transmission clock in the through communication mode, and is used only as a reception clock in the store-and-forward communication mode. A clock that is not synchronized with the receiving clock is used as the transmitting clock.

41は受信用データ転送装置、42は受信デー
タバツフアである。受信用データ転送装置41は
ループ伝送路5Aから入つてきたデータが判定回
路36により受信必要を判定されたときに、その
データを制御用コンピユータ38の制御を介する
ことなく受信データバツフア42に転送する。4
3は送信データを一時格納する送信データバツフ
ア、44は送信データバツフア43内の送信デー
タを送受信回路39を経てループ伝送路5Aに転
送する送信用データ転送装置である。
41 is a receiving data transfer device, and 42 is a receiving data buffer. The reception data transfer device 41 transfers the data to the reception data buffer 42 without being controlled by the control computer 38 when the determination circuit 36 determines that the data coming from the loop transmission path 5A needs to be received. 4
3 is a transmission data buffer for temporarily storing transmission data, and 44 is a transmission data transfer device for transferring the transmission data in the transmission data buffer 43 to the loop transmission path 5A via the transmission/reception circuit 39.

制御用コンピユータ38は、コードレジスタ3
5への機能コードの登録及びその消去、受信デー
タバツフア42からの受信データの読み取り、送
信データバツフア43への送信データの書き込
み、送信用データ転送装置44を起動するタイミ
ングの設定等を行う。
The control computer 38 controls the code register 3
5, registering and erasing function codes in the data buffer 42, reading received data from the receiving data buffer 42, writing transmitting data to the transmitting data buffer 43, setting the timing for starting the transmitting data transfer device 44, etc.

この伝送制御装置1Aの動作は次のとおりであ
る。
The operation of this transmission control device 1A is as follows.

まず、データ送信時の動作について説明する。
自ステーシヨンからデータを送信しようとすると
きは、制御用コンピユータ38は送信データ及び
そのデータ長を送信バツフア43に格納する。次
に制御用コンピユータ38は、現在、データをス
ルー通信モードで伝送中であるか否かを判定し、
スルー通信モードであるときは当該データの伝送
終了後に、またデータ伝送中でないときはただち
に、ストアアンドフオワード通信モードとして送
信用データ転送装置44を起動する。送信用デー
タ転送装置44は制御用コンピユータ38によつ
て起動されるとその後は制御用コンピユータ38
の制御を受けることなく自動的に、送信データを
送信データバツフア43から読み出し、送受信回
路39を介してループ伝送路5Aへ送出する。送
信用データ転送装置44の動作は送信データバツ
フア43中の全データが送信し終るまで続く。
First, the operation during data transmission will be explained.
When attempting to transmit data from its own station, the control computer 38 stores the transmission data and its data length in the transmission buffer 43. Next, the control computer 38 determines whether or not data is currently being transmitted in the through communication mode.
In the through communication mode, the transmission data transfer device 44 is activated in the store-and-forward communication mode after the transmission of the data is completed, or immediately when the data is not being transmitted. When the transmission data transfer device 44 is activated by the control computer 38, it is then activated by the control computer 38.
The transmission data is automatically read out from the transmission data buffer 43 and sent to the loop transmission line 5A via the transmission/reception circuit 39 without being controlled by. The operation of the transmission data transfer device 44 continues until all the data in the transmission data buffer 43 has been transmitted.

次に、データ受信時の動作について第5図のフ
ローチヤートを合せ参照して説明する。判定回路
36は、シフトレジスタ34の内容を常時監視
し、シフトレジスタ34の4バイトのうち先頭の
1バイトにデータの開始フラグが登録されたと
き、第2図の伝送フオーマツトに従い、第2バイ
ト目を機能コード、第3バイト目を送信元アドレ
ス、第4バイト目を伝送制御情報と判断する。そ
して判定回路36はシフトレジスタ34の第2バ
イト目とコードレジスタ35内の各機能コードを
比較し、一致するものがあるか否かをみる(第5
図ステツプ101)。一致するものがなければそのデ
ータは不要であるから、判定回路36はシフトレ
ジスタ34の第1バイト目に再び開始フラグがく
るまでアイドルされる(ステツプ113)。一致する
ものがあれば、判定回路36はさらにシフトレジ
スタ34の第3バイト目がステーシヨンの送信元
アドレスと一致するか否かをみる(ステツプ
102)。もし一致していなければそのデータは他の
ステーシヨンから送られてきたものでしかも受信
に必要なものであるから、まず自ステーシヨンが
現在データを送信中か否かを判断し(ステツプ
103)、送信中であればストアアンドフオワード通
信モードとし(ステツプ104)、送信中でなければ
スルー通信モードとして(ステツプ105)、ただち
に受信用データ転送装置41を起動する(ステツ
プ106)。これによつて受信データが受信データバ
ツフア42に格納される。判定回路36は受信用
データ転送装置41を起動した後はシフトレジス
タ34の第1バイト目に再び開始フラグが入るま
でアイドルされる(ステツプ113)。また受信用デ
ータ転送装置41は送受信回路39がデータ終了
フラツグを受信し、データ終了を連絡してくるま
で作動する(ステツプ114)。このデータ受信の
間、制御用コンピユータ38は受信動作に関与し
ない。
Next, the operation at the time of data reception will be explained with reference to the flowchart of FIG. The determination circuit 36 constantly monitors the contents of the shift register 34, and when a data start flag is registered in the first byte of the four bytes of the shift register 34, the determination circuit 36 reads the contents of the second byte according to the transmission format shown in FIG. is determined to be a function code, the third byte to be the source address, and the fourth byte to be transmission control information. The determination circuit 36 then compares the second byte of the shift register 34 with each function code in the code register 35 to see if there is a match (fifth byte).
Figure step 101). If there is no match, the data is unnecessary, so the determination circuit 36 is idle until the start flag appears again in the first byte of the shift register 34 (step 113). If there is a match, the determination circuit 36 further checks whether the third byte of the shift register 34 matches the transmission source address of the station (step
102). If they do not match, the data was sent from another station and is necessary for reception, so first determine whether or not your own station is currently transmitting data (step 1).
103), if transmitting is in progress, the mode is set to store-and-forward communication mode (step 104), and if not transmitting, the mode is set to through communication mode (step 105), and the receiving data transfer device 41 is immediately activated (step 106). As a result, the received data is stored in the received data buffer 42. After starting the reception data transfer device 41, the determination circuit 36 is kept idle until the start flag is again entered in the first byte of the shift register 34 (step 113). Further, the receiving data transfer device 41 operates until the transmitting/receiving circuit 39 receives the data end flag and notifies the data end (step 114). During this data reception, the control computer 38 does not participate in the reception operation.

一方、ステツプ102で、シフトレジスタ34の
第3バイト目と自ステーシヨンの送信元アドレス
が一致したときは、そのデータは自ステーション
から送信したものであるから、さらにシフトレジ
スタ34の第4バイト目の内容により、そのデー
タが一巡してきたものか、迂回中のものかを判定
する(ステツプ107)。一巡してきたものであれ
ば、判定回路36は送受信回路39に受信モード
をストアアンドフオワード通信モードとすると共
に受信データを無視するよう指令を出す。これに
より、受信用データ転送装置41は起動されず、
受信データは消去されることになる(ステツプ
108)。そして、ステツプ101、102、107の判定は、
受信データの開始フラグ、機能コード、送信元ア
ドレス、伝送制御情報がシフトレジスタ34内に
あるうちに行われるので、データ消去は開始フラ
グから行うことができ、従来のように伝送フオー
マツトの壊れたデータがループ伝送路5A上に送
出されることもなくなる。この後はステツプ113
(既述)となる。
On the other hand, in step 102, if the third byte of the shift register 34 matches the source address of the own station, the data is transmitted from the own station, so the fourth byte of the shift register 34 Depending on the content, it is determined whether the data has been around or is being detoured (step 107). If the data has gone through one cycle, the determination circuit 36 issues a command to the transmitter/receiver circuit 39 to set the reception mode to the store-and-forward communication mode and to ignore the received data. As a result, the reception data transfer device 41 is not activated,
The received data will be erased (step
108). Then, the judgments in steps 101, 102, and 107 are as follows.
Since the start flag, function code, source address, and transmission control information of the received data are erased while they are still in the shift register 34, data can be erased from the start flag, and data with corrupted transmission formats can be erased as before. is no longer sent onto the loop transmission line 5A. After this step 113
(Already mentioned).

一方、ステツプ107で、そのデータが迂回中の
ものと判定されたときは、まず自ステーシヨンが
現在データを送信中か否かを判断し(ステツプ
109)、送信中であればストアアンドフオワード通
信モードとし(ステツプ110)、送信中でなければ
スルー通信モードとして(ステツプ111)、ただち
に受信用データ転送装置41を起動する(ステツ
プ112)、その後は判定回路36はアイドルとなり
(ステツプ113)、受信用データ転送装置41は送
受信回路39からの停止指令があるまで動作する
(ステツプ114)。
On the other hand, if it is determined in step 107 that the data is being detoured, first determine whether or not the own station is currently transmitting data (step 107).
109), if the data is being transmitted, it is set to store and forward communication mode (step 110), and if it is not being transmitted, it is set to through communication mode (step 111), and the reception data transfer device 41 is immediately activated (step 112). The determination circuit 36 becomes idle (step 113), and the receiving data transfer device 41 operates until a stop command is received from the transmitting/receiving circuit 39 (step 114).

以上説明した実施例によれば、伝送データに付
されている種々の識別コードの判定を、制御用コ
ンピユータとは別に設けた判定手段によつて行つ
ているので、識別コードの判定処理時間が制御用
コンピユータで行うよりはるかに短時間で済む。
したがつて、このような伝送制御装置を用いてデ
ータ伝送システムを構成すれば、データの伝送速
度が大幅に向上する利点がある。また、シフトレ
ジスタは開始フラグから伝送制御情報までを格納
できる4バイト分の容量を有しているため、デー
タ消去の判定は、開始フラグがループ伝送路へ送
出される前に行うことができ、データ消去の際に
伝送フオーマツトの壊れたデータがループ伝送路
へ送出されることも全くない。
According to the embodiment described above, since the various identification codes attached to the transmitted data are determined by the determination means provided separately from the control computer, the processing time for determining the identification code is controlled. It takes much less time than doing it on a standard computer.
Therefore, if a data transmission system is configured using such a transmission control device, there is an advantage that the data transmission speed can be significantly improved. In addition, since the shift register has a capacity of 4 bytes that can store everything from the start flag to transmission control information, data deletion can be determined before the start flag is sent to the loop transmission path. When erasing data, data with corrupted transmission formats is never sent to the loop transmission path.

なお、上記実施例では、送受信機能を有する伝
送制御装置について説明したが、本発明は受信機
能のみを有する伝送制御装置にも適用できる。
In the above embodiment, a transmission control device having a transmitting and receiving function has been described, but the present invention can also be applied to a transmission control device having only a receiving function.

また、上記実施例では、識別コードとして、機
能コード、送信元アドレス、伝送制御情報を用い
たが、識別コードとしては、これらのうちの1種
又は2種以上、あるいはこれ以外の識別コードを
必要に応じ使用することができる。
In addition, in the above embodiment, the function code, the source address, and the transmission control information were used as the identification code, but one or more of these or other identification codes are required as the identification code. Can be used according to your needs.

さらに、上記実施例では、伝送制御装置をルー
プ伝送システムに用いた例を説明したが、本発明
の伝送制御装置はループ伝送システム以外にも例
えば第3図のような伝送システムにも用いること
ができる。
Further, in the above embodiment, an example was explained in which the transmission control device was used in a loop transmission system, but the transmission control device of the present invention can also be used in a transmission system other than the loop transmission system, for example, as shown in FIG. can.

以上説明したように、本発明の伝送制御装置
は、制御用コンピユータ外に識別コードの判定手
段を設け、それによつて伝送データに付された識
別コードの判定をしているので、制御用コンピユ
ータの処理速度に制約されることなく、迅速にデ
ータを回送することができる。したがつて、本発
明の伝送制御装置を用いれば、データ伝送システ
ムの伝送速度を大幅に向上させることができる。
As explained above, the transmission control device of the present invention is provided with an identification code determination means outside the control computer, and uses it to determine the identification code attached to the transmission data. Data can be quickly forwarded without being restricted by processing speed. Therefore, by using the transmission control device of the present invention, the transmission speed of the data transmission system can be significantly improved.

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

第1図は二重ループ伝送システムの一例を示す
概略構成図、第2図は識別コードを付したデータ
の伝送フオーマツトの一例を示す説明図、第3図
は有端状伝送システムの一例を示す概略構成図、
第4図は本発明の伝送制御装置の一実施例を示す
ブロツク図、第5図は第4図の装置の動作を説明
するためのフローチヤートである。 1A〜4A,1B〜4B……伝送制御装置、5
A,5B……ループ伝送路、10〜13……ホス
ト計算機、34……シフトレジスタ(捕捉部)、
35……コードレジスタ(格納部)、36……判
定回路、37……判定手段、38……制御用コン
ピユータ、39……送受信回路、41……受信用
データ転送装置、42……受信データバツフア、
43……送信データバツフア、44……送信用デ
ータ転送装置。
Fig. 1 is a schematic configuration diagram showing an example of a double loop transmission system, Fig. 2 is an explanatory diagram showing an example of a transmission format of data with an identification code attached, and Fig. 3 is an example of an end-shaped transmission system. Schematic configuration diagram,
FIG. 4 is a block diagram showing one embodiment of the transmission control device of the present invention, and FIG. 5 is a flowchart for explaining the operation of the device shown in FIG. 1A to 4A, 1B to 4B...transmission control device, 5
A, 5B...Loop transmission line, 10-13...Host computer, 34...Shift register (capture unit),
35... Code register (storage section), 36... Judgment circuit, 37... Judgment means, 38... Control computer, 39... Transmission/reception circuit, 41... Reception data transfer device, 42... Reception data buffer,
43... Transmission data buffer, 44... Transmission data transfer device.

Claims (1)

【特許請求の範囲】 1 迂回路を形成可能な二重系伝送路内に接続さ
れ、データ伝送制御のための制御用コンピユータ
を備え、前記伝送路を通して送られてくるデータ
の識別コードによりそのデータが自ステーシヨン
に必要か否かを判断し、必要なデータのみを取り
込むようにしたデータ伝送制御装置において、前
記伝送路から受信されるデータのうち、少なくと
も、データ開始フラグ、機能コード及び送信元ア
ドレスを格納する領域を備えた記憶手段と、該記
憶手段にデータ開始フラグが登録されたとき、前
記機能コードにより前記受信データが自ステーシ
ヨンで必要であるか否かを判定し、この判定で必
要があると判定されたとき、前記送信元アドレス
が自アドレスか否かを判定する判定手段と、該判
定手段による判定結果が他アドレスである場合
に、前記制御用コンピユータに前記受信データを
取り込む手段とを備えたことを特徴とするデータ
伝送制御装置。 2 前記記憶手段は、前記受信データのうち、該
受信データが一巡してきたものか、迂回中のもの
かを示す伝送制御情報を格納する領域をさらに備
え、前記送信元アドレスの判定手段が自アドレス
と判定し、かつ、前記伝送制御情報がデータの迂
回中であることを示しているとき、前記制御用コ
ンピユータに前記受信データを取り込むことを特
徴とする特許請求の範囲第1項記載のデータ伝送
制御装置。
[Scope of Claims] 1. A device connected to a dual-system transmission line capable of forming a detour, and equipped with a control computer for controlling data transmission, and identifying the data sent through the transmission line using an identification code. A data transmission control device that determines whether data is necessary for its own station and imports only the necessary data, includes at least a data start flag, a function code, and a source address among the data received from the transmission path. When a data start flag is registered in the storage means, it is determined based on the function code whether or not the received data is necessary at the own station, and this determination determines whether the received data is necessary. determining means for determining whether or not the source address is the own address when it is determined that the source address is the own address; and means for importing the received data into the control computer when the determination result by the determining means is that it is another address. A data transmission control device comprising: 2. The storage means further includes an area for storing transmission control information indicating whether the received data has gone around or is being detoured among the received data, and the source address determination means can determine whether the received data is the own address. 2. The data transmission according to claim 1, wherein the received data is taken into the control computer when the transmission control information indicates that the data is being detoured. Control device.
JP16353181A 1981-10-15 1981-10-15 Data transmission controller Granted JPS5864846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16353181A JPS5864846A (en) 1981-10-15 1981-10-15 Data transmission controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16353181A JPS5864846A (en) 1981-10-15 1981-10-15 Data transmission controller

Publications (2)

Publication Number Publication Date
JPS5864846A JPS5864846A (en) 1983-04-18
JPH0218623B2 true JPH0218623B2 (en) 1990-04-26

Family

ID=15775639

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16353181A Granted JPS5864846A (en) 1981-10-15 1981-10-15 Data transmission controller

Country Status (1)

Country Link
JP (1) JPS5864846A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59205640A (en) * 1983-05-09 1984-11-21 Sharp Corp Data link system of programmable controller
JPH0783367B2 (en) * 1984-10-08 1995-09-06 株式会社日立製作所 Data transmission control system
JPS6272245A (en) * 1985-09-25 1987-04-02 Casio Comput Co Ltd Mail system having access right change control mechanism

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5640344A (en) * 1979-09-10 1981-04-16 Hitachi Ltd Loop transmission system
JPS56111353A (en) * 1980-02-08 1981-09-03 Hitachi Ltd Transmitting method for control information using common transmission line

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5640344A (en) * 1979-09-10 1981-04-16 Hitachi Ltd Loop transmission system
JPS56111353A (en) * 1980-02-08 1981-09-03 Hitachi Ltd Transmitting method for control information using common transmission line

Also Published As

Publication number Publication date
JPS5864846A (en) 1983-04-18

Similar Documents

Publication Publication Date Title
US5377188A (en) Communication system capable of detecting missed messages
JPS5947906B2 (en) loop transmission system
JPH114279A (en) Method and mechanism for transmission between advanced systems
US7069305B2 (en) Computer system and a data transfer method thereof using remote direct memory access
US20050144339A1 (en) Speculative processing of transaction layer packets
JPH0218623B2 (en)
JPH0234501B2 (en)
CN115145861B (en) Chip interconnection communication device and method based on dual-ring bus
JPS6412144B2 (en)
JP2639248B2 (en) Communication interface device
KR100211960B1 (en) Frame discriminating method by parity scheme
JPH0865329A (en) Transmission control system
JP2677895B2 (en) Multiplex transmission method
JP2992641B2 (en) ID controller
JPH0234518B2 (en)
JPH0685841A (en) Communication controller
JPH0157538B2 (en)
JPS62174852A (en) Receiving control method in data transmission system
JP2508982B2 (en) In-device control method
JPS6031293B2 (en) Loop transmission method
JP2000293454A (en) Equipment and method for data communication, and recording medium
JPS6159944A (en) Sequence number check system
KR19990070284A (en) Data stabilization method when switching the central processing unit in redundant operation system
JPH07107137A (en) Method and device for communication of multiplex transmission system
JPS6360941B2 (en)