JP5400691B2 - Programmable display monitoring operation method, monitoring operation program, and programmable display - Google Patents
Programmable display monitoring operation method, monitoring operation program, and programmable display Download PDFInfo
- Publication number
- JP5400691B2 JP5400691B2 JP2010094729A JP2010094729A JP5400691B2 JP 5400691 B2 JP5400691 B2 JP 5400691B2 JP 2010094729 A JP2010094729 A JP 2010094729A JP 2010094729 A JP2010094729 A JP 2010094729A JP 5400691 B2 JP5400691 B2 JP 5400691B2
- Authority
- JP
- Japan
- Prior art keywords
- plc
- station number
- programmable display
- display
- monitoring
- 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.)
- Active
Links
Images
Description
本発明は、上下水プラント機器の監視操作をするプログラマブル表示器の監視操作方法、監視操作プログラムおよびプログラマブル表示器に関する。 The present invention relates to a monitoring operation method, a monitoring operation program, and a programmable display for a programmable display that performs a monitoring operation for water and sewage plant equipment.
プログラマブル表示器は、プログラマブルコントローラ(以下PLCと称す。)などのホストマシンと情報を送受信しており、ホストマシンを監視・制御するのに有用な機器となっている。 The programmable display device transmits / receives information to / from a host machine such as a programmable controller (hereinafter referred to as PLC), and is a useful device for monitoring and controlling the host machine.
プログラマブル表示器がイーサネット(登録商標)伝送路に二重化されたPLCと接続されている場合、プログラマブル表示器からは、稼動系のPLC、待機系のPLCの両方の情報を取得することができる。しかしながら、情報の監視と、機器の操作は、稼動系のPLCのみを対象としなければならない。このため、どちらが稼動しているかを判断し、稼動系のPLCの内部レジスタをプログラマブル表示器内の内部レジスタに転写し、その情報により表示するように構成されている。 When the programmable display is connected to a duplexed PLC on the Ethernet (registered trademark) transmission path, information on both the active PLC and the standby PLC can be acquired from the programmable display. However, information monitoring and device operation must be targeted only for active PLCs. For this reason, it is configured to determine which one is in operation, transfer the internal register of the active PLC to the internal register in the programmable display, and display based on the information.
機器操作も同様に、プログラマブル表示器内の内部レジスタを稼動系のPLCの内部レジスタに転写し機器操作するように構成されている。つまり、プログラマブル表示器内の内部レジスタと稼動系のPLCの内部レジスタが別レジスタであり、レジスタ間の読みかえをする必要がある。読み替えをするために、レジスタ間対応表が使用されている。 Similarly, the device operation is configured such that the internal register in the programmable display is transferred to the internal register of the active PLC and the device is operated. That is, the internal register in the programmable display and the internal register of the active PLC are separate registers, and it is necessary to exchange between the registers. A register correspondence table is used for the replacement.
また、特許文献1のPLC二重化切換装置では、イーサネット伝送路に二重化されたPLCが接続された場合で、一方のPLCが異常になったときでも、他方のPLCと通信可能とする技術が開示されている。
Further, the PLC duplex switching device of
特許文献1では、上位監視装置が、二重化PLCの稼動系(マスタ)のみを監視しそれを1つの装置とみなしデータの送受信ができる。PLC側で稼動系の切換を行い稼動系のみの情報をPLCが送信することを特徴としている。上位監視装置は共有メモリに割りついた稼動系の情報を読むことになり、これは監視装置の内部レジスタの情報になる。また、上位監視装置は待機系(スレーブ)の情報を読むことはない。つまり、上位監視装置は、共有メモリの稼動系の情報エリアを参照するが、そのレジスタ指定はPLC内のレジスタ指定とは異なる。さらに、待機系のPLCの状態については、稼動系のPLCのみを監視の対象としているため、監視できないことになる。
In
イーサネット伝送路では、伝送路上に接続されている機器などを識別するためにIP(Internet Protocol)アドレスが割り振られており、稼動系のPLCも待機系のPLCも同一プログラムがローディングされておりそれぞれ別のIPアドレスが割り振られている。しかし、プログラマブル表示器からは、1つのIPアドレスとして稼動系のPLCのみを認識したほうが都合がよい。しかしながら、前記のIPアドレスの制約上、二重化されたPLCは同一のIPアドレスを使用することは許されない。 In the Ethernet transmission path, an IP (Internet Protocol) address is assigned to identify devices connected on the transmission path, and the same program is loaded in both the active PLC and standby PLC. IP address is assigned. However, it is more convenient to recognize only the active PLC as one IP address from the programmable display. However, duplicated PLCs are not allowed to use the same IP address due to the restriction of the IP address.
プログラマブル表示器がシングルのPLCとの接続の場合、該当のPLCレジスタとプログラマブル表示器の表示箇所が1:1で固定されるため、PLC内部のレジスタを直接プログラマブル表示器の表示用に指定できる。 When the programmable display is connected to a single PLC, the display location of the corresponding PLC register and the programmable display is fixed at 1: 1, so that the register in the PLC can be directly designated for display on the programmable display.
一方、プログラマブル表示器が二重化PLCとの接続の場合、稼動系のPLCの情報のみを表示に使うため、プログラマブル表示器の表示部品のレジスタ指定が、1:1で固定できない。このため、稼動系のPLCの情報のみを監視制御するように切り替えを行い、待機系のPLCについても必要に応じてPLCのステータス状態の監視を可能としている。 On the other hand, when the programmable display is connected to the duplexed PLC, only the information on the active PLC is used for display, so the register designation of the display component of the programmable display cannot be fixed at 1: 1. Therefore, switching is performed so that only the information on the active PLC is monitored and controlled, and the status of the PLC can be monitored as necessary for the standby PLC.
背景技術ですでに説明したように、従来、プログラマブル表示器の内部レジスタに、稼動系のPLCのデータを転写し、そのデータを表示用に使わなければならないため、対シングルPLCと同様にプログラマブル表示器のアプリケーションプログラムを作成することができず、PLC内部レジスタとプログラマブル表示器内部のレジスタ間の読みかえ(レジスタ間対応表)も必要であった。 As already explained in the background art, since the PLC data of the operating system must be transferred to the internal register of the programmable display and used for display, the programmable display is the same as for a single PLC. An application program for the display device could not be created, and it was necessary to replace the register in the PLC and the register in the programmable display (register correspondence table).
このため、複数のPLCで構成された二重化PLCの場合でも、プログラマブル表示器より直接PLC内部のレジスタを表示、操作に使用でき、プログラマブル表示器の内部レジスタを使用せず、対シングルPLCと同様にPLC内部レジスタを直接使用するプログラマブル表示器のアプリケーションプログラムを作成することが望まれていた。 For this reason, even in the case of a duplex PLC composed of a plurality of PLCs, the registers in the PLC can be displayed and operated directly from the programmable display, and the internal registers of the programmable display are not used, just like a single PLC. It has been desired to create an application program for a programmable display that directly uses PLC internal registers.
本発明は、前記の課題を解決するための発明であって、プログラマブル表示器が複数のPLCに接続されている場合において、稼動系のPLCが切り替わったときに稼動系のPLCを監視・操作することができるプログラマブル表示器の監視操作方法、監視操作プログラムおよびプログラマブル表示器を提供することを目的とする。 The present invention is an invention for solving the above-described problems, and monitors and operates an active PLC when the active PLC is switched when a programmable display is connected to a plurality of PLCs. It is an object of the present invention to provide a programmable display monitoring method, a monitoring operation program, and a programmable display.
前記目的を達成するため、本発明のプログラマブル表示器の監視操作方法は、第1のPLC(例えば、A系PLC20A)および第2のPLC(例えば、B系PLC20B)を有する二重化PLCにネットワークを介して接続される、プログラマブル表示器(10)の監視操作方法であって、
プログラマブル表示器は、第1のPLCと関連付けられた第1の局番と、第2のPLCと関連付けられた第2の局番とが局番管理情報(例えば、局番テーブル121)として記憶部に登録されており、
プログラマブル表示器に配置された各表示操作部品の参照先の局番には、稼動系のPLCの情報を監視表示するためまたは稼動系のPLCに操作指令を送信するための設定として第1の局番が設定されており、
プログラマブル表示器は、各PLCから受信した各PLCの稼動または停止のステ−タス情報に基づいて稼動状態を監視し、待機系のPLCが稼動したと判定したとき、各表示操作部品に設定されている参照先の局番を第2の局番に書き替えをし、書き替え後プログラマブル表示器をリセットして監視操作を継続することを特徴とする。
In order to achieve the above object, a monitoring operation method for a programmable display according to the present invention includes a duplex PLC having a first PLC (for example,
In the programmable display, the first station number associated with the first PLC and the second station number associated with the second PLC are registered in the storage unit as station number management information (for example, the station number table 121). And
The reference station number of each display operation component arranged on the programmable display has a first station number as a setting for monitoring and displaying information of the active PLC or for transmitting an operation command to the active PLC. Is set,
The programmable display monitors the operating state based on the status information of each PLC operating or stopped received from each PLC, and when it is determined that the standby PLC is operating, it is set to each display operation component. The station number of the reference destination is rewritten to the second station number, and after the rewriting, the programmable display is reset and the monitoring operation is continued.
本発明によれば、プログラマブル表示器が複数のPLCに接続されている場合において、稼動系のPLCが切り替わったときに稼動系のPLCを監視・操作することができる。 According to the present invention, when a programmable display is connected to a plurality of PLCs, the active PLC can be monitored and operated when the active PLC is switched.
以下、本発明の実施形態について図面を参照して詳細に説明する。プログラマブル表示器のアプリケーションプログラム作成の際に、プログラマブル表示器とシングルPLC(図示せず)のイーサネット接続の場合、1:1接続のため、直接PLCの内部レジスタを指定しており、プログラマブル表示器内の内部レジスタを使用する必要がない。本実施形態では、プログラマブル表示器と複数のPLCで構成される二重化PLCのイーサネット接続の場合においても、直接PLCの内部レジスタを指定することができる方法について、図1および図2を参照して説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. When creating an application program for a programmable display, in the case of Ethernet connection of a programmable display and a single PLC (not shown), the PLC internal register is directly specified for 1: 1 connection, and the programmable display There is no need to use internal registers. In the present embodiment, a method capable of directly designating an internal register of a PLC will be described with reference to FIG. 1 and FIG. 2 even in the case of Ethernet connection of a duplex PLC composed of a programmable display and a plurality of PLCs. To do.
<実施形態1>
図1は、プログラマブル表示器と二重化PLCを含む上下水プラント監視制御システムを示す構成図である。上下水プラント監視制御システムは、プログラマブル表示器10、二重化PLC20、入出力装置(I/O)4、上下水プラント5から構成されており、上下水プラント監視制御システムの管理者は、プログラマブル表示器10を用いて、上下水プラント5の情報について入出力装置4、二重化PLC20を介して監視・操作(制御)することができる。
<
FIG. 1 is a configuration diagram illustrating a water and sewage plant monitoring and control system including a programmable display and a duplexed PLC. The water and sewage plant monitoring and control system is composed of a
プログラマブル表示器10は、監視・操作するための表示・操作部14を有し、イーサネットI/F(インターフェイス)15を介して、イーサネットN1(イーサネットのネットワーク)に接続されている。
The
二重化PLC20は、A系PLC20A(第1のPLC)と、B系PLC20B(第2のPLC)とから構成されている。A系PLC20Aは、プロセッサ21A、イーサネットI/F25A、二重化I/F26Aを有する。また、B系PLC20Bは、プロセッサ21B、イーサネットI/F25B、二重化I/F26Bを有する。
The duplex PLC 20 is composed of an
A系PLC20Aは、イーサネットI/F25Aを介してイーサネットN1に接続されており、二重化I/F26Aを介して、FLネットN3(FLネットのネットワーク)に接続されている。B系PLC20Bは、イーサネットI/F25Bを介してイーサネットN1に接続されており、二重化I/F26Bを介して、FLネットN3に接続されている。なお、FLネットとは、FA(Factory Automation)用制御ネットワークであり、伝送プロトコルとしてUDP(User Datagram Protocol)/IPおよびFAリンクプロトコルが使用される。
The A-system PLC 20A is connected to the Ethernet N1 via the Ethernet I / F 25A, and is connected to the FL net N3 (FL net network) via the duplexed I / F 26A. The
ここで、A系PLC20Aとは、両PLCが正常な場合、稼動系のPLCとなるものをいう。一方、B系PLC20Bとは、両PLCが正常な場合、待機系のPLCとなり、A系PLC20Aが異常になると、稼動系のPLCなるものをいう。但し、この逆の運用も可能なものとする。
Here, the
図2は、プログラマブル表示器および二重化PLCの機能を示すブロック図である。本実施形態の特徴であるプログラマブル表示器のプログラムを作成する際のPLCの内部レジスタの指定方法の概要についても説明する。 FIG. 2 is a block diagram illustrating functions of the programmable display and the duplexed PLC. An outline of a method for specifying an internal register of the PLC when creating a program for a programmable display, which is a feature of the present embodiment, will also be described.
プログラマブル表示器10のプロセッサ11は、プログラマブル表示器10のアプリケーションプログラム12および内部レジスタ13を有している。アプリケーションプログラム12は、後記する稼動系のPLC、待機系のPLCを識別するための局番とIPアドレスを関連付けした局番テーブル121(局番管理情報)(図5参照)、プログラマブル表示器10の参照先である参照先局番切替処理をする参照先局番切替処理部122(図6参照)を有している。なお、局番の詳細については後記する。また、局番テーブル121は、プロセッサ11内に記憶しているが、図示しないメモリ(記憶部)に記憶しておき、必要に応じてプロセッサ11にロードしてもよい。
The
A系PLC20Aのプロセッサ21Aは、アプリケーションプログラム22Aおよび内部レジスタ23Aを有している。同様に、B系PLC20Bのプロセッサ21Bは、アプリケーションプログラム22Bおよび内部レジスタ23Bを有している。
The
ここで作成するプログラマブル表示器10のアプリケーションプログラム12、PLC用のアプリケーションプログラム22A,22Bは、パソコン(パーソナルコンピュータ)30のプロセッサ31により実行されるプログラミングツール32を使用して作成し、イーサネットN1経由でローディングされる。なお、アプリケーションプログラム12、PLC用のアプリケーションプログラム22A,22Bは、プログラマブル表示器10および各PLCのメモリ(図示せず)に記憶し、必要に応じてロードして、プロセッサ11,21A,22Bで実行してもよいことは言うまでもない。
The
図2において、A系PLC20A、B系PLC20B、プログラマブル表示器10には、それぞれを識別するためのIPアドレスが割り付けられている。A系PLC20AのIPアドレスを「0」(通常IPアドレスは、ドット付き十進表記で表記されるが、図中では、IPアドレス0と表記している。)とし、B系PLC20BのIPアドレスを「1」とし、プログラマブル表示器10のIPアドレスを「2」とし、イーサネットN1のネットワークを構成する。またPLCの内部データの一致化を行うために、FLネットN3を介して、稼動系のPLCから待機系のPLCへ内部データを転送している。
In FIG. 2, an IP address for identifying each of the
また、プログラマブル表示器10の局番テーブル121において、A系PLC20Aは局番0(第1の局番)と関連づけられており、B系PLC20Bは局番1(第2の局番)と関連づけられている。また、プログラマブル表示器10は局番2と関連づけられている。
In the station number table 121 of the
本実施形態では、プログラマブル表示器10のアプリケーションプログラム12を作成する際、表示・操作部14に使用する表示部品、操作部品、設定部品には、プログラマブル表示器10の内部レジスタ13でなく、例えば、A系PLC20A、つまり局番0のPLCの内部レジスタ23Aを直接指定することができる。
In this embodiment, when creating the
すなわち、二重化PLC20を1台のプログラマブル表示器10で監視、操作(制御)する場合、プログラマブル表示器10のアプリケーションプログラム12のマクロ処理でどちらのPLCが稼動系か判断し、その情報を表示・操作部14で使用するが、このアプリケーションプログラム12を作成する際に、プログラマブル表示器10の内部レジスタ13の参照でなくPLCの内部レジスタ23Aまたは内部レジスタ23Bを参照するようにする。
That is, when the duplexed PLC 20 is monitored and operated (controlled) by a single
内部レジスタの指定方法の例について図1を参照して説明する。符号40には、プログラマブル表示器10の内部レジスタ13の例が示されている。一方、符号41には、A系PLC20Aの内部レジスタ23AおよびB系PLC20Bの内部レジスタ23Bの例が示されている。部品への監視、操作用レジスタの設定には、符号42に示すように、従来はプログラマブル表示器10の内部レジスタ13を参照していた。これに対し、本実施形態では、符号43に示すように、A系PLC20Aの内部レジスタ23AおよびB系PLC20Bの内部レジスタ23Bを直接参照できるようにしている。A系PLC20Aの内部レジスタ23AおよびB系PLC20Bの内部レジスタ23Bの識別は、局番によってなされる。
An example of an internal register designation method will be described with reference to FIG. Reference numeral 40 indicates an example of the
本実施形態では、稼動系であるA系PLC20Aが異常になると、待機系のB系PLC20Bが稼動系となるため、プログラマブル表示器10のアプリケーションプログラム12のマクロ処理で、全ての、表示・操作部14の表示部品、操作部品、設定部品のリンク先をB系PLC20Bに切り替える。切り替え方法は、前記で示した局番0(イーサネットI/F25Aが記憶)でPLCの内部レジスタを直接指定していたものを、全て局番1(イーサネットI/F25B)に書き替えることができる。
In this embodiment, when the
図3は、稼動系が切り替わる時(スイッチオーバー時)の動作を示す説明図である。A系PLC20Aが稼動系のとき故障するとB系PLC20Bに稼動系がスイッチオーバする。プログラマブル表示器10は、A系PLC20Aが稼動系であったため、A系PLC20Aを監視制御していたが、稼動系がB系PLC20Bにスイッチオーバしたことを判断し監視制御対象を、B系PLC20Bに切り替える。このスイッチオーバの際のプログラマブル表示器10の内部処理(マクロ処理)の内容を、図4(比較例)および図5(本実施形態)を参照して説明する。
FIG. 3 is an explanatory diagram showing an operation when the operating system is switched (at the time of switchover). If the
図4は、比較例である、稼動系のPLCを監視制御するための内部レジスタの説明とその処理方法を示す説明図である。図2を適宜参照する。比較例の場合、稼動系のPLCの内部レジスタ(内部レジスタ23Aもしくは内部レジスタ23B)を判断し、プログラマブル表示器10のアプリケーションプログラム12のマクロ処理を使用し、稼動系のPLCの内部レジスタとプログラマブル表示器10の内部レジスタ13との間でデータの転写処理を行い、監視制御を実現していた。このため、アプリケーションプログラム12の作成者は、PLCの内部レジスタ23A,23Bとプログラマブル表示器10の内部レジスタ13との間の対応表13Rを作成し、レジスタの割付を意識する必要があった。
FIG. 4 is an explanatory diagram illustrating an internal register for monitoring and controlling an active PLC, and a processing method thereof, as a comparative example. Please refer to FIG. 2 as appropriate. In the case of the comparative example, the internal register of the active PLC (
図5は、本実施形態の稼動系のPLCを監視制御するためのPLCの内部レジスタの定義方法とその処理方法を示す説明図である。本実施形態では、局番テーブル121において、A系PLC20Aを局番0、B系PLC20Bを局番1、プログラマブル表示器10を局番2として定義し、アプリケーションプログラム12を作成する。プログラマブル表示器10のアプリケーションプログラム12のマクロ処理において、PLCの稼動状況を判断し、参照先局番切替処理(図6参照、具体的には、局番0→1、局番1→0)を行う。
FIG. 5 is an explanatory diagram showing a method of defining an internal register of the PLC for monitoring and controlling the active PLC according to the present embodiment and a processing method thereof. In the present embodiment, in the station number table 121, the
本実施形態では、アプリケーションプログラム12のマクロ処理は、稼動系のPLCの状態を監視制御している。また、プログラマブル表示器10の表示操作部品毎にPLCの内部レジスタ23A,23Bの情報(符号80A1、符号80A2または符号80B1、符号80B2参照)を直接設定することが可能である。プログラマブル表示器10が対二重化PLC接続において、対シングルPLC接続と同様に、プログラマブル表示器10のアプリケーションプログラム12を作成することができる。また、このことにより、レジスタの対応表13Rも不要となりアプリケーションプログラム作成者の負担を減らすこともできる。さらに、プログラマブル表示器10のアプリケーションプログラム12の作成段階で稼動系と逆の局番を参照する(符号83、符号84)ことで待機系のPLCのレジスタ情報も監視可能とした。
In this embodiment, the macro process of the
次に、参照先局番切替処理について説明する。
図6は、参照先局番切替処理を示すフローチャートである。図6(a)は、プログラマブル表示器10のアプリケーションプログラム12のローディング後のイニシャル処理S1を示し、図6(b)は、所定時間毎(例えば、1秒周期)の定周期処理を示す。なお、本実施形態では、アプリケーションプログラム12のローディング直後は、プログラマブル表示器10に配置された各表示操作部品の参照先局番を0(A系PLCが稼動系)として説明する。
Next, reference destination station number switching processing will be described.
FIG. 6 is a flowchart showing the reference station number switching process. FIG. 6A shows the initial process S1 after loading of the
プロセッサ11は、図6(a)に示すイニシャル処理S1を実行すると(ステップS11)、イニシャル値として現状の局番をワークデータに設定し(ステップS12)、処理を終了する。具体的には、稼動系のPLCであるA系PLC20Aの局番0がワークW1に設定され、待機系のPLCであるB系PLC20Bの局番1がワークW2に設定される。なお、ワークには、内部レジスタ13の一時記憶領域を使用するとよい。
When executing the initial process S1 shown in FIG. 6A (step S11), the
プロセッサ11は、図6(b)に示す定周期処理を開始すると(ステップS21)、例えば1秒周期毎にステップS22からステップS27の処理をする。プロセッサ11は、A系PLC20AのRUN(稼動)またはSTOP(停止)のステ−タス情報をワークW11へ設定し(ステップS22)、B系PLC20BのRUNまたはSTOPのステ−タス情報をワークW12へ設定する(ステップS23)。そして、プロセッサ11は、ワークW11,W12より「待機系のPLCが稼動したか?」の条件を判定し(ステップS24)、待機系のPLCが稼動したと判定した場合(ステップS24,Yes)、ワークW1とワークW2の値の入替えを実施する(ステップS25)。
When the
プロセッサ11は、プログラマブル表示器81の表示操作部品毎の参照先の局番について切り替え処理を実行する(ステップS26)。具体的には、プログラマブル表示器81の表示操作部品毎の参照先の局番をワークW1の値として切り替え(書き替え)する。そして、プログラマブル表示器10の表示・操作部14の画面にリセットを実行し(ステップS27)、処理を終了する。プロセッサ11は、ステップS27において、プログラマブル表示器10のリセット要求があると、図6(a)に示すイニシャル処理S1を実行し(ステップS11)、現在の局番をワークデータに設定する(ステップS12)。具体的には、稼動系PLCの局番1がワークW1に、待機系PLCの局番0がワークW2に設定される。
The
ステップS24において、待機系のPLCが稼動したと判定しない場合(ステップS24,No)、処理を終了する。 If it is not determined in step S24 that the standby PLC has been activated (No in step S24), the process ends.
なお、イニシャル処理S1において、局番を読み込みワークデータに設定する処理を行うことにより、定周期処理では局番を毎回読み出す必要がないので、プロセッサ11の処理負担を軽減する方法を採用している。
In the initial process S1, the station number is read and set in the work data, so that it is not necessary to read the station number every time in the regular cycle process, so a method of reducing the processing load on the
本実施形態では、プログラマブル表示器81の表示操作部品毎の参照先の局番を入れ替えることで常に稼動系のPLCの局番を参照するようになる。さらに、ここで逆の局番を参照すれば、それが待機系のPLCということになる。
In the present embodiment, the station number of the active PLC is always referred to by replacing the station number of the reference destination for each display operation component of the
図7は、二重化PLCの稼動/待機の状態の組み合わせとそのときの参照先局番の関係を示す説明図である。A系PLC20Aの稼動/待機の状態とB系PLC20Bの稼動/待機の状態により、4つの組合せがある。図6に示した参照先局番切替処理は、ハードウェア回路上、稼動系は必ず一方のみでありA系PLC20A、B系PLC20Bが同時に稼動系(符号71参照)となることは無いため、本参照先局番切替処理が成立する。通常は一方が稼動系でもう一方が待機系(符号72もしくは符号73参照)の状態であり、符号72の場合、参照先局番は1であり、符号73の場合、参照先局番は0となる。両系が故障などで、両系待機系の場合(符号74参照)は、局番の書き替えは行われず、前回値保持となる。なお、待機の状態には、故障の状態も含んでいる。
FIG. 7 is an explanatory diagram showing the relationship between the combination of operating / standby states of the duplexed PLC and the reference station number at that time. There are four combinations depending on the operating / standby state of the
以上述べたように、本実施形態によれば、二重化されたPLCをプログラマブル表示器10で監視制御するアプリケーションプログラム12を作成する場合、稼動系のPLCを自動的に判断し局番を利用しこの局番の参照先を切り換えることで常に稼動系のPLCの監視制御が行えるようになる。また、局番を利用したことでPLCの内部レジスタ(例えば、内部レジスタ23A,23B)をプログラマブル表示器10で直接設定することができるようになる。つまり、シングルPLCと接続し監視制御する場合と同様のアプリケーションプログラムの作成方法でよいこととなり、プログラムの作成者はシングルPLCであるか、二重化されたPLCであるか意識することなくアプリケーションプログラムを作成することができるという利点がある。さらに、待機系のPLCの状態監視も稼動系と逆の局番を指定すれば良いこととなり、稼動系のPLC経由でなく、待機系のPLCを直接的にプログラマブル表示器10で状態監視を行うことができる。
As described above, according to the present embodiment, when the
具体的には、本実施形態の二重化PLC20は、A系PLC20A、B系PLC20Bで構成され、各PLCには稼動系のPLC局番0、待機系のPLCの局番1を設定する。稼動系のPLCのみの情報を監視表示し、また稼動系のPLCのみに制御指令を送信するために、プログラマブル表示器10の各々の表示操作部品に稼動系のPLCである参照先の局番0を設定する。プログラマブル表示器10は、各PLCのRUN(稼動)、STOP(停止)のステ−タス情報を所定周期で監視を行う。B系PLC20Bが待機系から稼動系に切り替わったときに、プログラマブル表示器10が稼動系のPLCが切り替わったと判断し、参照先の局番を書き替え(0→1)、稼動系のみの監視操作を続行する。これにより、上下水プラント監視操作用のプログラマブル表示器10と二重化PLC20のイーサネット接続において、対シングルPLC接続と同等のプログラマブル表示器のアプリケーションプログラムを使用し、自動的に稼動系のPLCの情報を表示、操作可能とすることができる。
Specifically, the duplexed PLC 20 of this embodiment includes an
<実施形態2>
実施形態1においてプログラマブル表示器10を二重化PLCに適用した場合について説明したが、これに限定されるものではない。実施形態2において、プログラマブル表示器10を三重化PLCに適用した場合について説明する。
<
Although the case where the
図8は、プログラマブル表示器および三重化PLCの機能を示すブロック図である。3重化PLCは、A系PLC20A(PLC1)、B系PLC20B(PLC2)、C系PLC20C(PLC3)から構成されている。図8において、図2に記載の同一構成品については同一番号を付しており、説明は省略する。図8を参照して、上下水プラント監視制御システムとして現実的である3台のPLCの同時RUN方式で3台のデータ一致化を行わないシステムを考え、参照する優先順位をPLC1、PLC2、PLC3とする。
FIG. 8 is a block diagram showing the functions of the programmable display and the triple PLC. The triple PLC is composed of an
このとき、PLC1が正常にRUN(稼動)していれば、PLC1を参照、PLC1が故障で、PLC2が正常RUNであればPLC2を参照、同様に、PLC2も故障であれば、PLC3の正常RUNを判断しPLC3を参照する(組み合わせは図9参照)というように、切換えを行い、冗長性を確保するシステムを考えたときにも、実施形態1で示した参照先局番処理は有効である。
At this time, if
図9は、三重化PLCの状態の組み合わせとそのときの参照先局番の関係を示す説明図である。PLC1が正常にRUNの場合、参照先局番は0であり、PLC1が故障し、かつPLC2が正常にRUNの場合、参照先局番は1である。PLC1およびPLC2が故障し、PLC3が正常にRUNの場合、参照先局番は2である。なお、PLC1、PLC2およびPLC3ともに故障の場合、参照先局番は、前回値を保持する設定となる。
FIG. 9 is an explanatory diagram showing the relationship between the combination of states of the triple PLC and the reference station number at that time. When the
図10は、三重化PLCの場合の参照先局番切替処理を示すフローチャートである。図10(a)は、プログラマブル表示器10のアプリケーションプログラム12のローディング後のイニシャル処理S2を示し、図10(b)は、局番0のPLCが故障した場合の故障処理を示す。なお、アプリケーションプログラム12をローディング直後は、参照先局番は0(PLC1に対応)として説明する。
FIG. 10 is a flowchart showing reference destination station number switching processing in the case of triple PLC. FIG. 10A shows the initial process S2 after loading of the
プロセッサ11は、図10(a)に示すイニシャル処理S2を実行すると(ステップS41)、イニシャル値として各PLCに局番を設定し(ステップS42)、処理を終了する。具体的には、PLC1の局番を0に設定され、PLC2の局番が1に設定され、PLC3の局番が2に設定される。
When executing the initial process S2 shown in FIG. 10A (step S41), the
プロセッサ11は、局番0のPLCが故障であると判定すると図10(b)に示す故障処理を開始する(ステップS51)。プロセッサ11は、局番1(優先度が2番)のPLCがRUNであるか否かを判定し(ステップS52)、RUNである場合(ステップS52、Yes)、局番0と局番1を入換え(ステップS57)、局番書替処理を実行し(ステップS55)、最後にプログラマブル表示器10のリセットを実行し(ステップS56)、処理を終了する。
If the
ステップS52において、プロセッサ11は、局番1のPLCがRUNでない場合(ステップS52,No)、局番2(優先順位が3番)のPLCがRUNであるか否かを判定し(ステップS53)、RUNである場合(ステップS53、Yes)、局番0と局番2を入替え(ステップS54)、ステップS55に進む。ステップS53において、局番2(優先順位が3番)のPLCがRUNでない場合(ステップS53、No)、処理を終了する。
In step S52, when the PLC of the
実施形態2においては、局番書替処理の適用はPLCの故障時を想定しているが、オペレータ判断による手動切り換え時にも本局番書替処理は有効である。 In the second embodiment, it is assumed that the station number rewriting process is applied when the PLC fails. However, the station number rewriting process is effective even when the operator performs manual switching.
本実施形態では、上下水プラント制御システムとして説明したが、これに限定されるものではない。プログラマブル表示器と二重化PLCまたは三重化PLCを含む構成である制御システムであれば、搬送系制御システムなど各種制御システムに適用できる。 Although this embodiment demonstrated as a water-sewage-plant control system, it is not limited to this. Any control system including a programmable display and a duplex PLC or triple PLC can be applied to various control systems such as a transport system control system.
4 入出力装置(I/O)
5 上下水プラント
10 プログラマブル表示器
11 プロセッサ
12 アプリケーションプログラム(マクロ処理)
13 内部レジスタ
14 表示・操作部
15 イーサネットI/F
20 二重化PLC
20A A系PLC(第1のPLC)
20B B系PLC(第2のPLC)
21A,21B プロセッサ
22A,22B アプリケーションプログラム(ラダー)
23A,23B 内部レジスタ
25A,25B イーサネットI/F
26A,26B 二重化I/F
121 局番テーブル(局番管理情報)
122 参照先局番書替処理部
N1 イーサネット(イーサネットのネットワーク)
N3 FLネット(FLネットのネットワーク)
4 Input / output devices (I / O)
5 Water and
13
20 Duplex PLC
20A A-system PLC (first PLC)
20B B PLC (second PLC)
21A,
23A,
26A, 26B Duplex I / F
121 Station number table (Station number management information)
122 Reference station number rewriting processing part N1 Ethernet (Ethernet network)
N3 FL Net (FL Net network)
Claims (6)
前記プログラマブル表示器は、
前記第1のPLCを識別するIPアドレスと関連付けられた第1の局番と、前記第2のPLCを識別するIPアドレスと関連付けられた第2の局番とが局番管理情報として記憶部に登録されており、
前記プログラマブル表示器に配置された各表示操作部品の参照先の局番には、稼動系のPLCの情報を監視表示するためまたは該稼動系のPLCに操作指令を送信するための設定として前記第1の局番が設定されており、
前記プログラマブル表示器は、
前記各PLCから受信した前記各PLCの稼動または停止のステ−タス情報に基づいて稼動状態を監視し、待機系のPLCが稼動したと判定したとき、前記各表示操作部品に設定されている前記参照先の局番を前記第2の局番に書き替えをし、
前記書き替え後前記プログラマブル表示器をリセットして監視操作を継続する
ことを特徴とするプログラマブル表示器の監視操作方法。 A programmable display monitoring operation method connected via a network to a duplexed PLC having a first PLC and a second PLC,
The programmable display is
The first station number associated with the IP address identifying the first PLC and the second station number associated with the IP address identifying the second PLC are registered in the storage unit as station number management information. And
In the station number of the reference destination of each display operation component arranged on the programmable display, the first PLC is set as a setting for monitoring and displaying information on the active PLC or for transmitting an operation command to the active PLC. Is set,
The programmable display is
The operating state is monitored based on the status information on the operation or stop of each PLC received from each PLC, and when it is determined that the standby PLC has been operated, Rewrite the reference station number to the second station number,
After the rewriting, the programmable display device is reset and the monitoring operation is continued.
前記プログラム表示器のリセット後、前記各PLCから受信した前記各PLCの稼動または停止のステ−タス情報に基づいて稼動状態を監視し、前記待機系のPLCが稼動したと判定したとき、前記各表示操作部品に設定されている前記参照先の局番を前記第1の局番に書き替えをし、
前記第1の局番への書き替え後前記プログラマブル表示器をリセットして監視操作を継続する
ことを特徴とする請求項1に記載のプログラマブル表示器の監視操作方法。 The programmable display is
After resetting the program display, the operating state is monitored based on the status information of the operation or stop of each PLC received from each PLC, and when it is determined that the standby PLC is operating, Rewrite the reference station number set in the display operation component to the first station number,
The programmable operation monitoring operation method according to claim 1, wherein after the rewriting to the first station number, the programmable display is reset and monitoring operation is continued.
前記稼動系のPLCの情報を監視表示するためまたは前記稼動系のPLCに操作指令を送信するための設定のためのアドレスとして、前記各PLCの内部レジスタのアドレスを指定する
ことを特徴とする請求項1に記載のプログラマブル表示器による監視操作方法。 The programmable display is
An address of an internal register of each PLC is designated as an address for setting to monitor and display information of the active PLC or to send an operation command to the active PLC. Item 8. A monitoring operation method using the programmable display according to Item 1.
前記プログラマブル表示器は、
前記第1のPLCを識別するIPアドレスと関連付けられた第1の局番と、前記第2のPLCを識別するIPアドレスと関連付けられた第2の局番と、前記第3のPLCを識別するIPアドレスと関連付けられた第3の局番が記憶部に登録されており、
前記プログラマブル表示器に配置された各表示操作部品の参照先の局番には、前記第1のPLCの情報を監視表示するためまたは前記第1のPLCに操作指令を送信するための設定として前記第1の局番が対応づけられて設定されており、
前記プログラマブル表示器は、
前記各PLCから受信した前記各PLCの稼動または停止のステ−タス情報に基づいて前記各PLCの稼動状態を監視し、前記第1のPLCが停止したと判定したとき、前記各表示操作部品に設定されている局番を前記第2の局番に書き替えをし、
前記第1のPLCおよび前記第2のPLCが停止したと判定したとき、前記各表示操作部品に設定されている局番を前記第3の局番に書き替えをし、
前記書き替え後前記プログラマブル表示器をリセットして監視操作を継続する
ことを特徴とするプログラマブル表示器の監視操作方法。 A programmable display monitoring operation method connected to a triple PLC having a first PLC, a second PLC, and a third PLC via a network,
The programmable display is
A first code associated with the IP address identifying the first PLC, and a second code associated with the IP address identifying the second PLC, IP address identifying the third PLC The third station number associated with is registered in the storage unit,
The station number of the reference destination of each display operation component arranged on the programmable display includes the first PLC as a setting for monitoring and displaying the information on the first PLC or transmitting an operation command to the first PLC. 1 station number is associated and set,
The programmable display is
The operating status of each PLC is monitored based on the status information on the operation or stop of each PLC received from each PLC, and when it is determined that the first PLC has stopped, Rewrite the set station number to the second station number,
When it is determined that the first PLC and the second PLC are stopped, the station number set in each display operation component is rewritten to the third station number,
After the rewriting, the programmable display device is reset and the monitoring operation is continued.
前記第1のPLCを識別するIPアドレスと関連付けられた第1の局番と、前記第2のPLCを識別するIPアドレスと関連付けられた第2の局番とが局番管理情報として記憶される記憶部と、
稼動系のPLCの情報を監視表示するためまたは該稼動系のPLCに操作指令を送信するための参照先の局番の設定として前記第1の局番が設定された前記プログラマブル表示器に配置される各表示操作部品と、
前記各PLCから受信した前記各PLCの稼動または停止のステ−タス情報に基づいて前記各PLCの状態を監視し、待機系のPLCが稼動したと判定したとき、前記各表示操作部品に設定されている前記参照先の局番を前記第2の局番に書き替えをし、前記書き替え後前記プログラマブル表示器をリセットして監視操作を継続する参照先局番切替処理部とを有する
ことを特徴とするプログラマブル表示器。 A programmable display connected via a network to a duplexed PLC having a first PLC and a second PLC,
A first code associated with the IP address identifying the first PLC, a storage unit and a second code associated with the IP address identifying the second PLC is stored as code management information ,
Each arranged in the programmable display in which the first station number is set as the setting of the reference station number for monitoring and displaying the information of the active PLC or transmitting the operation command to the active PLC Display operation parts,
The status of each PLC is monitored based on the status information on the operation or stop of each PLC received from each PLC, and when it is determined that the standby PLC has been operated, it is set in each display operation component. A reference station number switching processing unit that rewrites the reference destination station number to the second station number, resets the programmable display after the rewriting, and continues the monitoring operation. Programmable display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010094729A JP5400691B2 (en) | 2010-04-16 | 2010-04-16 | Programmable display monitoring operation method, monitoring operation program, and programmable display |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010094729A JP5400691B2 (en) | 2010-04-16 | 2010-04-16 | Programmable display monitoring operation method, monitoring operation program, and programmable display |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011227597A JP2011227597A (en) | 2011-11-10 |
JP5400691B2 true JP5400691B2 (en) | 2014-01-29 |
Family
ID=45042888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010094729A Active JP5400691B2 (en) | 2010-04-16 | 2010-04-16 | Programmable display monitoring operation method, monitoring operation program, and programmable display |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5400691B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10234841B2 (en) | 2015-04-22 | 2019-03-19 | Mitsubishi Electric Corporation | Programmable logic controller, slave device, and duplex system |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2963299B2 (en) * | 1993-03-31 | 1999-10-18 | 三菱電機株式会社 | Peripheral device of programmable controller and internal information setting method |
JPH10232704A (en) * | 1997-02-20 | 1998-09-02 | Fuji Electric Co Ltd | Duplex programmable controller |
JP2000132205A (en) * | 1998-10-27 | 2000-05-12 | Hitachi Ltd | Monitoring device for programmable controller |
JP2002140206A (en) * | 2000-10-31 | 2002-05-17 | Fuji Electric Co Ltd | Standby redundancy duplex controller and device for developing application program |
JP4161620B2 (en) * | 2002-06-07 | 2008-10-08 | オムロン株式会社 | Programmable controller |
JP4347839B2 (en) * | 2005-09-16 | 2009-10-21 | 三菱電機株式会社 | Redundant system |
JP2009187314A (en) * | 2008-02-06 | 2009-08-20 | Fuji Electric Systems Co Ltd | Duplex controller system, cpu module, and program thereof |
JP4836979B2 (en) * | 2008-03-07 | 2011-12-14 | 三菱電機株式会社 | Duplex programmable controller |
-
2010
- 2010-04-16 JP JP2010094729A patent/JP5400691B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011227597A (en) | 2011-11-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2007021685A (en) | Robot system and robot control device | |
US11022962B2 (en) | High availability industrial automation system having primary and secondary industrial automation controllers and method of communicating information over the same | |
US11343206B2 (en) | Redundant infrastructure for industrial automation distributed control systems | |
JP2006270359A (en) | Network opening method in production system | |
WO2012124198A1 (en) | Control device and system program, and recording medium | |
JP2017077606A (en) | Robot system having plurality of control devices connected through network | |
JP2014174616A (en) | Fa system and control device | |
JP7230677B2 (en) | Control device | |
JP2004054907A (en) | Programmable controller and cpu unit, and communication unit and method for controlling communication unit | |
JP5525065B2 (en) | Safety extension base and control method thereof | |
JP5400691B2 (en) | Programmable display monitoring operation method, monitoring operation program, and programmable display | |
US20210067483A1 (en) | Control System, Controller, and Control Method | |
JP5546500B2 (en) | Remote maintenance system for FPGA-equipped devices | |
KR20110123168A (en) | Apparatus for duplexing human machine interface | |
JP2010079355A (en) | Cooperative control system between a plurality of plcs | |
JP7163657B2 (en) | Support device, setting method and setting program | |
JP6350154B2 (en) | Control system | |
WO2023170800A1 (en) | Programmable logic controller, cpu unit, control method, and program | |
JP6345359B1 (en) | Network system, communication control device, and address setting method | |
JP2019040331A (en) | Distributed control system and node | |
WO2023021848A1 (en) | Control device and control method for control device | |
JPH0713791A (en) | Equalizing method for duplex control system | |
JP6645223B2 (en) | Control system and control device | |
WO2013054725A1 (en) | Controller, monitoring unit, and sequence program updating method | |
JP2023152155A (en) | controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120614 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130628 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130709 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130905 |
|
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: 20131001 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20131025 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5400691 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |