JPH05298220A - Lan system - Google Patents

Lan system

Info

Publication number
JPH05298220A
JPH05298220A JP4096934A JP9693492A JPH05298220A JP H05298220 A JPH05298220 A JP H05298220A JP 4096934 A JP4096934 A JP 4096934A JP 9693492 A JP9693492 A JP 9693492A JP H05298220 A JPH05298220 A JP H05298220A
Authority
JP
Japan
Prior art keywords
output
programmable controller
data
controller
programmable
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.)
Pending
Application number
JP4096934A
Other languages
Japanese (ja)
Inventor
Masatoshi Masumori
正敏 増森
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP4096934A priority Critical patent/JPH05298220A/en
Publication of JPH05298220A publication Critical patent/JPH05298220A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To realize the instantaneous switching between a control programmable controller and a back-up programmable controller by providing a data selecting function part to decide to take out the data on one of a pair programmable controllers and to output the data to the outside. CONSTITUTION:For instance, when a control programmable controller 11 has a trouble during its control operation, an output data selecting circuit 18 of an input/output device 13 detects the trouble of the controller 11 based on the operating state information on the controller 11 and a back-up programmable controller 12. Then the controller 12 is switched to the controller 11 with the immediate switching of the ON/OFF states between the switched 18a and 18b. At the same time, the reading destination of the output data is switched to a writing area 17b of the controller 12. Then the output data are read out of the area 17b and outputted to the outside.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、LANシステムに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a LAN system.

【0002】[0002]

【従来の技術】従来、制御用とそのバックアップ用のプ
ログラマブルコントローラと、入出力装置とがLANで
密結合されたLANシステムは、図3に示すような構成
であった。すなわち、制御用プログラマブルコントロー
ラ(PLC)1とこのバックアップ用プログラマブルコ
ントローラ(PLC)2と、これらのいずれかのプログ
ラマブルコントローラからのデータを外部に出力し、ま
たこれらにデータを外部から入力する入出力装置3とが
LAN4に接続され、さらにメモリ5がLAN4に接続
されている。そして、制御用プログラマブルコントロー
ラ1とバックアップ用プログラマブルコントローラ2で
は、通常は制御用プログラマブルコントローラ1が動作
し、故障や異常が発生したときにバックアップ用プログ
ラマブルコントローラ2に動作を切り換えるために、排
他的に切り換え動作するスイッチ6a,6bがこれらの
プログラマブルコントローラ1,2に備えられ、またメ
モリ5には、制御用プログラマブルコントローラ1また
はバックアップ用プログラマブルコントローラ2のいず
れかからのデータの書き込みができる共通の書込エリア
7が備えられている。また、入出力装置3にはデータの
入出力制御を行なう入出力回路8が備えられている。
2. Description of the Related Art Conventionally, a LAN system in which a programmable controller for control and backup, and an input / output device are tightly coupled by a LAN has a configuration as shown in FIG. That is, a control programmable controller (PLC) 1, a backup programmable controller (PLC) 2, and an input / output device that outputs data from any of these programmable controllers to the outside and inputs data to these from the outside. 3 and 3 are connected to the LAN 4, and the memory 5 is further connected to the LAN 4. In the control programmable controller 1 and the backup programmable controller 2, the control programmable controller 1 normally operates, and when the failure or abnormality occurs, the operation is switched to the backup programmable controller 2 exclusively. The programmable controllers 1 and 2 are provided with operating switches 6a and 6b, and the memory 5 is a common write area in which data can be written from either the control programmable controller 1 or the backup programmable controller 2. 7 is provided. The input / output device 3 is also provided with an input / output circuit 8 for controlling input / output of data.

【0003】[0003]

