JPH03280641A - Transmission control method - Google Patents

Transmission control method

Info

Publication number
JPH03280641A
JPH03280641A JP2078949A JP7894990A JPH03280641A JP H03280641 A JPH03280641 A JP H03280641A JP 2078949 A JP2078949 A JP 2078949A JP 7894990 A JP7894990 A JP 7894990A JP H03280641 A JPH03280641 A JP H03280641A
Authority
JP
Japan
Prior art keywords
relay
message
function code
loop
relay device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2078949A
Other languages
Japanese (ja)
Other versions
JPH07101882B2 (en
Inventor
Nobuharu Sakuma
佐久間 信晴
Kozo Nakai
耕三 中井
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
Hitachi Industry and Control Solutions Co Ltd
Original Assignee
Hitachi Engineering Co Ltd Ibaraki
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 Engineering Co Ltd Ibaraki, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd Ibaraki
Priority to JP2078949A priority Critical patent/JPH07101882B2/en
Publication of JPH03280641A publication Critical patent/JPH03280641A/en
Publication of JPH07101882B2 publication Critical patent/JPH07101882B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To avoid deterioration in the transmission efficiency and response delay by registering a function code before relay and a function code after relay in pairs for function codes set to each repeater and setting a function code to be relayed to only a required repeater. CONSTITUTION:A function code representing a content of a message is added to each message, and a function code before relay and a function code after relay corresponding to the function code before relay are registered to each of repeaters 1020, 1330 and 2133. When a message is inputted from a loop transmission line 1 connecting to, e.g. the repeater 1020, a function code after relay corresponding to a function code before relay is added to the inputted message when a function code coincident with the function code of the inputted message in the function code before relay registered in the repeater 1020, the function code after relay corresponding to the code is added to the inputted message and the result is sent to other loop transmission line 2. Thus, the message is sent through only a loop requiring the message and the delay in response is avoided.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数のループ伝送路から成る伝送システムの
伝送制御方法に係り、特に自律分散方式の伝送システム
に好適な伝送制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a transmission control method for a transmission system comprising a plurality of loop transmission lines, and particularly to a transmission control method suitable for an autonomous decentralized transmission system.

〔従来の技術〕[Conventional technology]

ループ伝送路(以下単にループという)が複数個相互に
接続されたマルチループ伝送システムに対し、ループ上
の伝送制御装置を総て同一構成とし、各伝送制御装置は
ループ構成や受信側のアドレスを知ることなく、データ
の内容に応じてループ間のメツセージ転送を行うように
した伝送制御方法が、特開昭57−166756号広報
に開示されている。この方法では、ループ間を接続する
中継装置に2つのメモリを設け、また転送メツセージの
各々にメツセージの内容を示す機能コードを付ける。
For multi-loop transmission systems in which multiple loop transmission paths (hereinafter simply referred to as loops) are interconnected, all transmission control devices on the loops have the same configuration, and each transmission control device has the same configuration and receiver address. A transmission control method in which messages are transferred between loops according to the contents of data without the user's knowledge is disclosed in Japanese Patent Laid-Open Publication No. 166756/1983. In this method, two memories are provided in a relay device that connects the loops, and a function code indicating the content of the message is attached to each transferred message.

上記メモリの各々には各ループ内で受信する内容を上記
コードによって予め登録しておく。あるループ上にデー
タが送信され中継装置に入力されたときには、中継装置
はその送られて来たのとは反対側のループ対応のメモリ
に、その送られてきたデータの機能コードが登録されて
いるときだけ反対側ループへそのデータを中継する。ま
たループ上の各伝送制御装置は、ループ上に送られてき
たデータのコードを調べ、自装置で取り込む内容のもの
だけを受診する。この従来例によると、状況に応じてル
ープ間を渡る情報を容易に選択指定でき、また、中継専
用の伝送制御装置を作る必要がない。
The contents to be received within each loop are registered in advance in each of the memories using the codes described above. When data is sent on a certain loop and input to a relay device, the relay device registers the function code of the sent data in the memory corresponding to the loop on the opposite side from where the data was sent. The data is relayed to the opposite loop only when it is present. Furthermore, each transmission control device on the loop examines the code of the data sent on the loop, and examines only the data that is captured by its own device. According to this conventional example, information to be passed between loops can be easily selected and specified depending on the situation, and there is no need to create a transmission control device exclusively for relaying.

また、特開昭61−245651号広報に開示された方
法では、上記と同様の構成を用いるとともに、輸送され
るデータに送信元のアドレスと伝送上必要となる通番を
付加しておき、かつ各中継装置にはその中継装置を通過
して中継したデータの内の最新のものの一定個数の送信
元アドレスと通番とを記憶させておく。そして中継の必
要な機能コードをもつデータが中継装置に送られてきた
ときに、上記記憶している送信元アドレス及び通番をも
たないデータのみを他のループへ中継するようにして、
データが複数ループ間を巡回し続けるものを防止してい
る。
In addition, the method disclosed in JP-A No. 61-245651 uses the same configuration as above, adds the source address and serial number necessary for transmission to the data to be transported, and A relay device stores a fixed number of source addresses and serial numbers of the latest data relayed through the relay device. Then, when data with a function code that requires relaying is sent to the relay device, only the data that does not have the stored source address and serial number is relayed to another loop,
This prevents data from continuing to circulate between multiple loops.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記した特開昭57−166756号広報の従来技術で
は、各ループ内の伝送制御装置が受信する内容を示す機
能コードは、すべての中継装置に設定されてしまう。こ
のためにループ間を渡るメツセージは、そのメツセージ
を必要とするループだけでなく、マルチループを構成す
る総てのループに伝送される。さらにこの方法は、複数
のループが、閉ループを構成するときには、1度発生し
たメツセージがこの閉ループを巡回し続けてしまうこと
があるという問題点がある。、この後者の問題点は、特
開昭61−245651号に示された技術により回避で
きるが、前者の問題点のために、即ちループ間を渡るメ
ツセージは総てのループに伝送されるために、不必要に
ループ上の伝送量が増し、ループ上の最大伝送量を越え
てしまう危険性や、必要なメツセージの応答遅れを生じ
る危険性があった。また1つのメツセージ内の機能コー
ドはどのループ上に送られているときでも同じ値のまま
であるから、複数の既設ループを本方式により接続した
ときには、既にそれぞれのループで接続前に同じ機能コ
ードが使われている可能性があり、その場合には同一機
能コードが別の内容を表し、しかもそれらが同一ループ
上に存在することになる。これではデータの内容を表す
コードとしてその重複したコードは使用できなくなって
しまうという問題点があった。
In the prior art disclosed in Japanese Unexamined Patent Publication No. 57-166756 mentioned above, the function code indicating the content received by the transmission control device in each loop is set in all relay devices. For this reason, a message passing between loops is transmitted not only to the loop that requires the message, but to all loops that make up the multi-loop. Furthermore, this method has a problem in that when a plurality of loops constitute a closed loop, a message that has been generated once may continue to circulate in the closed loop. , this latter problem can be avoided by the technique shown in Japanese Patent Application Laid-Open No. 61-245651, but because of the former problem, in other words, messages that pass between loops are transmitted to all loops. However, there is a risk that the amount of transmission on the loop will increase unnecessarily, exceeding the maximum amount of transmission on the loop, or that there will be a delay in responding to necessary messages. In addition, the function code in one message remains the same no matter which loop it is sent to, so when multiple existing loops are connected using this method, each loop has the same function code before connection. may be used, in which case the same function code would represent different contents, and they would exist on the same loop. This poses a problem in that the duplicate code cannot be used as a code representing the content of the data.

本発明の目的は、ループ上の伝送制御装置を総て同一構
成とし、各伝送制御装置はマルチループシステムの構成
や受信側のアドレスを知ることなくメツセージ転送が行
え、かつループ間を渡るメツセージを当該メツセージを
必要とするループのみに伝送するようにした伝送制御方
法を提供することにあり、またループ内に伝送されるメ
ツセージ内の機能コードが、接続される既設のループシ
ステムの変更を行わなくても重複することがないように
した伝送制御方法を提供するにある。
An object of the present invention is to have all transmission control devices on a loop have the same configuration, so that each transmission control device can transfer messages without knowing the multi-loop system structure or the address of the receiving side, and can transfer messages between loops. The object of the present invention is to provide a transmission control method that transmits the message only to the loop that requires it, and also allows the function code in the message transmitted within the loop to be transmitted without changing the existing loop system to which it is connected. An object of the present invention is to provide a transmission control method that prevents duplication even when the data is transferred.

〔課題を解決するための手段〕[Means to solve the problem]

上記の目的を達成するために、本発明においては、ルー
プ間の中継装置に論理的な中継装置番号を予め登録し、
中継すべきメツセージ内容の機能コードを登録するとき
には、その機能コードのメツセージを中継する必要のあ
る中継装置だけに上記中継装置番号を用いて当該機能コ
ードを設定するとともに、各中継装置に設定する機能コ
ードは、その中継装置へ入ってくるときの中継前機能コ
ードと中継された後のメツセージに付加する中継抜機能
コードの対を登録し、中継装置が一方のループよりメツ
セージを受信したときには、同ループ用の登録エリアに
当該メツセージ内の機能コードと同一の中継前機能コー
ドがあればそれを対応する機能コードに変換して他方の
ループにメツセージを伝送するようにしたものである。
In order to achieve the above object, in the present invention, logical relay device numbers are registered in advance in relay devices between loops,
When registering a function code for the content of a message to be relayed, set the function code using the above relay device number only to the relay device that needs to relay the message with that function code, and also set the function code to each relay device. The code registers a pair of pre-relay function code when it enters the relay device and relay removal function code that is added to the relayed message, and when the relay device receives a message from one loop, the same code is registered. If there is a pre-relay function code in the loop registration area that is the same as the function code in the message, it is converted into a corresponding function code and the message is transmitted to the other loop.

〔作 用〕[For production]

中継装置をその番号で識別することにより、中継すべき
機能コードは必要な中継装置のみに設定されるから、メ
ツセージが不必要にループ間を流れることは防止され、
伝送効率の低下や応答遅れは生じない。また、中継ごと
に機能コードを変換できるから、どのループでも機能コ
ードの重複を回避でき、既設ループの接続を柔軟に行う
ことができる。
By identifying relay devices by their numbers, the function code to be relayed is set only to the necessary relay devices, which prevents messages from flowing between loops unnecessarily.
There is no reduction in transmission efficiency or response delay. Furthermore, since function codes can be converted for each relay, duplication of function codes can be avoided in any loop, and existing loops can be connected flexibly.

〔実施例〕〔Example〕

以下、本発明の一実施例を説明する。第2図は本発明を
実施するシステム全体の構成例を示すもので、3つのル
ープ1,2.3が、伝送制御装置(nettgork 
communication processor ;
以下、NCPと称す)と処理装置を介して接続されてい
る。
An embodiment of the present invention will be described below. FIG. 2 shows an example of the overall configuration of a system implementing the present invention, in which three loops 1, 2.3 are connected to a transmission control device (netgork
communication processor;
(hereinafter referred to as NCP) via a processing device.

具体的には、NCPIo、20と処理装置1020を介
してループ1と2が、NCP21,33と処理装置21
33を介してループ2と3が、NCP13,30と処理
装置1330を介してループ1と3が接続されている。
Specifically, loops 1 and 2 connect to the NCPs 21 and 33 and the processing device 21 via the NCP Io, 20 and the processing device 1020.
Loops 2 and 3 are connected through 33, and loops 1 and 3 are connected through NCPs 13 and 30 and a processing device 1330.

各ループ上には、NCPIO〜13.20〜23.30
〜33がそれぞれ接続されている。NCPII〜12.
22〜23、31〜32には、処理装置1100〜12
00.2200〜2300、3100〜3200がそれ
ぞれ接続されている。NCPIOと20.21と33.
13と30には共通の処理装置1020、2]33.1
330がそれぞれ接続されている(以下これらを中継処
理装置と称す)。NCP]、O〜13゜20〜23.3
0〜33は総て同一構成であり、中継処理装置と接続さ
れているか否かで構造は異なっていない。各NCPは、
ループ上を流れるメツセージから必要なもののみを取り
込み、対応する処理装置に送る。また、処理装置から送
られてきたメツセージはループ上へ送られる。ここで各
NCPは、システム構成や、受信側のNCPがどのルー
プに属しているか、アドレスが何かを知らなくても受信
できるように、メツセージには受信先アドレスを設定し
ない。
On each loop, NCPIO~13.20~23.30
.about.33 are connected to each other. NCPII~12.
22-23, 31-32, processing devices 1100-12
00.2200-2300 and 3100-3200 are connected, respectively. NCPIO and 20.21 and 33.
13 and 30 have a common processing unit 1020, 2] 33.1
330 are connected to each other (hereinafter these will be referred to as relay processing devices). NCP], O~13°20~23.3
0 to 33 all have the same configuration, and the structure does not differ depending on whether or not they are connected to a relay processing device. Each NCP is
It captures only the necessary messages from the messages flowing on the loop and sends them to the corresponding processing device. Also, messages sent from the processing device are sent onto the loop. Here, each NCP does not set a receiving address in the message so that it can receive the message without knowing the system configuration, which loop the receiving NCP belongs to, or what the address is.

第3図に、本システムで伝送されるメツセージのフォー
マットを示す。(a)は通常のメツセージのフォーマッ
トであり、(b)は機能コード登録用メツセージである
。第3図(a)の各フィールドのうち、FCは機能コー
ドであって、データの内容に対応したコードである。S
Aはメツセージを作成し発信したNCPのアドレス(発
信元アドレス)、CCは伝送上必要となる通番、Dat
aは処理される情報である。またFC3は誤り検知用デ
ータ、Fはメツセージの初めと終わりを示すフラグであ
る。各NCPは、フィールドF、FC,SΔ、FC8を
用いて伝送制御を行い、Dataは関知しない。各NC
Pは、自らに接続されている処理装置から登録された機
能コードと、ループ上のメツセージのFCフィールドを
比較することにより、その処理装置がメツセージを必要
とするかどうかを判定し、必要とする場合のみメツセー
ジを取り込む。各処理装置は、データ発生時にデータ内
容及び機能コードをD a t aフィールド、FCフ
ィールドにセットして自接続NCPに送出する。各NC
Pは自接続処理装置より受信したメツセージを第3図(
a)に示すフォーマットに整えて、自らが発信元となり
ループに送出する。また各NCPは、自らが発信元とな
り送出したメツセージがループを一巡して戻ってくれば
これを取り込み、ループから消去する。もし、一定時間
内に戻ってこなければこのメツセージを戻ってくるまで
一定回数再送する。かかるNCPの伝送制御処理は、総
てのNCPで全く同一である。
FIG. 3 shows the format of messages transmitted by this system. (a) is a normal message format, and (b) is a message for function code registration. Among the fields in FIG. 3(a), FC is a function code, which corresponds to the content of the data. S
A is the address of the NCP that created and sent the message (source address), CC is the serial number necessary for transmission, and Dat
a is the information to be processed. Further, FC3 is error detection data, and F is a flag indicating the beginning and end of the message. Each NCP performs transmission control using fields F, FC, SΔ, and FC8, and is not concerned with Data. Each NC
By comparing the function code registered from the processing device connected to itself with the FC field of the message on the loop, P determines whether the processing device needs the message and makes it necessary. Retrieve messages only if When data is generated, each processing device sets the data content and function code in the Data field and FC field and sends it to the self-connected NCP. Each NC
P receives the message from the self-connected processing device as shown in Figure 3 (
It formats itself into the format shown in a) and sends it to the loop as the source. Furthermore, each NCP takes in the message that it sent as the sender and returns after going around the loop, and deletes it from the loop. If the message does not return within a certain period of time, this message will be retransmitted a certain number of times until it returns. Such NCP transmission control processing is completely the same for all NCPs.

