JP3129730B2 - Network communication method - Google Patents

Network communication method

Info

Publication number
JP3129730B2
JP3129730B2 JP02292651A JP29265190A JP3129730B2 JP 3129730 B2 JP3129730 B2 JP 3129730B2 JP 02292651 A JP02292651 A JP 02292651A JP 29265190 A JP29265190 A JP 29265190A JP 3129730 B2 JP3129730 B2 JP 3129730B2
Authority
JP
Japan
Prior art keywords
communication
network
communication unit
relay
unit
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
JP02292651A
Other languages
Japanese (ja)
Other versions
JPH04165505A (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.)
Omron Corp
Original Assignee
Omron Corp
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 Omron Corp filed Critical Omron Corp
Priority to JP02292651A priority Critical patent/JP3129730B2/en
Publication of JPH04165505A publication Critical patent/JPH04165505A/en
Application granted granted Critical
Publication of JP3129730B2 publication Critical patent/JP3129730B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 〈産業上の利用分野〉 本発明は、プログラマブルコントローラ(以下、PCと
いう)本体に接続されて、ネットワーク間の中継を行う
PCのネットワーク間相互通信方法に関する。
DETAILED DESCRIPTION OF THE INVENTION <Industrial Application Field> The present invention is connected to a main body of a programmable controller (hereinafter, referred to as a PC) and relays data between networks.
The present invention relates to a method for intercommunication between PC networks.

〈従来の技術〉 従来、PCにおけるネットワーク間相互通信方法には、
PC本体に接続された各通信ユニットがPC本体とネットワ
ークとの間の中継を行い、PC本体のMPUがそのPC本体の
内部メモリに記憶しておいたルーチングテーブルを検索
し、そのルーチングテーブルに基づいてネットワーク間
通信を行う方法がある。
<Conventional technology> Conventionally, a method of intercommunication between networks in a PC includes:
Each communication unit connected to the PC performs relay between the PC and the network, and the MPU of the PC searches the routing table stored in the internal memory of the PC, and based on the routing table. Communication between networks.

ルーチングテーブルとは自PCの通信ユニットから、通
信先である最終ターゲットPCの通信ユニットまでの通信
経路を示すアドレスが設定されたもので、例えば、その
間に通るネットワークのネットワークアドレスや、ネッ
トワーク同士を中継するPCの通信ユニット(ノード)の
ノードアドレス等が設定されたものである。
The routing table is an address that indicates the communication path from the communication unit of the own PC to the communication unit of the final target PC that is the communication destination.For example, the network address of the network that passes between them and relays the networks The node address etc. of the communication unit (node) of the PC to be set are set.

〈発明が解決しようとする課題〉 しかし、上記PCにおけるネットワーク間相互通信方法
では、通信ユニットは単にネットワークとPC本体との間
の中継を行っているだけで、PC本体のMPUがルーチング
の度にPC本体内の内部メモリに格納されたルーチングテ
ーブルを検索処理していた。
<Problems to be Solved by the Invention> However, in the above-described inter-network communication method in the PC, the communication unit merely relays between the network and the PC main unit, and the MPU of the PC main unit is switched every time the routing is performed. The routing table stored in the internal memory of the PC was searched.

このため、ネットワーク中継時におけるPCのシステム
のオーバヘッドが増大し、特に、多数のネットワークを
中継するPC(以下、中継PCという)においてネットワー
ク中継が同時に集中した場合、そのPC本体に負荷が集中
し、中継PCのシステムのオーバヘッドが増大するという
問題があった。
For this reason, the overhead of the PC system at the time of network relaying increases, and in particular, when network relaying simultaneously concentrates on PCs relaying many networks (hereinafter referred to as relay PCs), the load concentrates on the PC itself, There is a problem that the overhead of the system of the relay PC increases.

そこで、本発明は上記問題に鑑みなされたもので、ネ
ットワーク中継時におけるPCのシステムのオーバヘッド
が増大しないようにしたPCのネットワーク間相互通信方
法を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a method for inter-network communication between PCs in which the overhead of the PC system during network relay is not increased.

〈課題を解決するための手段〉 上記課題を解決するため、本発明は、プログラマブル
コントローラ本体に複数の通信ユニットが装着されたプ
ログラマブルコントローラにおいて、上記複数の通信ユ
ニットのそれぞれに異なるネットワークを接続して、上
記ネットワーク間で中継通信を行うネットワーク間相互
通信方法であって、上記プログラマブルコントローラ内
にルーチングテーブルを設け、そのルーチングテーブル
に上記通信ユニットそれぞれのユニット識別情報と、そ
れぞれの通信ユニットに接続されたネットワークのネッ
トワークアドレスとを設定し、ネットワーク間の中継通
信に際して、上記複数の通信ユニットのうちの第1のネ
ットワークに接続された第1の通信ユニットが、送信先
の通信ユニットのネットワークアドレスおよびノードア
ドレスを含む通信情報を受けると、上記ルーチングテー
ブルを検索して、上記送信先のネットワークアドレスに
相当する第2のネットワークに接続された第2の通信ユ
ニットに上記通信情報を転送し、転送を受けた第2の通
信ユニットでは、上記ルーチングテーブルを検索して、
上記第2のネットワークに接続された上記送信先のノー
ドアドレスの通信ユニットへ上記通信情報を送信する。
<Means for Solving the Problems> In order to solve the above problems, the present invention provides a programmable controller in which a plurality of communication units are mounted on a programmable controller main body, by connecting different networks to each of the plurality of communication units. An inter-network communication method for performing relay communication between the networks, wherein a routing table is provided in the programmable controller, and the routing table is connected to the unit identification information of each of the communication units and each of the communication units. A network address of a network is set, and at the time of relay communication between the networks, the first communication unit connected to the first network among the plurality of communication units determines a network address and a communication address of a communication unit of a transmission destination. Receiving the communication information including the communication information and the node address, searches the routing table and transfers the communication information to a second communication unit connected to a second network corresponding to the destination network address. The second communication unit having received the information searches the routing table,
The communication information is transmitted to a communication unit of the destination node address connected to the second network.

また、本発明は、プログラマブルコントローラ本体に
通信ユニットが装着されたプログラマブルコントローラ
(以下、PCという)の上記通信ユニットが任意のネット
ワークに接続され、同様の別々のPCの通信ユニットが別
のネットワークに接続され、更に、プログラマブルコン
トローラ本体に複数の通信ユニットが装着された中継用
PCの上記複数の通信ユニットが、それぞれ上記任意およ
び別のネットワークに接続されていて、上記中継用PCを
介してネットワーク間相互通信を行う方法であって、上
記各PCおよび中継用PCにそれぞれルーチングテーブルを
持たせ、そのルーチングテーブルには、ネットワーク間
通信に必要な最終ネットワークアドレスおよび中継ネッ
トワークアドレスおよび中継ノードアドレス、中継用PC
に必要な各通信ユニットの自ネットワークアドレスおよ
び自ユニット識別情報、を適宜に設定し、ネットワーク
間をまたがる通信を行うPCにて、その通信ユニットがそ
のPCのルーチングテーブルを検索することで通信経路を
判断して、このPCの通信ユニットからその通信ユニット
に接続された同一ネットワーク内の中継用PCに向けて通
信情報を送信するとともに、送信を受けた中継用PCにて
その中継用PCのルーチングテーブルを検索して、当該PC
に装着された複数の通信ユニット間で転送を行うこと
で、上記ネットワークとは別のネットワークのPCの通信
ユニットへ通信情報を送信することを特徴とする。
Also, the present invention provides a programmable controller (hereinafter, referred to as a PC) in which a communication unit is mounted on a main body of a programmable controller, wherein the communication unit is connected to an arbitrary network, and a communication unit of a similar separate PC is connected to another network. In addition, for relays with multiple communication units mounted on the programmable controller body
A method in which the plurality of communication units of a PC are connected to the arbitrary and different networks, respectively, and perform inter-network communication via the relay PC, wherein the PC and the relay PC are respectively routed. The routing table contains the final network address, relay network address, relay node address, and relay PC necessary for inter-network communication.
Network address and unit identification information of each communication unit necessary for the communication unit are appropriately set, and the communication unit searches the routing table of the PC by the communication unit on the PC performing the communication across the networks, thereby establishing the communication path. Judge and transmit the communication information from the communication unit of this PC to the relay PC in the same network connected to the communication unit, and the relay PC that has received the routing table of the relay PC. Search for the PC
The communication information is transmitted to a communication unit of a PC on a network different from the above-mentioned network by performing transfer between a plurality of communication units mounted on the PC.

〈作用〉 上記本発明の構成では、PCのルーチングテーブルを用
いて、そのPCに装着された複数の中継用の通信ユニット
間の通信情報転送処理や、別々につながれたPC相互の通
信を行う。
<Operation> In the configuration of the present invention described above, using the routing table of a PC, communication information transfer processing between a plurality of relay communication units mounted on the PC, and communication between the separately connected PCs are performed.

〈実施例〉 以下、本発明に係るPCの通信ユニットを用いたネット
ワーク間通信制御方式の一実施例を、図面を参照して説
明する。
<Embodiment> Hereinafter, an embodiment of an inter-network communication control system using a communication unit of a PC according to the present invention will be described with reference to the drawings.

