JP2016035700A - Programmable logic controller - Google Patents

Programmable logic controller Download PDF

Info

Publication number
JP2016035700A
JP2016035700A JP2014158788A JP2014158788A JP2016035700A JP 2016035700 A JP2016035700 A JP 2016035700A JP 2014158788 A JP2014158788 A JP 2014158788A JP 2014158788 A JP2014158788 A JP 2014158788A JP 2016035700 A JP2016035700 A JP 2016035700A
Authority
JP
Japan
Prior art keywords
card
cpu
priority
state
cards
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
JP2014158788A
Other languages
Japanese (ja)
Other versions
JP6176206B2 (en
Inventor
輝政 佐川
Terumasa Sagawa
輝政 佐川
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 Mitsubishi Electric Industrial Systems Corp
Original Assignee
Toshiba Mitsubishi Electric Industrial Systems 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 Mitsubishi Electric Industrial Systems Corp filed Critical Toshiba Mitsubishi Electric Industrial Systems Corp
Priority to JP2014158788A priority Critical patent/JP6176206B2/en
Publication of JP2016035700A publication Critical patent/JP2016035700A/en
Application granted granted Critical
Publication of JP6176206B2 publication Critical patent/JP6176206B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a programmable logic controller that can achieve a redundant configuration with a little failure points while reducing a manufacturing cost.SOLUTION: There is provided a programmable logic controller that includes a power source, a plurality of CPU cards, and a functional card. The CPU cards are each connected with the power source and functional card. The CPU cards each include: priority acquisition means 301 for acquiring the priority of the CPU cards; state determination means 302 for determining whether the states of the CPU cards are normal or abnormal; takeover destination determination means 303 for determining, from the normal CPU cards, a card with a high priority second to that of a present card; value equalization means 304 for copying data from the present card to the takeover destination card to equalize values; and authority switching means 305 for, in a case where the present card has the highest priority among the normal CPU cards, making the present card in a signal processing state to process signals, and in other cases, making the present card in a standby state.SELECTED DRAWING: Figure 3

Description

この発明は、プログラマブルロジックコントローラ(Programmable Logic Controller、以下、PLCとも記す)に関する。   The present invention relates to a programmable logic controller (hereinafter also referred to as a PLC).

PLCは、プラントを構成する機器の制御や監視などに用いられる。一般製造業でよく使用されるPLCは、通常、CPUを1つ備え、CPUが故障した場合は、動作しなくなる。重要な設備では、冗長化構成を組み、1つのCPUが停止しても他のCPUが動作し、PLCが停止しないようにしている。従来、例えば、特許文献1に開示されるように、複数のPLCを用いて冗長化構成を組むことが知られている。   The PLC is used for control and monitoring of equipment constituting the plant. A PLC often used in a general manufacturing industry usually has one CPU and does not operate when the CPU fails. In an important facility, a redundant configuration is provided so that even if one CPU stops, the other CPU operates and the PLC does not stop. Conventionally, for example, as disclosed in Patent Document 1, it is known to form a redundant configuration using a plurality of PLCs.

特開2013−168090号公報JP 2013-168090 A

図9は、従来の冗長化構成の1つの例を示す図である。この構成では、1台のPLCに第1電源701、第1CPU702、第1機能性カード703、第2電源704、第2CPU705、第2機能性カード706を配置し、中央の系切替カード707によって、第1CPU702から第2CPU705に権限を切り替え、第1CPU702が故障で停止した場合に、第2CPU705にて動作を継続する。   FIG. 9 is a diagram showing an example of a conventional redundant configuration. In this configuration, the first power supply 701, the first CPU 702, the first functional card 703, the second power supply 704, the second CPU 705, and the second functional card 706 are arranged in one PLC, and the central system switching card 707 is used. When the authority is switched from the first CPU 702 to the second CPU 705 and the first CPU 702 stops due to a failure, the second CPU 705 continues the operation.

しかし、この冗長化構成では、第1電源701、第2電源704、第1機能性カード703、第2機能性カード706のように各種カードを複数枚用意しなければならず、冗長化構成を実現するためのコストが大きい。   However, in this redundant configuration, a plurality of various cards such as the first power supply 701, the second power supply 704, the first functional card 703, and the second functional card 706 must be prepared. The cost to realize is large.

また、中央の系切替カード707が故障した場合には、第2CPU705が故障していない場合であっても、第1CPU702から第2CPU705に権限を切り替えることができず、PLCとして制御や監視を継続できないという問題がある。   Further, when the central system switching card 707 fails, even if the second CPU 705 does not fail, the authority cannot be switched from the first CPU 702 to the second CPU 705, and control and monitoring cannot be continued as a PLC. There is a problem.

図10は、従来の冗長化構成の他の例を示す図である。この構成では、第1電源801、第1CPU802、第1トラッキングカード803、第1機能性カード804で1セットのPLCを構成し、同じ構成のPLCとして、第2電源806、第2CPU807、第2トラッキングカード808、第2機能性カード809を準備する。また、第1トラッキングカード803と第2トラッキングカード808は、トラッキングケーブル810で繋がっている。   FIG. 10 is a diagram showing another example of a conventional redundant configuration. In this configuration, the first power source 801, the first CPU 802, the first tracking card 803, and the first functional card 804 constitute one set of PLC, and the second power source 806, the second CPU 807, and the second tracking are configured as the same PLC. A card 808 and a second functional card 809 are prepared. The first tracking card 803 and the second tracking card 808 are connected by a tracking cable 810.

データの同値化は、第1トラッキングカード803と第2トラッキングカード808間でデータをやりとりすることにより、第1CPU802が故障した際に、速やかに第2CPU807に権限を切り替えて、制御や監視を継続することができる。   For data equivalence, data is exchanged between the first tracking card 803 and the second tracking card 808, and when the first CPU 802 breaks down, the authority is quickly switched to the second CPU 807 to continue control and monitoring. be able to.

しかし、この冗長化構成でも、第1電源801、第2電源806、第1機能性カード804、第2機能性カード809のように各種カードを複数枚準備しなければならず、冗長化構成を実現するためのコストが大きい。   However, even in this redundant configuration, it is necessary to prepare a plurality of various cards such as the first power supply 801, the second power supply 806, the first functional card 804, and the second functional card 809, and the redundant configuration is realized. The cost to realize is large.

また、第1トラッキングカード803、第2トラッキングカード808の故障またはトラッキングケーブル810が断線した場合、第1CPU802から第2CPU807に権限を切り替えることができず、PLCとして制御や監視を継続できないという問題がある。   In addition, when the first tracking card 803 and the second tracking card 808 are broken or the tracking cable 810 is disconnected, the authority cannot be switched from the first CPU 802 to the second CPU 807, and control and monitoring as a PLC cannot be continued. .

この発明は、上述のような課題を解決するためになされたもので、製造コストを低減しつつ、障害点の少ない冗長化構成を実現できるプログラマブルロジックコントローラを提供することを目的とする。   The present invention has been made to solve the above-described problems, and an object of the present invention is to provide a programmable logic controller capable of realizing a redundant configuration with few failure points while reducing manufacturing costs.

第1の発明は、上記の目的を達成するため、プラント機器を制御または監視するプログラマブルロジックコントローラであって、
電力を供給する電源と、
前記プラント機器を制御または監視する信号を処理可能な複数のCPUカードと、
前記プラント機器との間で前記信号を入出力する機能性カードと、を備え、
前記複数のCPUカードの各CPUカードは、
前記電源および前記機能性カードに接続し、
前記複数のCPUカードそれぞれの優先度を取得する優先度取得手段と、
前記複数のCPUカードそれぞれの状態が正常であるか異常であるかを判定する状態判定手段と、
前記正常なCPUカードのうち、優先度が自カードの次に高いカードを引継先カードとする引継先決定手段と、
前記自カードから前記引継先カードにデータをコピーして同値化する同値化手段と、
前記正常なCPUカードのうち、前記自カードの優先度が最も高い場合に、前記自カードを、前記信号を処理する信号処理状態とし、他の場合に、前記自カードを待機状態とする権限切替手段と、を備えることを特徴とする。
In order to achieve the above object, a first invention is a programmable logic controller for controlling or monitoring plant equipment,
A power supply for supplying power;
A plurality of CPU cards capable of processing signals for controlling or monitoring the plant equipment;
A functional card that inputs and outputs the signal to and from the plant equipment,
Each CPU card of the plurality of CPU cards is
Connect to the power supply and the functional card,
Priority acquisition means for acquiring the priority of each of the plurality of CPU cards;
State determining means for determining whether each of the plurality of CPU cards is normal or abnormal;
Of the normal CPU cards, a takeover destination determining means that takes the next highest priority card as the takeover card,
An equivalence means for copying data from the own card to the takeover card and making it equivalent;
Among the normal CPU cards, when the priority of the own card is the highest, the self-card is set to a signal processing state for processing the signal, and in other cases, the authority switching to put the own card in a standby state And means.

また、第2の発明は、第1の発明において、
前記各CPUカードと、優先度と、状態と、引継先カードとを関連付けたテーブルを記憶する記憶部と、
前記状態判定手段と前記引継先決定手段とを継続的に実行し、前記各CPUカードの状態と引継先カードとを得て、前記テーブルを随時更新するテーブル更新手段を更に備え、
前記同値化手段は、前記自カードから前記テーブルに記憶された引継先カードにデータをコピーして同値化し、
前記権限切替手段は、前記テーブルに記憶された正常なCPUカードのうち、前記自カードの優先度が最も高い場合に、前記自カードを、前記信号を処理する信号処理状態とし、他の場合に、前記自カードを待機状態とすること、を特徴とする。
The second invention is the first invention, wherein
A storage unit for storing a table in which each CPU card, priority, state, and takeover destination card are associated;
The state determination means and the takeover destination determination means are continuously executed to obtain a state of each CPU card and a takeover destination card, and further includes a table update means for updating the table as needed.
The equivalence means copies the data from the own card to the takeover destination card stored in the table and makes the equivalence,
The authority switching means sets the own card to a signal processing state for processing the signal when the priority of the own card is the highest among normal CPU cards stored in the table, and in other cases. The self-card is set in a standby state.

この発明よれば、複数の電源や、複数の機能性カードを必要としないため、従来の構成に比して安価に冗長化構成を実現することができる。また、複数のCPUカードが自律的に同値化処理と権限切替処理を実行するため、従来の構成のような系切替カード、トラッキングカード、トラッキングケーブルが不要であり、障害点を減らすことができる。このため、この発明によれば、製造コストを低減しつつ、障害点の少ない冗長化構成を実現できる。   According to the present invention, since a plurality of power supplies and a plurality of functional cards are not required, a redundant configuration can be realized at a lower cost than the conventional configuration. In addition, since a plurality of CPU cards autonomously execute equivalence processing and authority switching processing, a system switching card, a tracking card, and a tracking cable as in the conventional configuration are unnecessary, and the number of failure points can be reduced. For this reason, according to the present invention, it is possible to realize a redundant configuration with few failure points while reducing the manufacturing cost.

本発明の実施の形態1に係るプログラマブルロジックコントローラの冗長化構成を説明するための図である。It is a figure for demonstrating the redundant structure of the programmable logic controller which concerns on Embodiment 1 of this invention. 各CPUカード16の機能について説明するための図である。It is a figure for demonstrating the function of each CPU card. 本発明の実施の形態1において、冗長化管理プログラム211により実現される各機能について説明するための図である。In Embodiment 1 of this invention, it is a figure for demonstrating each function implement | achieved by the redundancy management program 211. FIG. 本発明の実施の形態1において、各CPUカード16が実行する同値化管理処理ルーチンのフローチャートである。4 is a flowchart of an equivalence management processing routine executed by each CPU card 16 in the first embodiment of the present invention. 本発明の実施の形態1における各CPUカード16が実行する権限切替処理ルーチンのフローチャートである。It is a flowchart of the authority switching process routine which each CPU card 16 in Embodiment 1 of this invention performs. 各CPUカード16の状態の一例を示す図である。It is a figure which shows an example of the state of each CPU card. 本発明の実施の形態2において、冗長化管理プログラム211により実現される各機能について説明するための図である。In Embodiment 2 of this invention, it is a figure for demonstrating each function implement | achieved by the redundancy management program 211. FIG. 本発明の実施の形態2において、各CPUカード16が実行するテーブル更新処理ルーチンのフローチャートである。In Embodiment 2 of this invention, it is a flowchart of the table update process routine which each CPU card 16 performs. 従来の冗長化構成の1つの例を示す図である。It is a figure which shows one example of the conventional redundant structure. 従来の冗長化構成の他の例を示す図である。It is a figure which shows the other example of the conventional redundant structure.

以下、図面を参照して本発明の実施の形態について詳細に説明する。尚、各図において共通する要素には、同一の符号を付して重複する説明を省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In addition, the same code | symbol is attached | subjected to the element which is common in each figure, and the overlapping description is abbreviate | omitted.

実施の形態1.
[実施の形態1の構成]
図1は、本発明の実施の形態1に係るプログラマブルロジックコントローラの冗長化構成を説明するための図である。
Embodiment 1 FIG.
[Configuration of Embodiment 1]
FIG. 1 is a diagram for explaining a redundant configuration of a programmable logic controller according to Embodiment 1 of the present invention.

図1に示すPLC1は、鉄鋼プラント等に設けられた各種プラント機器(図示省略)に接続され、各種プラント機器を制御または監視する。PLC1は、バックボード10を備える。バックボード10には、電源12と、機能性カード14と、複数のCPUカード16とが取り付けられている。   The PLC 1 shown in FIG. 1 is connected to various plant equipment (not shown) provided in a steel plant or the like, and controls or monitors various plant equipment. The PLC 1 includes a backboard 10. A power supply 12, a functional card 14, and a plurality of CPU cards 16 are attached to the backboard 10.

電源12は、バックボード10を介して機能性カード14と各CPUカード16に接続される。電源12は、機能性カード14と各CPUカード16に電力を供給する。   The power supply 12 is connected to the functional card 14 and each CPU card 16 via the backboard 10. The power supply 12 supplies power to the functional card 14 and each CPU card 16.

機能性カード14は、PLC1で実現する機能を満たすためのカードである。例えば、機能性カード14は、プラント機器との間で信号を入出力する機能を備えている。   The functional card 14 is a card for satisfying functions realized by the PLC 1. For example, the functional card 14 has a function of inputting / outputting signals to / from plant equipment.

各CPUカード16は、プラント機器を制御または監視する信号を処理し、機能性カード14との間で信号を入出力する。図1には、各CPUカード16として、第1CPUカード161、・・・、第nCPUカード16nが記載されている。nは2以上の自然数である。第1CPUカード161、・・・、第nCPUカード16nは、それぞれ電源12および機能性カード14に接続している。   Each CPU card 16 processes signals for controlling or monitoring plant equipment, and inputs / outputs signals to / from the functional card 14. In FIG. 1, as each CPU card 16, a first CPU card 161,..., An nth CPU card 16n are described. n is a natural number of 2 or more. The first CPU card 161,..., The n-th CPU card 16n are connected to the power supply 12 and the functional card 14, respectively.

複数のCPUカード16は、所定のプログラムに基づいて、機能性カード14から入力される信号に応じた制御値を算出し、機能性カード14に出力する。機能性カード14は、制御値に応じた信号をプラント機器に出力する。なお、複数のCPUカード16は、1枚のカードが信号を処理する信号処理状態(稼動状態)として動作し、他のカードは待機状態となる。   The plurality of CPU cards 16 calculate a control value corresponding to a signal input from the functional card 14 based on a predetermined program and output the control value to the functional card 14. The functional card 14 outputs a signal corresponding to the control value to the plant equipment. The plurality of CPU cards 16 operate as a signal processing state (operating state) in which one card processes a signal, and the other cards are in a standby state.

図2は、各CPUカード16の機能について説明するための図である。各CPUカード16は、処理部、記憶部、入出力インタフェースを備えている。処理部、記憶部、入出力インタフェースは互いに接続され、互いに信号の受け渡しが可能になっている。   FIG. 2 is a diagram for explaining the function of each CPU card 16. Each CPU card 16 includes a processing unit, a storage unit, and an input / output interface. The processing unit, the storage unit, and the input / output interface are connected to each other and can exchange signals with each other.

各CPUカード16の入出力インタフェースは、バックボード10を介して電源12、機能性カード14に接続されている。   The input / output interface of each CPU card 16 is connected to the power supply 12 and the functional card 14 via the backboard 10.

各CPUカード16の処理部は、CPU(Central Processing Unit)、キャッシュメモリ等により構成されている。処理部は、記憶部からプログラムを読み出し各種機能を実現する。   The processing unit of each CPU card 16 includes a CPU (Central Processing Unit), a cache memory, and the like. The processing unit reads the program from the storage unit and realizes various functions.

各CPUカード16の記憶部は、ハードディスク装置や、フラッシュメモリのような不揮発性メモリや、RAM(Random Access Memory)のような揮発性メモリ、あるいはこれらの組み合わせにより構成されている。   The storage unit of each CPU card 16 includes a hard disk device, a nonvolatile memory such as a flash memory, a volatile memory such as a RAM (Random Access Memory), or a combination thereof.

図2に示す第1CPUカード161の記憶部には、メインプログラム201、冗長化管理プログラム211、各パラメータ221、テンポラリエリア231が格納されている。   A main program 201, a redundancy management program 211, parameters 221 and a temporary area 231 are stored in the storage unit of the first CPU card 161 shown in FIG.

メインプログラム201は、全てのCPUに共通のPLCの機能を実現するためのプログラムである。冗長化管理プログラム211は、CPUカードの冗長化を管理するためのプログラムである。各パラメータ221は、CPUカード毎のパラメータ類を保存しているエリアである。テンポラリエリア231は、一時的にデータを格納するエリアである。なお、各パラメータ221、テンポラリエリア231は、処理部のキャッシュメモリ上に用意されるものであってもよい。   The main program 201 is a program for realizing a PLC function common to all CPUs. The redundancy management program 211 is a program for managing CPU card redundancy. Each parameter 221 is an area in which parameters for each CPU card are stored. The temporary area 231 is an area for temporarily storing data. Each parameter 221 and temporary area 231 may be prepared on the cache memory of the processing unit.

同様に、図2に示す第nCPUカード16nの記憶部には、メインプログラム20n、冗長化管理プログラム21n、各パラメータ22n、テンポラリエリア23nが格納されている。メインプログラム20n、冗長化管理プログラム21n、各パラメータ22n、テンポラリエリア23nは、メインプログラム201、冗長化管理プログラム211、各パラメータ221、テンポラリエリア231と同じ構成である。   Similarly, a main program 20n, a redundancy management program 21n, parameters 22n, and a temporary area 23n are stored in the storage unit of the nth CPU card 16n shown in FIG. The main program 20n, the redundancy management program 21n, each parameter 22n, and the temporary area 23n have the same configuration as the main program 201, the redundancy management program 211, each parameter 221, and the temporary area 231.

図3は、本発明の実施の形態1において、冗長化管理プログラム211により実現される各機能について説明するための図である。ここでは、第1CPUカード161を例に挙げて説明するが、各CPUカード16において同じ機能が実現される。   FIG. 3 is a diagram for explaining each function realized by the redundancy management program 211 in the first embodiment of the present invention. Here, the first CPU card 161 will be described as an example, but the same function is realized in each CPU card 16.

第1CPUカード161の処理部は、記憶部から冗長化管理プログラム211を読み出し、優先度取得手段301、状態判定手段302、引継先決定手段303、同値化手段304、権限切替手段305として機能する。   The processing unit of the first CPU card 161 reads the redundancy management program 211 from the storage unit, and functions as a priority acquisition unit 301, a state determination unit 302, a takeover destination determination unit 303, an equivalence unit 304, and an authority switching unit 305.

優先度取得手段301は、各CPUカード16の優先度を取得する。例えば、第1CPUカード161は、第1CPUカード161〜第nCPUカード16nそれぞれに問い合わせて優先度を取得する。なお、各CPUカード16の優先度は、重複しないように設定されているものとする。   The priority acquisition unit 301 acquires the priority of each CPU card 16. For example, the first CPU card 161 inquires of each of the first CPU card 161 to the nth CPU card 16n to obtain the priority. In addition, the priority of each CPU card 16 shall be set so that it may not overlap.

状態判定手段302は、各CPUカード16の状態が正常であるか異常(故障)であるかを判定する。例えば、各CPUカード16は、外部から参照可能なタイマー値を有するウオッチドッグタイマーを備え、定期的に自カードのタイマー値をリセットする仕組みを備える。CPUカードのタイマー値がリセットされずに規定値を超えれば、そのCPUカードは故障していると判断できる。状態判定手段302は、各CPUカード16のタイマー値を参照して、タイマー値が規定値を超えているか否かを判定する。   The state determination unit 302 determines whether the state of each CPU card 16 is normal or abnormal (failure). For example, each CPU card 16 includes a watchdog timer having a timer value that can be referred to from the outside, and a mechanism for periodically resetting the timer value of the own card. If the timer value of the CPU card exceeds the specified value without being reset, it can be determined that the CPU card is defective. The state determination unit 302 refers to the timer value of each CPU card 16 and determines whether or not the timer value exceeds a specified value.

引継先決定手段303は、状態判定手段302により正常であると判定されたCPUカードのうち、優先度取得手段301により取得された優先度が自カードの次に高いカードを引継先カードとする。   The takeover destination determining means 303 sets the next highest priority card acquired by the priority acquisition means 301 as the takeover destination card among the CPU cards determined to be normal by the state determining means 302.

同値化手段304は、自カードから引継先カードにデータをコピーして同値化する。同値化するデータは、例えば、自ノードの各パラメータやテンポラリエリアの情報である。   The equivalence means 304 copies the data from the own card to the takeover destination card and makes the equivalence. The data to be equivalent is, for example, information on each parameter and temporary area of the own node.

権限切替手段305は、状態判定手段302により正常であると判定されたCPUカード16のうち、優先度取得手段301により取得された自カードの優先度が最も高い場合に、自カードを、信号を処理する信号処理状態(稼働状態)とし、他の場合に、自カードを待機状態とするモード切り替えを実行する。すなわち、複数のCPUカード16のうち1つのみが信号処理状態となり、PLCの制御または監視のための信号を処理するため常用動作し、他のCPUカード16は待機状態となる。   The authority switching unit 305 outputs a signal to the own card when the priority of the own card acquired by the priority acquiring unit 301 is the highest among the CPU cards 16 determined to be normal by the state determining unit 302. The signal processing state to be processed (operating state) is set, and in other cases, mode switching is performed in which the card is in a standby state. In other words, only one of the plurality of CPU cards 16 is in a signal processing state, and a normal operation is performed to process a signal for controlling or monitoring the PLC, and the other CPU cards 16 are in a standby state.

(同値化管理処理ルーチン)
次に、図4と図6を参照して、CPUカード16間でデータを同値化する同値化管理処理について説明する。
(Equivalence management processing routine)
Next, with reference to FIG. 4 and FIG. 6, an equivalence management process for making data equivalent between the CPU cards 16 will be described.

図4は、本発明の実施の形態1において、各CPUカード16が実行する同値化管理処理ルーチンのフローチャートである。このルーチンは、各CPUカード16において所定時間毎に実行される。   FIG. 4 is a flowchart of an equivalence management process routine executed by each CPU card 16 in the first embodiment of the present invention. This routine is executed in each CPU card 16 every predetermined time.

図6は、各CPUカード16の状態の一例を示す図である。図6を用いて同値化管理処理の具体例を説明する。なお、図6に示す例では、優先度1の第1CPUカードが故障しており、優先度2の第3CPUカードが信号処理状態(稼動状態)として現在動作中であり、他のCPUカードは待機状態となっている。   FIG. 6 is a diagram illustrating an example of the state of each CPU card 16. A specific example of the equivalence management process will be described with reference to FIG. In the example shown in FIG. 6, the first CPU card with priority level 1 has failed, the third CPU card with priority level 2 is currently operating as a signal processing state (operating state), and other CPU cards are in standby. It is in a state.

図4のステップS100において、各CPUカード16は、自カードを含めた全てのCPUカード16の優先度を確認する。具体的には、上述した優先度取得手段301は、全CPUカードの優先度を取得する。図6に示す例では、優先度603の欄に示された全CPUカードの優先度が取得される。   In step S100 of FIG. 4, each CPU card 16 confirms the priority of all the CPU cards 16 including its own card. Specifically, the above-described priority acquisition unit 301 acquires the priorities of all CPU cards. In the example shown in FIG. 6, the priorities of all the CPU cards indicated in the priority 603 column are acquired.

ステップS101において、各CPUカード16は、現在、PLCの制御や監視のための信号処理を行なう権限を有する現在動作中のCPUカード16を確認する。具体的には、上述した状態判定手段302により正常であると判定されたCPUカード16のうち、優先度取得手段301により取得された優先度が最も高いカードが現在動作中のカードであると確認できる。図6に示す例では、正常なCPUカードのうち優先度が最も高いカードである第3CPUカードが現在動作中のカードであると確認できる。   In step S101, each CPU card 16 confirms the currently operating CPU card 16 having the authority to perform signal processing for PLC control and monitoring. Specifically, among the CPU cards 16 determined to be normal by the state determination unit 302 described above, it is confirmed that the card having the highest priority acquired by the priority acquisition unit 301 is the currently active card. it can. In the example shown in FIG. 6, it can be confirmed that the third CPU card, which is the highest priority card among the normal CPU cards, is the currently operating card.

ステップS102において、各CPUカード16は、他の待機中のCPUカードの状態を確認する。具体的には、上述した状態判定手段302により正常であると判定されたCPUカード16のうち、優先度取得手段301により取得された優先度の高さが最も高いカード以外のカードが待機状態のカードであると確認できる。図6に示す例では、第2および第4〜第nCPUカードが待機状態であると確認できる。   In step S102, each CPU card 16 confirms the state of another standby CPU card. Specifically, among the CPU cards 16 determined to be normal by the state determination unit 302 described above, cards other than the card with the highest priority acquired by the priority acquisition unit 301 are in a standby state. It can be confirmed that it is a card. In the example shown in FIG. 6, it can be confirmed that the second and fourth to nth CPU cards are in the standby state.

ステップS103において、各CPUカード16は、ステップS100〜ステップS102の情報を元に権限の引継元と引継先を算出する。具体的には、引継先決定手段303は、状態判定手段302により正常であると判定されたCPUカード16のうち、優先度取得手段301により取得された優先度が自カードの次に高いカードを引継先カードとする。図6に示す例では、自カードが第3CPUカードである場合、正常なCPUカード16のうち優先度が自カードの次に高い第2CPUカードを引継先カードとする。   In step S103, each CPU card 16 calculates the authority takeover source and takeover destination based on the information in steps S100 to S102. Specifically, the takeover destination determining unit 303 selects a card having the second highest priority acquired by the priority acquiring unit 301 among the CPU cards 16 determined to be normal by the state determining unit 302. It is assumed to be a successor card. In the example illustrated in FIG. 6, when the own card is the third CPU card, the second CPU card having the second highest priority among the normal CPU cards 16 is set as the transfer destination card.

ステップS100〜ステップS103の処理により、各CPUカード16は、どのCPUカード16が故障した場合に自カードが動作を引き継ぎ、また自カードが故障した場合に、どのCPUカード16に動作を引き継ぐのか導き出すことができる。   Through the processing of step S100 to step S103, each CPU card 16 derives which CPU card 16 takes over the operation when the CPU card 16 breaks down and which CPU card 16 takes over the operation when the own card fails. be able to.

ステップS104において、各CPUカード16は、故障したCPUカード16が復帰または新規に追加されたか否かを判定する。新たにCPUカード16が追加されると、追加されたCPUカード16は、各CPUカード16に対して、自身が追加されたことを通知する。この通知があると、各CPUカード16は、新たなCPUカード16の優先度を確認する処理(ステップS100)に戻る。一方、ステップS104において、復帰又は新規に追加されたCPUカードがない場合には、ステップS105の処理を実行する。   In step S104, each CPU card 16 determines whether or not the failed CPU card 16 has been restored or newly added. When a new CPU card 16 is added, the added CPU card 16 notifies each CPU card 16 that it has been added. Upon receiving this notification, each CPU card 16 returns to the process of confirming the priority of the new CPU card 16 (step S100). On the other hand, if there is no CPU card that has been returned or newly added in step S104, the process of step S105 is executed.

ステップS105において、各CPUカード16の同値化手段304は、自カードに書き込まれた同値化完了フラグを確認する。同値化完了フラグとは、自CPU内の同値化対象となっているデータが最新の状態(フラグが1)になっていることを示すフラグである。各CPUカード16の同値化完了フラグの初期値は0であるが、現在動作中のカード(ステップS101)の同値化完了フラグは常時1である。同値化完了フラグが1である場合には、ステップS106の処理を実行する。一方、同値化完了フラグが0である場合には、本ルーチンは終了される。   In step S105, the equivalence means 304 of each CPU card 16 confirms the equivalence completion flag written in the own card. The equivalence completion flag is a flag indicating that the data to be equivalenced in the own CPU is in the latest state (flag is 1). Although the initial value of the equivalence completion flag of each CPU card 16 is 0, the equivalence completion flag of the currently operating card (step S101) is always 1. If the equivalence completion flag is 1, the process of step S106 is executed. On the other hand, if the equivalence completion flag is 0, this routine ends.

ステップS106において、各CPUカード16の同値化手段304は、同値化完了フラグが1であれば、ステップS103の処理で算出した引継先のCPUカード16に対し、自カード内の同値化対象となっているデータをコピーする。図6に示す例では、自カードが第3CPUカードである場合、データを引継先の第2CPUカードにコピーする。   In step S106, the equivalence means 304 of each CPU card 16 becomes an equivalence target in the own card for the takeover destination CPU card 16 calculated in the process of step S103 if the equivalence completion flag is 1. Copy the data. In the example shown in FIG. 6, when the own card is the third CPU card, the data is copied to the second CPU card as the takeover destination.

ステップS107において、各CPUカード16の状態判定手段302は、引継先にデータをコピー中に引継先のCPUカード16が故障したか否かを判定する。同値化対象となっているデータをコピー中(ステップS106)に故障が確認された場合には、コピーを中断し、優先度を確認(ステップS100)する処理へ戻る。一方、ステップS107において、引継先のCPUカード16が正常である場合には、ステップS108の処理を実行する。   In step S107, the state determination unit 302 of each CPU card 16 determines whether or not the takeover destination CPU card 16 has failed while copying data to the takeover destination. If a failure is confirmed during copying of the data to be equivalenced (step S106), the copying is interrupted and the process returns to the process of checking the priority (step S100). On the other hand, if the transfer destination CPU card 16 is normal in step S107, the process of step S108 is executed.

ステップS108において、各CPUカード16の同値化手段304は、コピーが完了したか否かを判定する。コピーが完了していない場合には、ステップS106の処理を継続する。一方、コピーが完了した場合には、ステップS109の処理を実行する。   In step S108, the equivalence means 304 of each CPU card 16 determines whether or not copying is complete. If the copying has not been completed, the process of step S106 is continued. On the other hand, when the copying is completed, the process of step S109 is executed.

ステップS109において、各CPUカード16の同値化手段304は、引継先のCPUカード16の同値化完了フラグを1にする。すなわち、同値化が完了し、引継先のCPUカード16のデータが最新の状態になっていることを示すフラグを立てる。   In step S109, the equivalence means 304 of each CPU card 16 sets the equivalence completion flag of the takeover destination CPU card 16 to 1. That is, the flag indicating that the equivalence is completed and the data of the transfer destination CPU card 16 is in the latest state is set.

ステップS110において、各CPUカード16の同値化手段304は、自カードの同値化完了フラグをリセット(0)して終了する。   In step S110, the equivalence means 304 of each CPU card 16 resets (0) the equivalence completion flag of its own card and ends.

なお、上述したステップS104において、CPUカード16が復帰または新規に追加された場合には、ステップS100の処理に戻る。続いて、ステップS101において、現在動作中のCPUカードを確認するが、復帰または追加されたCPUカードは、現在動作中のCPUカードよりも優先度が高い場合、現在動作中のCPUカード16に対し、データを同値化させる指示を出し、別ルーチンにおいて同値化完了後、復帰または追加されたCPUカード16が常用動作する。一方、現在動作中だったCPUカード16は、同値化完了後、信号処理状態から待機状態に切り替わる。図6に示す例において、第1CPUカードが復旧した場合には、第3CPUカードのデータを第1CPUカードにコピーした後、後述する図5に示す権限切替処理ルーチンを実行することにより、第1CPUカードが常用動作し、第3CPUカードは待機状態に切り替わる。   In step S104 described above, when the CPU card 16 is returned or newly added, the process returns to step S100. Subsequently, in step S101, the CPU card that is currently operating is confirmed. If the CPU card that has been restored or added has a higher priority than the CPU card that is currently operating, the CPU card 16 that is currently operating is determined. Then, an instruction to equivalence data is issued, and after the equivalence is completed in another routine, the restored or added CPU card 16 operates normally. On the other hand, the CPU card 16 that is currently operating is switched from the signal processing state to the standby state after the equivalence is completed. In the example shown in FIG. 6, when the first CPU card is restored, the first CPU card is copied by copying the data of the third CPU card to the first CPU card and then executing the authority switching processing routine shown in FIG. Operates normally, and the third CPU card switches to a standby state.

図4に示すルーチンによれば、同値化完了フラグが立っている正常なCPUカード16は、次の優先度を持つCPUカード16にデータがコピーされ同値化される。優先度順にコピーが実行され、一番優先度の低いCPUカード16にデータがコピーされると全CPUカード16の同値化が終了する。   According to the routine shown in FIG. 4, the normal CPU card 16 with the equivalence completion flag set has its data copied to the CPU card 16 having the next priority and is made equivalent. When copying is performed in order of priority and data is copied to the CPU card 16 having the lowest priority, the equivalence of all the CPU cards 16 is completed.

(権限切替処理ルーチン)
次に、図5と図6を参照して、CPUカード16の権限を切り替える権限切替処理について説明する。
(Authorization switching processing routine)
Next, an authority switching process for switching the authority of the CPU card 16 will be described with reference to FIGS.

図5は、本発明の実施の形態1における各CPUカード16が実行する権限切替処理ルーチンのフローチャートである。このルーチンは、各CPUカード16において所定時間毎に実行される。   FIG. 5 is a flowchart of the authority switching process routine executed by each CPU card 16 according to the first embodiment of the present invention. This routine is executed in each CPU card 16 every predetermined time.

上述した図6には、第1CPUカードが故障して、第3CPUカードが信号処理状態(稼働状態)となっている例が示されている。ここでは、さらに第3CPUカードが故障した場合を例に挙げて説明する。   FIG. 6 described above shows an example in which the first CPU card has failed and the third CPU card is in the signal processing state (operating state). Here, a case where the third CPU card further fails will be described as an example.

図5のステップS120において、各CPUカード16は、全CPUカードの優先度を確認する。具体的には、各CPUカード16は、上述した優先度取得手段301により全CPUカードの優先度を取得する。図6に示す例では、優先度603の欄に示す全CPUカードの優先度が取得される。   In step S120 of FIG. 5, each CPU card 16 confirms the priority of all CPU cards. Specifically, each CPU card 16 acquires the priorities of all CPU cards by the above-described priority acquisition unit 301. In the example shown in FIG. 6, the priorities of all the CPU cards shown in the priority level 603 column are acquired.

ステップS121において、各CPUカード16は、全CPUカードの状態を確認する。具体的には、各CPUカード16は、上述した状態判定手段302により各CPUカード16の状態が正常であるか異常(故障)であるかを判定する。図6に示す例において、さらに第3CPUカードが故障した場合には、ステップS121において、第1CPUカードの状態は重故障、第2CPUカードの状態は正常、第3CPUカードの状態は重故障であると判定される。   In step S121, each CPU card 16 confirms the state of all CPU cards. Specifically, each CPU card 16 determines whether the state of each CPU card 16 is normal or abnormal (failure) by the state determination unit 302 described above. In the example shown in FIG. 6, if the third CPU card further fails, in step S121, the state of the first CPU card is serious, the state of the second CPU card is normal, and the state of the third CPU card is serious. Determined.

ステップS122において、各CPUカード16は、正常なCPUカードのうち自カードの優先度が最も高いか否かを判定する。具体的には、権限切替手段305は、ステップS121において正常であると判定されたCPUカード16のうち、ステップS120において取得された自カードの優先度が最も高いか否かを判定する。   In step S122, each CPU card 16 determines whether or not its own card has the highest priority among normal CPU cards. Specifically, the authority switching unit 305 determines whether the priority of the own card acquired in step S120 is the highest among the CPU cards 16 determined to be normal in step S121.

ステップS122において判定条件が成立する場合には、ステップS123の処理を実行する。ステップS123では、自カードを、信号を処理する信号処理状態(稼働状態)として動作させる。その後、本ルーチンは終了される。   If the determination condition is satisfied in step S122, the process of step S123 is executed. In step S123, the card is operated as a signal processing state (operation state) for processing a signal. Thereafter, this routine is terminated.

一方、ステップS122において判定条件が成立しない場合には、ステップS124の処理を実行する。ステップS124では、自カードを待機状態にする。その後、本ルーチンは終了される。   On the other hand, if the determination condition is not satisfied in step S122, the process of step S124 is executed. In step S124, the own card is set in a standby state. Thereafter, this routine is terminated.

以上説明したように、本実施形態のプログラマブルロジックコントローラでは、CPUカード16が複数枚存在する場合、優先度の高いCPUカード16から優先度の低いCPUカード16まで、自動的にデータが引継がれ、PLC1の機能を停止させることなくプラント機器を稼動させることができる。   As described above, in the programmable logic controller of the present embodiment, when there are a plurality of CPU cards 16, data is automatically taken over from the CPU card 16 having a high priority to the CPU card 16 having a low priority. Plant equipment can be operated without stopping the function of the PLC 1.

また、優先度の高いCPUカード16が、交換などで故障から復帰した場合も、以上説明したとおり、自動的に復帰するため、PLC1の機能を停止させることなくプラント機器を稼動させることができる。   Further, even when the CPU card 16 having a high priority is restored from a failure by replacement or the like, as described above, the CPU card 16 is automatically restored, so that the plant equipment can be operated without stopping the function of the PLC 1.

このような仕組みを取り入れることにより、電源12や機能性カード14を共用し、従来の構成よりも安価に冗長化構成を実現することができる。   By incorporating such a mechanism, the power supply 12 and the functional card 14 can be shared, and a redundant configuration can be realized at a lower cost than the conventional configuration.

実施の形態2.
次に、図6〜図8を主に参照して本発明の実施の形態2について説明する。
Embodiment 2. FIG.
Next, a second embodiment of the present invention will be described with reference mainly to FIGS.

図6は、本発明の実施の形態2において利用するテーブルの一例を示す図である。図6に示すテーブルには、CPUカード名称601、スロット位置602、優先度603、引継元カード604、引継先カード605、現在動作中のカード606、故障状況607についてのカラムがあり、各CPUカード16と各種項目とが関連付けられている。   FIG. 6 is a diagram showing an example of a table used in Embodiment 2 of the present invention. The table shown in FIG. 6 includes columns for the CPU card name 601, slot position 602, priority 603, takeover source card 604, takeover destination card 605, currently operating card 606, and failure status 607. 16 and various items are associated with each other.

[実施の形態2の構成]
本発明の実施の形態2では、上述した図6に示すテーブルの情報を、後述するテーブル更新処理ルーチン(図8)を用いて随時更新し、実施の形態1で述べた同値化管理処理ルーチン(図4)、権限切替処理ルーチン(図5)の実行の際に、このテーブルを参照することで実施の形態1と同様の冗長化管理を実現する。
[Configuration of Embodiment 2]
In the second embodiment of the present invention, the table information shown in FIG. 6 described above is updated at any time using a table update processing routine (FIG. 8) described later, and the equivalence management processing routine (described in the first embodiment) ( 4), when executing the authority switching processing routine (FIG. 5), the same redundancy management as in the first embodiment is realized by referring to this table.

本実施形態のPLCは、図6に示すテーブルを備える。テーブルは、各CPUカード16の記憶部またはキャッシュメモリ上に記憶される。上述した通り、テーブルは、CPUカード名称601、スロット位置602、優先度603、引継元カード604、引継先カード605、現在動作中のカード606、故障状況607のカラムを備え、各CPUカードについて各項目の情報を関連付けて記憶できる。   The PLC of the present embodiment includes the table shown in FIG. The table is stored on the storage unit or cache memory of each CPU card 16. As described above, the table includes columns for the CPU card name 601, slot position 602, priority 603, takeover source card 604, takeover destination card 605, currently operating card 606, and failure status 607. Item information can be stored in association with each other.

図7は、本発明の実施の形態2において、冗長化管理プログラム211により実現される各機能について説明するための図である。ここでは、第1CPUカード161を例に挙げて説明するが、各CPUカード16において同じ機能が実現される。   FIG. 7 is a diagram for explaining each function realized by the redundancy management program 211 in Embodiment 2 of the present invention. Here, the first CPU card 161 will be described as an example, but the same function is realized in each CPU card 16.

第1CPUカード161の処理部は、実施の形態1と同様に、記憶部から冗長化管理プログラム211を読み出し、優先度取得手段301、状態判定手段302、引継先決定手段303、同値化手段304、権限切替手段305として機能する。さらに実施の形態2では、テーブル更新手段306としても機能する。   As in the first embodiment, the processing unit of the first CPU card 161 reads the redundancy management program 211 from the storage unit, and obtains the priority acquisition unit 301, the state determination unit 302, the takeover destination determination unit 303, the equivalence unit 304, It functions as authority switching means 305. Furthermore, in the second embodiment, it also functions as the table update unit 306.

テーブル更新手段306は、状態判定手段302と、引継先決定手段303とを継続的に実行し、得られた複数のCPUカードそれぞれの状態と引継先カードとを随時更新してテーブルに記憶する。また、テーブル更新手段306は、CPUカード名称、スロット位置や、優先度を所定のタイミングで取得してテーブルに記憶する。   The table update unit 306 continuously executes the state determination unit 302 and the takeover destination determination unit 303, and updates the respective states and takeover destination cards of the obtained CPU cards as needed and stores them in the table. The table updating unit 306 acquires the CPU card name, slot position, and priority at a predetermined timing and stores them in the table.

(テーブル更新処理ルーチン)
次に、図8を参照して、本発明の実施の形態2において、図6に示すテーブルの情報を随時更新するためのテーブル更新処理ルーチンについて説明する。
(Table update processing routine)
Next, a table update processing routine for updating the information of the table shown in FIG. 6 as needed in the second embodiment of the present invention will be described with reference to FIG.

図8は、本発明の実施の形態2において、各CPUカード16が実行するテーブル更新処理ルーチンのフローチャートである。このルーチンは、各CPUカード16において所定時間毎に実行される。   FIG. 8 is a flowchart of a table update processing routine executed by each CPU card 16 in the second embodiment of the present invention. This routine is executed in each CPU card 16 every predetermined time.

図8のステップS200において、各CPUカード16は、全てのCPUカード16のCPUカード名称、スロット位置、優先度を確認する。具体的には、テーブル更新手段306は、CPUカード名称、スロット位置について各CPUカード16に問い合わせる。優先度については、上述した優先度取得手段301により取得される。さらに、ステップS200では、各CPUカードのCPUカード名称、スロット位置、優先度が、図6に示すテーブルのCPUカード名称601の欄、スロット位置602の欄、優先度603の欄に書き込まれる。   In step S200 of FIG. 8, each CPU card 16 confirms the CPU card names, slot positions, and priorities of all the CPU cards 16. Specifically, the table update unit 306 inquires each CPU card 16 about the CPU card name and slot position. The priority is acquired by the priority acquisition unit 301 described above. In step S200, the CPU card name, slot position, and priority of each CPU card are written in the CPU card name 601 column, slot position 602 column, and priority 603 column of the table shown in FIG.

ステップS201において、各CPUカード16は、全てのCPUカード16の状態を確認しテーブルに記憶する。具体的には、テーブル更新手段306は、上述した状態判定手段302による判定結果を、図6に示すテーブルの故障状況607の欄に書き込む。   In step S201, each CPU card 16 checks the state of all the CPU cards 16 and stores them in the table. Specifically, the table update unit 306 writes the determination result by the state determination unit 302 described above in the column of the failure status 607 of the table shown in FIG.

ステップS202において、各CPUカード16は、引継元、引継先を算出しテーブルに記憶する。具体的には、テーブル更新手段306は、上述した引継先決定手段303を用いて算出された引継元カード、引継先カードを、図6に示すテーブルの引継元カード604の欄、引継先カード605の欄に書き込む。   In step S202, each CPU card 16 calculates a takeover source and a takeover destination and stores them in a table. Specifically, the table update unit 306 displays the transfer source card and transfer destination card calculated using the transfer destination determination unit 303 described above in the column of the transfer source card 604 and the transfer destination card 605 in the table shown in FIG. Write in the field.

ステップS203において、各CPUカード16は、故障したCPUカード16が復帰または新規に追加されたか否かを判定する。この判定処理は、図4のステップS104の処理と同様である。判定条件が成立しない場合には、ステップS201の処理に戻って処理を継続する。一方、判定条件が成立する場合には、一旦、本ルーチンの処理は終了され、次回の本ルーチンの実行時に、ステップS200において、復帰または新規に追加されたCPUカード16についてのCPUカード名称、スロット位置、優先度がテーブルに書き込まれる。   In step S203, each CPU card 16 determines whether or not the failed CPU card 16 has been returned or newly added. This determination process is the same as the process of step S104 in FIG. If the determination condition is not satisfied, the process returns to step S201 and continues. On the other hand, if the determination condition is satisfied, the processing of this routine is once ended, and the CPU card name and slot for the CPU card 16 that has been returned or newly added in step S200 at the next execution of this routine. The position and priority are written to the table.

以上説明した図8に示すルーチンによれば、テーブルの情報は随時更新され、最新の状態に保たれる。   According to the routine shown in FIG. 8 described above, the information in the table is updated at any time and kept in the latest state.

そして、実施の形態2では、図4の同値化管理処理ルーチンと、図5の権限切替処理ルーチンを実行する場合に、図8のテーブル更新処理ルーチンで随時更新されるテーブルの情報を利用する。   In the second embodiment, when the equivalence management process routine of FIG. 4 and the authority switching process routine of FIG. 5 are executed, the information of the table updated at any time in the table update process routine of FIG. 8 is used.

具体的には、実施の形態2における同値化管理処理ルーチン(図4)では、ステップS100、ステップS101、ステップS102、ステップS103の処理において用いられる、優先度、状態(故障状況)、引継先カードの各情報をテーブルから取得する。   Specifically, in the equivalence management process routine (FIG. 4) according to the second embodiment, the priority, state (failure status), takeover destination card used in the processes of step S100, step S101, step S102, and step S103. Each information of is acquired from the table.

また、実施の形態2における権限切替処理ルーチン(図5)では、ステップS120、ステップS121、ステップS122の処理において用いられる、優先度、状態(故障状況)の各情報をテーブルから取得する。   Further, in the authority switching processing routine (FIG. 5) in the second embodiment, each information of priority and state (failure situation) used in the processing of step S120, step S121, and step S122 is acquired from the table.

以上説明したように、本実施形態のプログラマブルロジックコントローラでは、最新の情報に随時更新されるテーブルを参照して、同値化管理処理ルーチン(図4)、権限切替処理ルーチン(図5)を実行することができる。これにより、実施の形態1と同様の冗長化管理を実現することができる。   As described above, in the programmable logic controller of this embodiment, the equivalence management processing routine (FIG. 4) and the authority switching processing routine (FIG. 5) are executed with reference to the table updated as necessary with the latest information. be able to. Thereby, the same redundancy management as in the first embodiment can be realized.

1 PLC(プログラマブルロジックコントローラ)
10 バックボード
12 電源
14 機能性カード
16 CPUカード
161 第1CPUカード
16n 第nCPUカード
201、20n メインプログラム
211、21n 冗長化管理プログラム
221、22n 各パラメータ
231、23n テンポラリエリア
301 優先度取得手段
302 状態判定手段
303 引継先決定手段
304 同値化手段
305 権限切替手段
306 テーブル更新手段
1 PLC (Programmable Logic Controller)
10 Backboard 12 Power supply 14 Functional card 16 CPU card 161 1st CPU card 16n nth CPU card 201, 20n Main program 211, 21n Redundant management program 221, 22n Each parameter 231, 23n Temporary area 301 Priority acquisition means 302 State determination Means 303 Succession destination determining means 304 Equivalence means 305 Authority switching means 306 Table updating means

Claims (2)

プラント機器を制御または監視するプログラマブルロジックコントローラであって、
電力を供給する電源と、
前記プラント機器を制御または監視する信号を処理可能な複数のCPUカードと、
前記プラント機器との間で前記信号を入出力する機能性カードと、を備え、
前記複数のCPUカードの各CPUカードは、
前記電源および前記機能性カードに接続し、
前記複数のCPUカードそれぞれの優先度を取得する優先度取得手段と、
前記複数のCPUカードそれぞれの状態が正常であるか異常であるかを判定する状態判定手段と、
前記正常なCPUカードのうち、優先度が自カードの次に高いカードを引継先カードとする引継先決定手段と、
前記自カードから前記引継先カードにデータをコピーして同値化する同値化手段と、
前記正常なCPUカードのうち、前記自カードの優先度が最も高い場合に、前記自カードを、前記信号を処理する信号処理状態とし、他の場合に、前記自カードを待機状態とする権限切替手段と、を備えること、
を特徴とするプログラマブルロジックコントローラ。
A programmable logic controller for controlling or monitoring plant equipment,
A power supply for supplying power;
A plurality of CPU cards capable of processing signals for controlling or monitoring the plant equipment;
A functional card that inputs and outputs the signal to and from the plant equipment,
Each CPU card of the plurality of CPU cards is
Connect to the power supply and the functional card,
Priority acquisition means for acquiring the priority of each of the plurality of CPU cards;
State determining means for determining whether each of the plurality of CPU cards is normal or abnormal;
Of the normal CPU cards, a takeover destination determining means that takes the next highest priority card as the takeover card,
An equivalence means for copying data from the own card to the takeover card and making it equivalent;
Among the normal CPU cards, when the priority of the own card is the highest, the self-card is set to a signal processing state for processing the signal, and in other cases, the authority switching to put the own card in a standby state Providing means,
Programmable logic controller characterized by
前記各CPUカードと、優先度と、状態と、引継先カードとを関連付けたテーブルを記憶する記憶部と、
前記状態判定手段と前記引継先決定手段とを継続的に実行し、前記各CPUカードの状態と引継先カードとを得て、前記テーブルを随時更新するテーブル更新手段を更に備え、
前記同値化手段は、前記自カードから前記テーブルに記憶された引継先カードにデータをコピーして同値化し、
前記権限切替手段は、前記テーブルに記憶された正常なCPUカードのうち、前記自カードの優先度が最も高い場合に、前記自カードを、前記信号を処理する信号処理状態とし、他の場合に、前記自カードを待機状態とすること、
を特徴とする請求項1記載のプログラマブルロジックコントローラ。
A storage unit for storing a table in which each CPU card, priority, state, and takeover destination card are associated;
The state determination means and the takeover destination determination means are continuously executed to obtain a state of each CPU card and a takeover destination card, and further includes a table update means for updating the table as needed.
The equivalence means copies the data from the own card to the takeover destination card stored in the table and makes the equivalence,
The authority switching means sets the own card to a signal processing state for processing the signal when the priority of the own card is the highest among normal CPU cards stored in the table, and in other cases. , Putting the card in a standby state,
The programmable logic controller according to claim 1.
JP2014158788A 2014-08-04 2014-08-04 Programmable logic controller Expired - Fee Related JP6176206B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014158788A JP6176206B2 (en) 2014-08-04 2014-08-04 Programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014158788A JP6176206B2 (en) 2014-08-04 2014-08-04 Programmable logic controller

Publications (2)

Publication Number Publication Date
JP2016035700A true JP2016035700A (en) 2016-03-17
JP6176206B2 JP6176206B2 (en) 2017-08-09

Family

ID=55523508

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014158788A Expired - Fee Related JP6176206B2 (en) 2014-08-04 2014-08-04 Programmable logic controller

Country Status (1)

Country Link
JP (1) JP6176206B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173985A (en) * 1991-12-24 1993-07-13 Matsushita Electric Works Ltd Programmable controller
JPH06250869A (en) * 1993-03-01 1994-09-09 Hitachi Ltd Distributed control system
JPH1063303A (en) * 1996-08-21 1998-03-06 Toshiba Corp Computer controller
JPH10177492A (en) * 1996-12-17 1998-06-30 Toshiba Corp Multiplexing programmable controller, method for multiplexing the same and control system
JP2012168635A (en) * 2011-02-10 2012-09-06 Toshiba Corp Duplex control device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05173985A (en) * 1991-12-24 1993-07-13 Matsushita Electric Works Ltd Programmable controller
JPH06250869A (en) * 1993-03-01 1994-09-09 Hitachi Ltd Distributed control system
JPH1063303A (en) * 1996-08-21 1998-03-06 Toshiba Corp Computer controller
JPH10177492A (en) * 1996-12-17 1998-06-30 Toshiba Corp Multiplexing programmable controller, method for multiplexing the same and control system
JP2012168635A (en) * 2011-02-10 2012-09-06 Toshiba Corp Duplex control device

Also Published As

Publication number Publication date
JP6176206B2 (en) 2017-08-09

Similar Documents

Publication Publication Date Title
JP5819575B2 (en) Method and apparatus for upgrading and providing control redundancy in a process plant
JP5660798B2 (en) Information processing device
US20160299497A1 (en) Methods for on-process migration from one type of process control device to different type of process control device
EP3438829B1 (en) Automatic firmware upgrade of an embedded node
JP2006309345A (en) Parallel-type monitoring control system and update method of firmware of parallel-type controller of same system
US20160357547A1 (en) Engineering tool program and network system
EP2693343B1 (en) Parallel processing system and parallel processing system operation method
WO2014174546A1 (en) Programmable logic controller system and programmable logic controller
JP2012155686A (en) Information processing apparatus, control method, and program
US8429251B2 (en) Method for the consistent provision of configuration data in an industrial automation system comprising a plurality of networked control units, and industrial automation system
JP6176206B2 (en) Programmable logic controller
KR20220101650A (en) Control and monitoring of machine assemblies
US20110270802A1 (en) Method for controlling changes of replication directions in a multi-site disaster recovery environment for high available application
JP5233869B2 (en) Processing system and method for executing program executed by processing apparatus
CN110673793B (en) Storage device node event management method and system, electronic device and storage medium
JP2009026182A (en) Program execution system and execution device
EP3040861A1 (en) Method and system for ensuring integrity of critical data
JP6351882B1 (en) Programmable logic controller and program
JP2021082081A (en) Information processing device and configuration method
JP2009042846A (en) Distributed monitoring control system
WO2016125455A1 (en) Communication system, communication device, and communication method
JP6232877B2 (en) Information processing apparatus, information processing method, and program
JP5973868B2 (en) Control parameter setting method, apparatus and control system
JP6870897B2 (en) Surveillance systems, devices and engineering tools
JP2018022367A (en) Controller and control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170606

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170613

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170626

R150 Certificate of patent or registration of utility model

Ref document number: 6176206

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees