JP3305202B2 - Network system for redundant controller - Google Patents

Network system for redundant controller

Info

Publication number
JP3305202B2
JP3305202B2 JP12332796A JP12332796A JP3305202B2 JP 3305202 B2 JP3305202 B2 JP 3305202B2 JP 12332796 A JP12332796 A JP 12332796A JP 12332796 A JP12332796 A JP 12332796A JP 3305202 B2 JP3305202 B2 JP 3305202B2
Authority
JP
Japan
Prior art keywords
network
controller
station
unit
redundant
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
JP12332796A
Other languages
Japanese (ja)
Other versions
JPH09307574A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP12332796A priority Critical patent/JP3305202B2/en
Publication of JPH09307574A publication Critical patent/JPH09307574A/en
Application granted granted Critical
Publication of JP3305202B2 publication Critical patent/JP3305202B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】この発明は、コントローラシステ
ムの信頼性向上のために二重化されたコントローラ用の
ネットワークシステムに関し、特にプログラマブルコン
トローラシステム等において自局コントローラのデータ
を一定期間毎に送信することで他局コントローラに対し
てデータ交換を行う伝送方式であるサイクリック伝送を
行うコントローラ間ネットワークシステムに関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a network system for a controller which is duplicated for improving the reliability of a controller system, and more particularly, to transmitting data of a controller of a local station in a programmable controller system or the like at regular intervals. The present invention relates to an inter-controller network system that performs cyclic transmission, which is a transmission method for exchanging data with another station controller.

【0002】[0002]

【従来の技術】図15は従来のプログラマブルコントロ
ーラ間ネットワークの基本システム構成を示している。
プログラマブルコントローラ間ネットワークシステム
は、各プログラマブルコントローラ(以下、PCと略称
する)2毎にネットワークインタフェースユニット(以
下NETユニットと称す)1M、1Nを有し、NETユ
ニット1M、1N…はネットワークケーブル4によって
相互に接続されている。
2. Description of the Related Art FIG. 15 shows a basic system configuration of a conventional network between programmable controllers.
The network system between programmable controllers has network interface units (hereinafter, referred to as NET units) 1M, 1N for each programmable controller (hereinafter, abbreviated as PC) 2, and the NET units 1M, 1N,. It is connected to the.

【0003】また各PC2には、外部からの信号をPC
2に入力したり、PC2が処理した結果を外部に出力す
る入出力ユニット(以下I/Oユニットと称す)3が接
続されている。
[0003] Each PC 2 transmits a signal from the outside to the PC.
2, an input / output unit (hereinafter, referred to as an I / O unit) 3 for outputting a result processed by the PC 2 to the outside is connected.

【0004】NETユニット1M、1N…にはそれぞれ
1、2、…と云うように互いに異なる固有の局番が与え
られている。PC間ネットワークでは、この局番に基づ
きデータの送受信処理を行うため、1つのネットワーク
中には同一局番の存在を許可していない。
The NET units 1M, 1N,... Are assigned unique station numbers different from each other, such as 1, 2,. In the network between PCs, data transmission / reception processing is performed based on this station number, so that the same station number is not allowed in one network.

【0005】図16に示されているように、NETユニ
ット1M、1N…は、相互にデータ伝送するために、ネ
ットワーク中の各局が共通に使用できるネットワークデ
バイスを有しており、パラメータでデバイスを各局に割
り付けることができるようになっている。図16の例で
は“A”,“B”という名前を持つ二つのデバイスを各
局に割り付けている。このデバイスを各局に割り付ける
ためのパラメータを“割り付けパラメータ”と称す。
As shown in FIG. 16, the NET units 1M, 1N,... Have network devices that can be commonly used by stations in the network in order to mutually transmit data. It can be assigned to each station. In the example of FIG. 16, two devices having names “A” and “B” are assigned to each station. The parameter for allocating this device to each station is called "allocation parameter".

【0006】使用者は、各NETユニット1M、1N…
にデバイスA、Bを割り付けて各PC2の制御プログラ
ムでアクセスするために、図17に示されているような
割り付けパラメータテーブルを設定し、これを管理局1
Mに登録する。各NETユニット1M、1N…は、割り
付けパラメータを管理する管理局1Mと、管理局1M以
外の通常局1Nとに分類される。
[0006] The user can select each NET unit 1M, 1N ...
In order to allocate devices A and B to the PC and to access them by the control program of each PC 2, an allocation parameter table as shown in FIG.
Register with M. Each of the NET units 1M, 1N,... Is classified into a management station 1M that manages allocation parameters and a normal station 1N other than the management station 1M.

【0007】図18に示されているように、NETユニ
ット1は、ユニット内部にあるデバイスAを格納するメ
モリ部1031Aと、ユニット内部にあるデバイスBを
格納するメモリ部1031Bと、サイクリック伝送に使
用する一連のパラメータを格納するパラメータ格納部1
031Cと、各NETとの通信処理を行う通信手段10
31Dとを有し、デバイスAメモリ部1031Aとデバ
イスBメモリ部1031Bと通信手段1031Cとは内
部バス1031Eによって相互に接続されている。
[0007] As shown in FIG. 18, a NET unit 1 has a memory unit 1031A for storing a device A inside the unit, a memory unit 1031B for storing a device B inside the unit, and a NET unit 1 for cyclic transmission. Parameter storage unit 1 for storing a series of parameters to be used
031C and communication means 10 for performing communication processing with each NET
31D, and the device A memory unit 1031A, the device B memory unit 1031B, and the communication unit 1031C are mutually connected by the internal bus 1031E.

【0008】また図18に示されているように、PC2
は、I/O制御を行うプログラムを格納する制御プログ
ラム格納部1032Aと、送信処理を行うプログラムを
格納する送信処理プログラム格納部1032Bと、受信
処理を行うプログラムを格納する受信処理プログラム格
納部1032Cとを有し、これは内部バス1032Eに
よって相互に接続されている。
[0008] As shown in FIG.
Are a control program storage unit 1032A for storing a program for performing I / O control, a transmission processing program storage unit 1032B for storing a program for performing transmission processing, and a reception processing program storage unit 1032C for storing a program for performing reception processing. Which are interconnected by an internal bus 1032E.

【0009】NETユニット1のデバイスAメモリ部1
031AおよびデバイスBメモリ部1031BとPC2
の送信処理プログラム格納部1032Bおよび受信処理
プログラム格納部1032Cとは外部バス1032Fに
よって相互に接続されている。
The device A memory unit 1 of the NET unit 1
031A and device B memory section 1031B and PC2
The transmission processing program storage unit 1032B and the reception processing program storage unit 1032C are interconnected by an external bus 1032F.

【0010】図19、図20はデバイスAとデバイスB
のメモリ空間を示している。例としてデバイスAはビッ
トデバイス,デバイスBはワードデバイスとし、双方と
もデバイス番号を0〜FFFまで有するものとする。表
記方法としてデバイスAのデバイス番号7は“デバイス
A−7”とし、デバイスBも同様な表記方法とする。
FIGS. 19 and 20 show device A and device B.
The memory space of FIG. For example, it is assumed that device A is a bit device and device B is a word device, and both have device numbers from 0 to FFF. As a notation method, the device number 7 of the device A is “device A-7”, and the device B has the same notation method.

【0011】図21、図22は、デバイスAメモリ部1
031A、デバイスBメモリ部1031Bにおける先頭
アドレスをそれぞれ“0”として各デバイスのアドレス
を1バイト単位に割り振った場合のアドレスマップを示
している。このアドレス0〜は各NETユニットの内部
で実際にアクセスするアドレスを示している。
FIGS. 21 and 22 show a device A memory unit 1.
031A and the address map when the head address in the device B memory unit 1031B is set to “0” and the address of each device is allocated in units of 1 byte. The addresses 0 to 0 indicate addresses that are actually accessed inside each NET unit.

【0012】管理局1Mは設定された割り付けパラメー
タテーブル(図17)から図23に示されている割り付
け情報テーブル作成ルールに従って、図24に示されて
いるような各局デバイス割り付け情報テーブル(以下、
割り付け情報テーブルと称す)を作成する。割り付けパ
ラメータテーブルと割り付け情報テーブルはパラメータ
格納部1031Cに格納される。
[0012] The management station 1M, based on the set allocation parameter table (FIG. 17) according to the allocation information table creation rules shown in FIG. 23, each station device allocation information table (hereinafter, referred to as FIG. 24).
(Referred to as an allocation information table). The allocation parameter table and the allocation information table are stored in the parameter storage unit 1031C.

【0013】図23に示されている割り付け情報テーブ
ル作成ルールは、割り付け情報テーブルの開始マーク
(PARATBL_START)と、ネットワーク全体
が使用するデバイスAのメモリ部1031A、デバイス
Bのメモリ部1031Bにおける先頭アドレスおよびサ
イズ(以下全体割り付け情報と称す)と、各局ごとに送
信するデバイスAのメモリ部1031A、デバイスBの
メモリ部1031Bにおける先頭アドレスおよびサイズ
(以下各局割り付け情報と称す)と、終了マーク(PA
RATBL_END)で構成されている。
[0013] allocation information table generating rules shown in FIG. 23, a start mark assignment information table (PARATB L_ START), a memory unit of the device A whole network uses 1031A, leading in the memory portion 1031B of the device B The address and size (hereinafter referred to as overall allocation information), the start address and size (hereinafter referred to as each station allocation information) in the memory section 1031A of the device A and the memory section 1031B of the device B to be transmitted for each station, and the end mark (PA
RATBL_END).

【0014】1局を例に取って割り付け情報テーブルの
内容を説明する。図17に示されている割り付けパラメ
ータテーブルにより、1局はデバイスAについては“0
00−00F”、デバイスBについても“000−00
F”を使用する。1局が送信するデバイスAの先頭アド
レスは“000”であり、デバイスAはビットデバイス
であるため、1局が送信するデバイスAのサイズは1ワ
ード(16ビット)である。同様に、1局が送信するデ
バイスBの先頭アドレスは“000”であり、デバイス
Bはワードデバイスであるため、1局が送信するデバイ
スBのサイズは10ワードである。
The contents of the allocation information table will be described taking one station as an example. According to the allocation parameter table shown in FIG.
00-00F ”and“ 000-00F ”for device B.
F ". The head address of device A transmitted by one station is" 000 ", and the size of device A transmitted by one station is one word (16 bits) because device A is a bit device. Similarly, the head address of the device B transmitted by one station is “000” and the device B is a word device, so the size of the device B transmitted by one station is 10 words.

【0015】またネットワーク全体としては、デバイス
A、Bとも“000−05F”まで使用する。すなわち
ネットワーク全体のデバイスAの先頭アドレスは“00
0”であり、ネットワーク全体のデバイスAのサイズは
6ワードである。同様にネットワーク全体のデバイスB
の先頭アドレスは“000”であり、ネットワーク全体
のデバイスBのサイズは60ワードである(図24参
照)。
[0015] For the entire network, both devices A and B use "000-05F". That is, the start address of device A in the entire network is “00”.
0 ", and the size of device A in the entire network is 6 words. Similarly, device B in the entire network
Is "000", and the size of device B in the entire network is 60 words (see FIG. 24).

【0016】つぎに図25を参照して割り付け情報テー
ブルを作成する手順を説明する。まずNETユニット内
部のカウンタに初期値“1”をセットする(ステップS
100)。カウンタは、図示されていないが、NETユ
ニットにて割り付け情報テーブル作成処理を実行する際
に使用する一時記憶メモリであり、局番を示す。
Next, a procedure for creating an allocation information table will be described with reference to FIG. First, an initial value “1” is set in a counter inside the NET unit (step S
100). Although not shown, the counter is a temporary storage memory used when executing the allocation information table creation processing in the NET unit, and indicates a station number.

【0017】つぎにカウンタが示す局番(1局)のパラ
メータを割り付けパラメータテーブルから読み出し(ス
テップS110)、そのパラメータよりカウンタが示す
局番が使用するデバイスA、Bの先頭アドレスとサイズ
を算出し(ステップS120)、これらを割り付け情報
テーブルにおける対応局番の割り付け情報欄に格納する
(ステップS130)。
Next, the parameter of the station number (1 station) indicated by the counter is read from the allocation parameter table (step S110), and the head addresses and sizes of the devices A and B used by the station number indicated by the counter are calculated from the parameters (step S110). (S120), these are stored in the assignment information column of the corresponding station number in the assignment information table (step S130).

【0018】つぎにカウンタを更新(ここでは2にな
る)し(ステップS140)、更新後のカウント値によ
り全局分の設定が完了したか否かを確認する(ステップ
S150)。完了していなければ、ステップS10に
戻り、ステップS10〜S140を繰り返し実行す
る。
Next, the counter is updated (here, it becomes 2) (step S140), and it is confirmed whether or not the setting for all stations has been completed based on the updated count value (step S150). If it is not completed, the process returns to step S1 1 0, repeatedly executes steps S1 1 0~S140.

【0019】これに対し、完了していれば、つぎにネッ
トワーク全体で使用するデバイスA、Bの先頭アドレス
とサイズを読み出しパラメータより算出し(ステップS
160)、これらを割り付け情報テーブルのネットワー
ク全体の割り付け情報欄に格納する(ステップS17
0)。
On the other hand, if completed, the head addresses and sizes of the devices A and B used in the entire network are calculated from the read parameters (step S).
160), and store these in the allocation information column of the entire network in the allocation information table (step S17).
0).

【0020】図26に示されているように、管理局1M
はネットワーク中の各通常局1Nに対して割り付け情報
テーブルを送信し、各局に割り付けの内容を通知する
(図26の細線)。
As shown in FIG. 26, the management station 1M
Transmits the allocation information table to each normal station 1N in the network, and notifies each station of the allocation contents (thin line in FIG. 26).

【0021】各通常局1Nは管理局1Mから割り付け情
報テーブルを受信すると、管理局1Mに“受け取った”
と云う応答を返す(図26の点線)。管理局1Mはこの
応答を受け取った後にサイクリック伝送を開始する。
When each of the normal stations 1N receives the allocation information table from the management station 1M, the management station 1M “receives” the information.
Is returned (dotted line in FIG. 26). The management station 1M starts cyclic transmission after receiving this response.

【0022】図27、図28は、割り付け情報テーブル
を展開したデバイスA、Bの割り付け範囲を示してい
る。図27、図28において、“●(黒丸)”は各局の
送信範囲であることを示している。以後、図29〜図3
4のデータ送信動作を順次繰り返すことにより自局デー
タを他局に対して高速にリフレッシュすることができ
る。
FIGS. 27 and 28 show the allocation ranges of devices A and B in which the allocation information table is developed. 27 and 28, “● (black circle)” indicates the transmission range of each station. Hereinafter, FIGS. 29 to 3
By repeating the data transmission operation of No. 4 sequentially, the data of the own station can be refreshed to other stations at high speed.

【0023】このデータ送信において、1局と2局に同
一送信範囲を割り付けたとすると、1局がデータ送信し
た直後に2局がデータ送信し、1局がせっかく送信した
データエリアに2局のデータが上書きされてしまう。図
35と図36はデバイスA、デバイスBのそれぞれにつ
いてデータが上書きされる様子を示している。
In this data transmission, assuming that the same transmission range is allocated to one and two stations, two stations transmit data immediately after one station transmits data, and two stations transmit data to the data area transmitted by one station. Will be overwritten. FIGS. 35 and 36 show how data is overwritten for each of device A and device B.

【0024】従って、従来のPC間ネットワークシステ
ムにおいては、局番の異なる局に同一送信範囲をもつデ
バイスの割り付けはできない。
Therefore, in the conventional inter-PC network system, devices having the same transmission range cannot be allocated to stations having different station numbers.

【0025】上述したサイクリック伝送方式による従来
のPC間ネットワークシステムでは、局番の異なる局に
同一通信範囲をもつデバイスの割り付けができないた
め、システムの信頼性を向上させるために、PCとNE
Tユニットを二重化することが既に提案されている。
In the conventional inter-PC network system based on the cyclic transmission method described above, devices having the same communication range cannot be allocated to stations having different station numbers. Therefore, in order to improve the reliability of the system, the PC and NE are required.
Duplication of the T unit has already been proposed.

【0026】図37に符号300、301で示されてい
るように、PCを二重化し、NETユニット1局、5局
の各々PCを制御系PC(現用PC)、NETユニット
2局、6局のPCを待機系PCという役割に設定する。
As shown by reference numerals 300 and 301 in FIG. 37, the PCs are duplicated, and one PC of the NET unit and five PCs of the NET unit are respectively connected to a control system PC (working PC), two NET units and six NET units. The PC is set to the role of the standby PC.