第1図は本発明に係るPCの通信ユニットによりネット
ワーク間を接続した状態を示すブロック図であり、この
中継用PC2はPC本体21の他に2台の通信ユニットA,Bを有
する。そして、通信ユニットA,Bのそれぞれにネットワ
ークX,Yが接続されており、通信ユニットの台数を増減
させることにより、中継するネットワークの数を増減さ
せることが可能である。なお、同図においてPC1,3,4も
図示していないが、ネットワークXまたはYと接続する
通信ユニットをそれぞれ一台づつ有する。
FIG. 1 is a block diagram showing a state in which networks are connected by a communication unit of a PC according to the present invention. This relay PC 2 has two communication units A and B in addition to the PC main body 21. The networks X and Y are connected to the communication units A and B, respectively, and the number of relaying networks can be increased or decreased by increasing or decreasing the number of communication units. Although the PCs 1, 3, and 4 are not shown in the figure, each has a communication unit connected to the network X or Y.

そして、本実施例の中継用PC2のPC本体21と通信ユニ
ットAとは、第2図に示すように構成、接続されてお
り、第1図に示す通信ユニットB、およびその他のPC1,
3,4のPC本体と、それらの通信ユニットも同様に構成、
接続されている。
Then, the PC main body 21 of the relay PC 2 of this embodiment and the communication unit A are configured and connected as shown in FIG. 2, and the communication unit B shown in FIG.
3, 4 PCs and their communication units are similarly configured,
It is connected.

つまり、PC本体21は第2図に示すように、DMA転送機
能を有するCPU25と、内部メモリ22とを有する。内部メ
モリ22は、後述するルーチングテーブルが設定されて格
納しておくバックアップ用メモリ23と、CPU25がデータ
通信を行う時にはルーチングテーブルを検索あるいは参
照できるようにバックアップ用メモリ23からそのルーチ
ングテーブルが移される内部RAM24とを有する。その
他、PC本体21は、図示されていないシステムプログラム
ROMや、入出力メモリ等も有する。
That is, the PC body 21 has a CPU 25 having a DMA transfer function and an internal memory 22, as shown in FIG. The internal memory 22 has a backup memory 23 in which a routing table described later is set and stored, and the routing table is transferred from the backup memory 23 so that the routing table can be searched or referred to when the CPU 25 performs data communication. And an internal RAM 24. In addition, the PC main unit 21 includes a system program (not shown).
It also has a ROM, an input / output memory, and the like.

また、通信ユニットAは、PC2とのインタフェース機
能を有すると共に、PC2との間で送受信されるイベント
を格納するイベントエリアが設けられた共有RAM32を有
するPCインタフェース31と、ユニット内を制御するMPU3
3と、通信用のシステムプログラムを内蔵したシステム
プログラムROM(EP−ROM)34と、内部RAM35と、通信バ
ッファとしてのDPRAM36と、通信コントローラ37と、通
信インタフェース38を有する。
Further, the communication unit A has an interface function with the PC 2, and has a PC interface 31 having a shared RAM 32 provided with an event area for storing events transmitted and received with the PC 2, and an MPU 3 for controlling the inside of the unit.
3, a system program ROM (EP-ROM) 34 having a built-in communication system program, an internal RAM 35, a DPRAM 36 as a communication buffer, a communication controller 37, and a communication interface 38.

そして、本実施例の通信ユニットAの場合、内部RAM3
5にはPC本体21からのルーチングテーブルを保持するエ
リアが設けられている。
In the case of the communication unit A of the present embodiment, the internal RAM 3
5 is provided with an area for holding a routing table from the PC main body 21.

また、システムプログラムROM34には、MPU33がPC本体
21の内部メモリ22からルーチングテーブルを読み出し、
それを内部RAM35に格納すると共に、通信制御手段とし
てその内部RAM35に格納されたルーチングテーブルを検
索処理し、そのルーチングテーブルに基づいてネットワ
ーク間の通信制御を行うようにプログラミングされたシ
ステムプログラムが内蔵されている。
In the system program ROM 34, the MPU 33 is
Read the routing table from the internal memory 22 of 21,
A system program programmed to store it in the internal RAM 35, search the routing table stored in the internal RAM 35 as communication control means, and perform communication control between networks based on the routing table is built-in. ing.

尚、図中、39は周辺インタフェース(PPI)、40はPC
本体21における通信ユニットAのアドレスを示す号機番
号等のユニット識別情報を設定するスイッチ、41はその
号機NOやこの通信ユニットAの動作状態等を表示する表
示部41である。
In the figure, 39 is a peripheral interface (PPI), 40 is a PC
A switch 41 for setting unit identification information such as a machine number indicating an address of the communication unit A in the main body 21, and a display unit 41 for displaying the machine number, the operation state of the communication unit A, and the like.

また、本実施例においてルーチングテーブルは、各PC
がネットワーク中継機能を使用する際に、その中継経路
(通信経路)を決定するためのテーブルのことをいい、
ユーザによって予めプログラミングツール(図示せず)
あるいはホストコンピュータ(図示せず)により設定さ
れ、前述のように各PC本体のバックアップ用メモリに最
初に格納され、その後バックアップ用メモリから読み出
されて、PC本体の内部RAM、通信ユニットの内部RAMに転
送される。
Further, in this embodiment, the routing table corresponds to each PC.
Refers to a table for determining the relay route (communication route) when using the network relay function,
Programming tool (not shown) in advance by the user
Alternatively, it is set by the host computer (not shown), and is first stored in the backup memory of each PC main body as described above, and thereafter read out from the backup memory, and stored in the internal RAM of the PC main body and the internal RAM of the communication unit. Is forwarded to

すなわち、本実施例ではプログラミングツール等から
バックアップ用メモリへのルーチングテーブルの設定お
よび変更は、設定コマンドにより行われ、その時パラメ
ータ書き込み(ルーチング指定)と、ルーチングテーブ
ル書き込みとが1アクションで行われる。ただし、パラ
メータエリアへの書き込み前には、時ネットワークテー
ブルの設定の有無および設定個数のチェック、つまり設
定個数が0であるとかMAX個数のチェックを行い、エラ
ー時にはエラーレスポンスを返信し、バックアップ用メ
モリへの書き込みを行わないようにする。
That is, in this embodiment, the setting and the change of the routing table from the programming tool or the like to the backup memory are performed by the setting command. At that time, the parameter writing (routing designation) and the routing table writing are performed in one action. However, before writing to the parameter area, the presence / absence of the time network table and the set number are checked, that is, the set number is checked to be 0 or the MAX number. If an error occurs, an error response is returned and the backup memory is returned. Do not write to.

次に、例えば第2図に示すようなPC本体21では、CPU2
5はルーチングテーブルを二重構造とするため、転送コ
マンドによりバックアップ用メモリ23のルーチングテー
ブルを内部RAM24へ転送する。その際、サム値チェック
や、設定の有無および設定個数のチェックが行われる。
Next, for example, in the PC body 21 as shown in FIG.
5 transfers the routing table in the backup memory 23 to the internal RAM 24 by a transfer command so that the routing table has a double structure. At this time, a sum value check, a check of the presence / absence of the setting, and a check of the set number are performed.

そして、PC本体21側でのルーチングテーブルの転送・
書き込み終了後、通信ユニットA,Bが再スタート(RESTA
RT)されて、PC本体21側の内部RAM24からルーチングテ
ーブルを読み込む。
Then, transfer of the routing table on the PC main body 21 side
After writing is completed, communication units A and B restart (RESTA
RT), and reads the routing table from the internal RAM 24 on the PC main body 21 side.

つまり、通信ユニットA,B側のMPU33がPC本体21側の内
部RAM24から、パラメータREADにてルーチングテーブル
の値をリードし、サム値異常、テーブル不正(登録テー
ブルなし)のエラーを反映して、自通信ユニットA,B内
の内部RAM35に書き込み、PC本体21側と通信ユニットA,B
側とで双方のルーチングテーブルの同時性を図ってお
く。
In other words, the MPUs 33 on the communication units A and B read the value of the routing table from the internal RAM 24 on the PC main body 21 by the parameter READ, and reflect errors such as an abnormal sum value and an invalid table (no registration table). Write to the internal RAM 35 in the communication units A and B, and connect the PC unit 21 and the communication units A and B
Simultaneity of both routing tables is to be achieved between the two.

このように、本実施例ではルーチングテーブルをその
設定時に即座に有効とせず、設定時および転送時にチェ
ックを行い有効であった後に設定および転送するように
したので、PC本体側で動作しているルーチングテーブル
と、通信ユニット側で動作しているルーチングテーブル
との同時性が確保されている。
As described above, in the present embodiment, the routing table is not immediately enabled at the time of setting, but is checked at the time of setting and transfer, and is set and transferred after being enabled. Simultaneity between the routing table and the routing table operating on the communication unit side is ensured.

さらに、本実施例ではルーチングテーブルは第3図に
示すような中継テーブル51と、第6図に示すような自ネ
ットワークテーブル61とから構成されている。
Further, in the present embodiment, the routing table comprises a relay table 51 as shown in FIG. 3 and a local network table 61 as shown in FIG.

中継テーブル51は自PCの通信ユニットの送信経路を決
定するためのテーブルで、送信先となる最終ネットワー
クが自ネットワーク以外となるとき設定され、第3図に
示すように設定ネットワーク数nと、その設定ネットワ
ーク毎に、最終ネットワークアドレスと、中継ネットワ
ークのネットワークアドレスと、中継ネットワークのノ
ードアドレスとが設定され、例えば第4図に示すような
ネットワーク間では、第5図に示すような構成になる。
The relay table 51 is a table for determining the transmission route of the communication unit of the own PC, and is set when the final network to be the destination is other than the own network. As shown in FIG. The final network address, the network address of the relay network, and the node address of the relay network are set for each set network. For example, a network as shown in FIG. 4 has a configuration as shown in FIG.