【発明が解決しようとする課題】ところが、このような
構成の従来のLANシステムでは、プログラマブルコン
トローラそれぞれが判断機能を有していて、LAN4上
のメモリ4の決められた書込エリア7に制御出力データ
を書き込むようになっていたために、正常時には制御用
プログラマブルコントローラ1が制御出力データをこの
書込エリア7に書き込み、制御用プログラマブルコント
ローラ1が故障すれば、バックアップ用プログラマブル
コントローラ2に切り替わり、同じプログラムのもとで
得られる制御出力データを同じ書込エリア7に書き込む
ことになり、このために、制御用プログラマブルコント
ローラ1とバックアップ用プログラマブルコントローラ
2とに同時に並列に同一のプログラムを実行させておい
て、故障や異常の発生時に瞬時にプログラマブルコント
ローラを切り換えてデータを出力するということができ
ず、共通の書込エリア7にバックアップ用プログラマブ
ルコントローラ2のデータを書き込んでから出力するこ
とになり、切り換えのために時間を要する問題点があっ
た。
However, in the conventional LAN system having such a configuration, each programmable controller has a determination function, and the control output is provided to a predetermined writing area 7 of the memory 4 on the LAN 4. Since the data is written, the control programmable controller 1 writes the control output data to the writing area 7 in the normal state, and if the control programmable controller 1 fails, it switches to the backup programmable controller 2 and the same program The control output data obtained under this condition is written in the same write area 7. Therefore, the control programmable controller 1 and the backup programmable controller 2 are made to execute the same program in parallel at the same time. , Of failure or abnormality Since it is not possible to instantaneously switch the programmable controller to output the data at the time of live, the data of the backup programmable controller 2 is written to the common writing area 7 and then output, which requires time for switching. There was a problem.

【0004】この発明は、このような従来の問題点に鑑
みなされたもので、制御用プログラマブルコントローラ
とバックアップ用プログラマブルコントローラとの切り
換えが瞬時に行なえるLANシステムを提供することを
目的とする。
The present invention has been made in view of such conventional problems, and an object thereof is to provide a LAN system in which the control programmable controller and the backup programmable controller can be switched instantaneously.

【0005】[0005]

【課題を解決するための手段】この発明は、LANで結
合された少なくとも1対のプログラマブルコントローラ
と、入出力装置と、共通のメモリとで構成されるLAN
システムにおいて、1対のプログラマブルコントローラ
に同じプログラムをロードすると共に、前記メモリにプ
ログラマブルコントローラ各自の書込エリアを割り当
て、前記入出力装置に前記1対のプログラマブルコント
ローラの動作状態を監視し、いずれのプログラマブルコ
ントローラのデータを前記メモリから取り出して外部に
出力するかを決定するデータ選択機能部を設けたもので
ある。
According to the present invention, there is provided a LAN including at least one pair of programmable controllers connected by LAN, an input / output device, and a common memory.
In the system, the same program is loaded into a pair of programmable controllers, the write area of each programmable controller is assigned to the memory, and the operating state of the pair of programmable controllers is monitored in the input / output device. A data selection function unit for determining whether to take out the data of the controller from the memory and output the data to the outside is provided.

【0006】[0006]

【作用】この発明のLANシステムでは、通常時には、
1対のプログラマブルコントローラが同時に並列に同一
のプログラムを実行し、それぞれの出力データをLAN
のメモリ上の各自の専用の書込エリアに書き込んでい
る。そして、入出力装置のデータ選択機能部は、あらか
じめ定められた制御用のプログラマブルコントローラに
割り当てられた書込エリアにある出力データを選択して
出力する。
In the LAN system of the present invention, normally,
A pair of programmable controllers execute the same program at the same time in parallel, and output each output data to LAN.
Writing in their own dedicated writing area on the memory. Then, the data selection function unit of the input / output device selects and outputs the output data in the write area assigned to the predetermined programmable controller for control.

【0007】しかしながら、このあらかじめ定められた
制御用のプログラマブルコントローラにトラブルが発生
すれば、データ選択機能部が外部に出力するためのデー
タの読み取り先を制御用プログラマブルコントローラの
書込エリアからバックアップ用プログラマブルコントロ
ーラの書込エリアを切り換えて読み出すように制御す
る。
However, if a trouble occurs in the preset programmable controller, the data selection function unit reads the data to be output to the outside from the write area of the control programmable controller for backup programming. Control is performed so that the writing area of the controller is switched to read.

【0008】こうして、1対のプログラマブルコントロ
ーラの一方にトラブルが発生すれば、常に並列に動作し
ている他方のプログラマブルコントローラに割り当てら
れている書込エリアに瞬時に読み取り先を切り換え、そ
こからデータを読み出して外部に出力することができ
る。
In this way, if a trouble occurs in one of the pair of programmable controllers, the read destination is instantly switched to the writing area assigned to the other programmable controller operating in parallel, and the data is written from there. It can be read and output to the outside.

【0009】[0009]

【実施例】以下、この発明の実施例を図に基づいて詳説
する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0010】図1はこの発明の一実施例の回路ブロック
図であり、同じプログラムがロードされ、同時に並列に
動作する1対のプログラマブルコントローラ11,12
と、データの入出力制御を行なう入出力装置13とがL
AN14に接続され、さらにLANメモリ15およびL
AN14の全体的な制御を司るLAN制御装置16がL
AN14に接続されている。
FIG. 1 is a circuit block diagram of an embodiment of the present invention. A pair of programmable controllers 11 and 12 loaded with the same program and operating in parallel at the same time.
And the input / output device 13 that controls the input / output of data
LAN memory 15 and L connected to AN14
The LAN control device 16 that controls the entire AN 14 is L
It is connected to the AN 14.

【0011】メモリ15には、プログラマブルコントロ
ーラ11,12それぞれの専用の書込エリア17a,1
7bが割り当てられている。また、入出力装置13に
は、プログラマブルコントローラ11,12のいずれに
割り当てられている書込エリア17a,17bからデー
タを読み出すかを切り換え選択する出力データ選択回路
18と、読み出したデータを外部に出力し、また外部か
らのデータを入力する入出力回路19が備えられてい
る。スイッチ18a,18bはこの出力データ選択回路
18により切り換えられるスイッチであり、互いに排他
的に動作する。
The memory 15 has dedicated write areas 17a, 1 for the programmable controllers 11, 12, respectively.
7b is assigned. Further, to the input / output device 13, an output data selection circuit 18 for switching and selecting which of the write areas 17a and 17b assigned to the programmable controllers 11 and 12 is to be read, and the read data is output to the outside. In addition, an input / output circuit 19 for inputting data from the outside is provided. The switches 18a and 18b are switches that are switched by the output data selection circuit 18, and operate exclusively with each other.

【0012】次に、上記構成のLANシステムの動作に
ついて説明する。
Next, the operation of the LAN system having the above configuration will be described.

【0013】1対のプログラマブルコントローラ11,
12は同時に並列に同一のプログラムを実行し、それぞ
れの実行結果の出力データをメモリ15の中の各自に割
り当てられている書込エリア17a,17bに書き込
む。この書き込みデータには、それぞれのプログラマブ
ルコントローラの異常/正常の状態情報も含まれる。
A pair of programmable controllers 11,
12 simultaneously executes the same program in parallel, and writes the output data of the respective execution results to the write areas 17a and 17b in the memory 15 which are allocated to each of them. The write data also includes abnormal / normal status information of each programmable controller.

【0014】そして通常は、このプログラマブルコント
ローラ11,12のうちの一方、例えばプログラマブル
コントローラ11を制御用プログラマブルコントロー
ラ、プログラマブルコントローラ12をバックアップ用
プログラマブルコントローラとし、入出力装置13の出
力データ選択回路18もスイッチ18aをオンし、スイ
ッチ18bをオフして書込エリア17aのデータを入出
力回路19から外部に出力するように設定する。
Usually, one of the programmable controllers 11 and 12, for example, the programmable controller 11 is used as a control programmable controller, the programmable controller 12 is used as a backup programmable controller, and the output data selection circuit 18 of the input / output device 13 is also switched. 18a is turned on and the switch 18b is turned off to set the data in the write area 17a to be output from the input / output circuit 19 to the outside.

【0015】ところが、このような初期設定にしてLA
Nシステムを運用しているうちに、何らかの原因で制御
用のプログラマブルコントローラ11にトラブルが発生
すれば、入出力装置13の出力データ選択回路18はこ
れらのプログラマブルコントローラ11,12の動作状
態情報からプログラマブルコントローラ11の異常を検
出して、それまでバックアップ用としていたプログラマ
ブルコントローラ12を制御用に切り換えるようにスイ
ッチ18a,18bのオン、オフを直ちに切り換え、出
力データの読み取り先をプログラマブルコントローラ1
2側の書込エリア17bに切り換え、出力データをそこ
から読み出して外部に出力するようにする。
However, with such an initial setting, LA
If trouble occurs in the programmable controller 11 for control for some reason while operating the N system, the output data selection circuit 18 of the input / output device 13 can be programmed from the operation state information of these programmable controllers 11 and 12. When an abnormality of the controller 11 is detected, the switches 18a and 18b are immediately turned on and off so that the programmable controller 12 that has been used for backup is switched to control, and the read destination of the output data is the programmable controller 1.
The writing area 17b on the second side is switched to, and the output data is read from the writing area 17b and output to the outside.

【0016】やがてプログラマブルコントローラ11の
トラブルが復旧し、書込エリア17aの状態情報が正常
に戻れば、出力データ選択回路18はこれを検出して再
びプログラマブルコントローラ11側を制御用とし、プ
ログラマブルコントローラ12側をバックアップ用に切
り換え、プログラマブルコントローラ11側の書込エリ
ア17aからデータを読み出して外部に出力するように
する。
When the trouble of the programmable controller 11 is recovered and the status information of the write area 17a returns to normal, the output data selection circuit 18 detects this and uses the programmable controller 11 side for control again, and the programmable controller 12 The side is switched for backup, and the data is read from the writing area 17a on the programmable controller 11 side and output to the outside.

【0017】このようにして、1対のプログラマブルコ
ントローラ11,12に同時に並列に同じプログラムを
実行させ、それぞれの専用の書込エリア17a,17b
に同じ出力データを書き込むようにし、制御用として外
部にデータを出力している側のプログラマブルコントロ
ーラに異常が発生すれば、直ちにバックアップ用として
動作しているプログラマブルコントローラ側の書込エリ
アから外部にデータを出力するように切り換えることに
より、バンプレスに制御用プログラマブルコントローラ
の切り換えができることになる。
In this way, the pair of programmable controllers 11 and 12 are caused to simultaneously execute the same program in parallel, and their dedicated write areas 17a and 17b are respectively written.
If the programmable controller on the side that outputs data to the outside for control has an error, the data is immediately written to the outside from the writing area on the side of the programmable controller that is operating for backup. By switching so as to output, the programmable controller for control can be switched to bumpless.

【0018】なお、状態情報に基づく制御用プログラマ
ブルコントローラの切り換え判定処理は、データ出力の
際だけでなく、入出力装置13がすべてのデータを出力
し終わったところでも再度行なうようにすることによ
り、LAN14上の制御出力を読み込む前に必ず最新の
プログラマブルコントローラの状態情報に合わせてプロ
グラマブルコントローラの選択を行なうようにすれば、
出力データの信頼性を向上させることができる。
The switching determination process of the control programmable controller based on the state information is performed not only at the time of outputting the data but also when the input / output device 13 has finished outputting all the data. If the programmable controller is selected according to the latest state information of the programmable controller before the control output on the LAN 14 is read,
The reliability of output data can be improved.

【0019】また、上記の実施例では2台のプログラマ
ブルコントローラ11,12と1台の入出力装置13の
場合について説明したが、この発明は上記の実施例に限
定されることはなく、本質的に制御用とバックアップ用
とのプログラマブルコントローラが1:1の関係になっ
ていれば台数に制限がなく、例えば図2に示すように、
それぞれ1対となるプログラマブルコントローラ11,
12と、プログラマブルコントローラ11′,12′、
これら各々の組に対応する入出力装置13,13′をL
AN14に接続したシステムを構成することもできる。
In the above embodiment, the case of two programmable controllers 11 and 12 and one input / output device 13 was described, but the present invention is not limited to the above embodiment and is essential. If the programmable controllers for control and backup have a 1: 1 relationship, the number of units is not limited, and, for example, as shown in FIG.
Programmable controllers 11 that form a pair,
12, programmable controllers 11 ', 12',
Input / output devices 13 and 13 'corresponding to each of these groups are set to L
It is also possible to configure a system connected to the AN 14.

【0020】[0020]

【発明の効果】以上のようにこの発明によれば、通常時
には、1対のプログラマブルコントローラが同時に並列
に同一のプログラムを実行し、それぞれの出力データを
LANのメモリ上の各自の専用の書込エリアに書き込
み、入出力装置のデータ選択機能部があらかじめ定めら
れた制御用のプログラマブルコントローラに割り当てら
れた書込エリアにある出力データを選択して出力するよ
うにし、このあらかじめ定められた制御用のプログラマ
ブルコントローラにトラブルが発生した時には、データ
選択機能部が外部に出力するためのデータの読み取り先
をそれまでの制御用プログラマブルコントローラの書込
エリアからバックアップ用プログラマブルコントローラ
の書込エリアを切り換えて読み出すようにしているの
で、1対のプログラマブルコントローラの一方にトラブ
ルが発生すれば、常に並列に動作している他方のプログ
ラマブルコントローラに割り当てられている書込エリア
に瞬時に読み取り先を切り換え、そこからデータを読み
出して外部に出力することができ、1つのプログラマブ
ルコントローラにトラブルが発生しても、入出力装置は
ほとんど時間的な遅れなしに外部にデータを継続して出
力することができ、動作の信頼性を向上させることがで
きる。
As described above, according to the present invention, normally, a pair of programmable controllers simultaneously execute the same program in parallel, and each output data is written in its own dedicated memory on the LAN memory. The data selection function unit of the input / output device selects the output data in the write area assigned to the preset programmable controller for output and outputs the data. When a problem occurs in the programmable controller, the data selection function unit reads the data to be output to the outside by switching the write area of the backup programmable controller from the previous write area of the control programmable controller. I have a pair of programmers If a problem occurs in one of the two controllers, it is possible to instantly switch the read destination to the write area assigned to the other programmable controller operating in parallel, read the data from there, and output it to the outside. Even if a trouble occurs in one programmable controller, the input / output device can continuously output the data to the outside with almost no time delay, and the reliability of the operation can be improved.

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

【図1】この発明の一実施例の回路ブロック図。FIG. 1 is a circuit block diagram of an embodiment of the present invention.

【図2】この発明の他の実施例の回路ブロック図。FIG. 2 is a circuit block diagram of another embodiment of the present invention.

【図3】従来例の回路ブロック図。FIG. 3 is a circuit block diagram of a conventional example.

【符号の説明】 11,12,11′,12′ プログラマブルコントロ
ーラ 13,13′ 入出力装置 14 LAN 15 メモリ 17a,17b 書込エリア 18 出力データ選択回路 18a,18b スイッチ 19 入出力回路
[Explanation of reference signs] 11, 12, 11 ', 12' Programmable controller 13, 13 'Input / output device 14 LAN 15 Memory 17a, 17b Write area 18 Output data selection circuit 18a, 18b Switch 19 Input / output circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 LANで結合された少なくとも1対のプ
ログラマブルコントローラと、入出力装置と、共通のメ
モリとで構成されるLANシステムにおいて、 前記1対のプログラマブルコントローラに同じプログラ
ムをロードすると共に、前記メモリにプログラマブルコ
ントローラ各自の書込エリアを割り当て、前記入出力装
置に前記1対のプログラマブルコントローラの動作状態
を監視し、いずれのプログラマブルコントローラのデー
タを前記メモリから取り出して外部に出力するかを決定
するデータ選択機能部を設けて成るLANシステム。
1. A LAN system comprising at least one pair of programmable controllers coupled by LAN, an input / output device, and a common memory, wherein the same program is loaded into the pair of programmable controllers, and The write area of each programmable controller is assigned to the memory, the operating state of the pair of programmable controllers is monitored in the input / output device, and the data of which programmable controller is taken out from the memory and output to the outside is determined. A LAN system provided with a data selection function unit.
JP4096934A 1992-04-17 1992-04-17 Lan system Pending JPH05298220A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4096934A JPH05298220A (en) 1992-04-17 1992-04-17 Lan system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4096934A JPH05298220A (en) 1992-04-17 1992-04-17 Lan system

Publications (1)

Publication Number Publication Date
JPH05298220A true JPH05298220A (en) 1993-11-12

Family

ID=14178172

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4096934A Pending JPH05298220A (en) 1992-04-17 1992-04-17 Lan system

Country Status (1)

Country Link
JP (1) JPH05298220A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014106862A (en) * 2012-11-29 2014-06-09 Taiyo Nippon Sanso Corp Redundant system and redundancy method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014106862A (en) * 2012-11-29 2014-06-09 Taiyo Nippon Sanso Corp Redundant system and redundancy method

Similar Documents

Publication Publication Date Title
JPH05298220A (en) Lan system
JPH1139002A (en) Backup system for controller
JPS5822409A (en) Sequence controller
JPH0264845A (en) Electronic computer multiplexing main control part
JPS61813A (en) Deciding system for faulty area of sequence controller
JPS6229822B2 (en)
JP2564397B2 (en) Redundant system data output device
JPH0556561A (en) Power controller
JPH03219360A (en) Multiprocessor control system
JPH03225145A (en) Control device for air conditioner
JPH0337073Y2 (en)
JPH03111945A (en) Programmable controller
JPH08106400A (en) Duplex controller with duplexed process input/output device
JPH0751609Y2 (en) Failure information storage circuit of programmable controller
JPH0317702A (en) Controller for computer constitution
JP2645175B2 (en) Plant control system
JPH09311716A (en) Lan device
JPS5839307A (en) Programmable controller
JPS5875203A (en) Sequence controller of double structure
JPH03268007A (en) Sequence controller
JPH0250493B2 (en)
JPS595302A (en) Plant dispersion controlling method
JPS59116803A (en) Sequence controller
JPH05274169A (en) Computer
JPH0195349A (en) Input and output device