JPH04172502A - Internetwork communication method in programmable controller - Google Patents

Internetwork communication method in programmable controller

Info

Publication number
JPH04172502A
JPH04172502A JP2301621A JP30162190A JPH04172502A JP H04172502 A JPH04172502 A JP H04172502A JP 2301621 A JP2301621 A JP 2301621A JP 30162190 A JP30162190 A JP 30162190A JP H04172502 A JPH04172502 A JP H04172502A
Authority
JP
Japan
Prior art keywords
relay
error
node
network
communication 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.)
Granted
Application number
JP2301621A
Other languages
Japanese (ja)
Other versions
JP3074726B2 (en
Inventor
Shinji Murayama
信次 村山
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
Omron Tateisi Electronics Co
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, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP30162190A priority Critical patent/JP3074726B2/en
Publication of JPH04172502A publication Critical patent/JPH04172502A/en
Application granted granted Critical
Publication of JP3074726B2 publication Critical patent/JP3074726B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To make it possible to quickly deal with a relay error when it occurs by returning an address indicating a place where the relay error occurs, a cause of the relay error, and a flag representing the relay error to a sender's node. CONSTITUTION:When a CPU 22a of communication unit 22 receives a command, in order to specify a sender's node the CPU 22a retrieves a routine table stored in work RAM 22e. Further, when a relay destination is already set, data is sent to the set relay destination, and if there is a transmission error, the relay destination sends back an error response. That is, CPU 22a of this relay PC (programmable controller) that is the relay error generating node sets the network address of a network to which the communication unit 22 is connected, the node address of the unit 22, a relay error flag indicating that this flag is the relay error, and a terminating code in which a code number of the cause of relay error is written, and sends a constituted frame back to the sender's node.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、複数のノードが接続されたネットワーク同士
間のデータ通信を中継するプログラマブルコントローラ
(以ド、PCという)におけるネットワーク間通信方式
に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an inter-network communication system in a programmable controller (hereinafter referred to as a PC) that relays data communication between networks to which a plurality of nodes are connected.

(従来の技術) 従来、PCにおけるネットワーク間通信す式として、P
C本体あるいはノード(通信ユニット)のCPUが内部
メモリに記憶したおいたルーチングチ−プルを検索処理
し、そのルーチングチ−プルに基づいて通信を行う方法
がある。
(Prior art) Conventionally, P
There is a method in which the CPU of the main body of C or a node (communication unit) searches for a routing chip stored in an internal memory and performs communication based on the routing chip.

このネットワーク通信方式では、ネットワーク同士間を
中継するPCのノード(通信ユニット)で中継エラーか
発生した場合、その中継エラー発生ノードで転送中のフ
レーム(データ)を廃4ミしていた。
In this network communication system, when a relay error occurs in a PC node (communication unit) that relays between networks, the frame (data) being transferred is discarded at the node where the relay error occurs.

尚、ルーチングテーフ゛ルとは自PCのノードから、通
信先である他ネットワークの最終ターゲットPCのノー
ドまでの通信経路を示すアドレス、例えはその間に通る
ネットワークのアドレス(以下、ネットワークアドレス
という)や、ネットワーク同士間を中継するPCのノー
ドのアドレス(以下、ノードアドレスという)等が設定
されたものである。
Note that a routing table is an address that indicates the communication route from the node of your own PC to the final target PC node of another network, such as the address of the network that passes in between (hereinafter referred to as network address), The address of a PC node (hereinafter referred to as a node address) that relays between PCs is set.

(本発明が解決しようとする課題) しかし、上記のような従来のネットワーク間通信方式に
あっては、中継エラーが発生した場合にその中継エラー
発生ノードで転送中のフレームを廃棄していたため、送
信元ノードでは中継エラー発生箇所と、中継エラー発生
原因とを即座に検出することかできず、中継エラー発生
に対して迅速に対処することかできないという問題があ
った。
(Problem to be Solved by the Present Invention) However, in the conventional inter-network communication system as described above, when a relay error occurs, the frame being transferred at the node where the relay error occurred is discarded. There is a problem in that the source node cannot immediately detect the location where the relay error has occurred and the cause of the relay error, and cannot promptly respond to the occurrence of the relay error.

そこで、本発明は上記問題に鑑みてなされたもので、中
継エラー発生時に、迅速に中継エラー発生箇所と、中継
エラー発生原因とを検出することができるPCのネット
ワーク間通信方式を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and it is an object of the present invention to provide a PC network communication method that can quickly detect the location of a relay error and the cause of the relay error when a relay error occurs. purpose.

(課題を解決するための手段) 」−記課題を解決するため、本発明は、複数のノードが
接続されたネットワーク同士間のデータ通信を中継する
プログラマブルコントローラにおけるネットワーク間通
信方式において、中継エラー発生時に、中継エラー発生
箇所を示すアドレスと、中継エラー発生原因と、中継エ
ラーを示すフラグとをレスポンスとして送信元ノードへ
返信するエラーレスポンス返信手段を設けたことを特徴
とする。
(Means for Solving the Problems) In order to solve the problems described above, the present invention provides an inter-network communication system in a programmable controller that relays data communication between networks to which a plurality of nodes are connected, in which relay errors occur. In some cases, the present invention is characterized in that an error response replying means is provided for returning an address indicating the location where the relay error has occurred, the cause of the relay error occurrence, and a flag indicating the relay error as a response to the transmission source node.

く作用) 上記構成では、中継エラー発生時に、エラーレスポンス
返信手段が中継エラー発生箇所を示すアドレスと、中継
エラー発生原因と、中継エラーを示すフラグとをレスポ
ンスとして送信元ノードへ返信する。
In the above configuration, when a relay error occurs, the error response reply means returns an address indicating the location where the relay error has occurred, the cause of the relay error occurrence, and a flag indicating the relay error to the source node as a response.

このため、送信元ノードでは中継エラー発生箇所とエラ
ー発生原因とを即座に検出することか可能となる。
Therefore, the source node can immediately detect the location where a relay error occurs and the cause of the error.

(実施例) 以下、本発明に係るPCにおけるネットワーク間通信方
式の一実施例を図面に基づいて説明する。
(Embodiment) Hereinafter, an embodiment of the inter-network communication method in a PC according to the present invention will be described based on the drawings.

第1図はネットワーク同士間を中継するPC(以下、中
継PCという)におけるネットワーク間通信方式を説明
するブロック図で、この中4102はPC本体21にノ
ードとしての2台の通信ユニット22.23か接続され
ていると共に、通信ユニット22.23にそれぞれネッ
トワークX。
FIG. 1 is a block diagram illustrating an inter-network communication method in a PC that relays between networks (hereinafter referred to as a relay PC). Network X is connected to communication units 22 and 23, respectively.

Yか接続されてネットワーク同士間を中継している。そ
して、中継PC2は通信ユニットの台数を増減させるこ
とにより、中継するネットワークの数を増減させること
が可能であるが、本実施例では2つのネットワーク間を
中継するものとする。
Y is connected and relays between networks. The relay PC 2 can increase or decrease the number of networks to be relayed by increasing or decreasing the number of communication units, but in this embodiment, it is assumed that the relay PC 2 relays between two networks.

また、同図においてPCI、3もそれぞれPC本体11
.31に通信ユニット12.32が接続されており、こ
の通信ユニット1.2. 32がネットワークX、 Y
と接続されている。
In addition, in the same figure, PCI and 3 are also respectively PC main body 11
.. A communication unit 12.32 is connected to the communication unit 1.2.31. 32 is network X, Y
is connected to.

そして、各PCI、2.3のPC本体と通信ユニットと
は第2図に示すように構成、接続されており、第2図に
PC2のPC本体21と通信ユニット22の符号を付し
て説明する。
The PC main body 21 and the communication unit of each PCI, 2.3, are configured and connected as shown in FIG. do.

まず、PC本体21はCPU21aと、システムROM
21bと、ワークメモリ21cと、ユーザプログラムメ
モリ21dと、人出カメモリ(I10メモリ)21eと
、クロック発生回路21fと、通信ユニット22と接続
されるインタフェース(1/F)21gとを有する。
First, the PC body 21 includes a CPU 21a and a system ROM.
21b, a work memory 21c, a user program memory 21d, an attendance memory (I10 memory) 21e, a clock generation circuit 21f, and an interface (1/F) 21g connected to the communication unit 22.