また、自ネットワークテーブル61は、中継用PCに接続
されたネットワークのネットワークアドレス(以下、自
ネットワークアドレスという)と、そのネットワークに
直接接続された通信ユニットの号機NO(ユニット識別情
報)とが設定されるテーブルで、第6図に示すように設
定ネットワーク数と、ゲートウエイ経由回数と共に設定
され、第7図に示すように接続されたネットワーク間の
中継用PCでは第8図に示すような構成になる。
In the own network table 61, a network address of a network connected to the relay PC (hereinafter referred to as own network address) and a machine number NO (unit identification information) of a communication unit directly connected to the network are set. The table is set together with the set network number and the number of times of passing through the gateway as shown in FIG. 6, and the relay PC between the connected networks as shown in FIG. 7 has a configuration as shown in FIG. .

次に、このように構成されたPCの通信ユニットの動作
を、主に第1図および第2図を参照して説明する。
Next, the operation of the thus configured PC communication unit will be described mainly with reference to FIG. 1 and FIG.

ただし、第1図に示すように2つのネットワークX,Y
が中継用PC2の通信ユニットA,Bを介して接続されてお
り、通信ユニットA,Bのイベント転送機能を利用してネ
ットワーク中継を行い、ネットワークXのPC1からネッ
トワークYのPC3へ通信を行うものとする。
However, as shown in FIG. 1, two networks X, Y
Are connected via the communication units A and B of the relay PC 2, perform network relay using the event transfer function of the communication units A and B, and communicate from the PC 1 of the network X to the PC 3 of the network Y And

まず、最初にユーザが第1図に示すようにPC1により
送信元である自PC1の通信ユニット(図示せず)および
最終ターゲットであるPC3の通信ユニット(図示せず)
のネットワークアドレスとノードアドレスとをコマンド
で指定して、そのコマンドをPC1の通信ユニットを介し
て送信する。
First, as shown in FIG. 1, the user first communicates with the PC1 by using the communication unit of the own PC1 (not shown) and the communication unit of the final target PC3 (not shown) by the PC1.
The network address and the node address are designated by a command, and the command is transmitted via the communication unit of the PC1.

すると、PC1の通信ユニットのMPUが、そのコマンドか
ら通信ユニットの内部RAMに格納されたルーチングテー
ブルを検索処理して通信ユニットAへの転送と判断し、
通信ユニットAへそのコマンドを転送する。
Then, the MPU of the communication unit of the PC1 searches the routing table stored in the internal RAM of the communication unit from the command, determines that the command is transferred to the communication unit A,
The command is transferred to the communication unit A.

その時、そのコマンドにより第2図に示す通信ユニッ
トAにおいて、共有RAM32のイベントエリア内の第9図
に示すような通信サービス(FINS)コマンドエリアに、
ゲートウエイ経由回数(GCNT)や、最終ターゲットつま
りあて先ノードであるPC3のあて先通信ユニットのネッ
トワークアドレス(DNA)およびノードアドレス(DA1)
と、その号機NO(DA2)とが設定されると共に、送信元
ノードであるPC1の通信ユニットのネットワークアドレ
ス(SNA)およびノードアドレス(SA1)と、その送信元
号機NO(SA2)や、要求元のプロセスを識別するための
識別子であるサービスID(SID)、データ部(DATA)等
の通信情報が入る。
At that time, the command causes the communication unit A shown in FIG. 2 to enter a communication service (FINS) command area as shown in FIG. 9 in the event area of the shared RAM 32.
Number of gateway passes (GCNT), network address (DNA) and node address (DA1) of the final target, ie, the destination communication unit of PC3 which is the destination node
And its machine NO (DA2) are set, and the network address (SNA) and node address (SA1) of the communication unit of PC1, which is the sender node, its sender machine NO (SA2), and the requester Communication information such as a service ID (SID), a data part (DATA), etc., which are identifiers for identifying the process.

そして、通信ユニットAのMPU33は、第2図に示すよ
うに自通信ユニットAの内部RAM35に格納されたルーチ
ングテーブルを検索して通信ユニットBへの転送と判断
し、あて先号機を通信ユニットB、発信元号機を通信ユ
ニットAとしてそれぞれの号機NOを、PCインタフェース
31の共有RAM32に設けられた第9図に示すようなイベン
トエリアの内、通信サービスコマンドエリア以外のc,d
のようなイベントエリアにセットする。
Then, as shown in FIG. 2, the MPU 33 of the communication unit A searches the routing table stored in the internal RAM 35 of the own communication unit A, determines that the transfer is to the communication unit B, and sets the destination unit to the communication unit B, The source unit is the communication unit A, and each unit NO is connected to the PC interface.
Among the event areas as shown in FIG. 9 provided in the shared RAM 32 of FIG.
Set in an event area like.

次に、PC本体21のCPU25は、通信ユニットAの共有RAM
32のイベントエリアに書き込まれたあて先号機NOから通
信ユニットBへの転送と判断し、第9図に示すように通
信ユニットAのイベントを、通信ユニットBのPCインタ
フェース内の共有RAMに設けられたイベントエリアにDMA
転送する。
Next, the CPU 25 of the PC body 21 is connected to the shared RAM of the communication unit A.
It was determined that the transfer was made from the destination machine No. written in the event area of No. 32 to the communication unit B, and the event of the communication unit A was provided in the shared RAM in the PC interface of the communication unit B as shown in FIG. DMA in event area
Forward.

そして、通信ユニットBのMPUも自通信ユニットBの
内部RAMに格納されたルーチングテーブルを検索して、P
C3の通信ユニットへの転送と判断し、上記イベントを通
信ユニットB内の共有RAMに設けられたイベントエリア
から通信インタフェースを介してPC3の通信ユニットへ
転送する。
Then, the MPU of the communication unit B also searches the routing table stored in the internal RAM of the communication unit B, and
It is determined that the transfer is to the communication unit of C3, and the above event is transferred from the event area provided in the shared RAM in the communication unit B to the communication unit of PC3 via the communication interface.

そして最後に、PC3の通信ユニットが発信元号機NOお
よびあて先号機NOと共に、第9図に示すような通信サー
ビスコマンドが書かれたイベントを受取ることができ
る。
Finally, the communication unit of the PC 3 can receive the event in which the communication service command as shown in FIG. 9 is written, together with the source machine NO and the destination machine NO.

したがって、本実施例では、ネットワーク間通信時に
通信ユニット側がルーチングテーブルの検索を行い、PC
本体側はルーチングテーブルを検索せず、通信ユニット
間のコマンドのDMA転送を行うだけとなる。
Therefore, in this embodiment, the communication unit searches the routing table during communication between networks,
The main unit does not search the routing table but only performs DMA transfer of commands between communication units.

このため、ルーチングテーブルを検索処理する分だけ
PC本体の負荷が通信ユニット側に分散されるので、中継
用PCが多数のネットワーク中継を行っていてネットワー
ク中継が集中した時でも、PC本体のオーバヘッドが減少
し、通信システム全体のスループットが向上する。
For this reason, only the routing table is searched.
Since the load on the PC itself is distributed to the communication unit side, even when the relay PCs perform a large number of network relays and network relays are concentrated, the overhead of the PC itself is reduced and the overall throughput of the communication system is improved. .

また、本実施例では通信ユニットのMPUがルーチング
テーブルの検索処理を行っているので、通信ユニットが
受信したコマンドがルーチングエラーの場合、通信ユニ
ット内でエラー応答でき、その通信ユニットとPC本体間
のコマンド転送の必要がなくなり、さらにPC本体の負荷
を軽減することができる。
Further, in this embodiment, since the MPU of the communication unit performs the search processing of the routing table, if the command received by the communication unit is a routing error, an error response can be made within the communication unit, and the communication between the communication unit and the PC main body can be performed. This eliminates the need for command transfer, and further reduces the load on the PC itself.

さらに、PC本体側と通信ユニット側とでルーチングテ
ーブルをそれぞれ有することになるが、PC本体内ではバ
ックアップ用メモリへの設定時、およびバックアップ用
メモリから内部RAMへ転送時に前述のチェックを行い、
またPC本体側から通信ユニット側への転送の際にも同様
なチェックを行っているので、ルーチングテーブルの同
時性を保証できる。
In addition, the PC main unit and the communication unit will each have a routing table.In the PC main unit, the above-mentioned check is performed when setting to the backup memory and when transferring from the backup memory to the internal RAM.
Also, the same check is performed when transferring data from the PC to the communication unit, so that the synchronization of the routing tables can be guaranteed.

尚、本実施例では2台の通信ユニットで説明したが、
本発明はPC本体に3台以上の通信ユニットが接続され、
3つ以上のネットワークを中継する場合にも当然適用さ
れ、この場合にもPCの各通信ユニット側でルーチングテ
ーブルを検索しそれに基づいてネットワークとの間の通
信制御を行い、PC本体は各通信ユニット間のコマンドの
DMA転送を行うだけとなるので、PC本体におけるオーバ
ヘッドが低減し、システム全体のスループットが向上す
る。
In this embodiment, two communication units have been described.
In the present invention, three or more communication units are connected to the PC body,
Of course, the present invention is also applied to a case where three or more networks are relayed. In this case, the communication unit of the PC searches the routing table and controls communication with the network based on the routing table. Between commands
Since only the DMA transfer is performed, the overhead in the PC itself is reduced, and the throughput of the entire system is improved.

〈発明の効果〉 以上説明したように、本発明では、ネットワーク間で
の中継通信に際して、ネットワーク間にまたがる中継用
PCの通信ユニットの間で通信情報を転送し、転送する側
の通信ユニットと転送を受けた側の通信ユニットと、そ
れぞれでルーチングテーブルを検索して通信ルートを選
定するようにしたから、PC本体の諸機能の実行に支障を
きたすことなく、異なるネットワークにつながれたPC間
のネットワーク間相互通信を効率よく行うことができ、
また、PC本体のオーバヘッドが減少し、通信システム全
体のスループットが向上する。
<Effects of the Invention> As described above, according to the present invention, when performing relay communication between networks,
Communication information is transferred between the communication units of the PC, and the communication unit on the transfer side and the communication unit on the transfer side search the routing table for each and select the communication route. Without interfering with the execution of various functions, it is possible to efficiently perform inter-network communication between PCs connected to different networks,
In addition, the overhead of the PC body is reduced, and the throughput of the entire communication system is improved.

また、通信ユニットが受信したコマンドがエラーの場
合、通信ユニットの通信制御手段でエラー応答するよう
にすれば、その通信ユニットとPC本体間のコマンド転送
の必要がなくなり、さらにPC本体の負荷を軽減すること
ができる。
If the command received by the communication unit is an error, the communication control means of the communication unit responds with an error, eliminating the need for command transfer between the communication unit and the PC, further reducing the load on the PC can do.

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

第1図は本発明に係るPCの通信ユニットによりネットワ
ーク間を接続した状態を示すブロック図、第2図は中継
PCのPC本体と通信ユニットとの構成および接続状態を示
すブロック図、第3図は中継テーブルの構成を示すテー
ブルメモリ、第4図はネットワーク間の結合の一例を示
すブロック図、第5図は第4図における各PCの中継テー
ブルを示すテーブルメモリ、第6図は自ネットワークテ
ーブルの構成を示すテーブルメモリ、第7図はネットワ
ークを結合する中継PCの構成の一例を示すブロック図、
第8図は第7図における中継PCの自ネットワークテーブ
ルの構成を示すテーブルメモリ、第9図はイベントエリ
アの構成を示すテーブルメモリである。 1,2,3,4……PC(プログラマブルコントローラ) 33……MPU(通信制御手段) 35……内部RAM(記憶手段) A,B……通信ユニット X,Y,Z……ネットワーク
FIG. 1 is a block diagram showing a state in which networks are connected by a communication unit of a PC according to the present invention, and FIG.
FIG. 3 is a block diagram showing the configuration and connection state between the PC main unit and the communication unit of the PC, FIG. 3 is a table memory showing the configuration of the relay table, FIG. 4 is a block diagram showing an example of connection between networks, and FIG. FIG. 4 is a table memory showing a relay table of each PC in FIG. 4, FIG. 6 is a table memory showing a configuration of its own network table, FIG. 7 is a block diagram showing an example of a configuration of a relay PC connecting a network,
FIG. 8 is a table memory showing the configuration of the own network table of the relay PC in FIG. 7, and FIG. 9 is a table memory showing the configuration of the event area. 1,2,3,4 ... PC (programmable controller) 33 ... MPU (communication control means) 35 ... Internal RAM (storage means) A, B ... communication unit X, Y, Z ... network

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04L 12/28 H04L 12/46 H04L 12/56 H04L 12/66 G05B 19/05 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04L 12/28 H04L 12/46 H04L 12/56 H04L 12/66 G05B 19/05

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】プログラマブルコントローラ本体に複数の
通信ユニットが装着されたプログラマブルコントローラ
において、上記複数の通信ユニットのそれぞれに異なる
ネットワークを接続して、上記ネットワーク間で中継通
信を行うネットワーク間相互通信方法であって、 上記プログラマブルコントローラ内にルーチングテーブ
ルを設け、 そのルーチングテーブルに上記通信ユニットそれぞれの
ユニット識別情報と、それぞれの通信ユニットに接続さ
れたネットワークのネットワークアドレスとを設定し、 ネットワーク間の中継通信に際して、上記複数の通信ユ
ニットのうちの第1のネットワークに接続された第1の
通信ユニットが、送信先の通信ユニットのネットワーク
アドレスおよびノードアドレスを含む通信情報を受ける
と、上記ルーチングテーブルを検索して、上記送信先の
ネットワークアドレスに相当する第2のネットワークに
接続された第2の通信ユニットに上記通信情報を転送
し、 転送を受けた第2の通信ユニットでは、上記ルーチング
テーブルを検索して、上記第2のネットワークに接続さ
れた上記送信先のノードアドレスの通信ユニットへ上記
通信情報を送信することを特徴とするネットワーク間相
互通信方法。
In a programmable controller in which a plurality of communication units are mounted on a main body of a programmable controller, a different network is connected to each of the plurality of communication units, and an inter-network mutual communication method for performing relay communication between the networks. A routing table is provided in the programmable controller, and unit identification information of each of the communication units and a network address of a network connected to each of the communication units are set in the routing table. Receiving a communication information including a network address and a node address of a communication unit of a transmission destination when a first communication unit connected to a first network among the plurality of communication units receives the communication information. The communication table is searched, and the communication information is transferred to a second communication unit connected to a second network corresponding to the destination network address. A method for inter-network communication, comprising: searching a table; and transmitting the communication information to a communication unit of the destination node address connected to the second network.
【請求項2】プログラマブルコントローラ本体に通信ユ
ニットが装着されたプログラマブルコントローラ(以
下、PCという)の上記通信ユニットが任意のネットワー
クに接続され、同様の別々のPCの通信ユニットが別のネ
ットワークに接続され、更に、プログラマブルコントロ
ーラ本体に複数の通信ユニットが装着された中継用PCの
上記複数の通信ユニットが、それぞれ上記任意および別
のネットワークに接続されていて、上記中継用PCを介し
てネットワーク間相互通信を行う方法であって、 上記各PCおよび中継用PCにそれぞれルーチングテーブル
を持たせ、 そのルーチングテーブルには、ネットワーク間通信に必
要な最終ネットワークアドレスおよび中継ネットワーク
アドレスおよび中継ノードアドレス、中継用PCに必要な
各通信ユニットの自ネットワークアドレスおよび自ユニ
ット識別情報、を適宜に設定し、 ネットワーク間をまたがる通信を行うPCにて、その通信
ユニットがそのPCのルーチングテーブルを検索すること
で通信経路を判断して、このPCの通信ユニットからその
通信ユニットに接続された同一ネットワーク内の中継用
PCに向けて通信情報を送信するとともに、 送信を受けた中継用PCにてその中継用PCのルーチングテ
ーブルを検索して、当該PCに装着された複数の通信ユニ
ット間で転送を行うことで、上記ネットワークとは別の
ネットワークのPCの通信ユニットへ通信情報を送信する
ことを特徴とするネットワーク間相互通信方法。
2. The communication unit of a programmable controller (hereinafter, referred to as a PC) having a communication unit mounted on a main body of the programmable controller is connected to an arbitrary network, and the communication unit of a similar separate PC is connected to another network. Further, the plurality of communication units of the relay PC in which a plurality of communication units are mounted on the main body of the programmable controller are respectively connected to the arbitrary and different networks, and the inter-network mutual communication is performed via the relay PC. A routing table is provided for each of the PCs and the relay PCs, and the routing tables include a final network address, a relay network address, a relay node address, and a relay PC required for inter-network communication. Each communication unit required The network address and own unit identification information are appropriately set, and the communication unit determines the communication path by searching the routing table of the PC by the communication unit, which performs communication over the network. For relaying from the unit to the communication unit within the same network connected to the communication unit
By transmitting the communication information to the PC, the received relay PC searches the routing table of the relay PC, and performs the transfer between the plurality of communication units mounted on the PC. An inter-network communication method, comprising transmitting communication information to a communication unit of a PC on a network different from the network.
JP02292651A 1990-10-30 1990-10-30 Network communication method Expired - Lifetime JP3129730B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02292651A JP3129730B2 (en) 1990-10-30 1990-10-30 Network communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02292651A JP3129730B2 (en) 1990-10-30 1990-10-30 Network communication method