一方、第3図(b)の各フィールドのうち、FCrは、
中継処理装置に対し中継するメツセージの中継前機能コ
ードと中継後機能コードを登録するための登録用機能コ
ードである。またDataフィールドの中にあるLNは
、中継前メツセージを中継させるべき中継処理装置の論
理中継機番号であり、PCIは中継前メツセージの機能
コードであり、Fe2は中継後メツセージの機能コード
である。各NCPは、この機能コード登録用メツセージ
も通常のメツセージと同様に処理する。
On the other hand, among the fields in FIG. 3(b), FCr is
This is a registration function code for registering a pre-relay function code and a post-relay function code of a message to be relayed to a relay processing device. Further, LN in the Data field is the logical repeater number of the relay processing device to which the pre-relay message is to be relayed, PCI is the function code of the pre-relay message, and Fe2 is the function code of the post-relay message. Each NCP processes this function code registration message in the same way as a normal message.

次に、各中継処理装置1020.2133.1330.
及び処理装置1100.1200.2200.2300
.3100.3200における伝送制御処理を説明する
。どの中継処理装置及び処理装置も構成及び処理のフロ
ーチャートは同一であり、第4図はこれら処理装置の構
成を示すブロック図である。これは中継処理装置102
0を例として示しており、ループ1,2にそれぞれ接続
されているNCPIo、20に接続され、インターフェ
ース311.321を介して各ループとの伝送を行う。
Next, each relay processing device 1020.2133.1330.
and processing device 1100.1200.2200.2300
.. Transmission control processing in 3100 and 3200 will be explained. The configurations and processing flowcharts of all relay processing devices and processing devices are the same, and FIG. 4 is a block diagram showing the configurations of these processing devices. This is the relay processing device 102
0 is shown as an example, and is connected to NCPIo and 20, which are connected to loops 1 and 2, respectively, and performs transmission with each loop via interfaces 311 and 321.