そして、上記システムROM21bには、CPU21a
が、ユーザによって予めブロクラミングツール等により
設定されたルーチングチ−プルを最初上記ワークメモリ
21cのROMの領域に格納してバックアップし、その
後−1−記ルーチンクテーブルを読み出しRAMの領域
に書き込むようにプログラミングされたシステムプログ
ラムか格納されている。
The system ROM 21b includes the CPU 21a.
However, the routine table set in advance by the user using a block programming tool or the like is first stored in the ROM area of the work memory 21c for backup, and then the routine routine table written in -1- is read out and written to the RAM area. The system program programmed into the system is stored.

また、通信ユニット22は、ユニット内を制御するCP
U22aと、システムROM22bと、バッファメモリ
22cと、通信コントローラ22dと、ワークRAM2
2eと、ネットワークXと接続されてデータ等の送受信
を行うドライバ/レシーバ22fと、PC本体21と接
続するインタフェース(1/F)22gとを有する。
The communication unit 22 also has a CP that controls the inside of the unit.
U22a, system ROM22b, buffer memory 22c, communication controller 22d, work RAM2
2e, a driver/receiver 22f that is connected to the network X to transmit and receive data, and an interface (1/F) 22g that is connected to the PC main body 21.

そして、本実施例では、この通信ユニット22のシステ
ムROM22bに、通信ユニット22のCPU22aが
PC本体21側のワークメモリ21Cからルーチングチ
−プルを読み出し、自通信ユニット22内のワークRA
M22eにルーチンクチ−プルを書き込む(格納する)
ようにブロクラミングされたシステムプログラムが内蔵
されている。
In this embodiment, the CPU 22a of the communication unit 22 reads out the routing cheese from the work memory 21C of the PC body 21 and stores the work RA in the own communication unit 22 in the system ROM 22b of the communication unit 22.
Write (storage) routine code to M22e
It has a built-in system program that is block-coded like this.

また、このシステムROM22bには、通信ユニット2
2のCPU22aが、データ通信中継時にワークRAM
22eに格納されたルーチングチ−プルを検索判定、つ
まり後述するようにルーチングチ−プルの有無判定や、
ネットワークアドレス、ノードアドレスおよび号機番号
(号機NO)の宛先判定等の多段階判定を行い、送信先
ノードが特定できる時にはその送信先ノードにデータを
送信する一方、最終的に中継エラー(ルーチングチ−プ
ルエラー)と判定した場合にはエラ一応答、すなわち後
述するフレームをエラーレスポンスとして送信元ノード
に返信するようにプログラミングされたシステムプログ
ラムも格納されている。
The system ROM 22b also contains the communication unit 2.
2's CPU 22a uses the work RAM during data communication relay.
22e and determines whether or not there is a routing chip, as will be described later.
Multi-step judgment is performed such as determining the destination of the network address, node address, and machine number (machine number), and when the destination node can be identified, data is sent to that destination node. A system program is also stored that is programmed to send an error response, that is, a frame to be described later, as an error response to the source node when it is determined that the error is a pull error.

ただし、本実施例では上記エラ一応答はコマンドの応答
要求時のみで、応答不要/レスポンスの場合は中継エラ
ーでもそのノードて廃棄するようにシステムプロクラム
がプログラミングされている。
However, in this embodiment, the system program is programmed so that the above-mentioned error response occurs only when a command response is requested, and in the case of no response/response, the node is discarded even if there is a relay error.