Publications (2)

Publication Number Publication Date
JPH04165505A JPH04165505A (en) 1992-06-11
JP3129730B2 true JP3129730B2 (en) 2001-01-31

Family

ID=17784542

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02292651A Expired - Lifetime JP3129730B2 (en) 1990-10-30 1990-10-30 Network communication method

Country Status (1)

Country Link
JP (1) JP3129730B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6004508A (en) * 1997-08-01 1999-12-21 The Coca-Cola Company Method and apparatus for super critical treatment of liquids

Also Published As

Publication number Publication date
JPH04165505A (en) 1992-06-11

Similar Documents

Publication Publication Date Title
US5202980A (en) Information processing system capable of readily taking over processing of a faulty processor
JPS6132630A (en) Message transmitting method
JP3129730B2 (en) Network communication method
JP2847945B2 (en) Inter-network communication control method for terminals
JP3024345B2 (en) Data link method
JP3137197B2 (en) Multiprocessor system
JP3074726B2 (en) Communication method between networks in programmable controller
JPH01129548A (en) Communication controller
JP3358045B2 (en) Programmable controller
JP2705955B2 (en) Parallel information processing device
JP2000132210A (en) Controller and cooperation controlling method
JPS63128837A (en) Line controller
JPH03265904A (en) Process control system
JP2714249B2 (en) Communication control method
JP2640487B2 (en) Programmable controller system
JPS5943022B2 (en) data transmission equipment
JPH07210214A (en) Control system and processing method for data
JP2775630B2 (en) Link system for programmable controller
JPS6028459B2 (en) Data transmission method
JPH07219917A (en) Network system
JPH02202138A (en) Network system route selecting system
JPH0440534A (en) Stand-by device switching system
JPS6255704A (en) Decentralized control system
JPH08293919A (en) Overload test device for centralized maintenance managing system
JPS61269758A (en) Completion information informing system in macro relaying processing

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071117

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20081117

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091117

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101117

Year of fee payment: 10

EXPY Cancellation because of completion of term