【0027】制御系PCとは二重化されたPCのうち制
御を担当するPCであり、待機系PCとはもう一方のP
Cであり、制御系PCに異常が発生し制御が継続できな
い事態が発生した場合、替わりに制御を行うが、制御系
PCが正常時は待機しているPCのことである。この場
合、二重化であるため当然ながら、制御系PCと待機系
PCには同一の制御内容のプログラムを登録しておく。
The control system PC is a PC in charge of control among the duplicated PCs, and the standby system PC is the other PC.
If the control PC is abnormal and the control PC cannot be continued due to an abnormality, the control is performed instead. However, when the control PC is normal, the PC is on standby. In this case, since the control system PC and the standby system PC are of course duplicated, programs having the same control contents are registered in advance.

【0028】制御系PCは接続関係にあるNETユニッ
トを使用して常時データ送受信を行い、制御系PCにお
いて何らかの要因により制御を継続できないと云う障害
が発生した場合には、待機系PCが制御系PCに替わり
制御を実行する。よって待機系PCは普段は制御を行わ
ないため、データ受信のみ行い、いつでも制御PCの替
わりに制御を行えるように備えている。
The control system PC always transmits and receives data using the connected NET units. If a failure such that control cannot be continued in the control system PC occurs due to some factor, the standby system PC switches the control system PC to the control system PC. The control is executed in place of the PC. Therefore, since the standby PC does not normally perform control, the standby PC is provided so as to perform only data reception and control at any time instead of the control PC.

【0029】[0029]

【発明が解決しようとする課題】従来のサイクリック伝
送方式では、局番が異なれば、割り付けられたデバイス
の送信範囲も異なるため、送信の場合は制御系PCと待
機系PCの制御部分のプログラムは同一にできてもデー
タ受信部分に関しては、たとえば局番1の使用可能なデ
バイス範囲が000〜00F、局番2は010〜01F
と云うように、割り付けデバイス番号に対応して変える
必要がある。
In the conventional cyclic transmission system, if the station number is different, the transmission range of the assigned device is also different. In the case of transmission, the program of the control part of the control system PC and the control part of the standby system PC is different. Regarding the data receiving portion even if they can be the same, for example, the usable device range of the station number 1 is 000 to 00F, and the station number 2 is 010 to 01F.
Therefore, it is necessary to change it according to the assigned device number.

【0030】従って、この場合の受信処理用プログラム
は、図38に示されているように、先ず制御PCが正常
に動作中であるか否か確認し(ステップS200)、正
常であれば、局番1の送信割り付け範囲データを読み出
し(ステップS201)、これに対し異常であれば、局
番1の送信割り付け範囲データの読み出に代えて局番
2の送信割り付け範囲データを読み出し(ステップS2
02)、この後に制御処理を実行する(ステップS20
3)と云うように、繁雑なものになってしまう。
Accordingly, as shown in FIG. 38, the reception processing program in this case first checks whether the control PC is operating normally (step S200). reading a transmission allocation range data (step S201), if the abnormal contrast, reads the transmission assignment range data of station 2 instead of to read out the transmission assignment range data of station 1 (step S2
02), and thereafter, a control process is executed (step S20).
3) It becomes complicated.

【0031】この発明は、上述のような問題点を解決す
るためになされたもので、二重化コントローラ用ネット
ワークシステムにおけるサイクリック伝送の受信処理プ
ログラムを容易に作成できるネットワークシステムを得
ることを目的としており、特に待機PCが制御PCの送
信範囲をそのまま引き継ぎデータ送信を行うことを可能
にすることで、各PCの受信処理用プログラムを、一つ
の局番の送信割り付け範囲データを読み出して制御処理
を実行するだけの単純なものにでき、またそれが複数デ
バイス、複数の局の組み合わせで実行可能とすること
で、二重化システムのプログラミングを容易ならしめ、
ひいては二重化システムの構築そのものを容易ならしめ
ることができる二重化コントローラ用ネットワークシス
テムを得ることを目的としている。
The present invention has been made in order to solve the above-described problems, and has as its object to provide a network system capable of easily creating a reception processing program for cyclic transmission in a network system for a redundant controller. In particular, by enabling the standby PC to take over the transmission range of the control PC as it is, the reception processing program of each PC reads out the transmission allocation range data of one station number and executes the control processing. It can be as simple as it is, and it can be executed by a combination of multiple devices and multiple stations, making it easy to program a redundant system,
Further, it is an object of the present invention to obtain a network system for a redundant controller that can easily construct a redundant system itself.

【0032】[0032]

【課題を解決するための手段】上述の目的を達成するた
めに、この発明による二重化コントローラ用ネットワー
クシステムは、二重化されたコントローラの各々に固有
の局番を与えられたネットワークインタフェースユニッ
トが接続され、そのネットワークインタフェースユニッ
トがネットワークケーブルによって相互に通信可能に接
続され、前記ネットワークインタフェースユニットは、
同一ネットワーク中の他のネットワークインタフェース
ユニットと相互に各種情報のやりとりを行うために前記
局番ごとに割り付けることができるネットワークデバイ
スを有し、割り付けられたネットワークデバイスのデー
タを一定期間毎に送信することで前記コントローラが有
しているデータを他のネットワークインタフェースユニ
ットにサイクリックに送信する二重化コントローラ用ネ
ットワークシステムにおいて、コントローラの二重化に
応じてペアリングされた二つのネットワークインタフェ
ースユニットについてはネットワークデバイスの同一番
号を割り付けられ、ペアリングされた二つのネットワー
クインタフェースユニットの各々には自局コントローラ
が制御系であるか待機系であるかの状態を示す情報を格
納するコントローラ状態格納部を有し、前記コントロー
ラ状態格納部に格納されている情報に基づき自局コント
ローラが制御系であるネットワークインタフェースユニ
ットのみがデータ送信を行うよう構成されているもので
ある。
In order to achieve the above-mentioned object, a network system for a redundant controller according to the present invention has a network interface unit provided with a unique station number for each of the redundant controllers. The network interface units are communicably connected to each other by a network cable, and the network interface unit comprises:
It has a network device that can be assigned for each station number to exchange various information with other network interface units in the same network, and by transmitting data of the assigned network device at regular intervals. In a redundant controller network system that cyclically transmits data held by the controller to another network interface unit, the same network device number is assigned to two network interface units that are paired according to the redundancy of the controller. Each of the two allocated and paired network interface units has a controller for storing information indicating whether the own station controller is a control system or a standby system. Has a state storage unit, only the network interface unit local station controller is a control system based on the information stored in the controller state storage unit is one that is configured to perform data transmission.

【0033】なお、二重化されたコントローラの排他制
御により、ペアリングされた二つのネットワークインタ
フェースユニットが同時に制御系になることはない。
It should be noted that, due to the exclusive control of the duplicated controller, the two paired network interface units do not simultaneously become a control system.

【0034】この発明による二重化コントローラ用ネッ
トワークシステムでは、ネットワーク中の異なる局番で
あるにも拘らずネットワークデバイスの同一番号の割り
付けが可能になり、コントローラの二重化に応じてペア
リングされた二つのネットワークインタフェースユニッ
トについてはネットワークデバイスの同一番号が割り付
けられ、ペアリングされた二つのネットワークインタフ
ェースユニットはコントローラ状態格納部に格納されて
いる情報に基づき自局コントローラが制御系であるもの
のみデータ送信を行う。従ってペアリングされた二つの
ネットワークインタフェースユニットについて同一送信
範囲を割り付けられてもデータが上書きされることがな
い。
In the network system for a redundant controller according to the present invention, it is possible to assign the same number to a network device regardless of different station numbers in the network, and two network interfaces paired according to the redundant controller. The unit is assigned the same number of the network device, and the paired two network interface units transmit data only when the local controller is the control system based on the information stored in the controller status storage unit. Therefore, even if the same transmission range is assigned to two paired network interface units, data is not overwritten.

【0035】つぎの発明による二重化コントローラ用ネ
ットワークシステムは、上述の二重化コントローラ用ネ
ットワークシステムにおいて、ネットワークインタフェ
ースユニットのペアリングは二重化されたコントローラ
の組数に応じて複数組設定され、その各組における二つ
のネットワークインタフェースユニットの各々について
ネットワークデバイスの同一番号の割り付けができるよ
う構成されているものである。
In the network system for a redundant controller according to the next invention, in the above-described network system for a redundant controller, a plurality of pairs of network interface units are set in accordance with the number of the duplexed controllers. It is configured such that the same number of the network device can be assigned to each of the network interface units.

【0036】この発明による二重化コントローラ用ネッ
トワークシステムでは、ネットワーク中の異なる局番で
あるにも拘らずネットワークデバイスの同一番号の割り
付けできる組み合わせが複数組設定可能となり、二重化
されたコントローラの組数に応じてネットワークインタ
フェースユニットのペアリングが複数組設定され、その
各組における二つのネットワークインタフェースユニッ
トの各々についてネットワークデバイスの同一番号を割
り付けられる。
In the network system for a redundant controller according to the present invention, it is possible to set a plurality of combinations in which the same number of the network device can be assigned irrespective of the different station numbers in the network, and according to the number of the redundant controller sets. A plurality of pairs of network interface units are set, and the same number of the network device is assigned to each of the two network interface units in each pair.

【0037】つぎの発明による二重化コントローラ用ネ
ットワークシステムは、上述の二重化コントローラ用ネ
ットワークシステムにおいて、ペアリングされた二つの
ネットワークインタフェースユニットについては複数の
ネットワークデバイス種別でネットワークデバイスの同
一番号の割り付けができるよう構成されているものであ
る。
In the network system for a redundant controller according to the next invention, in the network system for a redundant controller described above, the same number of a network device can be assigned to two paired network interface units by a plurality of network device types. It is configured.

【0038】この発明による二重化コントローラ用ネッ
トワークシステムでは、ネットワーク中の異なる局番で
あるにも拘らずネットワークデバイスの同一番号の割り
付けを複数のネットワークデバイス種別で可能になり、
ペアリングされた二つのネットワークインタフェースユ
ニットについては複数のネットワークデバイス種別でネ
ットワークデバイスの同一番号を割り付けられる。
In the network system for a redundant controller according to the present invention, the same number of network devices can be assigned to a plurality of types of network devices regardless of different station numbers in the network.
With respect to the two paired network interface units, the same number of the network device is assigned by a plurality of network device types.

【0039】つぎの発明による二重化コントローラ用ネ
ットワークシステムは、上述の二重化コントローラ用ネ
ットワークシステムにおいて、コントローラはプログラ
マブルコントローラであり、二重化された二つのプログ
ラマブルコントローラはバス切り換えユニットによって
その何れか一方が入出力ユニットと接続されて制御系プ
ログラマブルコントローラになり、入出力ユニットと接
続されていないプログラマブルコントローラが待機系を
なし、ネットワークインタフェースユニットは自局プロ
グラマブルコントローラが入出力ユニットを制御する制
御系である場合にのみデータ送信を行うよう構成されて
いるものである。
A network system for a redundant controller according to the next invention is the network system for a redundant controller described above, wherein the controller is a programmable controller, and one of the two programmable controllers is an input / output unit by a bus switching unit. Is connected to the control system programmable controller, the programmable controller not connected to the I / O unit forms a standby system, and the network interface unit only outputs data when the local station programmable controller is the control system that controls the I / O unit. It is configured to perform transmission.

【0040】この発明による二重化コントローラ用ネッ
トワークシステムでは、二重化された二つのプログラマ
ブルコントローラはバス切り換えユニットによってその
何れか一方のみが入出力ユニットと接続されることによ
って制御系プログラマブルコントローラになる排他制御
が行われ、ネットワークインタフェースユニットは自局
プログラマブルコントローラが入出力ユニットを制御す
る制御系である場合にのみデータ送信を行う。
In the network system for a redundant controller according to the present invention, the exclusive control of the two redundant programmable controllers becomes the control system programmable controller by connecting only one of them to the input / output unit by the bus switching unit. The network interface unit transmits data only when the local station programmable controller is a control system for controlling the input / output unit.

【0041】[0041]

【発明の実施の形態】以下に添付の図を参照してこの発
明の実施の形態を詳細に説明する。なお、以下に説明す
るこの発明の実施の形態において上述の従来例と同一構
成の部分は、上述の従来例に付した符号と同一の符号を
付してその説明を省略する。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. In the embodiments of the present invention described below, the same components as those of the above-described conventional example are denoted by the same reference numerals as those of the above-described conventional example, and description thereof will be omitted.

【0042】〔実施の形態1〕 図1はこの発明による二重化コントローラ用ネットワー
クシステムの実施の形態1を示している。二重化PC装
置7は、二つPC2および局番が互いに異なる二つのN
ETユニットとは別に、接続ケーブル6によってI/O
ユニット3を接続されたバス切り換えユニット5を有し
ている。
[First Embodiment] FIG. 1 shows a first embodiment of a network system for a redundant controller according to the present invention. The duplicated PC device 7 includes two PCs 2 and two Ns having different station numbers.
Separately from the ET unit, I / O via connection cable 6
It has a bus switching unit 5 to which the unit 3 is connected.

【0043】バス切り換えユニット5は、一つの二重化
PC装置7において二つ存在するPCのうちのどちらか
一方を選択的にI/Oユニット3に接続するかを切換制
御するものである。
The bus switching unit 5 performs switching control of selectively connecting one of the two PCs in the single redundant PC device 7 to the I / O unit 3.

【0044】図2は二重化PC装置7の内部構成を示し
ている。なお、ここでは、二つあるPC2を便宜上、A
系、B系とし、区別するために、A系のものには、例え
ばPC2Aと云うように、符号の最後にAを付け、B系
のものには、例えばPC2Bと云うように、符号の最後
にBを付ける。
FIG. 2 shows the internal configuration of the redundant PC device 7. Here, two PCs 2 are referred to as A for convenience.
In order to distinguish between the system and the B system, A is added to the end of the code for the A system, for example, PC2A, and is added to the end of the code, for example, PC2B for the B system. To B.

【0045】またNETユニットは管理局、通常局とい
う区別があるため、A局で管理局の場合にはNETユニ
ット1MA、通常局の場合にはNETユニット1NAと
し、B系で管理局の場合はNETユニット1MB、通常
局の場合はNETユニット1NBとする。
Since the NET unit is classified into a management station and a normal station, the NET unit 1MA is used for the management station A, the NET unit 1NA is used for the normal station, and the management station is used for the B system. The NET unit is 1 MB, and the NET unit is 1NB for a normal station.

【0046】またここでは、A系を制御系(現用系)、
B系を、制御系の異常発生時に制御系に代わって制御を
引き継ぎ、制御系が正常の間は待機している待機系とす
る。
Here, the A system is a control system (active system),
The B system is assumed to be a standby system that takes over the control in place of the control system when an abnormality occurs in the control system, and waits while the control system is normal.

【0047】なお、他の例として、A系とB系のうち、
先に起動した方を制御系とし、後に起動した方を待機系
とすることもできる。しかし、ここでは、A系が必ず制
御系、B系が必ず待機系であるものとする。
As another example, of the A system and the B system,
The one started first may be the control system, and the one started later may be the standby system. However, here, it is assumed that the system A is always the control system and the system B is always the standby system.

【0048】なお、この発明は、A系、B系のどちらを
制御系にしてどちらを待機系にするかの設定方式につい
てのものではないため、切り替え方式、制御系/待機系
の設定方式についてはここでは特に記述しない。
Since the present invention does not relate to the setting method of which of the A system and the B system is used as the control system and which is used as the standby system, the switching system and the setting system of the control system / standby system are not described. Is not described here.

【0049】バス切り換えユニット5は、PC2A、2
Bのうちのいずれかの制御系の信号をI/Oユニット3
に対して入出力するI/O制御部8を有している。
The bus switching unit 5 includes PCs 2A, 2
B of any of the control system signals to the I / O unit 3
It has an I / O control unit 8 for inputting / outputting data to / from.

【0050】PC2A、2Bは各々、自PCの正常、異
常を判別する自PC異常検出回路9と、自PCの制御
系、待機系の情報と自PC異常検出回路9の情報から判
断して最終的に自PCが制御系であるか待機系であるか
を判断する状態判別回路10とを有し、これらは内部バ
ス14、16によって接続されている。
[0050] PC 2A, 2B are each normal self PC, and the PC itself abnormality detecting circuit 9 to determine the abnormal, self PC of the control system, it is determined from the information of the information of the standby system host PC abnormality detecting circuit 9 Last A state determination circuit 10 for determining whether the own PC is a control system or a standby system, and these are connected by internal buses 14 and 16.

【0051】状態判別回路10は、上述のようにA系が
制御系、B系が待機系としてシステムが稼働されていて
も、途中でA系PCに異常が発生することが有り得るこ
とに対応している。
The state discrimination circuit 10 responds to the possibility that an abnormality may occur in the A-system PC on the way even if the A-system is operated as the control system and the B-system is operated as the standby system as described above. ing.

【0052】NETユニット1MB、1NBは、状態判
別回路10と内部バス15によって接続されて状態判別
回路10の判別内容をNETユニット側で格納する自局
PC状態格納部11と、ネットワークデバイス割り付け
情報テーブルを格納するパラメータ格納部12とを有
し、パラメータ格納部12は制御系と待機系のPC、N
ETユニットの組み合わせ(ペアリング)の設定状況を
格納するペアリング設定格納部13を含んでいる。ここ
では、自PC状態格納部11には、自PCが制御系で
あれば“0”が、待機系であれば“1”が格納されるも
のとする。
The NET units 1MB and 1NB are connected to the state discriminating circuit 10 and the internal bus 15 to store the contents of the discrimination of the state discriminating circuit 10 on the NET unit side. And a parameter storage unit 12 for storing PCs and Ns of a control system and a standby system.
It includes a pairing setting storage unit 13 for storing the setting status of the combination (pairing) of the ET units. Here, it is assumed that “0” is stored in the own station PC status storage unit 11 if the own PC is a control system, and “1” is stored if the own PC is a standby system.

【0053】図3は自PC状態に応じて、自または相手
のPCに異常が発生した場合の二重化PC装置の動作概
要を示している。図3の表では、自PC状態が“行”に
とられ、異常の発生事象が“列”にとられている。自P
Cが制御系になっている場合に自PC異常が発生したと
きは自PCの状態を待機系に移行し、自局NETユニッ
トへ通知する。また自PCが待機系になっている場合に
相手PC異常が発生したときは、相手PCに替わって自
PCがI/Oユニット3を制御する必要があるため自P
Cを制御系に移行させて自NETユニットへ通知す
る。
FIG. 3 shows an outline of the operation of the redundant PC apparatus when an abnormality has occurred in the own PC or the partner PC according to the state of the own PC. In the table of FIG. 3, the own PC status is set to “row”, and the occurrence event of the abnormality is set to “column”. Own P
If an abnormality occurs in the own PC when C is the control system, the state of the own PC is shifted to the standby system, and the own NET unit is notified. Also, when an error occurs in the partner PC when the own PC is in the standby system, the own PC needs to control the I / O unit 3 instead of the partner PC.
C is transferred to the control system to notify the own station NET unit.

【0054】図4、図5は制御系と待機系のペアの設定
状況を設定するペアリング設定の内容を示している。図
5のように、あるビットに“1”をセットすると、その
局は“1つ前の局番とペア設定であり”を意味する。図
5に示されている例では、図4より2局と6局にペア設
定がなされている。これは、1局と2局のペア、5局と
6局のペアが存在することを示す。すなわち図1の二重
化システム構成を構築した場合、ペアリング設定は図5
のようになる。
FIGS. 4 and 5 show the contents of the pairing setting for setting the setting status of the pair of the control system and the standby system. As shown in FIG. 5, when a certain bit is set to "1", it means "the station is paired with the previous station number". In the example shown in FIG. 5, pair setting is performed for two stations and six stations from FIG. This indicates that there is a pair of 1 and 2 stations and a pair of 5 and 6 stations. That is, when the duplex system configuration of FIG. 1 is constructed, the pairing setting is performed as shown in FIG.
become that way.

【0055】図6は図1の二重化システム構成に対する
ネットワークデバイスの割り付けパラメータテーブルを
示している。図5のペアリング設定により、局番2の設
定は無効にしている。これは、“局番1と局番2を二重
化しようとした場合、局番3,局番4などの受信側プロ
グラムが複雑になる”と云う問題点を解決するためには
“局番1と局番2は同一のデバイス割り付け範囲である
必要がある”ためである。
FIG. 6 shows a network device allocation parameter table for the duplex system configuration of FIG. The setting of the station number 2 is invalidated by the pairing setting in FIG. In order to solve the problem that “when the station number 1 and the station number 2 are duplicated, the receiving side program such as the station number 3 and the station number 4 becomes complicated”, “the station number 1 and the station number 2 are the same. It must be within the device allocation range. "

【0056】つぎに図5のペアリングと図6の割り付け
パラメータテーブルから図7の割り付け情報テーブルを
作成する手順について図8を用いて説明する。
Next, a procedure for creating the assignment information table shown in FIG. 7 from the pairing shown in FIG. 5 and the assignment parameter table shown in FIG. 6 will be described with reference to FIG.

【0057】まずカウンタに局番1を示す“1”を格納
する(ステップS100)。つぎに図5のペアリング設
定において、カウンタが示す局にペアリング設定がなさ
れているか否かを確認する(ステップS102)。ペア
リング設定がされていない場合は従来例とまったく同一
な処理(ステップS10〜170)を行うため、その
説明は省略する。
First, "1" indicating station number 1 is stored in the counter (step S100). Next, in the pairing setting of FIG. 5, it is confirmed whether or not the station indicated by the counter has been paired (step S102). Because if the pairing setting is not made to perform a conventional example exactly same processing (Step S1 1 0 to 170), description thereof will be omitted.

【0058】ペアリング設定されていれば、局番が
[(カウンタ値)−1]で示される局の割り付け情報を
局番がカウンタ値の局の割り付け情報欄に格納し(ステ
ップS104)、ステップS140へジャンプする。
If the pairing is set, the station assignment information whose station number is indicated by [(counter value) -1] is stored in the station assignment information column of the station number whose counter value is the counter value (step S104), and the process proceeds to step S140. Jump.

【0059】例として(カウンタ値)=2の場合、2局
のペアリング設定を確認すると、[(カウンタ値)−
1]=1の1局の割り付け情報を(カウンタ値)=2の
2局にコピーすることになる。
As an example, when (counter value) = 2, when the pairing setting of two stations is confirmed, [(counter value) −
1] = 1 is copied to two stations of (counter value) = 2.

【0060】つぎにカウンタを更新し(ステップS14
0)、全局分の処理が完了したかをチェックし(ステッ
プS150)、完了していなければステップS102に
戻り、一連の処理を繰り返す。全局分の処理が完了して
いると判明した場合には、従来例と同様に、ステップS
160、S170以降の処理を行い、ネットワーク全体
の割り付け情報を作成する。
Next, the counter is updated (step S14).
0), it is checked whether the processing for all stations has been completed (step S150), and if not, the process returns to step S102 to repeat a series of processing. If it is determined that the processing for all stations has been completed, step S
160 and S170 and subsequent steps are performed to create allocation information for the entire network.

【0061】すなわち、割り付け情報テーブル作成ルー
ルは変更することなく、図4、図5に示すペアリング設
定と云う考え方を新たに導入し、図25に示す従来例の
フローチャートには図8に示すステップS102、S1
04の処理を新たに追加するだけでネットワーク中の異
なる局番であるにもかかわらず、ネットワークデバイス
の同一番号の割り付けが可能となる。
That is, the assignment information table creation rule
The concept of pairing setting shown in FIGS. 4 and 5 is newly introduced without any change, and the flow chart of the conventional example shown in FIG. 25 includes steps S102 and S1 shown in FIG.
By simply adding the process 04, it is possible to assign the same number to the network device despite the different station numbers in the network.

【0062】同様に局番5と局番6についてもペアリン
グ設定を行うことができ、図7の割り付けパラメータテ
ーブルに局番5と局番6の内容を同一にすることが、他
のペア設定局とは異なるペア設定局についても可能であ
る。すなわち、ネットワーク中の異なる局番であるにも
拘らず、ネットワークデバイスの同一番号の割り付けが
可能な組み合わせが複数組み設定できることになる。
Similarly, the pairing setting can be performed for the station numbers 5 and 6, and the fact that the contents of the station numbers 5 and 6 are the same in the allocation parameter table of FIG. 7 is different from other pair setting stations. It is also possible for a pair setting station. In other words, it is possible to set a plurality of combinations in which the same number can be assigned to the network device regardless of different station numbers in the network.

【0063】また図7の割り付け情報テーブルは従来例
と同様にネットワークデバイスA、デバイスBの二つの
デバイス種別についてのみ作成されているが、デバイス
種別を増加させても考え方は同様である。また、ネット
ワーク中のそれぞれの局番について同一局番をデバイス
種別数分割り付けが可能であることは自明である。
Although the allocation information table of FIG. 7 is created for only two device types, network device A and device B, as in the conventional example, the concept is the same even if the device types are increased. It is obvious that the same station number can be divided into a plurality of device types for each station number in the network.

【0064】つぎに送信処理を図9を参照して説明す
る。
Next, the transmission process will be described with reference to FIG.

【0065】まず、ペアリング設定格納部13からペア
リング設定を読み出し、自局にペアリング設定がなされ
ているか否かをチェックする(ステップS10、ステッ
プS11)。
First, the pairing setting is read from the pairing setting storage unit 13, and it is checked whether the pairing setting has been made for the own station (steps S10 and S11).

【0066】ペアリング設定がされていれば、自局は二
重化システムを構築しているのであるから、自局PC状
格納部11の内容をチェックし、自局PCが、制御系
であるか、待機系であるかを判断する(ステップS1
2)。制御系であれば、データ送信を行い(ステップS
13)、待機系であればデータ送信は行わない(ステッ
プS14)。
If the pairing has been set, the own station is constructing a duplex system. Therefore, the contents of the own station PC status storage unit 11 are checked, and whether the own PC is a control system is determined. It is determined whether it is a standby system (step S1).
2). If it is a control system, data transmission is performed (step S
13) If it is a standby system, no data transmission is performed (step S14).

【0067】またステップS11で、自局にペアリング
設定がないと判断した場合には、(自局番+1)局にペ
アリング設定があるか否かをチェックし(ステップS1
5)、ペアリング設定がなければ、ステップS13へ進
んでデータ送信を行う。
If it is determined in step S11 that the own station has no pairing setting, it is checked whether the (own station number + 1) station has a pairing setting (step S1).
5) If there is no pairing setting, the process proceeds to step S13 to perform data transmission.

【0068】これに対しペアリング設定があれば、やは
り自局は二重化システムを構築しているのであるから、
ステップS12へ進んで自局PCが制御系であるか待機
系であるかを判断し、これに応じてデータ送信するか、
しないかを判断する。
On the other hand, if there is a pairing setting, the station itself is constructing a duplex system.
Proceeding to step S12, it is determined whether the own station PC is a control system or a standby system, and data transmission is performed in response to the determination.
Judge whether to do.

【0069】すなわち、この送信処理フローにより、自
局コントローラが制御系になった場合にのみデータ送信
を行うという排他制御を実現することができる。
That is, according to this transmission processing flow, it is possible to realize exclusive control in which data transmission is performed only when the local controller becomes a control system.

【0070】図10〜図13は各局の送受信処理の状況
を示している。図10、図11はデバイスA、デバイス
Bをそれぞれ制御系の局である局番1、局番5により送
信されている。図12、図13は同じくデバイスA、デ
バイスBが、制御系の局が異常になり、待機系の局が切
り替わってデータ送信を行っている状態を示している。
FIGS. 10 to 13 show the status of transmission / reception processing of each station. 10 and 11, device A and device B are transmitted by station numbers 1 and 5, respectively, which are control system stations. FIGS. 12 and 13 similarly show a state in which the devices A and B are performing data transmission with the control system station becoming abnormal and the standby system station being switched.

【0071】すなわち、システムの信頼性を向上させる
ために、PCとNETユニットを二重化しようとした場
合の本来の目的としていた動作状態を示している。
That is, the operation state originally intended when the PC and the NET unit are duplicated in order to improve the reliability of the system is shown.

【0072】この場合、待機系のPCが制御系のPCの
送信範囲をそのまま引き継いでデータ送信を行うことが
可能であり、各PCの受信処理用プログラムは、図14
に示されているように、局番1の送信割り付け範囲デー
タを読み出し(ステップS20)、制御処理を実行する
(ステップS21)だけの単純なものになる。
In this case, it is possible for the standby PC to perform data transmission while taking over the transmission range of the control PC as it is, and the reception processing program of each PC is shown in FIG.
As shown in (1), the transmission allocation range data of the station number 1 is read (step S20), and the control processing is executed (step S21).

【0073】なお、上記各実施の形態はFAコントロー
ラ、パーソナルコンピュータ等にて実施しても同様の効
果が得られる。
The same effects can be obtained even if the above embodiments are implemented by an FA controller, a personal computer, or the like.

【0074】[0074]

【発明の効果】以上の説明から理解される如く、この発
明による二重化コントローラ用ネットワークシステムに
おいては、ペアリングされた二つのネットワークインタ
フェースユニットのうち自局コントローラが制御系であ
るもののみデータ送信を行うから、ネットワーク中の異
なる局番であるにも拘らずネットワークデバイスの同一
番号の割り付けが可能になり、ネットワーク中のコント
ローラが制御系コントローラ、待機系コントローラと云
うように二重化されていても、データ受信側の制御プロ
グラムは局の二重化を意識することなく従来のプログラ
ミングスタイルで容易に二重化用のプログラムが作成で
きる効果が得られる。
As can be understood from the above description, in the network system for a redundant controller according to the present invention, data transmission is performed only in the paired network interface unit whose own controller is the control system. Therefore, it is possible to assign the same number to network devices regardless of different station numbers in the network, and even if the controllers in the network are duplicated as a control system controller and a standby system controller, the data reception side Is effective in that a program for duplication can be easily created in a conventional programming style without being conscious of duplication of stations.

【0075】つぎの発明による二重化コントローラ用ネ
ットワークシステムにおいては、ネットワーク中の異な
る局番であるにも拘らずネットワークデバイスの同一番
号の割り付けができる組み合わせが複数組設定可能とな
り、ネットワーク中の複数組のコントローラが制御系コ
ントローラ、待機系コントローラと云うように二重化さ
れていても、データ受信側の制御プログラムは局の二重
化を意識することなく従来のプログラミングスタイルで
容易に二重化用のプログラムが作成できる効果が得ら
れ、また二重化システムの構築そのものが容易になる。
In the network system for a redundant controller according to the next invention, it is possible to set a plurality of combinations in which the same number of the network device can be assigned irrespective of a different station number in the network. However, the control program on the data receiving side can be easily created in the conventional programming style without having to be aware of the station duplication even if the program is duplicated as a control system controller and a standby system controller. And the construction of the duplex system itself becomes easy.

【0076】つぎの発明による二重化コントローラ用ネ
ットワークシステムにおいては、ネットワーク中の異な
る局番であるにも拘らずネットワークデバイスの同一番
号の割り付けを複数のネットワークデバイス種別で可能
になり、ネットワーク中のコントローラが制御系コント
ローラ、待機系コントローラと云うように二重化されて
いても、データ受信側の制御プログラムは局の二重化を
意識することなく従来のプログラミングスタイルで容易
に二重化用のプログラムが作成できる効果が得られる。
In the network system for a redundant controller according to the next invention, the same number of network devices can be assigned to a plurality of network device types regardless of different station numbers in the network. Even if the system controller and the standby controller are duplicated, the effect is that the control program on the data receiving side can easily create a program for duplication in the conventional programming style without being aware of the duplication of the station.

【0077】つぎの発明による二重化コントローラ用ネ
ットワークシステムにおいては、二重化された二つのプ
ログラマブルコントローラはバス切り換えユニットによ
ってその何れか一方のみが入出力ユニットと接続される
ことによって制御系プログラマブルコントローラになる
排他制御が行われ、ネットワークインタフェースユニッ
トは自局プログラマブルコントローラが入出力ユニット
を制御する制御系である場合にのみデータ送信を行うか
ら、ネットワーク中の異なる局番であるにも拘らずネッ
トワークデバイスの同一番号の割り付けができる組み合
わせが複数組設定可能となり、ネットワーク中の複数組
のプログラマブルコントローラが制御系PC、待機系P
Cと云うように二重化されていても、データ受信側の制
御プログラムは局の二重化を意識することなく従来のプ
ログラミングスタイルで容易に二重化用のプログラムが
作成できる効果が得られる。
In the network system for a redundant controller according to the next invention, exclusive control of the two redundant programmable controllers becomes a control system programmable controller by connecting only one of them to the input / output unit by the bus switching unit. The network interface unit performs data transmission only when its own programmable controller is a control system that controls the input / output unit, so the same number is assigned to the network device regardless of the different station number in the network. A plurality of combinations that can be set can be set, and a plurality of programmable controllers in the network can be used as the control system PC and standby system P
Even if the program is duplicated as C, the effect is obtained that the control program on the data receiving side can easily create a program for duplication in the conventional programming style without being aware of the duplication of the station.

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

【図1】 この発明による二重化コントローラ用ネット
ワークシステムの実施の形態1を示すシステム構成の全
体図である。
FIG. 1 is an overall view of a system configuration showing a first embodiment of a network system for a redundant controller according to the present invention.

【図2】 この発明による二重化コントローラ用ネット
ワークシステムにおける二重化システム構成を示す内部
ブロック図ある。
FIG. 2 is an internal block diagram showing a redundant system configuration in a redundant controller network system according to the present invention.

【図3】 自PC状態に応じて自または相手のPCに異
常が発生した場合の動作概要を示す説明図である。
FIG. 3 is an explanatory diagram showing an outline of an operation in a case where an abnormality has occurred in one's own or the other's PC according to the own PC's state.

【図4】 制御系と待機系のペアの設定状況を設定する
ペアリング設定の内容を示す説明図である。
FIG. 4 is an explanatory diagram showing the contents of a pairing setting for setting a setting status of a pair of a control system and a standby system.

【図5】 図1に示したシステム構成における制御系と
待機系のペアリング設定の内容を示す説明図である。
FIG. 5 is an explanatory diagram showing the contents of a pairing setting between a control system and a standby system in the system configuration shown in FIG. 1;

【図6】 図1に示したシステム構成におけるネットワ
ークデバイスの割り付けパラメータテーブルを示す説明
図である。
FIG. 6 is an explanatory diagram showing a network device allocation parameter table in the system configuration shown in FIG. 1;

【図7】 図6に示した割り付けパラメータテーブルに
基づいて従来例と同様に割り付けパラメータテーブル作
成ルールに従って作成された割り付け情報テーブルを示
す説明図である。
7 is an explanatory diagram showing an assignment information table created according to an assignment parameter table creation rule based on the assignment parameter table shown in FIG. 6 as in the conventional example.

【図8】 この発明による二重化コントローラ用ネット
ワークシステムにおける割り付け情報テーブルの作成手
順を示すフローチャートである。
FIG. 8 is a flowchart showing a procedure for creating an assignment information table in the network system for a redundant controller according to the present invention.

【図9】 この発明による二重化コントローラ用ネット
ワークシステムにおける送信処理ルーチンを示すフロー
チャートである。
FIG. 9 is a flowchart showing a transmission processing routine in the redundant controller network system according to the present invention.

【図10】 1局と5局が制御系PCである状態下での
各局のデバイスAの送受信処理の動作状態を示す説明図
である。
FIG. 10 is an explanatory diagram showing an operation state of transmission / reception processing of the device A of each station in a state where the first and fifth stations are control system PCs.

【図11】 1局と5局が制御系PCである状態下での
各局のデバイスBの送受信処理の動作状態を示す説明図
である。
FIG. 11 is an explanatory diagram showing an operation state of transmission / reception processing of device B of each station in a state where one and five stations are control system PCs.

【図12】 2局と6局が制御系PCである状態下での
各局のデバイスAの送受信処理の動作状態を示す説明図
である。
FIG. 12 is an explanatory diagram showing an operation state of a transmission / reception process of the device A of each station in a state where two stations and six stations are control PCs.

【図13】 2局と6局が制御系PCである状態下での
各局のデバイスBの送受信処理の動作状態を示す説明図
である。
FIG. 13 is an explanatory diagram showing an operation state of transmission / reception processing of the device B of each station in a state where two stations and six stations are control PCs.

【図14】 この発明による二重化コントローラ用ネッ
トワークシステムにおける受信処理ルーチンを示すフロ
チャートである。
14 is a flow <br/> chart showing a reception processing routine in the network system for redundant controller according to the present invention.

【図15】 従来におけるPC間ネットワークの基本シ
ステムを示す構成図である。
FIG. 15 is a configuration diagram showing a basic system of a conventional inter-PC network.

【図16】 図15に示されているシステム構成におけ
る各局にネットワークデバイスを割り付けた状態を示す
説明図である。
FIG. 16 is an explanatory diagram showing a state where network devices are allocated to each station in the system configuration shown in FIG.

【図17】 従来例のPC間ネットワークの基本システ
ム構成の割り付けパラメータの例を示す説明図である。
FIG. 17 is an explanatory diagram showing an example of allocation parameters of a basic system configuration of a conventional inter-PC network.

【図18】 従来におけるPCとNETユニットの内部
ブロック図である。
FIG. 18 is an internal block diagram of a conventional PC and NET unit.

【図19】 ネットワークデバイスAのマップを示す説
明図である。
FIG. 19 is an explanatory diagram showing a map of a network device A.

【図20】 ネットワークデバイス2のマップを示す説
明図である。
20 is an explanatory diagram showing a map of the network device 2. FIG.

【図21】 ネットワークデバイスAのバイト単位のア
ドレスマップを示す説明図である。
21 is an explanatory diagram showing an address map of a network device A in byte units. FIG.

【図22】 ネットワークデバイス2のバイト単位のア
ドレスマップを示す説明図である。
FIG. 22 is an explanatory diagram showing an address map of the network device 2 in byte units.

【図23】 従来例におけるPC間ネットワークの割り
付けパラメータテーブル作成ルールを示す説明図であ
る。
FIG. 23 is an explanatory diagram showing an allocation parameter table creation rule for an inter-PC network in a conventional example.

【図24】 割り付けパラメータを割り付けパラメータ
テーブル作成ルールに従い割り付けパラメータテーブル
に展開した状態を示す説明図である。
FIG. 24 is an explanatory diagram showing a state in which allocation parameters are developed in an allocation parameter table according to an allocation parameter table creation rule.

【図25】 従来例における割り付けパラメータテーブ
ルの作成手順を示すフローチャートである。
FIG. 25 is a flowchart showing a procedure for creating an allocation parameter table in a conventional example.

【図26】 ネットワーク中の各通常局に割り付けたパ
ラメータテーブルを送信し、各局の割り付け範囲を通知
している状態を示す説明図である。
FIG. 26 is an explanatory diagram showing a state in which a parameter table allocated to each normal station in the network is transmitted and the allocation range of each station is notified.

【図27】 割り付け情報テーブルを展開したデバイス
Aの割り付け範囲を示す説明図である。
FIG. 27 is an explanatory diagram showing an allocation range of a device A in which an allocation information table is developed.

【図28】 割り付け情報テーブルを展開したデバイス
Bの割り付け範囲を示す説明図である。
FIG. 28 is an explanatory diagram showing an allocation range of a device B in which an allocation information table is developed.

【図29】 従来例における1局のデータ送信動作を示
す説明図である。
FIG. 29 is an explanatory diagram showing a data transmission operation of one station in a conventional example.

【図30】 従来例における2局のデータ送信動作を示
す説明図である。
FIG. 30 is an explanatory diagram showing a data transmission operation of two stations in a conventional example.

【図31】 従来例における3局のデータ送信動作を示
す説明図である。
FIG. 31 is an explanatory diagram showing a data transmission operation of three stations in a conventional example.

【図32】 従来例における4局のデータ送信動作を示
す説明図である。
FIG. 32 is an explanatory diagram showing a data transmission operation of four stations in a conventional example.

【図33】 従来例における5局のデータ送信動作を示
す説明図である。
FIG. 33 is an explanatory diagram showing a data transmission operation of five stations in a conventional example.

【図34】 従来例における6局のデータ送信動作を示
す説明図である。
FIG. 34 is an explanatory diagram showing a data transmission operation of six stations in a conventional example.

【図35】 1局と2局、5局と6局の送信範囲を同一
にした場合のデバイスAの送信状況を示す説明図であ
る。
FIG. 35 is an explanatory diagram showing the transmission status of device A when the transmission ranges of the first and second stations, the fifth station, and the sixth station are the same.

【図36】 1局と2局、5局と6局の送信範囲を同一
にした場合のデバイスBの送信状況を示す説明図であ
る。
FIG. 36 is an explanatory diagram showing the transmission status of device B when the transmission ranges of the first and second stations, the fifth station, and the sixth station are the same.

【図37】 従来例の二重化PC・NETユニットの基
本システム構成を示す構成図である。
FIG. 37 is a configuration diagram showing a basic system configuration of a redundant PC / NET unit of a conventional example.

【図38】 従来例における受信処理ルーチンを示すフ
ローチャートである。
FIG. 38 is a flowchart showing a reception processing routine in a conventional example.

【符号の説明】[Explanation of symbols]

1 NETユニット,2 PC,3 I/Oユニット,
4 ネットワークケーブル,5 バス切り替えユニッ
ト,6 接続ケーブル,7 二重化PC装置,8I/O
制御部,9 自PC異常検出回路,10 状態判別回
路,11 自局PC状態格納部,12 パラメータ格納
部,13 ペアリング設定格納部,14,15,16
内部バス
1 NET unit, 2 PC, 3 I / O unit,
4 network cable, 5 bus switching unit, 6 connection cable, 7 redundant PC device, 8 I / O
Control unit, 9 own PC abnormality detection circuit, 10 state discrimination circuit, 11 own PC state storage unit, 12 parameter storage unit, 13 pairing setting storage unit, 14, 15, 16
Internal bus

フロントページの続き (56)参考文献 特開 平5−153114(JP,A) 特開 昭58−124350(JP,A) 特開 平8−65331(JP,A) 特開 平4−238437(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04L 12/42 - 12/437 H04L 12/00 - 12/26 H04L 12/50 - 12/66 Continuation of the front page (56) References JP-A-5-153114 (JP, A) JP-A-58-124350 (JP, A) JP-A-8-65331 (JP, A) JP-A-4-238437 (JP) , A) (58) Field surveyed (Int. Cl. 7 , DB name) H04L 12/42-12/437 H04L 12/00-12/26 H04L 12/50-12/66

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 二重化されたコントローラの各々に固有
の局番を与えられたネットワークインタフェースユニッ
トが接続され、そのネットワークインタフェースユニッ
トがネットワークケーブルによって相互に通信可能に接
続され、前記ネットワークインタフェースユニットは、
同一ネットワーク中の他のネットワークインタフェース
ユニットと相互に各種情報のやりとりを行うために前記
局番ごとに割り付けることができるネットワークデバイ
スを有し、割り付けられたネットワークデバイスのデー
タを一定期間毎に送信することで前記コントローラが有
しているデータを他のネットワークインタフェースユニ
ットにサイクリックに送信する二重化コントローラ用ネ
ットワークシステムにおいて、 コントローラの二重化に応じてペアリングされた二つの
ネットワークインタフェースユニットについてはネット
ワークデバイスの同一番号を割り付けられ、ペアリング
された二つのネットワークインタフェースユニットの各
々は自局コントローラが制御系であるか待機系であるか
の状態を示す情報を格納するコントローラ状態格納部を
有し、前記コントローラ状態格納部に格納されている情
報に基づき自局コントローラが制御系であるネットワー
クインタフェースユニットのみがデータ送信を行うよう
構成されていることを特徴とする二重化コントローラ用
ネットワークシステム。
A network interface unit having a unique station number is connected to each of the duplicated controllers, and the network interface units are communicably connected to each other by a network cable.
It has a network device that can be assigned for each station number to exchange various information with other network interface units in the same network, and by transmitting data of the assigned network device at regular intervals. In a network system for a redundant controller that cyclically transmits data held by the controller to another network interface unit, the same network device number is assigned to two network interface units that are paired according to the redundancy of the controller. Each of the two allocated and paired network interface units is a controller that stores information indicating whether the local controller is a control system or a standby system. A duplex storage controller having a status storage unit, wherein only the network interface unit in which the own station controller is a control system performs data transmission based on the information stored in the controller status storage unit. Network system.
【請求項2】 請求項1に記載の二重化コントローラ用
ネットワークシステムにおいて、 ットワークインタフェースユニットのペアリングは二
重化されたコントローラの組数に応じて複数組設定さ
れ、その各組における二つのネットワークインタフェー
スユニットの各々についてネットワークデバイスの同一
番号の割り付けができるよう構成されていることを特徴
とする二重化コントローラ用ネットワークシステム。
2. A duplex controller network system according to claim 1, Netw pairing network interface unit is a plurality of sets set in accordance with the number of sets of duplicated controllers, two network interfaces in each set A network system for a redundant controller, wherein each unit is configured to be assigned the same number of a network device.
【請求項3】 請求項1または2に記載の二重化コント
ローラ用ネットワークシステムにおいて、 ペアリングされた二つのネットワークインタフェースユ
ニットについては複数のネットワークデバイス種別でネ
ットワークデバイスの同一番号の割り付けができるよう
構成されていることを特徴とする二重化コントローラ用
ネットワークシステム。
3. The network system for a redundant controller according to claim 1, wherein the paired two network interface units are configured so that the same network device number can be assigned to a plurality of network device types. A network system for a redundant controller.
【請求項4】 請求項1〜3の何れかに記載の二重化コ
ントローラ用ネットワークシステムにおいて、 コントローラはプログラマブルコントローラであり、二
重化された二つのプログラマブルコントローラはバス切
り換えユニットによってその何れか一方が入出力ユニッ
トと接続されて制御系プログラマブルコントローラにな
り、入出力ユニットと接続されていないプログラマブル
コントローラが待機系をなし、ネットワークインタフェ
ースユニットは自局プログラマブルコントローラが入出
力ユニットを制御する制御系である場合にのみデータ送
信を行うよう構成されていることを特徴とする二重化コ
ントローラ用ネットワークシステム。
4. The network system for a redundant controller according to claim 1, wherein the controller is a programmable controller, and one of the two redundant programmable controllers is an input / output unit by a bus switching unit. Is connected to the control system programmable controller, the programmable controller not connected to the I / O unit forms a standby system, and the network interface unit only outputs data when the local station programmable controller is the control system that controls the I / O unit. A network system for a redundant controller configured to perform transmission.
JP12332796A 1996-05-17 1996-05-17 Network system for redundant controller Expired - Lifetime JP3305202B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12332796A JP3305202B2 (en) 1996-05-17 1996-05-17 Network system for redundant controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12332796A JP3305202B2 (en) 1996-05-17 1996-05-17 Network system for redundant controller

Publications (2)

Publication Number Publication Date
JPH09307574A JPH09307574A (en) 1997-11-28
JP3305202B2 true JP3305202B2 (en) 2002-07-22

Family

ID=14857819

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12332796A Expired - Lifetime JP3305202B2 (en) 1996-05-17 1996-05-17 Network system for redundant controller

Country Status (1)

Country Link
JP (1) JP3305202B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699003B (en) * 2013-11-27 2017-03-15 北京机械设备研究所 A kind of distributed redundancy general purpose controller towards double remaining motors
WO2016170614A1 (en) 2015-04-22 2016-10-27 三菱電機株式会社 Programmable logic controller, slave device, and duplex system
JP7035511B2 (en) * 2017-12-25 2022-03-15 株式会社明電舎 Programmable controller and duplex system

Also Published As

Publication number Publication date
JPH09307574A (en) 1997-11-28

Similar Documents

Publication Publication Date Title
US6233635B1 (en) Diagnostic/control system using a multi-level I2C bus
US4466098A (en) Cross channel circuit for an electronic system having two or more redundant computers
JP4474378B2 (en) Computational processing in both lockstep and freestep processor modes
EP0476962A2 (en) System for configuring a shared storage
JPH0661073B2 (en) How the multi-processor system works
EP0333593B1 (en) A data processing system capable of fault diagnosis
US6237108B1 (en) Multiprocessor system having redundant shared memory configuration
JPH04242463A (en) State-change informing mechanism and method in data processing input/output system
EP0507951A1 (en) Exclusive control method for shared memory
US6745341B1 (en) Information processing apparatus having fault detection for multiplex storage devices
US6356985B1 (en) Computer in multi-cluster system
JP3305202B2 (en) Network system for redundant controller
JP2005309580A (en) Storage control system and boot control system
JPS5852264B2 (en) Multi-unit system
JP2690589B2 (en) Memory switch monitoring method
JPS6326903B2 (en)
US6741602B1 (en) Work queue alias system and method allowing fabric management packets on all ports of a cluster adapter
JP3457432B2 (en) Method of communication between processors and processor used therefor
JP3265026B2 (en) I / O data exchange method
JP3273191B2 (en) Data transfer device
JPH1011387A (en) Information processor
JPS6144425B2 (en)
JP2008242592A (en) Memory monitoring circuit, information processing apparatus and memory monitoring method
JP2014174670A (en) Semiconductor integrated circuit device
JPH0237458A (en) Bus control system for redundant bus constitution

Legal Events

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

Free format text: PAYMENT UNTIL: 20080510

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090510

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100510

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100510

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110510

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110510

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120510

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120510

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130510

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20140510

Year of fee payment: 12

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term