また、に記エラ一応答の際1手近倍するフレームは第3
図に示すように構成され、このフL−ムが中継エラー(
ルーチンクエラー)によるものであることを示すフラグ
(ルーチンクエラーフラグ)と、エラー原因(要因)を
示す終了コードと、その中継エラー発生ノードのネット
ワークアドレスと、ノードアドレスとかセットされてお
り、終了コードとして送信不可、PC本体異常、ルーチ
ンクチ常・不可(中継回数オーツ・−を念む)等のエラ
ー原因を示すコードかある。
In addition, the frame that is multiplied by one move when responding to the error mentioned above is the third frame.
It is configured as shown in the figure, and this frame is used for relay errors (
A flag indicating that the error is due to a routine error (routine error flag), an exit code indicating the cause of the error, the network address of the node where the relay error occurred, and the node address are set. There are codes that indicate the cause of the error, such as not being able to send, a problem with the PC itself, or a routine failure (remember that the number of relays is too many).

尚、本実施例においてルーチングチ−プルは自ネットワ
ークテーブルと、中継テーブルとから構成されている。
In this embodiment, the routing team consists of a local network table and a relay table.

自ネットワークテーブルは、第5図に示すように設定ネ
ットワーク数と、ゲートウェイ経由回数と共に、通信ユ
ニットに接続されたネットワークの自ネットワークアド
レスと、PC内における通信ユニットの接続位置である
アトし・スを示す;;、01番号(号機No)とが通信
ユニット毎に設定されたテーブルのことをいう。たたし
、通信回線に直接接続されずに、同じPct−に装着さ
れている通信ユニットを介して送受信できるユニットは
ネットワークアドレス、ノードアドレスを持たす、号機
番号(号機NO)のみを持ち、自ネットワークテーブル
には設定されない。
As shown in Fig. 5, the own network table contains the number of configured networks, the number of times the communication unit has passed through the gateway, the own network address of the network connected to the communication unit, and the address space that is the connection position of the communication unit within the PC. 01 number (machine number) is set for each communication unit. However, units that can transmit and receive via communication units installed in the same Pct- without being directly connected to a communication line have a network address, a node address, only a machine number (machine number), and are connected to their own network. Not set in the table.

また、中継テーブルは自PCの通信ユニットの送信経路
を決定するためのテーブルで自ネットワーク内の中継ノ
ードアドレスを求めるもので、送り先となる最終ネット
ワークが自ネットワーク以外となるとき設定され、第6
図に示すように設定ネットワーク数nと、その設定ネッ
トワーク毎に、最終ネットワークアドレスと、中継ネッ
トワークのネットワークアドレスと、中継ネットワーク
のノードアドレスとが設定される。
In addition, the relay table is a table for determining the transmission route of the communication unit of the own PC, and is used to find the relay node address within the own network, and is set when the final network to be the destination is other than the own network.
As shown in the figure, the number n of set networks, 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.

次に、上記のように構成された本実施例のPCにおける
ネットワーク間通信方式の動作を、第4図に示すルーチ
ングチ−プル判定処理のフローチャートに基づいて説明
する。
Next, the operation of the inter-network communication method in the PC of this embodiment configured as described above will be explained based on the flowchart of the routing multiple determination process shown in FIG.

まず、第1図に示すように接続されたネッI・ワ一りX
、 Y間において、ネットワークXのPCIの通信ユニ
ット12か、ネノI・ワークYのPC3の通信ユニット
32ヘコマンドを送信するため、中mP C2の通信ユ
ニット22にそのコマンドを送信する。
First, connect the network I/W as shown in Figure 1.
, Y, in order to send a command to the communication unit 12 of PCI of network X or the communication unit 32 of PC3 of Neno I/Work Y, the command is sent to the communication unit 22 of middle mPC2.

通信ユニット22のCPU22aは、そのコマンドを受
信すると、送信先ノード(宛先ノード)を特定するため
自通信ユニット22のワークRAM22eに格納された
ルーチンクチ−プルを検索し、第4図に示すようなルー
チングチ−プルの判定処理を開始する。
When the CPU 22a of the communication unit 22 receives the command, it searches the routine code stored in the work RAM 22e of its own communication unit 22 in order to specify the destination node (destination node), and executes a routine as shown in FIG. Start the process of determining the group.

すなわち、まず通信ユニット22のCPU22aはルー
チングチ−プルの有無から判定する(ST100)。
That is, first, the CPU 22a of the communication unit 22 determines the presence or absence of a routing chip (ST100).

次に、CPU22aはルーチングチ−プルが有れは(S
T100“Yes” ) 、ネットワークアドレスが自
ネットワークアドルス宛か否かを判定(ST200)す
る。
Next, the CPU 22a performs a routing check (S
T100 "Yes"), it is determined whether the network address is addressed to the own network address (ST200).

そして、自ネットワークアドレス宛である場合には、次
にノードアドレスが自ノード宛か否かを判定しく5T3
00) 、自ノード宛なら(ST300“Yes”)、
さらに”;機Noが自号機光であるか否かを判定しく5
T400) 、自号機光てあれば(ST400 ’Ye
s” ) 、自ノード内で処理して(ST500) 、
終了するようにする。
If it is addressed to the own network address, then it is determined whether the node address is addressed to the own node or not (5T3).
00), if it is addressed to the own node (ST300 “Yes”),
Furthermore, it is necessary to determine whether or not the machine number is the own machine light.
T400), if the own machine lights up (ST400 'Ye
s”), processed within its own node (ST500),
Let it end.

ところで、上記自ネットワークアドレス宛か否かの判定
のところで(ST200) 、自ネットワークアドレス
宛でない場合には(ST200 “NO”)、次にルー
チングチ−プルに該当中継先の設定の有無、つまりネッ
トワークアドレスとノードアドレスの設定が有るか否か
を判定しく5T210)、該当中継先の設定が有る場合
には(ST210 ”Yes” ) 、その中継先に送
信しく5T220)、さらに送信が正常に終了したか否
かを判定して(ST230) 、送信正常なら(ST2
30“Yes”)終了する一方、該当中継先が無い場合
(ST210 “NO”)、および送信異常なら(S 
T 230 “No″)、中9pエラーのためエラ一応
答する(ST600)。
By the way, when determining whether or not the destination is addressed to the own network address (ST200), if it is not addressed to the own network address (ST200 "NO"), next check whether or not the corresponding relay destination is set in the routing number, that is, the network Determine whether the address and node address are set (5T210), and if the corresponding relay destination is set (ST210 "Yes"), send to that relay destination (5T220), and the transmission ends normally. It is determined whether or not (ST230), and if the transmission is normal (ST2
30 “Yes”), but if there is no corresponding relay destination (ST210 “NO”) or if the transmission is abnormal (ST210 “NO”)
T230 "No"), an error response is made due to an error in the middle 9p (ST600).

つまり、中継エラー発生ノードであるこの中継PC2の
通信ユニット22内のCPU22aが、自通信ユニット
22が接続されているネットワークのネットワークアド
レスと、自通信ユニット22のノードアドレスと、この
フレームが中継エラーであることを示す中継異常フラグ
(ルーチンクエラーフラグ)と、エラー原因のコード番
号が書き込まれた終了コードとをセットし、第3図に示
すように構成されたフレームをエラーレスポンスとして
送信元ノードへ返信する。
In other words, the CPU 22a in the communication unit 22 of this relay PC 2, which is the node where the relay error occurred, inputs the network address of the network to which the own communication unit 22 is connected, the node address of the own communication unit 22, and the relay error occurred in this frame. A relay error flag (routine error flag) indicating that there is a relay error flag and an end code containing the code number of the cause of the error are set, and a frame configured as shown in Figure 3 is sent to the source node as an error response. Reply.

また、上記ノードアドレスの宛先判定のところで(ST
300) 、自ノード宛てない、つまり他ノード宛の場
合には(ST300“NO”)、上記の通りエラ一応答
する(ST600)。
Also, in the destination determination of the above node address (ST
300) If it is not addressed to the own node, that is, if it is addressed to another node (ST300 "NO"), an error response is sent as described above (ST600).

また、上記号機Noの判定のところで(ST400)、
自号機光でない、つまり他号機宛であれば(S T40
0 “No”)、中継先であるその他号機に送信しく5
T220) 、その後は」−2の通り5T220以下の
判定処理を行う。
Also, at the time of determining the upper symbol machine number (ST400),
If it is not the own machine light, that is, it is addressed to another machine (ST40
0 “No”), please send it to the other device that is the relay destination 5
T220), and then the determination process of 5T220 or less is performed as shown in "-2".