また処理演算装置310は、伝送制御処理を行うもので
あり、第1受信バツフア313及び第2受信バツフア3
23は、それぞれのループに対応し受信データを格納す
るためのバッファであり、第1FC登録エリア314及
び第2FC登録エリア324は、ループを渡るメツセー
ジの中継前機能コードと中継後機能コードを登録してお
くためのエリアであり、第1送信バツフア315及び第
2送信バツフア325は、それぞれのループに送出すべ
きデータを格納するバッファであり、第1受信データエ
リア316及び第2受信データエリア326は、中継処
理装置または処理装置で用いるべきデータを格納するエ
リアである。また中継機器番号エリア320は、該処理
装置が2つのループと互いに接続し、メツセージを中継
する必要のある中継処理装置として扱うときその中継処
理装置の論理中継機番号を登録しておくエリアである。
Further, the processing arithmetic unit 310 performs transmission control processing, and controls the first reception buffer 313 and the second reception buffer 3.
23 is a buffer for storing received data corresponding to each loop, and the first FC registration area 314 and the second FC registration area 324 register the pre-relay function code and post-relay function code of the message that crosses the loop. The first transmission buffer 315 and second transmission buffer 325 are buffers for storing data to be sent to each loop, and the first reception data area 316 and second reception data area 326 are This is an area for storing data to be used by a relay processing device or a processing device. Further, the relay device number area 320 is an area in which the logical relay device number of the relay processing device is registered when the processing device is connected to two loops and is treated as a relay processing device that needs to relay messages. .

従って中継処理装置では、中継機番号エリア320に零
以上の論理中継機番号が登録され、それ以外の処理装置
では、中継機番号エリア320に零の値が登録されるも
のとする。
Therefore, in the relay processing device, a logical repeater number of zero or more is registered in the repeater number area 320, and in other processing devices, a value of zero is registered in the repeater number area 320.

第5図は、第1FC登録エリア314の内容を示し、中
継前機能コード登録エリア3141と中継後機能コード
登録エリア3142により構成され、中継前機能コード
FC1iと中継後機能コードFC2iは1対1に対応し
ている。
FIG. 5 shows the contents of the first FC registration area 314, which is composed of a pre-relay function code registration area 3141 and a post-relay function code registration area 3142, and the pre-relay function code FC1i and the post-relay function code FC2i are on a one-to-one basis. Compatible.

第1図は、中継処理装置及び処理装置における、本発明
の特徴とする処理の一実施例を示すフローチャートで、
一方のループのNCPよりメツセージを受信すると、ま
ずその内容を該当する受信バッファ313、又は323
に格納する(ステップ351)。
FIG. 1 is a flowchart showing an embodiment of processing, which is a feature of the present invention, in a relay processing device and a processing device.
When a message is received from the NCP of one loop, the contents are first transferred to the corresponding reception buffer 313 or 323.
(step 351).

次にそのメツセージ内の機能コードを識別し、登録用の
メツセージか通常のメツセージかを判断する(ステップ
352)。機能コード登録用メツセージであれば、メツ
セージ内の論理中継機番号LNと中継機番号登録エリア
320内の中継機番号とを比較し、同一であれば自処理
装置がメツセージを中継用の機能コード登録が必要であ
ると判断し次の処理を行うが、異なれば何もしないで処
理を終了する(ステップ359)。なお、中継処理装置
でなければ、中継機番号エリア320内の中継機番号は
登録されず値は零となっているので、ここでは必ず異な
る判定となり何もしないことになる。機能コードの登録
は、受信したループと反対のFC登録エリア314に、
メツセージ内の中継前機能コードPCIと中継後機能コ
ードFC2とを格納しくステップ360)、受信したル
ープのNCPに中継後機能コードFC2を登録しくステ
ップ361)、受信したル−プと反対のループのNCP
に中継前機能コードPCIを登録しくステップ362)
、終了する。また、通常のメツセージの場合は、自処理
装置で用いるためのデータとして、受信バッファ内の内
容を受信したループに対応する受信データエリアに格納
する(ステップ353)。さらに、中継機番号登録エリ
ア3320内に中継機番号が登録されているかを調べ(
ステップ354)、登録があれば受信したメツセージ内
の機能コードと受信したループに対応するFC登録エリ
ア314または324の中継前機能コードエリアに同一
の機能コードがあるか調べ(ステップ355)、同一の
機能コードがあれば、そのメツセージは中継必要と判断
し、ループ間を渡るメツセージとして扱う。ステップ3
54で中継機番号の登録がなかったとき、あるいはステ
ップ355で同一機能コードがなかったときは中継処理
装置でない、あるいはそのメツセージは中継不要と判断
し何もしない。ステップ355で同一の機能コードがあ
れば、FC登録エリア内の中継前機能コードに対応する
中継後機能コードFC2に、受信したメツセージ内の機
能コードPCIを変換しくステップ356)、そのメツ
セージを受信したループと反対の送信バッファ315ま
たは352に格納しくステップ357)、受信したルー
プと反対のループのNCPへそのメツセージを送出しく
ステップ358)、処理を終了する。
Next, the function code in the message is identified and it is determined whether it is a registration message or a normal message (step 352). If the message is for function code registration, the logical repeater number LN in the message is compared with the repeater number in the repeater number registration area 320, and if they are the same, the own processing device registers the message as a function code for relaying. If it is determined that it is necessary, the next process is performed, but if it is different, the process is ended without doing anything (step 359). Note that if it is not a relay processing device, the relay device number in the relay device number area 320 will not be registered and the value will be zero, so the determination here will always be different and nothing will be done. The function code is registered in the FC registration area 314 opposite to the received loop.
Store the pre-relay function code PCI and post-relay function code FC2 in the message (Step 360), register the post-relay function code FC2 in the NCP of the received loop (Step 361), and register the post-relay function code FC2 in the NCP of the received loop. NCP
(Step 362)
,finish. Furthermore, in the case of a normal message, the contents of the reception buffer are stored in the reception data area corresponding to the received loop as data for use in the own processing device (step 353). Furthermore, check whether the repeater number is registered in the repeater number registration area 3320 (
Step 354), if there is registration, check whether there is the same function code in the function code in the received message and the pre-relay function code area of the FC registration area 314 or 324 corresponding to the received loop (step 355), If there is a function code, it is determined that the message needs to be relayed and is treated as a message that crosses between loops. Step 3
If no repeater number is registered in step 54, or if no identical function code is found in step 355, it is determined that the relay processing device is not a relay processing device, or that the message does not need to be relayed, and nothing is done. If there are identical function codes in step 355, the function code PCI in the received message is converted to the post-relay function code FC2 corresponding to the pre-relay function code in the FC registration area (step 356), and the message is received. The message is stored in the sending buffer 315 or 352 opposite to the loop (step 357), and the message is sent to the NCP in the opposite loop to the receiving loop (step 358), and the process ends.

このメツセージを受けたNCPは、自らが発信元となり
、第3図(a)のフォーマットに整えループ上に送出す
る。
The NCP that receives this message becomes the sender, formats it in the format shown in FIG. 3(a), and sends it out on the loop.

以上の中継処理装置及び処理装置の処理により。Through the processing of the above relay processing device and processing device.

NCPからの受信メツセージは、機能コード登録用であ
れば、要求しているメツセージが流れるループと接続さ
れている中継処理装置のみに登録され、かつ通常のメツ
セージであれば、ループ間を渡る必要のあるメツセージ
のみが、そのメツセージを必要とするループのみに中継
処理装置を介してメツセージ内のデータの変更なしに、
機能コードのみが変換されて中継される。このことによ
り、それぞれのメツセージは、そのメツセージを必要と
するループのみで伝送され、かつ1つのループにおける
機能コードの重複を避けることができる。
If a message received from an NCP is for function code registration, it will be registered only in the relay processing device connected to the loop through which the requested message flows, and if it is a normal message, there is no need to cross between loops. A message is passed through a relay processing device only to loops that require it, without changing the data in the message.
Only the function code is converted and relayed. This allows each message to be transmitted only in the loops that require it, and to avoid duplication of function codes in one loop.

次に、第6図を用いて本実施例における伝送系内のデー
タの流れを説明する。第6図(a)は、機能コード登録
用メツセージのデータの流れを示すもので、まず処理装
置11200が、機能コードFCaをもつデータを発生
し、これを処理装置1100が受信して使用するものと
する。この場合、機能コードFCaをもつデータは、ル
ープ1内でパス411に沿って伝送されている。次に、
処理装置2200が、上記の機能コードFCaを持つデ
ータをループ2内でFCbをもつデータとして受信し使
用するようにするには、処理装置2200は、機能コー
ド登録用のメツセージとして機能コードFCrをもつデ
ータに中継処理装置1020の論理中継機番号LNと中
継前機能コードFCaと中継後機能コードFCbを含め
NCP22に送出する。N CP 22は、そのデータ
を送出し、パス420に沿い一巡してくるとそれを取り
込み消去する。一方CP2Oは、FCrが予め登録され
ているのでこのメツセージを取り込み、中継処理装置1
020に送る。中継処理装置1o20では、メツセージ
内の論理中継機番号LNが自装置の番号であるので、メ
ツセージ内の中継前機能コードFCaと中継後機能コー
ドFebを自装置内に登録し、NCPIOに中継前機能
コードFCaを登録し、かつNCP2Oに中継後機能コ
ードFebを登録する。また、NCP21も、FCrが
予め登録されているのでこのメツセージを取り込み中継
処理装置2130に送るが、中継処理装置ff 213
0では、メツセージ内の番号LNと自装置のそれが異な
るので何もしない。その結果、中継用メツセージのFC
登録処理として、中継処理装置1020にFCa。
Next, the flow of data within the transmission system in this embodiment will be explained using FIG. FIG. 6(a) shows the data flow of the function code registration message. First, the processing device 11200 generates data with the function code FCa, and the processing device 1100 receives and uses this data. shall be. In this case, data with function code FCa is being transmitted along path 411 within loop 1. next,
In order for the processing device 2200 to receive and use the data with the above function code FCa as data with FCb in loop 2, the processing device 2200 has the function code FCr as a message for function code registration. The data includes the logical repeater number LN of the relay processing device 1020, the pre-relay function code FCa, and the post-relay function code FCb, and is sent to the NCP 22. N CP 22 sends out the data, and as it travels along path 420 it is captured and erased. On the other hand, since FCr is registered in advance, CP2O takes in this message and relays it to relay processing device 1.
Send to 020. In the relay processing device 1o20, since the logical repeater number LN in the message is the number of the own device, the pre-relay function code FCa and the post-relay function code Feb in the message are registered in the own device, and the pre-relay function is sent to NCPIO. Register code FCa and register post-relay function code Feb in NCP2O. Also, since the FCr is registered in advance, the NCP 21 also captures this message and sends it to the relay processing device 2130, but the relay processing device ff 213
If it is 0, the number LN in the message is different from that of the own device, so nothing is done. As a result, the relay message FC
As a registration process, FCa is sent to the relay processing device 1020.

FCbが、NCPIOにはFCaが、N CP 20に
はFCbがそれぞれ機能コードとして登録され、ループ
3への通路には登録されない。なお、NCPllと12
にはFCaが既に登録されており、またNCP22には
処理装置2200からFCbが既に登録されている。
FCb is registered as a function code, FCa is registered in NCPIO, and FCb is registered in NCP 20 as a function code, and is not registered in the path to loop 3. In addition, NCPll and 12
FCa has already been registered in the , and FCb has already been registered in the NCP 22 from the processing device 2200 .

次に、ループ1において機能コードF Caをもつメツ
セージがループを渡る流れを第6図(b)を用いて説明
視する。処理装置1200がFCaをもつメツセージを
発生すると、NCP12がこのメッセ−ジを受信し、ル
ープ1に送出し、パス411のように一巡してきたメツ
セージを取り込み消去する。
Next, the flow of the message having the function code FCa in loop 1 passing through the loop will be explained using FIG. 6(b). When the processing device 1200 generates a message with FCa, the NCP 12 receives this message, sends it to loop 1, and takes in and deletes the message that has gone around like path 411.

一方NCPIOは、機能コードFCaが自装置内に登録
されているので、このメツセージを取り込み中継処理装
置1020に送る。中継処理装置1020では、メツセ
ージ内のDataフィールドを自装置内の受信データエ
リアに格納するとともに、メツセージ内の機能コードF
 Ca11 F Cbに変換し、NCP2Oへ送出する
。NCP2Oは、このメツセージをループ2上に送出し
、パス421のように一巡してきたメツセージを取り込
み消去する。またNCP22は、機能コードFebが自
装置内に登録されていることによりこのメツセージを取
り込み、処理装置2200に送出する。処理装置220
0では、メツセージ内のD a t aフィールドを自
装置内エリアに格納し、その処理を実行する。
On the other hand, since the function code FCa is registered in its own device, NCPIO takes in this message and sends it to relay processing device 1020. Relay processing device 1020 stores the Data field in the message in the reception data area within itself, and also stores the function code F in the message.
Convert to Ca11F Cb and send to NCP2O. The NCP 2O sends this message onto the loop 2, and takes in and deletes the message that has made a loop like the path 421. Also, since the function code Feb is registered in its own device, the NCP 22 captures this message and sends it to the processing device 2200. Processing device 220
0, the data field in the message is stored in the local area and the processing is executed.

以上述べた様に、本実施例によれば、複数のループより
構成された伝送システムにおいて、特別のNCPを用い
ることなく、かつ、特別の中継処理装置を用いることな
く、かつ総てのNCPは受信側のNCPがどのループに
接続されているかを認識することなく、必要なメツセー
ジを必要なループのみに伝送させ、かつそれぞれのルー
プで機能コードを重複させることなくループ間で伝送さ
せることが可能となる。なお、本実施例の各ループにさ
らに複数ループが接続されるような場合でも、また、2
つのループのみで構成される場合でも、本方式は有効で
ある。
As described above, according to this embodiment, in a transmission system composed of a plurality of loops, all NCPs can be used without using a special NCP or a special relay processing device. It is possible to transmit necessary messages only to necessary loops without knowing which loop the receiving NCP is connected to, and to transmit between loops without duplicating function codes in each loop. becomes. Note that even if multiple loops are further connected to each loop in this embodiment, two
This method is effective even when it consists of only one loop.

第7図は第2図の処理装置あるいは中継処理装置の構成
例において、本発明の特徴とする第1及び第2FC登録
エリア314及び324と中継機番号エリア320をな
くし、これを入力インターフェース700を介して外部
に設けたフロッピーディスク等の記憶媒体701に移し
たものである。このように、中継機番号と機能コード変
換用データを処理装置と別の記憶媒体に記憶しておくこ
とにより、通常のメツセージの中継処理を行うことがで
き、中継を行う処理装置にのみこれをセットすればよい
FIG. 7 shows an example of the configuration of the processing device or relay processing device shown in FIG. The data is transferred to a storage medium 701, such as a floppy disk, provided externally. In this way, by storing the repeater number and function code conversion data in a storage medium separate from the processing device, normal message relay processing can be performed, and this data can only be sent to the processing device that performs the relay. Just set it.