さらに、」二記ルーチングチ−プルの有無の判定のとこ
ろで(ST100)、ルーチンクチ−プルかない場合に
は(ST100 “No”)、宛先ネットワークアドレ
スが0か否かを判定しく5T110)、宛先ネットワー
クアドレスが0であれば(STIIO“YeS″)、次
にノードアドレスか自ノード宛か否かを判定しく5T3
00) 、その後は−1−記の通り5T300以下の判
定処理を行う一方、宛先ネットワークアドレスがOでな
けれは(STIIO“No”)、上記の通りエラ一応答
する(S T 600)。
Furthermore, in the determination of whether or not there is a routing number (ST100), if there is no routing number (ST100 "No"), it is determined whether the destination network address is 0 or not (5T110). If is 0 (STIIO “Yes”), then it is determined whether the node address is addressed to the own node or not. 5T3
00), and thereafter performs the determination process below 5T300 as described in -1-, while if the destination network address is not O (STIIO "No"), an error response is returned as described above (ST 600).

従って、本実施例では、中継エラーが発生した場合、中
継エラー発生ノードが中継エラー発生箇所を示すネット
ワークアドレスおよびノードアドレスと、中継エラー発
生原因を示す終了コードとがセットされたフレームをエ
ラーレスポンスとして送信元ノードへ返信するので、送
信元ノードは何処のネットワークのノードて中継エラー
が発生したかを認識することができると共に、終了コー
ドとその終了コードに予め対応させておいたテーブルと
を参照して、エラー発生原因を認識することができる。
Therefore, in this embodiment, when a relay error occurs, the node where the relay error occurred sends a frame containing the network address and node address indicating the location where the relay error occurred, and an end code indicating the cause of the relay error as an error response. Since the reply is sent to the source node, the source node can recognize which network node the relay error occurred in, and can also refer to the termination code and a table that has been associated with that termination code in advance. This allows you to recognize the cause of the error.

このため、中継エラー発生に対して迅速に対処すること
ができるPCにおけるネッI・ワーク間通信方式を得る
ことができる。
Therefore, it is possible to obtain a network I-to-network communication system in a PC that can quickly deal with the occurrence of a relay error.

尚、上記本実施例において中継エラーか発生せず、通信
ユニット22から通信ユニット23への送信が正常に終
了した場合、今度は通信ユニット23が自通信ユニット
23内のルーチングチ−プルを検索し、上記通信ユニッ
ト22と同打の判定処理を行い、ここで中継エラーでな
ければ送信先ノード(宛先ノード)であるPCBの通信
ユニット32に最終的にコマンドを送信できる一方、こ
こで中継エラーが発生した場合には、通信ユニット23
は通信ユニット22と同様に自通信ユニット23のネッ
トワークアドレス、ノードアドレス、および中継エラー
発生原因を示す終了コードとかセットされたフレームを
エラーレスポンスとして送信元ノードである通信ユニッ
ト12へ返信する。
In this embodiment, if no relay error occurs and the transmission from the communication unit 22 to the communication unit 23 is completed normally, the communication unit 23 searches for the routing chip within its own communication unit 23. , the communication unit 22 performs the same determination process, and if there is no relay error here, the command can finally be sent to the communication unit 32 of the PCB which is the destination node (destination node). If this occurs, the communication unit 23
Similar to the communication unit 22, the communication unit 23 returns a frame set with the network address of its own communication unit 23, a node address, and an end code indicating the cause of the relay error to the communication unit 12, which is the source node, as an error response.

また、通信ユニット(ノード)でコマンドの中継エラー
が発生するパターンとして、第7図(a)に示すように
他のPCのノードからコマンドを受信する時と、第8図
(a)に示すように自PCの他ノードからコマンドを受
信する時と、第9図(a)に示すように自ノードから自
PCの他ノードへ、あるいは他のPCのノードへのコマ
ンドを送信する時の3パターンか考えられる。
In addition, the patterns in which a command relay error occurs in a communication unit (node) are when receiving a command from a node of another PC as shown in Figure 7 (a), and when receiving a command from a node of another PC as shown in Figure 8 (a). There are three patterns when the own PC receives commands from other nodes, and when the own node sends commands to other nodes of the own PC or to nodes of other PCs as shown in FIG. 9(a). I can think of it.

このような場合には、それぞれ第7図(b)、第8図(
b)、第9図(b)に示すように判定を行い、最終的な
処理として第10図に示されている処理を行う。
In such cases, Fig. 7 (b) and Fig. 8 (
b), the determination is made as shown in FIG. 9(b), and the final processing is performed as shown in FIG. 10.

(発明の効果) 以上説明したように、本発明では中継エラー発生時に、
中継エラー発生箇所を示すアドレスと、中継エラー発生
原因と、中継エラーを示すフラグとをレスポンスとして
送信元ノードへ返信するようにしたため、中継エラー発
生箇所とエラー原因とを即座に送信元ノードで検出する
ことができ、中継エラー発生に対して迅速に対処するこ
とができる。
(Effects of the Invention) As explained above, in the present invention, when a relay error occurs,
The address indicating the location where the relay error occurred, the cause of the relay error occurrence, and a flag indicating the relay error are sent as a response to the source node, so the source node can immediately detect the location where the relay error occurred and the cause of the error. Therefore, it is possible to quickly deal with the occurrence of a relay error.

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

第1図はネットワーク同士間を中継するPCにおけるネ
ットワーク間通信り式を説明するブロック図、第2図は
PCにおけるPC本体と通信ユニットとの構成および接
続状fごを示すブロック図、第3図はエラーレスポンス
のフレーム構r戊を示す説明図、第4図は本実施例のホ
ントワーク間通信方式におけるルーチングチ−プル判定
処理の丁”、稈を示すフローチャート、第5図は自ネッ
トワークテーブルの構成を示すテーブルメモリ、第6図
は中!テーブルの構成を示すテーブルメモリ、第7図(
a)はノートが他のPCのノードからコマンドを受信す
る場合を示すブロック図、同図(b)は同図(a)の場
合におけるルーチンクチ−プル判定処理を示す説明図、
第8図(a)はノー ドが自PCの他ノードからコマン
ドを受信する場合を示すブロック図、同図(b)は同図
(a)の場合におけるルーチングチ−プル判定処理を示
す説明図、第9図(a)は自ノードから自PCの曲ノー
ドへ、あるいは他のPCのノードへのコマンドを送信す
る場合を示すブロック図、同図Cb)は同図(a)の場
合におけるルーチンクチ−プル判定処理を示す説明図、
第10図は第7図(b)、第8図(b)、第9図(b)
における最終的な処理を示す説明図である。 1、、 2. 3・・・PC(プログラマブルコンロー
ラ)1.2.22,23.32・・・通(言ユニット 
(ノード)X、 Y・・・ネットワーク 特許出願人    オムロン株式会社 代 理 人    弁理士 和[H戊則第5図 第6図 第10図
Fig. 1 is a block diagram illustrating the inter-network communication method in a PC that relays between networks, Fig. 2 is a block diagram showing the configuration and connection status of the PC main body and communication unit in the PC, and Fig. 3 4 is an explanatory diagram showing the frame structure of an error response, FIG. 4 is a flowchart showing the routine procedure for determining the number of routines in the communication system between real and work systems of this embodiment, and FIG. Table memory showing the structure of the table, Fig. 6 is inside! Table memory showing the structure of the table, Fig. 7 (
(a) is a block diagram showing a case where a notebook receives a command from a node of another PC; (b) is an explanatory diagram showing routine multiple determination processing in the case of (a);
FIG. 8(a) is a block diagram showing a case where a node receives a command from another node of its own PC, and FIG. 8(b) is an explanatory diagram showing the routing multiple determination process in the case of FIG. 8(a). , Figure 9(a) is a block diagram showing the case where a command is sent from the own node to the music node of the own PC or to a node of another PC, and Figure Cb) is a routine block diagram for the case of Figure 9(a). - An explanatory diagram showing pull determination processing,
Figure 10 is Figure 7(b), Figure 8(b), Figure 9(b)
FIG. 2 is an explanatory diagram showing the final processing in FIG. 1,, 2. 3... PC (programmable controller) 1.2.22, 23.32... communication unit
(Node) X, Y...Network patent applicant Omron Co., Ltd. Agent Patent attorney Kazu

Claims (1)

【特許請求の範囲】 1、複数のノードが接続されたネットワーク同士間のデ
ータ通信を中継するプログラマブルコントローラにおけ
るネットワーク間通信方式において、 中継エラー発生時に、中継エラー発生箇所を示すアドレ
スと、中継エラー発生原因と、中継エラーを示すフラグ
とをレスポンスとして送信元ノードへ返信するエラーレ
スポンス返信手段を設けたことを特徴とするプログラマ
ブルコントローラにおけるネットワーク間通信方式。
[Scope of Claims] 1. In an inter-network communication system in a programmable controller that relays data communication between networks to which a plurality of nodes are connected, when a relay error occurs, an address indicating the location where the relay error occurred and the occurrence of the relay error. An inter-network communication method in a programmable controller, characterized in that an error response return means is provided for returning a cause and a flag indicating a relay error to a source node as a response.
JP30162190A 1990-11-07 1990-11-07 Communication method between networks in programmable controller Expired - Lifetime JP3074726B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30162190A JP3074726B2 (en) 1990-11-07 1990-11-07 Communication method between networks in programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30162190A JP3074726B2 (en) 1990-11-07 1990-11-07 Communication method between networks in programmable controller

Publications (2)

Publication Number Publication Date
JPH04172502A true JPH04172502A (en) 1992-06-19
JP3074726B2 JP3074726B2 (en) 2000-08-07

Family

ID=17899153

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30162190A Expired - Lifetime JP3074726B2 (en) 1990-11-07 1990-11-07 Communication method between networks in programmable controller

Country Status (1)

Country Link
JP (1) JP3074726B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008084343A (en) * 2007-12-17 2008-04-10 Omron Corp Programmable controller and communication unit
JP2008181572A (en) * 2005-03-01 2008-08-07 Omron Corp Plc system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008181572A (en) * 2005-03-01 2008-08-07 Omron Corp Plc system
JP4697484B2 (en) * 2005-03-01 2011-06-08 オムロン株式会社 PLC system
JP2008084343A (en) * 2007-12-17 2008-04-10 Omron Corp Programmable controller and communication unit
JP4671056B2 (en) * 2007-12-17 2011-04-13 オムロン株式会社 Programmable controller and communication unit

Also Published As

Publication number Publication date
JP3074726B2 (en) 2000-08-07

Similar Documents

Publication Publication Date Title
US5963448A (en) Industrial controller having redundancy and using connected messaging and connection identifiers to enable rapid switchover without requiring new connections to be opened or closed at switchover
JP4376937B2 (en) Data transmission method and automation system used for the data transmission method
JP2006280198A (en) Power grid protection control system
EP3662382B1 (en) Communication apparatus, communication method, program, and communication system
JP6953226B2 (en) Communication devices, communication methods, programs, and communication systems
JP2008181572A (en) Plc system
JPH04172502A (en) Internetwork communication method in programmable controller
JPH07327050A (en) Routing data revision/confirmation method
JP2010146363A (en) System switching system of duplex programmable controller
KR100241557B1 (en) Data processing method of dual network
JP2706390B2 (en) Vector unit usage right switching control method using multiple scalar units
JP4564412B2 (en) Network device, network system, and toughness confirmation method
CN112685340A (en) Method and device for automatically starting EtherCat redundancy function
JP2005198150A (en) Control system by osp client
CN115665165A (en) Decentralized method of distributed system and decentralized distributed system
JPH11288307A (en) Fa system
JPH11345149A (en) Remote maintenance system
JP2003162466A (en) Programmable controller
JP2005339369A (en) Operation system
JPH07250121A (en) Communication channel selection control unit
JPH0981408A (en) Computer system
JPH07141278A (en) Management control unit of information processor
JP2005167871A (en) Communication controller
JP2005204239A (en) Communication switching method and data communication apparatus
JP2008217244A (en) Distributed monitor control system and distributed monitor control method

Legal Events

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

Free format text: PAYMENT UNTIL: 20080609

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090609

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20090609

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20100609

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20110609

Year of fee payment: 11