なお、以上に説明した実施例においては、1つの登録用
メツセージは1つの中継処理装置に中継前及び中継後機
能コードの1組を設定するものとしたが、これを複数の
中継処理装置に複数組の機能コードを設定するようにす
ることもできる。例えば、3つのループA、B、Cがシ
リアルに接続されていてループA、B間が中継処理装置
TABで、ループB、C間が中継処理装置TBCで接続
されており、ループC内の1つの処理装置SCがループ
Aに流れるメツセージを受診するようにする場合を考え
る。この場合、ループA上の機能コードFCAをもつメ
ツセージをループB上で機能コードPCBをもつメツセ
ージとし、更にループC上で機能コードFCCをもつメ
ツセージとして処理装置SCが受信するようにするには
、中継処理装置TABに中継前機能コードFCAと中継
後機能コードPCBを、中継処理装置TBCに中継前機
能コードPCBと中継後機能コードFCCを設定する必
要があり、前述の実施例では2回の登録用メツセージを
発行する必要がある。これを1つの登録用メツセージに
2つの中継処理装置0TAB、TBCの番号とそれに対
応する2組の機能コードをデータとして持たせて発行し
て2つの中継処理装置への機能コード設定を一度に行う
ようにすれば、機能コード設定を効率よく行える。
Note that in the embodiment described above, one registration message sets one set of pre-relay and post-relay function codes in one relay processing device, but this is set in multiple relay processing devices. It is also possible to set a set of function codes. For example, three loops A, B, and C are connected serially, and a relay processing device TAB connects loops A and B, a relay processing device TBC connects loops B and C, and one Consider a case in which one processing device SC receives messages flowing through loop A. In this case, in order for the processing device SC to receive a message with function code FCA on loop A as a message with function code PCB on loop B and further as a message with function code FCC on loop C, It is necessary to set the pre-relay function code FCA and the post-relay function code PCB in the relay processing device TAB, and the pre-relay function code PCB and the post-relay function code FCC in the relay processing device TBC, and in the above embodiment, registration is required twice. It is necessary to issue a message for This is issued in one registration message with the numbers of the two relay processing devices 0TAB and TBC and the corresponding two sets of function codes as data to set the function codes to the two relay processing devices at once. By doing this, you can efficiently set the function code.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、複数のループで構成された伝送システ
ムにおいて、メツセージはそれを必要とするループのみ
で伝送され、不要なループには伝送されないので不必要
にループ内の伝送負荷を高めることがなく、応答遅れも
なくすことができる。
According to the present invention, in a transmission system composed of a plurality of loops, a message is transmitted only in the loops that require it and not in unnecessary loops, so that the transmission load within the loops is not increased unnecessarily. This also eliminates response delays.

また、それぞれのループによって、メツセージの内容を
表す機能コードを容易に変更できるので、既設のループ
同志を接続しても1つのループで機能コードが重複して
しまうことがなく、従って、既設システムを変更するこ
となく、マルチループシステムを構成できるという効果
がある。
In addition, each loop allows you to easily change the function code that represents the message content, so even if you connect existing loops together, the function code will not overlap in one loop. This has the advantage that a multi-loop system can be configured without any changes.

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

第1図は本発明の特徴とする処理のフローチャート、第
2図はマルチループシステムの例を示す図、第3図は伝
送されるメツセージのフォーマット説明図、第4図は処
理装置の構成例を示す図、第5図は機能コード登録エリ
アの説明図、第6図はシステムで伝送されるメツセージ
の流れを説明する図、第7図は処理装置の他の構成例を
示す図である。 1.2.3・・・ループ伝送路、10〜13.20〜2
3゜30〜33・・・伝送制御装置(NCP)、110
0.1200゜2200、2300.3100.320
0・・・処理装置、1020.2133゜1330・・
・中継処理装置、314.324・・・FC登録エリア
、320・・・中継機番号登録エリア、701・・・記
憶媒体。
Fig. 1 is a flowchart of the processing characteristic of the present invention, Fig. 2 is a diagram showing an example of a multi-loop system, Fig. 3 is an explanatory diagram of the format of a message to be transmitted, and Fig. 4 is an example of the configuration of a processing device. 5 is an explanatory diagram of the function code registration area, FIG. 6 is a diagram illustrating the flow of messages transmitted in the system, and FIG. 7 is a diagram illustrating another example of the configuration of the processing device. 1.2.3...Loop transmission line, 10-13.20-2
3゜30~33...Transmission control device (NCP), 110
0.1200°2200, 2300.3100.320
0... Processing device, 1020.2133°1330...
- Relay processing device, 314.324...FC registration area, 320...Relay machine number registration area, 701...Storage medium.

Claims (1)

【特許請求の範囲】 1、少なくとも2以上のループ伝送路の各々の間を中継
装置により接続して成るマルチループシステムでのメッ
セージの伝送制御方法において、メッセージの各々にそ
の内容を示す機能コードを付加し、かつ各中継装置内に
中継前機能コードと該コードごとに対応する中継後機能
コードとを登録しておくとともに、中継装置に接続され
た一方のループ伝送路からメッセージが入力されたとき
に、当該中継装置内に登録された上記中継前機能コード
の中に上記入力されたメッセージの機能コードと一致す
るものがあれば、該一致した中継機能コードに代わって
該コードに対応する上記中継後機能コードを上記入力さ
れたメッセージに付加して当該中継装置のもう一方の側
に接続されたループ伝送路へ送出することを特徴とする
伝送制御方法。 2、その機能コードが登録用データであることを示しか
つそのデータとして前記中継前及び中継後機能コードを
有した登録用メッセージを設け、該メッセージが一方の
ループ伝送路より入力された中継装置は、当該メッセー
ジ内の上記中継前及び中継後機能コードを自装置内に登
録するとともにもう一方のループ伝送路へ上記入力され
た登録用メッセージを送出することを特徴とする請求項
1記載の伝送制御方法。 3、中継装置の各々にその装置固有の中継装置番号を登
録し、かつ前記登録用メッセージのデータに登録中継装
置番号を有せしめるとともに、各中継装置は、自装置の
中継装置番号と一致する上記登録中継装置番号を有した
登録用メッセージが入力されたときだけ該メッセージ内
の中継前及び中継後機能コードを自装置内へ登録するこ
とを特徴とする請求項2記載の伝送制御方法。 4、前記登録用メッセージに中継前機能コード、中継後
機能コード及び登録中継装置番号から成るデータ対を複
数個有せしめ、上記登録用メッセージを一方のループ伝
送路から入力された中継装置は、上記データ対の先頭の
ものが自装置の中継装置番号を含んでいるときのみ上記
先頭データ対の中継前及び中継後機能コードを自装置内
に登録し、かつ当該データ対を消去した登録用メッセー
ジをもう一方のループ伝送路へ送出することを特徴とす
る請求項3記載の伝送制御方法。 5、前記中継前及び中継後機能コードと、前記中継装置
番号とを、中継装置から読み取り可能でかつ着脱可能な
中継装置外部の記憶装置に設定したことを特徴とする請
求項1ないし4記載の伝送制御方法。
[Claims] 1. A message transmission control method in a multi-loop system in which each of at least two or more loop transmission paths is connected by a relay device, wherein each message is provided with a function code indicating its content. and register the pre-relay function code and the corresponding post-relay function code for each code in each relay device, and when a message is input from one loop transmission path connected to the relay device. Then, if there is a function code that matches the function code of the input message among the pre-relay function codes registered in the relay device, the relay corresponding to the code replaces the matching relay function code. A transmission control method characterized by adding a post-function code to the input message and transmitting it to a loop transmission line connected to the other side of the relay device. 2. A registration message indicating that the function code is registration data and having the pre-relay and post-relay function codes as the data is provided, and the relay device to which the message is input from one loop transmission path , the transmission control according to claim 1, wherein the pre-relay and post-relay function codes in the message are registered in the own device, and the input registration message is sent to the other loop transmission path. Method. 3. Register a relay device number unique to each relay device, and include the registered relay device number in the data of the registration message, and each relay device registers the above-mentioned relay device number that matches the relay device number of its own device. 3. The transmission control method according to claim 2, wherein the pre-relay and post-relay function codes in the message are registered in the own device only when a registration message having a registered relay device number is input. 4. The registration message has a plurality of data pairs consisting of a pre-relay function code, a post-relay function code, and a registered relay device number, and the relay device to which the registration message is input from one loop transmission path is Only when the first data pair includes the relay device number of the own device, register the pre-relay and post-relay function codes of the first data pair in the own device, and send a registration message that erases the data pair. 4. The transmission control method according to claim 3, wherein the transmission is transmitted to the other loop transmission path. 5. The pre-relay and post-relay function codes and the relay device number are set in a storage device external to the relay device that can be read from the relay device and is detachable. Transmission control method.
JP2078949A 1990-03-29 1990-03-29 Transmission control method Expired - Fee Related JPH07101882B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2078949A JPH07101882B2 (en) 1990-03-29 1990-03-29 Transmission control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2078949A JPH07101882B2 (en) 1990-03-29 1990-03-29 Transmission control method

Publications (2)

Publication Number Publication Date
JPH03280641A true JPH03280641A (en) 1991-12-11
JPH07101882B2 JPH07101882B2 (en) 1995-11-01

Family

ID=13676142

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2078949A Expired - Fee Related JPH07101882B2 (en) 1990-03-29 1990-03-29 Transmission control method

Country Status (1)

Country Link
JP (1) JPH07101882B2 (en)

Also Published As

Publication number Publication date
JPH07101882B2 (en) 1995-11-01

Similar Documents

Publication Publication Date Title
US5060228A (en) Bridge communication system
US4354267A (en) Data transmission system utilizing loop transmission lines between terminal units
JPH0732401B2 (en) Transmission control method
JP2660422B2 (en) LAN mode coupling device with operation mode setting
JPS5947906B2 (en) loop transmission system
JPH0654911B2 (en) Method and apparatus for transferring mastership
JPWO1991011869A1 (en) Communication system between different LANs
JPH06500903A (en) Method and apparatus for specifying destination and source addresses in a packet network
JPH03280641A (en) Transmission control method
JPH0828732B2 (en) Transmission control method
EP0093004B1 (en) Data communication system
JPS6054549A (en) Data transmission method and device
JP2504596B2 (en) Frame filtering method in large-scale LAN system
JPS59126347A (en) Relay control system
JPH04156655A (en) Communication system between processors
JP3374628B2 (en) Token pass data transfer system
JPS61264833A (en) Data transfer and control system
JP2539410B2 (en) Communication network routing information check method
JPS59126348A (en) Relay controller
JPS62216449A (en) Routing system
JP2531126Y2 (en) MAC Bridge
JPS6412144B2 (en)
JP2733950B2 (en) Token ring controller
JPS6286944A (en) Multiple address communication processing system
JPH06125344A (en) Broadcast communication method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees